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 |
|---|---|---|---|---|---|---|
ruby = Ruby.getDefaultInstance(GNURegexpAdapter.class); | ruby = Ruby.getDefaultInstance(GNURegexpAdapter.class); | public void setUp() { ruby = Ruby.getDefaultInstance(GNURegexpAdapter.class); } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/774c5d3d592dfd020e3a8f961b73f629c4c55cf0/TestRuby.java/clean/org/jruby/test/TestRuby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
288,
202,
27768,
273,
19817,
18,
588,
1868,
1442,
12,
8318,
57,
14621,
4216,
18,
1106,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
288,
202,
27768,
273,
19817,
18,
588,
1868,
1442,
12,
8318,
57,
14621,
4216,
18,
1106,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
details = VM_Statics.getSlotContentsAsInt(jtocSlot) + ""; | details = VM_Statics.getSlotContentsAsInt(jtocOff) + ""; | private static void writeAddressMap(String mapFileName) throws IOException { if (verbose >= 1) say("writing ", mapFileName); FileOutputStream fos = new FileOutputStream(mapFileName); BufferedOutputStream bos = new BufferedOutputStream(fos, 128); PrintStream out = new PrintStream(bos, false); out.println("#! /bin/bash"); out.println("# This is a method address map, for use with the ``dbx'' debugger."); out.println("# To sort by \"code\" address, type \"bash <name-of-this-file>\"."); out.println(); out.println("(/bin/grep 'code 0x' | /bin/sort -k 4.3,4) << EOF-EOF-EOF"); out.println(); out.println("JTOC Map"); out.println("--------"); out.println("slot offset category contents details"); out.println("---- ------ -------- -------- -------"); String pad = " "; for (int jtocSlot = 0; jtocSlot < VM_Statics.getNumberOfSlots(); ++jtocSlot) { byte description = VM_Statics.getSlotDescription(jtocSlot); String category = "<?> "; String contents = "<?> " + pad; String details = "<?>"; int ival; // temporaries long lval; String sval; switch (description) { case VM_Statics.EMPTY: category = "unused "; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = ""; break; case VM_Statics.INT_LITERAL: category = "literal"; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = VM_Statics.getSlotContentsAsInt(jtocSlot) + ""; break; case VM_Statics.FLOAT_LITERAL: category = "literal"; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = Float.intBitsToFloat(ival) + "F"; break; case VM_Statics.LONG_LITERAL: category = "literal"; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = lval + "L"; break; case VM_Statics.DOUBLE_LITERAL: category = "literal"; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = Double.longBitsToDouble(lval) + "D"; break; case VM_Statics.NUMERIC_FIELD: category = "field "; ival = VM_Statics.getSlotContentsAsInt(jtocSlot); contents = VM.intAsHexString(ival) + pad; details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.WIDE_NUMERIC_FIELD: category = "field "; lval = VM_Statics.getSlotContentsAsLong(jtocSlot); contents = VM.intAsHexString((int) (lval >> 32)) + VM.intAsHexString((int) (lval & 0xffffffffL)).substring(2); details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.STRING_LITERAL: category = "literal"; contents = VM.addressAsHexString(getReferenceAddr(jtocSlot)) + pad; details = "\"" + ((String) BootImageMap.getObject(getIVal(jtocSlot))).replace('\n', ' ') +"\""; break; case VM_Statics.REFERENCE_FIELD: category = "field "; contents = VM.addressAsHexString(getReferenceAddr(jtocSlot)) + pad; details = getRvmStaticFieldName(jtocSlot); break; case VM_Statics.METHOD: category = "code "; contents = VM.addressAsHexString(getReferenceAddr(jtocSlot)) + pad; VM_CompiledMethod m = findMethodOfCode(BootImageMap.getObject(getIVal(jtocSlot))); details = m == null ? "<?>" : m.getMethod().toString(); break; case VM_Statics.TIB: contents = VM.addressAsHexString(getReferenceAddr(jtocSlot)) + pad; category = "tib "; VM_Type type = findTypeOfTIBSlot(jtocSlot); details = (type == null) ? "?" : type.toString(); break; default: break; } out.println((jtocSlot + " ").substring(0,6) + VM.intAsHexString(jtocSlot << LOG_BYTES_IN_INT) + " " + category + " " + contents + " " + details); if ((description & VM_Statics.WIDE_TAG) != 0) jtocSlot += 1; } out.println(); out.println("Method Map"); out.println("----------"); out.println(" address method"); out.println(" ------- ------"); out.println(); VM_CompiledMethod[] compiledMethods = VM_CompiledMethods.getCompiledMethods(); for (int i = 0; i < VM_CompiledMethods.numCompiledMethods(); ++i) { VM_CompiledMethod compiledMethod = compiledMethods[i]; if (compiledMethod != null) { VM_Method m = compiledMethod.getMethod(); if (m != null && compiledMethod.isCompiled()) { VM_CodeArray instructions = compiledMethod.getInstructions(); Address code = BootImageMap.getImageAddress(bootImageAddress, instructions.getBacking()); out.println(". . code " + VM.addressAsHexString(code) + " " + compiledMethod.getMethod()); } } } out.println(); out.println("EOF-EOF-EOF"); out.flush(); out.close(); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/ea6b401d82469a044d9cebd971fa06a82c817f01/BootImageWriter.java/buggy/rvm/src/tools/bootImageWriter/BootImageWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
1045,
1887,
863,
12,
780,
852,
4771,
13,
1216,
1860,
288,
565,
309,
261,
11369,
1545,
404,
13,
12532,
2932,
14345,
3104,
852,
4771,
1769,
565,
12942,
17615,
273,
394,
1294... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
1045,
1887,
863,
12,
780,
852,
4771,
13,
1216,
1860,
288,
565,
309,
261,
11369,
1545,
404,
13,
12532,
2932,
14345,
3104,
852,
4771,
1769,
565,
12942,
17615,
273,
394,
1294... |
debugStream.println("<" + lexStateNames[curLexState] + ">" + "Current character : " + TokenMgrError.addEscapes(String.valueOf(curChar)) + " (" + (int)curChar + ")"); | public final Token getNextToken() { int kind; Token specialToken = null; Token matchedToken; int curPos = 0; EOFLoop : for (;;) { try { curChar = input_stream.BeginToken(); } catch(java.io.IOException e) { debugStream.println("Returning the <EOF> token."); jjmatchedKind = 0; matchedToken = jjFillToken(); return matchedToken; } switch(curLexState) { case 0: try { input_stream.backup(0); while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L) { debugStream.println("<" + lexStateNames[curLexState] + ">" + "Skipping character : " + TokenMgrError.addEscapes(String.valueOf(curChar)) + " (" + (int)curChar + ")"); curChar = input_stream.BeginToken(); } } catch (java.io.IOException e1) { continue EOFLoop; } jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; debugStream.println("<" + lexStateNames[curLexState] + ">" + "Current character : " + TokenMgrError.addEscapes(String.valueOf(curChar)) + " (" + (int)curChar + ")"); curPos = jjMoveStringLiteralDfa0_0(); break; case 1: try { input_stream.backup(0); while (curChar <= 32 && (0x100003600L & (1L << curChar)) != 0L) { debugStream.println("<" + lexStateNames[curLexState] + ">" + "Skipping character : " + TokenMgrError.addEscapes(String.valueOf(curChar)) + " (" + (int)curChar + ")"); curChar = input_stream.BeginToken(); } } catch (java.io.IOException e1) { continue EOFLoop; } jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; debugStream.println("<" + lexStateNames[curLexState] + ">" + "Current character : " + TokenMgrError.addEscapes(String.valueOf(curChar)) + " (" + (int)curChar + ")"); curPos = jjMoveStringLiteralDfa0_1(); break; } if (jjmatchedKind != 0x7fffffff) { if (jjmatchedPos + 1 < curPos) { debugStream.println(" Putting back " + (curPos - jjmatchedPos - 1) + " characters into the input stream."); input_stream.backup(curPos - jjmatchedPos - 1); } debugStream.println("****** FOUND A " + tokenImage[jjmatchedKind] + " MATCH (" + TokenMgrError.addEscapes(new String(input_stream.GetSuffix(jjmatchedPos + 1))) + ") ******\n"); if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) { matchedToken = jjFillToken(); if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; return matchedToken; } else { if (jjnewLexState[jjmatchedKind] != -1) curLexState = jjnewLexState[jjmatchedKind]; continue EOFLoop; } } int error_line = input_stream.getEndLine(); int error_column = input_stream.getEndColumn(); String error_after = null; boolean EOFSeen = false; try { input_stream.readChar(); input_stream.backup(1); } catch (java.io.IOException e1) { EOFSeen = true; error_after = curPos <= 1 ? "" : input_stream.GetImage(); if (curChar == '\n' || curChar == '\r') { error_line++; error_column = 0; } else error_column++; } if (!EOFSeen) { input_stream.backup(1); error_after = curPos <= 1 ? "" : input_stream.GetImage(); } throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); }} | 2043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2043/9bd05df5381fb98627098de4a542151bc7015db9/ArchiveParserTokenManager.java/clean/jrcs/src/java/org/apache/commons/jrcs/rcs/ArchiveParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
727,
3155,
22616,
1435,
288,
225,
509,
3846,
31,
225,
3155,
4582,
1345,
273,
446,
31,
225,
3155,
4847,
1345,
31,
225,
509,
662,
1616,
273,
374,
31,
225,
6431,
6452,
294,
225,
364,
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,
1071,
727,
3155,
22616,
1435,
288,
225,
509,
3846,
31,
225,
3155,
4582,
1345,
273,
446,
31,
225,
3155,
4847,
1345,
31,
225,
509,
662,
1616,
273,
374,
31,
225,
6431,
6452,
294,
225,
364,
261,... | |
configVar.setName( paramName + "_" + parameter.getID( ) ); configVar.setValue( paramValue ); handle.addConfigVariable( configVar ); ConfigVariable typeVar = new ConfigVariable( ); typeVar.setName( paramName + "_" + parameter.getID( ) + "_" + IBirtConstants.PROP_TYPE ); typeVar.setValue( dataType ); handle.addConfigVariable( typeVar ); } | ConfigVariable typeVar = new ConfigVariable( ); typeVar.setName( paramName + "_" + parameter.getID( ) + "_" + IBirtConstants.PROP_TYPE ); typeVar.setValue( dataType ); handle.addConfigVariable( typeVar ); | protected void __execute( ) throws Exception { ViewerAttributeBean attrBean = (ViewerAttributeBean) context.getBean( ); assert attrBean != null; // get design file name String reportDesignName = attrBean.getReportDesignName( ); // get design config file name String configFileName = ParameterAccessor .getConfigFileName( reportDesignName ); if ( configFileName == null ) { handleUpdate( ); return; } // Generate the session handle SessionHandle sessionHandle = DesignEngine.newSession( ULocale.US ); File configFile = new File( configFileName ); // if config file existed, then delete it if ( configFile != null && configFile.exists( ) && configFile.isFile( ) ) { configFile.delete( ); } // create a new config file ReportDesignHandle handle = sessionHandle.createDesign( ); // get parameters from operation String displayTextParam = null; Oprand[] op = this.operation.getOprand( ); if ( op != null ) { for ( int i = 0; i < op.length; i++ ) { ConfigVariable configVar = new ConfigVariable( ); String paramName = op[i].getName( ); String paramValue = op[i].getValue( ); ScalarParameterHandle parameter = null; // if pass a null parameter if ( paramName .equalsIgnoreCase( ParameterAccessor.PARAM_ISNULL ) && paramValue != null ) { parameter = (ScalarParameterHandle) attrBean .findParameter( paramValue ); if ( parameter != null ) { // add null parameter to config file configVar.setName( ParameterAccessor.PARAM_ISNULL + "_" + parameter.getID( ) ); //$NON-NLS-1$ configVar.setValue( paramValue + "_" + parameter.getID( ) ); //$NON-NLS-1$ handle.addConfigVariable( configVar ); } continue; } else if ( ( displayTextParam = ParameterAccessor .isDisplayText( paramName ) ) != null ) { parameter = (ScalarParameterHandle) attrBean .findParameter( displayTextParam ); if ( parameter != null ) { // add display text of select parameter to config file configVar .setName( paramName + "_" + parameter.getID( ) ); //$NON-NLS-1$ configVar.setValue( paramValue ); handle.addConfigVariable( configVar ); } continue; } // find the parameter parameter = (ScalarParameterHandle) attrBean .findParameter( paramName ); // convert the parameter from current locale to default // locale format String dataType = DesignChoiceConstants.PARAM_TYPE_STRING; if ( paramValue != null && parameter != null ) { try { String pattern = parameter.getPattern( ); dataType = parameter.getDataType( ); Object paramValueObj = ParameterValidationUtil .validate( dataType, pattern, paramValue, attrBean.getLocale( ) ); // if parameter type is String, cache the unformatted // string if ( DesignChoiceConstants.PARAM_TYPE_STRING .equalsIgnoreCase( dataType ) ) { pattern = null; } else if( DesignChoiceConstants.PARAM_TYPE_DATETIME .equalsIgnoreCase( dataType ) ) { pattern = ParameterValidationUtil.DEFAULT_DATETIME_FORMAT; } paramValue = ParameterValidationUtil.getDisplayValue( dataType, pattern, paramValueObj, ULocale.US ); } catch ( Exception err ) { paramValue = op[i].getValue( ); } // add parameter to config file configVar.setName( paramName + "_" + parameter.getID( ) ); //$NON-NLS-1$ configVar.setValue( paramValue ); handle.addConfigVariable( configVar ); // add parameter type ConfigVariable typeVar = new ConfigVariable( ); typeVar.setName( paramName + "_" + parameter.getID( ) + "_" //$NON-NLS-1$//$NON-NLS-2$ + IBirtConstants.PROP_TYPE ); typeVar.setValue( dataType ); handle.addConfigVariable( typeVar ); } } } // save config file handle.saveAs( configFileName ); handle.close( ); handleUpdate( ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ca68affed934a28ee301ea95ac43aa8d24c023f8/BirtCacheParameterActionHandler.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtCacheParameterActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1001,
8837,
12,
262,
1216,
1185,
202,
95,
202,
202,
18415,
1499,
3381,
1604,
3381,
273,
261,
18415,
1499,
3381,
13,
819,
18,
588,
3381,
12,
11272,
202,
202,
11231,
1604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1001,
8837,
12,
262,
1216,
1185,
202,
95,
202,
202,
18415,
1499,
3381,
1604,
3381,
273,
261,
18415,
1499,
3381,
13,
819,
18,
588,
3381,
12,
11272,
202,
202,
11231,
1604,
... |
if (Context.check && lbits < 0) Context.codeBug(); | if (lbits < 0) Context.codeBug(); | private void sourceAddNumber(double n) { sourceAdd((char)TokenStream.NUMBER); /* encode the number in the source stream. * Save as NUMBER type (char | char char char char) * where type is * 'D' - double, 'S' - short, 'J' - long. * We need to retain float vs. integer type info to keep the * behavior of liveconnect type-guessing the same after * decompilation. (Liveconnect tries to present 1.0 to Java * as a float/double) * OPT: This is no longer true. We could compress the format. * This may not be the most space-efficient encoding; * the chars created below may take up to 3 bytes in * constant pool UTF-8 encoding, so a Double could take * up to 12 bytes. */ long lbits = (long)n; if (lbits != n) { // if it's floating point, save as a Double bit pattern. // (12/15/97 our scanner only returns Double for f.p.) lbits = Double.doubleToLongBits(n); sourceAdd('D'); sourceAdd((char)(lbits >> 48)); sourceAdd((char)(lbits >> 32)); sourceAdd((char)(lbits >> 16)); sourceAdd((char)lbits); } else { // we can ignore negative values, bc they're already prefixed // by UNARYOP SUB if (Context.check && lbits < 0) Context.codeBug(); // will it fit in a char? // this gives a short encoding for integer values up to 2^16. if (lbits <= Character.MAX_VALUE) { sourceAdd('S'); sourceAdd((char)lbits); } else { // Integral, but won't fit in a char. Store as a long. sourceAdd('J'); sourceAdd((char)(lbits >> 48)); sourceAdd((char)(lbits >> 32)); sourceAdd((char)(lbits >> 16)); sourceAdd((char)lbits); } } } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/56c3f65ac92dbd3ff9f471a1829280e95bd7ddf4/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1084,
986,
1854,
12,
9056,
290,
13,
288,
3639,
1084,
986,
12443,
3001,
13,
1345,
1228,
18,
9931,
1769,
3639,
1748,
2017,
326,
1300,
316,
326,
1084,
1407,
18,
540,
380,
7074,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1084,
986,
1854,
12,
9056,
290,
13,
288,
3639,
1084,
986,
12443,
3001,
13,
1345,
1228,
18,
9931,
1769,
3639,
1748,
2017,
326,
1300,
316,
326,
1084,
1407,
18,
540,
380,
7074,
... |
/*if (ruby_inplace_mode) { struct stat st, st2; VALUE str; FILE *fw; if (TYPE(rb_defout) == T_FILE && rb_defout != rb_stdout) { rb_io_close(rb_defout); } fstat(fileno(fr), &st); if (*ruby_inplace_mode) { str = rb_str_new2(fn); #ifdef NO_LONG_FNAME ruby_add_suffix(str, ruby_inplace_mode); #else rb_str_cat2(str, ruby_inplace_mode); #endif #ifdef NO_SAFE_RENAME (void)fclose(fr); (void)unlink(RSTRING(str)->ptr); (void)rename(fn, RSTRING(str)->ptr); fr = rb_fopen(RSTRING(str)->ptr, "r"); #else if (rename(fn, RSTRING(str)->ptr) < 0) { rb_warn("Can't rename %s to %s: %s, skipping file", fn, RSTRING(str)->ptr, strerror(errno)); fclose(fr); goto retry; } #endif } else { #ifdef NO_SAFE_RENAME rb_fatal("Can't do inplace edit without backup"); #else if (unlink(fn) < 0) { rb_warn("Can't remove %s: %s, skipping file", fn, strerror(errno)); fclose(fr); goto retry; } #endif } fw = rb_fopen(fn, "w"); #ifndef NO_SAFE_RENAME fstat(fileno(fw), &st2); #ifdef HAVE_FCHMOD fchmod(fileno(fw), st.st_mode); #else chmod(fn, st.st_mode); #endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { fchown(fileno(fw), st.st_uid, st.st_gid); } #endif rb_defout = prep_stdio(fw, FMODE_WRITABLE, rb_cFile); prep_path(rb_defout, fn); }*/ | currentFile = new RubyFile(runtime, runtime.getClasses().getFileClass()); currentFile.initIO(inStream, null, filename); | protected boolean nextArgsFile() { RubyArray args = (RubyArray)runtime.getGlobalVar("$*"); if (!init_p) { if (args.getLength() > 0) { next_p = 1; } else { next_p = -1; currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue("-"); } init_p = true; first_p = false; currentLineNumber = 0; } // retry : while (true) { if (next_p == 1) { next_p = 0; if (args.getLength() > 0) { String filename = ((RubyString) args.shift()).getValue(); ((RubyString) runtime.getGlobalVar("$FILENAME")).setValue(filename); if (filename.equals("-")) { currentFile = (RubyIO) runtime.getGlobalVar("$stdin"); /*if (ruby_inplace_mode) { rb_warn("Can't do inplace edit for stdio"); rb_defout = rb_stdout; }*/ } else { File file = new File(filename); try { RubyInputStream inStream = new RubyInputStream(new BufferedInputStream(new FileInputStream(file))); // FILE *fr = rb_fopen(fn, "r"); /*if (ruby_inplace_mode) { struct stat st, st2; VALUE str; FILE *fw; if (TYPE(rb_defout) == T_FILE && rb_defout != rb_stdout) { rb_io_close(rb_defout); } fstat(fileno(fr), &st); if (*ruby_inplace_mode) { str = rb_str_new2(fn); #ifdef NO_LONG_FNAME ruby_add_suffix(str, ruby_inplace_mode); #else rb_str_cat2(str, ruby_inplace_mode); #endif #ifdef NO_SAFE_RENAME (void)fclose(fr); (void)unlink(RSTRING(str)->ptr); (void)rename(fn, RSTRING(str)->ptr); fr = rb_fopen(RSTRING(str)->ptr, "r"); #else if (rename(fn, RSTRING(str)->ptr) < 0) { rb_warn("Can't rename %s to %s: %s, skipping file", fn, RSTRING(str)->ptr, strerror(errno)); fclose(fr); goto retry; } #endif } else { #ifdef NO_SAFE_RENAME rb_fatal("Can't do inplace edit without backup"); #else if (unlink(fn) < 0) { rb_warn("Can't remove %s: %s, skipping file", fn, strerror(errno)); fclose(fr); goto retry; } #endif } fw = rb_fopen(fn, "w"); #ifndef NO_SAFE_RENAME fstat(fileno(fw), &st2); #ifdef HAVE_FCHMOD fchmod(fileno(fw), st.st_mode); #else chmod(fn, st.st_mode); #endif if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) { fchown(fileno(fw), st.st_uid, st.st_gid); } #endif rb_defout = prep_stdio(fw, FMODE_WRITABLE, rb_cFile); prep_path(rb_defout, fn); }*/ currentFile = new RubyFile(runtime, runtime.getClasses().getFileClass()); currentFile.initIO(inStream, null, filename); // prep_stdio(fr, FMODE_READABLE, rb_cFile); // prep_path(current_file, fn); } catch (FileNotFoundException fnfExcptn) { throw new IOError(runtime, fnfExcptn.getMessage()); } } /*if (binmode) rb_io_binmode(current_file);*/ } else { init_p = false; return false; } } //break; //} return true; } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/49c17b4ec0ae2e046650a9ace532caa461a65f20/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
9448,
18,
588,
5160,
1537,
2932,
8,
7388,
1769,
3639,
309,
16051,
2738,
67,
84,
13,
288,
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,
4750,
1250,
1024,
2615,
812,
1435,
288,
3639,
19817,
1076,
833,
273,
261,
54,
10340,
1076,
13,
9448,
18,
588,
5160,
1537,
2932,
8,
7388,
1769,
3639,
309,
16051,
2738,
67,
84,
13,
288,
5... |
m_ops.m_opMap[m_ops.m_opMap[OpMap.MAPINDEX_LENGTH] - 2] = 4; m_ops.m_opMap[m_ops.m_opMap[OpMap.MAPINDEX_LENGTH] - 1] = OpCodes.NODETYPE_ROOT; | m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 2, 4); m_ops.setOp(m_ops.getOp(OpMap.MAPINDEX_LENGTH) - 1, OpCodes.NODETYPE_ROOT); | protected void LocationPath() throws javax.xml.transform.TransformerException { int opPos = m_ops.m_opMap[OpMap.MAPINDEX_LENGTH]; // int locationPathOpPos = opPos; appendOp(2, OpCodes.OP_LOCATIONPATH); boolean seenSlash = tokenIs('/'); if (seenSlash) { appendOp(4, OpCodes.FROM_ROOT); // Tell how long the step is without the predicate m_ops.m_opMap[m_ops.m_opMap[OpMap.MAPINDEX_LENGTH] - 2] = 4; m_ops.m_opMap[m_ops.m_opMap[OpMap.MAPINDEX_LENGTH] - 1] = OpCodes.NODETYPE_ROOT; nextToken(); } if (m_token != null) { if (!RelativeLocationPath() && !seenSlash) { // Neither a '/' nor a RelativeLocationPath - i.e., matched nothing // "Location path expected, but found "+m_token+" was encountered." error(XPATHErrorResources.ER_EXPECTED_LOC_PATH, new Object [] {m_token}); } } // Terminate for safety. m_ops.m_opMap[m_ops.m_opMap[OpMap.MAPINDEX_LENGTH]] = OpCodes.ENDOP; m_ops.m_opMap[OpMap.MAPINDEX_LENGTH] += 1; m_ops.m_opMap[opPos + OpMap.MAPINDEX_LENGTH] = m_ops.m_opMap[OpMap.MAPINDEX_LENGTH] - opPos; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/f136f83081069756bcd71950054569f3ad4d2ce5/XPathParser.java/buggy/src/org/apache/xpath/compiler/XPathParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
7050,
743,
1435,
1216,
6863,
18,
2902,
18,
6547,
18,
8319,
503,
225,
288,
565,
509,
1061,
1616,
273,
312,
67,
4473,
18,
81,
67,
556,
863,
63,
3817,
863,
18,
8352,
9199,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7050,
743,
1435,
1216,
6863,
18,
2902,
18,
6547,
18,
8319,
503,
225,
288,
565,
509,
1061,
1616,
273,
312,
67,
4473,
18,
81,
67,
556,
863,
63,
3817,
863,
18,
8352,
9199,
67,... |
IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2825, IEJBValidationContext.WARNING, role, this); | IMessage message = MessageUtility.getUtility().getMessage(vc, IEJBValidatorMessageConstants.CHKJ2825, IEJBValidationContext.WARNING, role, this); | protected void validateAssemblyDescriptorElement(IEJBValidationContext vc, EJBJar ejbJar) { vc.terminateIfCancelled(); // Validate the security roles, if they're defined in the assembly-descriptor. if (ejbJar == null) { // nothing to validate return; } /** * Need to build up a list of duplicate role names, but the validation message * needs to be registered against the duplicate SecurityRole instance. * (Without the instance, we cannot get line numbers.) * * This class wrappers the SecurityRol instance so that the wrapper's * implemention of equals compares the names, but the validation message will * still be able to get the ref from the duplicate name. */ class RoleWrapper { private SecurityRole _role = null; public RoleWrapper(SecurityRole role) { _role = role; } public boolean equals(Object o) { if (o instanceof RoleWrapper) { RoleWrapper other = (RoleWrapper) o; return _role.getRoleName().equals(other.getRole().getRoleName()); } return false; } public SecurityRole getRole() { return _role; } } AssemblyDescriptor assemblyDescriptor = ejbJar.getAssemblyDescriptor(); if (assemblyDescriptor == null) { // nothing to validate return; } List roles = assemblyDescriptor.getSecurityRoles(); if (roles != null) { DuplicatesTable roleNames = new DuplicatesTable(); SecurityRole role = null; Iterator roleIt = roles.iterator(); while (roleIt.hasNext()) { vc.terminateIfCancelled(); // Check that the role-name element has been set role = (SecurityRole) roleIt.next(); if (role == null) { // role-name not set IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2825, IEJBValidationContext.WARNING, ejbJar, this); vc.addMessage(message); } else if ((!role.eIsSet(CommonPackage.eINSTANCE.getSecurityRole_RoleName())) || (role.getRoleName().equals(""))) { //$NON-NLS-1$ // role-name not set IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2825, IEJBValidationContext.WARNING, role, this); vc.addMessage(message); } else { // Build up hashtable to check for duplicate role-names. roleNames.add(new RoleWrapper(role)); } } // Check that there are no duplicate role-names. (15.3.1) if (roleNames.containsDuplicates()) { List duplicates = roleNames.getDuplicates(); Iterator iterator = duplicates.iterator(); while (iterator.hasNext()) { IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2826, IEJBValidationContext.WARNING, ((RoleWrapper) iterator.next()).getRole(), this); vc.addMessage(message); } } roleNames.clear(); } List methTrans = assemblyDescriptor.getMethodTransactions(); MethodTransaction mt = null; Iterator iterator = methTrans.iterator(); while (iterator.hasNext()) { vc.terminateIfCancelled(); try { mt = (MethodTransaction) iterator.next(); } catch (Throwable exc) { Logger logger = vc.getMsgLogger(); if (logger != null && logger.isLoggingLevel(Level.FINER)) { logger.write(Level.FINER, exc); } mt = null; } if (mt == null) { Logger logger = vc.getMsgLogger(); if (logger != null && logger.isLoggingLevel(Level.FINEST)) { LogEntry entry = vc.getLogEntry(); entry.setSourceID("DDValidator.validateAssemblyDescriptorElement"); //$NON-NLS-1$ entry.setText("mt is null"); //$NON-NLS-1$ logger.write(Level.FINEST, entry); } continue; } boolean hasValidMethod = validateMethodElements(vc, ejbJar, mt.getMethodElements()); if (!hasValidMethod) { IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2847, IEJBValidationContext.WARNING, mt, this); vc.addMessage(message); } } List methodPermissions = assemblyDescriptor.getMethodPermissions(); iterator = methodPermissions.iterator(); while (iterator.hasNext()) { MethodPermission mp = (MethodPermission) iterator.next(); boolean hasValidMethod = validateMethodElements(vc, ejbJar, mp.getMethodElements()); if (!hasValidMethod) { // 15.3.2, p. 229, a <method-permission> must have at least one method listed (and that method must be found) IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2846, IEJBValidationContext.WARNING, mp, this); vc.addMessage(message); } // at least one security-role must be defined List mproles = mp.getRoles(); if ((mproles == null) || (mproles.size() == 0)) { IMessage message = MessageUtility.getUtility().getMessage(vc, IMessagePrefixEjb11Constants.CHKJ2845, IEJBValidationContext.WARNING, mp, this); vc.addMessage(message); } } } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/18a2a3b489fef7cefb688b690beaeaf64c4480fd/EJBJar11VRule.java/buggy/plugins/org.eclipse.jst.j2ee.core/j2ee-validation/org/eclipse/jst/j2ee/model/internal/validation/EJBJar11VRule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1954,
24368,
3187,
1046,
12,
8732,
8877,
4354,
1042,
12802,
16,
12157,
10813,
18024,
10813,
13,
288,
202,
202,
4227,
18,
30017,
2047,
21890,
5621,
202,
202,
759,
3554,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1954,
24368,
3187,
1046,
12,
8732,
8877,
4354,
1042,
12802,
16,
12157,
10813,
18024,
10813,
13,
288,
202,
202,
4227,
18,
30017,
2047,
21890,
5621,
202,
202,
759,
3554,
326,
... |
if(element == null) { | if (element == null) { | protected void indexElement(ElementType element) { if(element == null) { return; } QName type = element.getSchemaType(); if (type != null) { indexElement(type, element); } indexElement(element.getElementQName(), element); } | 52539 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52539/db2958a634e0ef3570f5743fd5865d2c2b9c2870/IndexedXMLObjectChildrenList.java/buggy/src/org/opensaml/xml/util/IndexedXMLObjectChildrenList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
770,
1046,
12,
17481,
930,
13,
288,
3639,
309,
261,
2956,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
7734,
16723,
618,
273,
930,
18,
588,
3078,
559,
5621,
3639,
309,
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,
377,
4750,
918,
770,
1046,
12,
17481,
930,
13,
288,
3639,
309,
261,
2956,
422,
446,
13,
288,
5411,
327,
31,
3639,
289,
7734,
16723,
618,
273,
930,
18,
588,
3078,
559,
5621,
3639,
309,
261,
... |
return event.getLocationInformation().getFileName(); | return ((info == null) ? "" : info.getFileName()); | public Object getValue(String fieldName, LoggingEvent event) { String upperField = fieldName.toUpperCase(); if (LOGGER_FIELD.equals(upperField)) { return event.getLoggerName(); } else if (LEVEL_FIELD.equals(upperField)) { return event.getLevel(); } else if (CLASS_FIELD.equals(upperField)) { return event.getLocationInformation().getClassName(); } else if (FILE_FIELD.equals(upperField)) { return event.getLocationInformation().getFileName(); } else if (LINE_FIELD.equals(upperField)) { return event.getLocationInformation().getLineNumber(); } else if (METHOD_FIELD.equals(upperField)) { return event.getLocationInformation().getMethodName(); } else if (MSG_FIELD.equals(upperField)) { return event.getMessage(); } else if (NDC_FIELD.equals(upperField)) { String ndcValue = event.getNDC(); return ((ndcValue == null) ? "" : ndcValue); } else if (EXCEPTION_FIELD.equals(upperField)) { return event.getThrowableInformation(); } else if (TIMESTAMP_FIELD.equals(upperField)) { return new Long(event.timeStamp); } else if (THREAD_FIELD.equals(upperField)) { return event.getThreadName(); } else if (upperField.startsWith(MDC_FIELD)) { //note: need to use actual fieldname since case matters Object mdcValue = event.getMDC(fieldName.substring(4)); return ((mdcValue == null) ? EMPTY_STRING : mdcValue.toString()); } else if (upperField.startsWith(PROP_FIELD)) { //note: need to use actual fieldname since case matters String propValue = event.getProperty(fieldName.substring(5)); return ((propValue == null) ? EMPTY_STRING : propValue); } //there wasn't a match, so throw a runtime exception throw new RuntimeException("Unsupported field name: " + fieldName); } | 47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/8f90f4ddce2f03b5e0e7c8d538c828689752681d/LoggingEventFieldResolver.java/clean/src/java/org/apache/log4j/chainsaw/LoggingEventFieldResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
2366,
12,
780,
4289,
16,
10253,
1133,
871,
13,
288,
565,
514,
3854,
974,
273,
4289,
18,
869,
8915,
5621,
565,
309,
261,
8757,
67,
6776,
18,
14963,
12,
5797,
974,
3719,
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,
282,
1071,
1033,
2366,
12,
780,
4289,
16,
10253,
1133,
871,
13,
288,
565,
514,
3854,
974,
273,
4289,
18,
869,
8915,
5621,
565,
309,
261,
8757,
67,
6776,
18,
14963,
12,
5797,
974,
3719,
288,
... |
if (object.isNull()) return false; | if (object.isNull()) return false; | public boolean isLive(ObjectReference object) { if (object.isNull()) return false; if (Space.isInSpace(NoGC.DEF, object)) { return NoGC.defSpace.isLive(object); } return super.isLive(object); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/30524c62fa391922d51289c03075f714c772951c/NoGCTraceLocal.java/buggy/MMTk/src/org/mmtk/plan/nogc/NoGCTraceLocal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
12328,
12,
22101,
733,
13,
288,
565,
309,
261,
1612,
18,
291,
2041,
10756,
327,
629,
31,
565,
309,
261,
3819,
18,
291,
382,
3819,
12,
2279,
15396,
18,
12904,
16,
733,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
12328,
12,
22101,
733,
13,
288,
565,
309,
261,
1612,
18,
291,
2041,
10756,
327,
629,
31,
565,
309,
261,
3819,
18,
291,
382,
3819,
12,
2279,
15396,
18,
12904,
16,
733,
... |
boolean isEnabled, String host, int port, String username, String password, int folderId) | boolean isEnabled, String host, Integer port, String connectionType, String username, String password, int folderId) | public synchronized MailItemDataSource createDataSource(OperationContext octxt, String type, String name, boolean isEnabled, String host, int port, String username, String password, int folderId) throws ServiceException { ZimbraLog.mailbox.info(String.format( "Creating data source: type=%s, name=%s, isEnabled=%b, host=%s, port=%d, username=%s, folderId=%d", type, name, isEnabled, host, port, username, folderId)); Map<Integer, MailItemDataSource> dataSources = getDataSourcesInternal(octxt); // Calculate new id int maxId = 0; for (MailItemDataSource ds : dataSources.values()) { if (ds.getId() > maxId) { maxId = ds.getId(); } } MailItemDataSource ds = new MailItemDataSource(this, maxId + 1, type, name, isEnabled, host, port, username, password, folderId); MailItemDataSource.saveToMetadata(this, octxt, ds); dataSources.put(ds.getId(), ds); return ds; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/5bfb838c3765e778fc9933099df8b983867924e1/Mailbox.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/Mailbox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
11542,
1180,
8597,
752,
8597,
12,
2988,
1042,
320,
20364,
16,
514,
618,
16,
514,
508,
16,
4766,
18701,
1250,
12047,
16,
514,
1479,
16,
509,
1756,
16,
514,
2718,
16,
4766,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
11542,
1180,
8597,
752,
8597,
12,
2988,
1042,
320,
20364,
16,
514,
618,
16,
514,
508,
16,
4766,
18701,
1250,
12047,
16,
514,
1479,
16,
509,
1756,
16,
514,
2718,
16,
4766,
18... |
Game.removeFrameListener( this ); | Game.removeServerFrameListener( this ); | public void runFrame(int phase) { TraceResults tr = fEntity.traceMove(Engine.MASK_SHOT, 1.0F); if (tr.fFraction == 1) { drawCable(); return; // moved the entire distance } // 'scuse me while I kiss the sky... if ((tr.fSurfaceName != null) && ((tr.fSurfaceFlags & Engine.SURF_SKY) != 0)) { dispose(); return; } // OK, we hit something, let's pull... float volume = 1f; //if (self->owner->client->silencer_shots) // volume = 0.2; if (tr.fEntity.getReference() instanceof Player ) { Player victim = (Player) tr.fEntity.getReference(); victim.damage(this, fOwner, fEntity.getVelocity(), fEntity.getOrigin(), tr.fPlaneNormal, fDamage, 1, 0, 0, "grapple"); //fEntity.sound( NativeEntity.CHAN_WEAPON, Engine.getSoundIndex("weapons/grapple/grhurt.wav"), volume, NativeEntity.ATTN_NORM, 0); dispose(); return; } fOwner.fEntity.sound( NativeEntity.CHAN_RELIABLE+NativeEntity.CHAN_WEAPON, Engine.getSoundIndex("weapons/grapple/grpull.wav"), volume, NativeEntity.ATTN_NORM, 0); fEntity.sound( NativeEntity.CHAN_WEAPON, Engine.getSoundIndex("weapons/grapple/grhit.wav"), volume, NativeEntity.ATTN_NORM, 0); fEntity.setSolid( NativeEntity.SOLID_NOT ); fState = CTF_GRAPPLE_STATE_PULLING; Engine.writeByte( Engine.SVC_TEMP_ENTITY ); Engine.writeByte( Engine.TE_SPARKS ); Engine.writePosition( fEntity.getOrigin() ); Engine.writeDir( tr.fPlaneNormal ); Engine.multicast( fEntity.getOrigin(), Engine.MULTICAST_PVS ); // Tricky: don't listen to serverframes anymore, // but let Player.playerThink() call our pull() function... Game.removeFrameListener( this ); } | 1990 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1990/578d435afa17c19ab50dae1f666d2a43a2c4c175/GrappleHook.java/clean/classes/q2java/ctf/GrappleHook.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
3219,
12,
474,
6855,
13,
225,
202,
95,
202,
202,
3448,
3447,
433,
273,
284,
1943,
18,
5129,
7607,
12,
4410,
18,
11704,
67,
28683,
16,
404,
18,
20,
42,
1769,
9506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
3219,
12,
474,
6855,
13,
225,
202,
95,
202,
202,
3448,
3447,
433,
273,
284,
1943,
18,
5129,
7607,
12,
4410,
18,
11704,
67,
28683,
16,
404,
18,
20,
42,
1769,
9506,... |
if(outputType == 1 || outputType == 2){ theData.guessBlocks(outputType); } | theData.guessBlocks(outputType); | private static void hapsTextOnly(String hapsFile,int outputType){ try { HaploData theData; File OutputFile; File inputFile = new File(hapsFile); if(!inputFile.exists()){ System.out.println("haps input file " + hapsFile + " does not exist"); } switch(outputType){ case 1: OutputFile = new File(hapsFile + ".4GAMblocks"); break; case 2: OutputFile = new File(hapsFile + ".MJDblocks"); break; default: OutputFile = new File(hapsFile + ".SFSblocks"); break; } theData = new HaploData(new File(hapsFile)); String name = hapsFile; String baseName = hapsFile.substring(0,name.length()-5); File maybeInfo = new File(baseName + ".info"); if (maybeInfo.exists()){ theData.prepareMarkerInput(maybeInfo); } //theData.doMonitoredComputation(); Haplotype[][] haplos; if(outputType == 1 || outputType == 2){ theData.guessBlocks(outputType); } haplos = theData.generateHaplotypes(theData.blocks, 1); new TextMethods().saveHapsToText(orderHaps(haplos, theData), theData.getMultiDprime(), OutputFile); } catch(IOException e){} } | 51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/fa8cd72699dd38dbfdbf2d80885613a61937797f/HaploView.java/clean/edu/mit/wi/haploview/HaploView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
5622,
87,
1528,
3386,
12,
780,
5622,
87,
812,
16,
474,
876,
559,
15329,
3639,
775,
288,
5411,
670,
438,
383,
751,
326,
751,
31,
5411,
1387,
3633,
812,
31,
5411,
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,
3238,
760,
918,
5622,
87,
1528,
3386,
12,
780,
5622,
87,
812,
16,
474,
876,
559,
15329,
3639,
775,
288,
5411,
670,
438,
383,
751,
326,
751,
31,
5411,
1387,
3633,
812,
31,
5411,
1387,
... |
Parameter header; for(Iterator<Parameter> iter = call.getConnectorCall().getRequestHeaders().iterator(); iter.hasNext();) { header = iter.next(); | for(Parameter header : call.getConnectorCall().getRequestHeaders()) { | public void handle(Call call) { ClientCall clientCall = null; try { // Create a new HTTP client call clientCall = createCall(call.getMethod().getName(), call.getResourceRef().toString(), hasInput(call)); // Add the user agent header if(call.getClientName() != null) { clientCall.addRequestHeader(ConnectorCall.HEADER_USER_AGENT, call.getClientName()); } else { clientCall.addRequestHeader(ConnectorCall.HEADER_USER_AGENT, FactoryImpl.VERSION_HEADER); } // Add the conditions ConditionData condition = call.getCondition(); if(condition.getMatch() != null) { StringBuilder value = new StringBuilder(); for(int i = 0; i < condition.getMatch().size(); i++) { if(i > 0) value.append(", "); value.append(condition.getMatch().get(i).getName()); } clientCall.addRequestHeader(ConnectorCall.HEADER_IF_MATCH, value.toString()); } if(condition.getModifiedSince() != null) { String imsDate = DateUtils.format(condition.getModifiedSince(), DateUtils.FORMAT_RFC_1123[0]); clientCall.addRequestHeader(ConnectorCall.HEADER_IF_MODIFIED_SINCE, imsDate); } if(condition.getNoneMatch() != null) { StringBuilder value = new StringBuilder(); for(int i = 0; i < condition.getNoneMatch().size(); i++) { if(i > 0) value.append(", "); value.append(condition.getNoneMatch().get(i).getName()); } clientCall.addRequestHeader(ConnectorCall.HEADER_IF_NONE_MATCH, value.toString()); } if(condition.getUnmodifiedSince() != null) { String iusDate = DateUtils.format(condition.getUnmodifiedSince(), DateUtils.FORMAT_RFC_1123[0]); clientCall.addRequestHeader(ConnectorCall.HEADER_IF_UNMODIFIED_SINCE, iusDate); } // Add the cookies if(call.getCookies().size() > 0) { String cookies = CookieUtils.format(call.getCookies()); clientCall.addRequestHeader(ConnectorCall.HEADER_COOKIE, cookies); } // Add the referrer header if(call.getReferrerRef() != null) { clientCall.addRequestHeader(ConnectorCall.HEADER_REFERRER, call.getReferrerRef().toString()); } // Add the preferences PreferenceData pref = call.getPreference(); if(pref.getMediaTypes().size() > 0) { clientCall.addRequestHeader(ConnectorCall.HEADER_ACCEPT, PreferenceUtils.format(pref.getMediaTypes())); } else { clientCall.addRequestHeader(ConnectorCall.HEADER_ACCEPT, MediaTypes.ALL.getName()); } if(pref.getCharacterSets().size() > 0) { clientCall.addRequestHeader(ConnectorCall.HEADER_ACCEPT_CHARSET, PreferenceUtils.format(pref.getCharacterSets())); } else { clientCall.addRequestHeader(ConnectorCall.HEADER_ACCEPT_CHARSET, CharacterSets.ALL.getName()); } if(pref.getEncodings().size() > 0) { clientCall.addRequestHeader(ConnectorCall.HEADER_ACCEPT_ENCODING, PreferenceUtils.format(pref.getEncodings())); } else { clientCall.addRequestHeader(ConnectorCall.HEADER_ACCEPT_ENCODING, Encodings.ALL.getName()); } if(pref.getLanguages().size() > 0) { clientCall.addRequestHeader(ConnectorCall.HEADER_ACCEPT_LANGUAGE, PreferenceUtils.format(pref.getLanguages())); } else { clientCall.addRequestHeader(ConnectorCall.HEADER_ACCEPT_LANGUAGE, Languages.ALL.getName()); } // Add the security ChallengeResponse response = call.getSecurity().getChallengeResponse(); if(response != null) { clientCall.addRequestHeader(ConnectorCall.HEADER_AUTHORIZATION, SecurityUtils.format(response)); } // Add the custom headers that may have been set by the user Parameter header; for(Iterator<Parameter> iter = call.getConnectorCall().getRequestHeaders().iterator(); iter.hasNext();) { header = iter.next(); clientCall.addRequestHeader(header.getName(), header.getValue()); } // Send the input representation if(hasInput(call)) { if(call.getInput().getSize() > 0) { clientCall.addRequestHeader(ConnectorCall.HEADER_CONTENT_LENGTH, Long.toString(call.getInput().getSize())); } if(call.getInput().getMetadata().getMediaType() != null) { clientCall.addRequestHeader(ConnectorCall.HEADER_CONTENT_TYPE, call.getInput().getMetadata().getMediaType().toString()); } if(call.getInput().getMetadata().getEncoding() != null) { clientCall.addRequestHeader(ConnectorCall.HEADER_CONTENT_ENCODING, call.getInput().getMetadata().getEncoding().toString()); } if(call.getInput().getMetadata().getLanguage() != null) { clientCall.addRequestHeader(ConnectorCall.HEADER_CONTENT_LANGUAGE, call.getInput().getMetadata().getLanguage().toString()); } } } catch(Exception e) { logger.log(Level.FINE, "An unexpected error occured during the preparation of the HTTP client call.", e); call.setStatus(new DefaultStatus(Statuses.CONNECTOR_ERROR_INTERNAL, "Unable to create the HTTP call and its headers. " + e.getMessage())); } try { // Commit the request headers clientCall.sendRequestHeaders(); // Send the input representation if(hasInput(call)) { clientCall.sendRequestInput(call.getInput()); } } catch(ConnectException ce) { logger.log(Level.FINE, "An error occured during the connection to the remote HTTP server.", ce); call.setStatus(new DefaultStatus(Statuses.CONNECTOR_ERROR_CONNECTION, "Unable to connect to the remote server. " + ce.getMessage())); } catch(SocketTimeoutException ste) { logger.log(Level.FINE, "An timeout error occured during the communication with the remote HTTP server.", ste); call.setStatus(new DefaultStatus(Statuses.CONNECTOR_ERROR_COMMUNICATION, "Unable to complete the HTTP call due to a communication timeout error. " + ste.getMessage())); } catch(IOException ioe) { logger.log(Level.FINE, "An error occured during the communication with the remote HTTP server.", ioe); call.setStatus(new DefaultStatus(Statuses.CONNECTOR_ERROR_COMMUNICATION, "Unable to complete the HTTP call due to a communication error with the remote server. " + ioe.getMessage())); } catch(Exception e) { logger.log(Level.FINE, "An unexpected error occured during the sending of the HTTP request.", e); call.setStatus(new DefaultStatus(Statuses.CONNECTOR_ERROR_INTERNAL, "Unable to send the HTTP request. " + e.getMessage())); } try { // Get the response status call.setStatus(new DefaultStatus(clientCall.getResponseStatusCode(), null, clientCall.getResponseReasonPhrase(), null)); // Get the server address call.setServerAddress(clientCall.getResponseAddress()); // Update the connector call associated with the uniform call // so that advanced users can read the response headers, etc. call.setConnectorCall(clientCall); // Get the response output ContentType contentType = null; Date expires = null; Date lastModified = null; Encoding encoding = null; Language language = null; Tag tag = null; Parameter header = null; for(Iterator<Parameter> iter = clientCall.getResponseHeaders().iterator(); iter.hasNext(); ) { header = iter.next(); if(header.getName().equalsIgnoreCase(ConnectorCall.HEADER_CONTENT_TYPE)) { contentType = new ContentType(header.getValue()); } else if(header.getName().equalsIgnoreCase(ConnectorCall.HEADER_EXPIRES)) { expires = clientCall.parseDate(header.getValue(), false); } else if(header.getName().equalsIgnoreCase(ConnectorCall.HEADER_CONTENT_ENCODING)) { encoding = new DefaultEncoding(header.getValue()); } else if(header.getName().equalsIgnoreCase(ConnectorCall.HEADER_CONTENT_LANGUAGE)) { language = new DefaultLanguage(header.getValue()); } else if(header.getName().equalsIgnoreCase(ConnectorCall.HEADER_LAST_MODIFIED)) { lastModified = clientCall.parseDate(header.getValue(), false); } else if(header.getName().equalsIgnoreCase(ConnectorCall.HEADER_ETAG)) { tag = new Tag(header.getValue()); } else if(header.getName().equalsIgnoreCase(ConnectorCall.HEADER_LOCATION)) { call.setRedirectionRef(header.getValue()); } else if((header.getName().equalsIgnoreCase(ConnectorCall.HEADER_SET_COOKIE)) || (header.getName().equalsIgnoreCase(ConnectorCall.HEADER_SET_COOKIE2))) { try { CookieReader cr = new CookieReader(header.getValue()); call.getCookieSettings().add(cr.readCookieSetting()); } catch(Exception e) { logger.log(Level.WARNING, "Error during cookie setting parsing. Header: " + header.getValue(), e); } } else if(header.getName().equalsIgnoreCase(ConnectorCall.HEADER_WWW_AUTHENTICATE)) { ChallengeRequest request = SecurityUtils.parseRequest(header.getValue()); call.getSecurity().setChallengeRequest(request); } else if(header.getName().equalsIgnoreCase(ConnectorCall.HEADER_SERVER)) { call.setServerName(header.getValue()); } } // Set the output representation if(contentType != null) { Representation output = null; if(clientCall.getResponseStream() != null) { output = new InputRepresentation(clientCall.getResponseStream(), contentType.getMediaType()); } else if(clientCall.getResponseChannel() != null) { output = new ReadableRepresentation(clientCall.getResponseChannel(), contentType.getMediaType()); } if(output != null) { if(contentType != null) output.getMetadata().setCharacterSet(contentType.getCharacterSet()); output.getMetadata().setEncoding(encoding); output.getMetadata().setExpirationDate(expires); output.getMetadata().setLanguage(language); output.getMetadata().setModificationDate(lastModified); output.getMetadata().setTag(tag); call.setOutput(output); } } } catch(Exception e) { logger.log(Level.FINE, "An error occured during the processing of the HTTP response.", e); call.setStatus(new DefaultStatus(Statuses.CONNECTOR_ERROR_INTERNAL, "Unable to process the response. " + e.getMessage())); } } | 14172 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14172/4d4fb83f41d01684e5a7208cf0abbec54de7f57f/HttpClientImpl.java/buggy/source/main/com/noelios/restlet/impl/HttpClientImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1640,
12,
1477,
745,
13,
282,
288,
565,
202,
1227,
1477,
1004,
1477,
273,
446,
31,
377,
202,
565,
202,
698,
565,
202,
95,
4202,
202,
759,
1788,
279,
394,
2239,
1004,
745,
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,
565,
1071,
918,
1640,
12,
1477,
745,
13,
282,
288,
565,
202,
1227,
1477,
1004,
1477,
273,
446,
31,
377,
202,
565,
202,
698,
565,
202,
95,
4202,
202,
759,
1788,
279,
394,
2239,
1004,
745,
4... |
protected Entry findEntry(String path) { return findRecursively(this, path); | public Entry findEntry(String path) { return searchInChildren(path); | protected Entry findEntry(String path) { return findRecursively(this, path); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/893a33aa63e98f34f4a43ab236b0fef2c82e3aae/RootEntry.java/buggy/LocalVcs/src/com/intellij/localvcs/RootEntry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3841,
1104,
1622,
12,
780,
589,
13,
288,
565,
327,
1104,
12474,
12,
2211,
16,
589,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
3841,
1104,
1622,
12,
780,
589,
13,
288,
565,
327,
1104,
12474,
12,
2211,
16,
589,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
m_tracer.fireGenerateEvent(SerializerTrace.EVENTTYPE_ENTITYREF, name); | { flushMyWriter(); m_tracer.fireGenerateEvent(SerializerTrace.EVENTTYPE_ENTITYREF, name); } | protected void fireStartEntity(String name) throws org.xml.sax.SAXException { flushMyWriter(); if (m_tracer != null) m_tracer.fireGenerateEvent(SerializerTrace.EVENTTYPE_ENTITYREF, name); } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/35e91d491585c4271c328d54fab30a13cc58d011/SerializerBase.java/clean/src/org/apache/xml/serializer/SerializerBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4452,
1685,
1943,
12,
780,
508,
13,
3639,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
565,
288,
3639,
3663,
12062,
2289,
5621,
3639,
309,
261,
81,
67,
313,
10598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4452,
1685,
1943,
12,
780,
508,
13,
3639,
1216,
2358,
18,
2902,
18,
87,
651,
18,
55,
2501,
503,
565,
288,
3639,
3663,
12062,
2289,
5621,
3639,
309,
261,
81,
67,
313,
10598,
... |
this.setBorder(BorderFactory.createLineBorder(java.awt.Color.black)); | public ViewportPlacer(ConfigContext ctx, ConfigElement elt) { mConfigElement = elt; model = new ViewportPlacerModel(new Dimension(100,100), ctx, elt); this.setBorder(BorderFactory.createLineBorder(java.awt.Color.black)); calcPanelSize(); Iterator i; for ( i = elt.getPropertyValues("simulator_viewports").iterator(); i.hasNext(); ) { ((ConfigElement)i.next()).addConfigElementListener(mChangeListener); } for ( i = elt.getPropertyValues("surface_viewports").iterator(); i.hasNext(); ) { ((ConfigElement)i.next()).addConfigElementListener(mChangeListener); } mConfigElement.addConfigElementListener(mChangeListener); // Make sure to add listener to all added embedded elements. mConfigElement.addConfigElementListener(new ConfigElementAdapter() { public void propertyValueAdded(ConfigElementEvent event) { if ( event.getProperty().equals("simulator_viewports") || event.getProperty().equals("surface_viewports") ) { ((ConfigElement)event.getValue()).addConfigElementListener(mChangeListener); } } public void propertyValueRemoved(ConfigElementEvent event) { if ( event.getProperty().equals("simulator_viewports") || event.getProperty().equals("surface_viewports") ) { ((ConfigElement)event.getValue()).addConfigElementListener(mChangeListener); } } }); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } // Setup the viewport placer. wndPlacer.setModel(model); wndPlacer.setRenderer(new ViewportRenderer()); } | 49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/0881e503b76112ca4a1a720684eee73230368e23/ViewportPlacer.java/buggy/modules/vrjuggler/vrjconfig/customeditors/cave/org/vrjuggler/vrjconfig/customeditors/cave/ViewportPlacer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
4441,
655,
1749,
10598,
12,
809,
1042,
1103,
16,
1903,
1046,
11572,
13,
282,
288,
1377,
312,
809,
1046,
273,
11572,
31,
5411,
938,
273,
394,
4441,
655,
1749,
10598,
1488,
12,
2704,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
4441,
655,
1749,
10598,
12,
809,
1042,
1103,
16,
1903,
1046,
11572,
13,
282,
288,
1377,
312,
809,
1046,
273,
11572,
31,
5411,
938,
273,
394,
4441,
655,
1749,
10598,
1488,
12,
2704,
... | |
+ " => " + ucd.getCodeAndName(nfkdNew.normalize(chr)) | + " => " + ucd.getCodeAndName(Default.nfkd.normalize(chr)) | static final String getFromBackMap(Map backMap, int[] originalces, int expansionStart, int len, String chr, int[] rel) { int[] ces = (int[])(originalces.clone()); String expansion = ""; // process ces to neutralize tertiary for (int i = expansionStart; i < len; ++i) { int probe = ces[i]; char primary = collator.getPrimary(probe); char secondary = collator.getSecondary(probe); char tertiary = collator.getTertiary(probe); int tert = tertiary; switch (tert) { case 8: case 9: case 0xA: case 0xB: case 0xC: case 0x1D: tert = 8; break; case 0xD: case 0x10: case 0x11: case 0x12: case 0x13: case 0x1C: tert = 0xE; break; default: tert = 2; break; } ces[i] = collator.makeKey(primary, secondary, tert); } for (int i = expansionStart; i < len;) { int limit; String s = null; for (limit = len; limit > i; --limit) { ArrayWrapper wrapper = new ArrayWrapper(ces, i, limit); s = (String)backMap.get(wrapper); if (s != null) break; } if (s == null) { do { if (homelessSecondaries.contains(UCA.getSecondary(ces[i]))) { s = ""; if (rel[0] > 1) rel[0] = 1; // HACK break; } // Try stomping the value to different tertiaries int probe = ces[i]; if (UCA.isImplicitLeadCE(probe)) { s = UTF16.valueOf(UCA.ImplicitToCodePoint(UCA.getPrimary(probe), UCA.getPrimary(ces[i+1]))); ++i; // skip over next item!! break; } char primary = collator.getPrimary(probe); char secondary = collator.getSecondary(probe); ces[i] = collator.makeKey(primary, secondary, 2); ArrayWrapper wrapper = new ArrayWrapper(ces, i, i+1); s = (String)backMap.get(wrapper); if (s != null) break; ces[i] = collator.makeKey(primary, secondary,0xE); wrapper = new ArrayWrapper(ces, i, i+1); s = (String)backMap.get(wrapper); if (s != null) break; /* int meHack = UCA.makeKey(0x1795,0x0020,0x0004); if (ces[i] == meHack) { s = "\u3081"; break; } */ // we failed completely. Print error message, and bail System.out.println("Fix Homeless! No back map for " + CEList.toString(ces[i]) + " from " + CEList.toString(ces, len)); System.out.println("\t" + ucd.getCodeAndName(chr) + " => " + ucd.getCodeAndName(nfkdNew.normalize(chr)) ); s = "[" + Utility.hex(ces[i]) + "]"; } while (false); // exactly one time, just for breaking limit = i + 1; } expansion += s; i = limit; } return expansion; } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/39e1d2518d1c65a21b4d5999d7f351a73c869755/WriteCollationData.java/clean/tools/unicodetools/com/ibm/text/UCA/WriteCollationData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
514,
11859,
2711,
863,
12,
863,
1473,
863,
16,
509,
8526,
2282,
764,
16,
509,
17965,
1685,
16,
509,
562,
16,
514,
4513,
16,
509,
8526,
1279,
13,
288,
377,
202,
474,
8526,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
727,
514,
11859,
2711,
863,
12,
863,
1473,
863,
16,
509,
8526,
2282,
764,
16,
509,
17965,
1685,
16,
509,
562,
16,
514,
4513,
16,
509,
8526,
1279,
13,
288,
377,
202,
474,
8526,
27... |
public IASTTemplateSpecialization createTemplateSpecialization(IASTScope scope, int startingOffset)throws Exception; | public IASTTemplateSpecialization createTemplateSpecialization(IASTScope scope, int startingOffset); | public IASTTemplateSpecialization createTemplateSpecialization(IASTScope scope, int startingOffset)throws Exception; | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/5be9f16c62f0d96b0b15c3ec0642ea39b98ee65b/IASTFactory.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ast/IASTFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
2283,
12193,
1588,
752,
2283,
12193,
1588,
12,
45,
9053,
3876,
2146,
16,
509,
5023,
2335,
1769,
225,
2,
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,
467,
9053,
2283,
12193,
1588,
752,
2283,
12193,
1588,
12,
45,
9053,
3876,
2146,
16,
509,
5023,
2335,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
unaryExpression = unaryExpression(scope,kind); | unaryExpression = unaryExpression(scope,kind, key); | public IASTExpression unaryExpression(IASTScope scope, CompletionKind kind) throws EndOfFileException, BacktrackException { switch (LT(1)) { case IToken.tSTAR : consume(); return unaryOperatorCastExpression(scope, IASTExpression.Kind.UNARY_STAR_CASTEXPRESSION,kind); case IToken.tAMPER : consume(); return unaryOperatorCastExpression(scope, IASTExpression.Kind.UNARY_AMPSND_CASTEXPRESSION,kind); case IToken.tPLUS : consume(); return unaryOperatorCastExpression(scope, IASTExpression.Kind.UNARY_PLUS_CASTEXPRESSION,kind); case IToken.tMINUS : consume(); return unaryOperatorCastExpression(scope, IASTExpression.Kind.UNARY_MINUS_CASTEXPRESSION,kind); case IToken.tNOT : consume(); return unaryOperatorCastExpression(scope, IASTExpression.Kind.UNARY_NOT_CASTEXPRESSION,kind); case IToken.tCOMPL : consume(); return unaryOperatorCastExpression(scope, IASTExpression.Kind.UNARY_TILDE_CASTEXPRESSION,kind); case IToken.tINCR : consume(); return unaryOperatorCastExpression(scope, IASTExpression.Kind.UNARY_INCREMENT,kind); case IToken.tDECR : consume(); return unaryOperatorCastExpression(scope, IASTExpression.Kind.UNARY_DECREMENT,kind); case IToken.t_sizeof : consume(IToken.t_sizeof); IToken mark = LA(1); IASTTypeId d = null; IASTExpression unaryExpression = null; if (LT(1) == IToken.tLPAREN) { try { consume(IToken.tLPAREN); d = typeId(scope, false, CompletionKind.TYPE_REFERENCE); consume(IToken.tRPAREN); } catch (BacktrackException bt) { backup(mark); unaryExpression = unaryExpression(scope,kind); } } else { unaryExpression = unaryExpression(scope,kind); } if (d != null & unaryExpression == null) try { return astFactory.createExpression( scope, IASTExpression.Kind.UNARY_SIZEOF_TYPEID, null, null, null, d, null, EMPTY_STRING, null); } catch (ASTSemanticException e) { throw backtrack; } catch (Exception e) { logException( "unaryExpression_1::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } else if (unaryExpression != null && d == null) try { return astFactory.createExpression( scope, IASTExpression.Kind.UNARY_SIZEOF_UNARYEXPRESSION, unaryExpression, null, null, null, null, EMPTY_STRING, null); } catch (ASTSemanticException e1) { throw backtrack; } catch (Exception e) { logException( "unaryExpression_1::createExpression()", e ); //$NON-NLS-1$ throw backtrack; } else throw backtrack; case IToken.t_new : return newExpression(scope); case IToken.t_delete : return deleteExpression(scope,kind); case IToken.tCOLONCOLON : if( queryLookaheadCapability(2)) { switch (LT(2)) { case IToken.t_new : return newExpression(scope); case IToken.t_delete : return deleteExpression(scope,kind); default : return postfixExpression(scope,kind); } } default : if( extension.isValidUnaryExpressionStart( LT(1))) { IASTExpression extensionExpression = extension.parseUnaryExpression(scope,this,kind); if( extensionExpression != null ) return extensionExpression; } return postfixExpression(scope,kind); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/1a5788e0dc8eb7824785a35eaf53c7373aa33bdb/ExpressionParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
2300,
19017,
2300,
12,
45,
9053,
3876,
2146,
16,
20735,
5677,
3846,
13,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
565,
1620,
261,
12050,
12,
21,
371... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
9053,
2300,
19017,
2300,
12,
45,
9053,
3876,
2146,
16,
20735,
5677,
3846,
13,
1216,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
565,
1620,
261,
12050,
12,
21,
371... |
int bufferNumber = pointer/InputStream.BUFFER_SIZE; int bufferOffset = pointer%InputStream.BUFFER_SIZE; int bytesInBuffer = InputStream.BUFFER_SIZE - bufferOffset; int bytesToCopy = bytesInBuffer >= len ? len : bytesInBuffer; byte[] buffer = (byte[])file.buffers.elementAt(bufferNumber); System.arraycopy(buffer, bufferOffset, dest, destOffset, bytesToCopy); if (bytesToCopy < len) { | int remainder = len; int start = pointer; while (remainder != 0) { int bufferNumber = start/InputStream.BUFFER_SIZE; int bufferOffset = start%InputStream.BUFFER_SIZE; int bytesInBuffer = InputStream.BUFFER_SIZE - bufferOffset; int bytesToCopy = bytesInBuffer >= remainder ? remainder : bytesInBuffer; byte[] buffer = (byte[])file.buffers.elementAt(bufferNumber); System.arraycopy(buffer, bufferOffset, dest, destOffset, bytesToCopy); | public final void readInternal(byte[] dest, int destOffset, int len) { int bufferNumber = pointer/InputStream.BUFFER_SIZE; int bufferOffset = pointer%InputStream.BUFFER_SIZE; int bytesInBuffer = InputStream.BUFFER_SIZE - bufferOffset; int bytesToCopy = bytesInBuffer >= len ? len : bytesInBuffer; byte[] buffer = (byte[])file.buffers.elementAt(bufferNumber); System.arraycopy(buffer, bufferOffset, dest, destOffset, bytesToCopy); if (bytesToCopy < len) { // not all in one buffer destOffset += bytesToCopy; bytesToCopy = len - bytesToCopy; // remaining bytes buffer = (byte[])file.buffers.elementAt(bufferNumber+1); System.arraycopy(buffer, 0, dest, destOffset, bytesToCopy); } pointer += len; } | 50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/992d1ade00b9a37596aa28eb8c4dfba252259dd2/RAMDirectory.java/clean/src/java/org/apache/lucene/store/RAMDirectory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
855,
3061,
12,
7229,
8526,
1570,
16,
509,
1570,
2335,
16,
509,
562,
13,
288,
565,
509,
1613,
1854,
273,
4407,
19,
4348,
18,
11302,
67,
4574,
31,
565,
509,
1613,
2335,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
855,
3061,
12,
7229,
8526,
1570,
16,
509,
1570,
2335,
16,
509,
562,
13,
288,
565,
509,
1613,
1854,
273,
4407,
19,
4348,
18,
11302,
67,
4574,
31,
565,
509,
1613,
2335,
... |
kinds = new IASTNode.LookupKind[] { IASTNode.LookupKind.CONSTRUCTORS, IASTNode.LookupKind.FUNCTIONS, IASTNode.LookupKind.METHODS }; | if( kind == CompletionKind.CONSTRUCTOR_REFERENCE ){ kinds = new IASTNode.LookupKind[]{ IASTNode.LookupKind.STRUCTURES }; ILookupResult result = lookup( scope, completionNode.getFunctionName(), kinds, null, null ); if( result != null && result.getResultsSize() == 1 ){ scope = (IASTScope) result.getNodes().next(); } kinds[ 0 ] = IASTNode.LookupKind.CONSTRUCTORS; } else kinds = new IASTNode.LookupKind[] { IASTNode.LookupKind.CONSTRUCTORS, IASTNode.LookupKind.FUNCTIONS, IASTNode.LookupKind.METHODS }; | private void completionOnFunctionReference(IASTCompletionNode completionNode){ //NOTE: // Hoda, I changed this so it makes sense with regards to your JUnit tests // and examples. If my assumptions are not correct as to what deserves to be // looked up for FUNCTION_REFRENCE then please update the documentation in // IASTCompletionNode.java. String prefix = completionNode.getCompletionPrefix(); boolean functionsOnly = false; IASTNode.LookupKind[] kinds = null; if( prefix.length() == 0 ) { kinds = new IASTNode.LookupKind[] { IASTNode.LookupKind.CONSTRUCTORS, IASTNode.LookupKind.FUNCTIONS, IASTNode.LookupKind.METHODS }; prefix = completionNode.getFunctionName(); functionsOnly = true; } else kinds = new IASTNode.LookupKind[] { IASTNode.LookupKind.ALL }; ILookupResult result = lookup(completionNode.getCompletionScope(), prefix, kinds, completionNode.getCompletionContext(), completionNode.getFunctionParameters()); if( result != null) addToCompletions(result, false, false, functionsOnly ? result.getIndexOfNextParameter() : -1 ); if( !functionsOnly ){ List macros = lookupMacros(completionNode.getCompletionPrefix()); addMacrosToCompletions(prefix, macros.iterator()); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/bb6eaf7e5571fe8d53512a7088719ba292c26ed9/CompletionEngine.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
8364,
1398,
2083,
2404,
12,
45,
9053,
11238,
907,
8364,
907,
15329,
202,
202,
759,
17857,
30,
202,
202,
759,
670,
21319,
16,
467,
3550,
333,
1427,
518,
7297,
12764,
598,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8364,
1398,
2083,
2404,
12,
45,
9053,
11238,
907,
8364,
907,
15329,
202,
202,
759,
17857,
30,
202,
202,
759,
670,
21319,
16,
467,
3550,
333,
1427,
518,
7297,
12764,
598,
... |
"org/mozilla/javascript/ScriptRuntime", "NaNobj", "Ljava/lang/Double;"); | "org/mozilla/javascript/ScriptRuntime", "NaNobj", "Ljava/lang/Double;"); | void pushNumberAsObject(double num) { if (num != num) { // Add NaN object cfw.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "NaNobj", "Ljava/lang/Double;"); } else if (itsConstantListSize >= 2000) { // There appears to be a limit in the JVM on either the number // of static fields in a class or the size of the class // initializer. Either way, we can't have any more than 2000 // statically init'd constants. pushNewNumberObject(num); } else { String constantName = "jsK_" + addNumberConstant(num); String constantType = getStaticConstantWrapperType(num); cfw.add(ByteCode.GETSTATIC, generatedClassName, constantName, constantType); } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/3c9b84173796cf5a1eb1f786e5ba6af89b66fcab/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1817,
1854,
1463,
921,
12,
9056,
818,
13,
565,
288,
3639,
309,
261,
2107,
480,
818,
13,
288,
5411,
368,
1436,
10180,
733,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
3264,
22741,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1817,
1854,
1463,
921,
12,
9056,
818,
13,
565,
288,
3639,
309,
261,
2107,
480,
818,
13,
288,
5411,
368,
1436,
10180,
733,
5411,
6080,
91,
18,
1289,
12,
3216,
1085,
18,
3264,
22741,... |
.getContentProvider()); | .internalGetContentProvider()); | private ITreeContentProvider[] extractContentProviders( Set theDescriptorInstances) { if (theDescriptorInstances.size() == 0) return NO_CONTENT_PROVIDERS; List resultProvidersList = new ArrayList(); for (Iterator itr = theDescriptorInstances.iterator(); itr.hasNext();) resultProvidersList.add(((NavigatorContentExtension) itr.next()) .getContentProvider()); return (ITreeContentProvider[]) resultProvidersList .toArray(new ITreeContentProvider[resultProvidersList.size()]); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/aa8664756ad43f4cca8fb1d64f5c180694088a19/NavigatorContentService.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
2471,
1350,
2249,
8526,
2608,
1350,
10672,
12,
1082,
202,
694,
326,
3187,
5361,
13,
288,
202,
202,
430,
261,
5787,
3187,
5361,
18,
1467,
1435,
422,
374,
13,
1082,
202,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
2471,
1350,
2249,
8526,
2608,
1350,
10672,
12,
1082,
202,
694,
326,
3187,
5361,
13,
288,
202,
202,
430,
261,
5787,
3187,
5361,
18,
1467,
1435,
422,
374,
13,
1082,
202,
2... |
if(selected_node<0) { | if(selected_node<0) { | public void mousePressed(MouseEvent e){ project proj_class=(project)project.oClass; if(e.getButton() == MouseEvent.BUTTON3) { //System.out.println("Mouse 3 Was Clicked with in stage area at "+e.getX()+" "+e.getY()); PopUpMenu menu = new PopUpMenu(this,proj_class.selected_type); menu.show((Component)this, e.getX(), e.getY()); } else { //System.out.println("Mouse Was Clicked with in stage area at "+e.getX()+" "+e.getY()); if(proj_class.draw_mouse_state==0) { Vector allList = new Vector(); int num_in_list=0; //THE NORMAL STATE //try to find out which object was selected int curx=e.getX(); int cury=e.getY(); int search_area=10; boolean found_item=false; Random ran_obj= new Random(); //check if the house was selected Object_Drawer items=proj_class.houses.get_objects_in_area(curx-search_area, cury-search_area, curx+search_area,cury+search_area); if(items.get_num_objects()>0) { allList.add(items.get_object(0)); num_in_list++; } //check if the stage was selected items=proj_class.stages.get_objects_in_area(curx-search_area, cury-search_area, curx+search_area,cury+search_area); if(items.get_num_objects()>0) { allList.add(items.get_object(0)); num_in_list++; } //check if any bars were selected items=proj_class.bars.get_objects_in_area(curx-search_area, cury-search_area, curx+search_area,cury+search_area); if(items.get_num_objects()>0) { int iter; for(iter=0;iter<items.get_num_objects();iter++) { allList.add(items.get_object(iter)); num_in_list++; } } //check if any instruments were selected items=proj_class.instruments.get_objects_in_area(curx-search_area, cury-search_area, curx+search_area,cury+search_area); if(items.get_num_objects()>0) { int iter; for(iter=0;iter<items.get_num_objects();iter++) { allList.add(items.get_object(iter)); num_in_list++; } } //select a random number from the created list of objects int ran_index=ran_obj.nextInt()%num_in_list; ran_index=Math.abs(ran_index); Object temp_obj=allList.get(ran_index); if(temp_obj instanceof house) { proj_class.selected_type=0; } else if(temp_obj instanceof stage) { proj_class.selected_type=1; } else if(temp_obj instanceof bar) { proj_class.selected_type=2; } else if(temp_obj instanceof instrument) { proj_class.selected_type=3; } else if(temp_obj instanceof setobject) { proj_class.selected_type=4; } proj_class.selected_index=((General_Object)temp_obj).index; ItemBrowser.displayInfo(temp_obj); repaint(); } else if(proj_class.draw_mouse_state==1) { //creation of a bar //System.out.println("Mouse state was 1 adding "+temp_bar.num_nodes+" node"); //drawing a bar if(temp_bar.num_nodes==0) { //begin chaplin edit if(proj_class.zoom_factor == 1) { temp_bar.worldx=e.getX(); temp_bar.worldy=e.getY(); } else { temp_bar.worldx=(e.getX()/proj_class.zoom_factor); temp_bar.worldy=(e.getY()/proj_class.zoom_factor); } //end chaplin edit temp_bar.add_node(0,0); } else { //begin chaplin edit if(proj_class.zoom_factor == 1) temp_bar.add_node(e.getX()-temp_bar.worldx,e.getY()-temp_bar.worldy); else temp_bar.add_node((e.getX()/proj_class.zoom_factor)-temp_bar.worldx,(e.getY()/proj_class.zoom_factor)-temp_bar.worldy); //end chaplin edit if(temp_bar.num_nodes>=2) { proj_class.addBar(temp_bar); proj_class.draw_mouse_state=0; temp_bar=null; } } } else if(proj_class.draw_mouse_state==2) { //adding an instrument to the selected bar //since the instrument has to be on the bar that was selected //use the x value of the mouse to find out the y value for the //edit here for instrument on bar problem. //placement on the bar int pot_x; int pot_y=-1; int barx1=proj_class.bars.get_object(temp_instrument.Associated_barID).x[0]+proj_class.bars.get_object(temp_instrument.Associated_barID).worldx; int barx2=proj_class.bars.get_object(temp_instrument.Associated_barID).x[1]+proj_class.bars.get_object(temp_instrument.Associated_barID).worldx; int bary1=proj_class.bars.get_object(temp_instrument.Associated_barID).y[0]+proj_class.bars.get_object(temp_instrument.Associated_barID).worldy; int bary2=proj_class.bars.get_object(temp_instrument.Associated_barID).y[1]+proj_class.bars.get_object(temp_instrument.Associated_barID).worldy; //swap the points to make the math easier because assume point 1 is to the right //begin chaplin edit if (proj_class.zoom_factor == 1) pot_x = e.getX(); else pot_x = (e.getX()/proj_class.zoom_factor); //end chaplin edit if(barx1>barx2) { int temp_int; temp_int=barx1; barx1=barx2; barx2=temp_int; temp_int=bary1; bary1=bary2; bary2=temp_int; } if((pot_x>barx1)&&(pot_x<barx2)) { //the x is valid find the y value for it //fix here. what if slope undefined or 0? i.e. vertical/horizontal line if(barx1-barx2!=0) { //to find slope y - y1 = m (x - x1) or m=(y-y1)/(x-x1) //double slope = (bary1-bary2)/(barx1-barx2); //to find y with an x use equation y=m(x-x1)+y1 //pot_y=(int)(slope*(double)(barx1-barx2)+bary2); double slope = (double)(bary1-bary2)/ (double)(barx1-barx2); pot_y=(int)(slope*((double)pot_x-(double)barx1)+(double)bary1); } } if(pot_y>=0) { //found a y so place it temp_instrument.worldx=pot_x; temp_instrument.worldy=pot_y; proj_class.instruments.add_object(temp_instrument); proj_class.draw_mouse_state=0; proj_class.selected_type=3; proj_class.selected_index=temp_instrument.index; temp_instrument=null; } } else if(proj_class.draw_mouse_state==6) { //moving a bar bar selected_bar=(bar)proj_class.bars.get_object(proj_class.selected_index); int old_bar_x; old_bar_x=selected_bar.worldx; int old_bar_y; old_bar_y=selected_bar.worldy; //move all the instrumetns attached to the bar //need to compensate for zoom factor just to tired to do it tonight int xdiff; int ydiff; //chaplin edit if(proj_class.zoom_factor == 1) { xdiff = old_bar_x-e.getX(); ydiff = old_bar_y-e.getY(); } else { xdiff = old_bar_x-(e.getX()/proj_class.zoom_factor); ydiff = old_bar_y-(e.getY()/proj_class.zoom_factor); } for(int iter=0;iter<proj_class.instruments.get_num_objects();iter++) { if(((instrument)proj_class.instruments.get_object(iter)).getBarID()==proj_class.selected_index) { proj_class.instruments.get_object(iter).worldx-=xdiff; proj_class.instruments.get_object(iter).worldy-=ydiff; } } //actually move the bar if(proj_class.zoom_factor == 1) { proj_class.bars.get_object(proj_class.selected_index).worldx=e.getX(); proj_class.bars.get_object(proj_class.selected_index).worldy=e.getY(); } else { proj_class.bars.get_object(proj_class.selected_index).worldx=(e.getX()/proj_class.zoom_factor); proj_class.bars.get_object(proj_class.selected_index).worldy=(e.getY()/proj_class.zoom_factor); } proj_class.draw_mouse_state=0; } else if(proj_class.draw_mouse_state==8) { //adding a stage object if(temp_stage.num_nodes==0) { if(proj_class.zoom_factor == 1) { temp_stage.worldx=e.getX(); temp_stage.worldy=e.getY(); } else { temp_stage.worldx=(e.getX()/proj_class.zoom_factor); temp_stage.worldy=(e.getY()/proj_class.zoom_factor); } temp_stage.add_node(0,0); } else { if(proj_class.zoom_factor == 1) { temp_stage.add_node(e.getX()-temp_stage.worldx,e.getY()-temp_stage.worldy); } else { temp_stage.add_node((e.getX()/proj_class.zoom_factor)-temp_stage.worldx,(e.getY()/proj_class.zoom_factor)-temp_stage.worldy); } if(temp_stage.num_nodes>=15) { proj_class.addStage(temp_stage); proj_class.draw_mouse_state=0; temp_stage=null; } } } else if(proj_class.draw_mouse_state==9) { //adding a stage object if(temp_set.num_nodes==0) { if(proj_class.zoom_factor == 1) { temp_set.worldx=e.getX(); temp_set.worldy=e.getY(); } else { temp_set.worldx=e.getX()/proj_class.zoom_factor; temp_set.worldy=e.getY()/proj_class.zoom_factor; } temp_set.add_node(0,0); } else { if(proj_class.zoom_factor == 1) { temp_set.add_node(e.getX()-temp_set.worldx,e.getY()-temp_set.worldy); } else { temp_set.add_node((e.getX()/proj_class.zoom_factor)-temp_set.worldx,(e.getY()/proj_class.zoom_factor)-temp_set.worldy); } if(temp_set.num_nodes>=15) { proj_class.addSet(temp_set); proj_class.draw_mouse_state=0; temp_set=null; } } } else if(proj_class.draw_mouse_state==4) { //edit nodes of house //change this?? if(selected_node<0) { //find a node to select selected_node=temp_house.closest_node(e.getX(),e.getY()); } else { //set the node to the new position temp_house.move_node(selected_node, e.getX(), e.getY()); selected_node=-1; } } else if(proj_class.draw_mouse_state==5) { //edit node of stage //change this?? if(selected_node<0) { //find a node to select selected_node=temp_stage.closest_node(e.getX(),e.getY()); } else { //set the node to the new position temp_stage.move_node(selected_node, e.getX(), e.getY()); selected_node=-1; } } else if(proj_class.draw_mouse_state==3) { //edit nodes of bar //change this?? if(selected_node<0) { //find a node to select selected_node=temp_bar.closest_node(e.getX(),e.getY()); } else { //set the node to the new position temp_bar.move_node(selected_node, e.getX(), e.getY()); selected_node=-1; } //proj_class.draw_mouse_state=0; } else if(proj_class.draw_mouse_state==10) { //edit nodes of set object //change this?? if(selected_node<0) { //find a node to select selected_node=temp_set.closest_node(e.getX(),e.getY()); } else { //set the node to the new position temp_set.move_node(selected_node, e.getX(), e.getY()); selected_node=-1; } } repaint(); } } | 11744 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11744/2c94ce45eff274c86765397beaf012337a7074d2/TransPanel.java/buggy/src/drawing_prog/TransPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
15329,
3639,
1984,
10296,
67,
1106,
28657,
4406,
13,
4406,
18,
83,
797,
31,
3639,
309,
12,
73,
18,
588,
3616,
1435,
422,
17013,
1133,
18,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
24624,
12,
9186,
1133,
425,
15329,
3639,
1984,
10296,
67,
1106,
28657,
4406,
13,
4406,
18,
83,
797,
31,
3639,
309,
12,
73,
18,
588,
3616,
1435,
422,
17013,
1133,
18,
20... |
refreshJobHack = (Job)refreshField.get(this); | refreshJob = (Job)refreshField.get(this); | public TaskListFilteredTree(Composite parent, int treeStyle, PatternFilter filter) { super(parent, treeStyle, filter); Field refreshField; try { refreshField = FilteredTree.class.getDeclaredField("refreshJob"); refreshField.setAccessible(true); refreshJobHack = (Job)refreshField.get(this); } catch (Exception e) { MylarStatusHandler.fail(e, "Could not get refresh job", false); } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/c3f648611ebe76ead6e5ff15ad5c5875f05d4038/TaskListFilteredTree.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskListFilteredTree.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3837,
682,
14478,
2471,
12,
9400,
982,
16,
509,
2151,
2885,
16,
6830,
1586,
1034,
13,
288,
202,
202,
9565,
12,
2938,
16,
2151,
2885,
16,
1034,
1769,
202,
202,
974,
4460,
974,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3837,
682,
14478,
2471,
12,
9400,
982,
16,
509,
2151,
2885,
16,
6830,
1586,
1034,
13,
288,
202,
202,
9565,
12,
2938,
16,
2151,
2885,
16,
1034,
1769,
202,
202,
974,
4460,
974,
... |
IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null); | IPackageFragment pack1= this.sourceFolder.createPackageFragment("test1", false, null); | public void testListCombination() throws Exception { IPackageFragment pack1= fSourceFolder.createPackageFragment("test1", false, null); StringBuffer buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public abstract class E {\n"); buf.append(" public E(int p1, int p2, int p3) {}\n"); buf.append("}\n"); ICompilationUnit cu= pack1.createCompilationUnit("E.java", buf.toString(), false, null); CompilationUnit astRoot= createAST(cu); ASTRewrite rewrite= ASTRewrite.create(astRoot.getAST()); AST ast= astRoot.getAST(); TypeDeclaration type= findTypeDeclaration(astRoot, "E"); { // delete all and insert after & insert 2 exceptions MethodDeclaration methodDecl= findMethodDeclaration(type, "E"); List parameters= methodDecl.parameters(); assertTrue("must be 3 parameters", parameters.size() == 3); rewrite.remove((ASTNode) parameters.get(0), null); rewrite.remove((ASTNode) parameters.get(1), null); rewrite.remove((ASTNode) parameters.get(2), null); SingleVariableDeclaration newParam= createNewParam(ast, "m"); rewrite.getListRewrite(methodDecl, MethodDeclaration.PARAMETERS_PROPERTY).insertLast(newParam, null); List thrownExceptions= methodDecl.thrownExceptions(); assertTrue("must be 0 thrown exceptions", thrownExceptions.size() == 0); Name newThrownException1= ast.newSimpleName("InterruptedException"); rewrite.getListRewrite(methodDecl, MethodDeclaration.THROWN_EXCEPTIONS_PROPERTY).insertLast(newThrownException1, null); Name newThrownException2= ast.newSimpleName("ArrayStoreException"); rewrite.getListRewrite(methodDecl, MethodDeclaration.THROWN_EXCEPTIONS_PROPERTY).insertLast(newThrownException2, null); } String preview= evaluateRewrite(cu, rewrite); buf= new StringBuffer(); buf.append("package test1;\n"); buf.append("public abstract class E {\n"); buf.append(" public E(float m) throws InterruptedException, ArrayStoreException {}\n"); buf.append("}\n"); assertEqualString(preview, buf.toString()); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/40ace06b6f9aaa2f71ebf049ffa37ed745fa6ef3/ASTRewritingMethodDeclTest.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/rewrite/describing/ASTRewritingMethodDeclTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
682,
26062,
1435,
1216,
1185,
288,
202,
202,
45,
2261,
7456,
2298,
21,
33,
284,
1830,
3899,
18,
2640,
2261,
7456,
2932,
3813,
21,
3113,
629,
16,
446,
1769,
202,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
682,
26062,
1435,
1216,
1185,
288,
202,
202,
45,
2261,
7456,
2298,
21,
33,
284,
1830,
3899,
18,
2640,
2261,
7456,
2932,
3813,
21,
3113,
629,
16,
446,
1769,
202,
202... |
instance.setValueForNode(currentNode, valueToSet); | XFormsInstance.setValueForNode(currentNode, valueToSet); | private void runAction(final PipelineContext pipelineContext, Element eventHandlerElement, EventContext eventContext) { String actionNamespaceURI = eventHandlerElement.getNamespaceURI(); if (!XFormsConstants.XFORMS_NAMESPACE_URI.equals(actionNamespaceURI)) { throw new OXFException("Invalid action namespace: " + actionNamespaceURI); } String actionEventName = eventHandlerElement.getName(); if (XFormsEvents.XFORMS_SETVALUE_ACTION.equals(actionEventName)) { // 10.1.9 The setvalue Element // xforms:setvalue // Set binding for current action element setBinding(pipelineContext, eventHandlerElement); final String value = eventHandlerElement.attributeValue("value"); final String content = eventHandlerElement.getStringValue(); final XFormsInstance instance = getCurrentInstance(); final String valueToSet; if (value != null) { // Value to set is computed with an XPath expression Map namespaceContext = Dom4jUtils.getNamespaceContext(eventHandlerElement); valueToSet = instance.evaluateXPath(pipelineContext, value, namespaceContext, null, functionLibrary, null); } else { // Value to set is static content valueToSet = content; } // Set value on current node Node currentNode = getCurrentSingleNode(); instance.setValueForNode(currentNode, valueToSet); } else if (XFormsEvents.XFORMS_TOGGLE_ACTION.equals(actionEventName)) { // 9.2.3 The toggle Element // xforms:toggle // Find case with that id and select it String caseId = eventHandlerElement.attributeValue("case"); eventContext.addDivToShow(caseId); // Deselect other cases in that switch { Map variables = new HashMap(); variables.put("case-id", caseId); PooledXPathExpression xpathExpression = XPathCache.getXPathExpression(pipelineContext, new DocumentWrapper(getControlsDocument(), null).wrap(getControlsDocument()), "/xxf:controls//xf:case[@id = $case-id]/ancestor::xf:switch[1]//xf:case[not(@id = $case-id)]", XFormsServer.XFORMS_NAMESPACES, variables); try { for (Iterator i = xpathExpression.evaluate().iterator(); i.hasNext();) { Element caseElement = (Element) i.next(); eventContext.addDivToHide(caseElement.attributeValue(new QName("id"))); } } catch (org.orbeon.saxon.xpath.XPathException e) { throw new OXFException(e); } finally { if (xpathExpression != null) xpathExpression.returnToPool(); } } // TODO: // 1. Dispatching an xforms-deselect event to the currently selected case. // 2. Dispatching an xform-select event to the case to be selected. } else if (XFormsEvents.XFORMS_ACTION_ACTION.equals(actionEventName)) { // 10.1.1 The action Element // xforms:action for (Iterator i = eventHandlerElement.elementIterator(); i.hasNext();) { Element embeddedActionElement = (Element) i.next(); runAction(pipelineContext, embeddedActionElement, eventContext); } } else { throw new OXFException("Invalid action requested: " + actionEventName); } } | 51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/ab51a9b1db56c7cc726ea1a397a8d236e39b9aa7/XFormsControls.java/clean/src/java/org/orbeon/oxf/xforms/XFormsControls.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1086,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
3010,
30441,
1046,
16,
27573,
2587,
1042,
871,
1042,
13,
288,
3639,
514,
1301,
3402,
3098,
273,
30441,
1046,
18,
588,
3402,
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,
3238,
918,
1086,
1803,
12,
6385,
13671,
1042,
5873,
1042,
16,
3010,
30441,
1046,
16,
27573,
2587,
1042,
871,
1042,
13,
288,
3639,
514,
1301,
3402,
3098,
273,
30441,
1046,
18,
588,
3402,
3... |
return RoleLocalServiceUtil.addRole(getUser().getCompanyId(), name); | return RoleLocalServiceUtil.addRole( user.getUserId(), user.getCompanyId(), name); | public Role addRole(String name) throws PortalException, SystemException { PortalPermission.check(getPermissionChecker(), ActionKeys.ADD_ROLE); return RoleLocalServiceUtil.addRole(getUser().getCompanyId(), name); } | 57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/a4370e9ec8b5cfac0dcdfc1ee2b77c52a75bb7fb/RoleServiceImpl.java/buggy/portal-ejb/src/com/liferay/portal/service/impl/RoleServiceImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6204,
527,
2996,
12,
780,
508,
13,
1216,
25478,
503,
16,
26731,
288,
202,
202,
24395,
5041,
18,
1893,
12,
588,
5041,
8847,
9334,
4382,
2396,
18,
8355,
67,
16256,
1769,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6204,
527,
2996,
12,
780,
508,
13,
1216,
25478,
503,
16,
26731,
288,
202,
202,
24395,
5041,
18,
1893,
12,
588,
5041,
8847,
9334,
4382,
2396,
18,
8355,
67,
16256,
1769,
202,
20... |
public Result getStateToBind( Object obj, Name name, Context nameCtx, Hashtable environment, Attributes inAttrs ) throws NamingException { // Only interested in Person objects if ( obj instanceof Person ) { Attributes outAttrs; if ( inAttrs == null ) { outAttrs = new BasicAttributes(true); } else { outAttrs = ( Attributes ) inAttrs.clone(); } // Set up object class if ( outAttrs.get( "objectclass" ) == null ) { BasicAttribute oc = new BasicAttribute( "objectclass", "person" ); oc.add( "top" ); outAttrs.put( oc ); } Person per = ( Person ) obj; // mandatory attributes if ( per.getLastname() != null ) { outAttrs.put( "sn", per.getLastname() ); } else { throw new SchemaViolationException( "Person must have surname" ); } if ( per.getCn() != null ) { outAttrs.put( "cn", per.getCn() ); } else { throw new SchemaViolationException( "Person must have common name" ); } // optional attributes if ( per.getPassword() != null ) { outAttrs.put( "userPassword", per.getPassword() ); } if ( per.getTelephoneNumber() != null ) { outAttrs.put( "telephoneNumber", per.getTelephoneNumber() ); } if ( per.getSeealso() != null ) { outAttrs.put( "seeAlso", per.getSeealso() ); } if ( per.getDescription() != null ) { outAttrs.put( "description", per.getDescription() ); } return new DirStateFactory.Result( null, outAttrs ); } return null; } | 10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/fe188ae0ecc110aa24485d4f4ff9c9265e54b0b5/ObjStateFactoryTest.java/clean/core-unit/src/test/java/org/apache/ldap/server/jndi/ObjStateFactoryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1253,
588,
1119,
774,
3357,
12,
921,
2603,
16,
50,
301,
1069,
16,
1042,
529,
6442,
16,
5582,
14544,
10274,
16,
2498,
267,
8262,
13,
15069,
24102,
503,
95,
759,
3386,
2761,
3149,
267,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1253,
588,
1119,
774,
3357,
12,
921,
2603,
16,
50,
301,
1069,
16,
1042,
529,
6442,
16,
5582,
14544,
10274,
16,
2498,
267,
8262,
13,
15069,
24102,
503,
95,
759,
3386,
2761,
3149,
267,
8... | ||
public WebWindowEvent( final WebWindow webWindow, final int type, final Page oldPage, final Page newPage ) { super(webWindow); oldPage_ = oldPage; newPage_ = newPage; switch( type ) { case OPEN: case CLOSE: case CHANGE: type_ = type; break; default: throw new IllegalArgumentException( "type must be one of OPEN, CLOSE, CHANGE but got "+type); } } | 47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/bdaea4b93aa2ca0057c7896bcb492d723586caf6/WebWindowEvent.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebWindowEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2999,
3829,
1133,
12,
2398,
727,
2999,
3829,
3311,
3829,
16,
2398,
727,
509,
618,
16,
2398,
727,
3460,
1592,
1964,
16,
2398,
727,
3460,
394,
1964,
262,
288,
3639,
2240,
12,
4875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2999,
3829,
1133,
12,
2398,
727,
2999,
3829,
3311,
3829,
16,
2398,
727,
509,
618,
16,
2398,
727,
3460,
1592,
1964,
16,
2398,
727,
3460,
394,
1964,
262,
288,
3639,
2240,
12,
4875,
... | ||
if(OperatingSystem.isMacOS()) { System.getProperties().put("com.apple.macos.useScreenMenuBar","true"); } | public static void main(String[] args) { String javaVersion = System.getProperty("java.version"); if(javaVersion.compareTo("1.3") < 0) { System.err.println("You are running Java version " + javaVersion + "."); System.err.println("jEdit requires Java 1.3 or later."); System.exit(1); } //{{{ Set up activity log int level = Log.WARNING; if(args.length >= 1) { String levelStr = args[0]; if(levelStr.length() == 1 && Character.isDigit( levelStr.charAt(0))) { level = Integer.parseInt(levelStr); args[0] = null; } } Log.init(true,level); //}}} //{{{ Parse command line boolean endOpts = false; settingsDirectory = MiscUtilities.constructPath( System.getProperty("user.home"),".jedit"); String portFile = "server"; boolean restore = true; boolean gui = true; // open initial view? boolean noPlugins = false; boolean noStartupScripts = false; String userDir = System.getProperty("user.dir"); // script to run String scriptFile = null; for(int i = 0; i < args.length; i++) { String arg = args[i]; if(arg == null) continue; else if(arg.length() == 0) args[i] = null; else if(arg.startsWith("-") && !endOpts) { if(arg.equals("--")) endOpts = true; else if(arg.equals("-usage")) { version(); System.err.println(); usage(); System.exit(1); } else if(arg.equals("-version")) { version(); System.exit(1); } else if(arg.equals("-nosettings")) settingsDirectory = null; else if(arg.startsWith("-settings=")) settingsDirectory = arg.substring(10); else if(arg.startsWith("-noserver")) portFile = null; else if(arg.equals("-server")) portFile = "server"; else if(arg.startsWith("-server=")) portFile = arg.substring(8); else if(arg.startsWith("-background")) background = true; else if(arg.equals("-nogui")) gui = false; else if(arg.equals("-norestore")) restore = false; else if(arg.equals("-noplugins")) noPlugins = true; else if(arg.equals("-nostartupscripts")) noStartupScripts = true; else if(arg.startsWith("-run=")) scriptFile = arg.substring(5); else { System.err.println("Unknown option: " + arg); usage(); System.exit(1); } args[i] = null; } } //}}} if(settingsDirectory != null && portFile != null) portFile = MiscUtilities.constructPath(settingsDirectory,portFile); else portFile = null; //{{{ Try connecting to another running jEdit instance if(portFile != null && new File(portFile).exists()) { int port, key; try { BufferedReader in = new BufferedReader(new FileReader(portFile)); String check = in.readLine(); if(!check.equals("b")) throw new Exception("Wrong port file format"); port = Integer.parseInt(in.readLine()); key = Integer.parseInt(in.readLine()); in.close(); Socket socket = new Socket(InetAddress.getByName("127.0.0.1"),port); DataOutputStream out = new DataOutputStream( socket.getOutputStream()); out.writeInt(key); String script = makeServerScript(restore,args,scriptFile); out.writeUTF(script); out.close(); System.exit(0); } catch(Exception e) { // ok, this one seems to confuse newbies // endlessly, so log it as NOTICE, not // ERROR Log.log(Log.NOTICE,jEdit.class,"An error occurred" + " while connecting to the jEdit server instance."); Log.log(Log.NOTICE,jEdit.class,"This probably means that" + " jEdit crashed and/or exited abnormally"); Log.log(Log.NOTICE,jEdit.class,"the last time it was run."); Log.log(Log.NOTICE,jEdit.class,"If you don't" + " know what this means, don't worry."); Log.log(Log.NOTICE,jEdit.class,e); } } //}}} //{{{ MacOS X GUI hack if(OperatingSystem.isMacOS()) { // put the menu bar at the top of the screen, as opposed to // inside the jEdit window System.getProperties().put("com.apple.macos.useScreenMenuBar","true"); } //}}} // don't show splash screen if there is a file named // 'nosplash' in the settings directory if(!new File(settingsDirectory,"nosplash").exists()) GUIUtilities.showSplashScreen(); //{{{ Initialize settings directory Writer stream; if(settingsDirectory != null) { File _settingsDirectory = new File(settingsDirectory); if(!_settingsDirectory.exists()) _settingsDirectory.mkdirs(); File _macrosDirectory = new File(settingsDirectory,"macros"); if(!_macrosDirectory.exists()) _macrosDirectory.mkdir(); String logPath = MiscUtilities.constructPath( settingsDirectory,"activity.log"); backupSettingsFile(new File(logPath)); try { stream = new BufferedWriter(new FileWriter(logPath)); } catch(Exception e) { e.printStackTrace(); stream = null; } } else { stream = null; } //}}} Log.setLogWriter(stream); Log.log(Log.NOTICE,jEdit.class,"jEdit version " + getVersion()); Log.log(Log.MESSAGE,jEdit.class,"Settings directory is " + settingsDirectory); //{{{ Initialize server if(portFile != null) { server = new EditServer(portFile); if(!server.isOK()) server = null; } else { if(background) { background = false; System.err.println("You cannot specify both the" + " -background and -noserver switches"); } } //}}} //{{{ Get things rolling initMisc(); initSystemProperties(); if(jEditHome != null) initSiteProperties(); GUIUtilities.advanceSplashProgress(); BeanShell.init(); initUserProperties(); initPLAF(); if(OperatingSystem.hasJava14()) { try { ClassLoader loader = jEdit.class.getClassLoader(); Class clazz; if(loader != null) clazz = loader.loadClass("org.gjt.sp.jedit.Java14"); else clazz = Class.forName("org.gjt.sp.jedit.Java14"); java.lang.reflect.Method meth = clazz .getMethod("init",new Class[0]); meth.invoke(null,new Object[0]); } catch(Exception e) { Log.log(Log.ERROR,jEdit.class,e); System.exit(1); } } initActions(); initDockables(); GUIUtilities.advanceSplashProgress(); VFSManager.init(); if(!noPlugins) initPlugins(); if(settingsDirectory != null) { File history = new File(MiscUtilities.constructPath( settingsDirectory,"history")); if(history.exists()) historyModTime = history.lastModified(); HistoryModel.loadHistory(history); File recent = new File(MiscUtilities.constructPath( settingsDirectory,"recent.xml")); if(recent.exists()) recentModTime = recent.lastModified(); BufferHistory.load(recent); } GUIUtilities.advanceSplashProgress(); // Buffer sort sortBuffers = getBooleanProperty("sortBuffers"); sortByName = getBooleanProperty("sortByName"); reloadModes(); GUIUtilities.advanceSplashProgress(); SearchAndReplace.load(); Macros.loadMacros(); GUIUtilities.advanceSplashProgress(); //}}} //{{{ Start plugins for(int i = 0; i < jars.size(); i++) { ((EditPlugin.JAR)jars.elementAt(i)).getClassLoader() .startAllPlugins(); } //}}} //{{{ Run startup scripts, after plugins and settings are loaded if(!noStartupScripts && jEditHome != null) { String path = MiscUtilities.constructPath(jEditHome,"startup"); File file = new File(path); if(file.exists()) runStartupScripts(file); } if(!noStartupScripts && settingsDirectory != null) { String path = MiscUtilities.constructPath(settingsDirectory,"startup"); File file = new File(path); if(!file.exists()) file.mkdirs(); else runStartupScripts(file); } //}}} //{{{ Run script specified with -run= parameter if(scriptFile != null) { scriptFile = MiscUtilities.constructPath(userDir,scriptFile); BeanShell.runScript(null,scriptFile,false,false); } //}}} // Must be after plugins are started!!! propertiesChanged(); GUIUtilities.advanceSplashProgress(); //{{{ Open files Buffer buffer = openFiles(null,userDir,args); if(buffer != null) { // files specified on command line; force initial view // to open gui = true; } String splitConfig = null; if(restore && settingsDirectory != null && jEdit.getBooleanProperty("restore") && (bufferCount == 0 || jEdit.getBooleanProperty("restore.cli"))) { splitConfig = restoreOpenFiles(); } if(bufferCount == 0 && gui) newFile(null); //}}} //{{{ Create the view and hide the splash screen. final Buffer _buffer = buffer; final String _splitConfig = splitConfig; final boolean _gui = gui; GUIUtilities.advanceSplashProgress(); SwingUtilities.invokeLater(new Runnable() { public void run() { EditBus.send(new EditorStarted(null)); if(_gui) { View view; if(_buffer != null) view = newView(null,_buffer); else view = newView(null,_splitConfig); } // Start I/O threads VFSManager.start(); // Start edit server if(server != null) server.start(); GUIUtilities.hideSplashScreen(); Log.log(Log.MESSAGE,jEdit.class,"Startup " + "complete"); //{{{ Report any plugin errors if(pluginErrors != null) { String caption = jEdit.getProperty( "plugin-error.caption" + (pluginErrors.size() == 1 ? "-1" : ""),new Integer[] { new Integer(pluginErrors.size()) }); new ErrorListDialog( jEdit.getFirstView(), jEdit.getProperty("plugin-error.title"), caption,pluginErrors,true); pluginErrors.removeAllElements(); } //}}} } }); //}}} } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/4f1d14bf0fe9bfa61afed62492faeffaece2b8f8/jEdit.java/clean/org/gjt/sp/jedit/jEdit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
780,
2252,
1444,
273,
2332,
18,
588,
1396,
2932,
6290,
18,
1589,
8863,
202,
202,
430,
12,
6290,
1444,
18,
9877,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
780,
2252,
1444,
273,
2332,
18,
588,
1396,
2932,
6290,
18,
1589,
8863,
202,
202,
430,
12,
6290,
1444,
18,
9877,
77... | |
throw new PainterException("wrong arguments"); | throw new PainterException("translate: wrong arguments"); | public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.translate(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } AffineTransform at = new AffineTransform(); at.translate( ( (Number) data[0]).doubleValue(), ( (Number) data[1]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } | 3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/a9e36ef1e4e4be2e6d4839ed4e5a42aabe172a12/PAContext.java/clean/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
309,
261,
2472,
18,
347,
3839,
10265,
1435,
1276,
3588,
13,
288,
1850,
1645,
501,
8526,
31,
1850,
23906,
558,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
309,
261,
2472,
18,
347,
3839,
10265,
1435,
1276,
3588,
13,
288,
1850,
1645,
501,
8526,
31,
1850,
23906,
558,
... |
rval = NativeJavaObject.wrap(this, rval, field.getType()); | rval = NativeJavaObject.wrap(this, rval, type); | public Object getDefaultValue(Class hint) { if (hint == ScriptRuntime.FunctionClass) return this; Object rval; try { rval = field.get(javaObject); } catch (IllegalAccessException accEx) { throw Context.reportRuntimeError(Context.getMessage ("msg.java.internal.private", null)); } rval = NativeJavaObject.wrap(this, rval, field.getType()); if (rval instanceof Scriptable) { ((Scriptable)rval).setParentScope(this); ((Scriptable)rval).setPrototype(parent.getPrototype()); } return rval; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/1d1d51e0b008f5704d10d4a62a98d1ffdfe2cda6/JavaMembers.java/clean/src/org/mozilla/javascript/JavaMembers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
19569,
12,
797,
7380,
13,
288,
3639,
309,
261,
11317,
422,
7739,
5576,
18,
2083,
797,
13,
5411,
327,
333,
31,
3639,
1033,
14267,
31,
3639,
775,
288,
5411,
14267,
273,
652,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
19569,
12,
797,
7380,
13,
288,
3639,
309,
261,
11317,
422,
7739,
5576,
18,
2083,
797,
13,
5411,
327,
333,
31,
3639,
1033,
14267,
31,
3639,
775,
288,
5411,
14267,
273,
652,
1... |
List list = new LinkedList(); JarURLConnection con = (JarURLConnection) jar.openConnection(); JarFile file = con.getJarFile(); Enumeration e = file.entries(); while (e.hasMoreElements()) { JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".class")) { list.add(entry); } } return list; } | List list = new LinkedList(); JarURLConnection con = (JarURLConnection) jar.openConnection(); JarFile file = con.getJarFile(); Enumeration e = file.entries(); while (e.hasMoreElements()) { JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".class")) { list.add(entry); } } return list; } | private List findClassFromJar(URL jar) throws IOException { List list = new LinkedList(); JarURLConnection con = (JarURLConnection) jar.openConnection(); JarFile file = con.getJarFile(); Enumeration e = file.entries(); while (e.hasMoreElements()) { JarEntry entry = (JarEntry) e.nextElement(); if (entry.getName().endsWith(".class")) { list.add(entry); } } return list; } | 10293 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10293/f8c5449649080ba5d8b846e18d35e0ec85606a5c/URLRepository.java/buggy/src/java/net/java/dev/jminimizer/util/URLRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
987,
1104,
797,
1265,
10813,
12,
1785,
7334,
13,
1216,
1860,
288,
3639,
987,
666,
273,
394,
10688,
5621,
3639,
15644,
14790,
356,
273,
261,
10813,
14790,
13,
7334,
18,
3190,
1952,
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,
987,
1104,
797,
1265,
10813,
12,
1785,
7334,
13,
1216,
1860,
288,
3639,
987,
666,
273,
394,
10688,
5621,
3639,
15644,
14790,
356,
273,
261,
10813,
14790,
13,
7334,
18,
3190,
1952,
5... |
public String getParameterDisplaySignature() { StringBuffer sb = new StringBuffer("("); ASTFormalParameters params = (ASTFormalParameters) node.jjtGetChild(0); for (int i = 0; i < ((ASTMethodDeclarator) node).getParameterCount(); i++) { ASTFormalParameter p = (ASTFormalParameter) params.jjtGetChild(i); sb.append(((ASTType)p.getFirstChildOfType(ASTType.class)).getTypeImage()); sb.append(","); } if (sb.charAt(sb.length()-1) == ',') { sb.deleteCharAt(sb.length()-1); } return sb.toString() + ")"; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/da0839d4f623d4be72bd79857b67181e706d386c/MethodNameDeclaration.java/buggy/pmd/src/net/sourceforge/pmd/symboltable/MethodNameDeclaration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
588,
1662,
4236,
5374,
1435,
95,
780,
13699,
70,
33,
2704,
780,
1892,
2932,
2932,
1769,
9053,
12183,
2402,
2010,
28657,
9053,
12183,
2402,
13,
2159,
18,
78,
78,
88,
967,
1763,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
780,
588,
1662,
4236,
5374,
1435,
95,
780,
13699,
70,
33,
2704,
780,
1892,
2932,
2932,
1769,
9053,
12183,
2402,
2010,
28657,
9053,
12183,
2402,
13,
2159,
18,
78,
78,
88,
967,
1763,
12,
... | ||
runQueryCheckResult( | assertQueryReturns( | public void testSolveOrderAmbiguous1() { runQueryCheckResult( "WITH" + nl + " MEMBER [Promotions].[Calc] AS '1'" + nl + " MEMBER [Customers].[Calc] AS '2'" + nl + "SELECT" + nl + " { [Promotions].[Calc] } ON COLUMNS," + nl + " { Customers].[Calc] } ON ROWS" + nl + "FROM Sales", "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Promotions].[Calc]}" + nl + "Axis #2:" + nl + "{[Customers].[Calc]}" + nl + "Row #0: 1" + nl); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3041f930b5fc4bf6aa3339845b828801c1d8b366/BasicQueryTest.java/buggy/testsrc/main/mondrian/test/BasicQueryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
55,
5390,
2448,
30706,
10623,
21,
1435,
288,
3639,
1815,
1138,
1356,
12,
7734,
315,
9147,
6,
397,
7741,
397,
7734,
315,
282,
18990,
6271,
306,
13224,
352,
1115,
8009,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
55,
5390,
2448,
30706,
10623,
21,
1435,
288,
3639,
1815,
1138,
1356,
12,
7734,
315,
9147,
6,
397,
7741,
397,
7734,
315,
282,
18990,
6271,
306,
13224,
352,
1115,
8009,
63,... |
assems.remove(); | private void findAllAssemblies() { for (Iterator assems = assemrefs.iterator(); assems.hasNext();) { File f = (File)assems.next(); if (f.isFile()) { Assembly assem = Assembly.LoadFrom(f.getPath()); if (assem != null) { assemblies.add(assem); } } assems.remove(); } assert assemrefs.isEmpty(); } | 1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/e21ba6a4618e0d7a1aa5b722e30942627e81dbff/CLRTypes.java/clean/sources/scalac/symtab/classfile/CLRTypes.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
11135,
1463,
5747,
549,
281,
1435,
288,
202,
1884,
261,
3198,
487,
307,
959,
273,
487,
12000,
9316,
18,
9838,
5621,
487,
307,
959,
18,
5332,
2134,
5621,
13,
288,
202,
565,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
11135,
1463,
5747,
549,
281,
1435,
288,
202,
1884,
261,
3198,
487,
307,
959,
273,
487,
12000,
9316,
18,
9838,
5621,
487,
307,
959,
18,
5332,
2134,
5621,
13,
288,
202,
565,
13... | |
private void hookListeners( ) { templateList.addListener( SWT.Selection, templateListener ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c99f380392743b93a540c72d450bf0a1204dcba2/WizardTemplateChoicePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardTemplateChoicePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
5583,
12,
262,
202,
95,
202,
202,
3202,
682,
18,
1289,
2223,
12,
348,
8588,
18,
6233,
16,
1542,
2223,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
5583,
12,
262,
202,
95,
202,
202,
3202,
682,
18,
1289,
2223,
12,
348,
8588,
18,
6233,
16,
1542,
2223,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | ||
Log.log(Log.ERROR, MODULE, "Can't transfer focus backwards on 1.3"); | Log.log(Log.LEVEL_ERROR, MODULE, "Can't transfer focus backwards on 1.3"); | public void actionPerformed(ActionEvent evt) { try { ((Component)evt.getSource()).transferFocusBackward(); } catch (NoSuchMethodError e) { Log.log(Log.ERROR, MODULE, "Can't transfer focus backwards on 1.3"); } } | 9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/d180d723a9e594086228e902568d740d7e8649d8/PictureInspector.java/buggy/com/gallery/GalleryRemote/PictureInspector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
1082,
202,
698,
288,
9506,
202,
12443,
1841,
13,
73,
11734,
18,
588,
1830,
1435,
2934,
13866,
9233,
26283,
5621,
1082,
202,
97,
1044,
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,
540,
1071,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
1082,
202,
698,
288,
9506,
202,
12443,
1841,
13,
73,
11734,
18,
588,
1830,
1435,
2934,
13866,
9233,
26283,
5621,
1082,
202,
97,
1044,
261,... |
new NoViableAltException("850:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | \'(\' u= lhs \')\' )", 56, 0, input); | new NoViableAltException("851:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | \'(\' u= lhs \')\' )", 56, 0, input); | public PatternDescr lhs_unary() throws RecognitionException { PatternDescr d; PatternDescr u = null; d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:850:17: ( (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:850:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:850:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | '(' u= lhs ')' ) int alt56=5; switch ( input.LA(1) ) { case 54: alt56=1; break; case 55: alt56=2; break; case 56: alt56=3; break; case ID: alt56=4; break; case 21: alt56=5; break; default: NoViableAltException nvae = new NoViableAltException("850:17: (u= lhs_exist | u= lhs_not | u= lhs_eval | u= lhs_column | \'(\' u= lhs \')\' )", 56, 0, input); throw nvae; } switch (alt56) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:850:25: u= lhs_exist { following.push(FOLLOW_lhs_exist_in_lhs_unary2360); u=lhs_exist(); following.pop(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:851:25: u= lhs_not { following.push(FOLLOW_lhs_not_in_lhs_unary2368); u=lhs_not(); following.pop(); } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:852:25: u= lhs_eval { following.push(FOLLOW_lhs_eval_in_lhs_unary2376); u=lhs_eval(); following.pop(); } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:853:25: u= lhs_column { following.push(FOLLOW_lhs_column_in_lhs_unary2384); u=lhs_column(); following.pop(); } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:854:25: '(' u= lhs ')' { match(input,21,FOLLOW_21_in_lhs_unary2390); following.push(FOLLOW_lhs_in_lhs_unary2394); u=lhs(); following.pop(); match(input,23,FOLLOW_23_in_lhs_unary2396); } break; } d = u; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
582,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
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,
6830,
16198,
8499,
67,
318,
814,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
6830,
16198,
582,
273,
446,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
28... |
gridBagConstraints.gridy = 1; | gridBagConstraints.gridy = 0; | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; jSplitPane1 = new javax.swing.JSplitPane(); jScrollPane1 = new javax.swing.JScrollPane(); navigatorTree = new javax.swing.JTree(); viewPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); reportPanel = new javax.swing.JPanel(); editProjectPanel = new javax.swing.JPanel(); jarFileLabel = new javax.swing.JLabel(); jarNameTextField = new javax.swing.JTextField(); addJarButton = new javax.swing.JButton(); jarFileListLabel = new javax.swing.JLabel(); sourceDirLabel = new javax.swing.JLabel(); srcDirTextField = new javax.swing.JTextField(); addSourceDirButton = new javax.swing.JButton(); sourceDirListLabel = new javax.swing.JLabel(); removeJarButton = new javax.swing.JButton(); removeSrcDirButton = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); browseJarButton = new javax.swing.JButton(); browseSrcDirButton = new javax.swing.JButton(); editProjectLabel = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); findBugsButton = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jScrollPane2 = new javax.swing.JScrollPane(); jarFileList = new javax.swing.JList(); jScrollPane3 = new javax.swing.JScrollPane(); sourceDirList = new javax.swing.JList(); bugTreePanel = new javax.swing.JPanel(); jScrollPane4 = new javax.swing.JScrollPane(); bugTree = new javax.swing.JTree(); sortOrderChooser = new javax.swing.JComboBox(); sortOrderLabel = new javax.swing.JLabel(); leftFiller = new javax.swing.JLabel(); rightFiller = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newProjectItem = new javax.swing.JMenuItem(); openProjectItem = new javax.swing.JMenuItem(); closeProjectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); exitItem = new javax.swing.JMenuItem(); setTitle("FindBugs"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); jSplitPane1.setResizeWeight(0.4); navigatorTree.setModel(createNavigatorTreeModel()); jScrollPane1.setViewportView(navigatorTree); jSplitPane1.setLeftComponent(jScrollPane1); viewPanel.setLayout(new java.awt.CardLayout()); viewPanel.add(emptyPanel, "EmptyPanel"); viewPanel.add(reportPanel, "ReportPanel"); editProjectPanel.setLayout(new java.awt.GridBagLayout()); jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileLabel.setText("Jar file:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileLabel, gridBagConstraints); jarNameTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jarNameTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(jarNameTextField, gridBagConstraints); addJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); addJarButton.setText("Add"); addJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Jar Files:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source Dir:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSourceDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 6; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source Dirs:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 4; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeJarButton, gridBagConstraints); removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeSrcDirButton.setText("Remove"); removeSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 7; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeSrcDirButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator1, gridBagConstraints); browseJarButton.setText("..."); browseJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseJarButton, gridBagConstraints); browseSrcDirButton.setText("..."); browseSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseSrcDirButton, gridBagConstraints); editProjectLabel.setBackground(new java.awt.Color(0, 0, 204)); editProjectLabel.setFont(new java.awt.Font("Dialog", 1, 24)); editProjectLabel.setForeground(new java.awt.Color(255, 255, 255)); editProjectLabel.setText("Project"); editProjectLabel.setOpaque(true); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; editProjectPanel.add(editProjectLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator2, gridBagConstraints); findBugsButton.setText("Find Bugs!"); findBugsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findBugsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 4; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(findBugsButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator4, gridBagConstraints); jScrollPane2.setPreferredSize(new java.awt.Dimension(259, 1)); jarFileList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); jarFileList.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPane2.setViewportView(jarFileList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.7; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jScrollPane2, gridBagConstraints); jScrollPane3.setPreferredSize(new java.awt.Dimension(259, 1)); sourceDirList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); sourceDirList.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPane3.setViewportView(sourceDirList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jScrollPane3, gridBagConstraints); viewPanel.add(editProjectPanel, "EditProjectPanel"); bugTreePanel.setLayout(new java.awt.GridBagLayout()); jScrollPane4.setViewportView(bugTree); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; bugTreePanel.add(jScrollPane4, gridBagConstraints); sortOrderChooser.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sortOrderChooserActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; bugTreePanel.add(sortOrderChooser, gridBagConstraints); sortOrderLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sortOrderLabel.setText("Sort order:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; bugTreePanel.add(sortOrderLabel, gridBagConstraints); leftFiller.setToolTipText("null"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.weightx = 0.5; bugTreePanel.add(leftFiller, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 1; gridBagConstraints.weightx = 0.5; bugTreePanel.add(rightFiller, gridBagConstraints); viewPanel.add(bugTreePanel, "BugTree"); jSplitPane1.setRightComponent(viewPanel); getContentPane().add(jSplitPane1, java.awt.BorderLayout.CENTER); jMenuBar1.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setMnemonic('F'); fileMenu.setText("File"); fileMenu.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setMnemonic('N'); newProjectItem.setText("New Project"); newProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newProjectItemActionPerformed(evt); } }); fileMenu.add(newProjectItem); openProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); openProjectItem.setMnemonic('O'); openProjectItem.setText("Open Project"); fileMenu.add(openProjectItem); closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); closeProjectItem.setMnemonic('C'); closeProjectItem.setText("Close Project"); fileMenu.add(closeProjectItem); fileMenu.add(jSeparator3); exitItem.setFont(new java.awt.Font("Dialog", 0, 12)); exitItem.setMnemonic('X'); exitItem.setText("Exit"); exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); jMenuBar1.add(fileMenu); setJMenuBar(jMenuBar1); pack(); }//GEN-END:initComponents | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/70708b5025c0ff811be050e30713b466c29833da/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
525,
5521,
8485,
21,
273,
394,
6863,
18,
5328,
310,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
525,
5521,
8485,
21,
273,
394,
6863,
18,
5328,
310,
18... |
throw new ArgumentError(recv.getRuntime(), "This method expected 1 or 2 arguments."); | throw recv.getRuntime().newArgumentError("This method expected 1 or 2 arguments."); | public static RubyString basename(IRubyObject recv, IRubyObject[] args) { if (args.length < 1 || args.length > 2) { throw new ArgumentError(recv.getRuntime(), "This method expected 1 or 2 arguments."); // XXX } String name = args[0].toString(); name = new File(name).getName(); if (args.length == 2 && name.endsWith(args[1].toString())) { name = name.substring(0, name.length() - args[1].toString().length()); } return RubyString.newString(recv.getRuntime(), name); } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFile.java/buggy/src/org/jruby/RubyFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
4882,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
747,
833,
18,
2469,
405,
576,
13,
288,
541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
4882,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
404,
747,
833,
18,
2469,
405,
576,
13,
288,
541... |
if (args.length == 0) { System.err.println("Prints a disassembled view of the given class."); System.err.println("Usage: TraceClassVisitor " + "<fully qualified class name or class file name>"); System.exit(-1); | if (args.length < 1 || args.length > 2) { printUsage(); } int i = 0; boolean skipDebug = true; if (args[0].equals("-debug")) { i = 1; skipDebug = false; if (args.length != 2) { printUsage(); } | public static void main (final String[] args) throws Exception { if (args.length == 0) { System.err.println("Prints a disassembled view of the given class."); System.err.println("Usage: TraceClassVisitor " + "<fully qualified class name or class file name>"); System.exit(-1); } ClassReader cr; if (args[0].endsWith(".class")) { cr = new ClassReader(new FileInputStream(args[0])); } else { cr = new ClassReader(args[0]); } cr.accept(new TraceClassVisitor( null, new PrintWriter(System.out)), getDefaultAttributes(), true); } | 2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/b852fed273b2127b7f164f108dc76d999dd81a91/TraceClassVisitor.java/buggy/asm/src/org/objectweb/asm/util/TraceClassVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
261,
6385,
514,
8526,
833,
13,
1216,
1185,
288,
565,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
1377,
2332,
18,
370,
18,
8222,
2932,
15402,
279,
1015,
345,
5747,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
261,
6385,
514,
8526,
833,
13,
1216,
1185,
288,
565,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
1377,
2332,
18,
370,
18,
8222,
2932,
15402,
279,
1015,
345,
5747,... |
return new CheckBoxMenuItemIcon(); | if (checkBoxMenuItemIcon == null) checkBoxMenuItemIcon = new CheckBoxMenuItemIcon(); return checkBoxMenuItemIcon; | public static Icon getCheckBoxMenuItemIcon() { return new CheckBoxMenuItemIcon(); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ae9ec43c5570a0f69e3d8c8b733283719f52a770/MetalIconFactory.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
16011,
336,
19174,
12958,
5554,
1435,
282,
288,
565,
309,
261,
1893,
3514,
12958,
5554,
422,
446,
13,
866,
3514,
12958,
5554,
273,
394,
2073,
3514,
12958,
5554,
5621,
327,
866,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
16011,
336,
19174,
12958,
5554,
1435,
282,
288,
565,
309,
261,
1893,
3514,
12958,
5554,
422,
446,
13,
866,
3514,
12958,
5554,
273,
394,
2073,
3514,
12958,
5554,
5621,
327,
866,
... |
public void setReportContext(IReportContext reportContext) { | public void setReportContext( IReportContext reportContext ) { | public void setReportContext(IReportContext reportContext) { this.reportContext = reportContext; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/b900dee3dd264c71eb7ed27f88571d5b40a336c0/ExecutionContext.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
4820,
1042,
12,
45,
4820,
1042,
2605,
1042,
13,
288,
202,
202,
2211,
18,
6006,
1042,
273,
2605,
1042,
31,
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,
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,
225,
202,
482,
918,
444,
4820,
1042,
12,
45,
4820,
1042,
2605,
1042,
13,
288,
202,
202,
2211,
18,
6006,
1042,
273,
2605,
1042,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
ExpBase exp = (ExpBase) getArg(evaluator, args, 1, valueFunCall); | ExpBase exp = (ExpBase) getArgNoEval(args, 1, valueFunCall); | public Object evaluate(Evaluator evaluator, Exp[] args) { List members = (List) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1, valueFunCall); return min(evaluator.push(), members, exp); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/0ab3be7797c0940dd5a113451bfd9a43186433e0/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
6862,
202,
682,
4833,
273,
261,
682,
13,
336,
4117,
12,
14168,
639,
16,
833,
16,
374,
1769,
6862,
202,
2966,
2171,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
6862,
202,
682,
4833,
273,
261,
682,
13,
336,
4117,
12,
14168,
639,
16,
833,
16,
374,
1769,
6862,
202,
2966,
2171,... |
if (this.preferences.insert_new_line_after_opening_brace_in_array_initializer) { this.scribe.printNewLine(); } | private void formatArrayInitializer(ArrayInitializer arrayInitializer, BlockScope scope, boolean insertSpaceBeforeOpeningBrace) { final int numberOfParens = (arrayInitializer.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT; if (numberOfParens > 0) { manageOpeningParenthesizedExpression(arrayInitializer, numberOfParens); } String array_initializer_brace_position = this.preferences.array_initializer_brace_position; formatOpeningBrace(array_initializer_brace_position, insertSpaceBeforeOpeningBrace); final Expression[] expressions = arrayInitializer.expressions; if (expressions != null) { if (this.preferences.insert_new_line_after_opening_brace_in_array_initializer) { this.scribe.printNewLine(); } int expressionsLength = expressions.length; if (expressionsLength > 1) { Alignment arrayInitializerAlignment =this.scribe.createAlignment( "array_initializer",//$NON-NLS-1$ this.preferences.array_initializer_expressions_alignment, Alignment.R_OUTERMOST, expressionsLength, this.scribe.scanner.currentPosition, this.preferences.array_initializer_continuation_indentation, true); if (this.preferences.insert_new_line_after_opening_brace_in_array_initializer) { arrayInitializerAlignment.fragmentIndentations[0] = arrayInitializerAlignment.breakIndentationLevel; } this.scribe.enterAlignment(arrayInitializerAlignment); boolean ok = false; do { try { this.scribe.alignFragment(arrayInitializerAlignment, 0); if (this.preferences.insert_space_before_first_initializer) { this.scribe.space(); } expressions[0].traverse(this, scope); for (int i = 1; i < expressionsLength; i++) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_array_initializer); this.scribe.alignFragment(arrayInitializerAlignment, i); if (this.preferences.insert_space_after_comma_in_array_initializer) { this.scribe.space(); } expressions[i].traverse(this, scope); if (i == expressionsLength - 1) { if (isComma()) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_array_initializer); } } } ok = true; } catch (AlignmentException e) { this.scribe.redoAlignment(e); } } while (!ok); this.scribe.exitAlignment(arrayInitializerAlignment, true); } else { // we don't need to use an alignment if (this.preferences.insert_space_before_first_initializer) { this.scribe.space(); } expressions[0].traverse(this, scope); if (expressionsLength == 1) { if (isComma()) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_array_initializer); } } else { for (int i = 1; i < expressionsLength; i++) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_array_initializer); if (this.preferences.insert_space_after_comma_in_array_initializer) { this.scribe.space(); } expressions[i].traverse(this, scope); if (i == expressionsLength - 1) { if (isComma()) { this.scribe.printNextToken(TerminalTokens.TokenNameCOMMA, this.preferences.insert_space_before_comma_in_array_initializer); } } } } } if (this.preferences.insert_new_line_before_closing_brace_in_array_initializer) { this.scribe.printNewLine(); } } else if (this.preferences.insert_space_between_empty_array_initializer) { this.scribe.space(); } this.scribe.printNextToken(TerminalTokens.TokenNameRBRACE, this.preferences.insert_space_before_closing_brace_in_array_initializer, true); if (array_initializer_brace_position.equals(DefaultCodeFormatterConstants.NEXT_LINE_SHIFTED)) { this.scribe.unIndent(); } if (numberOfParens > 0) { manageClosingParenthesizedExpression(arrayInitializer, numberOfParens); } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/2941812daedfecddb313ba4dd0685bac7c26b287/CodeFormatterVisitor.java/clean/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
740,
1076,
14729,
12,
1076,
14729,
526,
14729,
16,
3914,
3876,
2146,
16,
1250,
2243,
3819,
4649,
21378,
21965,
13,
288,
202,
202,
6385,
509,
7922,
52,
21660,
273,
261,
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,
1,
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,
740,
1076,
14729,
12,
1076,
14729,
526,
14729,
16,
3914,
3876,
2146,
16,
1250,
2243,
3819,
4649,
21378,
21965,
13,
288,
202,
202,
6385,
509,
7922,
52,
21660,
273,
261,
112... | |
Assert.assertTrue( true ); | assertTrue( true ); | public void testLdapDNGetPrefixPos4() throws InvalidNameException { LdapDN dn = new LdapDN( "a=b, c=d,e = f" ); try { dn.getPrefix( 4 ); // We should not reach this point. Assert.fail(); } catch ( ArrayIndexOutOfBoundsException aoobe ) { Assert.assertTrue( true ); } } | 54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/48d9903b4ac6cca22ed99019b9324bf53c01e03d/LdapDNTest.java/clean/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
18437,
8609,
967,
2244,
1616,
24,
1435,
1216,
1962,
26771,
282,
288,
4202,
18053,
8609,
8800,
273,
394,
18053,
8609,
12,
315,
69,
33,
70,
16,
276,
33,
72,
16,
73,
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,
565,
1071,
918,
1842,
18437,
8609,
967,
2244,
1616,
24,
1435,
1216,
1962,
26771,
282,
288,
4202,
18053,
8609,
8800,
273,
394,
18053,
8609,
12,
315,
69,
33,
70,
16,
276,
33,
72,
16,
73,
273,
... |
setOutline((LineAttributes)newValue); | setOutline((LineAttributes) newValue); | public void eSet(EStructuralFeature eFeature, Object newValue) { switch (eDerivedStructuralFeatureID(eFeature)) { case ComponentPackage.LABEL__CAPTION: setCaption((Text)newValue); return; case ComponentPackage.LABEL__BACKGROUND: setBackground((Fill)newValue); return; case ComponentPackage.LABEL__OUTLINE: setOutline((LineAttributes)newValue); return; case ComponentPackage.LABEL__SHADOW_COLOR: setShadowColor((ColorDefinition)newValue); return; case ComponentPackage.LABEL__INSETS: setInsets((Insets)newValue); return; case ComponentPackage.LABEL__VISIBLE: setVisible(((Boolean)newValue).booleanValue()); return; } eDynamicSet(eFeature, newValue); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/LabelImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/LabelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
5435,
2261,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20199,
12,
41,
14372,
4595,
425,
4595,
16,
1033,
6129,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
5435,
2261,
18,
1... |
return toString() + ": " + getShortName(getTargetType()) + (inverse == null ? "" : " (inverse " + inverse.name + ")"); } | return toString() + ": " + getShortName(getTargetType()) + (inverse == null ? "" : " (inverse " + inverse.name + ")"); } | public String getDescription() { return toString() + ": " + getShortName(getTargetType()) + (inverse == null ? "" : " (inverse " + inverse.name + ")"); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/Model.java/buggy/src/main/mondrian/jolap/util/Model.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
514,
11056,
1435,
288,
1082,
202,
2463,
1762,
1435,
397,
6398,
315,
397,
23387,
12,
588,
2326,
559,
10756,
397,
6862,
202,
12,
22552,
422,
446,
692,
1408,
294,
315,
261,
22552,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3196,
202,
482,
514,
11056,
1435,
288,
1082,
202,
2463,
1762,
1435,
397,
6398,
315,
397,
23387,
12,
588,
2326,
559,
10756,
397,
6862,
202,
12,
22552,
422,
446,
692,
1408,
294,
315,
261,
22552,... |
if (id > LAST_METHOD_ID) { return false; } if (0 != id) { if (functionPool[id] != IdFunction.WAS_OVERWRITTEN) { synchronized (this) { functionPool[id] = IdFunction.WAS_OVERWRITTEN; | if (id != 0) { if (id > LAST_METHOD_ID) { return false; } else { if (this == start) { overwriteMethod(id); | private boolean doOverwrite(String name) { if (isSealed()) { // Let the super class to throw exceptions for sealed objects return true; } int id = nameToId(name); if (id > LAST_METHOD_ID) { // Ignore modifications of read-only Math constants return false; } if (0 != id) { if (functionPool[id] != IdFunction.WAS_OVERWRITTEN) { synchronized (this) { // Forget default implementation // Must be synchronized to avoid clearance of overwritten // mark by another thread running in wrapMethod functionPool[id] = IdFunction.WAS_OVERWRITTEN; } } } return true; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/096c704d7a22c68c31a2273fc1fe40338b6c9c9e/NativeMath.java/buggy/js/rhino/org/mozilla/javascript/NativeMath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
741,
20832,
12,
780,
508,
13,
288,
3639,
309,
261,
291,
1761,
18931,
10756,
288,
2398,
368,
10559,
326,
2240,
667,
358,
604,
4798,
364,
695,
18931,
2184,
5411,
327,
638,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
741,
20832,
12,
780,
508,
13,
288,
3639,
309,
261,
291,
1761,
18931,
10756,
288,
2398,
368,
10559,
326,
2240,
667,
358,
604,
4798,
364,
695,
18931,
2184,
5411,
327,
638,
31,
... |
void didRecruit(Legion legion) | void didRecruit(Legion legion, Creature recruit, Creature recruiter) | void didRecruit(Legion legion) { allUpdateStatusScreen(); Iterator it = clients.iterator(); while (it.hasNext()) { Client client = (Client)it.next(); client.didRecruit(legion.getMarkerId(), legion.getRecruitName()); } } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/0779e9769923901d3f8481f3a70dc3eeea5c2a5c/Server.java/clean/Colossus/net/sf/colossus/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
5061,
426,
3353,
14945,
12,
8329,
285,
4553,
285,
16,
5799,
1231,
1950,
8653,
305,
16,
5799,
1231,
1950,
8653,
2165,
13,
565,
288,
3639,
777,
1891,
1482,
7956,
5621,
3639,
4498,
518,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5061,
426,
3353,
14945,
12,
8329,
285,
4553,
285,
16,
5799,
1231,
1950,
8653,
305,
16,
5799,
1231,
1950,
8653,
2165,
13,
565,
288,
3639,
777,
1891,
1482,
7956,
5621,
3639,
4498,
518,... |
int dx= e.x - xAnchor; int dy= e.y - yAnchor; if (Math.abs(dx) < HYSTERESIS && Math.abs(dy) < HYSTERESIS) | if (!hasMovedEnough(e)) | public void mouseMove(MouseEvent e) { // If the mouse is not down or the mouse has moved only a small amount // ignore the move. // Bug 9004: If a previous MouseDown event caused a dialog to open, // the PartDragDrop will not be notified of the MouseUp event and the // mouseDown flag will not be reset. The fix is to check and make sure // that the mouse button is still pressed. // Can not use a focus listener since the dragControl may not actually // receive focus on a MouseDown. if (!mouseDown || (e.stateMask & SWT.BUTTON1) == 0) return; int dx= e.x - xAnchor; int dy= e.y - yAnchor; if (Math.abs(dx) < HYSTERESIS && Math.abs(dy) < HYSTERESIS) return; // If the source part is not in a state to allow drag & drop // operation to start, ignore the move if (!sourcePart.isDragAllowed(new Point(e.x,e.y))) return; openTracker();} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3921a4419431dae981c68f8bfa008bf765f18e61/PartDragDrop.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/PartDragDrop.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
7644,
7607,
12,
9186,
1133,
425,
13,
288,
202,
202,
759,
971,
326,
7644,
353,
486,
2588,
578,
326,
7644,
711,
10456,
1338,
279,
5264,
3844,
202,
759,
2305,
326,
3635,
18,
202,
759... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
7644,
7607,
12,
9186,
1133,
425,
13,
288,
202,
202,
759,
971,
326,
7644,
353,
486,
2588,
578,
326,
7644,
711,
10456,
1338,
279,
5264,
3844,
202,
759,
2305,
326,
3635,
18,
202,
759... |
public boolean isSet(org.quickfix.field.UnderlyingSecurityAltID field) | public boolean isSet(quickfix.field.UnderlyingSecurityAltID field) | public boolean isSet(org.quickfix.field.UnderlyingSecurityAltID field) { return isSetField(field); } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequest.java/buggy/src/java/src/quickfix/fix44/QuoteRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
14655,
6291,
4368,
10655,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
final IPath containerName = newReportFileWizardPage.getContainerFullPath( ); | final IPath containerName = newReportFileWizardPage .getContainerFullPath( ); | public boolean performFinish( ) { final IPath containerName = newReportFileWizardPage.getContainerFullPath( ); String fn = newReportFileWizardPage.getFileName( ); final String fileName; if ( !fn.endsWith( getFileExtension() ) ) //$NON-NLS-1$ { fileName = fn + getFileExtension(); //$NON-NLS-1$ } else { fileName = fn; } InputStream streamFromPage = null; URL url = Platform.find( Platform.getBundle( ReportPlugin.REPORT_UI ), new Path( "/templates/blank_report.rptdesign" ) );//$NON-NLS-1$ if ( url != null ) { try { streamFromPage = url.openStream( ); } catch ( IOException e1 ) { //ignore. } } final InputStream stream = streamFromPage; IRunnableWithProgress op = new IRunnableWithProgress( ) { public void run( IProgressMonitor monitor ) throws InvocationTargetException { try { doFinish( containerName, fileName, stream, monitor ); } catch ( CoreException e ) { throw new InvocationTargetException( e ); } finally { monitor.done( ); } } }; try { getContainer( ).run( true, false, op ); } catch ( InterruptedException e ) { return false; } catch ( InvocationTargetException e ) { Throwable realException = e.getTargetException( ); ExceptionHandler.handle( realException ); return false; } return true; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d99dacb66a1a83c9b92f03acef4adfb1206373a0/NewTemplateWizard.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/ui/ide/wizards/NewTemplateWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
11641,
12,
262,
202,
95,
202,
202,
6385,
467,
743,
20408,
273,
394,
4820,
812,
27130,
1964,
18,
588,
2170,
24173,
12,
11272,
202,
202,
780,
2295,
273,
394,
4820,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
11641,
12,
262,
202,
95,
202,
202,
6385,
467,
743,
20408,
273,
394,
4820,
812,
27130,
1964,
18,
588,
2170,
24173,
12,
11272,
202,
202,
780,
2295,
273,
394,
4820,
8... |
Logger.minor(this, "Blocking grab: "+tokens); | Logger.minor(this, "Inner blocking grab: "+tokens); | public synchronized void innerBlockingGrab(long tokens) { Logger.minor(this, "Blocking grab: "+tokens); addTokens(); if(current > max) current = max; Logger.minor(this, "current="+current); if(current > tokens) { current -= tokens; return; } long extra = 0; if(current > 0) { tokens -= current; current = 0; } else if(current < 0) { extra = -current; current = 0; } long minDelayNS = nanosPerTick * (tokens + extra); long minDelayMS = minDelayNS / (1000*1000) + (minDelayNS % (1000*1000) == 0 ? 0 : 1); long now = System.currentTimeMillis(); // Schedule between the blockingGrab's. if(nextWake < now) nextWake = now; long wakeAt = (nextWake += minDelayMS); while(true) { now = System.currentTimeMillis(); int delay = (int) Math.min(Integer.MAX_VALUE, wakeAt - now); if(delay <= 0) break; Logger.minor(this, "Waiting "+delay+"ms"); try { wait(delay); } catch (InterruptedException e) { // Go around the loop again. } } // Remove the tokens, even if we have built up a debt due to forceGrab()s and // will therefore go negative. We have paid off the initial debt, and we have // paid off the tokens, any more debt is a problem for future blockingGrab's! current -= tokens; } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/d9176a889a40193dc9bac8b67a53390fd5eb9f0f/TokenBucket.java/buggy/src/freenet/support/TokenBucket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
3443,
8728,
14571,
70,
12,
5748,
2430,
13,
288,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
8728,
11086,
30,
13773,
7860,
1769,
202,
202,
1289,
5157,
5621,
202,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
918,
3443,
8728,
14571,
70,
12,
5748,
2430,
13,
288,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
8728,
11086,
30,
13773,
7860,
1769,
202,
202,
1289,
5157,
5621,
202,
2... |
} catch ( DOMException e ) { pt = e.getProblem(); } } | } } catch ( DOMException e ) { pt = e.getProblem(); } | private static IType createType( IType returnType, ICPPASTFunctionDeclarator fnDtor ){ IASTParameterDeclaration [] params = fnDtor.getParameters(); IType [] pTypes = new IType [ params.length ]; IType pt = null; for( int i = 0; i < params.length; i++ ){ IASTDeclSpecifier pDeclSpec = params[i].getDeclSpecifier(); IASTDeclarator pDtor = params[i].getDeclarator(); //8.3.5-3 //Any cv-qualifier modifying a parameter type is deleted. //so only create the base type from the declspec and not the qualifiers pt = getBaseType( pDeclSpec ); pt = createType( pt, pDtor ); //any parameter of type array of T is adjusted to be pointer to T if( pt instanceof IArrayType ){ IArrayType at = (IArrayType) pt; try { pt = new CPPPointerType( at.getType() ); } catch ( DOMException e ) { pt = e.getProblem(); } } //any parameter to type function returning T is adjusted to be pointer to function if( pt instanceof IFunctionType ){ pt = new CPPPointerType( pt ); } pTypes[i] = pt; } IASTName name = fnDtor.getName(); if( name instanceof ICPPASTQualifiedName ){ IASTName [] ns = ((ICPPASTQualifiedName)name).getNames(); name = ns[ ns.length - 1 ]; } if( name instanceof ICPPASTConversionName ){ returnType = createType( ((ICPPASTConversionName)name).getTypeId() ); } else { returnType = getPointerTypes( returnType, fnDtor ); } IType type = new CPPFunctionType( returnType, pTypes, fnDtor.isConst(), fnDtor.isVolatile() ); IASTDeclarator nested = fnDtor.getNestedDeclarator(); if( nested != null ) { return createType( type, nested ); } return type; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ab07486e81f257bd206c7d67743140ef2ab398a6/CPPVisitor.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
467,
559,
752,
559,
12,
467,
559,
9424,
16,
467,
4258,
4066,
882,
2083,
31419,
2295,
40,
13039,
262,
95,
202,
565,
467,
9053,
1662,
6094,
5378,
859,
273,
2295,
40,
13039... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
559,
752,
559,
12,
467,
559,
9424,
16,
467,
4258,
4066,
882,
2083,
31419,
2295,
40,
13039,
262,
95,
202,
565,
467,
9053,
1662,
6094,
5378,
859,
273,
2295,
40,
13039... |
percentage = | String percentage = | public SimpleWebTable createFacilityStatusTable(Date startDate, Date endDate) { SimpleWebTable table = new SimpleWebTable(); List<OnmsMonitoringLocationDefinition> locationDefinitions = m_locationMonitorDao.findAllMonitoringLocationDefinitions(); Collection<OnmsApplication> applications = m_applicationDao.findAll(); if (applications.size() == 0) { throw new IllegalArgumentException("there are no applications"); } List<OnmsApplication> sortedApplications = new ArrayList<OnmsApplication>(applications); Collections.sort(sortedApplications, new Comparator<OnmsApplication>(){ public int compare(OnmsApplication o1, OnmsApplication o2) { return o1.getName().compareTo(o2.getName()); } }); Collection<OnmsLocationSpecificStatus> mostRecentStatuses = m_locationMonitorDao.getAllMostRecentStatusChanges(); Collection<OnmsLocationSpecificStatus> statusesWithinPeriod = m_locationMonitorDao.getStatusChangesBetween(startDate, endDate); Collection<OnmsLocationSpecificStatus> statusesBeforePeriod = m_locationMonitorDao.getAllStatusChangesAt(startDate); Collection<OnmsLocationSpecificStatus> statusesPeriod = new HashSet<OnmsLocationSpecificStatus>(); statusesPeriod.addAll(statusesBeforePeriod); statusesPeriod.addAll(statusesWithinPeriod); table.setTitle("Distributed Poller Status Summary"); table.addColumn("Area", ""); table.addColumn("Location", ""); for (OnmsApplication application : sortedApplications) { table.addColumn(application.getName(), ""); } for (OnmsMonitoringLocationDefinition locationDefinition : locationDefinitions) { Collection<OnmsLocationMonitor> monitors = m_locationMonitorDao.findByLocationDefinition(locationDefinition); table.newRow(); table.addCell(locationDefinition.getArea(), ""); table.addCell(locationDefinition.getName(), ""); for (OnmsApplication application : sortedApplications) { Collection<OnmsMonitoredService> memberServices = m_monitoredServiceDao.findByApplication(application); String status = calculateCurrentStatus(monitors, memberServices, mostRecentStatuses); Set<OnmsLocationSpecificStatus> selectedStatuses = filterStatus(statusesPeriod, monitors, memberServices); String percentage; if (selectedStatuses.size() > 0) { percentage = calculatePercentageUptime(memberServices, statusesPeriod, startDate, endDate); table.addCell(percentage, status, createHistoryPageUrl(locationDefinition, application)); } else { table.addCell("No data", status); } } } return table; } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/fb1212b5a412ed04a727729e8e2e1b20a0875ace/DefaultDistributedStatusService.java/clean/opennms-webapp/src/main/java/org/opennms/web/svclayer/support/DefaultDistributedStatusService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4477,
4079,
1388,
752,
6645,
1889,
1482,
1388,
12,
1626,
12572,
16,
5411,
2167,
13202,
13,
288,
3639,
4477,
4079,
1388,
1014,
273,
394,
4477,
4079,
1388,
5621,
7734,
987,
32,
1398,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4477,
4079,
1388,
752,
6645,
1889,
1482,
1388,
12,
1626,
12572,
16,
5411,
2167,
13202,
13,
288,
3639,
4477,
4079,
1388,
1014,
273,
394,
4477,
4079,
1388,
5621,
7734,
987,
32,
1398,
... |
DataHelper.loadProps(hosts, f); | DataHelper.loadProps(hosts, f, true); | public Destination lookup(String hostname) { // check the list each time, reloading the file on each // lookup List filenames = getFilenames(); for (int i = 0; i < filenames.size(); i++) { String hostsfile = (String)filenames.get(i); Properties hosts = new Properties(); try { File f = new File(hostsfile); if ( (f.exists()) && (f.canRead()) ) { DataHelper.loadProps(hosts, f); String key = hosts.getProperty(hostname); if ( (key != null) && (key.trim().length() > 0) ) { return lookupBase64(key); } } else { _log.warn("Hosts file " + hostsfile + " does not exist."); } } catch (Exception ioe) { _log.error("Error loading hosts file " + hostsfile, ioe); } // not found, continue to the next file } // If we can't find name in any of the hosts files, // assume it's a key. return lookupBase64(hostname); } | 45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/33d57dd545b22914cf2886a2e4e6b2aa9f6541d7/HostsTxtNamingService.java/buggy/core/java/src/net/i2p/client/naming/HostsTxtNamingService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10691,
3689,
12,
780,
5199,
13,
288,
3639,
368,
866,
326,
666,
1517,
813,
16,
7749,
310,
326,
585,
603,
1517,
3639,
368,
3689,
7734,
987,
9066,
273,
2812,
330,
6809,
5621,
3639,
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,
10691,
3689,
12,
780,
5199,
13,
288,
3639,
368,
866,
326,
666,
1517,
813,
16,
7749,
310,
326,
585,
603,
1517,
3639,
368,
3689,
7734,
987,
9066,
273,
2812,
330,
6809,
5621,
3639,
3... |
Enumeration enum = VFSManager.getFilesystems(); | Enumeration e = VFSManager.getFilesystems(); | private void createPopupMenu() { if(popup != null) return; popup = new JPopupMenu(); ActionHandler actionHandler = new ActionHandler(); if(getMode() == BROWSER) { popup.add(GUIUtilities.loadMenuItem("plugin-manager",false)); popup.add(GUIUtilities.loadMenuItem("plugin-options",false)); popup.addSeparator(); } else /* we're in a modal dialog */; ArrayList vec = new ArrayList(); //{{{ old API Enumeration enum = VFSManager.getFilesystems(); while(enum.hasMoreElements()) { VFS vfs = (VFS)enum.nextElement(); if((vfs.getCapabilities() & VFS.BROWSE_CAP) == 0) continue; JMenuItem menuItem = new JMenuItem(jEdit.getProperty( "vfs." + vfs.getName() + ".label")); menuItem.setActionCommand(vfs.getName()); menuItem.addActionListener(actionHandler); vec.add(menuItem); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/6ea43ab3e4b9f4b366d1e4979bf597ffe8b3f55a/VFSBrowser.java/buggy/org/gjt/sp/jedit/browser/VFSBrowser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
752,
13770,
4599,
1435,
202,
202,
95,
1082,
202,
430,
12,
16086,
480,
446,
13,
9506,
202,
2463,
31,
1082,
202,
16086,
273,
394,
804,
13770,
4599,
5621,
1082,
202,
1803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1152,
918,
752,
13770,
4599,
1435,
202,
202,
95,
1082,
202,
430,
12,
16086,
480,
446,
13,
9506,
202,
2463,
31,
1082,
202,
16086,
273,
394,
804,
13770,
4599,
5621,
1082,
202,
1803,
... |
public RelationshipBG(NewRelationshipPG pg, HasRelationships hasRelationships) { init(pg, hasRelationships); | public RelationshipBG() { | public RelationshipBG(NewRelationshipPG pg, HasRelationships hasRelationships) { init(pg, hasRelationships); } | 7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/20150e530345da92f0d38637ad221335f0cf4910/RelationshipBG.java/clean/core/src/org/cougaar/domain/planning/ldm/asset/RelationshipBG.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
15463,
30098,
12,
1908,
8180,
18679,
7184,
16,
7682,
4393,
17185,
711,
17185,
13,
288,
565,
1208,
12,
8365,
16,
711,
17185,
1769,
225,
289,
2,
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,
15463,
30098,
12,
1908,
8180,
18679,
7184,
16,
7682,
4393,
17185,
711,
17185,
13,
288,
565,
1208,
12,
8365,
16,
711,
17185,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
public void setUseServerPrepare(boolean flag); | public void setUseServerPrepare(boolean flag) throws SQLException; | public void setUseServerPrepare(boolean flag); | 49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/1109900a6005730595d9db53263cc42e13efced4/PGStatement.java/buggy/org/postgresql/PGStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24581,
2081,
7543,
12,
6494,
2982,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24581,
2081,
7543,
12,
6494,
2982,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
public Iterator referencedExpressions() { | public Iterator<Expression> referencedExpressions() { | public Iterator referencedExpressions() { return referencedExpressions.iterator(); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/d2099a80db3be5ab02b59d09dc70c99c8b1778b4/ObjectNode.java/clean/modules/beans/src/main/java/org/apache/harmony/beans/ObjectNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
32,
2300,
34,
8042,
8927,
1435,
288,
3639,
327,
8042,
8927,
18,
9838,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4498,
32,
2300,
34,
8042,
8927,
1435,
288,
3639,
327,
8042,
8927,
18,
9838,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return projectDocs; | return selectedDocs; | public List<OpenDefinitionsDocument> getNonProjectDocuments() { List<OpenDefinitionsDocument> allDocs = getOpenDefinitionsDocuments(); List<OpenDefinitionsDocument> projectDocs = new LinkedList<OpenDefinitionsDocument>(); for (OpenDefinitionsDocument tempDoc : allDocs) { if (!tempDoc.isInProjectPath()) projectDocs.add(tempDoc); } return projectDocs; } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/ac147bfd47d7e558bfd3f0afa39ad091a35b6f6f/AbstractGlobalModel.java/buggy/drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
987,
32,
3678,
7130,
2519,
34,
28207,
4109,
12922,
1435,
288,
565,
987,
32,
3678,
7130,
2519,
34,
777,
12656,
273,
29607,
7130,
12922,
5621,
565,
987,
32,
3678,
7130,
2519,
34,
1984... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
32,
3678,
7130,
2519,
34,
28207,
4109,
12922,
1435,
288,
565,
987,
32,
3678,
7130,
2519,
34,
777,
12656,
273,
29607,
7130,
12922,
5621,
565,
987,
32,
3678,
7130,
2519,
34,
1984... |
OptionGroup ruleBreakers = addGroup("Optional Rules (unofficial)"); addOption(ruleBreakers, "no_tac", "No through-armor criticals", "If checked, rolls of '2' on hit location will only result in a torso hit, and no critical roll. Only applies to mechs. Supercedes the floating criticals option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_immobile_vehicles", "Vehicles not immobilized by crits", "If checked, vehicles with a drive or engine hit will not be counted as 'immobile' for purposes of determining to-hit numbers.\n\nUnchecked by default.", false); addOption(ruleBreakers, "vehicles_can_eject", "Vehicles can be abandoned", "If checked, vehicle crews can leave their unit (effectively removing it from the game).\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_even", "Infantry don't count for movement initiative", "If checked, Infantry units no longer count towards the initiative for the player's team in the movement phase, unless that team has no other units. Instead, their moves are distributed 'evenly' throughout the turn. The move order of Meks and Vehicles ignores the presence of Infantry. The order of the fire phase is unaffected.\n\nMutually exclusive with \"multiple Infantry for every Mek or Vehicle\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_deploy_even", "Infantry don't count for deployment initiative", "If checked, Infantry units no longer count towards the initiative for the player's team in the deployment phase, unless that team has no other units. Instead, their deployments are distributed 'evenly' throughout the turn. The deployment order of Meks and Vehicles ignores the presence of Infantry.\n\nThe above option, \"Infantry move after Meks and Vehicles\" must also be checked to use this option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_later", "Infantry moves after that players other units", "If checked, each player must move all their other units before they move their Infantry. If \"Protomechs move after that team's other units\" is also checked, then Infantry and Protomechs are lumped together into the same category.\n\nMutually exclusive with \"multiple Infantry for every Mek or Vehicle\" and \"Infantry don't count for movement initiative\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_multi", "move multiple Infantry for every Mek or Vehicle", "If checked, multiple infantry units will have to move in place of a single Mek or Vehicle. Set the number per mech in the appropriate Game Option. If there are less than above units remaining, they all must move. The move order includes the presence of Infantry.\n\nMutually exclusive with \"Infantry move after Meks and Vehicles\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_even", "Protomechs don't count for movement initiative", "If checked, Protomech units no longer count towards the initiative for the player's team in the movement phase, unless that team has no other units. Instead, their moves are distributed 'evenly' throughout the turn. The move order of Meks and Vehicles ignores the presence of Protomechs. The order of the fire phase is unaffected.\n\nMutually exclusive with \"multiple Protomechs for every Mek or Vehicle\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_deploy_even", "Protomechs don't count for deployment initiative", "If checked, Protomech units no longer count towards the initiative for the player's team in the deployment phase, unless that team has no other units. Instead, their deployments are distributed 'evenly' throughout the turn. The deployment order of Meks and Vehicles ignores the presence of Protomechs.\n\nThe above option, \"Protomechs move after Meks and Vehicles\" must also be checked to use this option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_later", "Protomechs move after that players other units", "If checked, each player must move all their other units before they move their Protomechs. If \"Protomechs moves after that team's other units\" is also checked, then Infantry and Protomechs are lumped together into the same category.\n\nMutually exclusive with \"multiple Protomechs for every Mek or Vehicle\" and \"Protomechs don't count for movement initiative\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_multi", "move multiple Protomechs for every Mek or Vehicle", "If checked, multiple protomechs will have to move in place of a single Mek or Vehicle. Set the number per mech in the appropriate Game Option. If there are less than above specified protos remaining, they all must move. The move order includes the presence of Protomechs.\n\nMutually exclusive with \"Protomechs move after Meks and Vehicles\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_proto_move_multi", "number of Infantry/Protomech to move per Mek", "The number of Infantry units/Protomechs that have to move for every Mek or Vehicle, if the inf_move_multi or the protos_move_multi option is selected.\n\nDefault of 3.", 3); addOption(ruleBreakers, "blind_drop", "Blind Drop", "If checked, the configuration of a Mech won't be shown in the Chatroom to your opponents.", false); addOption(ruleBreakers, "real_blind_drop", "Real Blind Drop", "If checked, only own units are displayed. Defaults to false.", false); addOption(ruleBreakers, "clan_ignore_eq_limits", "Ignore Clan Ammo Limitations", "If checked, Clan units can use ammo normally limited to IS units only; for example, Thunder-Augmented, Thunder-Inferno, and Thunder-Active LRM rounds.", false); addOption(ruleBreakers, "no_clan_physical", "No physical attacks for the clans", "If checked, clan Meks may not make physical attacks.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_hover_charge", "No charge attacks for Hover vehicles", "If checked, Hover vehicles may not make rams/charges.\n\nUnchecked by default.", false); addOption(ruleBreakers, "woods_burn_down", "Woods have a chance to burn down", "If checked, woods will burn down as if cleared on a roll of 11+.\n\nUnchecked by default.", false); addOption(ruleBreakers, "vehicles_safe_from_infernos", "Vehicles may not be the target of an Inferno missile attack.", "If checked, Vehicles cannot be the target of an Inferno SRM attack.\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_safe_from_infernos", "Protomechs may not be the target of an Inferno missile attack.", "If checked, Protomechs cannot be the target of an Inferno SRM attack.\n\nUnchecked by default.", false); addOption(ruleBreakers, "lobby_ammo_dump", "Allow Ammo Dumping in the Lobby", "If checked, Players may dump their Mech's ammo before the game starts.\n\nUnchecked by default.", false); addOption(ruleBreakers, "set_arty_player_homeedge", "Automatically set artillery home edge", "If checked, all of the players' artillery units will have their homeedge set to the deployment edge of the player,\nNW and NE are North, SW and SE are South.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_premove_vibra", "Do not damage Mek by Vibrabomb if it has not yet moved.", "If checked, vibrabombs that explode will not damage Meks that have not yet finished their move.\n\nUnchecked by default.", false); addOption(ruleBreakers, "auto_spot", "Any unit that does not do anything special is a spotter.", "If checked, units that don't fire weapons/search for clubs/etc automatically spot for indirect LRMs.\n\nUnchecked by default.", false); | OptionGroup ruleBreakers = addGroup("ruleBreakers"); addOption(ruleBreakers,"no_tac", false); addOption(ruleBreakers,"no_immobile_vehicles", false); addOption(ruleBreakers,"vehicles_can_eject", false); addOption(ruleBreakers,"inf_move_even", false); addOption(ruleBreakers,"inf_deploy_even", false); addOption(ruleBreakers,"inf_move_later", false); addOption(ruleBreakers,"inf_move_multi", false); addOption(ruleBreakers,"protos_move_even", false); addOption(ruleBreakers,"protos_deploy_even", false); addOption(ruleBreakers,"protos_move_later", false); addOption(ruleBreakers,"protos_move_multi", false); addOption(ruleBreakers,"inf_proto_move_multi", 3); addOption(ruleBreakers,"blind_drop", false); addOption(ruleBreakers,"real_blind_drop", false); addOption(ruleBreakers,"clan_ignore_eq_limits", false); addOption(ruleBreakers,"no_clan_physical", false); addOption(ruleBreakers,"no_hover_charge", false); addOption(ruleBreakers,"woods_burn_down", false); addOption(ruleBreakers,"vehicles_safe_from_infernos", false); addOption(ruleBreakers,"protos_safe_from_infernos", false); addOption(ruleBreakers,"lobby_ammo_dump", false); addOption(ruleBreakers,"set_arty_player_homeedge", false); addOption(ruleBreakers,"no_premove_vibra", false); addOption(ruleBreakers,"auto_spot", false); | public void initialize() { OptionGroup base = addGroup("Base Options"); addOption(base, "friendly_fire", "Friendly fire", "If checked, the game considers mechs owned by a player, or on the same team as a player, as valid targets.\n\nDefaults to checked, but unchecks when a second player joins the server.", true); addOption(base, "skip_ineligable_movement", "Skip ineligable during movement", "If checked, the game will skip a unit during the movement phase if it is immobile or otherwise inactive.\n\nUnchecked by default.", false); addOption(base, "skip_ineligable_firing", "Skip ineligable during firing", "If checked, the game will skip a unit during the firing phase if it is inactive.\n\nUnchecked by default.", false); addOption(base, "skip_ineligable_physical", "Skip ineligable during physical", "If checked, the game will skip a unit during the physical phase if no attacks are possible or there are no valid targets.\n\nChecked by default.", true); addOption(base, "push_off_board", "Allow pushing off the map", "This options allows a mech to be pushed off the map and out of the game by push, charge or DFA attacks.\n\nChecked by default.", true); addOption(base, "check_victory", "Check for victory", "If checked, the server will enter the victory phase at the end of any turn where victory conditions are met. Even if unchecked or conditions are not met, server admins can force victory with the /victory command.\n\nDefaults to checked.", true); addOption(base, "rng_type", "RNG Type", "Note: any type other than 0 or 1 is completely unofficial.\n\nValid types:\n0 - SunRandom: Sun regular RNG\n1 - CryptoRandom: Java crypto-strength RNG\n2 - Pool36Random: Pool of 36 values, randomly shuffled\n\nDefaults to 1.", 1); addOption(base, "team_initiative", "Teams roll initiative", "When checked, teams roll initiative as one group. This team initative is used to order the units according to the normal method. Player order on a team is determined by their own initiative.\n\nChecked by default", true); addOption(base, "is_eq_limits", "Ammo & Equipment Limits", "If checked, Inner Sphere units will be limited to ammo & equipment available at their build year. Turning this option off will not remove invalid equipment.\n\nChecked by default", true); addOption(base, "autosave_msg", "Remind on Autosave", "If checked, the server will send a message each time an auto-save is performed.\n\nChecked by default", true); addOption(base, "paranoid_autosave", "Paranoid Autosave", "If checked, the game will auto-save every phase.\n\nUnchecked by default", false); OptionGroup level2 = addGroup("Optional Rules (Level 2)"); addOption(level2, "flamer_heat", "Flamers can deal heat instead of damage", "If checked, flamers can increase the heat of their target by 2 instead of dealing 2 damage.\n\nChecked by default.", true); addOption(level2, "fire", "Fire and smoke", "If checked, fires may be set accidentally or intentionally.\n\nChecked by default.", true); addOption(level2, "indirect_fire", "Indirect fire", "If checked, LRMs may be fire indirectly, and players may choose to spot for indirect fire instead of attacking.\n\nChecked by default.", true); addOption(level2, "minefields", "Minefields", "If checked, minefields can be used.\n\nChecked by default.", true); addOption(level2, "temperature", "Temperature", "The temperature the game takes place at, for use with the Extreme Temperatures rule.\n\nDefaults to 25 degrees Celsius, thus having no effect.", 25); addOption(level2, "gravity", "Gravity", "The gravity of the world the game takes place at, for use with the High/Low Gravity rule.\n\nDefaults to 1 G, thus having no effect.", (float)1.0); addOption(level2, "vacuum", "Vacuum", "If checked, the game takes place in Vacuum.\n\nUnchecked by default.", false); addOption(level2, "night_battle", "Night Battle", "If checked, the game takes place at night (+2 to-hit-modifier to all attacks unless attacker or attacked unit are using spotlights. Defaults to off.", false); OptionGroup level3 = addGroup("Optional Rules (Level 3)"); addOption(level3, "double_blind", "Double blind", "If checked, enemy units will only be visible if they are in line of sight of one or more of your units.\n\nUnchecked by default.", false); addOption(level3, "team_vision", "Teams share vision", "If checked, teams will share vision in double-blind mode. Only valid in double-blind mode.\n\nChecked by default.", true); addOption(level3, "floating_crits", "Through-armor criticals will 'float'", "If checked, rolls of '2' on hit location will result in a new location being rolled for a critical hit, instead of just hitting the local torso.\n\nUnchecked by default.", false); addOption(level3, "engine_explosions", "MaxTech engine explosions", "If checked, any time a mech takes 2 or more engine crits in one round, a roll of '12' will cause a cascading engine explosion.", false); addOption(level3, "pilot_advantages", "MaxTech pilot advantages", "If checked, players can add additional advantages to their pilots through the 'configure mech' window.", false); addOption(level3, "maxtech_physical_BTH", "MaxTech physical BTHs", "If checked, BTHs for physical attacks will use MaxTech levels. These levels take into account the piloting skill of the attacking unit.", false); addOption(level3, "maxtech_physical_psr", "MaxTech physical PSR weight difference", "If checked, after being kicked or pushed the PSR is modified by the weight classes of the two mechs. The PSR is modified by 1 point per weight class difference. The difference is added to the PSR if the attacker is heavier or subtracted if the attacker is lighter.", false); addOption(level3, "maxtech_round_damage", "MaxTech damage per round", "If checked, units will have +1 to their piloting skill roll for every 20 damage taken, not just the first damage. Also, BTH is altered by weight class. Lights get +1 to BTH where as assaults get -2. Mediums and heavies are in between.", false); addOption(level3, "maxtech_prone_fire", "MaxTech firing while prone", "If checked, mechs that are prone can fire if they are missing one arm. Standard rules disallow firing when prone and missing an arm. All weapons are +1 BTH and weapons mounted in propping arm can not be fired.", false); addOption(level3, "maxtech_target_modifiers", "MaxTech target movement modifiers", "If checked, the target movement modifiers table is enhanced by 3 additional steps (14-18 hexes => +5, 19-24 hexes => +6 25+ hexes => +7.", false); addOption(level3, "maxtech_leg_damage", "MaxTech Leg Damage Rule", "If checked, hip criticals are cummulative with other damage to legs, but reduce movement by 2 instead of halving. Destroying both hips does not reduce MPs to zero.", false); addOption(level3, "maxtech_fire", "MaxTech Fire/Smoke Rules", "If checked, fires create smoke that drifts and dissipates, instead of remaining static. In addition, smoke is split into light and heavy varieties.", false); addOption(level3, "maxtech_range", "MaxTech Extreme Range Rules", "If checked, Weapons have an extreme range bracket past their long range distance.", false); addOption(level3, "maxtech_LOS1", "MaxTech Diagramming Line of Sight Rules", "If checked, LOS will be calculated using the Diagramming LOS rules from MaxTech revised, page 22", false); addOption(level3, "maxtech_altdmg", "MaxTech Altered Energy Weapons Damage", "If checked, the damage inflicted by energy weapons (Laser, Flamer, PPC) is altered as follows: Half damage (rounded up) at extreme range, -1 damage at long range, +1 damage at range <= 1. Defaults to false.", false); addOption(level3, "maxtech_mslhitpen", "MaxTech Missile Hit Penalties", "If checked, apply the following penalties to the roll to determine number of missiles hit: +1 (Range <= 1 hex); 0 (Short range); -1 (Medium range); -2 (Long and Extreme range). Does not apply to Streak SRMs. If the roll is increased above 12, all missiles hit. If the roll is reduced below 2, only 1 missile hits.", false); addOption(level3, "maxtech_ppc_inhibitors", "MaxTech PPC Field Inhibitor Disengage", "If checked, the field inhibitor of a PPC can be disengaged to disregard the minimum range modifiers. However, after each shot, there is a chance that the PPC is destroyed in the process and the IS of the PPC's location takes 10 points of damage. The chance for this depends on range, roll 2d6 to avoid on: 3+ for >=3 hex range; 6+ for 2 hex range and 10+ for 1 hex range. Defaults to off.", false); addOption(level3, "maxtech_charge_damage", "MaxTech Charge Damage", "If checked, the attacker in a charge will receive damage proportional to the distance of the charge. Defaults to off.", false); addOption(level3, "maxtech_glancing_blows", "MaxTech Glancing Blows", "If checked, attacks that roll for to-hit and roll exactly the target number required deal only reduced damage: Normal attacks deal only half damage, while missile attacks get a -2 for the roll on the # of missiles roll. If the roll is reduced below 2, only 1 missile hits. Additionally, if a glancing blow deals a critical hit, apply a -2 modifier to the check. Attacks that do not roll for attack (Falling damage, ...), attacks that deal no damage (TAG), and Streak SRMs are unaffected. Defaults to false.", false); addOption(level3, "maxtech_burst", "MaxTech Burst Fire MGs", "If checked, MGs may use burst fire rules: They inflict 1D6 of damage, create an equal amount of heat and use triple the amount of ammunition. Click the 'Configure Unit' button to configure MGs. Defaults to false.", false); OptionGroup ruleBreakers = addGroup("Optional Rules (unofficial)"); addOption(ruleBreakers, "no_tac", "No through-armor criticals", "If checked, rolls of '2' on hit location will only result in a torso hit, and no critical roll. Only applies to mechs. Supercedes the floating criticals option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_immobile_vehicles", "Vehicles not immobilized by crits", "If checked, vehicles with a drive or engine hit will not be counted as 'immobile' for purposes of determining to-hit numbers.\n\nUnchecked by default.", false); addOption(ruleBreakers, "vehicles_can_eject", "Vehicles can be abandoned", "If checked, vehicle crews can leave their unit (effectively removing it from the game).\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_even", "Infantry don't count for movement initiative", "If checked, Infantry units no longer count towards the initiative for the player's team in the movement phase, unless that team has no other units. Instead, their moves are distributed 'evenly' throughout the turn. The move order of Meks and Vehicles ignores the presence of Infantry. The order of the fire phase is unaffected.\n\nMutually exclusive with \"multiple Infantry for every Mek or Vehicle\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_deploy_even", "Infantry don't count for deployment initiative", "If checked, Infantry units no longer count towards the initiative for the player's team in the deployment phase, unless that team has no other units. Instead, their deployments are distributed 'evenly' throughout the turn. The deployment order of Meks and Vehicles ignores the presence of Infantry.\n\nThe above option, \"Infantry move after Meks and Vehicles\" must also be checked to use this option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_later", "Infantry moves after that players other units", "If checked, each player must move all their other units before they move their Infantry. If \"Protomechs move after that team's other units\" is also checked, then Infantry and Protomechs are lumped together into the same category.\n\nMutually exclusive with \"multiple Infantry for every Mek or Vehicle\" and \"Infantry don't count for movement initiative\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_move_multi", "move multiple Infantry for every Mek or Vehicle", "If checked, multiple infantry units will have to move in place of a single Mek or Vehicle. Set the number per mech in the appropriate Game Option. If there are less than above units remaining, they all must move. The move order includes the presence of Infantry.\n\nMutually exclusive with \"Infantry move after Meks and Vehicles\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_even", "Protomechs don't count for movement initiative", "If checked, Protomech units no longer count towards the initiative for the player's team in the movement phase, unless that team has no other units. Instead, their moves are distributed 'evenly' throughout the turn. The move order of Meks and Vehicles ignores the presence of Protomechs. The order of the fire phase is unaffected.\n\nMutually exclusive with \"multiple Protomechs for every Mek or Vehicle\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_deploy_even", "Protomechs don't count for deployment initiative", "If checked, Protomech units no longer count towards the initiative for the player's team in the deployment phase, unless that team has no other units. Instead, their deployments are distributed 'evenly' throughout the turn. The deployment order of Meks and Vehicles ignores the presence of Protomechs.\n\nThe above option, \"Protomechs move after Meks and Vehicles\" must also be checked to use this option.\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_later", "Protomechs move after that players other units", "If checked, each player must move all their other units before they move their Protomechs. If \"Protomechs moves after that team's other units\" is also checked, then Infantry and Protomechs are lumped together into the same category.\n\nMutually exclusive with \"multiple Protomechs for every Mek or Vehicle\" and \"Protomechs don't count for movement initiative\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_move_multi", "move multiple Protomechs for every Mek or Vehicle", "If checked, multiple protomechs will have to move in place of a single Mek or Vehicle. Set the number per mech in the appropriate Game Option. If there are less than above specified protos remaining, they all must move. The move order includes the presence of Protomechs.\n\nMutually exclusive with \"Protomechs move after Meks and Vehicles\".\n\nUnchecked by default.", false); addOption(ruleBreakers, "inf_proto_move_multi", "number of Infantry/Protomech to move per Mek", "The number of Infantry units/Protomechs that have to move for every Mek or Vehicle, if the inf_move_multi or the protos_move_multi option is selected.\n\nDefault of 3.", 3); addOption(ruleBreakers, "blind_drop", "Blind Drop", "If checked, the configuration of a Mech won't be shown in the Chatroom to your opponents.", false); addOption(ruleBreakers, "real_blind_drop", "Real Blind Drop", "If checked, only own units are displayed. Defaults to false.", false); addOption(ruleBreakers, "clan_ignore_eq_limits", "Ignore Clan Ammo Limitations", "If checked, Clan units can use ammo normally limited to IS units only; for example, Thunder-Augmented, Thunder-Inferno, and Thunder-Active LRM rounds.", false); addOption(ruleBreakers, "no_clan_physical", "No physical attacks for the clans", "If checked, clan Meks may not make physical attacks.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_hover_charge", "No charge attacks for Hover vehicles", "If checked, Hover vehicles may not make rams/charges.\n\nUnchecked by default.", false); addOption(ruleBreakers, "woods_burn_down", "Woods have a chance to burn down", "If checked, woods will burn down as if cleared on a roll of 11+.\n\nUnchecked by default.", false); addOption(ruleBreakers, "vehicles_safe_from_infernos", "Vehicles may not be the target of an Inferno missile attack.", "If checked, Vehicles cannot be the target of an Inferno SRM attack.\n\nUnchecked by default.", false); addOption(ruleBreakers, "protos_safe_from_infernos", "Protomechs may not be the target of an Inferno missile attack.", "If checked, Protomechs cannot be the target of an Inferno SRM attack.\n\nUnchecked by default.", false); addOption(ruleBreakers, "lobby_ammo_dump", "Allow Ammo Dumping in the Lobby", "If checked, Players may dump their Mech's ammo before the game starts.\n\nUnchecked by default.", false); addOption(ruleBreakers, "set_arty_player_homeedge", "Automatically set artillery home edge", "If checked, all of the players' artillery units will have their homeedge set to the deployment edge of the player,\nNW and NE are North, SW and SE are South.\n\nUnchecked by default.", false); addOption(ruleBreakers, "no_premove_vibra", "Do not damage Mek by Vibrabomb if it has not yet moved.", "If checked, vibrabombs that explode will not damage Meks that have not yet finished their move.\n\nUnchecked by default.", false); addOption(ruleBreakers, "auto_spot", "Any unit that does not do anything special is a spotter.", "If checked, units that don't fire weapons/search for clubs/etc automatically spot for indirect LRMs.\n\nUnchecked by default.", false); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/aa63d9644a86a5747ea651d09d565d23866c93fc/GameOptions.java/buggy/megamek/src/megamek/common/options/GameOptions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1435,
288,
3639,
2698,
1114,
1026,
273,
18899,
2932,
2171,
5087,
8863,
3639,
12966,
12,
1969,
16,
315,
29111,
67,
12179,
3113,
315,
19730,
4452,
3113,
315,
2047,
5950,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1435,
288,
3639,
2698,
1114,
1026,
273,
18899,
2932,
2171,
5087,
8863,
3639,
12966,
12,
1969,
16,
315,
29111,
67,
12179,
3113,
315,
19730,
4452,
3113,
315,
2047,
5950,
16,
... |
return binaryInputStream.markSupported(); } | return binaryInputStream.markSupported(); } | public boolean markSupported() { return binaryInputStream.markSupported(); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/9ab36fe5be3632bbd1703a025618a585f0db4a57/EXTDTAInputStream.java/clean/java/drda/org/apache/derby/impl/drda/EXTDTAInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2267,
7223,
1435,
288,
202,
202,
2463,
3112,
4348,
18,
3355,
7223,
5621,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
2267,
7223,
1435,
288,
202,
202,
2463,
3112,
4348,
18,
3355,
7223,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
AST __t1425 = _t; | AST __t1410 = _t; | public final void argfunc(AST _t) throws RecognitionException { AST argfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AACBIT: { AST __t1411 = _t; AST tmp344_AST_in = (AST)_t; match(_t,AACBIT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1411; _t = _t.getNextSibling(); break; } case AAMSG: { AST __t1412 = _t; AST tmp345_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1412; _t = _t.getNextSibling(); break; } case ABSOLUTE: { AST __t1413 = _t; AST tmp346_AST_in = (AST)_t; match(_t,ABSOLUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1413; _t = _t.getNextSibling(); break; } case ALIAS: { AST __t1414 = _t; AST tmp347_AST_in = (AST)_t; match(_t,ALIAS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1414; _t = _t.getNextSibling(); break; } case ASC: { AST __t1415 = _t; AST tmp348_AST_in = (AST)_t; match(_t,ASC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1415; _t = _t.getNextSibling(); break; } case BASE64DECODE: { AST __t1416 = _t; AST tmp349_AST_in = (AST)_t; match(_t,BASE64DECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1416; _t = _t.getNextSibling(); break; } case BASE64ENCODE: { AST __t1417 = _t; AST tmp350_AST_in = (AST)_t; match(_t,BASE64ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1417; _t = _t.getNextSibling(); break; } case CANDO: { AST __t1418 = _t; AST tmp351_AST_in = (AST)_t; match(_t,CANDO); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1418; _t = _t.getNextSibling(); break; } case CANQUERY: { AST __t1419 = _t; AST tmp352_AST_in = (AST)_t; match(_t,CANQUERY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1419; _t = _t.getNextSibling(); break; } case CANSET: { AST __t1420 = _t; AST tmp353_AST_in = (AST)_t; match(_t,CANSET); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1420; _t = _t.getNextSibling(); break; } case CAPS: { AST __t1421 = _t; AST tmp354_AST_in = (AST)_t; match(_t,CAPS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1421; _t = _t.getNextSibling(); break; } case CHR: { AST __t1422 = _t; AST tmp355_AST_in = (AST)_t; match(_t,CHR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1422; _t = _t.getNextSibling(); break; } case CODEPAGECONVERT: { AST __t1423 = _t; AST tmp356_AST_in = (AST)_t; match(_t,CODEPAGECONVERT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1423; _t = _t.getNextSibling(); break; } case COLLATE: { AST __t1424 = _t; AST tmp357_AST_in = (AST)_t; match(_t,COLLATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1424; _t = _t.getNextSibling(); break; } case COMPARE: { AST __t1425 = _t; AST tmp358_AST_in = (AST)_t; match(_t,COMPARE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1425; _t = _t.getNextSibling(); break; } case CONNECTED: { AST __t1426 = _t; AST tmp359_AST_in = (AST)_t; match(_t,CONNECTED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1426; _t = _t.getNextSibling(); break; } case COUNTOF: { AST __t1427 = _t; AST tmp360_AST_in = (AST)_t; match(_t,COUNTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1427; _t = _t.getNextSibling(); break; } case CURRENTRESULTROW: { AST __t1428 = _t; AST tmp361_AST_in = (AST)_t; match(_t,CURRENTRESULTROW); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1428; _t = _t.getNextSibling(); break; } case DATE: { AST __t1429 = _t; AST tmp362_AST_in = (AST)_t; match(_t,DATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1429; _t = _t.getNextSibling(); break; } case DATETIME: { AST __t1430 = _t; AST tmp363_AST_in = (AST)_t; match(_t,DATETIME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1430; _t = _t.getNextSibling(); break; } case DATETIMETZ: { AST __t1431 = _t; AST tmp364_AST_in = (AST)_t; match(_t,DATETIMETZ); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1431; _t = _t.getNextSibling(); break; } case DAY: { AST __t1432 = _t; AST tmp365_AST_in = (AST)_t; match(_t,DAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1432; _t = _t.getNextSibling(); break; } case DBCODEPAGE: { AST __t1433 = _t; AST tmp366_AST_in = (AST)_t; match(_t,DBCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1433; _t = _t.getNextSibling(); break; } case DBCOLLATION: { AST __t1434 = _t; AST tmp367_AST_in = (AST)_t; match(_t,DBCOLLATION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1434; _t = _t.getNextSibling(); break; } case DBPARAM: { AST __t1435 = _t; AST tmp368_AST_in = (AST)_t; match(_t,DBPARAM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1435; _t = _t.getNextSibling(); break; } case DBRESTRICTIONS: { AST __t1436 = _t; AST tmp369_AST_in = (AST)_t; match(_t,DBRESTRICTIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1436; _t = _t.getNextSibling(); break; } case DBTASKID: { AST __t1437 = _t; AST tmp370_AST_in = (AST)_t; match(_t,DBTASKID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1437; _t = _t.getNextSibling(); break; } case DBTYPE: { AST __t1438 = _t; AST tmp371_AST_in = (AST)_t; match(_t,DBTYPE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1438; _t = _t.getNextSibling(); break; } case DBVERSION: { AST __t1439 = _t; AST tmp372_AST_in = (AST)_t; match(_t,DBVERSION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1439; _t = _t.getNextSibling(); break; } case DECIMAL: { AST __t1440 = _t; AST tmp373_AST_in = (AST)_t; match(_t,DECIMAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1440; _t = _t.getNextSibling(); break; } case DECRYPT: { AST __t1441 = _t; AST tmp374_AST_in = (AST)_t; match(_t,DECRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1441; _t = _t.getNextSibling(); break; } case DYNAMICNEXTVALUE: { AST __t1442 = _t; AST tmp375_AST_in = (AST)_t; match(_t,DYNAMICNEXTVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1442; _t = _t.getNextSibling(); break; } case ENCODE: { AST __t1443 = _t; AST tmp376_AST_in = (AST)_t; match(_t,ENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1443; _t = _t.getNextSibling(); break; } case ENCRYPT: { AST __t1444 = _t; AST tmp377_AST_in = (AST)_t; match(_t,ENCRYPT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1444; _t = _t.getNextSibling(); break; } case EXP: { AST __t1445 = _t; AST tmp378_AST_in = (AST)_t; match(_t,EXP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1445; _t = _t.getNextSibling(); break; } case FILL: { AST __t1446 = _t; AST tmp379_AST_in = (AST)_t; match(_t,FILL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1446; _t = _t.getNextSibling(); break; } case FIRST: { AST __t1447 = _t; AST tmp380_AST_in = (AST)_t; match(_t,FIRST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1447; _t = _t.getNextSibling(); break; } case FIRSTOF: { AST __t1448 = _t; AST tmp381_AST_in = (AST)_t; match(_t,FIRSTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1448; _t = _t.getNextSibling(); break; } case GENERATEPBEKEY: { AST __t1449 = _t; AST tmp382_AST_in = (AST)_t; match(_t,GENERATEPBEKEY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1449; _t = _t.getNextSibling(); break; } case GETBITS: { AST __t1450 = _t; AST tmp383_AST_in = (AST)_t; match(_t,GETBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1450; _t = _t.getNextSibling(); break; } case GETBYTE: { AST __t1451 = _t; AST tmp384_AST_in = (AST)_t; match(_t,GETBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1451; _t = _t.getNextSibling(); break; } case GETBYTEORDER: { AST __t1452 = _t; AST tmp385_AST_in = (AST)_t; match(_t,GETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1452; _t = _t.getNextSibling(); break; } case GETBYTES: { AST __t1453 = _t; AST tmp386_AST_in = (AST)_t; match(_t,GETBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1453; _t = _t.getNextSibling(); break; } case GETCOLLATIONS: { AST __t1454 = _t; AST tmp387_AST_in = (AST)_t; match(_t,GETCOLLATIONS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1454; _t = _t.getNextSibling(); break; } case GETDOUBLE: { AST __t1455 = _t; AST tmp388_AST_in = (AST)_t; match(_t,GETDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1455; _t = _t.getNextSibling(); break; } case GETFLOAT: { AST __t1456 = _t; AST tmp389_AST_in = (AST)_t; match(_t,GETFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1456; _t = _t.getNextSibling(); break; } case GETLICENSE: { AST __t1457 = _t; AST tmp390_AST_in = (AST)_t; match(_t,GETLICENSE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1457; _t = _t.getNextSibling(); break; } case GETLONG: { AST __t1458 = _t; AST tmp391_AST_in = (AST)_t; match(_t,GETLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1458; _t = _t.getNextSibling(); break; } case GETPOINTERVALUE: { AST __t1459 = _t; AST tmp392_AST_in = (AST)_t; match(_t,GETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1459; _t = _t.getNextSibling(); break; } case GETSHORT: { AST __t1460 = _t; AST tmp393_AST_in = (AST)_t; match(_t,GETSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1460; _t = _t.getNextSibling(); break; } case GETSIZE: { AST __t1461 = _t; AST tmp394_AST_in = (AST)_t; match(_t,GETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1461; _t = _t.getNextSibling(); break; } case GETSTRING: { AST __t1462 = _t; AST tmp395_AST_in = (AST)_t; match(_t,GETSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1462; _t = _t.getNextSibling(); break; } case GETUNSIGNEDSHORT: { AST __t1463 = _t; AST tmp396_AST_in = (AST)_t; match(_t,GETUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1463; _t = _t.getNextSibling(); break; } case HEXDECODE: { AST __t1464 = _t; AST tmp397_AST_in = (AST)_t; match(_t,HEXDECODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1464; _t = _t.getNextSibling(); break; } case HEXENCODE: { AST __t1465 = _t; AST tmp398_AST_in = (AST)_t; match(_t,HEXENCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1465; _t = _t.getNextSibling(); break; } case INDEX: { AST __t1466 = _t; AST tmp399_AST_in = (AST)_t; match(_t,INDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1466; _t = _t.getNextSibling(); break; } case INTEGER: { AST __t1467 = _t; AST tmp400_AST_in = (AST)_t; match(_t,INTEGER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1467; _t = _t.getNextSibling(); break; } case INTERVAL: { AST __t1468 = _t; AST tmp401_AST_in = (AST)_t; match(_t,INTERVAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1468; _t = _t.getNextSibling(); break; } case ISCODEPAGEFIXED: { AST __t1469 = _t; AST tmp402_AST_in = (AST)_t; match(_t,ISCODEPAGEFIXED); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1469; _t = _t.getNextSibling(); break; } case ISCOLUMNCODEPAGE: { AST __t1470 = _t; AST tmp403_AST_in = (AST)_t; match(_t,ISCOLUMNCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1470; _t = _t.getNextSibling(); break; } case ISLEADBYTE: { AST __t1471 = _t; AST tmp404_AST_in = (AST)_t; match(_t,ISLEADBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1471; _t = _t.getNextSibling(); break; } case ISODATE: { AST __t1472 = _t; AST tmp405_AST_in = (AST)_t; match(_t,ISODATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1472; _t = _t.getNextSibling(); break; } case KBLABEL: { AST __t1473 = _t; AST tmp406_AST_in = (AST)_t; match(_t,KBLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1473; _t = _t.getNextSibling(); break; } case KEYCODE: { AST __t1474 = _t; AST tmp407_AST_in = (AST)_t; match(_t,KEYCODE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1474; _t = _t.getNextSibling(); break; } case KEYFUNCTION: { AST __t1475 = _t; AST tmp408_AST_in = (AST)_t; match(_t,KEYFUNCTION); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1475; _t = _t.getNextSibling(); break; } case KEYLABEL: { AST __t1476 = _t; AST tmp409_AST_in = (AST)_t; match(_t,KEYLABEL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1476; _t = _t.getNextSibling(); break; } case KEYWORD: { AST __t1477 = _t; AST tmp410_AST_in = (AST)_t; match(_t,KEYWORD); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1477; _t = _t.getNextSibling(); break; } case KEYWORDALL: { AST __t1478 = _t; AST tmp411_AST_in = (AST)_t; match(_t,KEYWORDALL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1478; _t = _t.getNextSibling(); break; } case LAST: { AST __t1479 = _t; AST tmp412_AST_in = (AST)_t; match(_t,LAST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1479; _t = _t.getNextSibling(); break; } case LASTOF: { AST __t1480 = _t; AST tmp413_AST_in = (AST)_t; match(_t,LASTOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1480; _t = _t.getNextSibling(); break; } case LC: { AST __t1481 = _t; AST tmp414_AST_in = (AST)_t; match(_t,LC); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1481; _t = _t.getNextSibling(); break; } case LEFTTRIM: { AST __t1482 = _t; AST tmp415_AST_in = (AST)_t; match(_t,LEFTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1482; _t = _t.getNextSibling(); break; } case LIBRARY: { AST __t1483 = _t; AST tmp416_AST_in = (AST)_t; match(_t,LIBRARY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1483; _t = _t.getNextSibling(); break; } case LISTEVENTS: { AST __t1484 = _t; AST tmp417_AST_in = (AST)_t; match(_t,LISTEVENTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1484; _t = _t.getNextSibling(); break; } case LISTQUERYATTRS: { AST __t1485 = _t; AST tmp418_AST_in = (AST)_t; match(_t,LISTQUERYATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1485; _t = _t.getNextSibling(); break; } case LISTSETATTRS: { AST __t1486 = _t; AST tmp419_AST_in = (AST)_t; match(_t,LISTSETATTRS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1486; _t = _t.getNextSibling(); break; } case LISTWIDGETS: { AST __t1487 = _t; AST tmp420_AST_in = (AST)_t; match(_t,LISTWIDGETS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1487; _t = _t.getNextSibling(); break; } case LOADPICTURE: { AST __t1488 = _t; AST tmp421_AST_in = (AST)_t; match(_t,LOADPICTURE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1488; _t = _t.getNextSibling(); break; } case LOG: { AST __t1489 = _t; AST tmp422_AST_in = (AST)_t; match(_t,LOG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1489; _t = _t.getNextSibling(); break; } case LOGICAL: { AST __t1490 = _t; AST tmp423_AST_in = (AST)_t; match(_t,LOGICAL); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1490; _t = _t.getNextSibling(); break; } case LOOKUP: { AST __t1491 = _t; AST tmp424_AST_in = (AST)_t; match(_t,LOOKUP); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1491; _t = _t.getNextSibling(); break; } case MAXIMUM: { AST __t1492 = _t; AST tmp425_AST_in = (AST)_t; match(_t,MAXIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1492; _t = _t.getNextSibling(); break; } case MD5DIGEST: { AST __t1493 = _t; AST tmp426_AST_in = (AST)_t; match(_t,MD5DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1493; _t = _t.getNextSibling(); break; } case MEMBER: { AST __t1494 = _t; AST tmp427_AST_in = (AST)_t; match(_t,MEMBER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1494; _t = _t.getNextSibling(); break; } case MINIMUM: { AST __t1495 = _t; AST tmp428_AST_in = (AST)_t; match(_t,MINIMUM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1495; _t = _t.getNextSibling(); break; } case MONTH: { AST __t1496 = _t; AST tmp429_AST_in = (AST)_t; match(_t,MONTH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1496; _t = _t.getNextSibling(); break; } case NORMALIZE: { AST __t1497 = _t; AST tmp430_AST_in = (AST)_t; match(_t,NORMALIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1497; _t = _t.getNextSibling(); break; } case NUMENTRIES: { AST __t1498 = _t; AST tmp431_AST_in = (AST)_t; match(_t,NUMENTRIES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1498; _t = _t.getNextSibling(); break; } case NUMRESULTS: { AST __t1499 = _t; AST tmp432_AST_in = (AST)_t; match(_t,NUMRESULTS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1499; _t = _t.getNextSibling(); break; } case OSGETENV: { AST __t1500 = _t; AST tmp433_AST_in = (AST)_t; match(_t,OSGETENV); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1500; _t = _t.getNextSibling(); break; } case PDBNAME: { AST __t1501 = _t; AST tmp434_AST_in = (AST)_t; match(_t,PDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1501; _t = _t.getNextSibling(); break; } case PROGRAMNAME: { AST __t1502 = _t; AST tmp435_AST_in = (AST)_t; match(_t,PROGRAMNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1502; _t = _t.getNextSibling(); break; } case QUERYOFFEND: { AST __t1503 = _t; AST tmp436_AST_in = (AST)_t; match(_t,QUERYOFFEND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1503; _t = _t.getNextSibling(); break; } case QUOTER: { AST __t1504 = _t; AST tmp437_AST_in = (AST)_t; match(_t,QUOTER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1504; _t = _t.getNextSibling(); break; } case RINDEX: { AST __t1505 = _t; AST tmp438_AST_in = (AST)_t; match(_t,RINDEX); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1505; _t = _t.getNextSibling(); break; } case RANDOM: { AST __t1506 = _t; AST tmp439_AST_in = (AST)_t; match(_t,RANDOM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1506; _t = _t.getNextSibling(); break; } case REPLACE: { AST __t1507 = _t; AST tmp440_AST_in = (AST)_t; match(_t,REPLACE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1507; _t = _t.getNextSibling(); break; } case RGBVALUE: { AST __t1508 = _t; AST tmp441_AST_in = (AST)_t; match(_t,RGBVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1508; _t = _t.getNextSibling(); break; } case RIGHTTRIM: { AST __t1509 = _t; AST tmp442_AST_in = (AST)_t; match(_t,RIGHTTRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1509; _t = _t.getNextSibling(); break; } case ROUND: { AST __t1510 = _t; AST tmp443_AST_in = (AST)_t; match(_t,ROUND); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1510; _t = _t.getNextSibling(); break; } case SDBNAME: { AST __t1511 = _t; AST tmp444_AST_in = (AST)_t; match(_t,SDBNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1511; _t = _t.getNextSibling(); break; } case SEARCH: { AST __t1512 = _t; AST tmp445_AST_in = (AST)_t; match(_t,SEARCH); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1512; _t = _t.getNextSibling(); break; } case SETDBCLIENT: { AST __t1513 = _t; AST tmp446_AST_in = (AST)_t; match(_t,SETDBCLIENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1513; _t = _t.getNextSibling(); break; } case SETUSERID: { AST __t1514 = _t; AST tmp447_AST_in = (AST)_t; match(_t,SETUSERID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1514; _t = _t.getNextSibling(); break; } case SHA1DIGEST: { AST __t1515 = _t; AST tmp448_AST_in = (AST)_t; match(_t,SHA1DIGEST); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1515; _t = _t.getNextSibling(); break; } case SQRT: { AST __t1516 = _t; AST tmp449_AST_in = (AST)_t; match(_t,SQRT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1516; _t = _t.getNextSibling(); break; } case SSLSERVERNAME: { AST __t1517 = _t; AST tmp450_AST_in = (AST)_t; match(_t,SSLSERVERNAME); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1517; _t = _t.getNextSibling(); break; } case STRING: { AST __t1518 = _t; AST tmp451_AST_in = (AST)_t; match(_t,STRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1518; _t = _t.getNextSibling(); break; } case SUBSTITUTE: { AST __t1519 = _t; AST tmp452_AST_in = (AST)_t; match(_t,SUBSTITUTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1519; _t = _t.getNextSibling(); break; } case TOROWID: { AST __t1520 = _t; AST tmp453_AST_in = (AST)_t; match(_t,TOROWID); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1520; _t = _t.getNextSibling(); break; } case TRIM: { AST __t1521 = _t; AST tmp454_AST_in = (AST)_t; match(_t,TRIM); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1521; _t = _t.getNextSibling(); break; } case TRUNCATE: { AST __t1522 = _t; AST tmp455_AST_in = (AST)_t; match(_t,TRUNCATE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1522; _t = _t.getNextSibling(); break; } case TYPEOF: { AST __t1523 = _t; AST tmp456_AST_in = (AST)_t; match(_t,TYPEOF); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1523; _t = _t.getNextSibling(); break; } case VALIDEVENT: { AST __t1524 = _t; AST tmp457_AST_in = (AST)_t; match(_t,VALIDEVENT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1524; _t = _t.getNextSibling(); break; } case VALIDHANDLE: { AST __t1525 = _t; AST tmp458_AST_in = (AST)_t; match(_t,VALIDHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1525; _t = _t.getNextSibling(); break; } case VALIDOBJECT: { AST __t1526 = _t; AST tmp459_AST_in = (AST)_t; match(_t,VALIDOBJECT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1526; _t = _t.getNextSibling(); break; } case WEEKDAY: { AST __t1527 = _t; AST tmp460_AST_in = (AST)_t; match(_t,WEEKDAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1527; _t = _t.getNextSibling(); break; } case WIDGETHANDLE: { AST __t1528 = _t; AST tmp461_AST_in = (AST)_t; match(_t,WIDGETHANDLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1528; _t = _t.getNextSibling(); break; } case YEAR: { AST __t1529 = _t; AST tmp462_AST_in = (AST)_t; match(_t,YEAR); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1529; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1501,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1501,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
... |
} else if ( mimeHelper.getAttachmentSpecType().equals(MTOMConstants.SWA_TYPE)) { | } else if (mimeHelper.getAttachmentSpecType().equals(MTOMConstants.SWA_TYPE)) { | public static StAXBuilder selectBuilderForMIME( MessageContext msgContext, InputStream inStream, String contentTypeString) throws OMException, XMLStreamException, FactoryConfigurationError, UnsupportedEncodingException { StAXBuilder builder = null; Parameter parameter_cache_attachment = msgContext.getParameter( Constants.Configuration.CACHE_ATTACHMENTS); boolean fileCacheForAttachments; if (parameter_cache_attachment == null) { fileCacheForAttachments = false; } else { fileCacheForAttachments = (Constants .VALUE_TRUE .equals( parameter_cache_attachment.getValue())); } String attachmentRepoDir = null; String attachmentSizeThreshold = null; Parameter parameter; if (fileCacheForAttachments) { parameter = msgContext.getParameter(Constants.Configuration.ATTACHMENT_TEMP_DIR); attachmentRepoDir = parameter == null ? "" : parameter.getValue().toString(); parameter = msgContext .getParameter(Constants.Configuration.FILE_SIZE_THRESHOLD); attachmentSizeThreshold = parameter == null ? "" : parameter.getValue().toString(); } MIMEHelper mimeHelper = new MIMEHelper(inStream, contentTypeString, fileCacheForAttachments, attachmentRepoDir, attachmentSizeThreshold); String charSetEncoding = TransportUtils.getCharSetEncoding(mimeHelper.getSOAPPartContentType()); XMLStreamReader reader; if (charSetEncoding == null || "null".equalsIgnoreCase(charSetEncoding)) { reader = XMLInputFactory.newInstance() .createXMLStreamReader( new BufferedReader(new InputStreamReader(mimeHelper .getSOAPPartInputStream(), charSetEncoding))); msgContext.setProperty(MessageContext.CHARACTER_SET_ENCODING, charSetEncoding); } else { reader = XMLInputFactory.newInstance() .createXMLStreamReader( new BufferedReader(new InputStreamReader(mimeHelper .getSOAPPartInputStream()))); msgContext.setProperty(MessageContext.CHARACTER_SET_ENCODING, MessageContext.UTF_8); } /* * put a reference to Attachments in to the message context */ msgContext.setProperty(MTOMConstants.ATTACHMENTS, mimeHelper); if (mimeHelper.getAttachmentSpecType().equals(MTOMConstants.MTOM_TYPE)) { /* * Creates the MTOM specific MTOMStAXSOAPModelBuilder */ builder = new MTOMStAXSOAPModelBuilder( reader, mimeHelper, null); } else if ( mimeHelper.getAttachmentSpecType().equals(MTOMConstants.SWA_TYPE)) { builder = new StAXSOAPModelBuilder( reader, SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); } return builder; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/fed77b32800d850cf7cc1aaf68bb68800baf5c71/HTTPTransportUtils.java/clean/modules/core/src/org/apache/axis2/transport/http/HTTPTransportUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
934,
2501,
1263,
2027,
1263,
1290,
18178,
12,
5411,
2350,
1042,
1234,
1042,
16,
5411,
5037,
28987,
16,
5411,
514,
5064,
780,
13,
5411,
1216,
28839,
503,
16,
5411,
21526,
16,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
934,
2501,
1263,
2027,
1263,
1290,
18178,
12,
5411,
2350,
1042,
1234,
1042,
16,
5411,
5037,
28987,
16,
5411,
514,
5064,
780,
13,
5411,
1216,
28839,
503,
16,
5411,
21526,
16,
78... |
public static void main(String[] args) { | public static void main(String[] args) throws IOException { | public static void main(String[] args) { int port = Integer.parseInt(args[0]); System.out.println("Port number: "+port); Logger.setupStdoutLogging(Logger.MINOR, ""); Yarrow yarrow = new Yarrow(); Node n = new Node(port, yarrow); n.start(new StaticSwapRequestInterval(2000)); new TextModeClientInterface(n); } | 50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/27f407d086a1dbf43da0232680fb0f61503732d4/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
3639,
509,
1756,
273,
2144,
18,
2670,
1702,
12,
1968,
63,
20,
19226,
3639,
2332,
18,
659,
18,
8222,
2932,
2617,
1300,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1860,
288,
3639,
509,
1756,
273,
2144,
18,
2670,
1702,
12,
1968,
63,
20,
19226,
3639,
2332,
18,
659,
18,
8222,
2932,
2617,
1300,
30,
... |
IRubyObject obj = getc(); if (obj.isNil()) { | checkReadable(); int c = handler.getc(); if (c == -1) { | public IRubyObject readchar() { IRubyObject obj = getc(); if (obj.isNil()) { throw new EOFError(runtime); } else { return obj; } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4c689a812e20d4fcf2da0cdc9b527b00cc1960ef/RubyIO.java/clean/src/org/jruby/RubyIO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
855,
3001,
1435,
288,
3639,
15908,
10340,
921,
1081,
273,
336,
71,
5621,
3639,
309,
261,
2603,
18,
291,
12616,
10756,
288,
5411,
604,
394,
6431,
668,
12,
9448,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
855,
3001,
1435,
288,
3639,
15908,
10340,
921,
1081,
273,
336,
71,
5621,
3639,
309,
261,
2603,
18,
291,
12616,
10756,
288,
5411,
604,
394,
6431,
668,
12,
9448,
17... |
if(parent instanceof PsiBinaryExpression && body instanceof PsiBinaryExpression){ final PsiJavaToken parentSign = ((PsiBinaryExpression) parent).getOperationSign(); final IElementType parentOperator = parentSign.getTokenType(); final PsiJavaToken childSign = ((PsiBinaryExpression) body).getOperationSign(); final IElementType childOperator = childSign.getTokenType(); final PsiBinaryExpression binaryExpression = (PsiBinaryExpression) parent; final PsiExpression lhs = binaryExpression.getLOperand(); return lhs.equals(expression) && parentOperator.equals(childOperator); } else{ return false; } } else{ return false; } } | final PsiBinaryExpression binaryExpression = (PsiBinaryExpression) parent; final PsiExpression lhs = binaryExpression.getLOperand(); return lhs.equals(expression) && parentOperator.equals(childOperator); } else{ return false; } } else{ return false; } } | public boolean satisfiedBy(PsiElement element){ if(!(element instanceof PsiParenthesizedExpression)){ return false; } if(ErrorUtil.containsError(element)){ return false; } final PsiParenthesizedExpression expression = (PsiParenthesizedExpression) element; final PsiElement parent = expression.getParent(); if(!(parent instanceof PsiExpression)){ return true; } final PsiExpression body = expression.getExpression(); if(body instanceof PsiParenthesizedExpression){ return true; } final int parentPrecendence = ParenthesesUtils.getPrecendence( (PsiExpression) parent); final int childPrecendence = ParenthesesUtils.getPrecendence(body); if(parentPrecendence > childPrecendence){ return true; } else if(parentPrecendence == childPrecendence){ if(parent instanceof PsiBinaryExpression && body instanceof PsiBinaryExpression){ final PsiJavaToken parentSign = ((PsiBinaryExpression) parent).getOperationSign(); final IElementType parentOperator = parentSign.getTokenType(); final PsiJavaToken childSign = ((PsiBinaryExpression) body).getOperationSign(); final IElementType childOperator = childSign.getTokenType(); final PsiBinaryExpression binaryExpression = (PsiBinaryExpression) parent; final PsiExpression lhs = binaryExpression.getLOperand(); return lhs.equals(expression) && parentOperator.equals(childOperator); } else{ return false; } } else{ return false; } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/09c24182a351d0ba99cf3814c45f78935827d33b/UnnecessaryParenthesesPredicate.java/buggy/plugins/IntentionPowerPak/src/com/siyeh/ipp/parenthesis/UnnecessaryParenthesesPredicate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
18958,
858,
12,
52,
7722,
1046,
930,
15329,
3639,
309,
12,
5,
12,
2956,
1276,
453,
7722,
17880,
1235,
2300,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
668,
1304... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
18958,
858,
12,
52,
7722,
1046,
930,
15329,
3639,
309,
12,
5,
12,
2956,
1276,
453,
7722,
17880,
1235,
2300,
3719,
95,
5411,
327,
629,
31,
3639,
289,
3639,
309,
12,
668,
1304... |
public org.quickfix.field.UnderlyingCreditRating getUnderlyingCreditRating() throws FieldNotFound { org.quickfix.field.UnderlyingCreditRating value = new org.quickfix.field.UnderlyingCreditRating(); | public quickfix.field.UnderlyingCreditRating getUnderlyingCreditRating() throws FieldNotFound { quickfix.field.UnderlyingCreditRating value = new quickfix.field.UnderlyingCreditRating(); | public org.quickfix.field.UnderlyingCreditRating getUnderlyingCreditRating() throws FieldNotFound { org.quickfix.field.UnderlyingCreditRating value = new org.quickfix.field.UnderlyingCreditRating(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportRequest.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReportRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
16520,
20388,
10833,
765,
6291,
16520,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
16520... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16520,
20388,
10833,
765,
6291,
16520,
20388,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
16520... |
setWasIcon(frame, true); | setWasIcon(frame, Boolean.TRUE); | public void iconifyFrame(JInternalFrame frame) { JDesktopPane p = frame.getDesktopPane(); JDesktopIcon icon = frame.getDesktopIcon(); if (p != null && p.getSelectedFrame() == frame) p.setSelectedFrame(null); else { try { frame.setSelected(false); } catch (PropertyVetoException e) { } } Container c = frame.getParent(); if (! wasIcon(frame)) { Rectangle r = getBoundsForIconOf(frame); icon.setBounds(r); setWasIcon(frame, true); } if (c != null) { if (icon != null) { c.add(icon); icon.setVisible(true); } c.remove(frame); } } // iconifyFrame() | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/53b78dd1e4587254262f4618d2aa7551de8e0cbf/DefaultDesktopManager.java/buggy/core/src/classpath/javax/javax/swing/DefaultDesktopManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4126,
1164,
3219,
12,
46,
3061,
3219,
2623,
13,
225,
288,
565,
804,
27583,
8485,
293,
273,
2623,
18,
588,
27583,
8485,
5621,
565,
804,
27583,
5554,
4126,
273,
2623,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4126,
1164,
3219,
12,
46,
3061,
3219,
2623,
13,
225,
288,
565,
804,
27583,
8485,
293,
273,
2623,
18,
588,
27583,
8485,
5621,
565,
804,
27583,
5554,
4126,
273,
2623,
18,
588,
... |
if (exceptions[0] != null) | if (exceptions[0] != null) { | protected ILightweightLabelDecorator internalGetDecorator() throws CoreException { if (labelProviderCreationFailed) return null; final CoreException[] exceptions = new CoreException[1]; if (decorator == null) { if (isDeclarative()) decorator = new DeclarativeDecorator(definingElement, getIconLocation()); else { Platform.run(new ISafeRunnable() { public void run() { try { decorator = (ILightweightLabelDecorator) WorkbenchPlugin .createExtension(definingElement, DecoratorDefinition.ATT_CLASS); decorator.addListener(WorkbenchPlugin.getDefault() .getDecoratorManager()); } catch (CoreException exception) { exceptions[0] = exception; } } /* * (non-Javadoc) Method declared on ISafeRunnable. */ public void handleException(Throwable e) { // Do nothing as Core will handle the logging } }); } } else return decorator; if (decorator == null) { this.labelProviderCreationFailed = true; setEnabled(false); } if (exceptions[0] != null) throw exceptions[0]; return decorator; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/LightweightDecoratorDefinition.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/LightweightDecoratorDefinition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
12128,
4865,
2224,
10361,
2713,
967,
10361,
1435,
1082,
202,
15069,
30015,
288,
202,
202,
430,
261,
1925,
2249,
9906,
2925,
13,
1082,
202,
2463,
446,
31,
202,
202,
6385,
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,
225,
202,
1117,
467,
12128,
4865,
2224,
10361,
2713,
967,
10361,
1435,
1082,
202,
15069,
30015,
288,
202,
202,
430,
261,
1925,
2249,
9906,
2925,
13,
1082,
202,
2463,
446,
31,
202,
202,
6385,
3... |
case TypePackage.AREA_SERIES__DATA_SET : return dataSet != null; | case TypePackage.AREA_SERIES__DATA_SETS : return dataSets != null && !dataSets.isEmpty( ); | public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case TypePackage.AREA_SERIES__VISIBLE : return isSetVisible( ); case TypePackage.AREA_SERIES__LABEL : return label != null; case TypePackage.AREA_SERIES__DATA_DEFINITION : return dataDefinition != null && !dataDefinition.isEmpty( ); case TypePackage.AREA_SERIES__SERIES_IDENTIFIER : return SERIES_IDENTIFIER_EDEFAULT == null ? seriesIdentifier != null : !SERIES_IDENTIFIER_EDEFAULT.equals( seriesIdentifier ); case TypePackage.AREA_SERIES__DATA_POINT : return dataPoint != null; case TypePackage.AREA_SERIES__DATA_SET : return dataSet != null; case TypePackage.AREA_SERIES__LABEL_POSITION : return isSetLabelPosition( ); case TypePackage.AREA_SERIES__STACKED : return isSetStacked( ); case TypePackage.AREA_SERIES__TRIGGERS : return triggers != null && !triggers.isEmpty( ); case TypePackage.AREA_SERIES__TRANSLUCENT : return isSetTranslucent( ); case TypePackage.AREA_SERIES__CURVE_FITTING : return curveFitting != null; case TypePackage.AREA_SERIES__MARKER : return marker != null; case TypePackage.AREA_SERIES__LINE_ATTRIBUTES : return lineAttributes != null; case TypePackage.AREA_SERIES__PALETTE_LINE_COLOR : return isSetPaletteLineColor( ); case TypePackage.AREA_SERIES__CURVE : return isSetCurve( ); case TypePackage.AREA_SERIES__SHADOW_COLOR : return shadowColor != null; } return eDynamicIsSet( eFeature ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bb7dee06cb2513afdac931e385de14f9b9bda5b3/AreaSeriesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/AreaSeriesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
22... |
final public void yyclose() throws java.io.IOException { yy_atEOF = true; /* indicate end of file */ yy_endRead = yy_startRead; /* invalidate buffer */ | public final void yyclose() throws java.io.IOException { zzAtEOF = true; /* indicate end of file */ zzEndRead = zzStartRead; /* invalidate buffer */ | final public void yyclose() throws java.io.IOException { yy_atEOF = true; /* indicate end of file */ yy_endRead = yy_startRead; /* invalidate buffer */ if (yy_reader != null) yy_reader.close(); } | 49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/689ed6b27a2e7acac33d90a4e6fea2ddf018345b/CSSTokenizerFilter.java/clean/src/freenet/clients/http/filter/CSSTokenizerFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
9016,
4412,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
9016,
67,
270,
12706,
273,
638,
31,
5411,
1748,
10768,
679,
434,
585,
1195,
565,
9016,
67,
409,
1994,
273,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
9016,
4412,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
9016,
67,
270,
12706,
273,
638,
31,
5411,
1748,
10768,
679,
434,
585,
1195,
565,
9016,
67,
409,
1994,
273,
9... |
Iterator it = alldata.keySet().iterator(); String key = ""; if (rc.OID.length() == 0) rc.OID = ""; | BEREncoder reply = replyStart(rc); | public void run() { try { socket = new DatagramSocket(port, InetAddress.getByName("localhost")); } catch (IOException e) { e.printStackTrace(); return ; } // make smaller.... 0484 enough? byte[] buf = new byte[65535]; DatagramPacket packet = new DatagramPacket(buf, buf.length); while (socket.isBound()) { try { socket.receive(packet); RequestContainer rc = new RequestContainer(); parseRequest(buf, rc); int replylength = 0; boolean keyfound = false; //DataHandler dh = null; Iterator it = alldata.keySet().iterator(); String key = ""; if (rc.OID.length() == 0) rc.OID = ""; while (it.hasNext() && !keyfound) { key = (String)it.next(); //System.err.println("is '"+ rc.OID + "' in: " + key); if (key.startsWith(rc.OID)) keyfound = true; } // keyfound /\ (equal -> hasnext) //System.err.println("("+keyfound+" && (!"+key.equals(rc.OID)+" || "+it.hasNext()+"))"); if (keyfound && (!key.equals(rc.OID) || it.hasNext())) { key = key.equals(rc.OID)?(String)it.next():key; Object df = alldata.get(key); //Object key = null; Object data = null; //dh = (DataHandler)alldata.get(key); //rc.lOID = (long[])dh.lOID.clone(); if (df instanceof DataFetcher) { data = ((DataFetcher)df).getSNMPData(); } else if (df instanceof MultiplexedDataFetcher) { data = ((MultiplexedDataFetcher)df).getSNMPData(key); if (data == null) data = ((MultiplexedDataFetcher)df).getSNMPData(".1.3."+key); } else data = new Integer(0); rc.lOID = splitToLong(key); //System.err.println(key); //for (int i = 0; i < rc.lOID.length ; i++) // System.err.print("." + rc.lOID[i]); replylength = makeIntReply(buf, rc, data); } else { if (rc.lOID.length > 0) rc.lOID[0] = 100; else { rc.lOID = new long[1]; rc.lOID[0] = 0; } replylength = makeIntReply(buf, rc, new Integer(1)); } // send the response to the client at "address" and "port" InetAddress address = packet.getAddress(); int port = packet.getPort(); packet = new DatagramPacket(buf, replylength, address, port); socket.send(packet); } catch (IOException e) { e.printStackTrace(); break; } catch (BadFormatException e) { e.printStackTrace(); //System.err.println(e.toString()); } catch (ArrayIndexOutOfBoundsException e) { e.printStackTrace(); // not much to do.. ignore the request and it'll time out } } socket.close(); } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/dc41050349099e4bc34e8b2967ee63de226b514c/SNMPAgent.java/buggy/src/snmplib/SNMPAgent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
377,
202,
698,
288,
377,
202,
202,
7814,
273,
394,
6168,
17049,
4534,
12,
655,
16,
14218,
18,
588,
5911,
2932,
13014,
7923,
1769,
377,
202,
97,
1044,
261,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
377,
202,
698,
288,
377,
202,
202,
7814,
273,
394,
6168,
17049,
4534,
12,
655,
16,
14218,
18,
588,
5911,
2932,
13014,
7923,
1769,
377,
202,
97,
1044,
261,
14... |
e1.printStackTrace( ); | container.displayException( e1 ); | public void widgetSelected( SelectionEvent e ) { if ( e.getSource( ).equals( btnUseReportData ) ) { try { switchDataSet( null ); } catch ( ChartException e1 ) { e1.printStackTrace( ); } tablePreview.createDummyTable( ); checkUseDataSet( false ); } else if ( e.getSource( ).equals( btnUseDataSet ) ) { if ( cmbDataSet.getText( ).length( ) == 0 ) { cmbDataSet.setItems( getWizardContext( ).getDataServiceProvider( ) .getAllDataSets( ) ); cmbDataSet.select( 0 ); } if ( cmbDataSet.getText( ).length( ) != 0 ) { try { switchDataSet( cmbDataSet.getText( ) ); } catch ( ChartException e1 ) { DefaultLoggerImpl.instance( ) .log( DefaultLoggerImpl.ERROR, Messages.getString( "TaskSelectData.Exception.UnableToSwitchToDataset" ) //$NON-NLS-1$ + cmbDataSet.getText( ) ); } } checkUseDataSet( true ); } else if ( e.getSource( ).equals( cmbDataSet ) ) { try { ColorPalette.getInstance( ).restore( ); switchDataSet( cmbDataSet.getText( ) ); } catch ( ChartException e1 ) { DefaultLoggerImpl.instance( ) .log( DefaultLoggerImpl.ERROR, Messages.getString( "TaskSelectData.Exception.UnableToSwitchToDataset" ) + cmbDataSet.getText( ) ); //$NON-NLS-1$ } } else if ( e.getSource( ).equals( btnNewData ) ) { String[] sAllDS = getWizardContext( ).getDataServiceProvider( ) .getAllDataSets( ); String sCurrentDS = ""; //$NON-NLS-1$ if ( sAllDS.length > 0 ) { sCurrentDS = getWizardContext( ).getDataServiceProvider( ) .getCurrentDataSet( ); } getWizardContext( ).getDataServiceProvider( ) .invoke( IDataServiceProvider.COMMAND_NEW_DATASET ); sAllDS = ( (ChartWizardContext) context ).getDataServiceProvider( ) .getAllDataSets( ); // Update UI with DS list cmbDataSet.setItems( sAllDS ); checkUseDataSet( true ); if ( sCurrentDS.length( ) > 0 ) { cmbDataSet.setText( sCurrentDS ); } else if ( sAllDS.length > 0 ) { // If at least one dataset is defined in the report design...AND // if a dataset had not already been bound to the chart... // bind the first dataset in the list to the chart cmbDataSet.setText( sAllDS[0] ); try { switchDataSet( sAllDS[0] ); } catch ( ChartException e1 ) { DefaultLoggerImpl.instance( ) .log( DefaultLoggerImpl.ERROR, Messages.getString( "TaskSelectData.Exception.UnableToSwitchToDataset" ) + sAllDS[0] ); //$NON-NLS-1$ } } } // else if ( e.getSource( ).equals( btnFilters ) ) // { // if ( getWizardContext( ).getDataServiceProvider( ) // .invoke( IDataServiceProvider.COMMAND_EDIT_FILTER ) == Window.OK ) // { // refreshTablePreview( ); // } // } else if ( e.getSource( ).equals( btnParameters ) ) { if ( getWizardContext( ).getDataServiceProvider( ) .invoke( IDataServiceProvider.COMMAND_EDIT_PARAMETER ) == Window.OK ) { refreshTablePreview( ); } } else if ( e.getSource( ) instanceof MenuItem ) { MenuItem item = (MenuItem) e.getSource( ); IAction action = (IAction) item.getData( ); action.setChecked( !action.isChecked( ) ); action.run( ); } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/54fedce0fd27786571d750315792bb4dc2edc33c/TaskSelectData.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
10638,
3727,
4820,
751,
262,
262,
202,
202,
95,
1082,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3604,
7416,
12,
12977,
1133,
425,
262,
202,
95,
202,
202,
430,
261,
425,
18,
588,
1830,
12,
262,
18,
14963,
12,
10638,
3727,
4820,
751,
262,
262,
202,
202,
95,
1082,
20... |
} return false; | public boolean visit(IResourceProxy proxy) { if (isCancelled) return false; switch(proxy.getType()) { case IResource.FILE : //TODO: BOG Put the file name checking back //if (Util.isCCFileName(proxy.getName())) { IResource resource = proxy.requestResource(); if (resource.getLocation() != null && (patterns == null || !Util.isExcluded(resource, patterns))) { String name = new IFileDocument((IFile) resource).getName(); indexedFileNames.put(name, resource); } //} // return false; case IResource.FOLDER : if (patterns != null && Util.isExcluded(proxy.requestResource(), patterns)) return false; if (hasOutputs && outputs.contains(proxy.requestFullPath())) { return false; } } return true; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/92669e00620ce783b323bcea4f965a752d0b6f5f/IndexAllProject.java/buggy/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/IndexAllProject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
20982,
202,
482,
1250,
3757,
12,
45,
1420,
3886,
2889,
13,
288,
6862,
6862,
202,
430,
261,
291,
21890,
13,
327,
629,
31,
6862,
6862,
202,
9610,
12,
5656,
18,
588,
559,
10756,
288,
6862,
2508... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
20982,
202,
482,
1250,
3757,
12,
45,
1420,
3886,
2889,
13,
288,
6862,
6862,
202,
430,
261,
291,
21890,
13,
327,
629,
31,
6862,
6862,
202,
9610,
12,
5656,
18,
588,
559,
10756,
288,
6862,
2508... | |
CosmoDavResponse response, CosmoDavResource resource) throws IOException, DavException { | CosmoDavResponse response, CosmoDavResource resource) throws IOException, DavException { | protected void doDelTicket(CosmoDavRequest request, CosmoDavResponse response, CosmoDavResource resource) throws IOException, DavException { if (!resource.exists()) { response.sendError(DavServletResponse.SC_NOT_FOUND); return; } if (!resource.isTicketable()) { throw new DavException(CosmoDavResponse.SC_METHOD_NOT_ALLOWED); } String ticketId = request.getTicketId(); if (ticketId == null) { response.sendError(DavServletResponse.SC_BAD_REQUEST, "No ticket was specified."); return; } Ticket ticket = resource.getTicket(ticketId); if (ticket == null) { response.sendError(DavServletResponse.SC_PRECONDITION_FAILED, "The ticket specified does not exist."); return; } // must either be an admin or the user that created the ticket String loggedInUsername = securityManager.getSecurityContext() .getUser().getUsername(); if (!(ticket.getOwner().equals(loggedInUsername) || securityManager .getSecurityContext().isAdmin())) { response.sendError(DavServletResponse.SC_FORBIDDEN); return; } if (log.isDebugEnabled()) { log.debug("removing ticket " + ticket.getId() + " for resource " + resource.getResourcePath()); } resource.removeTicket(ticket); response.sendDelTicketResponse(resource, ticket.getId()); } | 47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/145f0ab5de3ac56e09fd5f3c725e84fb703cf8eb/CosmoDavServlet.java/buggy/src/main/java/org/osaf/cosmo/dav/CosmoDavServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
2837,
13614,
12,
39,
538,
8683,
40,
842,
691,
590,
16,
5411,
385,
538,
8683,
40,
842,
1064,
766,
16,
385,
538,
8683,
40,
842,
1420,
1058,
13,
5411,
1216,
1860,
16,
463... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2837,
13614,
12,
39,
538,
8683,
40,
842,
691,
590,
16,
5411,
385,
538,
8683,
40,
842,
1064,
766,
16,
385,
538,
8683,
40,
842,
1420,
1058,
13,
5411,
1216,
1860,
16,
463... |
Iterator iterator = this.iterator(); | Iterator iterator = iterator(); | public SecurityRoleRef get(String name) { SecurityRoleRef securityRoleRef = null; Iterator iterator = this.iterator(); while (iterator.hasNext()) { SecurityRoleRef securityRoleRefCandidate = (SecurityRoleRef)iterator.next(); if (securityRoleRefCandidate.getRoleName().equals(name)) { securityRoleRef = securityRoleRefCandidate; } } return securityRoleRef; } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/fcc385109f2563e03e6e90fc31948ef549d311e0/SecurityRoleRefSetImpl.java/clean/source/org/jasig/portal/container/om/common/SecurityRoleRefSetImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6036,
2996,
1957,
336,
12,
780,
508,
13,
288,
3639,
6036,
2996,
1957,
4373,
2996,
1957,
273,
446,
31,
3639,
4498,
2775,
273,
2775,
5621,
3639,
1323,
261,
9838,
18,
5332,
2134,
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,
1071,
6036,
2996,
1957,
336,
12,
780,
508,
13,
288,
3639,
6036,
2996,
1957,
4373,
2996,
1957,
273,
446,
31,
3639,
4498,
2775,
273,
2775,
5621,
3639,
1323,
261,
9838,
18,
5332,
2134,
10756... |
if (!key.isConstId()) { return RubyMapMethod.CONTINUE; } | if (!key.isConstId()) { return RubyMapMethod.CONTINUE; } | public int execute(Object _key, Object _value, Object _res) { // Cast the values. RubyId key = null; try { key = (RubyId) _key; } catch (ClassCastException ccExcptn) { key = getRuby().intern((String) _key); System.out.println("key isn't ID: \"" + _key + "\""); } if (!(_value instanceof RubyObject)) { return RubyMapMethod.CONTINUE; } RubyObject value = (RubyObject) _value; FindClassPathResult res = (FindClassPathResult) _res; RubyString path = null; if (!key.isConstId()) { return RubyMapMethod.CONTINUE; } String name = key.toName(); if (res.path != null) { path = (RubyString) res.path.m_dup(); path.m_cat("::"); path.m_cat(name); } else { path = RubyString.m_newString(getRuby(), name); } if (value == res.klass) { res.name = key; res.path = path; return RubyMapMethod.STOP; } if (value.m_kind_of(getRuby().getClasses().getModuleClass()).isTrue()) { if (value.getInstanceVariables() == null) { return RubyMapMethod.CONTINUE; } FindClassPathResult list = res; while (list != null) { if (list.track == value) { return RubyMapMethod.CONTINUE; } list = list.prev; } FindClassPathResult arg = new FindClassPathResult(); arg.name = null; arg.path = path; arg.klass = res.klass; arg.track = value; arg.prev = res; value.getInstanceVariables().foreach(this, arg); if (arg.name != null) { res.name = arg.name; res.path = arg.path; return RubyMapMethod.STOP; } } return RubyMapMethod.CONTINUE; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/buggy/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
1836,
12,
921,
389,
856,
16,
1033,
389,
1132,
16,
1033,
389,
455,
13,
288,
1082,
202,
759,
19782,
326,
924,
18,
1082,
202,
54,
10340,
548,
498,
273,
446,
31,
1082,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
1836,
12,
921,
389,
856,
16,
1033,
389,
1132,
16,
1033,
389,
455,
13,
288,
1082,
202,
759,
19782,
326,
924,
18,
1082,
202,
54,
10340,
548,
498,
273,
446,
31,
1082,
202... |
protected static P2PService getRemoteP2PService(String url) throws NodeException, ActiveObjectCreationException { url = urlAdderP2PNodeName(url); Node node = NodeFactory.getNode(url); P2PService p2p = (P2PService) node.getActiveObjects(P2PServiceImpl.class.getName())[0]; return p2p; } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/42ae6f8342b0a127515dc21e23375b932806a4a2/P2PServiceImpl.java/buggy/src/org/objectweb/proactive/p2p/core/service/P2PServiceImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
3845,
52,
22,
52,
1179,
588,
5169,
52,
22,
52,
1179,
12,
780,
718,
13,
15069,
907,
503,
16,
3896,
921,
9906,
503,
95,
718,
33,
718,
986,
264,
52,
22,
52,
18948,
12,
718,
1769,
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,
4750,
3845,
52,
22,
52,
1179,
588,
5169,
52,
22,
52,
1179,
12,
780,
718,
13,
15069,
907,
503,
16,
3896,
921,
9906,
503,
95,
718,
33,
718,
986,
264,
52,
22,
52,
18948,
12,
718,
1769,
50,
... | ||
returnValue = FileStringScanner.replace(returnValue, "/", "\\"); | returnValue = FileStringScanner.replace(returnValue, "\\", "/"); | private String getGeneratedByWOLips() { String returnValue = ""; IProject[] projects = WorkbenchHelper.getWorkspace().getRoot().getProjects(); for (int i = 0; i < projects.length; i++) { if (i > 0) returnValue = returnValue + ","; returnValue = returnValue + "\"" + projects[i].getLocation().toOSString() + "\""; } returnValue = FileStringScanner.replace(returnValue, "/", "\\"); returnValue = this.addPreferencesValue(returnValue); if ("".equals(returnValue)) returnValue = "\"\""; return returnValue; } | 46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/2e818d74c0758930c13d6e513dac84a04f3bf445/WOJavaLocalApplicationLaunchConfigurationDelegate.java/buggy/src/wolips-launching/java/org/objectstyle/wolips/launching/WOJavaLocalApplicationLaunchConfigurationDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
336,
7823,
858,
59,
1741,
7146,
1435,
288,
202,
202,
780,
7750,
273,
1408,
31,
202,
202,
45,
4109,
8526,
10137,
273,
1082,
202,
2421,
22144,
2276,
18,
588,
8241,
7675,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
336,
7823,
858,
59,
1741,
7146,
1435,
288,
202,
202,
780,
7750,
273,
1408,
31,
202,
202,
45,
4109,
8526,
10137,
273,
1082,
202,
2421,
22144,
2276,
18,
588,
8241,
7675,
5... |
public static void sqlUpdateDocumentActivated( IMCServiceInterface imcref, int meta_id, boolean activate ) { imcref.sqlUpdateQuery( "update meta set activate = ? where meta_id = ?", new String[]{ "" + ( activate ? 1 : 0 ), "" + meta_id } ); | public static void sqlUpdateDocumentActivated(IMCServiceInterface imcref, int meta_id, boolean activate) { imcref.sqlUpdateQuery("update meta set activate = ? where meta_id = ?", new String[]{ "" + (activate ? 1 : 0), "" + meta_id }); | public static void sqlUpdateDocumentActivated( IMCServiceInterface imcref, int meta_id, boolean activate ) { imcref.sqlUpdateQuery( "update meta set activate = ? where meta_id = ?", new String[]{ "" + ( activate ? 1 : 0 ), "" + meta_id } ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/25d7c7c866e4b2d2d9e20e2d71648b696a1c81f6/DocumentMapper.java/buggy/server/src/imcode/server/document/DocumentMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1847,
1891,
2519,
28724,
12,
6246,
39,
18348,
709,
71,
1734,
16,
509,
2191,
67,
350,
16,
1250,
10235,
262,
288,
3639,
709,
71,
1734,
18,
4669,
1891,
1138,
12,
315,
2725,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1847,
1891,
2519,
28724,
12,
6246,
39,
18348,
709,
71,
1734,
16,
509,
2191,
67,
350,
16,
1250,
10235,
262,
288,
3639,
709,
71,
1734,
18,
4669,
1891,
1138,
12,
315,
2725,... |
eventsToDispatch.add(new EventSchedule(controlInfo, currentNode, EventSchedule.REQUIRED)); | eventsToDispatch.add(new EventSchedule(controlInfo.getId(), currentNode, EventSchedule.REQUIRED)); | public void startVisitControl(ControlInfo controlInfo) { xformsControls.setBinding(pipelineContext, controlInfo); final Node currentNode = xformsControls.getCurrentSingleNode(); if (currentNode == null) // can happen if control is not bound to anything return; final InstanceData updatedInstanceData = XFormsUtils.getInstanceDataUpdateInherited(currentNode); // Check if value has changed final boolean valueChanged = updatedInstanceData.isValueChanged(); // TODO: should check whether value of control has changed, not node. // However, is this compatible with with the way we rebuild the controls? if (valueChanged) { // Value change takes care of everything eventsToDispatch.add(new EventSchedule(controlInfo, currentNode, EventSchedule.ALL)); } else { // Dispatch xforms-optional/xforms-required if needed { final boolean previousRequiredState = updatedInstanceData.getPreviousRequiredState(); final boolean newRequiredState = updatedInstanceData.getRequired().get(); if ((previousRequiredState && !newRequiredState) || (!previousRequiredState && newRequiredState)) eventsToDispatch.add(new EventSchedule(controlInfo, currentNode, EventSchedule.REQUIRED)); } // Dispatch xforms-enabled/xforms-disabled if needed { final boolean previousRelevantState = updatedInstanceData.getPreviousInheritedRelevantState(); final boolean newRelevantState = updatedInstanceData.getInheritedRelevant().get(); if ((previousRelevantState && !newRelevantState) || (!previousRelevantState && newRelevantState)) eventsToDispatch.add(new EventSchedule(controlInfo, currentNode, EventSchedule.RELEVANT)); } // Dispatch xforms-readonly/xforms-readwrite if needed { final boolean previousReadonlyState = updatedInstanceData.getPreviousInheritedReadonlyState(); final boolean newReadonlyState = updatedInstanceData.getInheritedReadonly().get(); if ((previousReadonlyState && !newReadonlyState) || (!previousReadonlyState && newReadonlyState)) eventsToDispatch.add(new EventSchedule(controlInfo, currentNode, EventSchedule.READONLY)); } // Dispatch xforms-valid/xforms-invalid if needed // NOTE: There is no mention in the spec that these events should be // displatched automatically when the value has changed, contrary to the // other events above. { final boolean previousValidState = updatedInstanceData.getPreviousValidState(); final boolean newValidState = updatedInstanceData.getValid().get(); if ((previousValidState && !newValidState) || (!previousValidState && newValidState)) eventsToDispatch.add(new EventSchedule(controlInfo, currentNode, EventSchedule.VALID)); } } } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/307578c4c1a2575a77107b9c8ec0b568980a9275/XFormsModel.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1171,
1071,
918,
787,
10432,
3367,
12,
3367,
966,
3325,
966,
13,
288,
10792,
619,
9741,
16795,
18,
542,
5250,
12,
14511,
1042,
16,
3325,
966,
1769,
10792,
727,
2029,
13425,
273,
619,
9741,
167... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
10432,
3367,
12,
3367,
966,
3325,
966,
13,
288,
10792,
619,
9741,
16795,
18,
542,
5250,
12,
14511,
1042,
16,
3325,
966,
1769,
10792,
727,
2029,
13425,
273,
619,
9741,
167... |
int xpos=100+extpad, ypos=extpad+2*fm.getHeight(); | int xpos=extpad, ypos=extpad; | public void mouseMoved(MouseEvent e) { Graphics g = this.getGraphics(); int xpos=100+extpad, ypos=extpad+2*fm.getHeight(); for(int j=m_selectedAttribs.length-1; j>=0; j--) { for(int i=0; i<m_selectedAttribs.length; i++) { if(e.getX()>=xpos && e.getX()<=xpos+cellSize+extpad) if(e.getY()>=ypos && e.getY()<=ypos+cellSize+extpad) { if(xpos!=lastxpos || ypos!=lastypos) { g.setColor( Color.red ); g.drawRect(xpos-1, ypos-1, cellSize+1, cellSize+1); if(lastxpos!=0 && lastypos!=0) { g.setColor( this.getBackground().darker() ); g.drawRect(lastxpos-1, lastypos-1, cellSize+1, cellSize+1); } lastxpos = xpos; lastypos = ypos; } return; } xpos+=cellSize+extpad; } xpos=100+extpad; ypos+=cellSize+extpad; } if(lastxpos!=0 && lastypos!=0) { g.setColor( this.getBackground().darker() ); g.drawRect(lastxpos-1, lastypos-1, cellSize+1, cellSize+1); } lastxpos=lastypos=0; } | 6866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6866/5722320a913b16ac37bd3da67c71162b2cf8127c/MatrixPanel.java/clean/gui/visualize/MatrixPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
25317,
12,
9186,
1133,
425,
13,
288,
1377,
16830,
314,
273,
333,
18,
588,
17558,
5621,
1377,
509,
30031,
33,
408,
6982,
16,
30968,
33,
408,
6982,
31,
1377,
364,
12,
474... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7644,
25317,
12,
9186,
1133,
425,
13,
288,
1377,
16830,
314,
273,
333,
18,
588,
17558,
5621,
1377,
509,
30031,
33,
408,
6982,
16,
30968,
33,
408,
6982,
31,
1377,
364,
12,
474... |
public void started() {} | public void started() {} | protected final void run(Runner job) { if(result!=null) return; // already built. state = State.BUILDING; long start = System.currentTimeMillis(); BuildListener listener=null; try { final PrintStream log = new PrintStream(new FileOutputStream(getLogFile())); listener = new BuildListener() { final PrintWriter pw = new PrintWriter(new CloseProofOutputStream(log),true); public void started() {} public PrintStream getLogger() { return log; } public PrintWriter error(String msg) { pw.println("ERROR: "+msg); return pw; } public PrintWriter fatalError(String msg) { return error(msg); } public void finished(Result result) { pw.close(); log.close(); } }; listener.started(); result = job.run(listener); job.post(listener); } catch( Exception e ) { if(listener!=null) { if(e instanceof IOException) Util.displayIOException((IOException)e,listener); Writer w = listener.fatalError(e.getMessage()); if(w!=null) { try { e.printStackTrace(new PrintWriter(w)); w.close(); } catch (IOException e1) { // ignore } } } result = Result.FAILURE; } long end = System.currentTimeMillis(); duration = end-start; state = State.COMPLETED; if(listener!=null) listener.finished(result); try { save(); } catch (IOException e) { e.printStackTrace(); } try { LogRotator lr = getParent().getLogRotator(); if(lr!=null) lr.perform(getParent()); } catch (IOException e) { e.printStackTrace(); } } | 56266 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56266/be244d32b58061c8a2d408ed11ce8ca562e4aa97/Run.java/clean/hudson/src/hudson/model/Run.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
1086,
12,
9709,
1719,
13,
288,
3639,
309,
12,
2088,
5,
33,
2011,
13,
5411,
327,
31,
377,
368,
1818,
6650,
18,
3639,
919,
273,
3287,
18,
20215,
1360,
31,
3639,
1525,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
1086,
12,
9709,
1719,
13,
288,
3639,
309,
12,
2088,
5,
33,
2011,
13,
5411,
327,
31,
377,
368,
1818,
6650,
18,
3639,
919,
273,
3287,
18,
20215,
1360,
31,
3639,
1525,
78... |
mondrian.xom.NodeDef[] temp = null; | mondrian.xom.NodeDef[] temp = null; | protected void addDimension(ActionEvent evt) { MondrianDef.Schema schema = (Schema) tree.getModel().getRoot(); Object path = tree.getSelectionPath().getLastPathComponent(); if( ! (path instanceof MondrianDef.Cube) ) return; MondrianDef.Cube cube = (MondrianDef.Cube) path; MondrianDef.Dimension dimension = new MondrianDef.Dimension(); dimension.name = "New Dimension"+cube.dimensions.length; dimension.hierarchies = new MondrianDef.Hierarchy[1]; dimension.hierarchies[0] = new MondrianDef.Hierarchy(); dimension.hierarchies[0].hasAll = new Boolean(false); dimension.hierarchies[0].levels = new MondrianDef.Level[0]; dimension.hierarchies[0].memberReaderParameters = new MondrianDef.Parameter[0]; dimension.hierarchies[0].relation = new MondrianDef.Join(); //add cube to schema mondrian.xom.NodeDef[] temp = null; temp = cube.dimensions; cube.dimensions = new MondrianDef.CubeDimension[temp.length+1]; for(int i=0; i<temp.length; i++) cube.dimensions[i] = (MondrianDef.CubeDimension)temp[i]; cube.dimensions[cube.dimensions.length-1] = dimension; refreshTree(tree.getSelectionPath()); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/d4a93c3315c8aa9b9d64e1c03577610a1dbca61d/SchemaExplorer.java/clean/src/main/mondrian/gui/SchemaExplorer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
8611,
12,
1803,
1133,
6324,
13,
288,
202,
202,
49,
1434,
566,
304,
3262,
18,
3078,
1963,
273,
261,
3078,
13,
2151,
18,
588,
1488,
7675,
588,
2375,
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,
1117,
918,
527,
8611,
12,
1803,
1133,
6324,
13,
288,
202,
202,
49,
1434,
566,
304,
3262,
18,
3078,
1963,
273,
261,
3078,
13,
2151,
18,
588,
1488,
7675,
588,
2375,
5621,
202,
202,
... |
return null; } | private ICUResourceWriter.Resource parseBundle(Node root){ ICUResourceWriter.ResourceTable table = new ICUResourceWriter.ResourceTable(); ICUResourceWriter.Resource current = null; StringBuffer xpath = new StringBuffer(); xpath.append("//ldml"); int savedLength = xpath.length(); Node ldml = null; for(ldml=root.getFirstChild(); ldml!=null; ldml=ldml.getNextSibling()){ if(ldml.getNodeType()!=Node.ELEMENT_NODE){ continue; } String name = ldml.getNodeName(); if(name.equals(LDMLConstants.LDML) ){ ldmlVersion = LDMLUtilities.getAttributeValue(ldml, LDMLConstants.VERSION); if(LDMLUtilities.isLocaleDraft(ldml) && !isDraftStatusOverridable(locName) && writeDraft==false){ System.err.println("WARNING: The LDML file "+sourceDir+"/"+locName+".xml is marked draft! Not producing ICU file. "); //System.exit(-1); return null; } break; } } if(ldml == null) { throw new RuntimeException("ERROR: no <ldml> node found in parseBundle()"); } if(verbose) { printInfo("INFO: "); } for(Node node=ldml.getFirstChild(); node!=null; node=node.getNextSibling()){ if(node.getNodeType()!=Node.ELEMENT_NODE){ continue; } String name = node.getNodeName(); ICUResourceWriter.Resource res = null; if(verbose) { System.out.print(name+" "); } if(name.equals(LDMLConstants.ALIAS)){ ICUResourceWriter.ResourceString str = new ICUResourceWriter.ResourceString(); str.name = "\"%%ALIAS\""; str.val = LDMLUtilities.getAttributeValue(node, LDMLConstants.SOURCE); res = str; table.first = current = null; }else if(name.equals(LDMLConstants.IDENTITY)){ parseIdentity(table, node, xpath); current = findLast(table.first); continue; }else if (name.equals(LDMLConstants.SPECIAL)){ res = parseSpecialElements(node, xpath); }else if(name.equals(LDMLConstants.LDN)){ res = parseLocaleDisplayNames(node, xpath); }else if(name.equals(LDMLConstants.LAYOUT)){ res = parseLayout(node, xpath); //if(DEBUG)printXPathWarning(node, xpath); }else if(name.equals(LDMLConstants.CHARACTERS)){ res = parseCharacters(node, xpath); }else if(name.equals(LDMLConstants.DELIMITERS)){ res = parseDelimiters(node, xpath); }else if(name.equals(LDMLConstants.MEASUREMENT)){ res = parseMeasurement(node, xpath); }else if(name.equals(LDMLConstants.DATES)){ res = parseDates(node, xpath); }else if(name.equals(LDMLConstants.NUMBERS)){ res = parseNumbers(node, xpath); }else if(name.equals(LDMLConstants.COLLATIONS)){ if(locName.equals("root")){ ICUResourceWriter.ResourceProcess process = new ICUResourceWriter.ResourceProcess(); process.name="UCARules"; process.ext="uca_rules"; process.val = "../unidata/UCARules.txt"; res = process; process.next = parseCollations(node, xpath); }else{ res = parseCollations(node, xpath); } }else if(name.equals(LDMLConstants.POSIX)){ res = parsePosix(node, xpath); }else if(name.equals(LDMLConstants.SEGMENTATIONS)){ // TODO: FIX ME with parseSegmentations(); if(DEBUG)printXPathWarning(node, xpath); }else if(name.indexOf("icu:")>-1|| name.indexOf("openOffice:")>-1){ //TODO: these are specials .. ignore for now ... figure out // what to do later }else if(name.equals(LDMLConstants.REFERENCES)){ //TODO: This is special documentation... ignore for now if(DEBUG)printXPathWarning(node, xpath); }else{ System.err.println("Encountered unknown <"+root.getNodeName()+"> subelement: "+name); System.exit(-1); } if(res!=null){ if(current == null){ table.first = res; current = findLast(res); }else{ current.next = res; current = findLast(res); } res = null; } xpath.delete(savedLength,xpath.length()); } if(verbose) { System.out.println(); } if(supplementalDoc !=null){ /* TODO: comment this out for now. We shall revisit when * we have information on how to present the script data * with new API ICUResourceWriter.Resource res = parseLocaleScript(supplementalDoc); if(res!=null){ if(current == null){ table.first = res; current = findLast(res); }else{ current.next = res; current = findLast(res); } res = null; } ICUResourceWriter.Resource res = parseMetaData(supplementalDoc); */ } return table; } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/005faf84f23ffc3cad3cfa344665048ebcab88d0/LDML2ICUConverter.java/clean/tools/java/org/unicode/cldr/icu/LDML2ICUConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
28009,
1420,
2289,
18,
1420,
1109,
3405,
12,
907,
1365,
15329,
3639,
28009,
1420,
2289,
18,
1420,
1388,
1014,
273,
394,
28009,
1420,
2289,
18,
1420,
1388,
5621,
3639,
28009,
1420,
228... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28009,
1420,
2289,
18,
1420,
1109,
3405,
12,
907,
1365,
15329,
3639,
28009,
1420,
2289,
18,
1420,
1388,
1014,
273,
394,
28009,
1420,
2289,
18,
1420,
1388,
5621,
3639,
28009,
1420,
228... | |
case IProblem.MissingReturnType: | case IProblem.MissingReturnType: | public static boolean hasCorrections(int problemId) { switch (problemId) { case IProblem.UnterminatedString: case IProblem.UnusedImport: case IProblem.UndefinedMethod: case IProblem.UndefinedConstructor: case IProblem.ParameterMismatch: case IProblem.MethodButWithConstructorName: case IProblem.UndefinedField: case IProblem.UndefinedName: case IProblem.PublicClassMustMatchFileName: case IProblem.PackageIsNotExpectedPackage: case IProblem.UndefinedType: case IProblem.FieldTypeNotFound: case IProblem.ArgumentTypeNotFound: case IProblem.ReturnTypeNotFound: case IProblem.SuperclassNotFound: case IProblem.ExceptionTypeNotFound: case IProblem.InterfaceNotFound: case IProblem.TypeMismatch: case IProblem.UnhandledException: case IProblem.VoidMethodReturnsValue: case IProblem.MissingReturnType: case IProblem.NonExternalizedStringLiteral: case IProblem.NonStaticAccessToStaticField: case IProblem.NonStaticAccessToStaticMethod: return true; default: return false; } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/154ad8b826ff49a52e830a6da65246480293f4df/JavaCorrectionProcessor.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
711,
20884,
87,
12,
474,
6199,
548,
13,
288,
202,
202,
9610,
261,
18968,
548,
13,
288,
1082,
202,
3593,
467,
13719,
18,
984,
29133,
780,
30,
1082,
202,
3593,
467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
711,
20884,
87,
12,
474,
6199,
548,
13,
288,
202,
202,
9610,
261,
18968,
548,
13,
288,
1082,
202,
3593,
467,
13719,
18,
984,
29133,
780,
30,
1082,
202,
3593,
467,
... |
StringWriter expectedContents = new StringWriter(); Metadata m = new Metadata(); m.setGroupId( "org.apache.maven.test" ); m.setArtifactId( "get-updated-metadata" ); m.setVersion( "1.0-SNAPSHOT" ); m.setVersioning( new Versioning() ); m.getVersioning().setSnapshot( new Snapshot() ); m.getVersioning().getSnapshot().setTimestamp( "20050831.111213" ); m.getVersioning().getSnapshot().setBuildNumber( 2 ); m.setModelEncoding( null ); new MetadataXpp3Writer().write( expectedContents, m ); | String expectedContents = getExpectedMetadata( "get-updated-metadata", "1.0-SNAPSHOT", getVersioning( "20050831.111213", 2 ) ); | public void testGetSnapshotMetadataExpired() throws IOException, ResourceDoesNotExistException, ProxyException, ParseException { String path = "org/apache/maven/test/get-updated-metadata/1.0-SNAPSHOT/maven-metadata.xml"; File expectedFile = new File( defaultManagedRepository.getBasedir(), path ); String unexpectedContents = FileUtils.fileRead( new File( defaultManagedRepository.getBasedir(), path ) ); assertTrue( expectedFile.exists() ); new File( expectedFile.getParentFile(), ".metadata-proxied1" ).setLastModified( getPastDate().getTime() ); proxiedRepository1.getReleases().setUpdatePolicy( ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER ); proxiedRepository1.getSnapshots().setUpdatePolicy( ArtifactRepositoryPolicy.UPDATE_POLICY_ALWAYS ); File file = requestHandler.get( path, proxiedRepositories, defaultManagedRepository ); assertEquals( "Check file matches", expectedFile, file ); assertTrue( "Check file created", file.exists() ); StringWriter expectedContents = new StringWriter(); Metadata m = new Metadata(); m.setGroupId( "org.apache.maven.test" ); m.setArtifactId( "get-updated-metadata" ); m.setVersion( "1.0-SNAPSHOT" ); m.setVersioning( new Versioning() ); m.getVersioning().setSnapshot( new Snapshot() ); m.getVersioning().getSnapshot().setTimestamp( "20050831.111213" ); m.getVersioning().getSnapshot().setBuildNumber( 2 ); m.setModelEncoding( null ); new MetadataXpp3Writer().write( expectedContents, m ); assertEquals( "Check content matches", expectedContents.toString(), FileUtils.fileRead( file ) ); assertFalse( "Check content doesn't match proxy version", unexpectedContents.equals( FileUtils.fileRead( file ) ) ); } | 28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/01775020179303e5a4b8a759780d829cc5ffa36e/ProxyRequestHandlerTest.java/clean/maven-repository-proxy/src/test/java/org/apache/maven/repository/proxy/ProxyRequestHandlerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
4568,
2277,
10556,
1435,
3639,
1216,
1860,
16,
2591,
26621,
16,
7659,
503,
16,
10616,
565,
288,
3639,
514,
589,
273,
315,
3341,
19,
19211,
19,
81,
7638,
19,
3813,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
4568,
2277,
10556,
1435,
3639,
1216,
1860,
16,
2591,
26621,
16,
7659,
503,
16,
10616,
565,
288,
3639,
514,
589,
273,
315,
3341,
19,
19211,
19,
81,
7638,
19,
3813,
... |
SAMRawReceiver recv) throws I2PSessionException { | SAMRawReceiver recv) throws IOException, DataFormatException, I2PSessionException { | private void initSAMRawSession(InputStream destStream, Properties props, SAMRawReceiver recv) throws I2PSessionException { this.recv = recv; _log.debug("SAM RAW session instantiated"); handler = new SAMRawSessionHandler(destStream, props); Thread t = new I2PThread(handler, "SAMRawSessionHandler"); t.start(); } | 27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/7b03c95cfd85cf41cc4a19a116d9b1a94eb588cd/SAMRawSession.java/clean/apps/sam/java/src/net/i2p/sam/SAMRawSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
55,
2192,
4809,
2157,
12,
4348,
1570,
1228,
16,
6183,
3458,
16,
6862,
282,
30712,
4809,
12952,
10665,
13,
1216,
467,
22,
52,
2157,
503,
288,
202,
2211,
18,
18334,
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,
1208,
55,
2192,
4809,
2157,
12,
4348,
1570,
1228,
16,
6183,
3458,
16,
6862,
282,
30712,
4809,
12952,
10665,
13,
1216,
467,
22,
52,
2157,
503,
288,
202,
2211,
18,
18334,
273,
... |
for (int c = 0; c < cpc; c++) { rowCount++; if (colors != null && cpv > colors.length) { if (Debug.debugging("asrpdetail")) { Debug.output("Got value that is too big for colortable"); | try { for (int c = 0; c < cpc; c++) { rowCount++; if (colors != null && cpv > colors.length) { if (Debug.debugging("asrpdetail")) { Debug.output("Got value that is too big for colortable"); } | public OMScalingRaster getBlock(int x, int y) throws IOException { float ullat = pso - y*degPerVerBlock; float ullon = lso + x*degPerHorBlock; float lrlat = ullat - degPerVerBlock; float lrlon = ullon + degPerHorBlock; // Get image data. if (tsi != null) { int index = y * numHorBlocks_N + x; // Check for not blowing the list end... if (index >= tsi.size()) { return null; } // Subtracting one because the values look like they start // with 1. int blockOffset = ((DDFSubfield)tsi.get(index)).intValue() - 1; if (Debug.debugging("asrp")) { Debug.output("ASRPDirectory.getBlock: index of (" + x + ", " + y + ") is " + blockOffset); } DDFModule mod = img.getInfo(); mod.seek(tileDataOffset + blockOffset); int byteCount = 0; // Which data byte is being set int numBlockPixels = numHorPixels_Q * numVerPixels_P; byte[] data = new byte[numBlockPixels]; // image byte data int rowCount = 0; // the per row count, should equal 128 ( numHorPixels_Q) at the end of every row int numRow = 0; int cpc = 0; // current pixel count for file pointer int cpv = 0; // current pixel value for file pointer while (byteCount < numBlockPixels) { switch (pixelCountBits) { case 8: cpc = mod.read(); break; case 4: cpc = mod.read() >> 4; // need to back pointer up 4 bits before reading cpv?? Debug.output("CAUTION: 4 bit count"); break; default: cpc = 1; } cpv = mod.read(); // OK, cpv has value, cpc says how many pixels that goes in. for (int c = 0; c < cpc; c++) { rowCount++; if (colors != null && cpv > colors.length) { if (Debug.debugging("asrpdetail")) { Debug.output("Got value that is too big for colortable"); } } data[byteCount + c] = (byte) cpv; } byteCount += cpc; if (rowCount == numHorPixels_Q) { rowCount = 0; } } if (Debug.debugging("asrpdetail")) { Debug.output("ASRPDirectory creating image covering (" + ullat + ", " + ullon + "), (" + lrlat + ", " + lrlon + ")"); } return new OMScalingRaster(ullat, ullon, lrlat, lrlon, numHorPixels_Q, numVerPixels_P, data, getColors(), 255); } return null; } | 47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/7d776035a9c68b65487ff1d5f5214b0ace4c9511/ASRPDirectory.java/buggy/src/openmap/com/bbn/openmap/dataAccess/asrp/ASRPDirectory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
531,
3537,
4876,
18637,
11902,
12,
474,
619,
16,
509,
677,
13,
1216,
1860,
288,
3639,
1431,
225,
420,
270,
273,
293,
2048,
300,
677,
14,
9923,
2173,
3945,
1768,
31,
3639,
1431,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
531,
3537,
4876,
18637,
11902,
12,
474,
619,
16,
509,
677,
13,
1216,
1860,
288,
3639,
1431,
225,
420,
270,
273,
293,
2048,
300,
677,
14,
9923,
2173,
3945,
1768,
31,
3639,
1431,
22... |
DesignElement.VIEW_ACTION_PROP ); | IDesignElementModel.VIEW_ACTION_PROP ); | public void visitColumn( TableColumn obj ) { // If there is no property defined for column, nothing should be // written. writer.startElement( DesignSchemaConstants.COLUMN_TAG ); writer.attribute( DesignSchemaConstants.ID_ATTRIB, new Long( obj .getID( ) ).toString( ) ); attribute( obj, DesignSchemaConstants.VIEW_ACTION_ATTRIB, DesignElement.VIEW_ACTION_PROP ); super.visitColumn( obj ); property( obj, TableColumn.WIDTH_PROP ); property( obj, TableColumn.REPEAT_PROP ); property( obj, TableColumn.SUPPRESS_DUPLICATES_PROP ); writeStructureList( obj, TableColumn.VISIBILITY_PROP ); writeStyle( obj ); writer.endElement( ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d802c33711e0d111551ae23575895cd060f085b6/ModuleWriter.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
1494,
12,
3555,
1494,
1081,
262,
202,
95,
202,
202,
759,
971,
1915,
353,
1158,
1272,
2553,
364,
1057,
16,
5083,
1410,
506,
202,
202,
759,
5941,
18,
202,
202,
6299,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
1494,
12,
3555,
1494,
1081,
262,
202,
95,
202,
202,
759,
971,
1915,
353,
1158,
1272,
2553,
364,
1057,
16,
5083,
1410,
506,
202,
202,
759,
5941,
18,
202,
202,
6299,
... |
InstructionHandle defaultTarget = ins.getTarget(); if(defaultTarget == null){ throw new IllegalStateException(); } targetList.add(new Target(defaultTarget, SWITCH_DEFAULT_EDGE)); } | public void visitSelect(Select ins) { isBranch = true; // Add non-default switch edges. InstructionHandle[] targets = ins.getTargets(); for (int i = 0; i < targets.length; ++i) { targetList.add(new Target(targets[i], SWITCH_EDGE)); } // Add default switch edge. InstructionHandle defaultTarget = ins.getTarget(); if(defaultTarget == null){ throw new IllegalStateException(); } targetList.add(new Target(defaultTarget, SWITCH_DEFAULT_EDGE)); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/TargetEnumeratingVisitor.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/TargetEnumeratingVisitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
3391,
12,
3391,
2763,
13,
288,
202,
291,
7108,
273,
638,
31,
202,
759,
1436,
1661,
17,
1886,
1620,
5231,
18,
202,
11983,
3259,
8526,
5774,
273,
2763,
18,
588,
9432,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
3391,
12,
3391,
2763,
13,
288,
202,
291,
7108,
273,
638,
31,
202,
759,
1436,
1661,
17,
1886,
1620,
5231,
18,
202,
11983,
3259,
8526,
5774,
273,
2763,
18,
588,
9432,
562... | |
public WebRequestWithCryptedUrl(final HttpServletRequest request) { super(request); // Encoded query string have only a single parameter named "x" final String secureParam = request.getParameter("x"); if ((secureParam != null) && (secureParam.length() > 0)) { // Get the crypt implementation from the application ICrypt urlCrypt = Application.get().getSecuritySettings().getCryptFactory().newCrypt(); // Decrypt the query string final String queryString = urlCrypt.decrypt(secureParam); // The querystring might have been shortened (length reduced). // In that case, lengthen the query string again. this.queryString = rebuildUrl(queryString); // extract parameter key/value pairs from the query string this.parameters = analyzeQueryString(this.queryString); } else { // If "x" parameter does not exist, we assume the query string // is not encoded. // Note: You might want to throw an exception, if you don't want // the automatic fallback. this.queryString = null; this.parameters = new ValueMap(); } // If available, add POST parameters as well. They are not encrypted. // The parameters from HttpRequest final Enumeration paramNames = request.getParameterNames(); // For all parameters (POST + URL query string) while (paramNames.hasMoreElements()) { String paramName = (String)paramNames.nextElement(); // Ignore the "x" parameter if (!"x".equalsIgnoreCase(paramName)) { String[] values = request.getParameterValues(paramName); // add key/value to our parameter map this.parameters.put(paramName, values); } } } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/1791be1f14a7ae57f7ab01d4e7fc42253d2d5975/WebRequestWithCryptedUrl.java/buggy/wicket/src/java/wicket/protocol/http/WebRequestWithCryptedUrl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2999,
691,
1190,
39,
4567,
1489,
12,
6385,
9984,
590,
13,
202,
95,
202,
202,
9565,
12,
2293,
1769,
202,
202,
759,
23306,
843,
533,
1240,
1338,
279,
2202,
1569,
4141,
315,
92,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2999,
691,
1190,
39,
4567,
1489,
12,
6385,
9984,
590,
13,
202,
95,
202,
202,
9565,
12,
2293,
1769,
202,
202,
759,
23306,
843,
533,
1240,
1338,
279,
2202,
1569,
4141,
315,
92,
... | ||
topGradientValue, 0.6f); | topGradientValue, 1.0f); | private void setGradientColours() { HSV col = new HSV(colour); // top gradient value from HSV model. float topGradientValue = col.getValue(); // bottom gradient value from HSV model. float bottomGradientValue = col.getValue(); // top and bottom gradient saturation from HSV model. float topGradientSaturation, bottomGradientSaturation; // if colour greyscale(achromatic) don't touch saturation if (col.getSaturation() == 0) { topGradientSaturation = bottomGradientSaturation = col.getSaturation(); // A check to see what gives greatest increase, +0.3 or *1.3 // and set topGradientValue to that. topGradientValue = col.getValue()+0.3f; if (col.getValue()*1.3f > topGradientValue) topGradientValue = col.getValue()*1.3f; if (topGradientValue>1) topGradientValue = 1; // Set bottomGradientValue to 75% of colour value. bottomGradientValue = col.getValue()*0.75f; } else { // We're in a colour space. // Increase topGradientValue to 1.5 * value of colour face. topGradientValue = col.getValue()*1.5f; if (topGradientValue>1) topGradientValue = 1; topGradientSaturation = col.getSaturation()*0.6f; bottomGradientSaturation = col.getSaturation(); } gradientStartHSV = new HSV(col.getHue(), topGradientSaturation, topGradientValue, 0.6f); gradientStartRGB = gradientStartHSV.toColorA(); gradientEndHSV = new HSV(col.getHue(), bottomGradientSaturation, bottomGradientValue, 0.6f); gradientEndRGB = gradientEndHSV.toColorA(); } | 13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/3878a115ce22ca0c57db2b2488dd61685384ba45/ColouredButtonUI.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/ColouredButtonUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
444,
15651,
914,
4390,
1435,
565,
288,
3639,
670,
23927,
645,
273,
394,
670,
23927,
12,
27408,
1769,
540,
368,
1760,
10292,
460,
628,
670,
23927,
938,
18,
2398,
1431,
1760,
156... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
15651,
914,
4390,
1435,
565,
288,
3639,
670,
23927,
645,
273,
394,
670,
23927,
12,
27408,
1769,
540,
368,
1760,
10292,
460,
628,
670,
23927,
938,
18,
2398,
1431,
1760,
156... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.