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
Object catchObj; for (;;) { if (exception instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException( (JavaScriptException)exception); } else if (exception instanceof EcmaError) { catchObj = ((EcmaError)exception).getErrorObject(); } else if (exception instanceof WrappedException) { WrappedException wex = (WrappedException)exception; exception = wex.getWrappedException(); continue; } else { Context.codeBug(); catchObj = null;
if (t instanceof JavaScriptException) { return ((JavaScriptException)t).getValue(); } else if (t instanceof EcmaError) { return ((EcmaError)t).getErrorObject(); } else { if (!(t instanceof WrappedException)) Context.codeBug(); do { t = ((WrappedException)t).getWrappedException(); } while (t instanceof WrappedException); if (t instanceof JavaScriptException) { return ((JavaScriptException)t).getValue(); } else if (t instanceof EcmaError) { return ((EcmaError)t).getErrorObject();
public static Object getCatchObject(Context cx, Scriptable scope, Throwable exception) { Object catchObj; for (;;) { if (exception instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException( (JavaScriptException)exception); } else if (exception instanceof EcmaError) { // an offical ECMA error object, catchObj = ((EcmaError)exception).getErrorObject(); } else if (exception instanceof WrappedException) { WrappedException wex = (WrappedException)exception; exception = wex.getWrappedException(); continue; } else { // catch can not be called with any other exceptions Context.codeBug(); catchObj = null; } break; } return catchObj; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/48b46eb3845fd6cf8fa13cd3def581f9a0ff4339/ScriptRuntime.java/buggy/src/org/mozilla/javascript/ScriptRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 1927, 505, 921, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 3639, 4206, 1520, 13, 565, 288, 3639, 1033, 1044, 2675, 31, 3639, 364, 261, 25708, 13, 288, 5411, 309, 261, 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, 760, 1033, 1927, 505, 921, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 3639, 4206, 1520, 13, 565, 288, 3639, 1033, 1044, 2675, 31, 3639, 364, 261, 25708, 13, 288, 5411, 309, 261, 4...
public ATFraction base_inc() {
public ATNumeric base_inc() {
public ATFraction base_inc() { return NATFraction.atValue(javaValue+1); }
57139 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57139/4e1a1e7e187016ccae3ae094421b4ce71805f87b/NATFraction.java/clean/src/edu/vub/at/objects/natives/NATFraction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14464, 13724, 1026, 67, 9523, 1435, 288, 202, 202, 2463, 31395, 13724, 18, 270, 620, 12, 6290, 620, 15, 21, 1769, 202, 97, 2, 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, 14464, 13724, 1026, 67, 9523, 1435, 288, 202, 202, 2463, 31395, 13724, 18, 270, 620, 12, 6290, 620, 15, 21, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
aload(savedVariableObject); astore(variableObjectLocal);
cfw.addALoad(savedVariableObject); cfw.addAStore(variableObjectLocal);
private void generateCatchBlock(int exceptionType, short savedVariableObject, int catchLabel, int startLabel) { int handler = acquireLabel(); classFile.markHandler(handler); // MS JVM gets cranky if the exception object is left on the stack short exceptionObject = getNewWordLocal(); astore(exceptionObject); // reset the variable object local aload(savedVariableObject); astore(variableObjectLocal); aload(contextLocal); aload(variableObjectLocal); aload(exceptionObject); releaseWordLocal(exceptionObject); // unwrap the exception... addScriptRuntimeInvoke( "getCatchObject", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/Throwable;" +")Ljava/lang/Object;"); String exceptionName; if (exceptionType == JAVASCRIPT_EXCEPTION) { exceptionName = "org/mozilla/javascript/JavaScriptException"; } else if (exceptionType == WRAPPED_EXCEPTION) { exceptionName = "org/mozilla/javascript/WrappedException"; } else { if (exceptionType != ECMAERROR_EXCEPTION) Context.codeBug(); exceptionName = "org/mozilla/javascript/EcmaError"; } // mark the handler classFile.addExceptionHandler(startLabel, catchLabel, handler, exceptionName); addByteCode(ByteCode.GOTO, catchLabel); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/clean/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 14842, 1768, 12, 474, 1520, 559, 16, 4766, 565, 3025, 5198, 3092, 921, 16, 4766, 565, 509, 1044, 2224, 16, 4766, 565, 509, 787, 2224, 13, 565, 288, 3639, 509, 1838, 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, 3238, 918, 2103, 14842, 1768, 12, 474, 1520, 559, 16, 4766, 565, 3025, 5198, 3092, 921, 16, 4766, 565, 509, 1044, 2224, 16, 4766, 565, 509, 787, 2224, 13, 565, 288, 3639, 509, 1838, 273...
QuickFixAction.registerQuickFixAction(errorResult, fix, null);
QuickFixAction.registerQuickFixAction(errorResult, fix);
private static HighlightInfo checkStaticMethodDeclarationInInnerClass(PsiKeyword keyword) { if (new PsiMatcherImpl(keyword) .dot(PsiMatcherImpl.hasText(PsiModifier.STATIC)) .parent(PsiMatcherImpl.hasClass(PsiModifierList.class)) .parent(PsiMatcherImpl.hasClass(PsiMethod.class)) .parent(PsiMatcherImpl.hasClass(PsiClass.class)) .dot(PsiMatcherImpl.hasModifier(PsiModifier.STATIC, false)) .parent(PsiMatcherImpl.hasClass(new Class[]{PsiClass.class, PsiDeclarationStatement.class, PsiNewExpression.class, PsiEnumConstant.class})) .getElement() == null) { return null; } PsiMethod method = (PsiMethod)keyword.getParent().getParent(); if (PsiUtil.hasErrorElementChild(method)) return null; HighlightInfo errorResult = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, keyword, STATIC_DECLARATION_IN_INNER_CLASS); IntentionAction fix1 = QUICK_FIX_FACTORY.createModifierListFix(method.getModifierList(), PsiModifier.STATIC, false, false); QuickFixAction.registerQuickFixAction(errorResult, fix1, null); PsiModifierList classModifiers = ((PsiClass)keyword.getParent().getParent().getParent()).getModifierList(); IntentionAction fix = QUICK_FIX_FACTORY.createModifierListFix(classModifiers, PsiModifier.STATIC, true, false); QuickFixAction.registerQuickFixAction(errorResult, fix, null); return errorResult; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dee9b62fe1ee40a1d6ca8afc95e5e1eca32dd11f/HighlightClassUtil.java/buggy/codeInsight/impl/com/intellij/codeInsight/daemon/impl/analysis/HighlightClassUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 31386, 966, 866, 5788, 1305, 6094, 382, 2857, 797, 12, 52, 7722, 8736, 4932, 13, 288, 565, 309, 261, 2704, 453, 7722, 6286, 2828, 12, 11041, 13, 1377, 263, 9811, 12, 52, 7722...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 31386, 966, 866, 5788, 1305, 6094, 382, 2857, 797, 12, 52, 7722, 8736, 4932, 13, 288, 565, 309, 261, 2704, 453, 7722, 6286, 2828, 12, 11041, 13, 1377, 263, 9811, 12, 52, 7722...
updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.agentTargets);
updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.ra.getInterestedAgents());
private void publishDescriptors() { long now = now(); List l; synchronized (descriptors) { l = new ArrayList(descriptors.values()); } for (Iterator it = l.iterator(); it.hasNext();) { DescriptorEntry de = (DescriptorEntry) it.next(); logger.debug("publishDescriptors:" + " community=" + de.cd.getName() + " ra=" + de.ra + " doRemove=" + de.doRemove + " didChange=" + de.didChange); if (de.ra == null) { // publish new descriptor if (!de.nodeTargets.isEmpty()) { de.ra = new RelayAdapter(de.cd.getSource(), de.cd, de.cd.getUID()); updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.agentTargets); de.didChange = false; de.lastSent = now; blackboard.publishAdd(de.ra); if (logger.isDebugEnabled()) { logger.debug("publishAdd: " + de.ra); } } } else { if (!de.didChange) { } if ( (de.didChange && (now > (de.lastSent + updateInterval))) || (now > de.lastSent + cacheExpiration)) { // publish changed descriptor updateTargets(de.ra, nodesOnly ? de.nodeTargets : de.agentTargets); ((CommunityDescriptorImpl) de.cd).setChangeType(de.didChange ? de.changeType : -1); ((CommunityDescriptorImpl) de.cd).setWhatChanged(de.didChange ? de.whatChanged : null); de.didChange = false; de.lastSent = now(); blackboard.publishChange(de.ra); if (logger.isDebugEnabled()) { logger.debug("publishChange: " + de.ra); } } else { if (de.doRemove) { // remove descriptor blackboard.publishRemove(de.ra); descriptors.remove(de.cd.getName()); if (logger.isDebugEnabled()) { logger.debug("publishRemove: " + de.ra); } } } } } }
11317 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11317/19973915ecd7f69a6f6e34904bb08facd263d9f3/CommunityDistributer.java/buggy/community/src/org/cougaar/community/manager/CommunityDistributer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3808, 12705, 1435, 288, 565, 1525, 2037, 273, 2037, 5621, 565, 987, 328, 31, 565, 3852, 261, 72, 8379, 13, 288, 1377, 328, 273, 394, 2407, 12, 72, 8379, 18, 2372, 10663, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3808, 12705, 1435, 288, 565, 1525, 2037, 273, 2037, 5621, 565, 987, 328, 31, 565, 3852, 261, 72, 8379, 13, 288, 1377, 328, 273, 394, 2407, 12, 72, 8379, 18, 2372, 10663, 565,...
private void handleDefine() throws IOException { // Next token is the name of the #define String name = nextWord(); //System.err.println("IN HANDLE_DEFINE: '" + name + "' (line " + lineNumber() + " file " + filename() + ")"); // (Note that this is not actually proper handling for multi-line #defines) List values = new ArrayList(); while (nextToken(true) != StreamTokenizer.TT_EOL) { values.add(curTokenAsString()); } // if we're not within an active block of code (like inside an "#ifdef // FOO" where FOO isn't defined), then don't actually alter the definition // map. debugPrint(true, "#define " + name); if (enabled()) { boolean emitDefine = true; // Handle #definitions to nothing or to a constant value int sz = values.size(); if (sz == 0) { // definition to nothing, like "#define FOO" String oldDef = (String)defineMap.put(name, ""); if (oldDef != null) { System.err.println("WARNING: \"" + name + "\" redefined from \"" + oldDef + "\" to \"\""); } // We don't want to emit the define, because it would serve no purpose // and cause GlueGen errors (confuse the GnuCParser) emitDefine = false; //System.out.println("//---DEFINED: " + name + "to \"\""); } else if (sz == 1) { // See whether the value is a constant String value = (String) values.get(0); if (isConstant(value)) { // Value is numeric constant like "#define FOO 5". // Put it in the #define map String oldDef = (String)defineMap.put(name, value); if (oldDef != null) { System.err.println("WARNING: \"" + name + "\" redefined from \"" + oldDef + "\" to \"" + value + "\""); } //System.out.println("//---DEFINED: " + name + " to \"" + value + "\""); } else { // Value is a symbolic constant like "#define FOO BAR". // Try to look up the symbol's value String newValue = (String) defineMap.get(value); if (newValue != null) { // Set the value to the value of the symbol. // // TO DO: Is this correct? Why not output the symbol unchanged? // I think that it's a good thing to see that some symbols are // defined in terms of others. -chris values.set(0, newValue); } else { // Still perform textual replacement defineMap.put(name, value); emitDefine = false; } } } else { // can't handle definitions that aren't constants or empty emitDefine = false; StringBuffer buf = new StringBuffer("#define "); buf.append(name); for (int i = 0; i < sz; ++i) { buf.append(" "); buf.append(values.get(i)); } System.err.println("WARNING: Ignoring \"" + buf.toString() + "\" at \"" + filename() + "\" line " + lineNumber() + ": Unable to handle definition to non-constant"); if (defineMap.get(name) != null) { // This is probably something the user should investigate. throw new RuntimeException("Cannot redefine symbol \"" + name + " from \"" + defineMap.get(name) + "\" to non-constant " + " definition \"" + buf.toString() + "\""); } } if (emitDefine) { // Print name and value print("# define "); print(name); for (Iterator iter = values.iterator(); iter.hasNext(); ) { print(" "); print((String) iter.next()); } println(); } } // end if (enabled()) //System.err.println("OUT HANDLE_DEFINE: " + name); }
48257 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48257/9512c9fa62ece3960472b6ab2cd6ce5244da8501/PCPP.java/clean/src/net/java/games/gluegen/pcpp/PCPP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1640, 11644, 1435, 1216, 1860, 288, 565, 368, 4804, 1147, 353, 326, 508, 434, 326, 468, 11255, 565, 514, 508, 273, 1024, 3944, 5621, 565, 368, 3163, 18, 370, 18, 8222, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1640, 11644, 1435, 1216, 1860, 288, 565, 368, 4804, 1147, 353, 326, 508, 434, 326, 468, 11255, 565, 514, 508, 273, 1024, 3944, 5621, 565, 368, 3163, 18, 370, 18, 8222, 2932, ...
invaxis[2][0] = (a[1]*b[2] - a[2]*b[1])/det; invaxis[2][1] = (a[2]*b[0] - a[0]*b[2])/det; invaxis[2][2] = (a[0]*b[1] - a[1]*b[0])/det;
invaxis[2][0] = (a.y*b.z - a.z*b.y)/det; invaxis[2][1] = (a.z*b.x - a.x*b.z)/det; invaxis[2][2] = (a.x*b.y - a.y*b.x)/det;
public static double[][] calcInvertedAxes(double[] a, double[] b, double[] c) { double det = a[0]*b[1]*c[2] - a[0]*b[2]*c[1] - a[1]*b[0]*c[2] + a[1]*b[2]*c[0] + a[2]*b[0]*c[1] - a[2]*b[1]*c[0]; double invaxis[][] = new double[3][3]; invaxis[0][0] = (b[1]*c[2] - b[2]*c[1])/det; invaxis[0][1] = (b[2]*c[0] - b[0]*c[2])/det; invaxis[0][2] = (b[0]*c[1] - b[1]*c[0])/det; invaxis[1][0] = (a[2]*c[1] - a[1]*c[2])/det; invaxis[1][1] = (a[0]*c[2] - a[2]*c[0])/det; invaxis[1][2] = (a[1]*c[0] - a[0]*c[1])/det; invaxis[2][0] = (a[1]*b[2] - a[2]*b[1])/det; invaxis[2][1] = (a[2]*b[0] - a[0]*b[2])/det; invaxis[2][2] = (a[0]*b[1] - a[1]*b[0])/det; return invaxis; }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/ffd604384537f658c2e37a06cc26b0e692b55249/CrystalGeometryTools.java/clean/src/org/openscience/cdk/geometry/CrystalGeometryTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 63, 6362, 65, 7029, 382, 25631, 26494, 12, 9056, 8526, 279, 16, 1645, 8526, 324, 16, 1645, 8526, 276, 13, 288, 540, 1645, 3023, 273, 279, 63, 20, 5772, 70, 63, 21, 57...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 63, 6362, 65, 7029, 382, 25631, 26494, 12, 9056, 8526, 279, 16, 1645, 8526, 324, 16, 1645, 8526, 276, 13, 288, 540, 1645, 3023, 273, 279, 63, 20, 5772, 70, 63, 21, 57...
l = l - (days * (24*60*60));
l = l - ((long)days * ((long)24*60*60*1000));
public static String formatTime(long timeInterval, int maxTerms) { StringBuffer sb = new StringBuffer(64); long l = timeInterval / 1000; // ms -> s int termCount = 0; // int weeks = (int)(l / (7*24*60*60)); if (weeks > 0) { sb.append(weeks + "w"); termCount++; l = l - (weeks * (7*24*60*60)); } // int days = (int)(l / (24*60*60)); if (days > 0) { sb.append(days + "d"); termCount++; l = l - (days * (24*60*60)); } if(termCount >= maxTerms) { return sb.toString(); } // int hours = (int)(l / (60*60)); if (hours > 0) { sb.append(hours + "h"); termCount++; l = l - (hours * (60*60)); } if(termCount >= maxTerms) { return sb.toString(); } // int minutes = (int)(l / 60); if (minutes > 0) { sb.append(minutes + "m"); termCount++; l = l - (minutes * 60); } if(termCount >= maxTerms) { return sb.toString(); } // sb.append(l + "s"); return sb.toString(); }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/e3e1385af7111953dc0be72e3d64baca37a22231/TimeUtil.java/buggy/src/freenet/support/TimeUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 950, 12, 5748, 813, 4006, 16, 509, 943, 11673, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 1105, 1769, 202, 202, 5748, 328, 273, 813, 4006, 342, 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, 225, 202, 482, 760, 514, 740, 950, 12, 5748, 813, 4006, 16, 509, 943, 11673, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 1105, 1769, 202, 202, 5748, 328, 273, 813, 4006, 342, 4...
public VariableResolverProcessor(PsiJavaCodeReferenceElement fromElement) { super(fromElement.getText(), null, ourFilter, new PsiConflictResolver[]{new JavaVariableConflictResolver()}, new ArrayList()); myFromElement = fromElement; PsiElement qualifier = fromElement.getQualifier(); PsiElement referenceName = fromElement.getReferenceNameElement(); if (referenceName instanceof PsiIdentifier){ setName(referenceName.getText()); } if (qualifier instanceof PsiExpression){ final JavaResolveResult accessClass = PsiUtil.getAccessObjectClass((PsiExpression)qualifier); final PsiElement element = accessClass.getElement(); if (element instanceof PsiTypeParameter) { final PsiManager manager = element.getManager(); final PsiClassType type = manager.getElementFactory().createType((PsiTypeParameter) element); final PsiType accessType = accessClass.getSubstitutor().substitute(type); if(accessType instanceof PsiArrayType) myAccessClass = manager.getElementFactory().getArrayClass(); else if(accessType instanceof PsiClassType) myAccessClass = ((PsiClassType)accessType).resolve(); } else if (element instanceof PsiClass) myAccessClass = (PsiClass) element; }
public VariableResolverProcessor(String name, PsiElement place, PsiClass accessClass){ super(name, null, ourFilter, new PsiConflictResolver[]{new JavaVariableConflictResolver()}, new ArrayList()); myFromElement = place; myAccessClass = accessClass;
public VariableResolverProcessor(PsiJavaCodeReferenceElement fromElement) { super(fromElement.getText(), null, ourFilter, new PsiConflictResolver[]{new JavaVariableConflictResolver()}, new ArrayList()); myFromElement = fromElement; PsiElement qualifier = fromElement.getQualifier(); PsiElement referenceName = fromElement.getReferenceNameElement(); if (referenceName instanceof PsiIdentifier){ setName(referenceName.getText()); } if (qualifier instanceof PsiExpression){ final JavaResolveResult accessClass = PsiUtil.getAccessObjectClass((PsiExpression)qualifier); final PsiElement element = accessClass.getElement(); if (element instanceof PsiTypeParameter) { final PsiManager manager = element.getManager(); final PsiClassType type = manager.getElementFactory().createType((PsiTypeParameter) element); final PsiType accessType = accessClass.getSubstitutor().substitute(type); if(accessType instanceof PsiArrayType) myAccessClass = manager.getElementFactory().getArrayClass(); else if(accessType instanceof PsiClassType) myAccessClass = ((PsiClassType)accessType).resolve(); } else if (element instanceof PsiClass) myAccessClass = (PsiClass) element; } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/23150f8a02bddbd3f249196772c53e2d74d03f80/VariableResolverProcessor.java/buggy/source/com/intellij/psi/impl/source/resolve/VariableResolverProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 7110, 4301, 5164, 12, 52, 7722, 5852, 1085, 2404, 1046, 628, 1046, 13, 288, 565, 2240, 12, 2080, 1046, 18, 588, 1528, 9334, 446, 16, 3134, 1586, 16, 394, 453, 7722, 10732, 4301, 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, 7110, 4301, 5164, 12, 52, 7722, 5852, 1085, 2404, 1046, 628, 1046, 13, 288, 565, 2240, 12, 2080, 1046, 18, 588, 1528, 9334, 446, 16, 3134, 1586, 16, 394, 453, 7722, 10732, 4301, 6...
CompletionProposal completionProposal = completionProposal(_token, _tokenOffset, _offset, proposalElementName); _completionProposalsList.add(completionProposal);
WODCompletionProposal completionProposal = new WODCompletionProposal(_token, _tokenOffset, _offset, proposalElementName); _completionProposals.add(completionProposal);
protected String findMemberProposals(IMember _member, String _partialToken, String[] _prefixes, String _token, int _tokenOffset, int _offset, List _completionProposalsList, int _requiredParameterCount, boolean _returnValueRequired) throws JavaModelException { String nextType = null; int flags = _member.getFlags(); if (!Flags.isStatic(flags) && !Flags.isPrivate(flags)) { boolean memberMatches = false; if (_member instanceof IMethod) { IMethod method = (IMethod) _member; if (method.getParameterNames().length == _requiredParameterCount) { nextType = method.getReturnType(); if (_returnValueRequired && nextType != null && !nextType.equals("V")) { memberMatches = true; } else if (!_returnValueRequired && (nextType == null || nextType.equals("V"))) { memberMatches = true; } else { nextType = null; } } } else { nextType = ((IField) _member).getTypeSignature(); memberMatches = true; } if (memberMatches) { String elementName = _member.getElementName(); String lowercaseElementName = elementName.toLowerCase(); String proposalElementName = null; for (int prefixNum = 0; proposalElementName == null && prefixNum < _prefixes.length; prefixNum++) { if (lowercaseElementName.startsWith(_prefixes[prefixNum])) { int prefixLength = _prefixes[prefixNum].length(); String noPrefixElementName = lowercaseElementName.substring(prefixLength); if (noPrefixElementName.startsWith(_partialToken)) { proposalElementName = elementName.substring(prefixLength); if (proposalElementName.length() > 0) { char firstChar = proposalElementName.charAt(0); if (Character.isUpperCase(firstChar)) { proposalElementName = Character.toLowerCase(firstChar) + proposalElementName.substring(1); } } } } } if (proposalElementName == null && lowercaseElementName.startsWith(_partialToken)) { proposalElementName = elementName; } if (proposalElementName != null) { CompletionProposal completionProposal = completionProposal(_token, _tokenOffset, _offset, proposalElementName); _completionProposalsList.add(completionProposal); } else { nextType = null; } } } return nextType; }
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/0121c50c657e485c351b986b3b99a5c73cbbb9a3/WODCompletionProcessor.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.wodclipse/java/org/objectstyle/wolips/wodclipse/editors/WODCompletionProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 514, 1104, 4419, 626, 22536, 12, 3445, 2558, 389, 5990, 16, 514, 389, 11601, 1345, 16, 514, 8526, 389, 17777, 16, 514, 389, 2316, 16, 509, 389, 2316, 2335, 16, 509, 389, 3348, 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, 282, 4750, 514, 1104, 4419, 626, 22536, 12, 3445, 2558, 389, 5990, 16, 514, 389, 11601, 1345, 16, 514, 8526, 389, 17777, 16, 514, 389, 2316, 16, 509, 389, 2316, 2335, 16, 509, 389, 3348, 16,...
Token xsp; xsp = jj_scanpos; if (jj_3R_28()) { jj_scanpos = xsp; if (jj_3R_29()) return true; } return false;
Token xsp; xsp = jj_scanpos; if (jj_3R_28()) { jj_scanpos = xsp; if (jj_3R_29()) return true;
final private boolean jj_3R_25() { Token xsp; xsp = jj_scanpos; if (jj_3R_28()) { jj_scanpos = xsp; if (jj_3R_29()) return true; } return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/bad9201cffeb6c6da295101be65bfa4924caa39e/JspParser.java/buggy/pmd/src/net/sourceforge/pmd/jsp/ast/JspParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 3238, 1250, 10684, 67, 23, 54, 67, 2947, 1435, 288, 3639, 3155, 619, 1752, 31, 3639, 619, 1752, 273, 10684, 67, 9871, 917, 31, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 6030, 10756...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 3238, 1250, 10684, 67, 23, 54, 67, 2947, 1435, 288, 3639, 3155, 619, 1752, 31, 3639, 619, 1752, 273, 10684, 67, 9871, 917, 31, 3639, 309, 261, 78, 78, 67, 23, 54, 67, 6030, 10756...
if(req.getParameter("verifyUser") != null) { String loginName = (req.getParameter("login_name")==null) ? "" : (req.getParameter("login_name")) ; String password = (req.getParameter("password")==null) ? "" : (req.getParameter("password")) ; String sqlQ = "GetUserIdFromName '" + loginName + "', '" + password + "'" ; userId = imcref.sqlProcedureStr( sqlQ ) ; if( userId == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,50) ; log(header + err.getErrorMsg()) ; return ; } String currPass = imcref.sqlProcedureStr("GetUserPassword " + userId ) ; if(!currPass.equals(password)) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } res.sendRedirect("UserChangePrefs?changeUser=on"); return ; }
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { String host = req.getHeader("Host") ; String server = Utility.getDomainPref("adminserver",host) ; String adminServer = Utility.getDomainPref("adminserver",host) ; // Lets validate the session// if (super.checkSession(req,res) == false) return ; // Lets get an user object imcode.server.User user = super.getUserObj(req,res) ; RmiConf rmi = new RmiConf(user) ; String userId = null ; // Get the session HttpSession session = req.getSession(true) ; // Lets check if the user wants to edit his phonenumbers // ******* Edit phones fields ********** if( req.getParameter("edit_phones") != null ) { log("Ok, edit phones") ; String user_id = req.getParameter("CURR_USER_ID") ; if(user_id == null) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } // Lets update the session with a return back to variable which the phonenbr // function will look for if(session != null ) { session.setAttribute("UserChangePrefs.goBack", "1" ) ; } res.sendRedirect("AdminUserPhones?user_id=" + user_id); } // End of editphones // ********** SAVE A USER ************* if( req.getParameter("SAVE_USER") != null ) { // log("Ok, save user parameters") ; userId = (String) session.getAttribute("AdminUser.user_id" ) ; // Lets get the users information from db Properties currUserInfo = UserHandler.getUserInfoDB(adminServer, userId) ; // Lets get the parameters from html page and validate them Properties params = this.getParameters(req) ; //log(currUserInfo.toString()) ; // Lets check the password. if its empty, then it wont be updated, (we use // the password from the db instead if(params.getProperty("password1").equals("")) { params.setProperty("password1" , currUserInfo.getProperty("login_password")) ; params.setProperty("password2" , currUserInfo.getProperty("login_password")) ; //log("gick in") ; } //log(params.getProperty("password1")) ; if( UserHandler.verifyPassword(params,req,res) == false) { return ; } if(checkParameters(params) == false) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,52) ; log(header + err.getErrorMsg()) ; return ; } // Lets update the db object with the new info from http form currUserInfo = this.copyProps(params ,currUserInfo) ; currUserInfo.setProperty("password1", params.getProperty("password1") ) ; currUserInfo.setProperty("title", params.getProperty("title")) ; currUserInfo.setProperty("company", params.getProperty("company")) ; // Lets build the users information into a string and add it to db //String userStr = createUserInfoString(params, userId) ; String userStr = "UpdateUser " + UserHandler.createUserInfoString(currUserInfo) ; //log("SQL: " + userStr) ; //imc.execSqlUpdateProcedure(server, "UpdateUser " + userStr) ; IMCServiceRMI.sqlUpdateProcedure(server, userStr) ; // this.log("SAVED_CHANGED_USER r klar") ; // ****** Default option. Ok, Generate a login page to the user VariableManager vm = new VariableManager() ; vm.addProperty("SERVLET_URL", MetaInfo.getServletPath(req) ) ; this.sendHtml(req,res,vm, DONE ) ; return ; } // ************* Verfiy username and password ************** if(req.getParameter("verifyUser") != null) { String loginName = (req.getParameter("login_name")==null) ? "" : (req.getParameter("login_name")) ; String password = (req.getParameter("password")==null) ? "" : (req.getParameter("password")) ; // Validate loginparams against the DB String sqlQ = "GetUserIdFromName '" + loginName + "', '" + password + "'" ; userId = rmi.execJanusSqlProcedureStr(server, sqlQ ) ; // log("GetUserIdFromName ok") ; // Lets check that we the found the user. Otherwise send unvailid username password if( userId == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,50) ; log(header + err.getErrorMsg()) ; return ; } // Lets check if the users password are correct String currPass = rmi.execJanusSqlProcedureStr(server, "GetUserPassword " + userId ) ; if(!currPass.equals(password)) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,51) ; log(header + err.getErrorMsg()) ; return ; } // Ok, the user is verified, lets generate the users infopage // Lets set the user id we are working on // HttpSession session = req.getSession(true) ; if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } // ok, redirect to myself res.sendRedirect("UserChangePrefs?changeUser=on"); return ; } // end verifyUser ///*********** Lets get the users information ************ // Lets generate the users info if(req.getParameter("changeUser") != null) { session = req.getSession(false) ; if(session == null ) { String header = req.getServletPath() ; AdminError2 err = new AdminError2(req,res,header,52) ; log(header + err.getErrorMsg()) ; return ; } if(session != null ) { userId = (String) session.getAttribute("AdminUser.user_id") ; } String showUserInfo = (String) session.getAttribute("AdminUser.passedLogin" ) ; if(showUserInfo.equals("1")) { // Ok, we got the user. Lets get his settings. VariableManager vm = new VariableManager() ; String[] userInfo = rmi.execJanusSqlProcedure(server, "UserPrefsChange " + userId ) ; String[] keys = {"USER_ID","LOGIN_NAME","PWD1","PWD2","FIRST_NAME", "LAST_NAME","TITLE", "COMPANY", "ADDRESS","CITY","ZIP","COUNTRY","COUNTRY_COUNCIL", "EMAIL", "LANG_ID" } ; //log(hash.toString()) ; //Vector userV = this.convert2Vector(userInfo) ; for(int i = 0 ; i<keys.length; i++) { vm.addProperty(keys[i], userInfo[i]); } //Properties p = UserHandler.getUserInfoDB(server, userId) ; //vm = vm.merge(p) ; // Lets fix all users phone numbers from DB String[] phonesArr = rmi.execJanusSqlProcedure(server, "GetUserPhones " + userId) ; Vector phonesV = super.convert2Vector(phonesArr) ; Html htm = new Html() ; String phones = htm.createHtmlCode("ID_OPTION", "", phonesV ) ; vm.addProperty("PHONES_MENU", phones ) ; vm.addProperty("CURR_USER_ID", userId ) ; // Lets get the the users language id String[] langList = rmi.execJanusSqlProcedure(server, "GetLanguageList") ; Vector selectedLangV = new Vector() ; selectedLangV.add(vm.getProperty("LANG_ID")) ; vm.addProperty("LANG_TYPES", htm.createHtmlCode("ID_OPTION",selectedLangV, super.convert2Vector(langList))) ; // Lets set the user id we are working on // HttpSession session = req.getSession(true) ; String theUserId = null ; if(session != null ) { session.setAttribute("AdminUser.user_id", userId ) ; session.setAttribute("AdminUser.passedLogin", "1" ) ; } // Lets generete the change user page this.sendHtml(req,res,vm, CHANGE_PREFS ) ; return ; } } // ****** Default option. Ok, Generate a login page to the user VariableManager vm = new VariableManager() ; vm.addProperty("SERVLET_URL", MetaInfo.getServletPath(req) ) ; Html ht = new Html() ; this.sendHtml(req,res,vm, LOGIN ) ; return ;} // end HTTP POST
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/UserChangePrefs.java/clean/servlets/UserChangePrefs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 309, 12, 3658, 18, 588, 1662, 2932, 8705, 1299, 7923, 480, 446, 13, 288, 514, 3925, 461, 273, 261, 3658, 18, 588, 1662, 2932, 5819, 67, 529, 7923, 631, 2011, 13, 692, 1408, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 12, 3658, 18, 588, 1662, 2932, 8705, 1299, 7923, 480, 446, 13, 288, 514, 3925, 461, 273, 261, 3658, 18, 588, 1662, 2932, 5819, 67, 529, 7923, 631, 2011, 13, 692, 1408, ...
PropertyManager.getInstance().serialize();
public void saving(ISaveContext context) throws CoreException { // No state to be saved by the plug-in, but request a // resource delta to be used on next activation. context.needDelta(); PropertyManager.getInstance().serialize(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6140a76f77595ad910c847e2c895903fcdfd62ca/ResourceChangeHandler.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ResourceChangeHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12392, 12, 45, 4755, 1042, 819, 13, 1216, 30015, 288, 202, 202, 759, 202, 2279, 919, 358, 506, 5198, 635, 326, 15852, 17, 267, 16, 1496, 590, 279, 202, 565, 368, 225, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12392, 12, 45, 4755, 1042, 819, 13, 1216, 30015, 288, 202, 202, 759, 202, 2279, 919, 358, 506, 5198, 635, 326, 15852, 17, 267, 16, 1496, 590, 279, 202, 565, 368, 225, 1...
public void createControl(Composite parent) { Composite container = new Composite(parent, SWT.NULL); FillLayout layout = new FillLayout(); container.setLayout(layout); viewer = new TableViewer(container, SWT.SINGLE | SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL); viewer.setContentProvider(new RepositoryContentProvider()); viewer.setLabelProvider(new TaskRepositoryLabelProvider()); viewer.setInput(MylarTaskListPlugin.getRepositoryManager().getRepositoryClients()); viewer.addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { IStructuredSelection selection = (IStructuredSelection)event.getSelection(); if (selection.getFirstElement() instanceof TaskRepository) { wizard.setRepository((TaskRepository)selection.getFirstElement()); SelectRepositoryPage.this.setPageComplete(true); wizard.getContainer().updateButtons(); } } }); setControl(container); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/0c6bed4632768f6cabddb0a50b03398738a3aefc/SelectRepositoryPage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/wizards/SelectRepositoryPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 2640, 3367, 12, 799, 1724, 881, 817, 15329, 202, 202, 799, 1724, 31313, 1521, 33, 2704, 9400, 12, 2938, 16, 55, 8588, 18, 8560, 1769, 202, 202, 8026, 3744, 6741, 33, 270...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 2640, 3367, 12, 799, 1724, 881, 817, 15329, 202, 202, 799, 1724, 31313, 1521, 33, 2704, 9400, 12, 2938, 16, 55, 8588, 18, 8560, 1769, 202, 202, 8026, 3744, 6741, 33, 270...
lhs = stack[stackTop];
Object lhs = stack[stackTop];
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/052726b68e684efc593535d50a73767571084837/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 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, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
in.seek(curPos);
in.reset(); } else { bytes += 1;
private static String readLine(FSDataInputStream in) throws IOException { StringBuffer buffer = new StringBuffer(); while (true) { int b = in.read(); if (b == -1) break; char c = (char)b; // bug: this assumes eight-bit characters. if (c == '\n') break; if (c == '\r') { long curPos = in.getPos(); char nextC = (char)in.read(); if (nextC != '\n') { in.seek(curPos); } break; } buffer.append(c); } return buffer.toString(); }
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/48264173e88fdcd9b42c4d801117c3b7cb289242/TextInputFormat.java/buggy/src/java/org/apache/hadoop/mapred/TextInputFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 514, 12273, 12, 4931, 751, 4348, 316, 13, 1216, 1860, 288, 565, 6674, 1613, 273, 394, 6674, 5621, 565, 1323, 261, 3767, 13, 288, 1377, 509, 324, 273, 316, 18, 896, 5621, 1377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 514, 12273, 12, 4931, 751, 4348, 316, 13, 1216, 1860, 288, 565, 6674, 1613, 273, 394, 6674, 5621, 565, 1323, 261, 3767, 13, 288, 1377, 509, 324, 273, 316, 18, 896, 5621, 1377...
static private boolean deduceTemplateArgument( Map map, ISymbol pSymbol, TypeInfo a ){//, Map argumentMap ){ ISymbol symbol; TypeInfo p = getParameterTypeForDeduction( pSymbol ); a = getArgumentTypeForDeduction( a ); if( p.isType( TypeInfo.t_type ) ){ symbol = p.getTypeSymbol(); ISymbol aSymbol = a.getTypeSymbol(); if( symbol instanceof IDeferredTemplateInstance || symbol.isTemplateInstance() ){ return deduceFromTemplateTemplateArguments(map, symbol, aSymbol); } else { if( symbol.isType( TypeInfo.t_templateParameter ) ){ if( symbol.getTypeInfo().getTemplateParameterType() == TypeInfo.t_typeName ){ //a = getFlatTypeInfo( a ); List aPtrs = a.getPtrOperators(); List pPtrs = p.getPtrOperators(); //TODO cvlist T if( pPtrs != null && pPtrs.size() > 0){ if( aPtrs == null ){ return false; } Iterator pIter = pPtrs.iterator(); ListIterator aIter = aPtrs.listIterator(); PtrOp pOp = null; PtrOp aOp = null; while( pIter.hasNext() ){ pOp = (PtrOp) pIter.next(); if( !aIter.hasNext() ){ return false; } else { aOp = (PtrOp) aIter.next(); if( pOp.getType() == aOp.getType() ){ if( !pOp.equals( aOp ) ){ if( pIter.hasNext() || pOp.compareCVTo( aOp ) > 0 ){ return false; } else { PtrOp newOp = new PtrOp( PtrOp.t_undef ); newOp.setConst( aOp.isConst() ); newOp.setVolatile( aOp.isVolatile() ); aIter.set( newOp ); } } else { aIter.remove(); } } else { return false; } } } return deduceArgument( map, symbol, a ); } else { //T return deduceArgument( map, symbol, a ); } } else if ( symbol.getTypeInfo().getTemplateParameterType() == TypeInfo.t_template ){ } else { //non-type parameter if( symbol.getTypeInfo().getTemplateParameterType() == a.getType() ){ return deduceArgument( map, symbol, a ); } else { return false; } } } //T (*) ( ), T ( T::* ) ( T ), & variations else if( symbol.isType( TypeInfo.t_function ) ){ if( !(aSymbol instanceof IParameterizedSymbol)|| !aSymbol.isType( TypeInfo.t_function ) ) { return false; } IParameterizedSymbol pFunction = (IParameterizedSymbol)symbol; IParameterizedSymbol aFunction = (IParameterizedSymbol)aSymbol; if( !deduceTemplateArgument( map, pFunction.getReturnType(), aFunction.getReturnType().getTypeInfo() ) ){ return false; } List pPtrs = p.getPtrOperators(); if( pPtrs.size() != 0 ){ PtrOp op = (PtrOp) pPtrs.iterator().next(); if( op.getType() == PtrOp.t_memberPointer ){ TypeInfo info = new TypeInfo( TypeInfo.t_type, 0, aFunction.getContainingSymbol() ); if( !deduceTemplateArgument( map, op.getMemberOf(), info ) ){ return false; } } } List pParams = pFunction.getParameterList(); List aParams = aFunction.getParameterList(); if( pParams.size() != aParams.size() ){ return false; } else { Iterator pIter = pParams.iterator(); Iterator aIter = aParams.iterator(); while( pIter.hasNext() ){ TypeInfo info = ((ISymbol)aIter.next()).getTypeInfo(); if( !deduceTemplateArgument( map, (ISymbol) pIter.next(), info ) ){ return false; } } } return true; } } } else { if( p.isType( TypeInfo.t_templateParameter ) ){ return deduceArgument( map, pSymbol, a ); } if( p.getType() == a.getType() ){ if( p.getDefault() != null ){ return ( p.getDefault().equals( a.getDefault() ) ); } return true; } } return false; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b416d5f3b91a9ba8919dec6f5cd139d424a6ad19/TemplateEngine.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/TemplateEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 3238, 1250, 11140, 3965, 2283, 1379, 12, 1635, 852, 16, 4437, 3284, 293, 5335, 16, 1412, 966, 279, 262, 95, 759, 16, 1635, 1237, 863, 262, 95, 202, 202, 5127, 3284, 3273, 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, 3845, 3238, 1250, 11140, 3965, 2283, 1379, 12, 1635, 852, 16, 4437, 3284, 293, 5335, 16, 1412, 966, 279, 262, 95, 759, 16, 1635, 1237, 863, 262, 95, 202, 202, 5127, 3284, 3273, 31,...
completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_IDENTIFIER, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY }));
completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, ctx, completedDownloadToTemp, new int[] { LIST_IDENTIFIER, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, ctx, completedDownloadToTemp, new int[] { LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY }));
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { // We ensure that we have a FCP server running if(!fcp.enabled){ this.writeReply(ctx, 400, "text/plain", "FCP server is missing", "You need to enable the FCP server to access this page"); return; } HTTPRequest request = new HTTPRequest(uri, null, ctx); String requestPath = request.getPath().substring("/queue/".length()); if (requestPath.length() > 0) { /* okay, there is something in the path, check it. */ try { FreenetURI key = new FreenetURI(requestPath); /* locate request */ ClientRequest[] clientRequests = fcp.getGlobalRequests(); for (int requestIndex = 0, requestCount = clientRequests.length; requestIndex < requestCount; requestIndex++) { ClientRequest clientRequest = clientRequests[requestIndex]; if (clientRequest.hasFinished() && (clientRequest instanceof ClientGet)) { ClientGet clientGet = (ClientGet) clientRequest; if (clientGet.getURI().toString(false).equals(key.toString(false))) { Bucket data = clientGet.getBucket(); String mimeType = clientGet.getMIMEType(); String requestedMimeType = request.getParam("type", null); String forceString = request.getParam("force"); FProxyToadlet.handleDownload(ctx, data, ctx.getBucketFactory(), mimeType, requestedMimeType, forceString, request.isParameterSet("forcedownload"), "/queue/", key, "", "/queue/"); return; } } } } catch (MalformedURLException mue1) { } } PageMaker pageMaker = ctx.getPageMaker(); // First, get the queued requests, and separate them into different types. LinkedList completedDownloadToDisk = new LinkedList(); LinkedList completedDownloadToTemp = new LinkedList(); LinkedList completedUpload = new LinkedList(); LinkedList completedDirUpload = new LinkedList(); LinkedList failedDownload = new LinkedList(); LinkedList failedUpload = new LinkedList(); LinkedList failedDirUpload = new LinkedList(); LinkedList uncompletedDownload = new LinkedList(); LinkedList uncompletedUpload = new LinkedList(); LinkedList uncompletedDirUpload = new LinkedList(); ClientRequest[] reqs = fcp.getGlobalRequests(); if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "Request count: "+reqs.length); if(reqs.length < 1){ HTMLNode pageNode = pageMaker.getPageNode("Global queue of " + core.getMyName()); HTMLNode contentNode = pageMaker.getContentNode(pageNode); /* add alert summary box */ contentNode.addChild(core.alerts.createSummary()); HTMLNode infobox = contentNode.addChild(pageMaker.getInfobox("infobox-information", "Global queue is empty")); HTMLNode infoboxContent = pageMaker.getContentNode(infobox); infoboxContent.addChild("#", "There is no task queued on the global queue at the moment."); contentNode.addChild(createInsertBox(pageMaker)); writeReply(ctx, 200, "text/html", "OK", pageNode.generate()); return; } for(int i=0;i<reqs.length;i++) { ClientRequest req = reqs[i]; if(req instanceof ClientGet) { ClientGet cg = (ClientGet) req; if(cg.hasSucceeded()) { if(cg.isDirect()) completedDownloadToTemp.add(cg); else if(cg.isToDisk()) completedDownloadToDisk.add(cg); else // FIXME Logger.error(this, "Don't know what to do with "+cg); } else if(cg.hasFinished()) { failedDownload.add(cg); } else { uncompletedDownload.add(cg); } } else if(req instanceof ClientPut) { ClientPut cp = (ClientPut) req; if(cp.hasSucceeded()) { completedUpload.add(cp); } else if(cp.hasFinished()) { failedUpload.add(cp); } else { uncompletedUpload.add(cp); } } else if(req instanceof ClientPutDir) { ClientPutDir cp = (ClientPutDir) req; if(cp.hasSucceeded()) { completedDirUpload.add(cp); } else if(cp.hasFinished()) { failedDirUpload.add(cp); } else { uncompletedDirUpload.add(cp); } } } Comparator identifierComparator = new Comparator() { public int compare(Object first, Object second) { ClientRequest firstRequest = (ClientRequest) first; ClientRequest secondRequest = (ClientRequest) second; short firstPrio = firstRequest.getPriority(); short secondPrio = secondRequest.getPriority(); if(firstPrio > secondPrio) return 1; if(secondPrio > firstPrio) return -1; return firstRequest.getIdentifier().compareTo(secondRequest.getIdentifier()); } }; Collections.sort(completedDownloadToDisk, identifierComparator); Collections.sort(completedDownloadToTemp, identifierComparator); Collections.sort(completedUpload, identifierComparator); Collections.sort(completedDirUpload, identifierComparator); Collections.sort(failedDownload, identifierComparator); Collections.sort(failedUpload, identifierComparator); Collections.sort(failedDirUpload, identifierComparator); Collections.sort(uncompletedDownload, identifierComparator); Collections.sort(uncompletedUpload, identifierComparator); Collections.sort(uncompletedDirUpload, identifierComparator); HTMLNode pageNode = pageMaker.getPageNode("(" + (uncompletedDirUpload.size() + uncompletedDownload.size() + uncompletedUpload.size()) + '/' + (failedDirUpload.size() + failedDownload.size() + failedUpload.size()) + '/' + (completedDirUpload.size() + completedDownloadToDisk.size() + completedDownloadToTemp.size() + completedUpload.size()) + ") Queued Requests of " + core.getMyName()); HTMLNode contentNode = pageMaker.getContentNode(pageNode); /* add alert summary box */ contentNode.addChild(core.alerts.createSummary()); /* add file insert box */ contentNode.addChild(createInsertBox(pageMaker)); /* navigation bar */ HTMLNode navigationBar = pageMaker.getInfobox("navbar", "Request Navigation"); HTMLNode navigationContent = pageMaker.getContentNode(navigationBar).addChild("ul"); boolean includeNavigationBar = false; if (!completedDownloadToTemp.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedDownloadToTemp", "Completed downloads to temp"); includeNavigationBar = true; } if (!completedDownloadToDisk.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedDownloadToDisk", "Completed downloads to disk"); includeNavigationBar = true; } if (!completedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completedUpload", "Completed uploads"); includeNavigationBar = true; } if (!completedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#completeDirUpload", "Completed directory uploads"); includeNavigationBar = true; } if (!failedDownload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedDownload", "Failed downloads"); includeNavigationBar = true; } if (!failedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedUpload", "Failed uploads"); includeNavigationBar = true; } if (!failedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#failedDirUpload", "Failed directory uploads"); includeNavigationBar = true; } if (!uncompletedDownload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedDownload", "Downloads in progress"); includeNavigationBar = true; } if (!uncompletedUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedUpload", "Uploads in progress"); includeNavigationBar = true; } if (!uncompletedDirUpload.isEmpty()) { navigationContent.addChild("li").addChild("a", "href", "#uncompletedDirUpload", "Directory uploads in progress"); includeNavigationBar = true; } if (includeNavigationBar) { contentNode.addChild(navigationBar); } HTMLNode legendBox = contentNode.addChild(pageMaker.getInfobox("legend", "Legend")); HTMLNode legendContent = pageMaker.getContentNode(legendBox); HTMLNode legendTable = legendContent.addChild("table", "class", "queue"); HTMLNode legendRow = legendTable.addChild("tr"); for(int i=0; i<7; i++){ legendRow.addChild("td", "class", "priority" + i, "Priority " + i); } if (reqs.length > 1 && SimpleToadletServer.isPanicButtonToBeShown) { contentNode.addChild(createPanicBox(pageMaker)); } boolean advancedEnabled = core.isAdvancedDarknetEnabled(); if (!completedDownloadToTemp.isEmpty()) { contentNode.addChild("a", "name", "completedDownloadToTemp"); HTMLNode completedDownloadsTempInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Downloads to temporary directory (" + completedDownloadToTemp.size() + ')')); HTMLNode completedDownloadsToTempContent = pageMaker.getContentNode(completedDownloadsTempInfobox); if (advancedEnabled) { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_IDENTIFIER, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedDownloadsToTempContent.addChild(createRequestTable(pageMaker, completedDownloadToTemp, new int[] { LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedDownloadToDisk.isEmpty()) { contentNode.addChild("a", "name", "completedDownloadToDisk"); HTMLNode completedToDiskInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Downloads to download directory (" + completedDownloadToDisk.size() + ')')); HTMLNode completedToDiskInfoboxContent = pageMaker.getContentNode(completedToDiskInfobox); if (advancedEnabled) { completedToDiskInfoboxContent.addChild(createRequestTable(pageMaker, completedDownloadToDisk, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } else { completedToDiskInfoboxContent.addChild(createRequestTable(pageMaker, completedDownloadToDisk, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_DOWNLOAD, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedUpload.isEmpty()) { contentNode.addChild("a", "name", "completedUpload"); HTMLNode completedUploadInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Uploads (" + completedUpload.size() + ')')); HTMLNode completedUploadInfoboxContent = pageMaker.getContentNode(completedUploadInfobox); if (advancedEnabled) { completedUploadInfoboxContent.addChild(createRequestTable(pageMaker, completedUpload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PERSISTENCE, LIST_KEY })); } else { completedUploadInfoboxContent.addChild(createRequestTable(pageMaker, completedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PERSISTENCE, LIST_KEY })); } } if (!completedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "completedDirUpload"); HTMLNode completedUploadDirInfobox = contentNode.addChild(pageMaker.getInfobox("completed_requests", "Completed: Directory Uploads (" + completedDirUpload.size() + ')')); HTMLNode completedUploadDirContent = pageMaker.getContentNode(completedUploadDirInfobox); if (advancedEnabled) { completedUploadDirContent.addChild(createRequestTable(pageMaker, completedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_TOTAL_SIZE, LIST_PERSISTENCE, LIST_KEY })); } else { completedUploadDirContent.addChild(createRequestTable(pageMaker, completedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedDownload.isEmpty()) { contentNode.addChild("a", "name", "failedDownload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Downloads (" + failedDownload.size() + ')')); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedDownload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedDownload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedUpload.isEmpty()) { contentNode.addChild("a", "name", "failedUpload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Uploads (" + failedUpload.size() + ')')); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedUpload, new int[] { LIST_IDENTIFIER, LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!failedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "failedDirUpload"); HTMLNode failedInfobox = contentNode.addChild(pageMaker.getInfobox("failed_requests", "Failed: Directory Uploads (" + failedDirUpload.size() + ')')); HTMLNode failedContent = pageMaker.getContentNode(failedInfobox); if (advancedEnabled) { failedContent.addChild(createRequestTable(pageMaker, failedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } else { failedContent.addChild(createRequestTable(pageMaker, failedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_REASON, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedDownload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedDownload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: Downloads (" + uncompletedDownload.size() + ')')); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDownload, new int[] { LIST_IDENTIFIER, LIST_PRIORITY, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_FILENAME, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDownload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedUpload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedUpload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: Uploads (" + uncompletedUpload.size() + ')')); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedUpload, new int[] { LIST_IDENTIFIER, LIST_PRIORITY, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_FILENAME, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedUpload, new int[] { LIST_FILENAME, LIST_SIZE, LIST_MIME_TYPE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } if (!uncompletedDirUpload.isEmpty()) { contentNode.addChild("a", "name", "uncompletedDirUpload"); HTMLNode uncompletedInfobox = contentNode.addChild(pageMaker.getInfobox("requests_in_progress", "In Progress: DirUploads (" + uncompletedDirUpload.size() + ')')); HTMLNode uncompletedContent = pageMaker.getContentNode(uncompletedInfobox); if (advancedEnabled) { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDirUpload, new int[] { LIST_IDENTIFIER, LIST_FILES, LIST_PRIORITY, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } else { uncompletedContent.addChild(createRequestTable(pageMaker, uncompletedDirUpload, new int[] { LIST_FILES, LIST_TOTAL_SIZE, LIST_PROGRESS, LIST_PERSISTENCE, LIST_KEY })); } } MultiValueTable pageHeaders = new MultiValueTable(); this.writeReply(ctx, 200, "text/html", "OK", pageHeaders, pageNode.generate()); }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/QueueToadlet.java/clean/src/freenet/clients/http/QueueToadlet.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, 225, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 759, 1660, 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, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 225, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 759, 1660, 338...
IBindingFactory bfact = BindingDirectory .getFactory(Household.class); IUnmarshallingContext uctx = bfact.createUnmarshallingContext(); Household obj = (Household) uctx .unmarshalDocument(dataStream, null);
BindingSelector select = new BindingSelector(null, VERSION_ATTRIBUTE_NAME, VERSION_TEXTS, VERSION_BINDINGS); IUnmarshallingContext context = select.getContext(); context.setDocument(dataStream, null); Household obj = (Household) select .unmarshalVersioned(Household.class);
public Household loadData(InputStream dataStream) throws IOException, UnsupportedFileVersionException, IllegalArgumentException { try { IBindingFactory bfact = BindingDirectory .getFactory(Household.class); IUnmarshallingContext uctx = bfact.createUnmarshallingContext(); Household obj = (Household) uctx .unmarshalDocument(dataStream, null); return obj; } catch (JiBXException e) { LogFactory.getLog(getClass()).error("Error while JiBIxing", e); throw new IllegalArgumentException(e.getLocalizedMessage()); } }
13936 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13936/9cd0fd94c5396a228d1245a629253d7f8b6ccadf/JiBXPersistence.java/buggy/Housekeeper/trunk/housekeeper/src/java/net/sf/housekeeper/persistence/jibx/JiBXPersistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 670, 3793, 21056, 29422, 12, 4348, 501, 1228, 13, 1216, 1860, 16, 5411, 7221, 812, 1444, 503, 16, 2754, 565, 288, 3639, 775, 3639, 288, 5411, 467, 5250, 1733, 324, 3493, 273, 15689,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 670, 3793, 21056, 29422, 12, 4348, 501, 1228, 13, 1216, 1860, 16, 5411, 7221, 812, 1444, 503, 16, 2754, 565, 288, 3639, 775, 3639, 288, 5411, 467, 5250, 1733, 324, 3493, 273, 15689,...
public AttributeDescr xor_group() throws RecognitionException { AttributeDescr d; Token loc=null; Token name=null; d = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:17: (loc= 'xor-group' opt_eol name= STRING ( ';' )? opt_eol ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:17: loc= 'xor-group' opt_eol name= STRING ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,34,FOLLOW_34_in_xor_group912); following.push(FOLLOW_opt_eol_in_xor_group914); opt_eol(); following.pop(); name=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_xor_group918); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:53: ( ';' )? int alt31=2; int LA31_0 = input.LA(1); if ( LA31_0==15 ) { alt31=1; } else if ( LA31_0==EOL||LA31_0==21||LA31_0==28||LA31_0==30||(LA31_0>=32 && LA31_0<=36) ) { alt31=2; } else { NoViableAltException nvae = new NoViableAltException("298:53: ( \';\' )?", 31, 0, input); throw nvae; } switch (alt31) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:298:53: ';' { match(input,15,FOLLOW_15_in_xor_group920); } break; } following.push(FOLLOW_opt_eol_in_xor_group923); opt_eol(); following.pop(); d = new AttributeDescr( "xor-group", getString( name ) ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/98b0281519badd8cb1b48eb12934438a300e99b8/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 17586, 67, 1655, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 508, 33, 2011, 31, 540, 202, 202, 72, 273, 446, 31, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 17586, 67, 1655, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 508, 33, 2011, 31, 540, 202, 202, 72, 273, 446, 31, 54...
public ComponentException(String str) { super(str);
public ComponentException() { super();
public ComponentException(String str) { super(str); }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/674ac0aaae1138d72aab8865ac87ed037c31ca37/ComponentException.java/buggy/framework/base/src/base/org/ofbiz/base/component/ComponentException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5435, 503, 12, 780, 609, 13, 288, 3639, 2240, 12, 701, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 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, 377, 1071, 5435, 503, 12, 780, 609, 13, 288, 3639, 2240, 12, 701, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
System.out.println("** linkDown(): " + r + ':' + rp); }
System.out.println("** linkDown(): " + r + ':' + rp); }
public synchronized void linkDown(InetAddress l, int lp, InetAddress r, int rp) { System.out.println("** linkDown(): " + r + ':' + rp); }
49475 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49475/13de68466e3cf7fde6ee0bde0cee09a33e837e89/LogicalLink.java/buggy/src/org/jgroups/blocks/LogicalLink.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1692, 4164, 12, 382, 278, 1887, 328, 16, 509, 12423, 16, 14218, 436, 16, 509, 8715, 13, 288, 202, 565, 2332, 18, 659, 18, 8222, 2932, 636, 1692, 4164, 13332, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1692, 4164, 12, 382, 278, 1887, 328, 16, 509, 12423, 16, 14218, 436, 16, 509, 8715, 13, 288, 202, 565, 2332, 18, 659, 18, 8222, 2932, 636, 1692, 4164, 13332, 315, ...
Plugin plugin = au.getPlugin();
public CachedUrlSet findCachedUrlSet(PollSpec spec) { if (log.isDebug3()) log.debug3(this +".findCachedUrlSet2("+spec+")"); String auId = spec.getAuId(); ArchivalUnit au = getAuFromId(auId); if (log.isDebug3()) log.debug3("au: " + au); if (au == null) return null; Plugin plugin = au.getPlugin(); String url = spec.getUrl(); CachedUrlSet cus; if (AuUrl.isAuUrl(url)) { cus = au.getAuCachedUrlSet(); } else if ((spec.getLwrBound()!=null) && (spec.getLwrBound().equals(PollSpec.SINGLE_NODE_LWRBOUND))) { cus = plugin.makeCachedUrlSet(au, new SingleNodeCachedUrlSetSpec(url)); } else { RangeCachedUrlSetSpec rcuss = new RangeCachedUrlSetSpec(url, spec.getLwrBound(), spec.getUprBound()); cus = plugin.makeCachedUrlSet(au, rcuss); } if (log.isDebug3()) log.debug3("ret cus: " + cus); return cus; }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/2fb32b4753ab4cc6fd32a766af32b94f15059b7f/PluginManager.java/clean/src/org/lockss/plugin/PluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 15771, 1489, 694, 1104, 9839, 1489, 694, 12, 19085, 1990, 857, 13, 288, 565, 309, 261, 1330, 18, 291, 2829, 23, 10756, 613, 18, 4148, 23, 12, 2211, 397, 9654, 4720, 9839, 1489, 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, 282, 1071, 15771, 1489, 694, 1104, 9839, 1489, 694, 12, 19085, 1990, 857, 13, 288, 565, 309, 261, 1330, 18, 291, 2829, 23, 10756, 613, 18, 4148, 23, 12, 2211, 397, 9654, 4720, 9839, 1489, 69...
List<Category> categories = (List<Category>) ServiceUtils.executeService(userView,
Collection<Category> categories = (Collection<Category>) ServiceUtils.executeService(userView,
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws NumberFormatException, FenixFilterException, FenixServiceException { IUserView userView = SessionUtils.getUserView(request); Integer executionPeriodID = Integer.valueOf(request.getParameter("executionPeriodId")); ExecutionPeriod executionPeriod = (ExecutionPeriod) ServiceUtils.executeService(userView, "ReadDomainExecutionPeriodByOID", new Object[] { executionPeriodID }); List<Category> categories = (List<Category>) ServiceUtils.executeService(userView, "ReadAllDomainObjects", new Object[] { Category.class }); List<Category> monitorCategories = (List<Category>) CollectionUtils.select(categories, new Predicate(){ public boolean evaluate(Object object) { Category category = (Category) object; return category.getCode().equals("MNL") || category.getCode().equals("MNT"); }}); List<TeacherWithCreditsDTO> teachersCredits = new ArrayList<TeacherWithCreditsDTO>(); for (Department department : userView.getPerson().getManageableDepartmentCredits()) { List<Teacher> teachers = department.getTeachers(executionPeriod.getBeginDate(), executionPeriod.getEndDate()); for (Teacher teacher : teachers) { double managementCredits = teacher.getManagementFunctionsCredits(executionPeriod); double serviceExemptionsCredits = teacher.getServiceExemptionCredits(executionPeriod); int mandatoryLessonHours = 0; Category category = teacher.getCategoryForCreditsByPeriod(executionPeriod); if(!monitorCategories.contains(category)){ mandatoryLessonHours = teacher.getMandatoryLessonHours(executionPeriod); } TeacherService teacherService = teacher .getTeacherServiceByExecutionPeriod(executionPeriod); CreditLineDTO creditLineDTO = new CreditLineDTO(executionPeriod, teacherService, managementCredits, serviceExemptionsCredits, mandatoryLessonHours); TeacherWithCreditsDTO teacherWithCreditsDTO = new TeacherWithCreditsDTO(teacher, category, creditLineDTO); teachersCredits.add(teacherWithCreditsDTO); } } String sortBy = request.getParameter("sortBy"); request.setAttribute("teachersCreditsListSize", teachersCredits.size()); Iterator orderedTeacherCredits = orderList(sortBy, teachersCredits.iterator()); request.setAttribute("departmentsList", userView.getPerson().getManageableDepartmentCredits()); request.setAttribute("teachersCreditsList", orderedTeacherCredits); request.setAttribute("executionPeriodId", executionPeriodID); return mapping.findForward("show-teachers-credits-list"); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/b46f9f59f27bf5df967d7a65111dd90b815449ff/ShowTeachersCreditsDepartmentListAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/department/ShowTeachersCreditsDepartmentListAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1836, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 5411, 12446, 766, 13, 1216, 12100, 16, 478, 275, 697, 1586, 503, 16, 5411, 478, 275, 697, 15133, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1836, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 5411, 12446, 766, 13, 1216, 12100, 16, 478, 275, 697, 1586, 503, 16, 5411, 478, 275, 697, 15133, 28...
gapInsertionArray = new boolean[k+totalGapChars];
gapInsertionArray = new int[k+totalGapChars];
private long[][] recoverAlignment (AlignmentHelperLinearSpace helper) { int i=0,j, k=0; long[][] alignment = new long[lengthA + lengthB][2]; for (j = 0; j<lengthB; j++) { //gap in B while (i < lastAWhenBAligned[j]) { alignment[k][0] = CategoricalState.makeSet(A[i]); alignment[k][1] = CategoricalState.inapplicable; i++; k++; } //now we're ready to burn off a letter from B, and possibly a letter from A if diagonal. if (shapeWhenBAligned[j] == helper.noGap) { alignment[k][0] = CategoricalState.makeSet(A[i]); alignment[k][1] = CategoricalState.makeSet(B[j]); i++; } else { // gapInA alignment[k][0] = CategoricalState.inapplicable; alignment[k][1] = CategoricalState.makeSet(B[j]); } k++; } while (i < lengthA) { alignment[k][0] = CategoricalState.makeSet(A[i]); alignment[k][1] = CategoricalState.inapplicable; i++; k++; } //trim off all the empty space at the end long seq2return[][] = new long[k][2]; int ii=0; for (i=0; i<k; i++) { if (seqsWereExchanged) {//exhange the sequences seq2return[i][0] = alignment[i][1]; seq2return[i][1] = alignment[i][0]; } else { seq2return[i][0] = alignment[i][0]; seq2return[i][1] = alignment[i][1]; } } if (keepGaps) { long finalSeq2return[][] = new long[k+totalGapChars][2]; gapInsertionArray = new boolean[k+totalGapChars]; for(i=0; i<k+totalGapChars; i++) { gapInsertionArray[i] =false; } int usedGaps=0; int recentGapRunLength=0; j=0; // counts the number of letters in A seen so far for (i=0; i<k; i++) { if(seq2return[i][0] == CategoricalState.inapplicable) { recentGapRunLength++; gapInsertionArray[i+usedGaps]=true; } else { for (int m=0 ; m < followsGapSize[j]-recentGapRunLength; m++){ finalSeq2return[i+usedGaps][0] = CategoricalState.inapplicable; finalSeq2return[i+usedGaps][1] = CategoricalState.inapplicable; usedGaps++; } j++; recentGapRunLength=0; } finalSeq2return[i+usedGaps][0] = seq2return[i][0] ; finalSeq2return[i+usedGaps][1] = seq2return[i][1] ; } return finalSeq2return; } return seq2return; }
57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/a39b1631489579c7e2d8a1aab6e0bce6d7cdb330/PairwiseAligner.java/buggy/trunk/Mesquite Project/Source/mesquite/align/lib/PairwiseAligner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1525, 63, 6362, 65, 5910, 11535, 261, 11535, 2276, 15982, 3819, 4222, 13, 288, 202, 202, 474, 277, 33, 20, 16, 78, 16, 417, 33, 20, 31, 9506, 202, 5748, 63, 6362, 65, 8710,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1525, 63, 6362, 65, 5910, 11535, 261, 11535, 2276, 15982, 3819, 4222, 13, 288, 202, 202, 474, 277, 33, 20, 16, 78, 16, 417, 33, 20, 31, 9506, 202, 5748, 63, 6362, 65, 8710,...
throwableClass, true, true, null);
throwableClass, true, true, null);
public void actionPerformed(ActionEvent e) { final PsiClass throwableClass = PsiManager.getInstance(myProject).findClass("java.lang.Throwable", GlobalSearchScope.allScope(myProject)); TreeClassChooser chooser = TreeClassChooserFactory.getInstance(myProject).createInheritanceClassChooser( DebuggerBundle.message("add.exception.breakpoint.classchooser.title"), GlobalSearchScope.allScope(myProject), throwableClass, true, true, null); chooser.showDialog(); PsiClass selectedClass = chooser.getSelectedClass(); String qName = (selectedClass != null)? selectedClass.getQualifiedName() : null; if (qName != null && qName.length() > 0) { ExceptionBreakpoint breakpoint = DebuggerManagerEx.getInstanceEx(myProject).getBreakpointManager().addExceptionBreakpoint(qName, ((PsiJavaFile)selectedClass.getContainingFile()).getPackageName()); getPanel().addBreakpoint(breakpoint); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/c185097763506f95b21376899c010b6b17464d2d/ExceptionBreakpointFactory.java/clean/debugger/impl/com/intellij/debugger/ui/breakpoints/ExceptionBreakpointFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1377, 727, 453, 7722, 797, 10132, 797, 273, 453, 7722, 1318, 18, 588, 1442, 12, 4811, 4109, 2934, 4720, 797, 2932, 6290, 18, 4936, 18, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1377, 727, 453, 7722, 797, 10132, 797, 273, 453, 7722, 1318, 18, 588, 1442, 12, 4811, 4109, 2934, 4720, 797, 2932, 6290, 18, 4936, 18, 15...
public AC_Exception (String anExplaination) { super (anExplaination);
public AC_Exception () { super ();
public AC_Exception (String anExplaination) { super (anExplaination); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/9fc08ba0be9ed03b89cc0a864abdd1a27083e671/AC_Exception.java/buggy/grendel/addressbook/addresscard/AC_Exception.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12048, 67, 503, 261, 780, 392, 424, 7446, 367, 13, 288, 3639, 2240, 261, 304, 424, 7446, 367, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12048, 67, 503, 261, 780, 392, 424, 7446, 367, 13, 288, 3639, 2240, 261, 304, 424, 7446, 367, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return getTestsSupport().getSystemLanguage(this);
return SVGTestsSupport.getSystemLanguage(this);
public SVGStringList getSystemLanguage() { return getTestsSupport().getSystemLanguage(this); }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/c894adcdabbe67baf55a0333571ad839739df615/SVGGraphicsElement.java/clean/sources/org/apache/batik/dom/svg/SVGGraphicsElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11281, 780, 682, 12996, 3779, 1435, 288, 202, 2463, 11281, 14650, 6289, 18, 588, 3163, 3779, 12, 2211, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11281, 780, 682, 12996, 3779, 1435, 288, 202, 2463, 11281, 14650, 6289, 18, 588, 3163, 3779, 12, 2211, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
onError(getMessage("wscompile.missingOptionArgument", "-nd"));
onError(getMessage("wscompile.missingOptionArgument", "-r"));
protected boolean parseArguments(String[] args) { for (int i = 0; i < args.length; i++) { if (args[i].equals("")) { args[i] = null; } else if (args[i].equals("-g")) { compilerDebug = true; args[i] = null; } /*else if (args[i].equals("-O")) { compilerOptimize = true; args[i] = null; }*/ else if (args[i].equals("-verbose")) { verbose = true; args[i] = null; } else if (args[i].equals("-b")) { if(program.equals(WSGEN)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i] = null; String file = args[++i]; args[i] = null; bindingFiles.add(JAXWSUtils.absolutize(JAXWSUtils.getFileOrURLName(file))); } else { onError(getMessage("wscompile.missingOptionArgument", "-b")); usage(); return false; } } else if (args[i].equals("-version")) { report(ToolVersion.VERSION.BUILD_VERSION); doNothing = true; args[i] = null; return true; } else if (args[i].equals("-keep")) { keepGenerated = true; args[i] = null; } else if(args[i].equals("-wsdllocation")){ if(program.equals(WSGEN)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i]=null; wsdlLocation = args[++i]; args[i]=null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].equals(SERVICENAME_OPTION)) { if(program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i] = null; serviceName = QName.valueOf(args[++i]); if (serviceName.getNamespaceURI() == null || serviceName.getNamespaceURI().length() == 0) { onError(getMessage("wsgen.servicename.missing.namespace", args[i])); usage(); return false; } if (serviceName.getLocalPart() == null || serviceName.getLocalPart().length() == 0) { onError(getMessage("wsgen.servicename.missing.localname", args[i])); usage(); return false; } args[i] = null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].equals(PORTNAME_OPTION)) { if(program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { args[i] = null; portName = QName.valueOf(args[++i]); if (portName.getNamespaceURI() == null || portName.getNamespaceURI().length() == 0) { onError(getMessage("wsgen.portname.missing.namespace", args[i])); usage(); return false; } if (portName.getLocalPart() == null || portName.getLocalPart().length() == 0) { onError(getMessage("wsgen.portname.missing.localname", args[i])); usage(); return false; } args[i] = null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].equals("-d")) { if ((i + 1) < args.length) { if (destDir != null) { onError(getMessage("wscompile.duplicateOption", "-d")); usage(); return false; } args[i] = null; destDir = new File(args[++i]); args[i] = null; if (!destDir.exists()) { onError(getMessage("wscompile.noSuchDirectory", destDir.getPath())); usage(); return false; } } else { onError(getMessage("wscompile.missingOptionArgument", "-d")); usage(); return false; } } else if (args[i].equals("-nd")) { if (program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { if (nonclassDestDir != null) { onError(getMessage("wscompile.duplicateOption", "-nd")); usage(); return false; } args[i] = null; nonclassDestDir = new File(args[++i]); args[i] = null; if (!nonclassDestDir.exists()) { onError(getMessage("wscompile.noSuchDirectory", nonclassDestDir.getPath())); usage(); return false; } } else { onError(getMessage("wscompile.missingOptionArgument", "-nd")); usage(); return false; } } else if (args[i].equals("-s")) { if ((i + 1) < args.length) { if (sourceDir != null) { onError(getMessage("wscompile.duplicateOption", "-s")); usage(); return false; } args[i] = null; sourceDir = new File(args[++i]); args[i] = null; if (!sourceDir.exists()) { onError(getMessage("wscompile.noSuchDirectory", sourceDir.getPath())); usage(); return false; } } else { onError(getMessage("wscompile.missingOptionArgument", "-s")); usage(); return false; } } else if (args[i].equals("-classpath") || args[i].equals("-cp")) { if (program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } if ((i + 1) < args.length) { if (userClasspath != null) { onError(getMessage("wscompile.duplicateOption", args[i])); usage(); return false; } args[i] = null; userClasspath = args[++i]; args[i] = null; } else { onError(getMessage("wscompile.missingOptionArgument", args[i])); usage(); return false; } } else if (args[i].startsWith("-httpproxy:")) { if(program.equals(WSGEN)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } String value = args[i].substring(11); if (value.length() == 0) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } int index = value.indexOf(':'); if (index == -1) { System.setProperty("proxySet", TRUE); System.setProperty("proxyHost", value); System.setProperty("proxyPort", "8080"); } else { System.setProperty("proxySet", TRUE); System.setProperty("proxyHost", value.substring(0, index)); System.setProperty("proxyPort", value.substring(index + 1)); } args[i] = null; } else if (args[i].startsWith("-wsdl")) { if (program.equals(WSIMPORT)) { onError(getMessage("wscompile.invalidOption", args[i])); usage(); return false; } genWsdl = true; String value = args[i].substring(5); int index = value.indexOf(':'); if (index == 0) { value = value.substring(1); index = value.indexOf('/'); if (index == -1) { protocol = value; //.toLowerCase(); transport = HTTP; } else { protocol = value.substring(0, index);//.toLowerCase(); transport = value.substring(index + 1); } if (!isValidProtocol(protocol)) { onError(getMessage("wsgen.invalid.protocol", protocol, VALID_PROTOCOLS)); } if (!isValidTransport(transport)) { onError(getMessage("wsgen.invalid.transport", transport, VALID_TRANSPORTS)); } } args[i] = null; } else if (args[i].equals("-extension")) { extensions = true; args[i] = null; } else if (args[i].startsWith("-help")) { help(); return false; } } for (String arg : args) { if (arg != null) { if (arg.startsWith("-")) { onError(getMessage("wscompile.invalidOption", arg)); usage(); return false; } // the input source could be a local file or a URL,get the // abolutized URL string String fileName = arg; if (program.equals(WSGEN)) { if (!isClass(fileName)) { onError(getMessage("wsgen.class.not.found", fileName)); return false; } } else { //fileName = JAXWSUtils.absolutize(JAXWSUtils.getFileOrURLName(args[i])); } inputFiles.add(fileName); } } if (inputFiles.isEmpty()) { onError(getMessage(program+".missingFile")); usage(); return false; } if (!extensions && hasExtensions()) return false; // put jaxws and jaxb binding files properties.put(ProcessorOptions.BINDING_FILES, bindingFiles); if (!validateArguments()) { usage(); return false; } return true; }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/d6866c5c44f3dfc7c3631526a7c56fedfe38a588/CompileTool.java/buggy/jaxws-ri/tools/wscompile/src/com/sun/tools/ws/wscompile/CompileTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 1109, 4628, 12, 780, 8526, 833, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 5411, 309, 261, 1968, 63, 77, 8009, 14963, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 1109, 4628, 12, 780, 8526, 833, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 833, 18, 2469, 31, 277, 27245, 288, 5411, 309, 261, 1968, 63, 77, 8009, 14963, 2...
Method method = factory.newMethod(METHOD_NAME, ARG_TYPES, RETURN_TYPE, EXCEPTION_TYPES);
Method method = factory.newMethod(METHOD_NAME, ARG_TYPES, RETURN_TYPE, EXCEPTION_TYPES);
public void testCreatesMethodInNewNamedClass() { Method method = factory.newMethod(METHOD_NAME, ARG_TYPES, RETURN_TYPE, EXCEPTION_TYPES); assertTrue("is public", Modifier.isPublic(method.getModifiers())); assertEquals("invokedMethod name", METHOD_NAME, method.getName()); assertAllSame("arg types", ARG_TYPES, method.getParameterTypes()); assertSame("return type", RETURN_TYPE, method.getReturnType()); assertAllSame("exception types", EXCEPTION_TYPES, method.getExceptionTypes()); }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/MethodFactoryTest.java/clean/jmock/core/src/test/jmock/core/testsupport/MethodFactoryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2729, 1305, 382, 1908, 7604, 797, 1435, 288, 202, 202, 1305, 707, 273, 3272, 18, 2704, 1305, 12, 5327, 67, 1985, 16, 13984, 67, 10564, 16, 14780, 67, 2399, 16, 2313...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2729, 1305, 382, 1908, 7604, 797, 1435, 288, 202, 202, 1305, 707, 273, 3272, 18, 2704, 1305, 12, 5327, 67, 1985, 16, 13984, 67, 10564, 16, 14780, 67, 2399, 16, 2313...
Matrix covariance = centeredMatrix.transpose().times(centeredMatrix); return covariance;
return centeredMatrix.transpose().times(centeredMatrix);
public static Matrix covarianceMatrix(Database<DoubleVector> database, List<Integer> ids) { // centroid DoubleVector centroid = centroid(database, ids); // covariance matrixArray int columns = centroid.getDimensionality(); int rows = ids.size(); double[][] matrixArray = new double[rows][columns]; for (int i = 0; i < rows; i++) { DoubleVector obj = database.get(ids.get(i)); for (int d = 0; d < columns; d++) { matrixArray[i][d] = obj.getValue(d + 1) - centroid.getValue(d + 1); } } Matrix centeredMatrix = new Matrix(matrixArray); Matrix covariance = centeredMatrix.transpose().times(centeredMatrix); return covariance; }
5508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5508/ea679fae9ebe2fc20a84c550fc74729ca2c92c3f/Util.java/buggy/src/de/lmu/ifi/dbs/utilities/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 7298, 17366, 4635, 12, 4254, 32, 27047, 34, 2063, 16, 987, 32, 4522, 34, 3258, 13, 288, 565, 368, 16767, 565, 3698, 5018, 16767, 273, 16767, 12, 6231, 16, 3258, 1769, 565, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 7298, 17366, 4635, 12, 4254, 32, 27047, 34, 2063, 16, 987, 32, 4522, 34, 3258, 13, 288, 565, 368, 16767, 565, 3698, 5018, 16767, 273, 16767, 12, 6231, 16, 3258, 1769, 565, 36...
EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack(); int currentOffset = envStack.getOffset();
CocoonComponentManager.enterEnvironment(this.environment, this.manager, this.pipelineProcessor);
protected void init() { this.systemIdForCaching = this.systemId; try { this.processKey = CocoonComponentManager.startProcessing(this.environment); this.processingPipeline = this.processor.buildPipeline(this.environment); this.pipelineProcessor = CocoonComponentManager.getLastProcessor(this.environment); this.environment.changeToLastContext(); String redirectURL = this.environment.getRedirectURL(); if (redirectURL == null) { EnvironmentStack envStack = CocoonComponentManager.getCurrentEnvironmentStack(); int currentOffset = envStack.getOffset(); try { CocoonComponentManager.enterEnvironment(this.environment, this.manager, this.pipelineProcessor); envStack.resetOffset(0); this.processingPipeline.prepareInternal(this.environment); this.sourceValidity = this.processingPipeline.getValidityForEventPipeline(); final String eventPipelineKey = this.processingPipeline.getKeyForEventPipeline(); if ( eventPipelineKey != null ) { StringBuffer buffer = new StringBuffer(this.systemId); if ( this.systemId.indexOf('?') == -1) { buffer.append('?'); } else { buffer.append('&'); } buffer.append("pipelinehash="); buffer.append(eventPipelineKey); this.systemIdForCaching = buffer.toString(); } else { this.systemIdForCaching = this.systemId; } } finally { CocoonComponentManager.leaveEnvironment(); envStack.resetOffset(currentOffset); } } else { if (redirectURL.indexOf(":") == -1) { redirectURL = this.protocol + ":/" + redirectURL; } this.redirectSource = this.environment.resolveURI(redirectURL); this.redirectValidity = this.redirectSource.getValidity(); } } catch (SAXException e) { reset(); this.exception = e; } catch (Exception e) { reset(); this.exception = new SAXException("Could not get sitemap source " + this.systemId, e); } this.needsRefresh = false; }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/cf4015805a4f5769793984c6edeef3fe317c1453/SitemapSource.java/buggy/src/java/org/apache/cocoon/components/source/impl/SitemapSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 1435, 288, 3639, 333, 18, 4299, 548, 1290, 17712, 273, 333, 18, 4299, 548, 31, 3639, 775, 288, 5411, 333, 18, 2567, 653, 273, 385, 29571, 265, 1841, 1318, 18, 1937, 779...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 1435, 288, 3639, 333, 18, 4299, 548, 1290, 17712, 273, 333, 18, 4299, 548, 31, 3639, 775, 288, 5411, 333, 18, 2567, 653, 273, 385, 29571, 265, 1841, 1318, 18, 1937, 779...
public static final String[] getTreeStrings(TreeItem ti) { int nrlevels = getTreeLevel(ti) + 1; String retval[] = new String[nrlevels]; int level = 0; retval[nrlevels-1] = ti.getText(); TreeItem parent = ti.getParentItem(); while (parent!=null) { level++; retval[nrlevels-level-1]=parent.getText(); parent = parent.getParentItem(); } return retval; }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/3d662b2c7ebea403aa0721885d4e8b2ec43e4e62/Const.java/buggy/kettle/src/be/ibridge/kettle/core/Const.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 727, 514, 8526, 15867, 7957, 12, 2471, 1180, 11374, 13, 202, 95, 202, 202, 474, 9884, 12095, 273, 15867, 2355, 12, 9096, 13, 397, 404, 31, 202, 202, 780, 5221, 8526, 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, 225, 202, 482, 760, 727, 514, 8526, 15867, 7957, 12, 2471, 1180, 11374, 13, 202, 95, 202, 202, 474, 9884, 12095, 273, 15867, 2355, 12, 9096, 13, 397, 404, 31, 202, 202, 780, 5221, 8526, 273,...
CommonUtils.getResourceFile("com/limegroup/gnutella/mp3/mpg1layIII_0h_58k-VBRq30_frame1211_44100hz_joint_XingTAG_sample.mp3");
CommonUtils.getResourceFile("com/limegroup/gnutella/metadata/mpg1layIII_0h_58k-VBRq30_frame1211_44100hz_joint_XingTAG_sample.mp3");
private static void doSettings() { ConnectionSettings.PORT.setValue(PORT); ConnectionSettings.CONNECT_ON_STARTUP.setValue(false); UltrapeerSettings.EVER_ULTRAPEER_CAPABLE.setValue(false); UltrapeerSettings.DISABLE_ULTRAPEER_MODE.setValue(true); UltrapeerSettings.FORCE_ULTRAPEER_MODE.setValue(false); ConnectionSettings.NUM_CONNECTIONS.setValue(0); ConnectionSettings.LOCAL_IS_PRIVATE.setValue(false); SharingSettings.EXTENSIONS_TO_SHARE.setValue("txt;mp3"); // get the resource file for com/limegroup/gnutella File berkeley = CommonUtils.getResourceFile("com/limegroup/gnutella/berkeley.txt"); File susheel = CommonUtils.getResourceFile("com/limegroup/gnutella/susheel.txt"); File mp3 = CommonUtils.getResourceFile("com/limegroup/gnutella/mp3/mpg1layIII_0h_58k-VBRq30_frame1211_44100hz_joint_XingTAG_sample.mp3"); // now move them to the share dir CommonUtils.copy(berkeley, new File(_sharedDir, "berkeley.txt")); CommonUtils.copy(susheel, new File(_sharedDir, "susheel.txt")); CommonUtils.copy(mp3, new File(_sharedDir, "metadata.mp3")); // make sure results get through SearchSettings.MINIMUM_SEARCH_QUALITY.setValue(-2); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/3c2399e1bf502c0555b2c78a6faba59492effcc5/CreationTimeCacheTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/CreationTimeCacheTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 741, 2628, 1435, 288, 3639, 4050, 2628, 18, 6354, 18, 542, 620, 12, 6354, 1769, 202, 202, 1952, 2628, 18, 11032, 67, 673, 67, 7570, 3079, 18, 542, 620, 12, 5743, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 741, 2628, 1435, 288, 3639, 4050, 2628, 18, 6354, 18, 542, 620, 12, 6354, 1769, 202, 202, 1952, 2628, 18, 11032, 67, 673, 67, 7570, 3079, 18, 542, 620, 12, 5743, 1769, ...
public boolean hasDomainSource(final String aType, final String aName, final int aLevel)
public boolean hasDomainSource(final String aType, final String aName, final int aLevel)
public boolean hasDomainSource(final String aType, final String aName, final int aLevel) { final String aKey = aType + "|" + aName + "|" + aLevel; return domainSourceMap.containsKey(aKey); }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PlayerCharacter.java/clean/code/src/java/pcgen/core/PlayerCharacter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 711, 3748, 1830, 12, 6385, 514, 279, 559, 16, 727, 514, 279, 461, 16, 727, 509, 279, 2355, 13, 202, 95, 202, 202, 6385, 514, 279, 653, 273, 279, 559, 397, 15710, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 711, 3748, 1830, 12, 6385, 514, 279, 559, 16, 727, 514, 279, 461, 16, 727, 509, 279, 2355, 13, 202, 95, 202, 202, 6385, 514, 279, 653, 273, 279, 559, 397, 15710, 397, ...
public ReportQueryBuilder() {
public ReportQueryBuilder( ) {
public ReportQueryBuilder() { }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/457851dcc056d96f2ec05106ceba68d3c8f9162c/ReportQueryBuilder.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8706, 9073, 1435, 288, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8706, 9073, 1435, 288, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
num_triangles = triangulator.triangulateConcavePolygon(charCoords, start_vtx, vtx_count, triOutputIndex, FACE_NORMAL); if(num_triangles != -1)
if(contourCounts.length == n_contours)
private void createNewGlyph(char character) {// GlyphVector glyph_vec =// font.layoutGlyphVector(fontContext, new_chars); sourceChar[0] = character; GlyphVector glyph_vec = font.createGlyphVector(fontContext, sourceChar); // Font Y-axis is downwards, so create an affine transform to flip it. Rectangle2D v_bounds = glyph_vec.getVisualBounds(); double tx = v_bounds.getX() + 0.5 * v_bounds.getWidth(); double ty = v_bounds.getY() + 0.5 * v_bounds.getHeight(); AffineTransform neg_trans = new AffineTransform(); neg_trans.setToTranslation(-tx, -ty); neg_trans.scale(1.0, -1.0); neg_trans.translate(tx, -ty); int vtx_count = 0; int start_vtx = 0; int total_coords = 0; int total_index = 0; boolean just_closed = false; CharacterData ch_data = new CharacterData(); Rectangle2D l_bounds = glyph_vec.getLogicalBounds(); Shape glyph_shape = glyph_vec.getOutline(); PathIterator glyph_path = glyph_shape.getPathIterator(neg_trans, flatness); int num_triangles; float scale = 1 / (float)l_bounds.getHeight(); ch_data.bounds = new Rectangle2D.Float((float)l_bounds.getX() * scale, (float)l_bounds.getY() * scale, (float)l_bounds.getWidth() * scale, 1); total_coords = 0; total_index = 0; while(!glyph_path.isDone()) { switch(glyph_path.currentSegment(newCoords)) { case PathIterator.SEG_MOVETO: // end of one outline, move to the next. So, // let's close the polygon and triangulate it // before moving onto the next. // Java can sometimes issue a CLOSE before doing a // MOVETO. We want to check for that and make sure // we don't unnecessarily do a double // triangulation. if(charCoords.length < total_coords + 2) { float[] tmp = new float[total_coords + 256]; System.arraycopy(charCoords, 0, tmp, 0, total_coords); charCoords = tmp; } charCoords[total_coords++] = newCoords[0] * scale; charCoords[total_coords++] = newCoords[1] * scale; charCoords[total_coords++] = 0;//System.out.println("moveto " + newCoords[0] + " " + newCoords[1] + " " + just_closed); if(!just_closed && total_coords != 3) { if(triOutputIndex.length < vtx_count * 3) triOutputIndex = new int[vtx_count * 3]; num_triangles = triangulator.triangulateConcavePolygon(charCoords, start_vtx, vtx_count, triOutputIndex, FACE_NORMAL); if(num_triangles != -1) { num_triangles *= 3; for(int i = 0; i < num_triangles; i++) triOutputIndex[i] /= 3; if(charIndex.length < total_index + num_triangles) { int[] tmp = new int[total_index + num_triangles]; System.arraycopy(charIndex, 0, tmp, 0, total_index); charIndex = tmp; } System.arraycopy(triOutputIndex, 0, charIndex, total_index, num_triangles); total_index += num_triangles; } start_vtx = vtx_count * 3; vtx_count = 1; just_closed = false; } break; case PathIterator.SEG_LINETO: charCoords[total_coords++] = newCoords[0] * scale; charCoords[total_coords++] = newCoords[1] * scale; charCoords[total_coords++] = 0; vtx_count++;//System.out.println("coord " + newCoords[0] + " " + newCoords[1]); break; case PathIterator.SEG_CLOSE: just_closed = true; if(triOutputIndex.length < vtx_count * 3) triOutputIndex = new int[vtx_count * 3];//System.out.println("close at " + start_vtx + " " + vtx_count); num_triangles = triangulator.triangulateConcavePolygon(charCoords, start_vtx, vtx_count, triOutputIndex, FACE_NORMAL);//System.out.println("num index post triangle = " + num_triangles); if(num_triangles != -1) { num_triangles *= 3; for(int i = 0; i < num_triangles; i++) triOutputIndex[i] /= 3; if(charIndex.length < total_index + num_triangles) { int[] tmp = new int[total_index + num_triangles]; System.arraycopy(charIndex, 0, tmp, 0, total_index); charIndex = tmp; } System.arraycopy(triOutputIndex, 0, charIndex, total_index, num_triangles); total_index += num_triangles; } start_vtx = vtx_count * 3; vtx_count = 0; break; // Javadoc guarantees that no other types are used on fonts } glyph_path.next(); } // Change the Y coordinate to reflect the normal Y orientation of up // in 3D land, where Y is down in 2D land. Also, turn the triangles // around now too as they'll be changed to clockwise when ccw is needed. for(int i = 0; i < total_index / 3; i++) { int tmp = charIndex[i * 3]; charIndex[i * 3] = charIndex[i * 3 + 2]; charIndex[i * 3 + 2] = tmp; } ch_data.coordinates = createFloatBuffer(total_coords); ch_data.coordinates.put(charCoords, 0, total_coords); ch_data.coordIndex = createIntBuffer(total_index); ch_data.coordIndex.put(charIndex, 0, total_index); ch_data.numIndex = total_index; charDataMap.put(character, ch_data); }
46075 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46075/165d3fd6b1a9d1c275e0fba174df640e11333374/CharacterCreator.java/clean/src/java/org/j3d/geom/CharacterCreator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 15291, 15141, 12, 3001, 3351, 13, 565, 288, 759, 5411, 31572, 5018, 9440, 67, 8799, 273, 759, 7734, 3512, 18, 6741, 15141, 5018, 12, 5776, 1042, 16, 394, 67, 7549, 1769, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 15291, 15141, 12, 3001, 3351, 13, 565, 288, 759, 5411, 31572, 5018, 9440, 67, 8799, 273, 759, 7734, 3512, 18, 6741, 15141, 5018, 12, 5776, 1042, 16, 394, 67, 7549, 1769, 3639, ...
public void encode(Tag implicitTag, OutputStream ostream) throws IOException { if( ! implicitTag.equals(tag) ) { Assert.notReached("No implicit tags allowed for ANY"); }
public void encode(OutputStream ostream) throws IOException {
public void encode(Tag implicitTag, OutputStream ostream) throws IOException { if( ! implicitTag.equals(tag) ) { Assert.notReached("No implicit tags allowed for ANY"); } ostream.write(encoded); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/3634d4d94b208431471fe506f413f97d460c7602/ANY.java/buggy/security/jss/org/mozilla/jss/asn1/ANY.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2017, 12, 1805, 10592, 1805, 16, 8962, 320, 3256, 13, 3639, 1216, 1860, 565, 288, 3639, 309, 12, 401, 10592, 1805, 18, 14963, 12, 2692, 13, 262, 288, 5411, 5452, 18, 902, 236...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2017, 12, 1805, 10592, 1805, 16, 8962, 320, 3256, 13, 3639, 1216, 1860, 565, 288, 3639, 309, 12, 401, 10592, 1805, 18, 14963, 12, 2692, 13, 262, 288, 5411, 5452, 18, 902, 236...
setStringProperty( TableItem.CAPTION_KEY_PROP, captionKey );
setStringProperty( ITableItemModel.CAPTION_KEY_PROP, captionKey );
public void setCaptionKey( String captionKey ) throws SemanticException { setStringProperty( TableItem.CAPTION_KEY_PROP, captionKey ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d802c33711e0d111551ae23575895cd060f085b6/TableHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/TableHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 11440, 13507, 653, 12, 514, 11006, 653, 262, 1216, 24747, 503, 202, 95, 202, 202, 542, 780, 1396, 12, 3555, 1180, 18, 3587, 3725, 67, 3297, 67, 15811, 16, 11006, 653, 112...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 11440, 13507, 653, 12, 514, 11006, 653, 262, 1216, 24747, 503, 202, 95, 202, 202, 542, 780, 1396, 12, 3555, 1180, 18, 3587, 3725, 67, 3297, 67, 15811, 16, 11006, 653, 112...
m_theInstances = data;
m_theInstances = new Instances(data); m_theInstances.deleteWithMissingClass(); if (m_theInstances.numInstances() == 0) { throw new Exception("No training instances without missing class!"); } if (m_theInstances.checkForStringAttributes()) { throw new Exception("Can't handle string attributes!"); }
public void buildClassifier(Instances data) throws Exception { int i; m_rr = new Random(1); m_theInstances = data; m_disTransform = new DiscretizeFilter(); if (m_theInstances.classAttribute().isNumeric()) { m_classIsNominal = false; // use binned discretisation if the class is numeric m_disTransform.setUseMDL(false); m_disTransform.setBins(10); m_disTransform.setInvertSelection(true); // Discretize all attributes EXCEPT the class String rangeList = ""; rangeList+=(m_theInstances.classIndex()+1); System.out.println("The class col: "+m_theInstances.classIndex()); m_disTransform.setAttributeIndices(rangeList); } else { m_disTransform.setUseBetterEncoding(true); m_classIsNominal = true; } m_disTransform.inputFormat(m_theInstances); m_theInstances = Filter.useFilter(m_theInstances, m_disTransform); m_numAttributes = m_theInstances.numAttributes(); m_numInstances = m_theInstances.numInstances(); m_majority = m_theInstances.meanOrMode(m_theInstances.classAttribute()); best_first(); // reduce instances to selected features m_delTransform = new DeleteFilter(); m_delTransform.setInvertSelection(true); // set features to keep m_delTransform.setAttributeIndicesArray(m_decisionFeatures); m_delTransform.inputFormat(m_theInstances); m_theInstances = Filter.useFilter(m_theInstances, m_delTransform); // reset the number of attributes m_numAttributes = m_theInstances.numAttributes(); // create hash table m_entries = new Hashtable((int)(m_theInstances.numInstances() * 1.5)); // insert instances into the hash table for (i=0;i<m_numInstances;i++) { Instance inst = m_theInstances.instance(i); insertIntoTable(inst, null); } // Replace the global table majority with nearest neighbour? if (m_useIBk) { m_ibk = new IBk(); m_ibk.buildClassifier(m_theInstances); } // Save memory m_theInstances = new Instances(m_theInstances, 0); }
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/5a67514c4d5c4fc3fa7a8c909b19b0a2e5c0c206/DecisionTable.java/buggy/trunk/weka/classifiers/DecisionTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1361, 13860, 12, 5361, 501, 13, 1216, 1185, 225, 288, 565, 509, 277, 31, 565, 312, 67, 523, 273, 394, 8072, 12, 21, 1769, 565, 312, 67, 5787, 5361, 273, 394, 18357, 12, 892...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 13860, 12, 5361, 501, 13, 1216, 1185, 225, 288, 565, 509, 277, 31, 565, 312, 67, 523, 273, 394, 8072, 12, 21, 1769, 565, 312, 67, 5787, 5361, 273, 394, 18357, 12, 892...
return null;
return ((NestedGraphRootEditPart)viewer.getRootEditPart()).getZoomManager();
protected ZoomManager getZoomManager() { //@tag.bug.156286-Zooming.todo : ? Add zooming here ? return null; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7c7f1a63f3e87f7cee769d500ab069b927901adf/NestedGraphViewer.java/buggy/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/viewers/NestedGraphViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2285, 4252, 1318, 336, 11497, 1318, 1435, 288, 202, 202, 759, 36, 2692, 18, 925, 18, 3600, 8898, 5292, 17, 11497, 310, 18, 9012, 294, 692, 1436, 7182, 310, 2674, 692, 202, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2285, 4252, 1318, 336, 11497, 1318, 1435, 288, 202, 202, 759, 36, 2692, 18, 925, 18, 3600, 8898, 5292, 17, 11497, 310, 18, 9012, 294, 692, 1436, 7182, 310, 2674, 692, 202, 20...
if (desc != null) return cacheImage(desc);
if (desc != null) { return cacheImage(desc); }
public Image getImage(Object element) { if (element instanceof IViewDescriptor) { ImageDescriptor desc = ((IViewDescriptor) element) .getImageDescriptor(); if (desc != null) return cacheImage(desc); } else if (element instanceof IViewCategory) { ImageDescriptor desc = WorkbenchImages .getImageDescriptor(ISharedImages.IMG_OBJ_FOLDER); return cacheImage(desc); } return null; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ViewLabelProvider.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ViewLabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3421, 10567, 12, 921, 930, 13, 288, 3639, 309, 261, 2956, 1276, 467, 1767, 3187, 13, 288, 5411, 3421, 3187, 3044, 273, 14015, 45, 1767, 3187, 13, 930, 13, 10792, 263, 588, 2040, 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, 3421, 10567, 12, 921, 930, 13, 288, 3639, 309, 261, 2956, 1276, 467, 1767, 3187, 13, 288, 5411, 3421, 3187, 3044, 273, 14015, 45, 1767, 3187, 13, 930, 13, 10792, 263, 588, 2040, 3...
IN_INORNOTIN_EXPR.set(Boolean.FALSE);
public Object visit(SimpleNode node, Object data) { IN_INORNOTIN_EXPR.set(Boolean.FALSE); node.jjtGetChild(0).jjtAccept(this, data); IN_INORNOTIN_EXPR.set(null); return data; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/45c7db5b9c3d703ed4fabee51cebb349a8ffec67/CflowIdentifierLookupVisitor.java/buggy/aspectwerkz2/src/main/org/codehaus/aspectwerkz/definition/expression/visitor/CflowIdentifierLookupVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3757, 12, 5784, 907, 756, 16, 1033, 501, 13, 288, 7734, 756, 18, 78, 78, 88, 967, 1763, 12, 20, 2934, 78, 78, 88, 5933, 12, 2211, 16, 501, 1769, 3639, 2120, 67, 706, 916...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 1033, 3757, 12, 5784, 907, 756, 16, 1033, 501, 13, 288, 7734, 756, 18, 78, 78, 88, 967, 1763, 12, 20, 2934, 78, 78, 88, 5933, 12, 2211, 16, 501, 1769, 3639, 2120, 67, 706, 916...
Enumeration enum = hash.keys();
Enumeration enum = m_Hashtable.keys();
final void delete(int index) { if (!isNominal() && !isString()) throw new IllegalArgumentException("Can only remove value of" + "nominal or string attribute!"); else { m_Values = (FastVector)m_Values.copy(); m_Values.removeElementAt(index); Hashtable hash = new Hashtable(m_Hashtable.size()); Enumeration enum = hash.keys(); while (enum.hasMoreElements()) { String string = (String)enum.nextElement(); Integer valIndexObject = (Integer)m_Hashtable.get(string); int valIndex = valIndexObject.intValue(); if (valIndex > index) { hash.put(string, new Integer(valIndex - 1)); } else if (valIndex < index) { hash.put(string, valIndexObject); } } m_Hashtable = hash; }
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/7d8013ee395aa808e9620691e98c9bc014423b37/Attribute.java/buggy/trunk/weka/core/Attribute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 1430, 12, 474, 770, 13, 288, 3639, 309, 16051, 291, 26685, 1490, 1435, 597, 401, 291, 780, 10756, 4202, 604, 394, 2754, 2932, 2568, 1338, 1206, 460, 434, 6, 397, 29159, 315, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 1430, 12, 474, 770, 13, 288, 3639, 309, 16051, 291, 26685, 1490, 1435, 597, 401, 291, 780, 10756, 4202, 604, 394, 2754, 2932, 2568, 1338, 1206, 460, 434, 6, 397, 29159, 315, 1...
if (fieldAccess.isWriter()) { body.append("$args,");
if (Modifier.isStatic(fieldAccess.getField().getModifiers())) { body.append("(Object)null");
public void edit(FieldAccess fieldAccess) throws CannotCompileException { try { CtBehavior where = null; try { where = fieldAccess.where(); } catch (RuntimeException e) { // <clinit> access leads to a bug in Javassist where = ctClass.getClassInitializer(); } // filter caller context if (methodFilter(where)) { return; } // get field accessed information final String fieldName = fieldAccess.getFieldName(); final String fieldSignature = fieldAccess.getField().getType().getName() + " " + fieldName; FieldMetaData fieldMetaData = JavassistMetaDataMaker.createFieldMetaData( fieldAccess.getField() ); if ((fieldAccess.isReader() && !getFieldFilter(definition, classMetaData, fieldMetaData)) || !setFieldFilter(definition, classMetaData, fieldMetaData)) { // check the declaring class for the field is not the same as target class, // if that is the case then we have have class loaded and set in the ___AW_clazz already String declaringClassFieldName = TransformationUtil.STATIC_CLASS_FIELD; CtClass declaringClass = fieldAccess.getField().getDeclaringClass(); if (!declaringClass.getName().equals(where.getDeclaringClass().getName())) { declaringClassFieldName = addFieldAccessDeclaringClassField( declaringClass, fieldAccess.getField() ); } StringBuffer body = new StringBuffer(); if (fieldAccess.isReader()) { body.append("$_ = ($r)"); body.append(TransformationUtil.JOIN_POINT_MANAGER_FIELD); body.append('.'); body.append(TransformationUtil.PROCEED_WITH_GET_JOIN_POINT_METHOD); } else { body.append(TransformationUtil.JOIN_POINT_MANAGER_FIELD); body.append('.'); body.append(TransformationUtil.PROCEED_WITH_SET_JOIN_POINT_METHOD); } body.append('('); body.append(TransformationUtil.calculateHash(fieldAccess.getField())); body.append(','); if (fieldAccess.isWriter()) { body.append("$args,"); } if (Modifier.isStatic(fieldAccess.getField().getModifiers())) { body.append("(Object)null"); } else { body.append("$0"); } body.append(','); body.append(declaringClassFieldName); body.append(",\""); body.append(fieldSignature); body.append("\");"); fieldAccess.replace(body.toString()); context.markAsAdvised(); } } catch (NotFoundException nfe) { nfe.printStackTrace(); } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/8267838a66280752a1e0cc8d75fe9f6c391bbc8e/FieldSetGetTransformer.java/clean/aspectwerkz2/src/main/org/codehaus/aspectwerkz/transform/FieldSetGetTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 3874, 12, 974, 1862, 652, 1862, 13, 1216, 14143, 9937, 503, 288, 10792, 775, 288, 13491, 30714, 9212, 1625, 273, 446, 31, 13491, 775, 288, 18701, 1625, 273, 652, 1862, 18, 605...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 3874, 12, 974, 1862, 652, 1862, 13, 1216, 14143, 9937, 503, 288, 10792, 775, 288, 13491, 30714, 9212, 1625, 273, 446, 31, 13491, 775, 288, 18701, 1625, 273, 652, 1862, 18, 605...
if ( format == null ) super.setOutputFormat( new OutputFormat( Method.HTML, null, false ) ); else super.setOutputFormat( format );
super.setOutputFormat( format != null ? format : new OutputFormat( Method.HTML, null, false ) );
public void setOutputFormat( OutputFormat format ) { if ( format == null ) super.setOutputFormat( new OutputFormat( Method.HTML, null, false ) ); else super.setOutputFormat( format ); }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1e1ce544975980cfc9bc8941ab7c8166d350c04d/HTMLSerializer.java/clean/src/org/apache/xml/serialize/HTMLSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18113, 1630, 12, 3633, 1630, 740, 262, 565, 288, 3639, 309, 261, 740, 422, 446, 262, 5411, 2240, 18, 542, 1447, 1630, 12, 394, 3633, 1630, 12, 2985, 18, 4870, 16, 446, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18113, 1630, 12, 3633, 1630, 740, 262, 565, 288, 3639, 309, 261, 740, 422, 446, 262, 5411, 2240, 18, 542, 1447, 1630, 12, 394, 3633, 1630, 12, 2985, 18, 4870, 16, 446, 16, ...
public int getNumCallsToIteratorNext() {
public int getNumCallsToIteratorNext(){
public int getNumCallsToIteratorNext() { return numCallsToIteratorNext; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ForCanBeForeachInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/ForCanBeForeachInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 11187, 10125, 774, 3198, 2134, 1435, 95, 5411, 327, 818, 10125, 774, 3198, 2134, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 509, 11187, 10125, 774, 3198, 2134, 1435, 95, 5411, 327, 818, 10125, 774, 3198, 2134, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
wbTable=new Button(wTableComp, SWT.PUSH| SWT.CENTER);
wbTable=new Button(shell, SWT.PUSH| SWT.CENTER);
public String open() { Shell parent = getParent(); Display display = parent.getDisplay(); shell = new Shell(parent, SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX | SWT.MIN); props.setLook(shell); ModifyListener lsMod = new ModifyListener() { public void modifyText(ModifyEvent e) { input.setChanged(); } }; backupChanged = input.hasChanged(); backupUpdate = input.isUpdate(); backupAutoInc = input.isAutoIncrement(); ci = input.getDatabaseMeta(); FormLayout formLayout = new FormLayout (); formLayout.marginWidth = Const.FORM_MARGIN; formLayout.marginHeight = Const.FORM_MARGIN; shell.setLayout(formLayout); shell.setText(Messages.getString("DimensionLookupDialog.Shell.Title")); //$NON-NLS-1$ int middle = props.getMiddlePct(); int margin = Const.MARGIN; int width = Const.RIGHT; // Stepname line wlStepname=new Label(shell, SWT.RIGHT); wlStepname.setText(Messages.getString("DimensionLookupDialog.Stepname.Label")); //$NON-NLS-1$ props.setLook(wlStepname); fdlStepname=new FormData(); fdlStepname.left = new FormAttachment(0, 0); fdlStepname.right= new FormAttachment(middle, -margin); fdlStepname.top = new FormAttachment(0, margin); wlStepname.setLayoutData(fdlStepname); wStepname=new Text(shell, SWT.SINGLE | SWT.LEFT | SWT.BORDER); wStepname.setText(stepname); props.setLook(wStepname); wStepname.addModifyListener(lsMod); fdStepname=new FormData(); fdStepname.left = new FormAttachment(middle, 0); fdStepname.top = new FormAttachment(0, margin); fdStepname.right= new FormAttachment(100, 0); wStepname.setLayoutData(fdStepname); wTabFolder = new CTabFolder(shell, SWT.BORDER); props.setLook(wTabFolder, Props.WIDGET_STYLE_TAB); ////////////////////////// // START OF TABLE TAB/// /// wTableTab=new CTabItem(wTabFolder, SWT.NONE); wTableTab.setText(Messages.getString("DimensionLookupDialog.TableTab.Title")); //$NON-NLS-1$ Composite wTableComp = new Composite(wTabFolder, SWT.NONE); props.setLook(wTableComp); FormLayout tableLayout = new FormLayout(); tableLayout.marginWidth = 3; tableLayout.marginHeight = 3; wTableComp.setLayout(tableLayout); // Connection line wConnection = addConnectionLine(wTableComp, null, middle, margin); if (input.getDatabaseMeta()==null && transMeta.nrDatabases()==1) wConnection.select(0); wConnection.addModifyListener(lsMod); wConnection.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { // We have new content: change ci connection: ci = transMeta.findDatabase(wConnection.getText()); setFlags(); } }); // Table line... wlTable=new Label(wTableComp, SWT.RIGHT); wlTable.setText(Messages.getString("DimensionLookupDialog.TargeTable.Label")); //$NON-NLS-1$ props.setLook(wlTable); fdlTable=new FormData(); fdlTable.left = new FormAttachment(0, 0); fdlTable.right= new FormAttachment(middle, -margin); fdlTable.top = new FormAttachment(wConnection, margin); wlTable.setLayoutData(fdlTable); wbTable=new Button(wTableComp, SWT.PUSH| SWT.CENTER); props.setLook(wbTable); wbTable.setText(Messages.getString("DimensionLookupDialog.Browse.Button")); //$NON-NLS-1$ fdbTable=new FormData(); fdbTable.right= new FormAttachment(100, 0); fdbTable.top = new FormAttachment(wConnection, margin); wbTable.setLayoutData(fdbTable); wTable=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTable); wTable.addModifyListener(lsMod); fdTable=new FormData(); fdTable.left = new FormAttachment(middle, 0); fdTable.top = new FormAttachment(wConnection, margin); fdTable.right= new FormAttachment(wbTable, 0); wTable.setLayoutData(fdTable); // Commit size ... wlCommit=new Label(wTableComp, SWT.RIGHT); wlCommit.setText(Messages.getString("DimensionLookupDialog.Commit.Label")); //$NON-NLS-1$ props.setLook(wlCommit); fdlCommit=new FormData(); fdlCommit.left = new FormAttachment(0, 0); fdlCommit.right= new FormAttachment(middle, -margin); fdlCommit.top = new FormAttachment(wTable, margin); wlCommit.setLayoutData(fdlCommit); wCommit=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wCommit); wCommit.addModifyListener(lsMod); fdCommit=new FormData(); fdCommit.left = new FormAttachment(middle, 0); fdCommit.top = new FormAttachment(wTable, margin); fdCommit.right= new FormAttachment(100, 0); wCommit.setLayoutData(fdCommit); // Technical key field: wlTk=new Label(wTableComp, SWT.RIGHT); wlTk.setText(Messages.getString("DimensionLookupDialog.TechnicalKeyField.Label")); //$NON-NLS-1$ props.setLook(wlTk); fdlTk=new FormData(); fdlTk.left = new FormAttachment(0, 0); fdlTk.right= new FormAttachment(middle, -margin); fdlTk.top = new FormAttachment(wCommit, margin); wlTk.setLayoutData(fdlTk); wTk=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTk); wTk.addModifyListener(lsMod); fdTk=new FormData(); fdTk.left = new FormAttachment(middle, 0); fdTk.top = new FormAttachment(wCommit, margin); fdTk.right= new FormAttachment(50+middle/2, 0); wTk.setLayoutData(fdTk); wlTkRename=new Label(wTableComp, SWT.RIGHT); wlTkRename.setText(Messages.getString("DimensionLookupDialog.NewName.Label")); //$NON-NLS-1$ props.setLook(wlTkRename); fdlTkRename=new FormData(); fdlTkRename.left = new FormAttachment(50+middle/2, margin); fdlTkRename.top = new FormAttachment(wCommit, margin); wlTkRename.setLayoutData(fdlTkRename); wTkRename=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTkRename); wTkRename.addModifyListener(lsMod); fdTkRename=new FormData(); fdTkRename.left = new FormAttachment(wlTkRename, margin); fdTkRename.top = new FormAttachment(wCommit, margin); fdTkRename.right= new FormAttachment(100, 0); wTkRename.setLayoutData(fdTkRename); //////////////////////////////////////////////////// // The key creation box //////////////////////////////////////////////////// gTechGroup = new Group(wTableComp, SWT.SHADOW_ETCHED_IN); gTechGroup.setText(Messages.getString("DimensionLookupDialog.TechGroup.Label")); //$NON-NLS-1$; GridLayout gridLayout = new GridLayout(3, false); gTechGroup.setLayout(gridLayout); fdTechGroup=new FormData(); fdTechGroup.left = new FormAttachment(middle, 0); fdTechGroup.top = new FormAttachment(wTk, margin); fdTechGroup.right = new FormAttachment(100, 0); gTechGroup.setBackground(shell.getBackground()); // the default looks ugly gTechGroup.setLayoutData(fdTechGroup); // Use maximum of table + 1 wTableMax=new Button(gTechGroup, SWT.RADIO); props.setLook(wTableMax); wTableMax.setSelection(false); gdTableMax=new GridData(); wTableMax.setLayoutData(gdTableMax); wTableMax.setToolTipText(Messages.getString("DimensionLookupDialog.TableMaximum.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ wlTableMax=new Label(gTechGroup, SWT.LEFT); wlTableMax.setText(Messages.getString("DimensionLookupDialog.TableMaximum.Label")); //$NON-NLS-1$ props.setLook(wlTableMax); gdlTableMax = new GridData(GridData.FILL_BOTH); gdlTableMax.horizontalSpan = 2; gdlTableMax.verticalSpan = 1; wlTableMax.setLayoutData(gdlTableMax); // Sequence Check Button wSeqButton=new Button(gTechGroup, SWT.RADIO); props.setLook(wSeqButton); wSeqButton.setSelection(false); gdSeqButton=new GridData(); wSeqButton.setLayoutData(gdSeqButton); wSeqButton.setToolTipText(Messages.getString("DimensionLookupDialog.Sequence.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ wlSeqButton=new Label(gTechGroup, SWT.LEFT); wlSeqButton.setText(Messages.getString("DimensionLookupDialog.Sequence.Label")); //$NON-NLS-1$ props.setLook(wlSeqButton); gdlSeqButton=new GridData(); wlSeqButton.setLayoutData(gdlSeqButton); wSeq=new Text(gTechGroup, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wSeq); wSeq.addModifyListener(lsMod); gdSeq=new GridData(GridData.FILL_HORIZONTAL); wSeq.setLayoutData(gdSeq); wSeq.addFocusListener(new FocusListener() { public void focusGained(FocusEvent arg0) { input.setTechKeyCreation(DimensionLookupMeta.CREATION_METHOD_SEQUENCE); wSeqButton.setSelection(true); wAutoinc.setSelection(false); wTableMax.setSelection(false); } public void focusLost(FocusEvent arg0) { } }); // Use an autoincrement field? wAutoinc=new Button(gTechGroup, SWT.RADIO); props.setLook(wAutoinc); wAutoinc.setSelection(false); gdAutoinc=new GridData(); wAutoinc.setLayoutData(gdAutoinc); wAutoinc.setToolTipText(Messages.getString("DimensionLookupDialog.AutoincButton.Tooltip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ wlAutoinc=new Label(gTechGroup, SWT.LEFT); wlAutoinc.setText(Messages.getString("DimensionLookupDialog.Autoincrement.Label")); //$NON-NLS-1$ props.setLook(wlAutoinc); gdlAutoinc=new GridData(); wlAutoinc.setLayoutData(gdlAutoinc); setTableMax(); setSequence(); setAutoincUse(); /* // Use an autoincrement field? wlAutoinc=new Label(wTableComp, SWT.RIGHT); wlAutoinc.setText(Messages.getString("DimensionLookupDialog.AutoInc.Label")); //$NON-NLS-1$ props.setLook(wlAutoinc); fdlAutoinc=new FormData(); fdlAutoinc.left = new FormAttachment(0, 0); fdlAutoinc.right= new FormAttachment(middle, -margin); fdlAutoinc.top = new FormAttachment(wTk, margin); wlAutoinc.setLayoutData(fdlAutoinc); wAutoinc=new Button(wTableComp, SWT.CHECK); props.setLook(wAutoinc); fdAutoinc=new FormData(); fdAutoinc.left = new FormAttachment(middle, 0); fdAutoinc.top = new FormAttachment(wTk, margin); fdAutoinc.right= new FormAttachment(100, 0); wAutoinc.setLayoutData(fdAutoinc); wAutoinc.setToolTipText(Messages.getString("DimensionLookupDialog.AutoInc.ToolTip",Const.CR)); //$NON-NLS-1$ //$NON-NLS-2$ // Clicking on update changes the options in the update combo boxes! wAutoinc.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { input.setAutoIncrement( !input.isAutoIncrement() ); input.setChanged(); setFlags(); } } ); // Sequence key field: wlSeq=new Label(wTableComp, SWT.RIGHT); wlSeq.setText(Messages.getString("DimensionLookupDialog.Sequence.Label")); //$NON-NLS-1$ props.setLook(wlSeq); fdlSeq=new FormData(); fdlSeq.left = new FormAttachment(0, 0); fdlSeq.right= new FormAttachment(middle, -margin); fdlSeq.top = new FormAttachment(wlAutoinc, margin); wlSeq.setLayoutData(fdlSeq); wSeq=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wSeq); wSeq.addModifyListener(lsMod); fdSeq=new FormData(); fdSeq.left = new FormAttachment(middle, 0); fdSeq.top = new FormAttachment(wlAutoinc, margin); fdSeq.right= new FormAttachment(100, 0); wSeq.setLayoutData(fdSeq);*/ // Version key field: wlVersion=new Label(wTableComp, SWT.RIGHT); wlVersion.setText(Messages.getString("DimensionLookupDialog.Version.Label")); //$NON-NLS-1$ props.setLook(wlVersion); fdlVersion=new FormData(); fdlVersion.left = new FormAttachment(0, 0); fdlVersion.right= new FormAttachment(middle, -margin); fdlVersion.top = new FormAttachment(gTechGroup, margin); wlVersion.setLayoutData(fdlVersion); wVersion=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wVersion); wVersion.addModifyListener(lsMod); fdVersion=new FormData(); fdVersion.left = new FormAttachment(middle, 0); fdVersion.top = new FormAttachment(gTechGroup, margin); fdVersion.right= new FormAttachment(100, 0); wVersion.setLayoutData(fdVersion); // Datefield line wlDatefield=new Label(wTableComp, SWT.RIGHT); wlDatefield.setText(Messages.getString("DimensionLookupDialog.Datefield.Label")); //$NON-NLS-1$ props.setLook(wlDatefield); fdlDatefield=new FormData(); fdlDatefield.left = new FormAttachment(0, 0); fdlDatefield.right= new FormAttachment(middle, -margin); fdlDatefield.top = new FormAttachment(wVersion, margin); wlDatefield.setLayoutData(fdlDatefield); wDatefield=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wDatefield); wDatefield.addModifyListener(lsMod); fdDatefield=new FormData(); fdDatefield.left = new FormAttachment(middle, 0); fdDatefield.top = new FormAttachment(wVersion, margin); fdDatefield.right= new FormAttachment(100, 0); wDatefield.setLayoutData(fdDatefield); // Fromdate line // // 0 [wlFromdate] middle [wFromdate] (100-middle)/3 [wlMinyear] 2*(100-middle)/3 [wMinyear] 100% // wlFromdate=new Label(wTableComp, SWT.RIGHT); wlFromdate.setText(Messages.getString("DimensionLookupDialog.Fromdate.Label")); //$NON-NLS-1$ props.setLook(wlFromdate); fdlFromdate=new FormData(); fdlFromdate.left = new FormAttachment(0, 0); fdlFromdate.right= new FormAttachment(middle, -margin); fdlFromdate.top = new FormAttachment(wDatefield, margin); wlFromdate.setLayoutData(fdlFromdate); wFromdate=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wFromdate); wFromdate.addModifyListener(lsMod); fdFromdate=new FormData(); fdFromdate.left = new FormAttachment(middle, 0); fdFromdate.right= new FormAttachment(middle+(100-middle)/3, -margin); fdFromdate.top = new FormAttachment(wDatefield, margin); wFromdate.setLayoutData(fdFromdate); // Minyear line wlMinyear=new Label(wTableComp, SWT.RIGHT); wlMinyear.setText(Messages.getString("DimensionLookupDialog.Minyear.Label")); //$NON-NLS-1$ props.setLook(wlMinyear); fdlMinyear=new FormData(); fdlMinyear.left = new FormAttachment(wFromdate, margin); fdlMinyear.right = new FormAttachment(middle+2*(100-middle)/3, -margin); fdlMinyear.top = new FormAttachment(wDatefield, margin); wlMinyear.setLayoutData(fdlMinyear); wMinyear=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wMinyear); wMinyear.addModifyListener(lsMod); fdMinyear=new FormData(); fdMinyear.left = new FormAttachment(wlMinyear, margin); fdMinyear.right= new FormAttachment(100, 0); fdMinyear.top = new FormAttachment(wDatefield, margin); wMinyear.setLayoutData(fdMinyear); wMinyear.setToolTipText(Messages.getString("DimensionLookupDialog.Minyear.ToolTip")); //$NON-NLS-1$ // Todate line wlTodate=new Label(wTableComp, SWT.RIGHT); wlTodate.setText(Messages.getString("DimensionLookupDialog.Todate.Label")); //$NON-NLS-1$ props.setLook(wlTodate); fdlTodate=new FormData(); fdlTodate.left = new FormAttachment(0, 0); fdlTodate.right= new FormAttachment(middle, -margin); fdlTodate.top = new FormAttachment(wFromdate, margin); wlTodate.setLayoutData(fdlTodate); wTodate=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wTodate); wTodate.addModifyListener(lsMod); fdTodate=new FormData(); fdTodate.left = new FormAttachment(middle, 0); fdTodate.right= new FormAttachment(middle+(100-middle)/3, -margin); fdTodate.top = new FormAttachment(wFromdate, margin); wTodate.setLayoutData(fdTodate); // Maxyear line wlMaxyear=new Label(wTableComp, SWT.RIGHT); wlMaxyear.setText(Messages.getString("DimensionLookupDialog.Maxyear.Label")); //$NON-NLS-1$ props.setLook(wlMaxyear); fdlMaxyear=new FormData(); fdlMaxyear.left = new FormAttachment(wTodate, margin); fdlMaxyear.right = new FormAttachment(middle+2*(100-middle)/3, -margin); fdlMaxyear.top = new FormAttachment(wFromdate, margin); wlMaxyear.setLayoutData(fdlMaxyear); wMaxyear=new Text(wTableComp, SWT.SINGLE | SWT.LEFT | SWT.BORDER); props.setLook(wMaxyear); wMaxyear.addModifyListener(lsMod); fdMaxyear=new FormData(); fdMaxyear.left = new FormAttachment(wlMaxyear, margin); fdMaxyear.right= new FormAttachment(100, 0); fdMaxyear.top = new FormAttachment(wFromdate, margin); wMaxyear.setLayoutData(fdMaxyear); wMaxyear.setToolTipText(Messages.getString("DimensionLookupDialog.Maxyear.ToolTip")); //$NON-NLS-1$ // Update the dimension? wlUpdate=new Label(wTableComp, SWT.RIGHT); wlUpdate.setText(Messages.getString("DimensionLookupDialog.Update.Label")); //$NON-NLS-1$ props.setLook(wlUpdate); fdlUpdate=new FormData(); fdlUpdate.left = new FormAttachment(0, 0); fdlUpdate.right= new FormAttachment(middle, -margin); fdlUpdate.top = new FormAttachment(wMaxyear, margin); wlUpdate.setLayoutData(fdlUpdate); wUpdate=new Button(wTableComp, SWT.CHECK); props.setLook(wUpdate); fdUpdate=new FormData(); fdUpdate.left = new FormAttachment(middle, 0); fdUpdate.right= new FormAttachment(0, middle+width); fdUpdate.top = new FormAttachment(wMaxyear, margin); wUpdate.setLayoutData(fdUpdate); fdTableComp=new FormData(); fdTableComp.left = new FormAttachment(0, 0); fdTableComp.top = new FormAttachment(0, 0); fdTableComp.right = new FormAttachment(100, 0); fdTableComp.bottom= new FormAttachment(100, 0); wTableComp.setLayoutData(fdTableComp); wTableComp.layout(); wTableTab.setControl(wTableComp); ///////////////////////////////////////////////////////////// /// END OF TABLE TAB ///////////////////////////////////////////////////////////// ////////////////////////// // START OF KEY TAB /// /// wKeyTab=new CTabItem(wTabFolder, SWT.NONE); wKeyTab.setText(Messages.getString("DimensionLookupDialog.KeyTab.CTabItem")); //$NON-NLS-1$ FormLayout keyLayout = new FormLayout (); keyLayout.marginWidth = 3; keyLayout.marginHeight = 3; Composite wKeyComp = new Composite(wTabFolder, SWT.NONE); props.setLook(wKeyComp); wKeyComp.setLayout(keyLayout); // The Lookup fields: usualy the key // wlKey=new Label(wKeyComp, SWT.NONE); wlKey.setText(Messages.getString("DimensionLookupDialog.KeyFields.Label")); //$NON-NLS-1$ props.setLook(wlKey); fdlKey=new FormData(); fdlKey.left = new FormAttachment(0, 0); fdlKey.top = new FormAttachment(0, margin); fdlKey.right = new FormAttachment(100, 0); wlKey.setLayoutData(fdlKey); int nrKeyCols=2; int nrKeyRows=(input.getKeyStream()!=null?input.getKeyStream().length:1); ColumnInfo[] ciKey=new ColumnInfo[nrKeyCols]; ciKey[0]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.DimensionField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciKey[1]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.FieldInStream"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ wKey=new TableView(wKeyComp, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL, ciKey, nrKeyRows, lsMod, props ); fdKey=new FormData(); fdKey.left = new FormAttachment(0, 0); fdKey.top = new FormAttachment(wlKey, margin); fdKey.right = new FormAttachment(100, 0); fdKey.bottom= new FormAttachment(100, 0); wKey.setLayoutData(fdKey); fdKeyComp = new FormData(); fdKeyComp.left = new FormAttachment(0, 0); fdKeyComp.top = new FormAttachment(0, 0); fdKeyComp.right = new FormAttachment(100, 0); fdKeyComp.bottom= new FormAttachment(100, 0); wKeyComp.setLayoutData(fdKeyComp); wKeyComp.layout(); wKeyTab.setControl(wKeyComp); ///////////////////////////////////////////////////////////// /// END OF KEY TAB ///////////////////////////////////////////////////////////// // Fields tab... // wFieldsTab = new CTabItem(wTabFolder, SWT.NONE); wFieldsTab.setText(Messages.getString("DimensionLookupDialog.FieldsTab.CTabItem.Title")); //$NON-NLS-1$ FormLayout fieldsLayout = new FormLayout (); fieldsLayout.marginWidth = Const.FORM_MARGIN; fieldsLayout.marginHeight = Const.FORM_MARGIN; Composite wFieldsComp = new Composite(wTabFolder, SWT.NONE); wFieldsComp.setLayout(fieldsLayout); props.setLook(wFieldsComp); wGet=new Button(wFieldsComp, SWT.PUSH); wGet.setText(Messages.getString("DimensionLookupDialog.GetFields.Button")); //$NON-NLS-1$ setButtonPositions(new Button[] { wGet }, margin, null); // THE UPDATE/INSERT TABLE wlUpIns=new Label(wFieldsComp, SWT.NONE); wlUpIns.setText(Messages.getString("DimensionLookupDialog.UpdateOrInsertFields.Label")); //$NON-NLS-1$ props.setLook(wlUpIns); fdlUpIns=new FormData(); fdlUpIns.left = new FormAttachment(0, 0); fdlUpIns.top = new FormAttachment(0, margin); wlUpIns.setLayoutData(fdlUpIns); int UpInsCols=3; int UpInsRows= (input.getFieldStream()!=null?input.getFieldStream().length:1); final ColumnInfo[] ciUpIns=new ColumnInfo[UpInsCols]; ciUpIns[0]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.DimensionField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciUpIns[1]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.StreamField"), ColumnInfo.COLUMN_TYPE_TEXT, false); //$NON-NLS-1$ ciUpIns[2]=new ColumnInfo(Messages.getString("DimensionLookupDialog.ColumnInfo.TypeOfDimensionUpdate"), ColumnInfo.COLUMN_TYPE_CCOMBO, input.isUpdate()?DimensionLookupMeta.typeDesc:DimensionLookupMeta.typeDescLookup ); //$NON-NLS-1$ wUpIns=new TableView(wFieldsComp, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL, ciUpIns, UpInsRows, lsMod, props ); fdUpIns=new FormData(); fdUpIns.left = new FormAttachment(0, 0); fdUpIns.top = new FormAttachment(wlUpIns, margin); fdUpIns.right = new FormAttachment(100, 0); fdUpIns.bottom= new FormAttachment(wGet, -margin); wUpIns.setLayoutData(fdUpIns); // Clicking on update changes the options in the update combo boxes! wUpdate.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { input.setUpdate(!input.isUpdate()); input.setChanged(); setFlags(); } } ); fdFieldsComp=new FormData(); fdFieldsComp.left = new FormAttachment(0, 0); fdFieldsComp.top = new FormAttachment(0, 0); fdFieldsComp.right = new FormAttachment(100, 0); fdFieldsComp.bottom= new FormAttachment(100, 0); wFieldsComp.setLayoutData(fdFieldsComp); wFieldsComp.layout(); wFieldsTab.setControl(wFieldsComp); fdTabFolder = new FormData(); fdTabFolder.left = new FormAttachment(0, 0); fdTabFolder.top = new FormAttachment(wStepname, margin); fdTabFolder.right = new FormAttachment(100, 0); fdTabFolder.bottom= new FormAttachment(100, -50); wTabFolder.setLayoutData(fdTabFolder); // THE BUTTONS wOK=new Button(shell, SWT.PUSH); wOK.setText(Messages.getString("System.Button.OK")); //$NON-NLS-1$ wCreate=new Button(shell, SWT.PUSH); wCreate.setText(Messages.getString("DimensionLookupDialog.SQL.Button")); //$NON-NLS-1$ wCancel=new Button(shell, SWT.PUSH); wCancel.setText(Messages.getString("System.Button.Cancel")); //$NON-NLS-1$ setButtonPositions(new Button[] { wOK, wCreate, wCancel }, margin, wTabFolder); // Add listeners lsOK = new Listener() { public void handleEvent(Event e) { ok(); } }; lsGet = new Listener() { public void handleEvent(Event e) { get(); } }; lsCreate = new Listener() { public void handleEvent(Event e) { create(); } }; lsCancel = new Listener() { public void handleEvent(Event e) { cancel(); } }; wOK.addListener (SWT.Selection, lsOK ); wGet.addListener (SWT.Selection, lsGet ); wCreate.addListener(SWT.Selection, lsCreate); wCancel.addListener(SWT.Selection, lsCancel); lsDef=new SelectionAdapter() { public void widgetDefaultSelected(SelectionEvent e) { ok(); } }; wStepname.addSelectionListener( lsDef ); wTable.addSelectionListener( lsDef ); wCommit.addSelectionListener( lsDef ); wTk.addSelectionListener( lsDef ); wTkRename.addSelectionListener( lsDef ); wSeq.addSelectionListener( lsDef ); wVersion.addSelectionListener( lsDef ); wDatefield.addSelectionListener( lsDef ); wFromdate.addSelectionListener( lsDef ); wMinyear.addSelectionListener( lsDef ); wTodate.addSelectionListener( lsDef ); wMaxyear.addSelectionListener( lsDef ); // Detect X or ALT-F4 or something that kills this window... shell.addShellListener( new ShellAdapter() { public void shellClosed(ShellEvent e) { cancel(); } } ); wbTable.addSelectionListener ( new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { getTableName(); } } ); wTabFolder.setSelection(0); // Set the shell size, based upon previous time... setSize(); getData(); input.setChanged(backupChanged); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } return stepname; }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/3197c6629f2cd950b363a8e949a3fa1451d2d42d/DimensionLookupDialog.java/clean/kettle/src/be/ibridge/kettle/trans/step/dimensionlookup/DimensionLookupDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1696, 1435, 202, 95, 202, 202, 13220, 982, 273, 5089, 5621, 202, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 202, 10304, 273, 394, 19433, 12, 2938, 16, 348, 8588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1696, 1435, 202, 95, 202, 202, 13220, 982, 273, 5089, 5621, 202, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 202, 10304, 273, 394, 19433, 12, 2938, 16, 348, 8588...
out.println("<tr>");
out.println("<tr >");
protected void doRenderMenu(GridSphereEvent event, String[] links) throws PortletLayoutException, IOException { PortletResponse res = event.getPortletResponse(); PrintWriter out = res.getWriter(); // Render tabs titles out.println("<table class=\"tab-pane\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"); out.println("<tr>"); out.println("<td class=\"tab-empty\">&nbsp;</td>"); PortletTab tab; for (int i = 0; i < tabs.size(); i++) { String title = getTitleAt(i); tab = (PortletTab) tabs.get(i); if (tab.isSelected()) { out.println("<td><img src=\"themes/" + theme + "/images/tab-active-left.gif\"/></td>"); out.println("<td class=\"tab-active\">" + title + "</td>"); out.println("<td><img src=\"themes/" + theme + "/images/tab-active-right.gif\"/></td>"); } else { out.println("<td><img src=\"themes/" + theme + "/images/tab-inactive-left.gif\"/></td>"); out.println("<td class=\"tab-inactive\"><a class=\"tab-menu\" href=\"" + links[i] + "\" >" + title + "</a>"); out.println("<td><img src=\"themes/" + theme + "/images/tab-inactive-right.gif\"/></td>"); } out.println("<td class=\"tab-empty\">&nbsp;</td>"); } out.println("<td class=\"tab-fillup\">&nbsp</td></tr></table>"); PortletTab selectedTab = (PortletTab) tabs.get(selectedIndex); if (selectedTab != null) selectedTab.doRender(event); }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/fc65cc45960f8664776aed23dc05e72e3ba54b42/PortletTabbedPane.java/buggy/src/org/gridlab/gridsphere/layout/PortletTabbedPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 3420, 4599, 12, 6313, 22747, 1133, 871, 16, 514, 8526, 4716, 13, 1216, 21305, 3744, 503, 16, 1860, 288, 3639, 21305, 1064, 400, 273, 871, 18, 588, 18566, 1064, 5621, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 3420, 4599, 12, 6313, 22747, 1133, 871, 16, 514, 8526, 4716, 13, 1216, 21305, 3744, 503, 16, 1860, 288, 3639, 21305, 1064, 400, 273, 871, 18, 588, 18566, 1064, 5621, 3639,...
log.error(e);
System.err.println(e);
public static void main(String[] args) { try { Topology top=new Topology(); top.setLayout(null); top.setSize(240, 507); top.start(); } catch(Exception e) { log.error(e); e.printStackTrace(); System.exit(0); } }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/13de68466e3cf7fde6ee0bde0cee09a33e837e89/Topology.java/buggy/src/org/jgroups/demos/Topology.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 775, 288, 5411, 19726, 1760, 33, 2704, 19726, 5621, 5411, 1760, 18, 542, 3744, 12, 2011, 1769, 5411, 1760, 18, 542, 1225, 12, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 3639, 775, 288, 5411, 19726, 1760, 33, 2704, 19726, 5621, 5411, 1760, 18, 542, 3744, 12, 2011, 1769, 5411, 1760, 18, 542, 1225, 12, 28...
if(i < blocks.size()) {
if(i < blocks.size()) {
protected final int findViewGap(int indx) { int i = blocks.size() / 2; int imin = 0; int imax = blocks.size() - 1; do { Block b = (Block) blocks.get(i); if(b.viewStart <= indx && b.viewEnd >= indx) { return -2; } else { if(b.viewStart < indx) { imin = i+1; i = imin + (imax - imin) / 2; } else { imax = i-1; i = imin + (imax - imin) / 2; } } } while(imin <= imax); if(i < blocks.size()) { Block b = (Block) blocks.get(i); if(b.viewEnd < indx) { return i; } else { return i-1; } } else { return i-1; } }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/2832923aaa480545045a81778c041b53a9dcb1ff/SimpleGappedSymbolList.java/clean/src/org/biojava/bio/symbol/SimpleGappedSymbolList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 509, 28778, 14001, 12, 474, 24732, 13, 288, 565, 509, 277, 273, 4398, 18, 1467, 1435, 342, 576, 31, 565, 509, 709, 267, 273, 374, 31, 565, 509, 27749, 273, 4398, 18, 1467, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 509, 28778, 14001, 12, 474, 24732, 13, 288, 565, 509, 277, 273, 4398, 18, 1467, 1435, 342, 576, 31, 565, 509, 709, 267, 273, 374, 31, 565, 509, 27749, 273, 4398, 18, 1467, ...
{ UIUtilities.centerAndShow(dialog); }
{ UIUtilities.centerAndShow(dialog); }
public void showDialog(JDialog dialog) { UIUtilities.centerAndShow(dialog); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/a81a5a58f8e54d006d057455465766c8d3d72998/ViewerCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2405, 6353, 12, 46, 6353, 6176, 13, 202, 95, 202, 202, 5370, 11864, 18, 5693, 1876, 5706, 12, 12730, 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, 2405, 6353, 12, 46, 6353, 6176, 13, 202, 95, 202, 202, 5370, 11864, 18, 5693, 1876, 5706, 12, 12730, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
dos.close();
void dumpBDDConfig(String fileName) throws IOException { DataOutputStream dos = new DataOutputStream(new FileOutputStream(fileName)); for (int i = 0; i < bdd.numberOfDomains(); ++i) { BDDDomain d = bdd.getDomain(i); dos.writeBytes(d.getName()+" "+d.size()+"\n"); } dos.close(); }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/b43e068069ef682f091dc7531466761863db32b6/BuildBDDIR.java/buggy/joeq_core/joeq/Compiler/Analysis/BDD/BuildBDDIR.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 4657, 38, 5698, 809, 12, 780, 3968, 13, 1216, 1860, 288, 3639, 28680, 16153, 273, 394, 28680, 12, 2704, 12942, 12, 17812, 10019, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 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, 918, 4657, 38, 5698, 809, 12, 780, 3968, 13, 1216, 1860, 288, 3639, 28680, 16153, 273, 394, 28680, 12, 2704, 12942, 12, 17812, 10019, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3...
Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getDesignTimeSeries();
Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)) .getSeriesDefinitions().get(0)).getDesignTimeSeries();
private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) { Chart helperModel = (Chart) EcoreUtil.copy(currentChart); if((currentChart instanceof ChartWithAxes)) // Chart is ChartWithAxes { if(currentChart.getType().equals(sType)) // Original chart is of this type (BarChart) { if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series.setStacked(false); } } } } else if(currentChart.getType().equals("Line Chart") || currentChart.getType().equals("Bar Chart") || currentChart.getType().equals("Scatter Chart")) { if(!currentChart.getType().equals("Stock Chart")) { currentChart.setSampleData(getConvertedSampleData(currentChart.getSampleData())); } currentChart.setType(sType); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.DATE_TIME_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(true); if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is not of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().set(j, series); } } } } else { return null; } } else { // Create a new instance of the correct type and set initial properties currentChart = ChartWithAxesImpl.create(); currentChart.setType(sType); currentChart.setSubType(sNewSubType); ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.DATE_TIME_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(true); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); // Copy generic chart properties from the old chart currentChart.setBlock(helperModel.getBlock()); currentChart.setDescription(helperModel.getDescription()); currentChart.setGridColumnCount(helperModel.getGridColumnCount()); currentChart.setSampleData(getConvertedSampleData(helperModel.getSampleData())); currentChart.setScript(helperModel.getScript()); currentChart.setSeriesThickness(helperModel.getSeriesThickness()); currentChart.setUnits(helperModel.getUnits()); if(helperModel.getType().equals("Pie Chart")) { // Clear existing series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().clear(); // Copy base series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().add(((ChartWithoutAxes) helperModel).getSeriesDefinitions().get(0)); // Clear existing series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().clear(); // Copy orthogonal series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().addAll(((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeriesDefinitions()); // Update the base series Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getDesignTimeSeries(); series = getConvertedSeries(series); // Clear existing series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().clear(); // Add converted series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().add(series); // Update the orthogonal series EList seriesdefinitions = ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); // Clear any existing series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); // Add the new series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } else { return null; } } if(currentChart instanceof ChartWithAxes && !((ChartWithAxes) currentChart).getOrientation().equals(newOrientation)) { ((ChartWithAxes) currentChart).setOrientation(newOrientation); } if(!currentChart.getDimension().equals(getDimensionFor(sNewDimension))) { currentChart.setDimension(getDimensionFor(sNewDimension)); } return currentChart; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/33aaa1a97f4ae29f5607eeb332deeff2384cc2e3/StockChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984,...
private static Method extractSetMethod(Class type, NativeJavaMethod njm, boolean isStatic)
private static MemberBox extractSetMethod(Class type, MemberBox[] methods, boolean isStatic)
private static Method extractSetMethod(Class type, NativeJavaMethod njm, boolean isStatic) { // // Note: it may be preferable to allow NativeJavaMethod.findFunction() // to find the appropriate setter; unfortunately, it requires an // instance of the target arg to determine that. // // Make two passes: one to find a method with direct type assignment, // and one to find a widening conversion. Method[] methods = njm.methods; for (int pass = 1; pass <= 2; ++pass) { for (int i = 0; i < methods.length; ++i) { Method method = methods[i]; if (!isStatic || Modifier.isStatic(method.getModifiers())) { if (method.getReturnType() == Void.TYPE) { Class[] params = njm.methodTypes[i]; if (params != null && params.length == 1) { if (pass == 1) { if (params[0] == type) { return method; } } else { if (pass != 2) Context.codeBug(); if (params[0].isAssignableFrom(type)) { return method; } } } } } } } return null; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/004397fe5ef540e453f60552849d0320b106ace4/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 2985, 2608, 694, 1305, 12, 797, 618, 16, 4766, 6647, 16717, 5852, 1305, 290, 78, 81, 16, 4766, 6647, 1250, 16116, 13, 565, 288, 3639, 368, 3639, 368, 3609, 30, 518, 2026, 506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2985, 2608, 694, 1305, 12, 797, 618, 16, 4766, 6647, 16717, 5852, 1305, 290, 78, 81, 16, 4766, 6647, 1250, 16116, 13, 565, 288, 3639, 368, 3639, 368, 3609, 30, 518, 2026, 506...
if (o instanceof File ) { File f = (File)o; this._diagram = diagram; this._import = _import; startImport(p, f); }
if (o instanceof File ) { File f = (File) o; this._diagram = diagram; this._import = _import; startImport(p, f); }
public void parseFile( Project p, Object o, DiagramInterface diagram, Import _import) throws Exception { if (o instanceof File ) { File f = (File)o; this._diagram = diagram; this._import = _import; startImport(p, f); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/ClassfileImport.java/buggy/modules/classfile/src/org/argouml/uml/reveng/classfile/ClassfileImport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 31986, 12, 5420, 293, 16, 1033, 320, 16, 14539, 1940, 1358, 19750, 16, 6164, 389, 5666, 13, 202, 15069, 1185, 288, 202, 202, 430, 261, 83, 1276, 1387, 262, 288, 10792, 1387, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31986, 12, 5420, 293, 16, 1033, 320, 16, 14539, 1940, 1358, 19750, 16, 6164, 389, 5666, 13, 202, 15069, 1185, 288, 202, 202, 430, 261, 83, 1276, 1387, 262, 288, 10792, 1387, ...
RubyArray ary = RubyArray.newArray(getRuntime());
RubyArray ary = getRuntime().newArray();
public IRubyObject scan(IRubyObject arg) { RubyRegexp pat = RubyRegexp.regexpValue(arg); int start = 0; if (!getRuntime().isBlockGiven()) { RubyArray ary = RubyArray.newArray(getRuntime()); while (pat.search(this, start) != -1) { RubyMatchData md = (RubyMatchData) getRuntime().getBackref(); if (md.getSize() == 1) { ary.append(md.group(0)); } else { ary.append(md.subseq(1, md.getSize())); } if (md.matchEndPosition() == md.matchStartPosition()) { start++; } else { start = md.matchEndPosition(); } } return ary; } while (pat.search(this, start) != -1) { RubyMatchData md = (RubyMatchData) getRuntime().getBackref(); if (md.getSize() == 1) { getRuntime().yield(md.group(0)); } else { getRuntime().yield(md.subseq(1, md.getSize())); } if (md.matchEndPosition() == md.matchStartPosition()) { start++; } else { start = md.matchEndPosition(); } } return this; }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 4135, 12, 7937, 10340, 921, 1501, 13, 288, 202, 202, 54, 10340, 14621, 9670, 273, 19817, 14621, 18, 17745, 620, 12, 3175, 1769, 202, 202, 474, 787, 273, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 4135, 12, 7937, 10340, 921, 1501, 13, 288, 202, 202, 54, 10340, 14621, 9670, 273, 19817, 14621, 18, 17745, 620, 12, 3175, 1769, 202, 202, 474, 787, 273, 374, ...
if(property.isOneToMany()) {
if(property.isOneToMany() || property.isManyToMany()) {
private static void bindCollection(GrailsDomainClassProperty property, Collection collection, PersistentClass owner, Mappings mappings) { // set role collection.setRole( StringHelper.qualify( property.getDomainClass().getFullName() , property.getName() ) ); // TODO: add code to configure optimistic locking // TODO: configure fetch strategy collection.setFetchMode( FetchMode.DEFAULT ); // if its a one-to-many mapping if(property.isOneToMany()) { OneToMany oneToMany = new OneToMany( collection.getOwner() ); collection.setElement( oneToMany );/* if(property.isBidirectional()) { collection.setReferencedPropertyName( property.getOtherSide().getName() ); }*/ bindOneToMany( property, oneToMany, mappings ); } else { String referencedClassName = property.getReferencedDomainClass().getFullName(); Table table = mappings.addTable( mappings.getSchemaName(), mappings.getCatalogName(), namingStrategy.classToTableName(referencedClassName), null, false ); collection.setCollectionTable(table); } // setup second pass mappings.addSecondPass( new GrailsCollectionSecondPass(property, mappings, collection) ); }
50129 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50129/6c47cbe485713fe8d2b500632651590033abed59/GrailsDomainBinder.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1993, 2532, 12, 14571, 14573, 3748, 797, 1396, 1272, 16, 2200, 1849, 16, 11049, 797, 3410, 16, 1635, 4675, 7990, 13, 288, 9506, 202, 759, 444, 2478, 202, 202, 5548, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1993, 2532, 12, 14571, 14573, 3748, 797, 1396, 1272, 16, 2200, 1849, 16, 11049, 797, 3410, 16, 1635, 4675, 7990, 13, 288, 9506, 202, 759, 444, 2478, 202, 202, 5548, ...
return cols[col]; }
return cols[col]; }
public String getColumnName(int col) { return cols[col]; }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d2b23250c95f45ef098e021cba0d970cd4733e3e/Connect.java/buggy/tn5250j/src/org/tn5250j/Connect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 514, 20248, 12, 474, 645, 13, 288, 3639, 327, 5347, 63, 1293, 15533, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 514, 20248, 12, 474, 645, 13, 288, 3639, 327, 5347, 63, 1293, 15533, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
( (EditorRuler) ruler ).setMarginOff( !( (Boolean) evt.getNewValue( ) ).booleanValue( ) );
( (EditorRuler) ruler ) .setMarginOff( !( (Boolean) evt .getNewValue( ) ).booleanValue( ) );
public void propertyChange( PropertyChangeEvent evt ) { String property = evt.getPropertyName( ); if ( DeferredGraphicalViewer.PROPERTY_MARGIN_VISIBILITY.equals( property ) ) { Object obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER ) ); if ( obj instanceof EditorRulerProvider ) { Object ruler = ( (RulerProvider) obj ).getRuler( ); if ( ruler instanceof EditorRuler ) { ( (EditorRuler) ruler ).setMarginOff( !( (Boolean) evt.getNewValue( ) ).booleanValue( ) ); setMargin( TOP_LEFT ); setMargin( TOP_RIGHT ); } } obj = ( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_VERTICAL_RULER ) ); if ( obj instanceof EditorRulerProvider ) { Object ruler = ( (RulerProvider) obj ).getRuler( ); if ( ruler instanceof EditorRuler ) { ( (EditorRuler) ruler ).setMarginOff( !( (Boolean) evt.getNewValue( ) ).booleanValue( ) ); setMargin( LEFT_TOP ); setMargin( LEFT_BOTTOM ); } } } else if ( DeferredGraphicalViewer.LAYOUT_SIZE.equals( property ) ) { processProvider( ); } else if ( RulerProvider.PROPERTY_HORIZONTAL_RULER.equals( property ) ) { setRuler( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_HORIZONTAL_RULER ), PositionConstants.NORTH ); } else if ( RulerProvider.PROPERTY_VERTICAL_RULER.equals( property ) ) { setRuler( (RulerProvider) diagramViewer.getProperty( RulerProvider.PROPERTY_VERTICAL_RULER ), PositionConstants.WEST ); } else if ( RulerProvider.PROPERTY_RULER_VISIBILITY.equals( property ) ) setRulerVisibility( ( (Boolean) diagramViewer.getProperty( RulerProvider.PROPERTY_RULER_VISIBILITY ) ).booleanValue( ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/61cce071e25248ce85d293e05344845aab740350/EditorRulerComposite.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/rulers/EditorRulerComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1272, 3043, 12, 4276, 20930, 6324, 262, 1082, 202, 95, 9506, 202, 780, 1272, 273, 6324, 18, 588, 13073, 12, 11272, 9506, 202, 430, 261, 12816, 4137, 1706, 18415, 18, 9900,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1272, 3043, 12, 4276, 20930, 6324, 262, 1082, 202, 95, 9506, 202, 780, 1272, 273, 6324, 18, 588, 13073, 12, 11272, 9506, 202, 430, 261, 12816, 4137, 1706, 18415, 18, 9900,...
public Collection getSubPackages(String packageName)
public SortedSet getSubPackages(String packageName)
public Collection getSubPackages(String packageName) { Collection subPackages = new HashSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); if (packageData.getName().equals(packageName)) subPackages.add(packageData); } return subPackages; }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/7f42310aa94d3450acefa63804376619941a31c5/ProjectData.java/clean/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2200, 7040, 11425, 12, 780, 9929, 13, 202, 95, 202, 202, 2532, 720, 11425, 273, 394, 6847, 5621, 202, 202, 3198, 1400, 273, 333, 18, 5906, 18, 2372, 7675, 9838, 5621, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2200, 7040, 11425, 12, 780, 9929, 13, 202, 95, 202, 202, 2532, 720, 11425, 273, 394, 6847, 5621, 202, 202, 3198, 1400, 273, 333, 18, 5906, 18, 2372, 7675, 9838, 5621, 202, 202...
closeSearcher(); closeWriter();
callPostCommitCallbacks(); if (cmd.optimize) { callPostOptimizeCallbacks(); } core.getSearcher(true,false,waitSearcher);
public void commit(CommitUpdateCommand cmd) throws IOException { if (cmd.optimize) { optimizeCommands.incrementAndGet(); } else { commitCommands.incrementAndGet(); } Future[] waitSearcher = null; if (cmd.waitSearcher) { waitSearcher = new Future[1]; } boolean error=true; try { synchronized (this) { log.info("start "+cmd); doDeletions(); if (cmd.optimize) { closeSearcher(); openWriter(); writer.optimize(); } closeSearcher(); closeWriter(); callPostCommitCallbacks(); if (cmd.optimize) { callPostOptimizeCallbacks(); } // open a new searcher in the sync block to avoid opening it // after a deleteByQuery changed the index, or in between deletes // and adds of another commit being done. core.getSearcher(true,false,waitSearcher); log.info("end_commit_flush"); } // end synchronized block error=false; } finally { addCommands.set(0); deleteByIdCommands.set(0); deleteByQueryCommands.set(0); numErrors.set(error ? 1 : 0); } // if we are supposed to wait for the searcher to be registered, then we should do it // outside of the synchronized block so that other update operations can proceed. if (waitSearcher!=null && waitSearcher[0] != null) { try { waitSearcher[0].get(); } catch (InterruptedException e) { SolrException.log(log,e); } catch (ExecutionException e) { SolrException.log(log,e); } } return; }
50005 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50005/4e9426b94eeb8a4bc96bcb1c88885c8f9c99731b/DirectUpdateHandler2.java/buggy/src/java/org/apache/solr/update/DirectUpdateHandler2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3294, 12, 5580, 1891, 2189, 1797, 13, 1216, 1860, 288, 565, 309, 261, 4172, 18, 29155, 13, 288, 1377, 10979, 9127, 18, 15016, 14042, 5621, 565, 289, 469, 288, 1377, 3294, 9127,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3294, 12, 5580, 1891, 2189, 1797, 13, 1216, 1860, 288, 565, 309, 261, 4172, 18, 29155, 13, 288, 1377, 10979, 9127, 18, 15016, 14042, 5621, 565, 289, 469, 288, 1377, 3294, 9127,...
return RubyString.newString(getRuntime(), buf);
return getRuntime().newString(buf);
public IRubyObject sysread(RubyFixnum number) { String buf = handler.sysread(RubyFixnum.fix2int(number)); return RubyString.newString(getRuntime(), buf); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyIO.java/buggy/src/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 2589, 896, 12, 54, 10340, 8585, 2107, 1300, 13, 288, 3639, 514, 1681, 273, 1838, 18, 9499, 896, 12, 54, 10340, 8585, 2107, 18, 904, 22, 474, 12, 2696, 10019, 77...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 2589, 896, 12, 54, 10340, 8585, 2107, 1300, 13, 288, 3639, 514, 1681, 273, 1838, 18, 9499, 896, 12, 54, 10340, 8585, 2107, 18, 904, 22, 474, 12, 2696, 10019, 77...
public String apply( String elem ) { if( from == null || to == null ) { throw new BuildException( "Both 'from' and 'to' must be set " + "in a map entry" );
public String apply(String elem) { if (from == null || to == null) { throw new BuildException("Both 'from' and 'to' must be set " + "in a map entry");
public String apply( String elem ) { if( from == null || to == null ) { throw new BuildException( "Both 'from' and 'to' must be set " + "in a map entry" ); } // If we're on windows, then do the comparison ignoring case String cmpElem = onWindows ? elem.toLowerCase() : elem; String cmpFrom = onWindows ? from.toLowerCase() : from; // If the element starts with the configured prefix, then // convert the prefix to the configured 'to' value. if( cmpElem.startsWith( cmpFrom ) ) { int len = from.length(); if( len >= elem.length() ) { elem = to; } else { elem = to + elem.substring( len ); } } return elem; }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0dab862ee09d706c3f373fc18bedbf17caf427b9/PathConvert.java/clean/src/main/org/apache/tools/ant/taskdefs/PathConvert.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 2230, 12, 514, 3659, 262, 288, 5411, 309, 12, 628, 422, 446, 747, 358, 422, 446, 262, 288, 7734, 604, 394, 18463, 12, 315, 20240, 296, 2080, 11, 471, 296, 869, 11, 1297, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 2230, 12, 514, 3659, 262, 288, 5411, 309, 12, 628, 422, 446, 747, 358, 422, 446, 262, 288, 7734, 604, 394, 18463, 12, 315, 20240, 296, 2080, 11, 471, 296, 869, 11, 1297, 50...
return index < 0 ? null : name.substring(0, index);
return index < 0 ? null : name.substring(0, index);
public String getPrefix() { if (needsSyncData()) { synchronizeData(); } int index = name.indexOf(':'); return index < 0 ? null : name.substring(0, index); }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/39bb7f6f50e7b98f13cc703c50da536dce255a27/ElementNSImpl.java/buggy/src/org/apache/xerces/dom/ElementNSImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 16182, 1435, 565, 288, 7734, 309, 261, 20600, 4047, 751, 10756, 288, 5411, 16978, 751, 5621, 3639, 289, 3639, 509, 770, 273, 508, 18, 31806, 2668, 2497, 1769, 3639, 327, 770, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 16182, 1435, 565, 288, 7734, 309, 261, 20600, 4047, 751, 10756, 288, 5411, 16978, 751, 5621, 3639, 289, 3639, 509, 770, 273, 508, 18, 31806, 2668, 2497, 1769, 3639, 327, 770, 4...
return returnval; }
return returnval; }
public boolean existsKeys(Admin admin, X509Certificate certificate) { debug(">existsKeys()"); boolean returnval = false; final String hexSerial = certificate.getSerialNumber().toString(16); final String dn = CertTools.getIssuerDN(certificate); try { KeyRecoveryDataLocal krd = keyrecoverydatahome.findByPrimaryKey(new KeyRecoveryDataPK( hexSerial, dn)); returnval = true; } catch (FinderException e) { } debug("<existsKeys(" + returnval + ")"); return returnval; } // existsKeys
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/eacf4dd5b0993e24e9a5988e58f9a0cbb200450b/LocalKeyRecoverySessionBean.java/clean/src/java/se/anatom/ejbca/keyrecovery/LocalKeyRecoverySessionBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1704, 2396, 12, 4446, 3981, 16, 1139, 5995, 4719, 4944, 13, 288, 202, 202, 4148, 2932, 34, 1808, 2396, 1435, 8863, 202, 202, 6494, 327, 1125, 273, 629, 31, 3639, 727, 51...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1704, 2396, 12, 4446, 3981, 16, 1139, 5995, 4719, 4944, 13, 288, 202, 202, 4148, 2932, 34, 1808, 2396, 1435, 8863, 202, 202, 6494, 327, 1125, 273, 629, 31, 3639, 727, 51...
public Iterator iterator() {
public NodeSetIterator iterator() {
public Iterator iterator() { return EMPTY_ITERATOR; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/aa97f4d76531893721258680bba3894385e96e08/EmptyNodeSet.java/clean/src/org/exist/dom/EmptyNodeSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4498, 2775, 1435, 288, 202, 565, 327, 8984, 67, 11844, 3575, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 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, 377, 1071, 4498, 2775, 1435, 288, 202, 565, 327, 8984, 67, 11844, 3575, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
firePropertyChange("width", oldWidth, width);
changeSupport.firePropertyChange("width", oldWidth, width);
public void setWidth(int newWidth) { int oldWidth = width; if (newWidth < minWidth) width = minWidth; else if (newWidth > maxWidth) width = maxWidth; else width = newWidth; if (width == oldWidth) return; // We do have a constant field COLUMN_WIDTH_PROPERTY, // however, tests show that the actual fired property name is 'width' // and even Sun's API docs say that this constant field is obsolete and // not used. firePropertyChange("width", oldWidth, width); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/TableColumn.java/clean/core/src/classpath/javax/javax/swing/table/TableColumn.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 20855, 12, 474, 23542, 13, 225, 288, 565, 509, 202, 1673, 2384, 273, 1835, 31, 565, 309, 261, 2704, 2384, 411, 1131, 2384, 13, 1377, 1835, 273, 1131, 2384, 31, 565, 469, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 20855, 12, 474, 23542, 13, 225, 288, 565, 509, 202, 1673, 2384, 273, 1835, 31, 565, 309, 261, 2704, 2384, 411, 1131, 2384, 13, 1377, 1835, 273, 1131, 2384, 31, 565, 469, 309,...
throw new NoSuchAlgorithmException(
throw new InvalidKeyException(
public void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { try { CryptoToken token = TokenSupplierManager.getTokenSupplier().getThreadToken(); sig = token.getSignatureContext(alg); // convert the public key into a JSS public key if necessary if( ! (publicKey instanceof org.mozilla.jss.pkcs11.PK11PubKey) ) { KeyFactory fact = KeyFactory.getInstance( publicKey.getAlgorithm(), "Mozilla-JSS"); if( ! publicKey.getFormat().equalsIgnoreCase("X.509") ) { throw new NoSuchAlgorithmException( "Unsupported public key format: " + publicKey.getFormat()); } X509EncodedKeySpec encodedKey = new X509EncodedKeySpec(publicKey.getEncoded()); publicKey = fact.generatePublic(encodedKey); } sig.initVerify(publicKey); } catch(NoSuchProviderException e) { throw new InvalidKeyException("Unable to convert non-JSS key " + "to JSS key"); } catch(java.security.spec.InvalidKeySpecException e) { throw new InvalidKeyException("Unable to convert non-JSS key " + "to JSS key"); } catch(java.security.NoSuchAlgorithmException e) { throw new InvalidKeyException("Algorithm not supported"); } catch(TokenException e) { throw new InvalidKeyException("Token exception occurred"); } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/a32141f5d2f462926adacbc0643c3e5543893750/JSSSignatureSpi.java/clean/security/jss/org/mozilla/jss/provider/java/security/JSSSignatureSpi.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4073, 2570, 8097, 12, 9632, 12085, 13, 3639, 1216, 28885, 565, 288, 3639, 775, 288, 5411, 15629, 1345, 1147, 273, 2868, 3155, 13254, 1318, 18, 588, 1345, 13254, 7675, 588, 3830, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4073, 2570, 8097, 12, 9632, 12085, 13, 3639, 1216, 28885, 565, 288, 3639, 775, 288, 5411, 15629, 1345, 1147, 273, 2868, 3155, 13254, 1318, 18, 588, 1345, 13254, 7675, 588, 3830, ...
protected void setProperty(Context _context, String _name, String _value) throws Exception {
protected void setProperty(final String _name, final String _value) throws CacheReloadException {
protected void setProperty(Context _context, String _name, String _value) throws Exception { if (_name.equals("SelectionColRef")) { setSelectableColRef(Attribute.get(_value)); } else { super.setProperty(_context, _name, _value); } }
50266 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50266/398deca4d2f670170df358e7685a3efeb32cab57/Table.java/buggy/kernel/src/main/java/org/efaps/admin/ui/Table.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 7486, 12, 6385, 514, 389, 529, 16, 727, 514, 389, 1132, 13, 1216, 4379, 13013, 503, 225, 288, 565, 309, 261, 67, 529, 18, 14963, 2932, 6233, 914, 1957, 6, 3719, 225, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 7486, 12, 6385, 514, 389, 529, 16, 727, 514, 389, 1132, 13, 1216, 4379, 13013, 503, 225, 288, 565, 309, 261, 67, 529, 18, 14963, 2932, 6233, 914, 1957, 6, 3719, 225, 288, 1...
window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, ResourcesPlugin.getWorkspace()); page = window.openPage(SessionPerspective.ID, ResourcesPlugin .getWorkspace());
window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, getPageInput()); page = window.openPage(SessionPerspective.ID, getPageInput());
public void testSessionCreation() throws Throwable { IWorkbenchWindow window; IWorkbenchPage page; // Save the original windows. We close all of // these at the end, after the test windows have // been created. saveOriginalWindows(); // Create test window with empty perspective. window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, ResourcesPlugin.getWorkspace()); // Create test window with empty perspective and // session perspective. window = fWorkbench.openWorkbenchWindow(EmptyPerspective.PERSP_ID, ResourcesPlugin.getWorkspace()); page = window.openPage(SessionPerspective.ID, ResourcesPlugin .getWorkspace()); // Create test window with two session perspectives. window = fWorkbench.openWorkbenchWindow(SessionPerspective.ID, ResourcesPlugin.getWorkspace()); page = window.openPage(SessionPerspective.ID, ResourcesPlugin .getWorkspace()); // Open 3 editors in last page. IProject proj = FileUtil.createProject(TEST_PROJ); IFile file = FileUtil.createFile(TEST_FILE_1, proj); page.openEditor(new FileEditorInput(file), MockEditorPart.ID1); file = FileUtil.createFile(TEST_FILE_2, proj); page.openEditor(new FileEditorInput(file), MockEditorPart.ID1); file = FileUtil.createFile(TEST_FILE_3, proj); page.openEditor(new FileEditorInput(file), MockEditorPart.ID1); // Close the original windows. closeOriginalWindows(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d702bd12f55dda09eb7a17f2c12be9ad40fc1ee4/SessionCreateTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/SessionCreateTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2157, 9906, 1435, 1216, 4206, 288, 3639, 467, 2421, 22144, 3829, 2742, 31, 3639, 467, 2421, 22144, 1964, 1363, 31, 3639, 368, 7074, 326, 2282, 9965, 18, 225, 1660, 1746, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2157, 9906, 1435, 1216, 4206, 288, 3639, 467, 2421, 22144, 3829, 2742, 31, 3639, 467, 2421, 22144, 1964, 1363, 31, 3639, 368, 7074, 326, 2282, 9965, 18, 225, 1660, 1746, ...
Node node = document.createElement(tagName); return new W3CDOMWrapper(node); }
Node node = document.createElement(tagName); return new W3CDOMWrapper(node); }
public DOMWrapper create(String tagName) { Node node = document.createElement(tagName); return new W3CDOMWrapper(node); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/XercesDOMParser.java/buggy/src/main/mondrian/xom/wrappers/XercesDOMParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4703, 3611, 752, 12, 780, 7196, 13, 288, 202, 202, 907, 756, 273, 1668, 18, 2640, 1046, 12, 2692, 461, 1769, 202, 202, 2463, 394, 678, 23, 39, 8168, 3611, 12, 2159, 1769, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4703, 3611, 752, 12, 780, 7196, 13, 288, 202, 202, 907, 756, 273, 1668, 18, 2640, 1046, 12, 2692, 461, 1769, 202, 202, 2463, 394, 678, 23, 39, 8168, 3611, 12, 2159, 1769, 20...
public org.quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { org.quickfix.field.UnderlyingCurrency value = new org.quickfix.field.UnderlyingCurrency();
public quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { quickfix.field.UnderlyingCurrency value = new quickfix.field.UnderlyingCurrency();
public org.quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { org.quickfix.field.UnderlyingCurrency value = new org.quickfix.field.UnderlyingCurrency(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinitionRequest.java/buggy/src/java/src/quickfix/fix42/SecurityDefinitionRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 7623, 10833, 765, 6291, 7623, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 7623, 460, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 7623, 10833, 765, 6291, 7623, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 7623, 460, 273, 394...
return;
return false;
void scrollHorizontalBar(int pixels) { if (pixels == 0) { return; } ScrollBar horizontalBar = getHorizontalBar(); if (horizontalBar != null) { horizontalBar.setSelection(horizontalScrollOffset + pixels); } scrollHorizontal(pixels);}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/b5d04fbc070a732aaaea3bf20786a0b122a46481/StyledText.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 5532, 14457, 5190, 12, 474, 8948, 13, 288, 202, 430, 261, 21084, 422, 374, 13, 288, 202, 202, 2463, 31, 202, 97, 202, 6806, 5190, 10300, 5190, 273, 7628, 6359, 5190, 5621, 202, 430, 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, 918, 5532, 14457, 5190, 12, 474, 8948, 13, 288, 202, 430, 261, 21084, 422, 374, 13, 288, 202, 202, 2463, 31, 202, 97, 202, 6806, 5190, 10300, 5190, 273, 7628, 6359, 5190, 5621, 202, 430, 261...
Updater.update(myVcs, myRootManager.getContentRoots());
Updater.update(myVcs, myFileFilter, myRootManager.getContentRoots());
private void updateRoots() { try { Updater.update(myVcs, myRootManager.getContentRoots()); } catch (IOException e) { throw new RuntimeException(e); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/df4e4df7f9848c9856eabd3e1f05b48377a55a5c/LocalVcsService.java/clean/LocalVcs/src/com/intellij/localvcs/integration/LocalVcsService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1089, 17540, 1435, 288, 565, 775, 288, 1377, 27254, 2045, 18, 2725, 12, 4811, 58, 2143, 16, 3399, 29837, 16, 3399, 2375, 1318, 18, 588, 1350, 17540, 10663, 565, 289, 565, 1044,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1089, 17540, 1435, 288, 565, 775, 288, 1377, 27254, 2045, 18, 2725, 12, 4811, 58, 2143, 16, 3399, 29837, 16, 3399, 2375, 1318, 18, 588, 1350, 17540, 10663, 565, 289, 565, 1044,...
return handlers.iterator().next();
return handlers.values().iterator().next();
public Method getDefaultHandler(Class<? extends ActionBean> bean) throws StripesServletException { Collection<Method> handlers = this.eventMappings.get(bean).values(); if (handlers.size() == 1) { return handlers.iterator().next(); } else { for (Method handler : handlers) { if (handler.getAnnotation(DefaultHandler.class) != null) { return handler; } } } // If we got this far there is no default handler throw new StripesServletException("No default handler could be found for ActionBean of " + "type: " + bean.getName()); }
9306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9306/1965786bc616302a789f634396d04e27911160ec/AnnotatedClassActionResolver.java/clean/stripes/src/net/sourceforge/stripes/controller/AnnotatedClassActionResolver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2985, 4829, 1503, 12, 797, 12880, 3231, 4382, 3381, 34, 3931, 13, 1216, 15589, 281, 4745, 503, 288, 3639, 2200, 32, 1305, 34, 4919, 273, 333, 18, 2575, 7742, 18, 588, 12, 14496, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2985, 4829, 1503, 12, 797, 12880, 3231, 4382, 3381, 34, 3931, 13, 1216, 15589, 281, 4745, 503, 288, 3639, 2200, 32, 1305, 34, 4919, 273, 333, 18, 2575, 7742, 18, 588, 12, 14496, 2...
public boolean isSet(org.quickfix.field.OrigClOrdID field)
public boolean isSet(quickfix.field.OrigClOrdID field)
public boolean isSet(org.quickfix.field.OrigClOrdID field) { return isSetField(field); }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderMassCancelReport.java/buggy/src/java/src/quickfix/fix43/OrderMassCancelReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 4741, 2009, 15383, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
viewer.setContentProvider(new SectionContentProvider()); viewer.setLabelProvider(new SectionLabelProvider()); Section tree = createTree();
viewer.setContentProvider(new NodeContentProvider()); viewer.setLabelProvider(new NodeLabelProvider()); Node tree = createTree();
public void createControl(Composite parent) { super.createControl(parent); TreeViewer viewer = getTreeViewer(); viewer.setContentProvider(new SectionContentProvider()); viewer.setLabelProvider(new SectionLabelProvider()); Section tree = createTree(); viewer.setInput(tree); Tree treeControl = (Tree) viewer.getControl(); if (tree.size() > 0) { TreeItem item = treeControl.getItem(0); treeControl.setSelection(new TreeItem[] { item }); } viewer.expandAll(); // IToolBarManager manager = getSite().getActionBars().getToolBarManager();// manager.add(new ShowDefinitionsOnlyAction());// manager.add(new ShowHeadersOnlyAction()); }
53665 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53665/ef892c9bc881eec5bc83474e595b83638a451b16/SchemeOutlinePage.java/buggy/src/org/schemeway/plugins/schemescript/editor/SchemeOutlinePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 3367, 12, 9400, 982, 13, 288, 3639, 2240, 18, 2640, 3367, 12, 2938, 1769, 7734, 4902, 18415, 14157, 273, 15867, 18415, 5621, 3639, 14157, 18, 542, 1350, 2249, 12, 2704, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 3367, 12, 9400, 982, 13, 288, 3639, 2240, 18, 2640, 3367, 12, 2938, 1769, 7734, 4902, 18415, 14157, 273, 15867, 18415, 5621, 3639, 14157, 18, 542, 1350, 2249, 12, 2704, 10...
if (x < 0.5) {
if (x < 0.5) {
public static double asin(double x) { boolean negative = x < 0; if (negative) x = -x; if (!(x <= 1)) return Double.NaN; if (x == 1) return negative ? -PI / 2 : PI / 2; if (x < 0.5) { if (x < 1 / TWO_27) return negative ? -x : x; double t = x * x; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); return negative ? -x - x * (p / q) : x + x * (p / q); } double w = 1 - x; // 1>|x|>=0.5. double t = w * 0.5; double p = t * (PS0 + t * (PS1 + t * (PS2 + t * (PS3 + t * (PS4 + t * PS5))))); double q = 1 + t * (QS1 + t * (QS2 + t * (QS3 + t * QS4))); double s = sqrt(t); if (x >= 0.975) { w = p / q; t = PI / 2 - (2 * (s + s * w) - PI_L / 2); } else { w = (float) s; double c = (t - w * w) / (s + w); p = 2 * s * (p / q) - (PI_L / 2 - 2 * c); q = PI / 4 - 2 * w; t = PI / 4 - (p - q); } return negative ? -t : t; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/StrictMath.java/buggy/core/src/classpath/java/java/lang/StrictMath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1645, 487, 267, 12, 9056, 619, 13, 288, 202, 202, 6494, 6092, 273, 619, 411, 374, 31, 202, 202, 430, 261, 13258, 13, 1082, 202, 92, 273, 300, 92, 31, 202, 202, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1645, 487, 267, 12, 9056, 619, 13, 288, 202, 202, 6494, 6092, 273, 619, 411, 374, 31, 202, 202, 430, 261, 13258, 13, 1082, 202, 92, 273, 300, 92, 31, 202, 202, 430, 1...
StatisticsView cumulativeStatisticsView) { m_newStatisticsViewsCalled = true; m_intervalStatisticsView = intervalStatisticsView; m_cumulativeStatisticsView = cumulativeStatisticsView; }
StatisticsView cumulativeStatisticsView) { m_newStatisticsViewsCalled = true; m_intervalStatisticsView = intervalStatisticsView; m_cumulativeStatisticsView = cumulativeStatisticsView; }
public void newStatisticsViews(StatisticsView intervalStatisticsView, StatisticsView cumulativeStatisticsView) { m_newStatisticsViewsCalled = true; m_intervalStatisticsView = intervalStatisticsView; m_cumulativeStatisticsView = cumulativeStatisticsView; }
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/d5095282593ea1fa8c83b82db02d2aef4eb27594/TestSwingDispatchedModelListener.java/buggy/tests-src/net/grinder/console/swingui/TestSwingDispatchedModelListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 394, 8569, 9959, 12, 8569, 1767, 3673, 8569, 1767, 16, 6862, 4202, 22964, 1767, 15582, 8569, 1767, 13, 202, 95, 202, 565, 312, 67, 2704, 8569, 9959, 8185, 273, 638, 31, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 394, 8569, 9959, 12, 8569, 1767, 3673, 8569, 1767, 16, 6862, 4202, 22964, 1767, 15582, 8569, 1767, 13, 202, 95, 202, 565, 312, 67, 2704, 8569, 9959, 8185, 273, 638, 31, 2...
addSubCommand( child, parent, screen );
screen.addSubCommand( child, parent );
public static void addSubCommand( Command child, Command parent, Screen screen ) { //#style menuitem? addSubCommand( child, parent, screen ); }
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/c14555b08d15c3121416578aa7bbfa65ee40378e/UiAccess.java/buggy/j2me/source/src/de/enough/polish/ui/UiAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 25716, 2189, 12, 225, 3498, 1151, 16, 3498, 982, 16, 10146, 5518, 225, 262, 288, 202, 202, 759, 7, 4060, 3824, 1726, 35, 202, 202, 1289, 1676, 2189, 12, 1151, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 25716, 2189, 12, 225, 3498, 1151, 16, 3498, 982, 16, 10146, 5518, 225, 262, 288, 202, 202, 759, 7, 4060, 3824, 1726, 35, 202, 202, 1289, 1676, 2189, 12, 1151, 16, ...
save(false);
if(!save(false)) { getToolkit().beep(); return; }
public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if(source == closeBtn) cancel(); else if(source == findBtn || source == find || source == replace) { ok(); } else if(source == replaceAndFindBtn) { save(false); if(SearchAndReplace.replace(view)) ok(); else getToolkit().beep(); } else if(source == replaceAllBtn) { if(searchSelection.isSelected() && view.getTextArea().getSelectionCount() == 0) { GUIUtilities.error(view,"search-no-selection",null); return; } setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); save(false); if(searchSelection.isSelected()) { if(SearchAndReplace.replace(view)) closeOrKeepDialog(); else getToolkit().beep(); } else { if(SearchAndReplace.replaceAll(view)) closeOrKeepDialog(); else getToolkit().beep(); } setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR)); } }
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/d5d36d3c9a7e3996df6c5d6e7cd7c5da12102fff/SearchDialog.java/buggy/org/gjt/sp/jedit/search/SearchDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 202, 202, 95, 1082, 202, 921, 1084, 273, 6324, 18, 588, 1830, 5621, 1082, 202, 430, 12, 3168, 422, 1746, 20541, 13, 9506, 202, 10996, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 202, 202, 95, 1082, 202, 921, 1084, 273, 6324, 18, 588, 1830, 5621, 1082, 202, 430, 12, 3168, 422, 1746, 20541, 13, 9506, 202, 10996, 56...
animator.stop(); System.exit(0);
new Thread(new Runnable() { public void run() { animator.stop(); System.exit(0); } }).start();
public void windowClosing(WindowEvent e) { animator.stop(); System.exit(0); }
6783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6783/69ca977ccf8d329cd72dced5ebb92501da460561/VertexBufferObject.java/clean/src/demos/vertexBufferObject/VertexBufferObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2742, 15745, 12, 3829, 1133, 425, 13, 288, 1850, 10536, 639, 18, 5681, 5621, 1850, 2332, 18, 8593, 12, 20, 1769, 3639, 289, 2, 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, 540, 1071, 918, 2742, 15745, 12, 3829, 1133, 425, 13, 288, 1850, 10536, 639, 18, 5681, 5621, 1850, 2332, 18, 8593, 12, 20, 1769, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
return paramString();
return this.getClass().getName() + "[" + paramString() + "]";
public String toString() { return paramString(); }
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/14a46ad9e70e8baeb4a720508e0a04f9df8b41f5/Component.java/clean/libjava/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 225, 288, 565, 327, 333, 18, 588, 797, 7675, 17994, 1435, 397, 13626, 397, 579, 780, 1435, 397, 9870, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1762, 1435, 225, 288, 565, 327, 333, 18, 588, 797, 7675, 17994, 1435, 397, 13626, 397, 579, 780, 1435, 397, 9870, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -...
else
try { return new File(path).getCanonicalPath(); } catch(Exception e) {
private static String canonPath(String path) { if(File.separatorChar == '\\') { // get rid of mixed paths on Windows return path.replace('/','\\'); } else return path; }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/74edffa405f3d7df1919e13f861617a2be9f2c5c/MiscUtilities.java/clean/org/gjt/sp/jedit/MiscUtilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 29147, 743, 12, 780, 589, 13, 202, 95, 202, 202, 430, 12, 812, 18, 11287, 2156, 422, 5282, 13, 202, 202, 95, 1082, 202, 759, 336, 10911, 434, 7826, 2953, 603, 820...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 29147, 743, 12, 780, 589, 13, 202, 95, 202, 202, 430, 12, 812, 18, 11287, 2156, 422, 5282, 13, 202, 202, 95, 1082, 202, 759, 336, 10911, 434, 7826, 2953, 603, 820...
void doGlobal(Function funObj, int count) throws JavaScriptException {
void doGlobal(Context cx, Function funObj, int count, RegExpImpl reImpl) throws JavaScriptException {
void doGlobal(Function funObj, int count) throws JavaScriptException { MatchData mdata; Object v; mdata = this; Context cx = Context.getCurrentContext(); RegExpImpl reImpl = RegExpImpl.getRegExpImpl(cx); if (arrayobj == null) { Scriptable s = ScriptableObject.getTopLevelScope(funObj); arrayobj = ScriptRuntime.newObject(cx, s, "Array", null); } SubString matchsub = reImpl.lastMatch; String matchstr = matchsub.toString(); arrayobj.put(count, arrayobj, matchstr); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/8b34980fb3adc3beae5bcea5913d426dc2e366c8/RegExpImpl.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 741, 5160, 12, 1042, 9494, 16, 4284, 9831, 2675, 16, 509, 1056, 16, 10679, 2828, 283, 2828, 13, 1216, 11905, 503, 288, 3639, 4639, 751, 312, 892, 31, 3639, 1033, 331, 31, 3639, 312...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 5160, 12, 1042, 9494, 16, 4284, 9831, 2675, 16, 509, 1056, 16, 10679, 2828, 283, 2828, 13, 1216, 11905, 503, 288, 3639, 4639, 751, 312, 892, 31, 3639, 1033, 331, 31, 3639, 312...
if (true) {
private String getSimpleCallName(Node callNode) /* Find call trees that look like this : (they arise from simple function invocations) CALL <-- this is the callNode node GETPROP NEWTEMP [USES: 1] GETBASE 'name' STRING 'name' GETTHIS USETEMP [TEMP: NEWTEMP [USES: 1]] <-- arguments would be here and return the name found. */ {if (true) { Node callBase = callNode.getFirstChild(); if (callBase.getType() == TokenStream.GETPROP) { Node callBaseChild = callBase.getFirstChild(); if (callBaseChild.getType() == TokenStream.NEWTEMP) { Node callBaseID = callBaseChild.getNextSibling(); Node tempChild = callBaseChild.getFirstChild(); if (tempChild.getType() == TokenStream.GETBASE) { String functionName = tempChild.getString(); if ((callBaseID != null) && (callBaseID.getType() == TokenStream.STRING)) { if (functionName.equals(callBaseID.getString())) { Node thisChild = callBase.getNextSibling(); if (thisChild.getType() == TokenStream.GETTHIS) { Node useChild = thisChild.getFirstChild(); if (useChild.getType() == TokenStream.USETEMP) { Node temp = (Node)useChild.getProp(Node.TEMP_PROP); if (temp == callBaseChild) { return functionName; } } } } } } } }} return null; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/0470e048abb345f567d5fda1e9564715a9f4d5d7/Codegen.java/clean/js/rhino/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 8120, 1477, 461, 12, 907, 745, 907, 13, 565, 1748, 3639, 4163, 745, 11491, 716, 2324, 3007, 333, 294, 3639, 261, 451, 402, 419, 784, 628, 4143, 445, 27849, 13, 7734, 22753, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 8120, 1477, 461, 12, 907, 745, 907, 13, 565, 1748, 3639, 4163, 745, 11491, 716, 2324, 3007, 333, 294, 3639, 261, 451, 402, 419, 784, 628, 4143, 445, 27849, 13, 7734, 22753, 5...
public void setTarget(SizeCache target) { setTargetControl(target.getControl()); }
public void setTarget(SizeCache cache) { targetCache = cache; if (targetCache != null) { setTargetControl(cache.getControl()); } else { setTargetControl(null); } }
public void setTarget(SizeCache target) { setTargetControl(target.getControl()); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/aaa67ee0d5b82c6c46eb51216d63b2b2927d58b7/ProxyControl.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/util/ProxyControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18367, 12, 1225, 1649, 1018, 13, 288, 202, 565, 18367, 3367, 12, 3299, 18, 588, 3367, 10663, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 18367, 12, 1225, 1649, 1018, 13, 288, 202, 565, 18367, 3367, 12, 3299, 18, 588, 3367, 10663, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return new MuleMessage(result[0], invocation.getMessage().getProperties());
return new MuleMessage(result[0], invocation.getMessage());
public UMOMessage before(Invocation invocation) throws UMOException { if (beforeExpressions != null && beforeExpressionsList.size() > 0) { JXPathContext ctx = JXPathContext.newContext(getOriginalPayload()); Object[] result = new Object[beforeExpressionsList.size()]; for (int i = 0; i < result.length; i++) { result[i] = ctx.getValue((String) beforeExpressionsList.get(i)); } if (result.length == 1) { return new MuleMessage(result[0], invocation.getMessage().getProperties()); } else { return new MuleMessage(result, invocation.getMessage().getProperties()); } } return null; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/1c16135aeffdc8654133a2cfd4e29e2561335937/JXPathNormalizerInterceptor.java/buggy/mule/src/java/org/mule/interceptors/JXPathNormalizerInterceptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 5980, 1079, 1865, 12, 9267, 9495, 13, 1216, 587, 5980, 503, 565, 288, 3639, 309, 261, 5771, 8927, 480, 446, 597, 1865, 8927, 682, 18, 1467, 1435, 405, 374, 13, 288, 5411, 804...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 587, 5980, 1079, 1865, 12, 9267, 9495, 13, 1216, 587, 5980, 503, 565, 288, 3639, 309, 261, 5771, 8927, 480, 446, 597, 1865, 8927, 682, 18, 1467, 1435, 405, 374, 13, 288, 5411, 804...
return 1;
return ncol;
public int getColumnCount() { return 1; }
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/7c72a3bbe18af95caf51f070fe40781e018c817e/ArrayBrowser.java/clean/treeview/src/main/uk/ac/starlink/treeview/ArrayBrowser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 509, 6716, 1380, 1435, 288, 10792, 327, 290, 1293, 31, 7734, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 509, 6716, 1380, 1435, 288, 10792, 327, 290, 1293, 31, 7734, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
if (m instanceof MModelElement) { MModelElement me = (MModelElement) m;
if (m != null && m instanceof MModelElement) { MModelElement me = (MModelElement) m;
public static void setStereotype(Object m, Object stereo) { if (m instanceof MModelElement) { MModelElement me = (MModelElement) m; if (stereo != null && stereo instanceof MStereotype && me.getModel() != ((MStereotype) stereo).getModel()) { ((MStereotype) stereo).setNamespace(me.getModel()); } me.setStereotype((MStereotype) stereo); } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/8abd8d64ef14558fa4b1e37c632b2e9220b8a889/ModelFacade.java/clean/src_new/org/argouml/model/ModelFacade.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 13928, 387, 73, 10570, 12, 921, 312, 16, 1033, 29558, 13, 288, 3639, 309, 261, 81, 1276, 490, 1488, 1046, 13, 288, 202, 565, 490, 1488, 1046, 1791, 273, 261, 49, 1488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 13928, 387, 73, 10570, 12, 921, 312, 16, 1033, 29558, 13, 288, 3639, 309, 261, 81, 1276, 490, 1488, 1046, 13, 288, 202, 565, 490, 1488, 1046, 1791, 273, 261, 49, 1488, ...
private String removeColon(String s) { StringTokenizer st = new StringTokenizer(s,":",false); String t=""; while (st.hasMoreElements()) t += st.nextElement(); return t; }
private String removeColon(String s) { StringTokenizer st = new StringTokenizer(s, ":", false); String t = ""; while (st.hasMoreElements()) t += st.nextElement(); return t; }
private String removeColon(String s) { StringTokenizer st = new StringTokenizer(s,":",false); String t=""; while (st.hasMoreElements()) t += st.nextElement(); return t; }
51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/d944969a05e2e329c0b042b33835750c3716bd1d/TooltipPanel.java/clean/wicket-contrib-dojo/src/main/java/wicket/contrib/markup/html/tooltip/TooltipPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 1206, 19636, 12, 780, 272, 13, 288, 1082, 225, 16370, 384, 273, 394, 16370, 12, 87, 10837, 2773, 16, 5743, 1769, 1082, 225, 514, 268, 1546, 14432, 1082, 225, 1323, 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, 1152, 514, 1206, 19636, 12, 780, 272, 13, 288, 1082, 225, 16370, 384, 273, 394, 16370, 12, 87, 10837, 2773, 16, 5743, 1769, 1082, 225, 514, 268, 1546, 14432, 1082, 225, 1323, 261, ...
else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) )
else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) )
public Chart getModel( String sSubType, Orientation orientation, String sDimension, Chart currentChart ) { ChartWithAxes newChart = null; if ( currentChart != null ) { newChart = (ChartWithAxes) getConvertedChart( currentChart, sSubType, orientation, sDimension ); if ( newChart != null ) { return newChart; } } newChart = ChartWithAxesImpl.create( ); newChart.setType( TYPE_LITERAL ); newChart.setSubType( sSubType ); newChart.setOrientation( orientation ); newChart.setDimension( getDimensionFor( sDimension ) ); newChart.setUnits( "Points" ); //$NON-NLS-1$ ( (Axis) newChart.getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) newChart.getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) newChart.getAxes( ).get( 0 ) ).setCategoryAxis( true ); SeriesDefinition sdX = SeriesDefinitionImpl.create( ); Series categorySeries = SeriesImpl.create( ); sdX.getSeries( ).add( categorySeries ); sdX.getSeriesPalette( ).update( 0 ); ( (Axis) newChart.getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( sdX ); newChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); if ( sSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) ) { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = AreaSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (AreaSeries) valueSeries ).getMarker( ).setVisible( false ); ( (AreaSeries) valueSeries ).getLineAttributes( ) .setColor( ColorDefinitionImpl.BLUE( ) ); ( (AreaSeries) valueSeries ).setStacked( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setPercent( true ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = AreaSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (AreaSeries) valueSeries ).getMarker( ).setVisible( false ); ( (AreaSeries) valueSeries ).getLineAttributes( ) .setColor( ColorDefinitionImpl.BLUE( ) ); ( (AreaSeries) valueSeries ).setStacked( true ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } else if ( sSubType.equalsIgnoreCase( OVERLAY_SUBTYPE_LITERAL ) ) { ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); SeriesDefinition sdY = SeriesDefinitionImpl.create( ); sdY.getSeriesPalette( ).update( 0 ); Series valueSeries = AreaSeriesImpl.create( ); valueSeries.getLabel( ).setVisible( true ); ( (AreaSeries) valueSeries ).getMarker( ).setVisible( false ); ( (AreaSeries) valueSeries ).getLineAttributes( ) .setColor( ColorDefinitionImpl.BLUE( ) ); ( (AreaSeries) valueSeries ).setStacked( false ); sdY.getSeries( ).add( valueSeries ); ( (Axis) ( (Axis) newChart.getAxes( ).get( 0 ) ).getAssociatedAxes( ) .get( 0 ) ).getSeriesDefinitions( ).add( sdY ); } if ( sDimension.equals( THREE_DIMENSION_TYPE ) ) { newChart.setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); newChart.setUnitSpacing( 50 ); newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ).clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); newChart.getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); newChart.getPrimaryOrthogonalAxis( newChart.getPrimaryBaseAxes( )[0] ) .getTitle( ) .getCaption( ) .getFont( ) .setRotation( 0 ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); } addSampleData( newChart ); return newChart; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/182827fe6ad4e223adc4bf4bcf44d469847b773d/AreaChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/AreaChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 14804, 7454, 12, 514, 272, 30511, 16, 531, 12556, 9820, 16, 1082, 202, 780, 272, 8611, 16, 14804, 783, 7984, 262, 202, 95, 202, 202, 7984, 1190, 26494, 394, 7984, 273, 446, 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, 14804, 7454, 12, 514, 272, 30511, 16, 531, 12556, 9820, 16, 1082, 202, 780, 272, 8611, 16, 14804, 783, 7984, 262, 202, 95, 202, 202, 7984, 1190, 26494, 394, 7984, 273, 446, 31...
+ TaskRepositoriesView.NAME + ".");
+ TaskRepositoriesView.NAME + ".\n\n"); MylarStatusHandler.log(e, "Failed to retrieve products from server");
private void initProducts() { // try to get the list of products from the server if (!bugWizard.model.hasParsedProducts()) { String repositoryUrl = repository.getUrl(); try { String[] storedProducts = BugzillaUiPlugin.getQueryOptions(IBugzillaConstants.VALUES_PRODUCT, null, repositoryUrl); if (storedProducts.length > 0) { products = Arrays.asList(storedProducts); } else { products = BugzillaServerFacade.getProductList(repository.getUrl(), TasksUiPlugin.getDefault() .getProxySettings(), repository.getUserName(), repository.getPassword(), repository .getCharacterEncoding()); } bugWizard.model.setConnected(true); bugWizard.model.setParsedProductsStatus(true); } catch (Exception e) { bugWizard.model.setConnected(false); PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() { public void run() { MessageDialog.openError(Display.getDefault().getActiveShell(), NEW_BUGZILLA_TASK_ERROR_TITLE, "Unable to get products. Ensure proper repository configuration in " + TaskRepositoriesView.NAME + "."); } }); } } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/3cadf1d4fe7ee5bfe2841c88dcb73dc0d1c1f333/BugzillaProductPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/BugzillaProductPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 13344, 1435, 288, 202, 202, 759, 775, 358, 336, 326, 666, 434, 10406, 628, 326, 1438, 202, 202, 430, 16051, 925, 27130, 18, 2284, 18, 5332, 11257, 13344, 10756, 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, 225, 202, 1152, 918, 1208, 13344, 1435, 288, 202, 202, 759, 775, 358, 336, 326, 666, 434, 10406, 628, 326, 1438, 202, 202, 430, 16051, 925, 27130, 18, 2284, 18, 5332, 11257, 13344, 10756, 288,...
String name = event.getTask().getTaskName();
String name = event.getTask().getName();
public void messageLogged( BuildEvent event ) { // Filter out messages based on priority if( event.getPriority() <= msgOutputLevel ) { StringBuffer message = new StringBuffer(); // Print out the name of the task if we're in one if( event.getTask() != null ) { String name = event.getTask().getTaskName(); if( !emacsMode ) { String label = "[" + name + "] "; for( int i = 0; i < ( LEFT_COLUMN_SIZE - label.length() ); i++ ) { message.append( " " ); } message.append( label ); } } message.append( event.getMessage() ); String msg = message.toString(); if( event.getPriority() != Project.MSG_ERR ) { out.println( msg ); } else { err.println( msg ); } log( msg ); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/a7e57725e0310ca20182465f2ab2aa877ac5b9b5/DefaultLogger.java/clean/proposal/myrmidon/src/todo/org/apache/tools/ant/DefaultLogger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 883, 19862, 12, 3998, 1133, 871, 262, 565, 288, 3639, 368, 4008, 596, 2743, 2511, 603, 4394, 3639, 309, 12, 871, 18, 588, 8183, 1435, 1648, 1234, 1447, 2355, 262, 3639, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 883, 19862, 12, 3998, 1133, 871, 262, 565, 288, 3639, 368, 4008, 596, 2743, 2511, 603, 4394, 3639, 309, 12, 871, 18, 588, 8183, 1435, 1648, 1234, 1447, 2355, 262, 3639, 288, ...
return getContextClassLoader().loadClass(className, true).asClass();
return getContextClassLoader().asClassLoader().loadClass(className);
public static Class forName(String className) throws ClassNotFoundException { return getContextClassLoader().loadClass(className, true).asClass(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/VmSystem.java/buggy/core/src/core/org/jnode/vm/VmSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1659, 11595, 12, 780, 2658, 13, 1216, 10403, 288, 202, 202, 2463, 23384, 7675, 945, 797, 12, 12434, 16, 638, 2934, 345, 797, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1659, 11595, 12, 780, 2658, 13, 1216, 10403, 288, 202, 202, 2463, 23384, 7675, 945, 797, 12, 12434, 16, 638, 2934, 345, 797, 5621, 202, 97, 2, -100, -100, -100, -100, -10...
AttributedCharacterIterator iter = las.getIterator();
AttributedCharacterIterator iter = las.getIterator();
protected List buildAttributedStrings(BridgeContext ctx, Element element, GraphicsNode node, boolean top, LinkedList result) { // !!! return two lists Map m = getAttributeMap(ctx, element, node); String s = XMLSupport.getXMLSpace(element); boolean preserve = s.equals("preserve"); boolean first = true; boolean last; boolean stripFirst = !preserve; boolean stripLast = !preserve; Element nodeElement = element; AttributedString as = null; if (!result.isEmpty()) { as = (AttributedString) result.getLast(); } for (Node n = element.getFirstChild(); n != null; n = n.getNextSibling()) { last = n.getNextSibling() == null; int lastChar = (as != null) ? (as.getIterator().last()) : CharacterIterator.DONE; stripFirst = !preserve && first && (top || (lastChar == ' ') || (lastChar == CharacterIterator.DONE)); switch (n.getNodeType()) { case Node.ELEMENT_NODE: nodeElement = (Element)n; if (n.getLocalName().equals("tspan")) { buildAttributedStrings(ctx, nodeElement, node, false, result); } else if (n.getLocalName().equals("tref")) { try { String uriStr = XLinkSupport.getXLinkHref((Element)n); SVGDocument svgDoc = (SVGDocument)element.getOwnerDocument(); URL baseURL = ((SVGOMDocument)svgDoc).getURLObject(); URL url = new URL(baseURL, uriStr); DocumentLoader loader = ctx.getDocumentLoader(); URIResolver resolver = new URIResolver(svgDoc, loader); Element ref = (Element)resolver.getNode(url.toString()); s = getElementContent(ref); Map map = getAttributeMap(ctx, nodeElement, node); int[] indexMap = new int[s.length()]; as = createAttributedString(s, map, indexMap, preserve, stripFirst, last && top); if (as != null) { addGlyphPositionAttributes( as, true, indexMap, ctx, nodeElement); stripLast = !preserve && (as.getIterator().first() == ' '); if (stripLast) { AttributedString las = (AttributedString) result.removeLast(); if (las != null) { AttributedCharacterIterator iter = las.getIterator(); int endIndex = iter.getEndIndex()-1; if (iter.setIndex(endIndex) == ' ') { las = new AttributedString( las.getIterator(null, iter.getBeginIndex(), endIndex)); } result.add(las); } } result.add(as); } } catch(MalformedURLException ex) { throw new IllegalAttributeValueException( Messages.formatMessage("tref.xlinkHref.badURL", null)); } catch (Exception ex) { /* Nothing to do */ } } break; case Node.TEXT_NODE: s = n.getNodeValue(); int[] indexMap = new int[s.length()]; as = createAttributedString( s, m, indexMap, preserve, stripFirst, last && top); if (as != null) { if (first) { addGlyphPositionAttributes(as, !top, indexMap, ctx, element); } stripLast = !preserve && (as.getIterator().first() == ' '); if (stripLast && !result.isEmpty()) { AttributedString las = (AttributedString) result.removeLast(); if (las != null) { AttributedCharacterIterator iter = las.getIterator(); int endIndex = iter.getEndIndex()-1; if (iter.setIndex(endIndex) == ' ') { las = new AttributedString( las.getIterator(null, iter.getBeginIndex(), endIndex)); } result.add(las); } } result.add(as); } } first = false; } return result; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/53cdbea418666ebb910c6f217e648b1581a19135/SVGTextElementBridge.java/buggy/sources/org/apache/batik/bridge/SVGTextElementBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 987, 1361, 861, 11050, 7957, 12, 13691, 1042, 1103, 16, 4766, 1850, 3010, 930, 16, 4766, 1850, 16830, 907, 756, 16, 4766, 1850, 1250, 1760, 16, 4766, 1850, 10688, 563, 13, 288, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 987, 1361, 861, 11050, 7957, 12, 13691, 1042, 1103, 16, 4766, 1850, 3010, 930, 16, 4766, 1850, 16830, 907, 756, 16, 4766, 1850, 1250, 1760, 16, 4766, 1850, 10688, 563, 13, 288, 3639...
if ( user.canAccess( document ) && imcref.checkDocAdminRights( intMetaId, user ) ) {
if ( user.canEdit( document ) ) {
public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets get the parameters and validate them Properties params = this.getParameters( req ); UserDomainObject user = Utility.getLoggedOnUser( req ); if ( !isUserAuthorized( req, res, user ) ) { return; } // Lets get the replylist from DB String discId = params.getProperty( "DISC_ID" ); String userId = ""; // Lets update the sessions DISC_ID HttpSession session = req.getSession( false ); if ( session != null ) { session.setAttribute( "Conference.disc_id", discId ); userId = (String)session.getAttribute( "Conference.user_id" ); } // Lets get serverinformation ImcmsServices imcref = Imcms.getServices(); String[][] sqlAnswer = imcref.sqlProcedureMulti( "A_GetAllRepliesInDisc", new String[]{discId, userId} ); // Lets get the discussion header String discHeader = imcref.sqlProcedureStr( "A_GetDiscussionHeader", new String[]{discId} ); if ( discHeader == null || discId.equalsIgnoreCase( "-1" ) ) discHeader = " "; // THIS CODE IS USED IF WE WANT RADIOBUTTONS // UsersSortOrderRadioButtons String metaId = params.getProperty( "META_ID" ); int intMetaId = Integer.parseInt( metaId ); String sortOrderValue = imcref.sqlProcedureStr( "A_ConfUsersGetReplyOrderSel", new String[]{metaId, userId} ); String ascState = ""; String descState = ""; String ascVal = "0"; if ( sortOrderValue.equalsIgnoreCase( "1" ) ) ascState = "checked"; else descState = "checked"; // SYNTAX: date first_name last_name headline text reply_level // Lets build our variable list Vector tagsV = new Vector(); tagsV.add( "#REPLY_DATE#" ); tagsV.add( "#FIRST_NAME#" ); tagsV.add( "#LAST_NAME#" ); tagsV.add( "#REPLY_HEADER#" ); tagsV.add( "#REPLY_TEXT#" ); tagsV.add( "#REPLY_LEVEL#" ); // Lets get path to the imagefolder. http://dev.imcode.com/images/102/ConfDiscNew.gif String imagePath = super.getExternalImageFolder( req ) + "ConfExpert.gif"; // Lets get the part of the expert html // Lets get the part of an html page, wich will be parsed for every a Href reference File templateLib = super.getExternalTemplateFolder( req ); File aSnippetFile = new File( templateLib, RECS_HTML ); // Lets update the discussion list this.updateDiscFlagList( req, discId ); // Lets preparse all records String allRecs = " "; if ( sqlAnswer != null ) allRecs = preParse( sqlAnswer, tagsV, aSnippetFile, imagePath ); // Lets build the Responsepage //lets generate the buttons that should appear String commentButton = "&nbsp;"; //lets show comment button if user has more than readrights DocumentMapper documentMapper = imcref.getDocumentMapper(); DocumentDomainObject document = documentMapper.getDocument(intMetaId); if ( user.canAccess( document ) && imcref.checkDocAdminRights( intMetaId, user ) ) { VariableManager vmButtons = new VariableManager(); vmButtons.addProperty( "#SERVLET_URL#", "" ); vmButtons.addProperty( "#IMAGE_URL#", this.getExternalImageFolder( req ) ); commentButton = getTemplate( NEW_COMMENT_TEMPLATE, user, vmButtons.getTagsAndData() ); } VariableManager vm = new VariableManager(); vm.addProperty( "NEW_COMMENT", commentButton ); vm.addProperty( "USER_SORT_ORDER", ascVal ); vm.addProperty( "CHECKBOX_STATE_ASC", ascState ); vm.addProperty( "CHECKBOX_STATE_DESC", descState ); vm.addProperty( "REPLIES_RECORDS", allRecs ); vm.addProperty( "CURRENT_DISCUSSION_HEADER", discHeader ); vm.addProperty( "ADMIN_LINK_HTML", ADMIN_LINK_TEMPLATE ); this.sendHtml( req, res, vm, HTML_TEMPLATE ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/962b9fbccc20a9dc1f7559965c2b0b91e0712a46/ConfReply.java/clean/server/src/com/imcode/imcms/servlet/conference/ConfReply.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23611, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 3639, 368, 511, 2413, 336, 326, 1472, 471, 1954, 2182, 3639, 6183, 859, 273, 333, 18, 588, 2402, 12, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23611, 12, 9984, 1111, 16, 12446, 400, 262, 1216, 16517, 16, 1860, 288, 3639, 368, 511, 2413, 336, 326, 1472, 471, 1954, 2182, 3639, 6183, 859, 273, 333, 18, 588, 2402, 12, 1...
if (jj_scan_token(NEW)) return true;
if (jj_scan_token(DOT)) return true;
final private boolean jj_3_24() { if (jj_scan_token(NEW)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_56()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_234()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 3247, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 17591, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 67, 3247, 1435, 288, 565, 309, 261, 78, 78, 67, 9871, 67, 2316, 12, 17591, 3719, 327, 638, 31, 565, 309, 261, 78, 78, 67, 11821, 422, 374, 597, 10684, ...
final Object o = (oOutputIdentifier instanceof String) ? new File((String) oOutputIdentifier) : oOutputIdentifier;
final Object o = (_oOutputIdentifier instanceof String) ? new File((String) _oOutputIdentifier) : _oOutputIdentifier;
public final void after() throws RenderingException { super.after(); // SEARCH FOR WRITER USING FORMAT Iterator it = null; String s = getFormat(); if (s != null) { it = ImageIO.getImageWritersByFormatName(s); if (!it.hasNext()) { it = null; // GET INTO NEXT CONSTRUCT; SEARCH BY MIME TYPE } } // SEARCH FOR WRITER USING MIME TYPE if (it == null) { s = getMimeType(); if (s == null) { throw new RenderingException("Unable to find any registered image writers for mime type [" + getMimeType() + "] and format [" + getFormat() + "] for " + getClass().getName()); } it = ImageIO.getImageWritersByMIMEType(s); if (!it.hasNext()) { throw new RenderingException("Unable to find any registered image writers for mime type [" + getMimeType() + "]"); } } final ImageWriter iw = (ImageWriter) it.next(); DefaultLoggerImpl.instance().log(ILogger.INFORMATION, "Using "+getFormat()+" image writer " + iw.getClass().getName()); final Object o = (oOutputIdentifier instanceof String) ? new File((String) oOutputIdentifier) : oOutputIdentifier; try { final ImageOutputStream ios = ImageIO.createImageOutputStream(o); updateWriterParameters(iw.getDefaultWriteParam()); // SET ANY OUTPUT FORMAT SPECIFIC PARAMETERS IF NEEDED iw.setOutput(ios); iw.write((BufferedImage) img); ios.close(); } catch (Exception ex) { throw new RenderingException(ex); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/33beeddc227788afba30169ba3caf62900be93f8/JavaxImageIOWriter.java/clean/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/image/JavaxImageIOWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1839, 1435, 1216, 18018, 503, 565, 288, 377, 202, 9565, 18, 5205, 5621, 377, 202, 377, 202, 759, 24053, 12108, 12984, 11844, 11836, 1360, 10449, 377, 202, 3198, 518, 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, 727, 918, 1839, 1435, 1216, 18018, 503, 565, 288, 377, 202, 9565, 18, 5205, 5621, 377, 202, 377, 202, 759, 24053, 12108, 12984, 11844, 11836, 1360, 10449, 377, 202, 3198, 518, 273, ...