rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
this.running = false; this.wishes.clear();
Election.running = false; Election.wishes.clear();
public synchronized void run() { try { wait(WAITSECS * 1000); } catch (InterruptedException e) { e.printStackTrace(); } int score[] = { 0, 0, 0, 0, 0, 0 }; int i_user; c3ddispatcher.showMessageAll("Election finished"); for (Enumeration e = wishes.keys(); e.hasMoreElements();) { i_user = ((Integer) e.nextElement()).intValue(); Integer wish = (Integer) wishes.get(new Integer(i_user)); c3ddispatcher.showMessageAll( " User " + c3ddispatcher.nameOfUser(i_user) + " voted '" + voteString(wish) + "'"); // update the scores score[wish.intValue()]++; } c3ddispatcher.showMessageAll( " Result:\n " + score[RIGHT] + " right, " + score[LEFT] + " left [rotate]\n " + score[UP] + " up ," + score[DOWN] + " down [vertical]\n " + score[CLOCKWISE] + " right," + score[UNCLOCKWISE] + " left [spin]"); // Computes the winner int winner = -1; for (int i = 0; i < score.length; i++) { // If a candidate has got all the votes if (score[i] == wishes.size()) winner = i; } switch (winner) { case UP : c3ddispatcher.showMessageAll( " The scene will be rotated up."); this.running = false; this.wishes.clear(); c3ddispatcher.rotateUp(0); break; case DOWN : c3ddispatcher.showMessageAll( " The scene will be rotated down."); this.running = false; this.wishes.clear(); c3ddispatcher.rotateDown(0); break; case LEFT : c3ddispatcher.showMessageAll( " The scene will be rotated left."); this.running = false; this.wishes.clear(); c3ddispatcher.rotateLeft(0); break; case RIGHT : c3ddispatcher.showMessageAll( " The scene will be rotated right."); this.running = false; this.wishes.clear(); c3ddispatcher.rotateRight(0); break; case CLOCKWISE : c3ddispatcher.showMessageAll( " The scene will be spinned right"); this.running = false; this.wishes.clear(); c3ddispatcher.spinClock(0); break; case UNCLOCKWISE : c3ddispatcher.showMessageAll( " The scene will be spinned left"); this.running = false; this.wishes.clear(); c3ddispatcher.spinUnclock(0); break; default : c3ddispatcher.showMessageAll( " No consensus found, vote again please!"); } this.running = false; this.wishes.clear(); }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/3300f7890312c39f67f23d650ba78b3f068cd88a/C3DDispatcher.java/clean/src/org/objectweb/proactive/examples/c3d/C3DDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1086, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 7048, 12, 19046, 1090, 4596, 380, 4336, 1769, 202, 202, 97, 202, 202, 14683, 261, 24485, 503, 425, 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, 225, 202, 482, 3852, 918, 1086, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 7048, 12, 19046, 1090, 4596, 380, 4336, 1769, 202, 202, 97, 202, 202, 14683, 261, 24485, 503, 425, 13, ...
fCssURL = Platform.resolve(cssURL);
fCssURL = FileLocator.resolve(cssURL);
private void setCssURL(URL cssURL) { try { if (cssURL != null) fCssURL = Platform.resolve(cssURL); } catch (IOException e) { } if (fCssURL == null && fCssPurpose != BUILD) fCssURL = getResourceURL(getProductPlugin(), PLATFORM_CSS); }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/14e22d7e5a95c16502b76037edf022a40dfb43ee/SchemaTransformer.java/clean/org.eclipse.pde/src/org/eclipse/pde/internal/builders/SchemaTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 444, 7359, 1785, 12, 1785, 3747, 1785, 13, 288, 202, 202, 698, 288, 1082, 202, 430, 261, 5212, 1785, 480, 446, 13, 4697, 202, 74, 7359, 1785, 273, 11810, 18, 10828, 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, 225, 202, 1152, 918, 444, 7359, 1785, 12, 1785, 3747, 1785, 13, 288, 202, 202, 698, 288, 1082, 202, 430, 261, 5212, 1785, 480, 446, 13, 4697, 202, 74, 7359, 1785, 273, 11810, 18, 10828, 12, ...
+ ",\tType: " + attributeValue + ",\tCLDR: <" + result + ">, ICU: <" + temp + ">");
+ ", \tType: " + attributeValue + ", \tDraft: " + settings.get("draft") + ", \tCLDR: <" + result + ">, ICU: <" + temp + ">");
public void handleResult(ULocale locale, String result) { NumberFormat nf = null; double v = Double.NaN; for (Iterator it = settings.keySet().iterator(); it.hasNext();) { String attributeName = (String) it.next(); String attributeValue = (String) settings .get(attributeName); if (attributeName.equals("input")) { v = Double.parseDouble(attributeValue); continue; } // must be either numberType at this point int index = lookupValue(attributeValue, NumberNames); if (DEBUG) logln("Getting number format for " + locale); switch(index) { case 0: nf = NumberFormat.getInstance(locale); break; case 1: nf = NumberFormat.getIntegerInstance(locale); break; case 2: nf = NumberFormat.getNumberInstance(locale); break; case 3: nf = NumberFormat.getPercentInstance(locale); break; case 4: nf = NumberFormat.getScientificInstance(locale); break; default: nf = NumberFormat.getCurrencyInstance(locale); nf.setCurrency(Currency.getInstance(attributeValue)); break; } String temp = nf.format(v).trim(); result = result.trim(); // HACK because of SAX if (!temp.equals(result)) { errln("Number: Locale: " + locale + ",\tType: " + attributeValue + ",\tCLDR: <" + result + ">, ICU: <" + temp + ">"); } } }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/4005fb645228c0bfc6436d6882f3598c294ebec8/TestCLDRVsICU.java/clean/icu4j/src/com/ibm/icu/dev/test/cldr/TestCLDRVsICU.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1640, 1253, 12, 57, 3916, 2573, 16, 514, 563, 13, 288, 7734, 29587, 13958, 273, 446, 31, 7734, 1645, 331, 273, 3698, 18, 21172, 31, 7734, 364, 261, 3198, 518, 273, 1947,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1640, 1253, 12, 57, 3916, 2573, 16, 514, 563, 13, 288, 7734, 29587, 13958, 273, 446, 31, 7734, 1645, 331, 273, 3698, 18, 21172, 31, 7734, 364, 261, 3198, 518, 273, 1947,...
if (val == NO_SPEC_INT) throw new ParseException(
if (val == NO_SPEC_INT) { throw new ParseException(
protected int storeExpressionVals(int pos, String s, int type) throws ParseException { int incr = 0; int i = skipWhiteSpace(pos, s); if (i >= s.length()) return i; char c = s.charAt(i); if ((c >= 'A') && (c <= 'Z') && (!s.equals("L")) && (!s.equals("LW"))) { String sub = s.substring(i, i + 3); int sval = -1; int eval = -1; if (type == MONTH) { sval = getMonthNumber(sub) + 1; if (sval < 0) throw new ParseException("Invalid Month value: '" + sub + "'", i); if (s.length() > i + 3) { c = s.charAt(i + 3); if (c == '-') { i += 4; sub = s.substring(i, i + 3); eval = getMonthNumber(sub) + 1; if (eval < 0) throw new ParseException( "Invalid Month value: '" + sub + "'", i); } } } else if (type == DAY_OF_WEEK) { sval = getDayOfWeekNumber(sub); if (sval < 0) throw new ParseException("Invalid Day-of-Week value: '" + sub + "'", i); if (s.length() > i + 3) { c = s.charAt(i + 3); if (c == '-') { i += 4; sub = s.substring(i, i + 3); eval = getDayOfWeekNumber(sub); if (eval < 0) throw new ParseException( "Invalid Day-of-Week value: '" + sub + "'", i); if (sval > eval) throw new ParseException( "Invalid Day-of-Week sequence: " + sval + " > " + eval, i); } else if (c == '#') { try { i += 4; nthdayOfWeek = Integer.parseInt(s.substring(i)); if (nthdayOfWeek < 1 || nthdayOfWeek > 5) throw new Exception(); } catch (Exception e) { throw new ParseException( "A numeric value between 1 and 5 must follow the '#' option", i); } } else if (c == 'L') { lastdayOfWeek = true; i++; } } } else { throw new ParseException( "Illegal characters for this position: '" + sub + "'", i); } if (eval != -1) incr = 1; addToSet(sval, eval, incr, type); return (i + 3); } if (c == '?') { i++; if ((i + 1) < s.length() && (s.charAt(i) != ' ' && s.charAt(i + 1) != '\t')) throw new ParseException("Illegal character after '?': " + s.charAt(i), i); if (type != DAY_OF_WEEK && type != DAY_OF_MONTH) throw new ParseException( "'?' can only be specfied for Day-of-Month or Day-of-Week.", i); if (type == DAY_OF_WEEK && !lastdayOfMonth) { int val = ((Integer) daysOfMonth.last()).intValue(); if (val == NO_SPEC_INT) throw new ParseException( "'?' can only be specfied for Day-of-Month -OR- Day-of-Week.", i); } addToSet(NO_SPEC_INT, -1, 0, type); return i; } if (c == '*' || c == '/') { if (c == '*' && (i + 1) >= s.length()) { addToSet(ALL_SPEC_INT, -1, incr, type); return i + 1; } else if (c == '/' && ((i + 1) >= s.length() || s.charAt(i + 1) == ' ' || s .charAt(i + 1) == '\t')) throw new ParseException( "'/' must be followed by an integer.", i); else if (c == '*') i++; c = s.charAt(i); if (c == '/') { // is an increment specified? i++; if (i >= s.length()) throw new ParseException("Unexpected end of string.", i); incr = getNumericValue(s, i); i++; if (incr > 10) i++; if (incr > 59 && (type == SECOND || type == MINUTE)) throw new ParseException( "Increment > 60 : " + incr, i); else if (incr > 23 && (type == HOUR)) throw new ParseException( "Increment > 24 : " + incr, i); else if (incr > 31 && (type == DAY_OF_MONTH)) throw new ParseException( "Increment > 31 : " + incr, i); else if (incr > 7 && (type == DAY_OF_WEEK)) throw new ParseException( "Increment > 7 : " + incr, i); else if (incr > 12 && (type == MONTH)) throw new ParseException("Increment > 12 : " + incr, i); } else incr = 1; addToSet(ALL_SPEC_INT, -1, incr, type); return i; } else if (c == 'L') { i++; if (type == DAY_OF_MONTH) lastdayOfMonth = true; if (type == DAY_OF_WEEK) addToSet(7, 7, 0, type); if(type == DAY_OF_MONTH && s.length() > i) { c = s.charAt(i); if(c == 'W') { nearestWeekday = true; i++; } } return i; } else if (c >= '0' && c <= '9') { int val = Integer.parseInt(String.valueOf(c)); i++; if (i >= s.length()) addToSet(val, -1, -1, type); else { c = s.charAt(i); if (c >= '0' && c <= '9') { ValueSet vs = getValue(val, s, i); val = vs.value; i = vs.pos; } i = checkNext(i, s, val, type); return i; } } else throw new ParseException("Unexpected character: " + c, i); return i; }
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/CronExpression.java/clean/src/java/org/quartz/CronExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 1707, 2300, 13169, 12, 474, 949, 16, 514, 272, 16, 509, 618, 13, 5411, 1216, 10616, 288, 3639, 509, 17633, 273, 374, 31, 3639, 509, 277, 273, 2488, 23108, 12, 917, 16, 272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 1707, 2300, 13169, 12, 474, 949, 16, 514, 272, 16, 509, 618, 13, 5411, 1216, 10616, 288, 3639, 509, 17633, 273, 374, 31, 3639, 509, 277, 273, 2488, 23108, 12, 917, 16, 272, ...
public Symbol(RandomAccessFile file, long offset) throws IOException { file.seek(offset); byte[] bytes = new byte[SYMSZ]; file.readFully(bytes); ReadMemoryAccess memory = new ReadMemoryAccess(bytes, true); memory.getBytes(_n_name); n_value = memory.getInt(); n_scnum = memory.getShort(); n_type = memory.getUnsignedShort(); n_sclass = memory.getByte(); n_numaux = memory.getByte();
public Symbol(RandomAccessFile file) throws IOException { this(file, file.getFilePointer());
public Symbol(RandomAccessFile file, long offset) throws IOException { file.seek(offset); byte[] bytes = new byte[SYMSZ]; file.readFully(bytes); ReadMemoryAccess memory = new ReadMemoryAccess(bytes, true); memory.getBytes(_n_name); n_value = memory.getInt(); n_scnum = memory.getShort(); n_type = memory.getUnsignedShort(); n_sclass = memory.getByte(); n_numaux = memory.getByte(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/17464c08f4d94cc47098c0d0ca9a1f7ddc481fe8/Coff.java/buggy/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/Coff.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 8565, 12, 8529, 26933, 585, 16, 1525, 1384, 13, 1216, 1860, 288, 1082, 202, 768, 18, 16508, 12, 3348, 1769, 1082, 202, 7229, 8526, 1731, 273, 394, 1160, 63, 7474, 3537, 62, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8565, 12, 8529, 26933, 585, 16, 1525, 1384, 13, 1216, 1860, 288, 1082, 202, 768, 18, 16508, 12, 3348, 1769, 1082, 202, 7229, 8526, 1731, 273, 394, 1160, 63, 7474, 3537, 62, 1...
List elements = createGroups();
List elements = createGroups(cPaths);
public void init(ICProject cproject) { fCurrCProject = cproject; List elements = createGroups(); fIncludeSymPathsList.setElements(elements); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/53738dc5bfed46178452b79843ccf0ac0f233d45/CPathIncludeSymbolEntryPage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathIncludeSymbolEntryPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 2871, 4109, 276, 4406, 13, 288, 202, 202, 74, 20143, 39, 4109, 273, 276, 4406, 31, 202, 202, 682, 2186, 273, 752, 3621, 5621, 202, 202, 74, 8752, 11901, 4466, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 12, 2871, 4109, 276, 4406, 13, 288, 202, 202, 74, 20143, 39, 4109, 273, 276, 4406, 31, 202, 202, 682, 2186, 273, 752, 3621, 5621, 202, 202, 74, 8752, 11901, 4466, ...
protected Browser getBrowser()
public Browser getBrowser()
protected Browser getBrowser() { HttpSession session = getSession(); Browser browser = (Browser) session.getAttribute(SESSION_BROWSER); if (browser == null) { browser = new DefaultBrowser(); session.setAttribute(SESSION_BROWSER, browser); } return browser; }
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/920dbb9002e52e8accd49b2d2d8186fe1ae9104b/ExecutionContext.java/clean/java/uk/ltd/getahead/dwr/ExecutionContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15408, 2882, 3358, 1435, 565, 288, 3639, 26166, 1339, 273, 7183, 5621, 3639, 15408, 4748, 273, 261, 9132, 13, 1339, 18, 588, 1499, 12, 7042, 67, 38, 24846, 1769, 3639, 309, 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, 377, 1071, 15408, 2882, 3358, 1435, 565, 288, 3639, 26166, 1339, 273, 7183, 5621, 3639, 15408, 4748, 273, 261, 9132, 13, 1339, 18, 588, 1499, 12, 7042, 67, 38, 24846, 1769, 3639, 309, 261, 112...
if (locked == 0) { continue; }
public void report() { for (XField xfield : statMap.keySet()) { FieldStats stats = statMap.get(xfield); WarningPropertySet propertySet = new WarningPropertySet(); int numReadUnlocked = stats.getNumAccesses(READ_UNLOCKED); int numWriteUnlocked = stats.getNumAccesses(WRITE_UNLOCKED); int numReadLocked = stats.getNumAccesses(READ_LOCKED); int numWriteLocked = stats.getNumAccesses(WRITE_LOCKED); int locked = numReadLocked + numWriteLocked; int biasedLocked = numReadLocked + (int) (WRITE_BIAS * numWriteLocked); int unlocked = numReadUnlocked + numWriteUnlocked; int biasedUnlocked = numReadUnlocked + (int) (WRITE_BIAS * numWriteUnlocked); int writes = numWriteLocked + numWriteUnlocked; if (locked == 0) { continue;// propertySet.addProperty(InconsistentSyncWarningProperty.NEVER_LOCKED); } if (unlocked == 0) { continue;// propertySet.addProperty(InconsistentSyncWarningProperty.NEVER_UNLOCKED); } if (DEBUG) { System.out.println("IS2: " + xfield); System.out.println(" RL: " + numReadLocked); System.out.println(" WL: " + numWriteLocked); System.out.println(" RU: " + numReadUnlocked); System.out.println(" WU: " + numWriteUnlocked); } if (!EVAL && numReadUnlocked > 0 && ((int) (UNSYNC_FACTOR * biasedUnlocked)) > biasedLocked) {// continue; propertySet.addProperty(InconsistentSyncWarningProperty.MANY_BIASED_UNLOCKED); } // NOTE: we ignore access to public, volatile, and final fields if (numWriteUnlocked + numWriteLocked == 0) { // No writes outside of constructor if (DEBUG) System.out.println(" No writes outside of constructor"); propertySet.addProperty(InconsistentSyncWarningProperty.NEVER_WRITTEN);// continue; } if (numReadUnlocked + numReadLocked == 0) { // No reads outside of constructor if (DEBUG) System.out.println(" No reads outside of constructor");// continue; propertySet.addProperty(InconsistentSyncWarningProperty.NEVER_READ); } if (stats.getNumLocalLocks() == 0) { if (DEBUG) System.out.println(" No local locks");// continue; propertySet.addProperty(InconsistentSyncWarningProperty.NO_LOCAL_LOCKS); } int freq; if (locked + unlocked > 0) { freq = (100 * locked) / (locked + unlocked); } else { freq = 0; } if (freq < MIN_SYNC_PERCENT) {// continue; propertySet.addProperty(InconsistentSyncWarningProperty.BELOW_MIN_SYNC_PERCENT); } if (DEBUG) System.out.println(" Sync %: " + freq); if (stats.getNumGetterMethodAccesses() >= unlocked) { // Unlocked accesses are only in getter method(s). propertySet.addProperty(InconsistentSyncWarningProperty.ONLY_UNSYNC_IN_GETTERS); } // At this point, we report the field as being inconsistently synchronized int priority = propertySet.computePriority(NORMAL_PRIORITY); if (!propertySet.isFalsePositive(priority)) { BugInstance bugInstance = new BugInstance("IS2_INCONSISTENT_SYNC", priority) .addClass(xfield.getClassName()) .addField(xfield) .addInt(freq).describe("INT_SYNC_PERCENT"); if (FindBugsAnalysisFeatures.isRelaxedMode()) { propertySet.decorateBugInstance(bugInstance); } // Add source lines for unsynchronized accesses for (Iterator<SourceLineAnnotation> j = stats.unsyncAccessIterator(); j.hasNext();) { SourceLineAnnotation accessSourceLine = j.next(); bugInstance.addSourceLine(accessSourceLine).describe("SOURCE_LINE_UNSYNC_ACCESS"); } if (SYNC_ACCESS) { // Add source line for synchronized accesses; // useful for figuring out what the detector is doing for (Iterator<SourceLineAnnotation> j = stats.syncAccessIterator(); j.hasNext();) { SourceLineAnnotation accessSourceLine = j.next(); bugInstance.addSourceLine(accessSourceLine).describe("SOURCE_LINE_SYNC_ACCESS"); } } if (EVAL) { bugInstance.addInt(biasedLocked).describe("INT_BIASED_LOCKED"); bugInstance.addInt(biasedUnlocked).describe("INT_BIASED_UNLOCKED"); } bugReporter.reportBug(bugInstance); } } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/f1cf1442a0ee16ca5df26cc09d26125d4bd83f21/FindInconsistentSync2.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindInconsistentSync2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2605, 1435, 288, 202, 202, 1884, 261, 60, 974, 619, 1518, 294, 610, 863, 18, 856, 694, 10756, 288, 1082, 202, 974, 4195, 3177, 273, 610, 863, 18, 588, 12, 92, 1518, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2605, 1435, 288, 202, 202, 1884, 261, 60, 974, 619, 1518, 294, 610, 863, 18, 856, 694, 10756, 288, 1082, 202, 974, 4195, 3177, 273, 610, 863, 18, 588, 12, 92, 1518, 176...
-1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, 41, -1, -1, 44, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, 0, -1, -1, -1, -1, -1, -1, 58, 59, -1, 10, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 41, 93, -1, 44, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 58, 59, -1, 10, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 125, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, 41, 93, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 93, -1, -1, 58, 59, -1, -1, -1, 63, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 325, 326, -1, -1, 329, 330, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 125, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 93, -1, -1, 58, 59, -1, -1, -1, 63, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 325, 326, -1, -1, 329, 330, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 125, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, -1, -1, -1, -1, -1, -1, -1, -1,
private static final short[] yyCheck3() { return new short[] { -1, -1, 10, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 125, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, 124, 125, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, 333, 334, -1, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, 93, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, -1, 37, 38, -1, 343, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, 93, 94, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, 44, 45, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, 326, 62, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, 44, 45, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 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, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 124, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, 38, -1, 338, 41, -1, -1, 44, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 37, 38, -1, 93, 94, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, 60, 41, 62, 63, 44, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, 41, -1, -1, 44, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 124, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, 94, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, -1, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, 60, -1, 62, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 318, 319, 320, 321, 322, 323, 324, 93, 94, 327, 328, -1, -1, -1, -1, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, 124, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 125, -1, -1, -1, -1, -1, 281, 282, -1, 94, -1, 96, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 0, 293, 294, 295, 296, 297, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 41, -1, -1, 44, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, 58, 59, 60, -1, 62, 63, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 0, 293, 294, 295, 296, 297, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 41, -1, -1, 44, -1, 338, -1, 125, -1, -1, 343, 304, 305, -1, -1, 308, -1, 58, 59, 60, -1, 62, 63, 316, 317, 318, 319, 320, 321, -1, 323, 324, 0, -1, 327, -1, -1, -1, 331, 332, 333, 334, 10, -1, -1, -1, -1, -1, -1, -1, -1, 344, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 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, 93, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, 125, -1, -1, -1, -1, -1, 281, 282, -1, -1, 41, -1, -1, 44, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 58, 59, -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, -1, -1, 93, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, 125, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, -1, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, 0, -1, -1, -1, -1, -1, -1, -1, 281, 282, 10, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 58, 59, -1, -1, -1, 63, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 93, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, 125, -1, 41, -1, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 0, 343, 41, -1, -1, 44, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, 0, -1, -1, -1, -1, -1, -1, 58, 59, -1, 10, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, 41, 93, -1, 44, -1, -1, -1, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, 58, 59, -1, 10, -1, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 125, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 0, -1, -1, 41, 93, -1, 44, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 325, 326, -1, 63, 329, 330, -1, -1, -1, -1, -1, -1, -1, 338, 125, -1, -1, -1, 343, 41, -1, -1, 44, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, 93, -1, -1, 58, 59, -1, -1, -1, 63, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, 125, 267, 268, 269, -1, 271, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 325, 326, -1, -1, 329, 330, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 125, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 325, 326, -1, -1, 329, 330, -1, 281, 282, -1, -1, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 0, -1, 262, 263, 264, -1, -1, 267, 268, 269, 10, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, 0, -1, 338, 41, -1, -1, 44, 343, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 338, 41, -1, -1, 44, 343, -1, -1, -1, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 41, -1, -1, 44, -1, -1, -1, 125, 10, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 41, -1, -1, 44, -1, -1, 125, 10, -1, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 41, -1, -1, 44, -1, -1, -1, 125, 10, -1, -1, -1, -1, -1, 93, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, 125, -1, -1, -1, -1, -1, 93, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 125, -1, 281, 282, -1, -1, -1, 93, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 262, 263, 264, 343, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, 262, 263, 264, -1, 343, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 338, 262, 263, 264, 0, 343, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 338, -1, 0, -1, -1, 343, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, -1, 41, 343, -1, 44, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 93, 58, 59, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 125, -1, -1, 41, 93, -1, 44, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 125, -1, -1, 41, -1, -1, 44, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, 41, -1, -1, 44, -1, 10, -1, -1, -1, -1, -1, 125, -1, -1, -1, 93, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, 93, 58, 59, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, 125, -1, -1, 10, 93, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, 41, -1, 125, 44, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, 93, -1, -1, 338, -1, -1, 290, 291, 343, 293, 294, 295, 296, 297, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, 125, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, -1, -1, -1, -1, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, 262, 263, 264, 338, -1, 267, 268, 269, 343, 271, -1, -1, -1, -1, -1, -1, 0, -1, -1, 281, 282, 41, -1, -1, 44, -1, 10, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, 58, 59, 338, -1, -1, -1, -1, 343, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, 93, 58, 59, 338, -1, -1, -1, -1, 343, 262, 263, 264, 0, -1, 267, 268, 269, -1, 271, -1, -1, -1, 10, -1, -1, -1, -1, -1, 281, 282, 94, -1, 125, -1, -1, -1, 93, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, -1, -1, -1, -1, -1, -1, -1, 125, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 343, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, 0, 91, -1, -1, 94, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, 124, 125, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, 91, -1, -1, 94, 290, 291, -1, 293, 294, 295, 296, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 125, -1, -1, -1, -1, -1, -1, -1, 281, 282, 124, 125, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 338, -1, -1, -1, -1, 343, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, -1, -1, -1, -1, 333, 334, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, 343, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, -1, 338, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 290, 291, 281, 293, 294, 295, 296, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 37, 38, 338, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, 0, 47, -1, -1, -1, -1, 91, -1, -1, 94, 10, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, 124, 125, 41, 42, 43, 44, 45, 46, 47, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 124, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, 91, -1, 0, 94, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 124, 125, -1, -1, -1, -1, -1, -1, -1, -1, 41, 59, 60, 61, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, 91, -1, -1, 94, 10, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, 124, 125, 41, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, 125, 58, 59, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 0, -1, 338, 93, -1, -1, -1, -1, -1, -1, 10, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 318, 319, 320, 321, 322, 323, 324, 325, -1, 327, 328, -1, -1, -1, 125, 333, 334, -1, 290, 291, 41, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, -1, 337, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 290, 291, -1, 293, 294, 295, 296, 297, 281, 0, 125, -1, -1, -1, -1, -1, -1, 290, 291, 10, 293, 294, 295, 296, 297, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 59, 60, 61, 62, 63, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, 0, -1, 290, 291, -1, 293, 294, 295, 296, 297, 10, -1, -1, -1, -1, -1, -1, 91, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, 41, 42, 43, 44, 45, 46, 47, -1, -1, 124, 125, -1, -1, -1, -1, -1, -1, -1, 59, 60, 61, 62, 63, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, 91, 290, 291, 94, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 124, 125, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, 336, -1, -1, 339, 340, 341, 342, -1, 126, -1, 346, 347, 348, 349, 350, 351, 33, -1, 290, 291, 356, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 262, 263, 264, -1, -1, -1, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, 33, -1, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, -1, -1, 333, 334, 335, 256, 257, 258, 259, 260, 261, 59, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, }; }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 23, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 300, 21, 16, 282, 300, 21, 16, 282, 1728, 16, 282, 300, 21, 16, 225, 890, 8942, 16, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 23, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 300, 21, 16, 282, 300, 21, 16, 282, 1728, 16, 282, 300, 21, 16, 225, 890, 8942, 16, 282, ...
generateReject(msg, 9, 0);
generateReject(msg, SessionRejectReason.COMPID_PROBLEM, 0);
private void doBadCompID(Message msg) throws IOException, FieldNotFound { generateReject(msg, 9, 0); generateLogout(); }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/2ecc4f22a8ee5e95b5c824dbef9ed4b93f5bb5e6/Session.java/buggy/src/quickfix/Session.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 6434, 2945, 734, 12, 1079, 1234, 13, 1216, 1860, 16, 2286, 2768, 288, 3639, 2103, 21705, 12, 3576, 16, 3877, 21705, 8385, 18, 10057, 734, 67, 3373, 38, 26817, 16, 374, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 6434, 2945, 734, 12, 1079, 1234, 13, 1216, 1860, 16, 2286, 2768, 288, 3639, 2103, 21705, 12, 3576, 16, 3877, 21705, 8385, 18, 10057, 734, 67, 3373, 38, 26817, 16, 374, 1...
phi.setFlag(ValueNumber.PHI_NODE);
int flags = ValueNumber.PHI_NODE;
void mergeAvailableLoadSets(ValueNumberFrame other, ValueNumberFactory factory) { if (REDUNDANT_LOAD_ELIMINATION) { // Merge available load sets. // Only loads that are available in both frames // remain available. All others are discarded. String s = ""; if (RLE_DEBUG) { s = "Merging " + this.availableLoadMapAsString() + " and " + other.availableLoadMapAsString(); } boolean changed = false; if (other.isBottom()) { changed = !this.availableLoadMap.isEmpty(); availableLoadMap.clear(); } else if (!other.isTop()) { for(Map.Entry<AvailableLoad,ValueNumber[]> e : availableLoadMap.entrySet()) { AvailableLoad load = e.getKey(); ValueNumber[] myVN = e.getValue(); ValueNumber[] otherVN = other.availableLoadMap.get(load); if (this.phiNodeForLoads && myVN != null && myVN.length == 1 && myVN[0].hasFlag(ValueNumber.PHI_NODE)) continue; if (!Arrays.equals(myVN, otherVN)) { ValueNumber phi = mergedLoads.get(load); if (phi == null) { phi = factory.createFreshValue(); phi.setFlag(ValueNumber.PHI_NODE); mergedLoads.put(load, phi); if (RLE_DEBUG) System.out.println("Creating phi node " + phi + " for " + load); } changed = true; e.setValue(new ValueNumber[] { phi }); } } } previouslyKnownAs.putAll(other.previouslyKnownAs); if (changed) this.phiNodeForLoads = true; if (changed && RLE_DEBUG) { System.out.println(s); System.out.println(" Result is " + this.availableLoadMapAsString()); System.out.println(" Set phi for " + System.identityHashCode(this)); } } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/178a8a22959527de0069eabd7b20212648458cfe/ValueNumberFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/vna/ValueNumberFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2691, 5268, 2563, 2785, 12, 620, 1854, 3219, 1308, 16, 1445, 1854, 1733, 3272, 13, 288, 202, 202, 430, 261, 5879, 5240, 6856, 67, 7783, 67, 41, 2053, 6236, 2689, 13, 288, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2691, 5268, 2563, 2785, 12, 620, 1854, 3219, 1308, 16, 1445, 1854, 1733, 3272, 13, 288, 202, 202, 430, 261, 5879, 5240, 6856, 67, 7783, 67, 41, 2053, 6236, 2689, 13, 288, 108...
static final void add(ArrayList list, Object[] array)
static final void add(List list, Object[] array)
static final void add(ArrayList list, Object[] array) { for (int i = 0; i < array.length; i++) { list.add(array[i]); } }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/0cc18052c959f8014f772086b193e28d7a6dd66a/RolapUtil.java/buggy/src/main/mondrian/rolap/RolapUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 918, 527, 12, 682, 666, 16, 1033, 8526, 526, 13, 565, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 526, 18, 2469, 31, 277, 27245, 288, 5411, 666, 18, 1289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 727, 918, 527, 12, 682, 666, 16, 1033, 8526, 526, 13, 565, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 526, 18, 2469, 31, 277, 27245, 288, 5411, 666, 18, 1289, 12, 1...
treeScrollPane.setPreferredSize(new Dimension(400, 100));
public JComponent createTreePanel() { treeModel = new DefaultTreeModel(null); tree = new JTree(treeModel); tree.setRootVisible(false); tree.setShowsRootHandles(true); DefaultTreeCellRenderer treeRenderer = new DefaultTreeCellRenderer(); treeRenderer.setClosedIcon(null); treeRenderer.setLeafIcon(null); treeRenderer.setOpenIcon(null); tree.setCellRenderer(treeRenderer); tree.addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { int selRow = tree.getRowForLocation(e.getX(), e.getY()); TreePath selPath = tree.getPathForLocation(e.getX(), e.getY()); if(selRow != -1) { if(e.getClickCount() == 2) { displayNodeInfo(selPath.getLastPathComponent()); e.consume(); } } } }); treeScrollPane = new JScrollPane(tree); treeScrollPane.setWheelScrollingEnabled(true); Box box = Box.createHorizontalBox(); box.add(Box.createHorizontalGlue()); box.add(createExpandAllButton()); box.add(createCollapseAllButton()); JPanel treePanel = new JPanel(new BorderLayout()); treePanel.add(treeScrollPane, BorderLayout.CENTER); treePanel.add(box, BorderLayout.SOUTH); treeScrollPane.setPreferredSize(new Dimension(400, 100)); return treePanel; }
4430 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4430/3029d954794e560a3676aa391be237fe6c91f4af/Debugger.java/buggy/src/org/antlr/works/debugger/Debugger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29058, 752, 2471, 5537, 1435, 288, 3639, 2151, 1488, 273, 394, 2989, 2471, 1488, 12, 2011, 1769, 3639, 2151, 273, 394, 804, 2471, 12, 3413, 1488, 1769, 3639, 2151, 18, 542, 2375, 62...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29058, 752, 2471, 5537, 1435, 288, 3639, 2151, 1488, 273, 394, 2989, 2471, 1488, 12, 2011, 1769, 3639, 2151, 273, 394, 804, 2471, 12, 3413, 1488, 1769, 3639, 2151, 18, 542, 2375, 62...
RubyFixnum.newFixnum(runtime, IOModes.NOCTTY));
runtime.newFixnum(IOModes.NOCTTY));
public static RubyClass createFileClass(Ruby runtime) { RubyClass fileClass = runtime.defineClass("File", runtime.getClasses().getIoClass()); RubyString separator = RubyString.newString(runtime, separator()); separator.freeze(); fileClass.defineConstant("SEPARATOR", separator); fileClass.defineConstant("Separator", separator); RubyString altSeparator = RubyString.newString(runtime, File.separatorChar == '/' ? "\\" : "/"); altSeparator.freeze(); fileClass.defineConstant("ALT_SEPARATOR", altSeparator); RubyString pathSeparator = RubyString.newString(runtime, File.pathSeparator); pathSeparator.freeze(); fileClass.defineConstant("PATH_SEPARATOR", pathSeparator); // Create constants for open flags fileClass.setConstant("RDONLY", RubyFixnum.newFixnum(runtime, IOModes.RDONLY)); fileClass.setConstant("WRONLY", RubyFixnum.newFixnum(runtime, IOModes.WRONLY)); fileClass.setConstant("RDWR", RubyFixnum.newFixnum(runtime, IOModes.RDWR)); fileClass.setConstant("CREAT", RubyFixnum.newFixnum(runtime, IOModes.CREAT)); fileClass.setConstant("EXCL", RubyFixnum.newFixnum(runtime, IOModes.EXCL)); fileClass.setConstant("NOCTTY", RubyFixnum.newFixnum(runtime, IOModes.NOCTTY)); fileClass.setConstant("TRUNC", RubyFixnum.newFixnum(runtime, IOModes.TRUNC)); fileClass.setConstant("APPEND", RubyFixnum.newFixnum(runtime, IOModes.APPEND)); fileClass.setConstant("NONBLOCK", RubyFixnum.newFixnum(runtime, IOModes.NONBLOCK)); CallbackFactory callbackFactory = runtime.callbackFactory(); fileClass.extendObject(runtime.getClasses().getFileTestModule()); fileClass.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod(RubyFile.class, "newInstance")); fileClass.defineSingletonMethod("open", callbackFactory.getOptSingletonMethod(RubyFile.class, "open")); fileClass.defineSingletonMethod("chmod", callbackFactory.getOptSingletonMethod(RubyFile.class, "chmod", RubyInteger.class)); fileClass.defineSingletonMethod("lstat", callbackFactory.getSingletonMethod(RubyFile.class, "lstat", RubyString.class)); fileClass.defineSingletonMethod("expand_path", callbackFactory.getOptSingletonMethod(RubyFile.class, "expand_path")); fileClass.defineSingletonMethod("unlink", callbackFactory.getOptSingletonMethod(RubyFile.class, "unlink")); fileClass.defineSingletonMethod("rename", callbackFactory.getSingletonMethod(RubyFile.class, "rename", IRubyObject.class, IRubyObject.class)); fileClass.defineSingletonMethod("delete", callbackFactory.getOptSingletonMethod(RubyFile.class, "unlink")); fileClass.defineSingletonMethod("dirname", callbackFactory.getSingletonMethod(RubyFile.class, "dirname", RubyString.class)); fileClass.defineSingletonMethod("join", callbackFactory.getOptSingletonMethod(RubyFile.class, "join")); fileClass.defineSingletonMethod("basename", callbackFactory.getOptSingletonMethod(RubyFile.class, "basename")); fileClass.defineSingletonMethod("truncate", callbackFactory.getSingletonMethod(RubyFile.class, "truncate", RubyString.class, RubyFixnum.class)); fileClass.defineMethod("initialize", callbackFactory.getOptMethod(RubyFile.class, "initialize")); fileClass.defineMethod("truncate", callbackFactory.getMethod(RubyFile.class, "truncate", RubyFixnum.class)); // Works around a strange-ish implementation that uses a static method on the superclass. // It broke when moved to indexed callbacks, so added this line: fileClass.defineMethod("print", callbackFactory.getOptSingletonMethod(RubyIO.class, "print")); return fileClass; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFile.java/buggy/src/org/jruby/RubyFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 21266, 797, 12, 54, 10340, 3099, 13, 288, 3639, 19817, 797, 585, 797, 273, 3099, 18, 11255, 797, 2932, 812, 3113, 1171, 3099, 18, 588, 4818, 7675, 588, 15963, 797, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 21266, 797, 12, 54, 10340, 3099, 13, 288, 3639, 19817, 797, 585, 797, 273, 3099, 18, 11255, 797, 2932, 812, 3113, 1171, 3099, 18, 588, 4818, 7675, 588, 15963, 797, ...
update("update ipInterface set nodeId = ? where nodeId = ? and ipAddr = ?", values); update("update ifServices set nodeId = ? where nodeId = ? and ipAddr = ?", values);
update("update ipInterface set nodeId = ? where nodeId = ? and ipAddr = ?;", values); update("update ifServices set nodeId = ? where nodeId = ? and ipAddr = ?;", values);
public void reparentInterface(String ipAddr, int oldNode, int newNode) { Object[] values = { new Integer(newNode), new Integer(oldNode), ipAddr }; update("update ipInterface set nodeId = ? where nodeId = ? and ipAddr = ?", values); update("update ifServices set nodeId = ? where nodeId = ? and ipAddr = ?", values); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/7fc2867031a646336a69eb6ad11ecd8b103f983e/MockDatabase.java/buggy/src/services/org/opennms/netmgt/mock/MockDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2071, 817, 1358, 12, 780, 2359, 3178, 16, 509, 1592, 907, 16, 509, 10942, 13, 288, 3639, 1033, 8526, 924, 273, 288, 394, 2144, 12, 2704, 907, 3631, 394, 2144, 12, 1673, 907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2071, 817, 1358, 12, 780, 2359, 3178, 16, 509, 1592, 907, 16, 509, 10942, 13, 288, 3639, 1033, 8526, 924, 273, 288, 394, 2144, 12, 2704, 907, 3631, 394, 2144, 12, 1673, 907, ...
public PacketBuilder(I2PAppContext ctx) {
public PacketBuilder(I2PAppContext ctx, UDPTransport transport) {
public PacketBuilder(I2PAppContext ctx) { _context = ctx; _log = ctx.logManager().getLog(PacketBuilder.class); }
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/55869af2cc954f7a0f712946337c63f1e58b1848/PacketBuilder.java/buggy/router/java/src/net/i2p/router/transport/udp/PacketBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11114, 1263, 12, 45, 22, 52, 3371, 1042, 1103, 16, 16230, 6568, 4736, 13, 288, 3639, 389, 2472, 273, 1103, 31, 3639, 389, 1330, 273, 1103, 18, 1330, 1318, 7675, 588, 1343, 12, 666...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11114, 1263, 12, 45, 22, 52, 3371, 1042, 1103, 16, 16230, 6568, 4736, 13, 288, 3639, 389, 2472, 273, 1103, 31, 3639, 389, 1330, 273, 1103, 18, 1330, 1318, 7675, 588, 1343, 12, 666...
} catch (Exception e) {}
} catch (Exception e) { }
public void handlePreferences(ApplicationEvent e) { e.setHandled(true); final ActionEvent event = new ActionEvent(e.getSource(),0,"Preferences"); SwingUtilities.invokeLater(new Runnable () { public void run () { try { prefsAction.actionPerformed(event); } catch (Exception e) {} } }); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/e7311a9aa2ac478953975abaa1c0c14e8201c062/PatchEdit.java/clean/JSynthLib/core/PatchEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 565, 1071, 918, 1640, 12377, 12, 3208, 1133, 425, 13, 288, 202, 1377, 425, 18, 542, 23186, 12, 3767, 1769, 202, 1377, 727, 19641, 871, 273, 3196, 202, 2704, 19641, 12, 73, 18, 588, 183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 565, 1071, 918, 1640, 12377, 12, 3208, 1133, 425, 13, 288, 202, 1377, 425, 18, 542, 23186, 12, 3767, 1769, 202, 1377, 727, 19641, 871, 273, 3196, 202, 2704, 19641, 12, 73, 18, 588, 183...
identifier.getOffset(), duple.getLastToken().getEndOffset() );
identifier.getOffset(), identifier.getEndOffset(), duple.getLastToken().getEndOffset() );
protected void namespaceDefinition(IASTScope scope) throws Backtrack { IToken first = consume(IToken.t_namespace); IToken identifier = null; // optional name if (LT(1) == IToken.tIDENTIFIER) identifier = identifier(); if (LT(1) == IToken.tLBRACE) { consume(); IASTNamespaceDefinition namespaceDefinition = null; try { namespaceDefinition = astFactory.createNamespaceDefinition( scope, (identifier == null ? "" : identifier.getImage()), first.getOffset(), (identifier == null ? first.getOffset() : identifier.getOffset())); } catch (ASTSemanticException e) { failParse(); throw backtrack; } namespaceDefinition.enterScope( requestor ); namepsaceDeclarationLoop : while (LT(1) != IToken.tRBRACE) { IToken checkToken = LA(1); switch (LT(1)) { case IToken.tRBRACE : //consume(Token.tRBRACE); break namepsaceDeclarationLoop; default : try { declaration(namespaceDefinition, null); } catch (Backtrack bt) { failParse(); if (checkToken == LA(1)) errorHandling(); } } if (checkToken == LA(1)) errorHandling(); } // consume the } IToken last = consume(IToken.tRBRACE); namespaceDefinition.setEndingOffset( last.getOffset() + last.getLength()); namespaceDefinition.exitScope( requestor ); } else if( LT(1) == IToken.tASSIGN ) { consume( IToken.tASSIGN ); if( identifier == null ) throw backtrack; ITokenDuple duple = name(); try { astFactory.createNamespaceAlias( scope, identifier.toString(), duple, first.getOffset(), identifier.getOffset(), duple.getLastToken().getEndOffset() ); } catch (ASTSemanticException e) { failParse(); throw backtrack; } } else { throw backtrack; } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e95da4dadebf96c72bbb248f97571b58e92fb39c/Parser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1981, 1852, 12, 45, 9053, 3876, 2146, 13, 3639, 1216, 4297, 4101, 565, 288, 3639, 467, 1345, 1122, 273, 7865, 12, 1285, 969, 18, 88, 67, 4937, 1769, 540, 467, 1345, 2756, 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, 4750, 918, 1981, 1852, 12, 45, 9053, 3876, 2146, 13, 3639, 1216, 4297, 4101, 565, 288, 3639, 467, 1345, 1122, 273, 7865, 12, 1285, 969, 18, 88, 67, 4937, 1769, 540, 467, 1345, 2756, 273...
/* replace the null-value with the actual column */
private void addColumnNode(TableColumn col) { int colNumber = col.getColumnNumber(); int colRepeat = col.getNumberColumnsRepeated(); if (columns.size() < colNumber) { //add nulls for non-occupied indices between //the last column up to and including the current one while (columns.size() < colNumber) { columns.add(null); } } //replace the null-value with the actual column columns.set(colNumber - 1, col); if (colRepeat > 1) { //in case column is repeated: //for the time being, add the same column //(colRepeat - 1) times to the columns list //TODO: need to force the column-number (?) for (int i = colRepeat - 1; --i >= 0;) { columns.add(col); } } //flag column indices used by this column int startIndex = columnIndex - 1; int endIndex = startIndex + colRepeat; flagColumnIndices(startIndex, endIndex); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/446682d2ebc577e1dd7b15af76fe4b651ee40db6/Table.java/buggy/src/java/org/apache/fop/fo/flow/Table.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1748, 1453, 326, 446, 17, 1132, 598, 326, 3214, 1057, 1195, 225, 1748, 1453, 326, 446, 17, 1132, 598, 326, 3214, 1057, 1195, 225, 1748, 1453, 326, 446, 17, 1132, 598, 326, 3214, 1057, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1748, 1453, 326, 446, 17, 1132, 598, 326, 3214, 1057, 1195, 225, 1748, 1453, 326, 446, 17, 1132, 598, 326, 3214, 1057, 1195, 225, 1748, 1453, 326, 446, 17, 1132, 598, 326, 3214, 1057, 1...
menu.add(new JMenuItem( controller.getAction(TreeViewerControl.CREATE_OBJECT)));
a = controller.getAction(TreeViewerControl.CREATE_OBJECT); item = new JMenuItem(a); menu.add(item); item.setText(a.getActionName()); menuItems.add(item);
private JMenu createFileMenu() { JMenu menu = new JMenu("File"); menu.setMnemonic(KeyEvent.VK_F); TreeViewerAction a = controller.getAction( TreeViewerControl.CREATE_TOP_CONTAINER); JMenuItem item = new JMenuItem(a); item.setText(a.getActionName()); menuItems.add(item); menu.add(item); menu.add(new JMenuItem( controller.getAction(TreeViewerControl.CREATE_OBJECT))); menu.add(createRootMenu()); menu.add(new JSeparator(JSeparator.HORIZONTAL)); a = controller.getAction(TreeViewerControl.VIEW); item = new JMenuItem(a); item.setText(a.getActionName()); menuItems.add(item); menu.add(item); menu.add(new JMenuItem( controller.getAction(TreeViewerControl.REFRESH_TREE))); menu.add(new JSeparator(JSeparator.HORIZONTAL)); menu.add(new JMenuItem( controller.getAction(TreeViewerControl.EXIT))); return menu; }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/ea7509babe2344eb702969105eb77096cc5b6bcf/TreeViewerWin.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerWin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 804, 4599, 21266, 4599, 1435, 565, 288, 3639, 804, 4599, 3824, 273, 394, 804, 4599, 2932, 812, 8863, 3639, 3824, 18, 542, 29668, 20918, 12, 653, 1133, 18, 58, 47, 67, 42, 1769, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 804, 4599, 21266, 4599, 1435, 565, 288, 3639, 804, 4599, 3824, 273, 394, 804, 4599, 2932, 812, 8863, 3639, 3824, 18, 542, 29668, 20918, 12, 653, 1133, 18, 58, 47, 67, 42, 1769, 36...
String storedPatterns = WorkbenchPlugin.getDefault().getPreferenceStore().getString(FILTERS_TAG);
IPreferenceStore viewsPrefs = ViewsPlugin.getDefault().getPreferenceStore(); String storedPatterns = viewsPrefs.getString(FILTERS_TAG); if (storedPatterns.length() == 0) { IPreferenceStore workbenchPrefs = WorkbenchPlugin.getDefault().getPreferenceStore(); storedPatterns = workbenchPrefs.getString(FILTERS_TAG); if (storedPatterns.length() > 0) { viewsPrefs.setValue(FILTERS_TAG, storedPatterns); workbenchPrefs.setValue(FILTERS_TAG, ""); } }
private void initializeFromPreferences() { // get the filters that were saved by ResourceNavigator.setFiltersPreference String storedPatterns = WorkbenchPlugin.getDefault().getPreferenceStore().getString(FILTERS_TAG); if (storedPatterns.length() == 0) { // revert to all filter extensions with selected == "true" // if there are no filters in the preference store List defaultFilters = FiltersContentProvider.getDefaultFilters(); String[] patterns = new String[defaultFilters.size()]; defaultFilters.toArray(patterns); setPatterns(patterns); return; } //Get the strings separated by a comma and filter them from the currently //defined ones List definedFilters = FiltersContentProvider.getDefinedFilters(); StringTokenizer entries = new StringTokenizer(storedPatterns, COMMA_SEPARATOR); List patterns = new ArrayList(); while (entries.hasMoreElements()) { String nextToken = entries.nextToken(); if (definedFilters.indexOf(nextToken) > -1) patterns.add(nextToken); } //Convert to an array of Strings String[] patternArray = new String[patterns.size()]; patterns.toArray(patternArray); setPatterns(patternArray);}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3da0ab5b81620532feca8036f5f14ed9af84d9c6/ResourcePatternFilter.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/navigator/ResourcePatternFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 4046, 1265, 12377, 1435, 288, 202, 759, 336, 326, 3415, 716, 4591, 5198, 635, 2591, 22817, 18, 542, 5422, 9624, 202, 780, 4041, 11268, 273, 4147, 22144, 3773, 18, 588, 1868, 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, 3238, 918, 4046, 1265, 12377, 1435, 288, 202, 759, 336, 326, 3415, 716, 4591, 5198, 635, 2591, 22817, 18, 542, 5422, 9624, 202, 780, 4041, 11268, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 5...
return value>>INUSE_SHIFT;
return count;
private static final int decInUse(VM_Address block) throws VM_PragmaInline { int value = VM_Magic.getMemoryInt(block.add(FREE_LIST_OFFSET)); value -= (1<<INUSE_SHIFT); VM_Magic.setMemoryInt(block.add(FREE_LIST_OFFSET), value); if (VM.VerifyAssertions) { VM._assert((value>>INUSE_SHIFT) < (1<<INUSE_BITS)); VM._assert((value>>INUSE_SHIFT) > 0); } return value>>INUSE_SHIFT; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/68f460ab7de81e233a45198a3c0b7fd03b3c6937/SegregatedFreeList.java/buggy/MMTk/src/org/mmtk/utility/alloc/SegregatedFreeList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 727, 509, 2109, 15435, 12, 7397, 67, 1887, 1203, 13, 377, 1216, 8251, 67, 2050, 9454, 10870, 288, 3639, 509, 460, 273, 8251, 67, 19289, 18, 588, 6031, 1702, 12, 2629, 18, 128...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 509, 2109, 15435, 12, 7397, 67, 1887, 1203, 13, 377, 1216, 8251, 67, 2050, 9454, 10870, 288, 3639, 509, 460, 273, 8251, 67, 19289, 18, 588, 6031, 1702, 12, 2629, 18, 128...
return getMessageBusiness().findMessages(messageCode.getCode(), iwc.getCurrentUser(), numberOfEntries, startingEntry);
return getMessageBusiness().findMessages(messageType, iwc.getCurrentUser(), numberOfEntries, startingEntry);
protected Collection getMessages(IWContext iwc, int startingEntry, int numberOfEntries) { try { return getMessageBusiness().findMessages(messageCode.getCode(), iwc.getCurrentUser(), numberOfEntries, startingEntry); } catch (FinderException fe) { log(fe); return new ArrayList(); } catch (RemoteException re) { log(re); return new ArrayList(); } }
57002 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57002/3b4fd98eccca0d445b86155e475e303aa53bb164/UserMessages.java/clean/src/java/com/idega/block/process/message/presentation/UserMessages.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2200, 20202, 12, 45, 59, 1042, 25522, 71, 16, 509, 5023, 1622, 16, 509, 7922, 5400, 13, 288, 202, 202, 698, 288, 1082, 202, 2463, 2381, 13423, 7675, 4720, 5058, 12, 2150, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2200, 20202, 12, 45, 59, 1042, 25522, 71, 16, 509, 5023, 1622, 16, 509, 7922, 5400, 13, 288, 202, 202, 698, 288, 1082, 202, 2463, 2381, 13423, 7675, 4720, 5058, 12, 2150, 108...
if(killed) return;
public synchronized void fatalError(SplitfileBlock block, int reasonCode) { if(killed) return; fatalErrors.inc(reasonCode); runningBlocks.remove(block); failedBlocksFatalErrors.add(block); maybeStart(false); }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/923f3296489fa89e5c0d76399b6de451cd594133/RetryTracker.java/buggy/src/freenet/client/RetryTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 10081, 668, 12, 5521, 768, 1768, 1203, 16, 509, 3971, 1085, 13, 288, 202, 202, 430, 12, 79, 13148, 13, 327, 31, 202, 202, 30709, 4229, 18, 9523, 12, 10579, 1085, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10081, 668, 12, 5521, 768, 1768, 1203, 16, 509, 3971, 1085, 13, 288, 202, 202, 430, 12, 79, 13148, 13, 327, 31, 202, 202, 30709, 4229, 18, 9523, 12, 10579, 1085, ...
synchronized (battleChits)
Iterator it = battleChits.iterator(); while (it.hasNext())
java.util.List getActiveBattleChits() { java.util.List chits = new ArrayList(); synchronized (battleChits) { Iterator it = battleChits.iterator(); while (it.hasNext()) { BattleChit chit = (BattleChit)it.next(); if (getBattleActivePlayerName().equals(getPlayerNameByTag( chit.getTag()))) { chits.add(chit); } } } return chits; }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/8d1ec51f9e7290b8276a6f9e736af457e9465186/Client.java/clean/Colossus/net/sf/colossus/client/Client.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 2252, 18, 1367, 18, 682, 11960, 38, 4558, 298, 782, 1282, 1435, 565, 288, 3639, 2252, 18, 1367, 18, 682, 462, 1282, 273, 394, 2407, 5621, 3639, 4498, 518, 273, 324, 4558, 298, 782, 1282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2252, 18, 1367, 18, 682, 11960, 38, 4558, 298, 782, 1282, 1435, 565, 288, 3639, 2252, 18, 1367, 18, 682, 462, 1282, 273, 394, 2407, 5621, 3639, 4498, 518, 273, 324, 4558, 298, 782, 1282...
super( ValueType.LONG_TYPE,
super( ValueType.PLONG_TYPE,
private LongLessOrEqualEvaluator() { super( ValueType.LONG_TYPE, Operator.LESS_OR_EQUAL ); }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/0a76f888ef55c8d5cf806f1c9e6a6e27fa7f4faf/LongFactory.java/buggy/drools-core/src/main/java/org/drools/base/evaluators/LongFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 3407, 15313, 22376, 15876, 1435, 288, 5411, 2240, 12, 31718, 18, 6253, 7390, 67, 2399, 16, 10402, 11097, 18, 26005, 67, 916, 67, 12853, 11272, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 3407, 15313, 22376, 15876, 1435, 288, 5411, 2240, 12, 31718, 18, 6253, 7390, 67, 2399, 16, 10402, 11097, 18, 26005, 67, 916, 67, 12853, 11272, 3639, 289, 2, -100, -100, -100, -100, ...
public String getFileAsStr();
public String getFileAsStr() { return mFileAsStr; }
public String getFileAsStr();
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/b17d05d071612293d6f09ab67b1bbdcf47c5a136/ZContactHit.java/clean/ZimbraServer/src/java/com/zimbra/cs/zclient/ZContactHit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6034, 1463, 1585, 5621, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 6034, 1463, 1585, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
throw new XDBCException("cannot cast to XDBCXName: " + key);
throw new XDBCException("cannot cast to XDBCXName: " + key);
private XDBCXName[] marshalExternalVariables(XDBCStatement _stmt, Map _args) throws XDBCException { if (_args == null) return null; int argsCount = _args.size(); if (argsCount < 1) return null; XDBCXName[] args = null; _stmt.clearVariables(); // marshall the arguments args = new XDBCXName[argsCount]; Object key = null; XDBCXName name; Iterator iter = _args.keySet().iterator(); int i = 0; while (iter.hasNext()) { // keys may be XDBCXName or String key = iter.next(); if (key instanceof String) { name = new XDBCXName((String) key); } else if (key instanceof XDBCXName) { name = (XDBCXName) key; } else { throw new XDBCException("cannot cast to XDBCXName: " + key); } args[i++] = name; setValue(_stmt, name, _args.get(key)); } return args; }
52612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52612/a22b42a2fa1be2e30d3b7543102656cbb40a528c/Connection.java/buggy/src/java/com/marklogic/ps/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1139, 13183, 60, 461, 8526, 10893, 6841, 6158, 12, 60, 13183, 3406, 389, 10589, 16, 1635, 389, 1968, 13, 5411, 1216, 1139, 13183, 503, 288, 3639, 309, 261, 67, 1968, 422, 446, 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, 1139, 13183, 60, 461, 8526, 10893, 6841, 6158, 12, 60, 13183, 3406, 389, 10589, 16, 1635, 389, 1968, 13, 5411, 1216, 1139, 13183, 503, 288, 3639, 309, 261, 67, 1968, 422, 446, 13, ...
int l_msgLen = 14; for (int i=0; i < args.length; i++) { l_msgLen += 2;
int l_msgLen = 0; l_msgLen += 16; for (int i=0;i < args.length;i++)
private Object fastpathV3(int fnid, boolean resulttype, FastpathArg[] args) throws SQLException { // added Oct 7 1998 to give us thread safety synchronized (stream) { // send the function call try { int l_msgLen = 14; for (int i=0; i < args.length; i++) { l_msgLen += 2; l_msgLen += args[i].sendSize(); } stream.SendChar('F'); stream.SendInteger(l_msgLen,4); stream.SendInteger(fnid, 4); stream.SendInteger(args.length,2); for (int i=0; i < args.length; i++) stream.SendInteger(1,2); stream.SendInteger(args.length,2); for (int i = 0; i < args.length; i++) args[i].send(stream); stream.SendInteger(1,2); // This is needed, otherwise data can be lost stream.flush(); } catch (IOException ioe) { throw new PSQLException("postgresql.fp.send", PSQLState.COMMUNICATION_ERROR, new Integer(fnid), ioe); } // Now handle the result // Now loop, reading the results Object result = null; // our result PSQLException error = null; int c; boolean l_endQuery = false; while (!l_endQuery) { c = stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify int pid = stream.ReceiveInteger(4); String msg = stream.ReceiveString(conn.getEncoding()); conn.addNotification(new org.postgresql.core.Notification(msg, pid)); break; //------------------------------ // Error message returned case 'E': int l_elen = stream.ReceiveIntegerR(4); String totalMessage = conn.getEncoding().decode(stream.Receive(l_elen-4)); PSQLException l_error = PSQLException.parseServerError(totalMessage); if (error != null) { error.setNextException(l_error); } else { error = l_error; } break; //------------------------------ // Notice from backend case 'N': int l_nlen = stream.ReceiveIntegerR(4); conn.addWarning(conn.getEncoding().decode(stream.Receive(l_nlen-4))); break; case 'V': int l_msgLen = stream.ReceiveIntegerR(4); int l_valueLen = stream.ReceiveIntegerR(4); if (l_valueLen == -1) { //null value } else if (l_valueLen == 0) { result = new byte[0]; } else { // Return an Integer if if (resulttype) result = new Integer(stream.ReceiveIntegerR(l_valueLen)); else { byte buf[] = new byte[l_valueLen]; stream.Receive(buf, 0, l_valueLen); result = buf; } } break; case 'Z': //TODO: use size better if (stream.ReceiveIntegerR(4) != 5) throw new PSQLException("postgresql.con.setup", PSQLState.CONNECTION_UNABLE_TO_CONNECT); //TODO: handle transaction status char l_tStatus = (char)stream.ReceiveChar(); l_endQuery = true; break; default: throw new PSQLException("postgresql.fp.protocol", PSQLState.COMMUNICATION_ERROR, new Character((char)c)); } } if ( error != null ) throw error; return result; } }
45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/9dddd242dd132e66b6f1654d0ea62cb485818f37/Fastpath.java/buggy/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1033, 14469, 58, 23, 12, 474, 2295, 350, 16, 1250, 563, 723, 16, 9545, 803, 4117, 8526, 833, 13, 1216, 6483, 202, 95, 202, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1033, 14469, 58, 23, 12, 474, 2295, 350, 16, 1250, 563, 723, 16, 9545, 803, 4117, 8526, 833, 13, 1216, 6483, 202, 95, 202, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, ...
return Collections.unmodifiableCollection(myChanges);
if (myReadChangesCache == null) { myReadChangesCache = new ArrayList<Change>(myChanges); } return myReadChangesCache;
public Collection<Change> getChanges() { return Collections.unmodifiableCollection(myChanges); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/72703e616bc7a9faff342de6634e18fd30e314e9/ChangeList.java/buggy/openapi/src/com/intellij/openapi/vcs/changes/ChangeList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2200, 32, 3043, 34, 336, 7173, 1435, 288, 565, 309, 261, 4811, 1994, 7173, 1649, 422, 446, 13, 288, 3399, 1994, 7173, 1649, 273, 394, 2407, 32, 3043, 34, 12, 4811, 7173, 1769, 289...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2200, 32, 3043, 34, 336, 7173, 1435, 288, 565, 309, 261, 4811, 1994, 7173, 1649, 422, 446, 13, 288, 3399, 1994, 7173, 1649, 273, 394, 2407, 32, 3043, 34, 12, 4811, 7173, 1769, 289...
AST __t339 = _t; AST tmp77_AST_in = (AST)_t;
AST __t347 = _t; AST tmp79_AST_in = (AST)_t;
public final Expression numericExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST numericExpr_AST_in = (AST)_t; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PLUS: { AST __t337 = _t; AST tmp75_AST_in = (AST)_t; match(_t,PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t337; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.PLUS); path.addPath(op); step= op; break; } case MINUS: { AST __t338 = _t; AST tmp76_AST_in = (AST)_t; match(_t,MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t338; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MINUS); path.addPath(op); step= op; break; } case UNARY_MINUS: { AST __t339 = _t; AST tmp77_AST_in = (AST)_t; match(_t,UNARY_MINUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t339; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.MINUS); unary.add(left); path.addPath(unary); step= unary; break; } case UNARY_PLUS: { AST __t340 = _t; AST tmp78_AST_in = (AST)_t; match(_t,UNARY_PLUS); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; _t = __t340; _t = _t.getNextSibling(); UnaryExpr unary= new UnaryExpr(context, Constants.PLUS); unary.add(left); path.addPath(unary); step= unary; break; } case LITERAL_div: { AST __t341 = _t; AST tmp79_AST_in = (AST)_t; match(_t,LITERAL_div); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t341; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.DIV); path.addPath(op); step= op; break; } case LITERAL_idiv: { AST __t342 = _t; AST tmp80_AST_in = (AST)_t; match(_t,LITERAL_idiv); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t342; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.IDIV); path.addPath(op); step= op; break; } case LITERAL_mod: { AST __t343 = _t; AST tmp81_AST_in = (AST)_t; match(_t,LITERAL_mod); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t343; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MOD); path.addPath(op); step= op; break; } case STAR: { AST __t344 = _t; AST tmp82_AST_in = (AST)_t; match(_t,STAR); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t344; _t = _t.getNextSibling(); OpNumeric op= new OpNumeric(context, left, right, Constants.MULT); path.addPath(op); step= op; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/d31ac0d651739cc32d55579c14a0786f6bfb4200/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 6389, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 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, 727, 5371, 225, 6389, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2...
hitTest(x, y, aci, context);
hitTest(x, y, aci, node, context);
public org.apache.batik.gvt.text.Mark selectTo(double x, double y, org.apache.batik.gvt.text.Mark beginMark, AttributedCharacterIterator aci, GraphicsNodeRenderContext context) { org.apache.batik.gvt.text.Mark newMark = hitTest(x, y, aci, context); return newMark; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/2edc0d97d41a362291ac580e5011cb9d53b9ad46/BasicTextPainter.java/buggy/sources/org/apache/batik/gvt/renderer/BasicTextPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2358, 18, 19211, 18, 28260, 1766, 18, 75, 11734, 18, 955, 18, 3882, 2027, 774, 12, 9056, 619, 16, 1645, 677, 16, 18701, 2358, 18, 19211, 18, 28260, 1766, 18, 75, 11734, 18, 955, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19211, 18, 28260, 1766, 18, 75, 11734, 18, 955, 18, 3882, 2027, 774, 12, 9056, 619, 16, 1645, 677, 16, 18701, 2358, 18, 19211, 18, 28260, 1766, 18, 75, 11734, 18, 955, ...
}
}
protected static GrailsMethodExpression create(final GrailsApplication application,Class clazz, String queryParameter) { if(queryParameter.endsWith( LESS_THAN_OR_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LESS_THAN_OR_EQUAL), LESS_THAN_OR_EQUAL, 1, isNegation(queryParameter, LESS_THAN_OR_EQUAL) ) { Criterion createCriterion() { return Expression.le( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( LESS_THAN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LESS_THAN), LESS_THAN, 1, // argument count isNegation(queryParameter, LESS_THAN) ) { Criterion createCriterion() { return Expression.lt( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( GREATER_THAN_OR_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, GREATER_THAN_OR_EQUAL), GREATER_THAN_OR_EQUAL, 1, isNegation(queryParameter, GREATER_THAN_OR_EQUAL) ) { Criterion createCriterion() { return Expression.ge( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( GREATER_THAN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, GREATER_THAN), GREATER_THAN, 1, isNegation(queryParameter, GREATER_THAN) ) { Criterion createCriterion() { return Expression.gt( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( LIKE )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, LIKE), LIKE, 1, isNegation(queryParameter, LIKE) ) { Criterion createCriterion() { return Expression.like( this.propertyName, arguments[0] ); } }; } else if(queryParameter.endsWith( IS_NOT_NULL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, IS_NOT_NULL), IS_NOT_NULL, 0, isNegation(queryParameter, IS_NOT_NULL) ) { Criterion createCriterion() { return Expression.isNotNull( this.propertyName ); } }; } else if(queryParameter.endsWith( IS_NULL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, IS_NULL), IS_NULL, 0, isNegation(queryParameter, IS_NULL) ) { Criterion createCriterion() { return Expression.isNull( this.propertyName ); } }; } else if(queryParameter.endsWith( BETWEEN )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, BETWEEN), BETWEEN, 2, isNegation(queryParameter, BETWEEN) ) { Criterion createCriterion() { return Expression.between( this.propertyName,this.arguments[0], this.arguments[1] ); } }; } else if(queryParameter.endsWith( NOT_EQUAL )) { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, NOT_EQUAL), NOT_EQUAL, 1, isNegation(queryParameter, NOT_EQUAL) ) { Criterion createCriterion() { return Expression.ne( this.propertyName,this.arguments[0]); } }; } else { return new GrailsMethodExpression( application, clazz, calcPropertyName(queryParameter, null), EQUAL, 1, isNegation(queryParameter, EQUAL) ) { Criterion createCriterion() { return Expression.eq( this.propertyName,this.arguments[0]); } }; } }
26970 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/26970/eb420a51890989f6ca7f281725a19ebec728f77c/AbstractClausedStaticPersistentMethod.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/AbstractClausedStaticPersistentMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 760, 10812, 14573, 1305, 2300, 752, 12, 6385, 10812, 14573, 3208, 2521, 16, 797, 4003, 16, 514, 843, 1662, 13, 288, 1082, 202, 430, 12, 2271, 1662, 18, 5839, 1190, 12, 21216, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1117, 760, 10812, 14573, 1305, 2300, 752, 12, 6385, 10812, 14573, 3208, 2521, 16, 797, 4003, 16, 514, 843, 1662, 13, 288, 1082, 202, 430, 12, 2271, 1662, 18, 5839, 1190, 12, 21216, ...
if (currentRepeatIdToIndex != null && currentRepeatIdToIndex.size() != 0) { for (Iterator i = previousRepeatIdToIndex.entrySet().iterator(); i.hasNext();) {
if (currentRepeatIdToIndex != null && currentRepeatIdToIndex.size() != 0) { for (Iterator i = previousRepeatIdToIndex.entrySet().iterator(); i.hasNext();) {
public void performDefaultAction(PipelineContext pipelineContext, XFormsEvent event) { final String eventName = event.getEventName(); if (XFormsEvents.XFORMS_SUBMIT.equals(eventName) || XFormsEvents.XXFORMS_SUBMIT.equals(eventName)) { // 11.1 The xforms-submit Event // Bubbles: Yes / Cancelable: Yes / Context Info: None boolean isDeferredSubmissionSecondPass = false; try { // Make sure submission element info is extracted extractSubmissionElement(); final boolean isHandlingOptimizedGet = XFormsUtils.isOptimizeGetAllSubmission() && isGet() && replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL); final boolean isDeferredSubmission = replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL); final boolean isDeferredSubmissionFirstPass = isDeferredSubmission && XFormsEvents.XFORMS_SUBMIT.equals(eventName) && !isHandlingOptimizedGet; isDeferredSubmissionSecondPass = isDeferredSubmission && !isDeferredSubmissionFirstPass; // Select node based on ref or bind final XFormsControls xformsControls = containingDocument.getXFormsControls(); xformsControls.setBinding(pipelineContext, submissionElement); // FIXME: the submission element is not a control... final Node currentNode = xformsControls.getCurrentSingleNode(); if (!(currentNode instanceof Document || currentNode instanceof Element)) { throw new OXFException("xforms:submission: single-node binding must refer to a document node or an element."); } final XFormsInstance currentInstance = xformsControls.getCurrentInstance(); final Document initialDocumentToSubmit; if (!isDeferredSubmissionSecondPass) { // Create document to submit initialDocumentToSubmit = createDocumentToSubmit(currentNode, currentInstance); // Revalidate instance containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); // TODO: The "false" attribute is no longer used. The above will cause events to be // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(initialDocumentToSubmit); if (!instanceSatisfiesValidRequired) { if (XFormsServer.logger.isDebugEnabled()) { final LocationDocumentResult documentResult = new LocationDocumentResult(); final TransformerHandler identity = TransformerUtils.getIdentityTransformerHandler(); identity.setResult(documentResult); currentInstance.read(identity); final String documentString = Dom4jUtils.domToString(documentResult.getDocument()); XFormsServer.logger.debug("XForms - instance document or subset thereof cannot be submitted:\n" + documentString); } throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } else { initialDocumentToSubmit = null; } // Deferred submission: end of the first pass if (isDeferredSubmissionFirstPass) { // When replace="all", we wait for the submission of an XXFormsSubmissionEvent from the client containingDocument.setClientActiveSubmission(this); return; } final Document documentToSubmit; if (isDeferredSubmissionSecondPass) { // Handle uploaded files if any final Element filesElement = (event instanceof XXFormsSubmissionEvent) ? ((XXFormsSubmissionEvent) event).getFilesElement() : null; if (filesElement != null) { for (Iterator i = filesElement.elements().iterator(); i.hasNext();) { final Element parameterElement = (Element) i.next(); final String name = parameterElement.element("name").getTextTrim(); final Element valueElement = parameterElement.element("value"); final String value = valueElement.getTextTrim(); final String paramValueType = Dom4jUtils.qNameToexplodedQName(Dom4jUtils.extractAttributeValueQName(valueElement, XMLConstants.XSI_TYPE_QNAME)); final String filename = parameterElement.element("filename").getTextTrim(); final String mediatype = parameterElement.element("content-type").getTextTrim(); final String size = parameterElement.element("content-length").getTextTrim(); final XFormsControls.UploadControlInfo uploadControl = (XFormsControls.UploadControlInfo) containingDocument.getObjectById(pipelineContext, name); if (uploadControl != null) { // in case of xforms:repeat, the name of the template will not match an existing control // Set value into the instance xformsControls.setBinding(pipelineContext, uploadControl); { final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, value, paramValueType); } // Handle filename if any if (uploadControl.getFilenameElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getFilenameElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, filename, null); xformsControls.popBinding(); } // Handle mediatype if any if (uploadControl.getMediatypeElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getMediatypeElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, mediatype, null); xformsControls.popBinding(); } // Handle file size if any if (uploadControl.getSizeElement() != null) { xformsControls.pushBinding(pipelineContext, uploadControl.getSizeElement()); final Node currentSingleNode = xformsControls.getCurrentSingleNode(); XFormsInstance.setValueForNode(pipelineContext, currentSingleNode, size, null); xformsControls.popBinding(); } } } } // Create document to submit documentToSubmit = createDocumentToSubmit(currentNode, currentInstance); // Revalidate instance containingDocument.dispatchEvent(pipelineContext, new XFormsRevalidateEvent(model, false)); // TODO: The "false" attribute is no longer used. The above will cause events to be // sent out. Check if the validation state can really change. If so, find a // solution. // "no notification events are marked for dispatching due to this operation" // Check that there are no validation errors final boolean instanceSatisfiesValidRequired = isDocumentSatisfiesValidRequired(documentToSubmit); if (!instanceSatisfiesValidRequired) {// currentInstance.readOut();// FIXME: DEBUG throw new OXFException("xforms:submission: instance to submit does not satisfy valid and/or required model item properties."); } } else { // Don't recreate document documentToSubmit = initialDocumentToSubmit; } // Serialize // To support: application/xml, application/x-www-form-urlencoded, multipart/related, multipart/form-data final byte[] serializedInstance; final String serializedInstanceString; { if (isPost() || isPut()) { try { final Transformer identity = TransformerUtils.getIdentityTransformer(); TransformerUtils.applyOutputProperties(identity, "xml", version, null, null, encoding, omitxmldeclaration, standalone, indent, 4); // TODO: use cdata-section-elements final ByteArrayOutputStream os = new ByteArrayOutputStream(); identity.transform(new DocumentSource(documentToSubmit), new StreamResult(os)); serializedInstance = os.toByteArray(); } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing instance to XML.", e); } serializedInstanceString = null; } else if (isGet()) { // Perform "application/x-www-form-urlencoded" serialization serializedInstanceString = createWwwFormUrlEncoded(documentToSubmit); serializedInstance = null; } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } final ExternalContext externalContext = (ExternalContext) pipelineContext.getAttribute(PipelineContext.EXTERNAL_CONTEXT); // Result information int resultCode = 0; String resultMediaType = null; Map resultHeaders = null; InputStream resultInputStream = null; HttpURLConnection urlConnection = null; OutputStream os = null; boolean dontHandleResponse = false; try { if (isHandlingOptimizedGet) { // GET with replace="all" // We can optimize and tell the client to load the URL final String actionString = action + ((action.indexOf('?') == -1) ? "?" : "") + serializedInstanceString; XFormsActionInterpreter.resolveLoadValue(containingDocument, pipelineContext, submissionElement, true, actionString, null); dontHandleResponse = true; } else if ((XFormsUtils.isOptimizeLocalSubmission() || isMethodOptimizedLocalSubmission()) && action.startsWith("/")) { // TODO // && !externalContext.getRequest().getContainerType().equals("portlet") // This is a "local" submission, i.e. in the same web application // The submission can be optimized. // NOTE: It is not possible to use include() with portlets, because it is // not possible to intercept the response, unlike with servlets. Also, there // is no concept of forward() with portlets. In the case of portlets, we can // therefore not optimize. // FIXME: How to deal with absolute paths on the same server, but not in // the web application? Just use absolute URLs? ExternalContext.RequestDispatcher requestDispatcher = externalContext.getRequestDispatcher(action); try { if (isPost() || isPut() || isGet()) { // Create requestAdapter depending on method final ForwardExternalContextRequestWrapper requestAdapter; { if (isPost() || isPut()) requestAdapter= new ForwardExternalContextRequestWrapper(externalContext.getRequest(), action, method.toUpperCase(), (mediatype != null) ? mediatype : "application/xml", serializedInstance); else { final String actionString = action + ((action.indexOf('?') == -1) ? "?" : "") + serializedInstanceString; requestAdapter = new ForwardExternalContextRequestWrapper(externalContext.getRequest(), actionString, method.toUpperCase()); } } if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL)) { // Just forward the reply // TODO: xforms-submit-done must be sent before the body is forwarded containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); requestDispatcher.forward(requestAdapter, externalContext.getResponse()); dontHandleResponse = true; } else { // We must intercept the reply final ResponseAdapter responseAdapter = new ResponseAdapter(); requestDispatcher.include(requestAdapter, responseAdapter); // Get response information that needs to be forwarded resultCode = responseAdapter.getResponseCode();// TODO: this is bad, because the code is actually not propagated from the other side. We should probably not use "optimized" submission here. // resultMediaType = NetUtils.getContentTypeMediaType(responseAdapter.getContentType()); // resultHeaders = responseAdapter.getHeaders(); resultMediaType = ProcessorUtils.XML_CONTENT_TYPE; resultInputStream = responseAdapter.getInputStream(); } } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } catch (IOException e) { throw new OXFException(e); } } else { // This is a "remote" submission, i.e. using an absolute URL, OR a "local" submission from a portlet // Compute submission URL final URL submissionURL; try { final String actionString = (serializedInstanceString == null) ? action : action + ((action.indexOf('?') == -1) ? "?" : "") + serializedInstanceString; if (action.startsWith("/")) { // Case of "local" portlet submission final String requestURL = externalContext.getRequest().getRequestURL(); submissionURL = URLFactory.createURL(requestURL, externalContext.getRequest().getContextPath() + actionString);//TODO: should be relative to actual page's request URL, and use xml:base as well! } else if (NetUtils.urlHasProtocol(actionString)) { // Case of absolute URL submissionURL = URLFactory.createURL(actionString); } else { throw new OXFException("xforms:submission: invalid action: " + actionString);// final String requestURL = externalContext.getRequest().getRequestURL();//// if (requestURL != null) {// submissionURL = URLFactory.createURL(requestURL, action);// } else {// throw new OXFException("xforms:submission: cannot resolve relative action: " + action);// } } } catch (MalformedURLException e) { throw new OXFException("xforms:submission: invalid action: " + action, e); } // Perform submission final String scheme = submissionURL.getProtocol(); if (scheme.equals("http") || scheme.equals("https")) { // http MUST be supported // https SHOULD be supported urlConnection = (HttpURLConnection) submissionURL.openConnection(); if (isPost() || isPut() || isGet()) { urlConnection.setDoInput(true); urlConnection.setDoOutput(!isGet()); // Only if POST / PUT urlConnection.setRequestMethod(method.toUpperCase()); urlConnection.setRequestProperty("content-type", (mediatype != null) ? mediatype : "application/xml"); urlConnection.connect(); // Write request body if (!isGet()) { os = urlConnection.getOutputStream(); os.write(serializedInstance); } // Get response information that needs to be forwarded resultCode = urlConnection.getResponseCode(); final String contentType = urlConnection.getContentType(); resultMediaType = NetUtils.getContentTypeMediaType(contentType); resultHeaders = urlConnection.getHeaderFields(); resultInputStream = urlConnection.getInputStream(); } else if (method.equals("multipart-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("form-data-post")) { // TODO throw new OXFException("xforms:submission: submission method not yet implemented: " + method); } else if (method.equals("urlencoded-post")) { throw new OXFException("xforms:submission: deprecated submission method requested: " + method); } else { throw new OXFException("xforms:submission: invalid submission method requested: " + method); } } else if (scheme.equals("file")) { // TODO // SHOULD be supported // Question: should support oxf: as well? throw new OXFException("xforms:submission: submission URL scheme not yet implemented: " + scheme); } else if (scheme.equals("mailto")) { // TODO // MAY be supported throw new OXFException("xforms:submission: submission URL scheme not yet implemented: " + scheme); } else { throw new OXFException("xforms:submission: submission URL scheme not supported: " + scheme); } } if (!dontHandleResponse) { // Handle response if (resultCode == 200) { // Sucessful response final boolean hasContent; { if (resultInputStream == null) { hasContent = false; } else { if (!resultInputStream.markSupported()) resultInputStream = new BufferedInputStream(resultInputStream); resultInputStream.mark(1); hasContent = resultInputStream.read() != -1; resultInputStream.reset(); } } if (hasContent) { // There is a body if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_ALL)) { // When we get here, we are in a mode where we need to send the reply // directly to an external context, if any. // "the event xforms-submit-done is dispatched" containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response if (resultHeaders != null) { for (Iterator i = resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward content to response NetUtils.copyStream(resultInputStream, response.getOutputStream()); } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_INSTANCE)) { final ByteArrayOutputStream resultByteArrayOutputStream = new ByteArrayOutputStream(); NetUtils.copyStream(resultInputStream, resultByteArrayOutputStream); byte[] submissionResponse = resultByteArrayOutputStream.toByteArray(); if (ProcessorUtils.isXMLContentType(resultMediaType)) { // Handling of XML media type try { final Transformer identity = TransformerUtils.getIdentityTransformer(); final LocationDocumentResult documentResult = new LocationDocumentResult(); identity.transform(new StreamSource(new ByteArrayInputStream(submissionResponse)), documentResult); final Document resultingInstanceDocument = documentResult.getDocument(); // Set new instance document to replace the one submitted final XFormsInstance replaceInstance = (replaceInstanceId == null) ? currentInstance : model.getInstance(replaceInstanceId); if (replaceInstance == null) { containingDocument.dispatchEvent(pipelineContext, new XFormsBindingExceptionEvent(XFormsModelSubmission.this)); } else { // Get repeat index information just before insertion final Map previousRepeatIdToIndex; { final Map map = xformsControls.getCurrentControlsState().getRepeatIdToIndex(); previousRepeatIdToIndex = (map == null) ? null : new HashMap(map); } // Set new instance replaceInstance.setInstanceDocument(resultingInstanceDocument); // Mark all values as changed so that refresh sends appropriate events XFormsUtils.markAllValuesChanged(replaceInstance.getDocument()); // Rebuild ControlsState xformsControls.rebuildCurrentControlsState(pipelineContext); // "Once the XML instance data has been replaced, // the rebuild, recalculate, revalidate and refresh // operations are performed on the model, without // dispatching events to invoke those four // operations." model.doRebuild(pipelineContext); model.doRecalculate(pipelineContext); model.doRevalidate(pipelineContext); model.doRefresh(pipelineContext); // Update repeat indexes if necessary // The idea is that if a repeat index was set to 0 // (which can only happen when a repeat node-set is // empty) and instance replacement causes the // node-set to be non-empty, then the repeat index // must be set to the initial repeat index for that // repeat. if (previousRepeatIdToIndex != null) { final XFormsControls.ControlsState currentControlsState = xformsControls.getCurrentControlsState(); final Map currentRepeatIdToIndex = currentControlsState.getRepeatIdToIndex(); final Map intialRepeatIdToIndex = currentControlsState.getDefaultRepeatIdToIndex(); final Map effectiveRepeatIdToIterations = currentControlsState.getEffectiveRepeatIdToIterations(); if (currentRepeatIdToIndex != null && currentRepeatIdToIndex.size() != 0) { for (Iterator i = previousRepeatIdToIndex.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String repeatId = (String) currentEntry.getKey(); final Integer previouslIndex = (Integer) currentEntry.getValue();// final Integer newIndex = (Integer) currentRepeatIdToIndex.get(repeatId); final Integer newIterations = (Integer) effectiveRepeatIdToIterations.get(repeatId); if (previouslIndex.intValue() == 0 && newIterations.intValue() > 0) { // Set index to defaul value final Integer initialRepeatIndex = (Integer) intialRepeatIdToIndex.get(repeatId);// XFormsActionInterpreter.executeSetindexAction(pipelineContext, containingDocument, repeatId, initialRepeatIndex.toString()); // TODO: Here we need to check that the index is within bounds and to send the appropriate events currentControlsState.updateRepeatIndex(repeatId, initialRepeatIndex.intValue()); } else { // Just reset index and make sure it is within bounds// XFormsActionInterpreter.executeSetindexAction(pipelineContext, containingDocument, repeatId, previousRepeatIndex.toString()); // TODO: Here we need to check that the index is within bounds and to send the appropriate events// final Integer previousRepeatIndex = (Integer) previousRepeatIdToIndex.get(repeatId);// currentControlsState.updateRepeatIndex(repeatId, previousRepeatIndex.intValue()); final Integer initialRepeatIndex = (Integer) intialRepeatIdToIndex.get(repeatId); currentControlsState.updateRepeatIndex(repeatId, initialRepeatIndex.intValue()); } } } } // Notify that submission is done containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } } catch (Exception e) { throw new OXFException("xforms:submission: exception while serializing XML to instance.", e); } } else { // Other media type throw new OXFException("Body received with non-XML media type for replace=\"instance\": " + resultMediaType); } } else if (replace.equals(XFormsConstants.XFORMS_SUBMIT_REPLACE_NONE)) { // Just notify that processing is terminated containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } else { throw new OXFException("xforms:submission: invalid replace attribute: " + replace); } } else { // There is no body, notify that processing is terminated containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitDoneEvent(XFormsModelSubmission.this)); } } else if (resultCode == 302 || resultCode == 301) { // Got a redirect final ExternalContext.Response response = externalContext.getResponse(); // Forward headers to response // TODO: this is duplicated from above if (resultHeaders != null) { for (Iterator i = resultHeaders.entrySet().iterator(); i.hasNext();) { final Map.Entry currentEntry = (Map.Entry) i.next(); final String headerName = (String) currentEntry.getKey(); final List headerValues = (List) currentEntry.getValue(); if (headerName != null && headerValues != null) { for (Iterator j = headerValues.iterator(); j.hasNext();) { response.addHeader(headerName, (String) j.next()); } } } } // Forward redirect response.setStatus(resultCode); } else { // Error code received throw new OXFException("Error code received when submitting instance: " + resultCode); } } } finally { // Clean-up if (os != null) { try { os.close(); } catch (IOException e) { throw new OXFException("Exception while closing output stream for action: " + action); } } if (resultInputStream != null) { try { resultInputStream.close(); } catch (IOException e) { throw new OXFException("Exception while closing input stream for action: " + action); } } if (urlConnection != null) urlConnection.disconnect(); } } catch (Throwable e) { if (isDeferredSubmissionSecondPass && XFormsUtils.isOptimizePostAllSubmission()) { // It doesn't serve any purpose here to dispatch an event, so we just propagate the exception throw new OXFException(e); } else { // Any exception will cause an error event to be dispatched containingDocument.dispatchEvent(pipelineContext, new XFormsSubmitErrorEvent(XFormsModelSubmission.this, action, e)); } } } else if (XFormsEvents.XFORMS_BINDING_EXCEPTION.equals(eventName)) { // The default action for this event results in the following: Fatal error. throw new OXFException("Binding exception."); } }
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/7d5f64cdd8f43075e248143706be45d2af32ca88/XFormsModelSubmission.java/clean/src/java/org/orbeon/oxf/xforms/XFormsModelSubmission.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3073, 1868, 1803, 12, 8798, 1042, 5873, 1042, 16, 1139, 18529, 1133, 871, 13, 288, 3639, 727, 514, 7933, 273, 871, 18, 588, 24320, 5621, 3639, 309, 261, 60, 18529, 3783, 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, 918, 3073, 1868, 1803, 12, 8798, 1042, 5873, 1042, 16, 1139, 18529, 1133, 871, 13, 288, 3639, 727, 514, 7933, 273, 871, 18, 588, 24320, 5621, 3639, 309, 261, 60, 18529, 3783, 18, ...
assertNotNull("Could not find " + mavenReporting, artifactImpl);
assertNotNull("Could not find " + exclusionTest, artifactImpl);
public void testExclusionDependencies() throws MalformedURLException, InterruptedException, ArtifactStateException { r.addRemoteRepository(new URL("http://mirrors.dotsrc.org/maven2/")); r.addRemoteRepository(testRepos); BasicArtifact mavenReporting = new BasicArtifact("raventest", "exclusiontest","1.5.1"); r.addArtifact(mavenReporting); r.update(); List<Artifact> artifacts = r.getArtifacts(); // Find the ArtifactImpl for maven-reporting-api ArtifactImpl artifactImpl = null; for (Artifact artifact : artifacts) { System.out.println(artifact); if (artifact.equals(mavenReporting)) { artifactImpl = (ArtifactImpl) artifact; } } assertNotNull("Could not find " + mavenReporting, artifactImpl); for (ArtifactImpl dependency : artifactImpl.getDependencies()) { if (dependency.getGroupId().equals("pull-parser") && dependency.getArtifactId().equals("pull-parser")) { fail("Did not exclude pull-parser:pull-parser"); } System.out.println(" " + dependency); } }
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/a57eb505a8ae294dafbece82ba404ea28dc04067/ArtifactImplTest.java/clean/trunk/taverna1.0/raven/src/test/java/net/sf/taverna/raven/repository/impl/ArtifactImplTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 424, 15335, 8053, 1435, 1216, 20710, 16, 7558, 16, 14022, 5060, 288, 202, 202, 86, 18, 1289, 5169, 3305, 12, 2704, 1976, 2932, 2505, 2207, 81, 27026, 18, 9811, 4816, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 424, 15335, 8053, 1435, 1216, 20710, 16, 7558, 16, 14022, 5060, 288, 202, 202, 86, 18, 1289, 5169, 3305, 12, 2704, 1976, 2932, 2505, 2207, 81, 27026, 18, 9811, 4816, ...
LOG.info("shutting down"); mShuttingDown = true; for (Iterator i = mShutdownHooks.iterator(); i.hasNext(); ) { try { final Thread t = (Thread) i.next(); t.start(); t.join(500); } catch (final Throwable t) { LOG.error(t.getMessage(), t); } try { Preferences.getInstance().save(); } catch (final Throwable t) { LOG.error("Could not save preferences: " + t.getMessage(), t); } } System.exit(0);
LOG.info("shutting down"); mShuttingDown = true; for (Iterator i = mShutdownHooks.iterator(); i.hasNext();) { try { final Thread t = (Thread) i.next(); t.start(); t.join(500); } catch (final Throwable t) { LOG.error(t.getMessage(), t); } try { Preferences.getInstance().save(); } catch (final Throwable t) { LOG.error("Could not save preferences: " + t.getMessage(), t); }
public void actionPerformed(ActionEvent aIgnore) { LOG.info("shutting down"); mShuttingDown = true; for (Iterator i = mShutdownHooks.iterator(); i.hasNext(); ) { try { final Thread t = (Thread) i.next(); t.start(); t.join(500); } catch (final Throwable t) { // Don't let anything stop us LOG.error(t.getMessage(), t); } try { Preferences.getInstance().save(); } catch (final Throwable t) { LOG.error("Could not save preferences: " + t.getMessage(), t); } } System.exit(0); }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/9bea173ad0684cd425c468d55310cccc5a96e8a0/ExitAction.java/buggy/src/java/org/apache/log4j/chainsaw/ExitAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 279, 3777, 13, 288, 3639, 2018, 18, 1376, 2932, 674, 25387, 2588, 8863, 3639, 312, 1555, 25387, 4164, 273, 638, 31, 3639, 364, 261, 3198, 277, 273, 312, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 279, 3777, 13, 288, 3639, 2018, 18, 1376, 2932, 674, 25387, 2588, 8863, 3639, 312, 1555, 25387, 4164, 273, 638, 31, 3639, 364, 261, 3198, 277, 273, 312, ...
desc = desc == null ? "" : desc;
desc = desc == null ? "" : desc;
private boolean performCreatePlaceHolder( ReportElementHandle handle ) { try { TemplateElementHandle template = handle .createTemplateElement( null ); String desc = template.getDescription( ); desc = desc == null ? "" : desc; TemplateReportItemPropertiesDialog dialog = new TemplateReportItemPropertiesDialog( template.getDefaultElement( ).getDefn( ).getDisplayName( ), desc ); if ( dialog.open( ) == Window.OK ) { template.setDescription( (String) dialog.getResult( ) ); } else { return false; } } catch ( SemanticException e ) { ExceptionHandler.handle(e); return false; } return true; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/5aac4a10f7c691e852a5b6f1c3b57feb21abeee0/DefaultNodeProvider.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/DefaultNodeProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 3073, 1684, 6029, 6064, 12, 8706, 1046, 3259, 1640, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 2283, 1046, 3259, 1542, 273, 1640, 6862, 202, 18, 2640, 2283, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 3073, 1684, 6029, 6064, 12, 8706, 1046, 3259, 1640, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 2283, 1046, 3259, 1542, 273, 1640, 6862, 202, 18, 2640, 2283, ...
path = request.getContextPath() + path;
if (path.startsWith("/")) path = request.getContextPath() + path;
public int doEndTag() throws JspException { // Look up the desired ActionForward entry ActionForward forward = null; ActionForwards forwards = (ActionForwards) pageContext.getAttribute (Action.FORWARDS_KEY, PageContext.APPLICATION_SCOPE); if (forwards != null) forward = forwards.findForward(name); if (forward == null) { JspException e = new JspException (messages.getMessage("forward.lookup", name)); RequestUtils.saveException(pageContext, e); throw e; } // Forward or redirect to the corresponding actual path String path = forward.getPath(); if (forward.getRedirect()) { HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); HttpServletResponse response = (HttpServletResponse) pageContext.getResponse(); try { path = request.getContextPath() + path; response.sendRedirect(response.encodeRedirectURL(path)); } catch (Exception e) { RequestUtils.saveException(pageContext, e); throw new JspException (messages.getMessage("forward.redirect", name, e.toString())); } } else { try { pageContext.forward(path); } catch (Exception e) { RequestUtils.saveException(pageContext, e); throw new JspException (messages.getMessage("forward.forward", name, e.toString())); } } // Skip the remainder of this page return (SKIP_PAGE); }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/33e818d797860ef95ab00183ca1645333acb2262/ForwardTag.java/buggy/src/share/org/apache/struts/taglib/logic/ForwardTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 202, 759, 10176, 731, 326, 6049, 4382, 8514, 1241, 202, 1803, 8514, 5104, 273, 446, 31, 202, 1803, 1290, 6397, 24578, 273, 202, 565, 261, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 202, 759, 10176, 731, 326, 6049, 4382, 8514, 1241, 202, 1803, 8514, 5104, 273, 446, 31, 202, 1803, 1290, 6397, 24578, 273, 202, 565, 261, 18...
container[i] = parseGeometry(data, geofac);
container[i] = parseGeometry(data, srid, true);
private void parseGeometryArray(ValueGetter data, Geometry[] container, GeometryFactory geofac) { for (int i = 0; i < container.length; i++) { container[i] = parseGeometry(data, geofac); } }
4075 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4075/41fcfc0c6f5c916cd545baeb76efa9eb43421e15/JtsBinaryParser.java/buggy/jdbc2/jtssrc/org/postgis/jts/JtsBinaryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 9823, 1076, 12, 620, 8461, 501, 16, 8344, 8526, 1478, 16, 8344, 1733, 7856, 11639, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1478, 18, 2469, 31, 277, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 9823, 1076, 12, 620, 8461, 501, 16, 8344, 8526, 1478, 16, 8344, 1733, 7856, 11639, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1478, 18, 2469, 31, 277, ...
return new SArray(xs);
return new SArray(xs);
public static Array box_sarray(short [] xs) { return new SArray(xs); }
1156 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1156/b5127bbfea6df39af5db3dc45bb9f7e698acb3f1/RunTime.java/clean/sources/scala/runtime/RunTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1510, 282, 3919, 67, 87, 1126, 12, 6620, 225, 5378, 9280, 13, 288, 202, 2463, 394, 348, 1076, 12, 13713, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1510, 282, 3919, 67, 87, 1126, 12, 6620, 225, 5378, 9280, 13, 288, 202, 2463, 394, 348, 1076, 12, 13713, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -1...
if (url.getTransformers() != null) { try {
if (url.getTransformers() != null) { try {
private static UMOTransformer getTransformer(UMOEndpointURI url, UMOConnector cnn, boolean inbound) throws ConnectorFactoryException { UMOTransformer trans = null; if (url.getTransformers() != null) { try { trans = MuleObjectHelper.getTransformer(url.getTransformers(), ","); } catch (MuleException e) { throw new ConnectorFactoryException(e); } } else { //Get connector specific overrides to set on the descriptor Properties overrides = new Properties(); if(cnn instanceof AbstractServiceEnabledConnector) { Map so = ((AbstractServiceEnabledConnector)cnn).getServiceOverrides(); if(so!=null) overrides.putAll(so); } String scheme = url.getSchemeMetaInfo(); ConnectorServiceDescriptor csd = getServiceDescriptor(scheme, overrides); if (inbound) { trans = csd.createInboundTransformer(); } else { trans = csd.createOutboundTransformer(); } } return trans; }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/614dbecb584c6787ee5db31fcf7a145f1fd41607/ConnectorFactory.java/buggy/src/java/org/mule/providers/service/ConnectorFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 587, 5980, 8319, 336, 8319, 12, 2799, 51, 3293, 3098, 880, 16, 587, 5980, 7487, 6227, 82, 16, 1250, 13357, 13, 1216, 15779, 1733, 503, 565, 288, 3639, 587, 5980, 8319, 906, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 587, 5980, 8319, 336, 8319, 12, 2799, 51, 3293, 3098, 880, 16, 587, 5980, 7487, 6227, 82, 16, 1250, 13357, 13, 1216, 15779, 1733, 503, 565, 288, 3639, 587, 5980, 8319, 906, 2...
if(length*4 < data.length && length > MIN_SIZE) {
if((length*4 < data.length) && (length > MIN_SIZE)) {
public synchronized void remove(long item) { int x = Arrays.binarySearch(data, item); if(x >= 0) { if(x < length-1) System.arraycopy(data, x+1, data, x, length-x-1); data[--length] = Long.MAX_VALUE; } if(length*4 < data.length && length > MIN_SIZE) { long[] newData = new long[Math.max(data.length/2, MIN_SIZE)]; System.arraycopy(data, 0, newData, 0, length); for(int i=length;i<newData.length;i++) newData[i] = Long.MAX_VALUE; data = newData; } verify(); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SortedLongSet.java/clean/src/freenet/support/SortedLongSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1206, 12, 5748, 761, 13, 288, 202, 202, 474, 619, 273, 5647, 18, 8578, 2979, 12, 892, 16, 761, 1769, 202, 202, 430, 12, 92, 1545, 374, 13, 288, 1082, 202, 430, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1206, 12, 5748, 761, 13, 288, 202, 202, 474, 619, 273, 5647, 18, 8578, 2979, 12, 892, 16, 761, 1769, 202, 202, 430, 12, 92, 1545, 374, 13, 288, 1082, 202, 430, ...
refreshInner(file, recursive, modalityState, asynchronous, noWatcher);
void refresh(VirtualFileImpl file, boolean recursive, boolean storeStatus, ModalityState modalityState, boolean asynchronous, final boolean noWatcher) { final List<String> manualPaths; synchronized (LOCK) { manualPaths = new ArrayList<String>(myFilePathsToWatchManual); } if (!manualPaths.isEmpty()) { final String filePath = file.getPath(); for (int i = 0; i < manualPaths.size(); i++) { String pathToWatchManual = manualPaths.get(i); if (FileUtil.startsWith(filePath, pathToWatchManual)) { file.refreshInternal(recursive, modalityState, false, asynchronous, noWatcher); return; } } } if (storeStatus) { storeRefreshStatusToFiles(); } refreshInner(file, recursive, modalityState, asynchronous, noWatcher); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/08c81d1f35f2e969928b4c4d30edfbfd4896ee67/LocalFileSystemImpl.java/buggy/source/com/intellij/openapi/vfs/impl/local/LocalFileSystemImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 4460, 12, 6466, 812, 2828, 585, 16, 9079, 1250, 5904, 16, 9079, 1250, 1707, 1482, 16, 9079, 3431, 7919, 1119, 681, 7919, 1119, 16, 9079, 1250, 9007, 16, 9079, 727, 1250, 1158, 9918, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 4460, 12, 6466, 812, 2828, 585, 16, 9079, 1250, 5904, 16, 9079, 1250, 1707, 1482, 16, 9079, 3431, 7919, 1119, 681, 7919, 1119, 16, 9079, 1250, 9007, 16, 9079, 727, 1250, 1158, 9918, ...
mMbox.markMessageSpam(args[1], paramb(args, 2, true), lookupFolderId(param(args, 3)));
mMbox.markMessageSpam(args[0], paramb(args, 1, true), lookupFolderId(param(args, 2)));
private boolean execute(String args[]) throws ServiceException, ArgException, IOException { mCommand = lookupCommand(args[0]); if (mCommand == null) return false; if (!mCommand.checkArgsLength(args)) { usage(); return true; } switch(mCommand) { case CREATE_CONTACT: ZContact cc = mMbox.createContact(lookupFolderId(args[1]), null, getMap(args, 2)); System.out.println(cc.getId()); break; case CREATE_FOLDER: ZFolder cf = mMbox.createFolder( lookupFolderId(args[1], true), ZMailbox.getBasePath(args[1]), args.length == 3 ? ZFolder.View.fromString(args[2]) : null); System.out.println(cf.getId()); break; case CREATE_MOUNTPOINT: String cmPath = args[1]; String cmOwner = args[2]; String cmItem = args[3]; ZMountpoint cm = mMbox.createMountpoint( lookupFolderId(cmPath, true), ZMailbox.getBasePath(cmPath), ZFolder.View.fromString(args[4]), (isId(cmOwner) ? OwnerBy.BY_ID : OwnerBy.BY_NAME), cmOwner, (isId(cmItem) ? SharedItemBy.BY_ID : SharedItemBy.BY_PATH), cmItem); System.out.println(cm.getId()); break; case CREATE_SEARCH_FOLDER: ZSearchFolder csf = mMbox.createSearchFolder( lookupFolderId(args[1], true), ZMailbox.getBasePath(args[1]), args[2], param(args, 3), args.length == 5 ? SearchSortBy.fromString(param(args, 4)) : null); System.out.println(csf.getId()); break; case CREATE_TAG: ZTag ct = mMbox.createTag(args[1], Color.fromString(args[2])); System.out.println(ct.getId()); break; case DELETE_CONTACT: mMbox.deleteContact(args[1]); break; case DELETE_CONVERSATION: mMbox.deleteConversation(translateId(args[1]), param(args, 2)); break; case DELETE_FOLDER: mMbox.deleteFolder(lookupFolderId(args[1])); break; case DELETE_ITEM: mMbox.deleteItem(args[1], param(args, 2)); break; case DELETE_MESSAGE: mMbox.deleteMessage(args[1]); break; case DELETE_TAG: mMbox.deleteTag(lookupTag(args[1]).getId()); break; case EMPTY_FOLDER: mMbox.emptyFolder(lookupFolderId(args[1])); break; case EXIT: System.exit(0); break; case FLAG_CONTACT: mMbox.flagContact(args[1], paramb(args, 2, true)); break; case FLAG_CONVERSATION: mMbox.flagConversation(translateId(args[1]), paramb(args, 2, true), param(args, 3)); break; case FLAG_ITEM: mMbox.flagItem(args[1], paramb(args, 2, true), param(args, 3)); break; case FLAG_MESSAGE: mMbox.flagMessage(args[1], paramb(args, 2, true)); break; case GET_ALL_CONTACTS: doGetAllContacts(args); break; case GET_CONTACTS: doGetContacts(args); break; case GET_ALL_FOLDERS: doGetAllFolders(args); break; case GET_ALL_MOUNTPOINTS: doGetAllMountpoints(args); break; case GET_ALL_TAGS: doGetAllTags(args); break; case GET_CONVERSATION: doGetConversation(args); break; case GET_MESSAGE: doGetMessage(args); break; case HELP: doHelp(args); break; case IMPORT_URL_INTO_FOLDER: mMbox.importURLIntoFolder(lookupFolderId(args[1]), args[2]); break; case MARK_CONVERSATION_READ: mMbox.markConversationRead(translateId(args[1]), paramb(args, 2, true), param(args, 3)); break; case MARK_ITEM_READ: mMbox.markItemRead(args[1], paramb(args, 2, true), param(args, 3)); break; case MARK_FOLDER_READ: mMbox.markFolderRead(lookupFolderId(args[1])); break; case MARK_MESSAGE_READ: mMbox.markMessageRead(args[1], paramb(args, 2, true)); break; case MARK_CONVERSATION_SPAM: mMbox.markConversationSpam(translateId(args[1]), paramb(args, 2, true), lookupFolderId(param(args, 3)), param(args, 4)); break; case MARK_MESSAGE_SPAM: mMbox.markMessageSpam(args[1], paramb(args, 2, true), lookupFolderId(param(args, 3))); break; case MARK_TAG_READ: mMbox.markTagRead(lookupTag(args[1]).getId()); break; case MODIFY_CONTACT: doModifyContact(args); break; case MODIFY_FOLDER_CHECKED: mMbox.modifyFolderChecked(lookupFolderId(args[1]), paramb(args, 2, true)); break; case MODIFY_FOLDER_COLOR: mMbox.modifyFolderColor(lookupFolderId(args[1]), ZFolder.Color.fromString(args[2])); break; case MODIFY_FOLDER_EXCLUDE_FREE_BUSY: mMbox.modifyFolderExcludeFreeBusy(lookupFolderId(args[1]), paramb(args, 2, true)); break; case MODIFY_FOLDER_URL: mMbox.modifyFolderURL(lookupFolderId(args[1]), args[2]); break; case MODIFY_TAG_COLOR: mMbox.modifyTagColor(lookupTag(args[1]).getId(), Color.fromString(args[2])); break; case MOVE_CONVERSATION: mMbox.moveConversation(translateId(args[1]), lookupFolderId(param(args, 2)), param(args, 3)); break; case MOVE_ITEM: mMbox.moveItem(args[1], lookupFolderId(param(args, 2)), param(args, 3)); break; case MOVE_MESSAGE: mMbox.moveMessage(args[1], lookupFolderId(param(args, 2))); break; case MOVE_CONTACT: mMbox.moveContact(args[1], lookupFolderId(param(args, 2))); break; case NOOP: mMbox.noOp(); break; case RENAME_FOLDER: mMbox.renameFolder(lookupFolderId(args[1]), args[2]); break; case RENAME_TAG: mMbox.renameTag(lookupTag(args[1]).getId(), args[2]); break; case SEARCH: doSearch(args); break; case SEARCH_NEXT: doSearchNext(args); break; case SEARCH_CURRENT: doSearchCurrent(args); break; case SEARCH_PREVIOUS: doSearchPrevious(args); break; case SYNC_FOLDER: mMbox.syncFolder(lookupFolderId(args[1])); break; case TAG_CONTACT: mMbox.tagContact(args[1], lookupTag(args[2]).getId(), paramb(args, 3, true)); break; case TAG_CONVERSATION: mMbox.tagConversation(translateId(args[1]), lookupTag(args[2]).getId(), paramb(args, 3, true), param(args, 4)); break; case TAG_ITEM: mMbox.tagItem(args[1], lookupTag(args[2]).getId(), paramb(args, 3, true), param(args, 4)); break; case TAG_MESSAGE: mMbox.tagMessage(args[1], lookupTag(args[2]).getId(), paramb(args, 3, true)); break; default: return false; } return true; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/7a4931ae81b384821167986f5f3e946b3137cd86/ZMailboxUtil.java/buggy/ZimbraServer/src/java/com/zimbra/cs/zclient/ZMailboxUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1836, 12, 780, 833, 63, 5717, 1216, 16489, 16, 14448, 503, 16, 1860, 288, 7734, 312, 2189, 273, 3689, 2189, 12, 1968, 63, 20, 19226, 7734, 309, 261, 81, 2189, 422, 446, 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, 1250, 1836, 12, 780, 833, 63, 5717, 1216, 16489, 16, 14448, 503, 16, 1860, 288, 7734, 312, 2189, 273, 3689, 2189, 12, 1968, 63, 20, 19226, 7734, 309, 261, 81, 2189, 422, 446, 13, ...
label.setText( CSearchMessages.getString( "SearchPage.expression.label" ) );
label.setText( CSearchMessages.getString( "CSearchPage.expression.label" ) );
private Control createExpression( Composite parent ) { Composite result = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(2, false); result.setLayout(layout); GridData gd = new GridData( GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL ); gd.horizontalSpan = 2; gd.horizontalIndent = 0; result.setLayoutData( gd ); // Pattern text + info Label label = new Label( result, SWT.LEFT ); label.setText( CSearchMessages.getString( "SearchPage.expression.label" ) ); //$NON-NLS-1$ gd = new GridData( GridData.BEGINNING ); gd.horizontalSpan = 2; label.setLayoutData( gd ); // Pattern combo fPattern = new Combo( result, SWT.SINGLE | SWT.BORDER ); fPattern.addSelectionListener( new SelectionAdapter() { public void widgetSelected( SelectionEvent e ) { handlePatternSelected(); } }); fPattern.addModifyListener( new ModifyListener() { public void modifyText( ModifyEvent e ) { getContainer().setPerformActionEnabled( getPattern().length() > 0 ); updateCaseSensitiveCheckbox(); } }); gd = new GridData( GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL ); gd.horizontalIndent = -gd.horizontalIndent; fPattern.setLayoutData( gd ); // Ignore case checkbox fCaseSensitive= new Button(result, SWT.CHECK); fCaseSensitive.setText(CSearchMessages.getString("SearchPage.expression.caseSensitive")); //$NON-NLS-1$ gd= new GridData(); fCaseSensitive.setLayoutData(gd); fCaseSensitive.addSelectionListener( new SelectionAdapter() { public void widgetSelected( SelectionEvent e ) { fIsCaseSensitive= fCaseSensitive.getSelection(); writeConfiguration(); } }); return result; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/6fa5a87930361469316b7851a2b6e66eea81d0a3/CSearchPage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 8888, 752, 2300, 12, 14728, 982, 262, 288, 202, 202, 9400, 225, 563, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 374...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 8888, 752, 2300, 12, 14728, 982, 262, 288, 202, 202, 9400, 225, 563, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 374...
public ToolSystemViewer(Viewer viewer, ToolSystemConfiguration config, boolean syncRender) { this.viewer = viewer; toolSystem = new ToolSystem(viewer, config, syncRender); setPickSystem(new AABBPickSystem());
public ToolSystemViewer(Viewer viewer) { this(viewer, loadConfiguration(), null);
public ToolSystemViewer(Viewer viewer, ToolSystemConfiguration config, boolean syncRender) { this.viewer = viewer; toolSystem = new ToolSystem(viewer, config, syncRender); setPickSystem(new AABBPickSystem()); }
25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/6ff1071e4fe0caa04893342861ae7a09d2cd1417/ToolSystemViewer.java/buggy/src-tool/de/jreality/toolsystem/ToolSystemViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13288, 3163, 18415, 12, 18415, 14157, 16, 13288, 3163, 1750, 642, 16, 1250, 3792, 3420, 13, 288, 565, 333, 18, 25256, 273, 14157, 31, 565, 5226, 3163, 273, 394, 13288, 3163, 12, 252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13288, 3163, 18415, 12, 18415, 14157, 16, 13288, 3163, 1750, 642, 16, 1250, 3792, 3420, 13, 288, 565, 333, 18, 25256, 273, 14157, 31, 565, 5226, 3163, 273, 394, 13288, 3163, 12, 252...
(ColorDefinition) fCurrent );
(ColorDefinition) EcoreUtil.copy( fCurrent ) );
public void widgetSelected( SelectionEvent e ) { Object oSource = e.getSource( ); if ( oSource.equals( btnDown ) ) { fireHandleEvent( MOUSE_CLICKED_EVENT ); toggleDropDown( ); } else if ( oSource.equals( this.btnImage ) ) { ImageDialog idlg = new ImageDialog( this.getShell( ), fCurrent ); cmpDropDown.getParent( ).dispose( ); if ( idlg.open( ) == Window.OK ) { Fill imgFill = idlg.getResult( ); if ( imgFill != null ) { if ( fCurrent != null ) { imgFill.eAdapters( ).addAll( fCurrent.eAdapters( ) ); } this.setFill( imgFill ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); } } } else if ( oSource.equals( this.btnCustom ) ) { ColorDialog cDlg = new ColorDialog( this.getShell( ), SWT.NONE ); cmpDropDown.getParent( ).dispose( ); int iTrans = 255; if ( fCurrent instanceof ColorDefinition ) { if ( !fCurrent.equals( ColorDefinitionImpl.TRANSPARENT( ) ) ) { iTransparency = ( (ColorDefinition) fCurrent ).getTransparency( ); } cDlg.setRGB( new RGB( ( (ColorDefinition) this.fCurrent ).getRed( ), ( (ColorDefinition) this.fCurrent ).getGreen( ), ( (ColorDefinition) this.fCurrent ).getBlue( ) ) ); } RGB rgb = cDlg.open( ); if ( rgb != null ) { ColorDefinition cdNew = AttributeFactory.eINSTANCE.createColorDefinition( ); cdNew.set( rgb.red, rgb.green, rgb.blue ); cdNew.setTransparency( ( bTransparencyChanged ) ? this.iTransparency : iTrans ); if ( fCurrent != null ) { cdNew.eAdapters( ).addAll( fCurrent.eAdapters( ) ); } this.setFill( cdNew ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); } } else if ( oSource.equals( this.btnGradient ) ) { GradientEditorDialog ged = null; cmpDropDown.getParent( ).dispose( ); if ( fCurrent instanceof Gradient ) { ged = new GradientEditorDialog( this.getShell( ), (Gradient) fCurrent ); } else if ( fCurrent instanceof ColorDefinition ) { ged = new GradientEditorDialog( this.getShell( ), null, (ColorDefinition) fCurrent ); } else { ged = new GradientEditorDialog( this.getShell( ), null ); } if ( ged.getGradient( ) != null ) { Fill fTmp = ged.getGradient( ); if ( fCurrent != null ) { fTmp.eAdapters( ).addAll( fCurrent.eAdapters( ) ); } if ( fCurrent == null || !( fCurrent.equals( fTmp ) ) ) { this.setFill( fTmp ); fireHandleEvent( FillChooserComposite.FILL_CHANGED_EVENT ); } } } else if ( oSource.equals( srTransparency ) ) { iTransparency = srTransparency.getSelection( ); lblTransparency.setText( new MessageFormat( Messages.getString( "FillChooserComposite.Lbl.Opacity" ) ) //$NON-NLS-1$ .format( new Object[]{ new Integer( iTransparency ) } ) ); srTransparency.setToolTipText( String.valueOf( srTransparency.getSelection( ) ) ); if ( fCurrent instanceof ColorDefinition ) { ( (ColorDefinition) fCurrent ).setTransparency( iTransparency ); } setFill( fCurrent ); bTransparencyChanged = true; } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4455729d08f3af64c5f2de452f397515f49d9866/FillChooserComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FillChooserComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 202, 95, 202, 202, 921, 320, 1830, 273, 425, 18, 588, 1830, 12, 11272, 202, 202, 430, 261, 320, 1830, 18, 14963, 12, 10638, 4164, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 921, 320, 1830, 273, 425, 18, 588, 1830, 12, 11272, 202, 202, 430, 261, 320, 1830, 18, 14963, 12, 10638, 4164, ...
jj_la1[34] = jj_gen;
jj_la1[36] = jj_gen;
final public void VariableInitializer() throws ParseException { /*@bgen(jjtree) VariableInitializer */ ASTVariableInitializer jjtn000 = new ASTVariableInitializer(this, JJTVARIABLEINITIALIZER); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { switch (jj_nt.kind) { case LBRACE: ArrayInitializer(); break; case BOOLEAN: case BYTE: case CHAR: case DOUBLE: case FALSE: case FLOAT: case INT: case LONG: case NEW: case NULL: case SHORT: case SUPER: case THIS: case TRUE: case VOID: case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case CHARACTER_LITERAL: case STRING_LITERAL: case IDENTIFIER: case LPAREN: case BANG: case TILDE: case INCR: case DECR: case PLUS: case MINUS: Expression(); break; default: jj_la1[34] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (Error)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 7110, 14729, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 7110, 14729, 1195, 225, 9183, 3092, 14729, 10684, 5088, 3784, 273, 394, 9183, 3092, 14729, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7110, 14729, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 7110, 14729, 1195, 225, 9183, 3092, 14729, 10684, 5088, 3784, 273, 394, 9183, 3092, 14729, 1...
public int getIdealTemperature () { return _idealTemperature; }
public int getIdealTemperature () { return idealTemperature; }
public int getIdealTemperature () { return _idealTemperature; }
11263 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11263/58bc7273fc23cc044df40c4fc0f26b6ea3c29eea/Heatbug.java/clean/apps/java/jheatbugs/Heatbug.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 8974, 323, 287, 1837, 9289, 1832, 288, 327, 389, 831, 287, 1837, 9289, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 8974, 323, 287, 1837, 9289, 1832, 288, 327, 389, 831, 287, 1837, 9289, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
static String SimplifyADate(long ldate) { if (ldate <= 0) return ""; synchronized(scratch_date) { if (date_format == null) { date_format = DateFormat.getDateTimeInstance(); } scratch_date.setTime(ldate); /* #### This needs to be more clever. I guess we should make our own subclass of DateFormat and put the cleverness there. */ return date_format.format(scratch_date); } }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/142ac2d2574885f73cb7b993d3684a66a2343069/MessageBase.java/buggy/grendel/sources/grendel/storage/MessageBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 514, 9587, 412, 1164, 37, 1626, 12, 5748, 328, 712, 13, 288, 565, 309, 261, 80, 712, 1648, 374, 13, 327, 1408, 31, 565, 3852, 12, 24638, 505, 67, 712, 13, 288, 1377, 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, 282, 760, 514, 9587, 412, 1164, 37, 1626, 12, 5748, 328, 712, 13, 288, 565, 309, 261, 80, 712, 1648, 374, 13, 327, 1408, 31, 565, 3852, 12, 24638, 505, 67, 712, 13, 288, 1377, 309, 261, ...
debuggerProcess = DebugPlugin.newProcess(launch, debugger, LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.Debugger_Process"));
debuggerProcess = DebugPlugin.newProcess(launch, debugger, renderDebuggerProcessLabel());
public void launch(ILaunchConfiguration config, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } monitor.beginTask(LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.Launching_postmortem_debugger"), IProgressMonitor.UNKNOWN); //$NON-NLS-1$ // check for cancellation if (monitor.isCanceled()) { return; } IFile exeFile = getProgramFile(config); ICDebugConfiguration debugConfig = getDebugConfig(config); ICDISession dsession = null; ICProject cproject = getCProject(config); IPath corefile = getCoreFilePath((IProject) cproject.getResource()); if (corefile == null) { cancel(LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.No_Corefile_selected"), ICDTLaunchConfigurationConstants.ERR_NO_COREFILE); //$NON-NLS-1$ } Process debugger = null; IProcess debuggerProcess = null; try { dsession = debugConfig.getDebugger().createCoreSession(config, exeFile, corefile); debugger = dsession.getSessionProcess(); } catch (CDIException e) { if (dsession != null) { try { dsession.terminate(); } catch (CDIException ex) { // ignore } } abort(LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.Failed_Launching_CDI_Debugger"), e, ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); //$NON-NLS-1$ } if ( debugger != null ) { debuggerProcess = DebugPlugin.newProcess(launch, debugger, LaunchUIPlugin.getResourceString("CoreFileLaunchDelegate.Debugger_Process")); //$NON-NLS-1$// launch.removeProcess(debuggerProcess); } // set the source locator setSourceLocator(launch, config); CDebugModel.newCoreFileDebugTarget( launch, dsession.getCurrentTarget(), renderTargetLabel(debugConfig), debuggerProcess, exeFile); monitor.done(); }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b59f69ac430af42fad657e83012fc893286f2654/CoreFileLaunchDelegate.java/clean/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CoreFileLaunchDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8037, 12, 2627, 4760, 1750, 642, 16, 514, 1965, 16, 467, 9569, 8037, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 430, 261, 10259, 422, 446, 13, 288, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8037, 12, 2627, 4760, 1750, 642, 16, 514, 1965, 16, 467, 9569, 8037, 16, 467, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 430, 261, 10259, 422, 446, 13, 288, 1082, ...
trace.enter("testEnterWithThisAndArgs",this,new Object[] { arg1, arg2 });
trace.enter(getName(),this,new Object[] { arg1, arg2 });
public void testEnterWithThisAndArray() { Object arg1 = new String[] { "s1", "s2" }; Object arg2 = new char[] { 'a', 'b', 'c' }; trace.enter("testEnterWithThisAndArgs",this,new Object[] { arg1, arg2 }); }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/6be70973a704548a42e396e996c9d49915b92a64/AbstractTraceTest.java/buggy/weaver/testsrc/org/aspectj/weaver/AbstractTraceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10237, 1190, 2503, 1876, 1076, 1435, 288, 202, 202, 921, 1501, 21, 273, 394, 514, 8526, 288, 315, 87, 21, 3113, 315, 87, 22, 6, 289, 31, 202, 202, 921, 1501, 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, 918, 1842, 10237, 1190, 2503, 1876, 1076, 1435, 288, 202, 202, 921, 1501, 21, 273, 394, 514, 8526, 288, 315, 87, 21, 3113, 315, 87, 22, 6, 289, 31, 202, 202, 921, 1501, 22, ...
if (m_iNextStart >= chars.length) {
if (iNextStart >= chars.length) {
public BreakPoss getNextBreakPoss(LayoutContext context) { /* On first call in a new Line, the START_AREA * flag in LC is set. */ int iFlags = 0; if (context.startsNewArea()) { /* This could be first call on this LM, or the first call * in a new (possible) LineArea. */ m_ipdTotal = new MinOptMax(0); iFlags |= BreakPoss.ISFIRST; } /* HANDLE SUPPRESSED LEADING SPACES * See W3C XSL Rec. 7.16.3. * Suppress characters whose "suppress-at-line-break" property = "suppress" * This can only be set on an explicit fo:character object. The default * behavior is that U+0020 is suppressed; all other character codes are * retained. */ if (context.suppressLeadingSpace()) { for (; m_iNextStart < chars.length && chars[m_iNextStart] == SPACE; m_iNextStart++) ; // If now at end, nothing to compose here! if (m_iNextStart >= chars.length) { setFinished(true); return null; // Or an "empty" BreakPoss? } } /* Start of this "word", plus any non-suppressed leading space. * Collapse any remaining word-space with leading space from * ancestor FOs. * Add up other leading space which is counted in the word IPD. */ SpaceSpecifier pendingSpace = new SpaceSpecifier(false); short iThisStart = m_iNextStart; // Index of first character counted MinOptMax spaceIPD = new MinOptMax(0); // Extra IPD from word-spacing // Sum of glyph IPD of all characters in a word, inc. leading space int wordIPD = 0; short iWScount = 0; // Count of word spaces boolean bSawNonSuppressible = false; for (; m_iNextStart < chars.length; m_iNextStart++) { char c = chars[m_iNextStart]; if (CharUtilities.isAnySpace(c) == false) break; if (c == SPACE || c == NBSPACE) { ++iWScount; // Counted as word-space if (m_iNextStart == iThisStart && (iFlags & BreakPoss.ISFIRST) != 0) { // If possible, treat as normal inter-word space if (context.getLeadingSpace().hasSpaces()) { context.getLeadingSpace().addSpace(m_halfWS); } else { // Doesn't combine with any other leading spaces // from ancestors spaceIPD.add(m_halfWS.space); } } else { pendingSpace.addSpace(m_halfWS); spaceIPD.add(pendingSpace.resolve(false)); } wordIPD += m_spaceIPD; // Space glyph IPD pendingSpace.clear(); pendingSpace.addSpace(m_halfWS); if (c == NBSPACE) { bSawNonSuppressible = true; } } else { // If we have letter-space, so we apply this to fixed- // width spaces (which are not word-space) also? bSawNonSuppressible = true; spaceIPD.add(pendingSpace.resolve(false)); pendingSpace.clear(); wordIPD += CharUtilities.getCharWidth(c, textInfo.fs); } } if (m_iNextStart < chars.length) { spaceIPD.add(pendingSpace.resolve(false)); } else { // This FO ended with spaces. Return the BP if (!bSawNonSuppressible) { iFlags |= BreakPoss.ALL_ARE_SUPPRESS_AT_LB; } return makeBreakPoss(iThisStart, spaceIPD, wordIPD, context.getLeadingSpace(), pendingSpace, iFlags, iWScount); } if (context.tryHyphenate()) { // Get the size of the next syallable MinOptMax hyphIPD = new MinOptMax(0); if (getHyphenIPD(context.getHyphContext(), hyphIPD)) { iFlags |= (BreakPoss.CAN_BREAK_AFTER | BreakPoss.HYPHENATED); } wordIPD += hyphIPD.opt; } else { // Look for a legal line-break: breakable white-space and certain // characters such as '-' which can serve as word breaks. // Don't look for hyphenation points here though for (; m_iNextStart < chars.length; m_iNextStart++) { char c = chars[m_iNextStart]; if ((c == NEWLINE) || // Include any breakable white-space as break char // even if fixed width (textInfo.bWrap && (CharUtilities.isSpace(c) || s_breakChars.indexOf(c) >= 0))) { iFlags |= BreakPoss.CAN_BREAK_AFTER; if (c != SPACE) { m_iNextStart++; if (c != NEWLINE) { wordIPD += CharUtilities.getCharWidth(c, textInfo.fs); } else { iFlags |= BreakPoss.FORCE; } } // If all remaining characters would be suppressed at // line-end, set a flag for parent LM. int iLastChar; for (iLastChar = m_iNextStart; iLastChar < chars.length && chars[iLastChar] == SPACE; iLastChar++) ; if (iLastChar == chars.length) { iFlags |= BreakPoss.REST_ARE_SUPPRESS_AT_LB; } return makeBreakPoss(iThisStart, spaceIPD, wordIPD, context.getLeadingSpace(), null, iFlags, iWScount); } wordIPD += CharUtilities.getCharWidth(c, textInfo.fs); // Note, if a normal non-breaking space, is it stretchable??? // If so, keep a count of these embedded spaces. } } return makeBreakPoss(iThisStart, spaceIPD, wordIPD, context.getLeadingSpace(), null, iFlags, iWScount); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/a62f977d812bb273863a574255920ca141eec969/TextLayoutManager.java/clean/src/org/apache/fop/layoutmgr/TextLayoutManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 17030, 1616, 87, 6927, 7634, 1616, 87, 12, 3744, 1042, 819, 13, 288, 3639, 1748, 2755, 1122, 745, 316, 279, 394, 5377, 16, 326, 10485, 67, 20933, 540, 380, 2982, 316, 27727, 353, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17030, 1616, 87, 6927, 7634, 1616, 87, 12, 3744, 1042, 819, 13, 288, 3639, 1748, 2755, 1122, 745, 316, 279, 394, 5377, 16, 326, 10485, 67, 20933, 540, 380, 2982, 316, 27727, 353, ...
mol.addBond(0, 1, 2); mol.addBond(1, 2, 1); mol.addBond(2, 3, 2); mol.addBond(3, 4, 1); mol.addBond(4, 5, 2); mol.addBond(5, 6, 1); mol.addBond(6, 7, 2); mol.addBond(7, 8, 1); mol.addBond(8, 9, 2); mol.addBond(9, 5, 1); mol.addBond(9, 0, 1);
mol.addBond(0, 1, 2.0); mol.addBond(1, 2, 1.0); mol.addBond(2, 3, 2.0); mol.addBond(3, 4, 1.0); mol.addBond(4, 5, 2.0); mol.addBond(5, 6, 1.0); mol.addBond(6, 7, 2.0); mol.addBond(7, 8, 1.0); mol.addBond(8, 9, 2.0); mol.addBond(9, 5, 1.0); mol.addBond(9, 0, 1.0);
public static Molecule makeAzulene() { Molecule mol = new Molecule(); mol.addAtom(new Atom("C")); // 0 mol.addAtom(new Atom("C")); // 1 mol.addAtom(new Atom("C")); // 2 mol.addAtom(new Atom("C")); // 3 mol.addAtom(new Atom("C")); // 4 mol.addAtom(new Atom("C")); // 5 mol.addAtom(new Atom("C")); // 6 mol.addAtom(new Atom("C")); // 7 mol.addAtom(new Atom("C")); // 8 mol.addAtom(new Atom("C")); // 9 mol.addBond(0, 1, 2); // 1 mol.addBond(1, 2, 1); // 2 mol.addBond(2, 3, 2); // 3 mol.addBond(3, 4, 1); // 4 mol.addBond(4, 5, 2); // 5 mol.addBond(5, 6, 1); // 6 mol.addBond(6, 7, 2); // 8 mol.addBond(7, 8, 1); // 9 mol.addBond(8, 9, 2); // 10 mol.addBond(9, 5, 1); // 11 mol.addBond(9, 0, 1); // 12 return mol; }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/da8866755e9369bf3d50a09256d25117f5e93c64/MoleculeFactory.java/clean/src/org/openscience/cdk/templates/MoleculeFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 490, 10545, 1221, 37, 94, 332, 4009, 1435, 202, 95, 202, 202, 29669, 12629, 273, 394, 490, 10545, 5621, 202, 202, 21260, 18, 1289, 3641, 12, 2704, 7149, 2932, 39, 7923, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 490, 10545, 1221, 37, 94, 332, 4009, 1435, 202, 95, 202, 202, 29669, 12629, 273, 394, 490, 10545, 5621, 202, 202, 21260, 18, 1289, 3641, 12, 2704, 7149, 2932, 39, 7923, 1...
alt75=10;
alt76=10;
public String operator() throws RecognitionException { String str; str = null; try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1231:17: ( '==' | '=' | '>' | '>=' | '<' | '<=' | '!=' | 'contains' | 'matches' | 'excludes' ) int alt75=10; switch ( input.LA(1) ) { case 57: alt75=1; break; case 58: alt75=2; break; case 59: alt75=3; break; case 60: alt75=4; break; case 61: alt75=5; break; case 62: alt75=6; break; case 63: alt75=7; break; case 64: alt75=8; break; case 65: alt75=9; break; case 66: alt75=10; break; default: NoViableAltException nvae = new NoViableAltException("1225:1: operator returns [String str] : ( \'==\' | \'=\' | \'>\' | \'>=\' | \'<\' | \'<=\' | \'!=\' | \'contains\' | \'matches\' | \'excludes\' );", 75, 0, input); throw nvae; } switch (alt75) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1231:17: '==' { match(input,57,FOLLOW_57_in_operator3575); str= "=="; } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1232:18: '=' { match(input,58,FOLLOW_58_in_operator3582); str="=="; } break; case 3 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1233:18: '>' { match(input,59,FOLLOW_59_in_operator3589); str=">"; } break; case 4 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1234:18: '>=' { match(input,60,FOLLOW_60_in_operator3596); str=">="; } break; case 5 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1235:18: '<' { match(input,61,FOLLOW_61_in_operator3605); str="<"; } break; case 6 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1236:18: '<=' { match(input,62,FOLLOW_62_in_operator3612); str="<="; } break; case 7 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1237:18: '!=' { match(input,63,FOLLOW_63_in_operator3619); str="!="; } break; case 8 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1238:18: 'contains' { match(input,64,FOLLOW_64_in_operator3626); str="contains"; } break; case 9 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1239:18: 'matches' { match(input,65,FOLLOW_65_in_operator3633); str="matches"; } break; case 10 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1240:18: 'excludes' { match(input,66,FOLLOW_66_in_operator3640); str="excludes"; } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return str; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/8c3be0baa8712893e2dea6fbb679cbb7e80de372/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3726, 1435, 1216, 9539, 288, 6647, 514, 609, 31, 540, 202, 202, 701, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 106...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 3726, 1435, 1216, 9539, 288, 6647, 514, 609, 31, 540, 202, 202, 701, 273, 446, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 106...
int entries = readUnsignedShort(stream, isBigEndian);
long entries = readUnsignedShort(stream, isBigEndian);
public static int getNumDirectories(SeekableStream stream) throws IOException{ long pointer = stream.getFilePointer(); // Save stream pointer stream.seek(0L); int endian = stream.readUnsignedShort(); if (!isValidEndianTag(endian)) { throw new IllegalArgumentException("TIFFDirectory1"); } boolean isBigEndian = (endian == 0x4d4d); int magic = readUnsignedShort(stream, isBigEndian); if (magic != 42) { throw new IllegalArgumentException("TIFFDirectory2"); } stream.seek(4L); long offset = readUnsignedInt(stream, isBigEndian); int numDirectories = 0; while (offset != 0L) { ++numDirectories; stream.seek(offset); int entries = readUnsignedShort(stream, isBigEndian); stream.skip(12*entries); offset = readUnsignedInt(stream, isBigEndian); } stream.seek(pointer); // Reset stream pointer return numDirectories; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/5519c1aaefc38cd7b31375e43bf48e7d9bf8e5e2/TIFFDirectory.java/buggy/sources/org/apache/batik/ext/awt/image/codec/tiff/TIFFDirectory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 11187, 13071, 12, 16134, 429, 1228, 1407, 13, 3639, 1216, 1860, 95, 3639, 1525, 4407, 273, 1407, 18, 29925, 4926, 5621, 368, 7074, 1407, 4407, 3639, 1407, 18, 16508, 12, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 11187, 13071, 12, 16134, 429, 1228, 1407, 13, 3639, 1216, 1860, 95, 3639, 1525, 4407, 273, 1407, 18, 29925, 4926, 5621, 368, 7074, 1407, 4407, 3639, 1407, 18, 16508, 12, 2...
try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { }
if ((string = EvalHelper.evalString("onclick", getOnclickExpr(), this, pageContext)) != null) setOnclick(string);
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } }
54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/022bd23c954cf673e53731849d562b3c295473f1/ELButtonTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELButtonTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 4742, 9334, 4766, 6647, 514, 18, 1106, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 4742, 9334, 4766, 6647, 514, 18, 1106, ...
e1.printStackTrace();
log(e1);
private void saveUser(IWContext iwc) throws RemoteException { UserBusiness userService = getUserService(iwc); Integer userID = Integer.valueOf(iwc.getParameter(PRM_SAVE)); if (userID.intValue() <= 0) { // create new user String pid = iwc.getParameter(prm_personal_id); String fname = iwc.getParameter(prm_first_name); String mname = iwc.getParameter(prm_middle_name); String lname = iwc.getParameter(prm_last_name); String group = iwc.getParameter(prm_primary_group_id); Integer groupID = null; try { groupID = Integer.valueOf(group); } catch (NumberFormatException e1) { e1.printStackTrace(); } if(isValidPersonalID(pid) && !"".equals(fname) && !"".equals(lname)){ user = createUser(iwc, pid, fname, mname, lname, groupID); } else{ String mainPostalExists = iwrb.getLocalizedString( "mbe.warning.fields_missing", "Please provide a legal personalID and nonempty names"); this.getParentPage().setOnLoad("alert('" + mainPostalExists + "');"); setNewUserView(true); } } else { user = userService.getUser(userID); try { // user part if (isNewValue(iwc, prm_personal_id) || isNewValue(iwc, prm_first_name) || isNewValue(iwc, prm_middle_name) || isNewValue(iwc, prm_last_name) || isNewValue(iwc, prm_primary_group_id)) { String pid = null, first = null, middle = null, last = null; Integer groupID = null; if (isNewValue(iwc, prm_personal_id) ){ if(isValidPersonalID(iwc.getParameter(prm_personal_id))) { pid = iwc.getParameter(prm_personal_id); } else if(warnIfPersonalIDIsIllegal){ String mainPostalExists = iwrb.getLocalizedString( "mbe.warning.personal_id_illegal", "Personal ID is illegally formatted"); this.getParentPage().setOnLoad("alert('" + mainPostalExists + "');"); } } if (isNewValue(iwc, prm_first_name)) { first = iwc.getParameter(prm_first_name); } if (isNewValue(iwc, prm_middle_name)) { middle = iwc.getParameter(prm_middle_name); } if (isNewValue(iwc, prm_last_name)) { last = iwc.getParameter(prm_last_name); } if (isNewValue(iwc, prm_primary_group_id)) { groupID = Integer.valueOf(iwc.getParameter(prm_primary_group_id)); if (groupID.intValue() <= 0) groupID = null; } userService.updateUser(user, first, middle, last, null, null, null, pid, null, groupID); } } catch (EJBException e3) { e3.printStackTrace(); } catch (RemoteException e3) { e3.printStackTrace(); } } if (user != null) userID = (Integer) user.getPrimaryKey(); else userID = null; if(userID!=null){ try { // main address part if (isRemovedValue(iwc, prm_mainaddress_street)) { Address address = null; try { address = userService.getUsersMainAddress(user); if (address != null) { user.removeAddress(address); } } catch (IDORemoveRelationshipException e1) { e1.printStackTrace(); } catch (RemoteException e1) { e1.printStackTrace(); } } else if ( isNewValue(iwc, prm_mainaddress_street) || isNewValue(iwc, prm_mainaddress_postal_code) || isNewValue(iwc, prm_mainaddress_postal_name) || isNewValue(iwc, prm_mainaddress_country) || isNewValue(iwc, prm_maincommune_id)) { String street = iwc.getParameter(prm_mainaddress_street); if (!"".equals(street)) { Integer postalID = null; Country country = null; Integer communeID = null; if (iwc.isParameterSet(prm_mainaddress_country)) { Integer countryID = Integer.valueOf(iwc.getParameter(prm_mainaddress_country)); try { country = userService.getAddressBusiness().getCountryHome().findByPrimaryKey(countryID); } catch (RemoteException e1) { e1.printStackTrace(); } catch (FinderException e1) { e1.printStackTrace(); } } if (country != null && ( isNewValue(iwc,prm_mainaddress_street) || isNewValue(iwc, prm_mainaddress_postal_code) || isNewValue(iwc, prm_mainaddress_postal_name) || isNewValue(iwc, prm_maincommune_id) || isNewValue(iwc, prm_mainaddress_country))) { String code = iwc.getParameter(prm_mainaddress_postal_code); String name = iwc.getParameter(prm_mainaddress_postal_name); if (!"".equals(code) && !"".equals(name)) { boolean postalExists = false; try { PostalCode existingCode = userService.getAddressBusiness().getPostalCodeHome().findByPostalCodeAndCountryId( code, ((Integer) country.getPrimaryKey()).intValue()); postalExists = existingCode != null; } catch (RemoteException e2) { } catch (FinderException e2) { } if (warnIfPostalExists && postalExists && (isNewValue(iwc, prm_mainaddress_postal_code) || isNewValue(iwc, prm_mainaddress_postal_name))) { String mainPostalExists = iwrb.getLocalizedString( "mbe.warning.zip_code_and_city_already_exist", "Zip code and city already exist in database"); this.getParentPage().setOnLoad("alert('" + mainPostalExists + "');"); } try { PostalCode pcode = userService.getAddressBusiness().getPostalCodeAndCreateIfDoesNotExist( code, name, country); postalID = (Integer) pcode.getPrimaryKey(); } catch (RemoteException e1) { e1.printStackTrace(); } if (iwc.isParameterSet(prm_maincommune_id)) { communeID = Integer.valueOf(iwc.getParameter(prm_maincommune_id)); } } else if (iwc.isParameterSet(prm_primaddress_postal_id)) { postalID = Integer.valueOf(iwc.getParameter(prm_primaddress_postal_id)); } userService.updateUsersMainAddressOrCreateIfDoesNotExist( userID, street, postalID, null, null, null, null, communeID); } } } // co address part if (isRemovedValue(iwc, prm_coaddress_street)) { Address address = null; try { address = userService.getUsersCoAddress(user); if (address != null) { user.removeAddress(address); } } catch (Exception e1) { e1.printStackTrace(); } } else if ( isNewValue(iwc, prm_coaddress_street) || isNewValue(iwc, prm_coaddress_postal_code) || isNewValue(iwc, prm_coaddress_postal_name) || isNewValue(iwc, prm_cocommune_id) || isNewValue(iwc, prm_coaddress_country)) { String street = iwc.getParameter(prm_coaddress_street); if (!"".equals(street)) { Integer postalID = null; Country country = null; Integer communeID = null; if (iwc.isParameterSet(prm_coaddress_country)) { Integer countryID = Integer.valueOf(iwc.getParameter(prm_coaddress_country)); try { country = userService.getAddressBusiness().getCountryHome().findByPrimaryKey(countryID); } catch (RemoteException e1) { e1.printStackTrace(); } catch (FinderException e1) { e1.printStackTrace(); } } if (country != null && (isNewValue(iwc, prm_coaddress_street) ||isNewValue(iwc, prm_coaddress_postal_code) || isNewValue(iwc, prm_coaddress_postal_name) || isNewValue(iwc, prm_cocommune_id) || isNewValue(iwc, prm_coaddress_country))) { String code = iwc.getParameter(prm_coaddress_postal_code); String name = iwc.getParameter(prm_coaddress_postal_name); if (!"".equals(code) && !"".equals(name)) { boolean postalExists = false; try { PostalCode existingCode = userService.getAddressBusiness().getPostalCodeHome().findByPostalCodeAndCountryId( code, ((Integer) country.getPrimaryKey()).intValue()); postalExists = existingCode != null; } catch (RemoteException e2) { } catch (FinderException e2) { } if (warnIfPostalExists && postalExists && (isNewValue(iwc, prm_coaddress_postal_code) || isNewValue(iwc, prm_coaddress_postal_name))) { String mainPostalExists = iwrb.getLocalizedString( "mbe.warning.zip_code_and_city_already_exist", "Zipl code and city already exist in database"); this.getParentPage().setOnLoad("alert('" + mainPostalExists + "');"); } try { PostalCode pcode = userService.getAddressBusiness().getPostalCodeAndCreateIfDoesNotExist( code, name, country); postalID = (Integer) pcode.getPrimaryKey(); } catch (RemoteException e1) { e1.printStackTrace(); } if (iwc.isParameterSet(prm_maincommune_id)) { communeID = Integer.valueOf(iwc.getParameter(prm_cocommune_id)); } } else if (iwc.isParameterSet(prm_coaddress_postal_id)) { postalID = Integer.valueOf(iwc.getParameter(prm_coaddress_postal_id)); } userService.updateUsersCoAddressOrCreateIfDoesNotExist( userID, street, postalID, null, null, null, null, communeID); } } } // phone part if (isNewValue(iwc, prm_main_phone)) { String number = iwc.getParameter(prm_main_phone); userService.updateUserPhone(userID.intValue(), PhoneTypeBMPBean.HOME_PHONE_ID, number); } else if (isRemovedValue(iwc, prm_main_phone)) { Phone phone = null; try { phone = userService.getUsersHomePhone(user); if (phone != null) { user.removePhone(phone); } } catch (Exception e1) { } } // email part if (isNewValue(iwc, prm_email_address)) { String email = iwc.getParameter(prm_email_address); userService.updateUserMail(userID.intValue(), email); } else if (isRemovedValue(iwc, prm_email_address)) { Email email = null; try { email = userService.getUserMail(user); if (email != null) { user.removeEmail(email); } } catch (Exception e1) { } } // deceased part if (iwc.isParameterSet(prm_deceased_date)) { IWTimestamp deceased = new IWTimestamp(iwc.getParameter(prm_deceased_date)); storeUserAsDeceased(iwc, userID, deceased.getDate()); //TODO use some userbusiness to inform any services that want to know about a deceased user } } catch (NumberFormatException e) { e.printStackTrace(); throw new RemoteException(e.getMessage()); } catch (EJBException e) { e.printStackTrace(); throw new RemoteException(e.getMessage()); } catch (CreateException e) { e.printStackTrace(); throw new RemoteException(e.getMessage()); } } }
57353 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57353/4eb2f431282550260fe064d81f87eb137d62a77a/UserEditor.java/clean/src/java/is/idega/idegaweb/member/presentation/UserEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1923, 1299, 12, 45, 59, 1042, 25522, 71, 13, 1216, 18361, 288, 202, 202, 1299, 13423, 27625, 273, 4735, 1179, 12, 22315, 71, 1769, 202, 202, 4522, 16299, 273, 2144, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1923, 1299, 12, 45, 59, 1042, 25522, 71, 13, 1216, 18361, 288, 202, 202, 1299, 13423, 27625, 273, 4735, 1179, 12, 22315, 71, 1769, 202, 202, 4522, 16299, 273, 2144, 18, ...
libRef = (StructRefValue) libStructure.getLocalProperty( null, LIB_REFERENCE_MEMBER );
libRef = (StructRefValue) libStructure.getLocalProperty( null, LIB_REFERENCE_MEMBER );
protected Object clone( ) throws CloneNotSupportedException { ReferencableStructure struct = (ReferencableStructure) super.clone( ); struct.libReference = null; struct.clients = new ArrayList( ); struct.clientStructures = new ArrayList( ); // retrieve the member value from the lib reference Iterator propIter = getDefn( ).getPropertyIterator( ); while ( propIter.hasNext( ) ) { PropertyDefn prop = (PropertyDefn) propIter.next( ); // if the structure has the local value already or the member is // "libReference", then return if ( struct.getLocalProperty( null, prop ) != null || LIB_REFERENCE_MEMBER.equals( prop.getName( ) ) ) continue; StructRefValue libRef = this.libReference; while ( libRef != null ) { ReferencableStructure libStructure = libReference .getTargetStructure( ); Object value = libStructure.getLocalProperty( null, prop ); if ( value != null ) struct.setProperty( prop, value ); libRef = (StructRefValue) libStructure.getLocalProperty( null, LIB_REFERENCE_MEMBER ); } } return struct; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/f05c999955a970748f9185063415d49143c0a04e/ReferencableStructure.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/ReferencableStructure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 3236, 12, 262, 1216, 12758, 25482, 202, 95, 202, 202, 426, 586, 1331, 429, 6999, 1958, 273, 261, 426, 586, 1331, 429, 6999, 13, 2240, 18, 14056, 12, 11272, 202, 202, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1033, 3236, 12, 262, 1216, 12758, 25482, 202, 95, 202, 202, 426, 586, 1331, 429, 6999, 1958, 273, 261, 426, 586, 1331, 429, 6999, 13, 2240, 18, 14056, 12, 11272, 202, 202, 16...
if(ops[firstStepPos+4] == OpCodes.FROM_DESCENDANTS_OR_SELF) orSelf = true;
DescendantIterator(Compiler compiler, int opPos, int analysis) throws javax.xml.transform.TransformerException { super(compiler, opPos, analysis, false); int ops[] = compiler.getOpMap(); int firstStepPos = compiler.getFirstChildPos(opPos); int stepType = ops[firstStepPos]; boolean orSelf = (OpCodes.FROM_DESCENDANTS_OR_SELF == stepType); boolean fromRoot = false; if (OpCodes.FROM_SELF == stepType) { orSelf = true; firstStepPos += 8; } else if(OpCodes.FROM_ROOT == stepType) { // %TBD% orSelf and fromRoot should be considered seperately. fromRoot = true; // orSelf = true; firstStepPos += 8; } if(fromRoot) { if(orSelf) m_axis = Axis.DESCENDANTSORSELFFROMROOT; else m_axis = Axis.DESCENDANTSFROMROOT; } else if(orSelf) m_axis = Axis.DESCENDANTORSELF; else m_axis = Axis.DESCENDANT; int whatToShow = compiler.getWhatToShow(firstStepPos); if ((0 == (whatToShow & (DTMFilter.SHOW_ATTRIBUTE | DTMFilter.SHOW_ELEMENT | DTMFilter.SHOW_PROCESSING_INSTRUCTION))) || (whatToShow == DTMFilter.SHOW_ALL)) initNodeTest(whatToShow); else { initNodeTest(whatToShow, compiler.getStepNS(firstStepPos), compiler.getStepLocalName(firstStepPos)); } initPredicateInfo(compiler, firstStepPos); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/32d05a2ffa70483c7a2078892265f790e0d61b52/DescendantIterator.java/clean/src/org/apache/xpath/axes/DescendantIterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 309, 12, 4473, 63, 3645, 4160, 1616, 15, 24, 65, 422, 6066, 6295, 18, 11249, 67, 10964, 4415, 6856, 55, 67, 916, 67, 26280, 13, 578, 10084, 273, 638, 31, 225, 309, 12, 4473, 63, 3645,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 309, 12, 4473, 63, 3645, 4160, 1616, 15, 24, 65, 422, 6066, 6295, 18, 11249, 67, 10964, 4415, 6856, 55, 67, 916, 67, 26280, 13, 578, 10084, 273, 638, 31, 225, 309, 12, 4473, 63, 3645,...
}
}
protected void refreshFromRoot() { if (parent == null) { refreshChildEntries(); } else { parent.refreshFromRoot(); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1ccb6f8ddf35b3b40ebd3ebe3e7982aa947ec045/PropertySheetEntry.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetEntry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4460, 1265, 2375, 1435, 288, 3639, 309, 261, 2938, 422, 446, 13, 288, 1082, 202, 9144, 1763, 5400, 5621, 202, 202, 97, 469, 288, 1082, 202, 2938, 18, 9144, 1265, 2375, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4460, 1265, 2375, 1435, 288, 3639, 309, 261, 2938, 422, 446, 13, 288, 1082, 202, 9144, 1763, 5400, 5621, 202, 202, 97, 469, 288, 1082, 202, 2938, 18, 9144, 1265, 2375, 5621, ...
public void actionPerformed(java.awt.event.ActionEvent e) { String selection = e.getActionCommand(); DrawableDataSet dataset, main_dataset; boolean retrieve_failied = false; MA_Configuration conf = MA_Configuration.application_instance(); try { String tradable = chart.current_tradable(); if (tradable == null || no_change(selection)) { // If no tradable is selected or the selection hasn't changed, // there is nothing to display. return; } if (! (selection.equals(chart.No_upper_indicator) || selection.equals(chart.No_lower_indicator) || selection.equals(chart.Volume) || selection.equals(chart.Open_interest))) { GUI_Utilities.busy_cursor(true, chart); data_builder.send_indicator_data_request( chart.indicator_id_for(selection), tradable, chart.current_period_type()); GUI_Utilities.busy_cursor(false, chart); if (data_builder.request_result_id() == Warning || data_builder.request_result_id() == Error) { new ErrorBox("Warning", "Error occurred retrieving " + "data for " + selection, chart); retrieve_failied = true; } } } catch (Exception ex) { chart.fatal("Exception occurred: ", ex); } if (retrieve_failied) { // null statement } // Set graph data according to whether the selected indicator is // configured to go in the upper (main) or lower (indicator) graph. else if (MA_Configuration.application_instance(). upper_indicators().containsKey(selection)) { main_dataset = (DrawableDataSet) data_builder.last_market_data(); if (! chart.current_upper_indicators.isEmpty() && chart.replace_indicators) { // Remove the old indicator data from the graph (and the // market data).//!!!! Refactor into one or more procedures in Chart and call them here: main_pane.clear_main_graph(); // Re-attach the market data. chart.link_with_axis(main_dataset, null); main_pane.add_main_data_set(main_dataset);//!!!I believe this is not needed because its main data is up to date,//!!!but verify that this is so://chart.tradable_specification.set_main_data(main_dataset); chart.unselect_upper_indicators(); chart.current_upper_indicators.removeAllElements();// End refactor }//!!!! Refactor into one or more procedures in Chart and call them here: chart.current_upper_indicators.addElement(selection); chart.tradable_specification.select_indicator(selection); dataset = (DrawableDataSet) data_builder.last_indicator_data(); dataset.set_dates_needed(false); dataset.setColor(conf.indicator_color(selection, true)); chart.link_with_axis(dataset, selection); main_pane.add_main_data_set(dataset); chart.tradable_specification.set_indicator_data(dataset, selection);// End refactor } else if (selection.equals(chart.No_upper_indicator)) {//!!!! Refactor into one or more procedures in Chart and call them here: // Remove the old indicator and market data from the graph. main_pane.clear_main_graph(); // Re-attach the market data without the indicator data. DrawableDataSet data = (DrawableDataSet) data_builder.last_market_data(); chart.link_with_axis(data, null); main_pane.add_main_data_set(data);//!!!(See note above about main data.)//chart.tradable_specification.set_main_data(main_dataset); chart.unselect_upper_indicators(); chart.current_upper_indicators.removeAllElements();// End refactor } else if (selection.equals(chart.No_lower_indicator)) {//!!!! Refactor into one or more procedures in Chart and call them here: main_pane.clear_indicator_graph(); chart.unselect_lower_indicators(); chart.current_lower_indicators.removeAllElements(); chart.set_window_title();// End refactor } else { if (selection.equals(chart.Volume)) { dataset = (DrawableDataSet) data_builder.last_volume(); } else if (selection.equals(chart.Open_interest)) { dataset = (DrawableDataSet) data_builder.last_open_interest(); } else { dataset = (DrawableDataSet) data_builder.last_indicator_data(); } if (chart.replace_indicators) {//!!!! Refactor into one or more procedures in Chart and call them here: main_pane.clear_indicator_graph(); chart.unselect_lower_indicators(); chart.current_lower_indicators.removeAllElements();// End refactor }//!!!! Refactor into one or more procedures in Chart and call them here: dataset.setColor(conf.indicator_color(selection, false)); chart.link_with_axis(dataset, selection); chart.current_lower_indicators.addElement(selection); chart.tradable_specification.select_indicator(selection); chart.set_window_title(); chart.add_indicator_lines(dataset, selection); main_pane.add_indicator_data_set(dataset); chart.tradable_specification.set_indicator_data(dataset, selection);// End refactor } main_pane.repaint_graphs(); }
13245 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13245/48515131c4aa58427e291bfe1c546162f299a1d4/IndicatorListener.java/buggy/src/clients/mas_gui/IndicatorListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 425, 13, 288, 202, 202, 780, 4421, 273, 425, 18, 588, 1803, 2189, 5621, 202, 202, 16149, 13676, 3709, 16, 2774, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 6290, 18, 2219, 88, 18, 2575, 18, 1803, 1133, 425, 13, 288, 202, 202, 780, 4421, 273, 425, 18, 588, 1803, 2189, 5621, 202, 202, 16149, 13676, 3709, 16, 2774, ...
List<BugzillaReportNode> doiList = new ArrayList<BugzillaReportNode>();
List<BugzillaReportNode> doiList = new ArrayList<BugzillaReportNode>();
private List<BugzillaReportNode> getDoiList(List<BugzillaSearchHit> results) { List<BugzillaReportNode> doiList = new ArrayList<BugzillaReportNode>(); boolean isExact = (scope==BugzillaMylarSearch.FULLY_QUAL || scope==BugzillaMylarSearch.LOCAL_QUAL)?true:false; BugzillaReportNode info = null; // go through all of the results and create a DoiInfo list for(BugzillaSearchHit hit : results){ try { float value = 0; info = new BugzillaReportNode( value, hit, isExact); // only download the bug for the exact matches //downloading bugs kills the time - can we do this elsewhere? - different thread? persistant?// if(isExact){// // get the bug report for the doi info item// BugReport b = BugzillaRepository.getInstance().getBug(// hit.getId());// // add the bug to the doi info for future use// info.setBug(b);// } } catch (Exception e) { MylarStatusHandler.log(e, "search failed"); } finally{ doiList.add(info); } } return doiList; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1245a92f28a2990bae8373c09891556a69268c75/BugzillaMylarSearchOperation.java/buggy/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/bugs/search/BugzillaMylarSearchOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 987, 32, 19865, 15990, 4820, 907, 34, 11165, 77, 682, 12, 682, 32, 19865, 15990, 2979, 13616, 34, 1686, 13, 288, 3639, 987, 32, 19865, 15990, 4820, 907, 34, 25183, 682, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 987, 32, 19865, 15990, 4820, 907, 34, 11165, 77, 682, 12, 682, 32, 19865, 15990, 2979, 13616, 34, 1686, 13, 288, 3639, 987, 32, 19865, 15990, 4820, 907, 34, 25183, 682, 273, 394, ...
ownerDocument = doc; for (int i = 0; i < nodes.size(); i++) { ((NodeImpl)item(i)).setOwnerDocument(doc); }
ownerDocument = doc; if (nodes != null) { for (int i = 0; i < nodes.size(); i++) { ((NodeImpl)item(i)).setOwnerDocument(doc); } }
void setOwnerDocument(DocumentImpl doc) { ownerDocument = doc; for (int i = 0; i < nodes.size(); i++) { ((NodeImpl)item(i)).setOwnerDocument(doc); } }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/e82f5b3cbf5865bb7af2597f8a14c4576814b9e7/NamedNodeMapImpl.java/buggy/src/org/apache/xerces/dom/NamedNodeMapImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 31309, 2519, 12, 2519, 2828, 997, 13, 288, 202, 8443, 2519, 273, 997, 31, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2199, 18, 1467, 5621, 277, 27245, 288, 202, 565, 14015, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 31309, 2519, 12, 2519, 2828, 997, 13, 288, 202, 8443, 2519, 273, 997, 31, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 2199, 18, 1467, 5621, 277, 27245, 288, 202, 565, 14015, ...
assertTrue(file.exists()); }
public void testPluginConfiguration() throws IOException { String string = getPluginFolder(); File file = new File(string); if (!file.exists()) { file.mkdir(); } assertTrue(file.exists()); }
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/6154a5b267bdd33616cb8e8453840821319d816c/TestPluginSystem.java/buggy/src/test/org/apache/nutch/plugin/TestPluginSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 3773, 1750, 1435, 1216, 1860, 288, 565, 514, 533, 273, 16319, 3899, 5621, 565, 1387, 585, 273, 394, 1387, 12, 1080, 1769, 565, 309, 16051, 768, 18, 1808, 10756, 288, 1377...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 3773, 1750, 1435, 1216, 1860, 288, 565, 514, 533, 273, 16319, 3899, 5621, 565, 1387, 585, 273, 394, 1387, 12, 1080, 1769, 565, 309, 16051, 768, 18, 1808, 10756, 288, 1377...
if (extension instanceof IViewPart) { return (IViewPart) extension; } return new NewViewToOldWrapper(getPartDescriptor());
return (IViewPart) extension;
public IViewPart createView() throws CoreException { Object extension = WorkbenchPlugin.createExtension( getConfigurationElement(), IWorkbenchRegistryConstants.ATT_CLASS); if (extension instanceof IViewPart) { return (IViewPart) extension; } return new NewViewToOldWrapper(getPartDescriptor()); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f1c8b0aa355c00a6c82a289c808984de6778bfca/ViewDescriptor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ViewDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1767, 1988, 15193, 1435, 1216, 30015, 288, 3639, 1033, 2710, 273, 4147, 22144, 3773, 18, 2640, 3625, 12, 7734, 10316, 1046, 9334, 7734, 467, 2421, 22144, 4243, 2918, 18, 789, 56,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1767, 1988, 15193, 1435, 1216, 30015, 288, 3639, 1033, 2710, 273, 4147, 22144, 3773, 18, 2640, 3625, 12, 7734, 10316, 1046, 9334, 7734, 467, 2421, 22144, 4243, 2918, 18, 789, 56,...
Extension extension = (Extension) CACHE.get(lang);
Extension extension = (Extension) this.nutchConf.getObject(lang);
private static Extension getExtension(String lang) { Extension extension = (Extension) CACHE.get(lang); if (extension == null) { extension = findExtension(lang); CACHE.put(lang, extension); } return extension; }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/329ff64e9d7295aff108f85e9a8103f5e5f8f398/AnalyzerFactory.java/buggy/src/java/org/apache/nutch/analysis/AnalyzerFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 10021, 12374, 12, 780, 3303, 13, 288, 565, 10021, 2710, 273, 261, 3625, 13, 333, 18, 82, 322, 343, 3976, 18, 588, 921, 12, 4936, 1769, 565, 309, 261, 6447, 422, 446, 13, 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, 282, 3238, 760, 10021, 12374, 12, 780, 3303, 13, 288, 565, 10021, 2710, 273, 261, 3625, 13, 333, 18, 82, 322, 343, 3976, 18, 588, 921, 12, 4936, 1769, 565, 309, 261, 6447, 422, 446, 13, 28...
public org.quickfix.field.NoPartySubIDs getNoPartySubIDs() throws FieldNotFound { org.quickfix.field.NoPartySubIDs value = new org.quickfix.field.NoPartySubIDs();
public quickfix.field.NoPartySubIDs getNoPartySubIDs() throws FieldNotFound { quickfix.field.NoPartySubIDs value = new quickfix.field.NoPartySubIDs();
public org.quickfix.field.NoPartySubIDs getNoPartySubIDs() throws FieldNotFound { org.quickfix.field.NoPartySubIDs value = new org.quickfix.field.NoPartySubIDs(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuote.java/clean/src/java/src/quickfix/fix44/MassQuote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 17619, 1676, 5103, 336, 2279, 17619, 1676, 5103, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 17619, 1676, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 17619, 1676, 5103, 336, 2279, 17619, 1676, 5103, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 2279, 17619, 1676, 5...
void computeInheritedMethods(ReferenceBinding superclass, ReferenceBinding[] superInterfaces) { this.inheritedMethods = new HashtableOfObject(51); ReferenceBinding[][] interfacesToVisit = new ReferenceBinding[3][]; int lastPosition = -1; ReferenceBinding[] itsInterfaces = superInterfaces; if (itsInterfaces != Binding.NO_SUPERINTERFACES) interfacesToVisit[++lastPosition] = itsInterfaces; ReferenceBinding superType = superclass; HashtableOfObject nonVisibleDefaultMethods = new HashtableOfObject(3); boolean allSuperclassesAreAbstract = true; while (superType != null && superType.isValidBinding()) { if (allSuperclassesAreAbstract) { if (superType.isAbstract()) { if ((itsInterfaces = superType.superInterfaces()) != Binding.NO_SUPERINTERFACES) { if (++lastPosition == interfacesToVisit.length) System.arraycopy(interfacesToVisit, 0, interfacesToVisit = new ReferenceBinding[lastPosition * 2][], 0, lastPosition); interfacesToVisit[lastPosition] = itsInterfaces; } } else { allSuperclassesAreAbstract = false; } } MethodBinding[] methods = superType.unResolvedMethods(); nextMethod : for (int m = methods.length; --m >= 0;) { MethodBinding inheritedMethod = methods[m]; if (inheritedMethod.isPrivate() || inheritedMethod.isConstructor() || inheritedMethod.isDefaultAbstract()) continue nextMethod; MethodBinding[] existingMethods = (MethodBinding[]) this.inheritedMethods.get(inheritedMethod.selector); if (existingMethods != null) { for (int i = 0, length = existingMethods.length; i < length; i++) { if (existingMethods[i].declaringClass != inheritedMethod.declaringClass && areMethodsEqual(existingMethods[i], inheritedMethod)) { if (inheritedMethod.isDefault() && inheritedMethod.isAbstract()) checkPackagePrivateAbstractMethod(inheritedMethod); continue nextMethod; } } } MethodBinding[] nonVisible = (MethodBinding[]) nonVisibleDefaultMethods.get(inheritedMethod.selector); if (nonVisible != null) for (int i = 0, l = nonVisible.length; i < l; i++) if (areMethodsEqual(nonVisible[i], inheritedMethod)) continue nextMethod; if (!inheritedMethod.isDefault() || inheritedMethod.declaringClass.fPackage == type.fPackage) { if (existingMethods == null) { existingMethods = new MethodBinding[] {inheritedMethod}; } else { int length = existingMethods.length; System.arraycopy(existingMethods, 0, existingMethods = new MethodBinding[length + 1], 0, length); existingMethods[length] = inheritedMethod; } this.inheritedMethods.put(inheritedMethod.selector, existingMethods); } else { if (nonVisible == null) { nonVisible = new MethodBinding[] {inheritedMethod}; } else { int length = nonVisible.length; System.arraycopy(nonVisible, 0, nonVisible = new MethodBinding[length + 1], 0, length); nonVisible[length] = inheritedMethod; } nonVisibleDefaultMethods.put(inheritedMethod.selector, nonVisible); if (inheritedMethod.isAbstract() && !this.type.isAbstract()) problemReporter().abstractMethodCannotBeOverridden(this.type, inheritedMethod); MethodBinding[] current = (MethodBinding[]) this.currentMethods.get(inheritedMethod.selector); if (current != null) { foundMatch : for (int i = 0, length = current.length; i < length; i++) { if (areMethodsEqual(current[i], inheritedMethod)) { problemReporter().overridesPackageDefaultMethod(current[i], inheritedMethod); break foundMatch; } } } } } superType = superType.superclass(); } for (int i = 0; i <= lastPosition; i++) { ReferenceBinding[] interfaces = interfacesToVisit[i]; for (int j = 0, l = interfaces.length; j < l; j++) { superType = interfaces[j]; if ((superType.tagBits & InterfaceVisited) == 0) { superType.tagBits |= InterfaceVisited; if (superType.isValidBinding()) { if ((itsInterfaces = superType.superInterfaces()) != Binding.NO_SUPERINTERFACES) { if (++lastPosition == interfacesToVisit.length) System.arraycopy(interfacesToVisit, 0, interfacesToVisit = new ReferenceBinding[lastPosition * 2][], 0, lastPosition); interfacesToVisit[lastPosition] = itsInterfaces; } MethodBinding[] methods = superType.unResolvedMethods(); nextMethod : for (int m = methods.length; --m >= 0;) { MethodBinding inheritedMethod = methods[m]; MethodBinding[] existingMethods = (MethodBinding[]) this.inheritedMethods.get(inheritedMethod.selector); if (existingMethods == null) { existingMethods = new MethodBinding[] {inheritedMethod}; } else { int length = existingMethods.length; for (int e = 0; e < length; e++) if (isInterfaceMethodImplemented(inheritedMethod, existingMethods[e], superType)) continue nextMethod; System.arraycopy(existingMethods, 0, existingMethods = new MethodBinding[length + 1], 0, length); existingMethods[length] = inheritedMethod; } this.inheritedMethods.put(inheritedMethod.selector, existingMethods); } } } } } for (int i = 0; i <= lastPosition; i++) { ReferenceBinding[] interfaces = interfacesToVisit[i]; for (int j = 0, length = interfaces.length; j < length; j++) interfaces[j].tagBits &= ~InterfaceVisited; }
void computeInheritedMethods() { ReferenceBinding superclass = this.type.isInterface() ? this.type.scope.getJavaLangObject() : this.type.superclass(); computeInheritedMethods(superclass, type.superInterfaces());
void computeInheritedMethods(ReferenceBinding superclass, ReferenceBinding[] superInterfaces) { // only want to remember inheritedMethods that can have an impact on the current type // if an inheritedMethod has been 'replaced' by a supertype's method then skip it this.inheritedMethods = new HashtableOfObject(51); // maps method selectors to an array of methods... must search to match paramaters & return type ReferenceBinding[][] interfacesToVisit = new ReferenceBinding[3][]; int lastPosition = -1; ReferenceBinding[] itsInterfaces = superInterfaces; if (itsInterfaces != Binding.NO_SUPERINTERFACES) interfacesToVisit[++lastPosition] = itsInterfaces; ReferenceBinding superType = superclass; HashtableOfObject nonVisibleDefaultMethods = new HashtableOfObject(3); // maps method selectors to an array of methods boolean allSuperclassesAreAbstract = true; while (superType != null && superType.isValidBinding()) { if (allSuperclassesAreAbstract) { if (superType.isAbstract()) { // only need to include superinterfaces if immediate superclasses are abstract if ((itsInterfaces = superType.superInterfaces()) != Binding.NO_SUPERINTERFACES) { if (++lastPosition == interfacesToVisit.length) System.arraycopy(interfacesToVisit, 0, interfacesToVisit = new ReferenceBinding[lastPosition * 2][], 0, lastPosition); interfacesToVisit[lastPosition] = itsInterfaces; } } else { allSuperclassesAreAbstract = false; } } MethodBinding[] methods = superType.unResolvedMethods(); nextMethod : for (int m = methods.length; --m >= 0;) { MethodBinding inheritedMethod = methods[m]; if (inheritedMethod.isPrivate() || inheritedMethod.isConstructor() || inheritedMethod.isDefaultAbstract()) continue nextMethod; MethodBinding[] existingMethods = (MethodBinding[]) this.inheritedMethods.get(inheritedMethod.selector); if (existingMethods != null) { for (int i = 0, length = existingMethods.length; i < length; i++) { if (existingMethods[i].declaringClass != inheritedMethod.declaringClass && areMethodsEqual(existingMethods[i], inheritedMethod)) { if (inheritedMethod.isDefault() && inheritedMethod.isAbstract()) checkPackagePrivateAbstractMethod(inheritedMethod); continue nextMethod; } } } MethodBinding[] nonVisible = (MethodBinding[]) nonVisibleDefaultMethods.get(inheritedMethod.selector); if (nonVisible != null) for (int i = 0, l = nonVisible.length; i < l; i++) if (areMethodsEqual(nonVisible[i], inheritedMethod)) continue nextMethod; if (!inheritedMethod.isDefault() || inheritedMethod.declaringClass.fPackage == type.fPackage) { if (existingMethods == null) { existingMethods = new MethodBinding[] {inheritedMethod}; } else { int length = existingMethods.length; System.arraycopy(existingMethods, 0, existingMethods = new MethodBinding[length + 1], 0, length); existingMethods[length] = inheritedMethod; } this.inheritedMethods.put(inheritedMethod.selector, existingMethods); } else { if (nonVisible == null) { nonVisible = new MethodBinding[] {inheritedMethod}; } else { int length = nonVisible.length; System.arraycopy(nonVisible, 0, nonVisible = new MethodBinding[length + 1], 0, length); nonVisible[length] = inheritedMethod; } nonVisibleDefaultMethods.put(inheritedMethod.selector, nonVisible); if (inheritedMethod.isAbstract() && !this.type.isAbstract()) // non visible abstract methods cannot be overridden so the type must be defined abstract problemReporter().abstractMethodCannotBeOverridden(this.type, inheritedMethod); MethodBinding[] current = (MethodBinding[]) this.currentMethods.get(inheritedMethod.selector); if (current != null) { // non visible methods cannot be overridden so a warning is issued foundMatch : for (int i = 0, length = current.length; i < length; i++) { if (areMethodsEqual(current[i], inheritedMethod)) { problemReporter().overridesPackageDefaultMethod(current[i], inheritedMethod); break foundMatch; } } } } } superType = superType.superclass(); } for (int i = 0; i <= lastPosition; i++) { ReferenceBinding[] interfaces = interfacesToVisit[i]; for (int j = 0, l = interfaces.length; j < l; j++) { superType = interfaces[j]; if ((superType.tagBits & InterfaceVisited) == 0) { superType.tagBits |= InterfaceVisited; if (superType.isValidBinding()) { if ((itsInterfaces = superType.superInterfaces()) != Binding.NO_SUPERINTERFACES) { if (++lastPosition == interfacesToVisit.length) System.arraycopy(interfacesToVisit, 0, interfacesToVisit = new ReferenceBinding[lastPosition * 2][], 0, lastPosition); interfacesToVisit[lastPosition] = itsInterfaces; } MethodBinding[] methods = superType.unResolvedMethods(); nextMethod : for (int m = methods.length; --m >= 0;) { // Interface methods are all abstract public MethodBinding inheritedMethod = methods[m]; MethodBinding[] existingMethods = (MethodBinding[]) this.inheritedMethods.get(inheritedMethod.selector); if (existingMethods == null) { existingMethods = new MethodBinding[] {inheritedMethod}; } else { int length = existingMethods.length; // look to see if any of the existingMethods implement this inheritedMethod for (int e = 0; e < length; e++) if (isInterfaceMethodImplemented(inheritedMethod, existingMethods[e], superType)) continue nextMethod; // skip interface method with the same signature if visible to its declaringClass System.arraycopy(existingMethods, 0, existingMethods = new MethodBinding[length + 1], 0, length); existingMethods[length] = inheritedMethod; } this.inheritedMethods.put(inheritedMethod.selector, existingMethods); } } } } } // bit reinitialization for (int i = 0; i <= lastPosition; i++) { ReferenceBinding[] interfaces = interfacesToVisit[i]; for (int j = 0, length = interfaces.length; j < length; j++) interfaces[j].tagBits &= ~InterfaceVisited; }}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/6fd0d5bd85626ed08708c51c45423c25bdf8bf17/MethodVerifier.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 3671, 29078, 4712, 12, 2404, 5250, 12098, 16, 6268, 5250, 8526, 2240, 10273, 13, 288, 202, 759, 1338, 2545, 358, 11586, 12078, 4712, 716, 848, 1240, 392, 15800, 603, 326, 783, 618, 202, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 3671, 29078, 4712, 12, 2404, 5250, 12098, 16, 6268, 5250, 8526, 2240, 10273, 13, 288, 202, 759, 1338, 2545, 358, 11586, 12078, 4712, 716, 848, 1240, 392, 15800, 603, 326, 783, 618, 202, 7...
while (child!= null && child.getElementType() != ElementType.XML_END_TAG_START) { if (!FormatterUtil.containsWhiteSpacesOnly(child)) { child = processChild(result, child, wrap, alignment, indent); resultNode = child;
ASTNode currentChild = child.getTreeNext(); while (currentChild!= null && currentChild.getElementType() != ElementType.XML_END_TAG_START) { if (!FormatterUtil.containsWhiteSpacesOnly(currentChild)) { currentChild = processChild(result, currentChild, wrap, alignment, indent); resultNode = currentChild;
private ASTNode processAllChildrenFrom(final List<Block> result, ASTNode child, final Wrap wrap, final Alignment alignment, final Indent indent) { ASTNode resultNode = child; while (child!= null && child.getElementType() != ElementType.XML_END_TAG_START) { if (!FormatterUtil.containsWhiteSpacesOnly(child)) { child = processChild(result, child, wrap, alignment, indent); resultNode = child; } if (child != null) { child = child.getTreeNext(); } } return resultNode; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/c7dbf58f919598395973c3486121fc2cbe9f50c6/AbstractXmlBlock.java/clean/source/com/intellij/psi/formatter/xml/AbstractXmlBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 9183, 907, 1207, 1595, 4212, 1265, 12, 6385, 987, 32, 1768, 34, 563, 16, 4766, 1377, 9183, 907, 1151, 16, 4766, 1377, 727, 4266, 2193, 16, 4766, 1377, 727, 17804, 8710, 16, 4766, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9183, 907, 1207, 1595, 4212, 1265, 12, 6385, 987, 32, 1768, 34, 563, 16, 4766, 1377, 9183, 907, 1151, 16, 4766, 1377, 727, 4266, 2193, 16, 4766, 1377, 727, 17804, 8710, 16, 4766, ...
return null;
return Status.OK_STATUS;
public ValidationError bindingEvent(BindingEvent e) { count++; return null; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/646de6c1228ca0820a97e225df84d75e3993e272/ListBindingTest.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/internal/databinding/internal/ListBindingTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 13167, 5085, 1133, 12, 5250, 1133, 425, 13, 288, 5411, 1056, 9904, 31, 5411, 327, 2685, 18, 3141, 67, 8608, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 13167, 5085, 1133, 12, 5250, 1133, 425, 13, 288, 5411, 1056, 9904, 31, 5411, 327, 2685, 18, 3141, 67, 8608, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if( lookahead(use_token) ) {
try { if( lookahead(use_token) ) {
public final Node parseTopStatement(int mode) throws Exception { if( debug ) { Debugger.trace( "begin parseTopStatement" ); } Node $$; if( lookahead(use_token) ) { $$ = parseLanguageDeclaration(); matchNoninsertableSemicolon(mode); } else if( lookahead(package_token) ) { $$ = parsePackageDefinition(); } else { $$ = parseStatement(mode); } if( debug ) { Debugger.trace( "finish parseTopStatement" ); } return $$; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/c8f0271f30beb85814bc53c3804d1ad914028ad4/Parser.java/buggy/js2/jsc/src/java/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 2029, 1109, 3401, 3406, 12, 474, 1965, 13, 1216, 1185, 288, 3639, 309, 12, 1198, 262, 288, 5411, 28645, 18, 5129, 12, 315, 10086, 1109, 3401, 3406, 6, 11272, 3639, 289, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 2029, 1109, 3401, 3406, 12, 474, 1965, 13, 1216, 1185, 288, 3639, 309, 12, 1198, 262, 288, 5411, 28645, 18, 5129, 12, 315, 10086, 1109, 3401, 3406, 6, 11272, 3639, 289, 3639, ...
-1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1,
private static final short[] yyCheck4() { return new short[] { -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, 33, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, 256, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, -1, -1, -1, -1, 336, 33, -1, 339, 340, 341, 342, -1, 344, 41, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 257, 258, 259, 260, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, 257, 258, 259, -1, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, 345, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, 292, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, 40, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, 33, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, 336, -1, -1, 339, 340, 341, 342, -1, 10, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, 41, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, 58, 59, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, 316, 317, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, 60, -1, 62, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, -1, -1, -1, -1, -1, -1, -1, -1, 281, -1, -1, -1, -1, -1, -1, -1, -1, 290, 291, -1, 293, 294, 295, 296, 297, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, 346, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, 40, -1, 42, 43, -1, 45, 344, 47, 346, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, 124, 47, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 257, 258, 259, 260, 261, 262, 263, 264, -1, 344, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, 60, -1, 62, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 260, 261, 262, 263, 264, -1, -1, 267, 268, 269, 270, 271, -1, -1, 274, 275, 276, 277, 278, 279, 280, -1, -1, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, -1, -1, -1, 344, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 37, 38, -1, -1, -1, 42, 43, -1, 45, 344, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, 60, -1, 62, -1, -1, -1, -1, -1, 37, 38, -1, -1, -1, 42, 43, -1, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, 60, -1, 62, 94, -1, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, 94, 126, 96, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 124, -1, 126, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, -1, -1, -1, -1, 304, 305, -1, 344, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, 304, 305, -1, -1, 308, -1, -1, -1, -1, 344, -1, -1, 316, 317, 318, 319, 320, 321, -1, 323, 324, -1, -1, 327, -1, -1, -1, 331, 332, 333, 334, -1, -1, 257, 258, 259, -1, 261, -1, -1, 344, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 333, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, 344, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, 257, 258, 259, 356, 261, -1, -1, -1, 265, 266, -1, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, -1, -1, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, -1, 313, 314, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 336, -1, -1, 339, 340, 341, 342, -1, -1, -1, 346, 347, 348, 349, 350, 351, -1, -1, -1, -1, 356, }; }
52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 9131, 23, 16, 225, 576, 5193, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 300, 21, 16, 282, 300, 21, 16, 282, 300, 21, 16, 225, 9131, 23, 16, 225, 576, 5193, 16, ...
private void replaceSingleVariableDeclaration(ASTRewrite rewrite, ArrayAccess arrayAccess, TextEditGroup group) {
private void replaceSingleVariableDeclaration(ASTRewrite rewrite, ArrayAccess arrayAccess, TextEditGroup group, LinkedProposalModel positionGroups) {
private void replaceSingleVariableDeclaration(ASTRewrite rewrite, ArrayAccess arrayAccess, TextEditGroup group) { VariableDeclarationFragment declarationFragment= (VariableDeclarationFragment)arrayAccess.getParent(); VariableDeclarationStatement declarationStatement= (VariableDeclarationStatement)declarationFragment.getParent(); // if could not infer THE_ELEMENT from infer step, we might // be able to infer it from here if (fParameterDeclaration == null) { fParameterDeclaration= fAst.newSingleVariableDeclaration(); } SimpleName theTempVariable= declarationFragment.getName(); SimpleName name= fAst.newSimpleName(theTempVariable.getIdentifier()); Type type= ASTNodeFactory.newType(getAst(), declarationFragment); fParameterDeclaration.setName(name); fParameterDeclaration.setType(type); if (ASTNodes.findModifierNode(Modifier.FINAL, declarationStatement.modifiers()) != null) { ModifierRewrite.create(rewrite, fParameterDeclaration).setModifiers(Modifier.FINAL, Modifier.NONE, group); } LocalOccurencesFinder finder2= new LocalOccurencesFinder(theTempVariable.resolveBinding(), fOldForStatement.getBody()); finder2.perform(); List occurences2= finder2.getOccurences(); linkAllReferences(rewrite, occurences2); rewrite.replace(declarationStatement, null, group); return; }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/a8c86fb8d645dfcc5cfb69cc55f2b035a1d124e9/ConvertForLoopOperation.java/clean/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/fix/ConvertForLoopOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1453, 5281, 26547, 12, 37, 3902, 12341, 10738, 16, 27753, 526, 1862, 16, 3867, 4666, 1114, 1041, 13, 288, 202, 202, 26547, 7456, 8266, 7456, 33, 261, 26547, 7456, 13, 1126...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1453, 5281, 26547, 12, 37, 3902, 12341, 10738, 16, 27753, 526, 1862, 16, 3867, 4666, 1114, 1041, 13, 288, 202, 202, 26547, 7456, 8266, 7456, 33, 261, 26547, 7456, 13, 1126...
results.put("noDefaultLocationResult", new ResultConfig("noDefaultLocationResult", ActionChainResult.class, resultParams));
results.put("noDefaultLocationResult", new ResultConfig("noDefaultLocationResult", ActionChainResult.class.getName(), resultParams));
public void testActions() throws ConfigurationException { final String filename = "com/opensymphony/xwork2/config/providers/xwork-test-results.xml"; ConfigurationProvider provider = buildConfigurationProvider(filename); HashMap parameters = new HashMap(); HashMap results = new HashMap(); results.put("chainDefaultTypedResult", new ResultConfig("chainDefaultTypedResult", ActionChainResult.class, new HashMap())); results.put("mockTypedResult", new ResultConfig("mockTypedResult", MockResult.class, new HashMap())); Map resultParams = new HashMap(); resultParams.put("actionName", "bar.vm"); results.put("specificLocationResult", new ResultConfig("specificLocationResult", ActionChainResult.class, resultParams)); resultParams = new HashMap(); resultParams.put("actionName", "foo.vm"); results.put("defaultLocationResult", new ResultConfig("defaultLocationResult", ActionChainResult.class, resultParams)); resultParams = new HashMap(); resultParams.put("foo", "bar"); results.put("noDefaultLocationResult", new ResultConfig("noDefaultLocationResult", ActionChainResult.class, resultParams)); ActionConfig expectedAction = new ActionConfig(null, SimpleAction.class, parameters, results, new ArrayList()); // execute the configuration provider.init(configuration); PackageConfig pkg = configuration.getPackageConfig("default"); Map actionConfigs = pkg.getActionConfigs(); // assertions assertEquals(1, actionConfigs.size()); ActionConfig action = (ActionConfig) actionConfigs.get("Bar"); assertEquals(expectedAction, action); }
16468 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/16468/8e4b376ce60ae61a7367ae115da8d7f01fc79575/XmlConfigurationProviderResultsTest.java/buggy/src/test/com/opensymphony/xwork2/config/providers/XmlConfigurationProviderResultsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6100, 1435, 1216, 22196, 288, 3639, 727, 514, 1544, 273, 315, 832, 19, 20346, 2942, 20086, 19, 92, 1252, 22, 19, 1425, 19, 17520, 19, 92, 1252, 17, 3813, 17, 4717, 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, 918, 1842, 6100, 1435, 1216, 22196, 288, 3639, 727, 514, 1544, 273, 315, 832, 19, 20346, 2942, 20086, 19, 92, 1252, 22, 19, 1425, 19, 17520, 19, 92, 1252, 17, 3813, 17, 4717, 18, ...
if( name == EMPTY_CHAR_ARRAY ) return null; return new String( name );
if (name == EMPTY_CHAR_ARRAY) return null; return new String(name);
public String toString() { if( name == EMPTY_CHAR_ARRAY ) return null; return new String( name ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d2e2b4f4b171abbdb164530b7340a6b4bd968d19/CASTName.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CASTName.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 309, 12, 508, 422, 8984, 67, 7305, 67, 8552, 262, 327, 446, 31, 3639, 327, 394, 514, 12, 508, 11272, 565, 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, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 309, 12, 508, 422, 8984, 67, 7305, 67, 8552, 262, 327, 446, 31, 3639, 327, 394, 514, 12, 508, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, ...
removeIndexesState(locations);
public synchronized void removeIndexPath(IPath path) { Set keySet = this.indexes.keySet(); Iterator keys = keySet.iterator(); String[] locations = null; int max = keySet.size(); int ptr = 0; while (keys.hasNext()) { String indexLocation = (String) keys.next(); IPath indexPath = new Path(indexLocation); if (path.isPrefixOf(indexPath)) { Index index = (Index) this.indexes.get(indexLocation); if (index != null) index.monitor = null; if (locations == null) locations = new String[max]; locations[ptr++] = indexLocation; File indexFile = new File(indexLocation); if (indexFile.exists()) { indexFile.delete(); } } else if (locations == null) { max--; } } for (int i=0; i<ptr; i++) { this.indexes.remove(locations[i]); } removeIndexesState(locations);}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/4cbee9c4edfca3748d4063d8a7e10ad2054f1b8a/IndexManager.java/clean/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/indexing/IndexManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3852, 918, 1206, 1016, 743, 12, 45, 743, 589, 13, 288, 202, 694, 7685, 273, 333, 18, 11265, 18, 856, 694, 5621, 202, 3198, 1311, 273, 7685, 18, 9838, 5621, 202, 780, 8526, 7838, 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, 1071, 3852, 918, 1206, 1016, 743, 12, 45, 743, 589, 13, 288, 202, 694, 7685, 273, 333, 18, 11265, 18, 856, 694, 5621, 202, 3198, 1311, 273, 7685, 18, 9838, 5621, 202, 780, 8526, 7838, 273, ...
headers.put("Content-Disposition", "attachment; filename=\"" + key.getPreferredFilename() + "\"");
headers.put("Content-Disposition", "attachment; filename=\"" + key.getPreferredFilename() + '"');
public static void handleDownload(ToadletContext context, Bucket data, BucketFactory bucketFactory, String mimeType, String requestedMimeType, String forceString, boolean forceDownload, String basePath, FreenetURI key, String extras) throws ToadletContextClosedException, IOException { if(requestedMimeType != null) mimeType = requestedMimeType; long now = System.currentTimeMillis(); boolean force = false; if(forceString != null) { if(forceString.equals(getForceValue(key, now)) || forceString.equals(getForceValue(key, now-FORCE_GRAIN_INTERVAL))) force = true; } try { if((!force) && (!forceDownload)) { FilterOutput fo = ContentFilter.filter(data, bucketFactory, mimeType, new URI(basePath + URLEncoder.encode(key.toString(false))), null); data = fo.data; mimeType = fo.type; } if (forceDownload) { MultiValueTable headers = new MultiValueTable(); headers.put("Content-Disposition", "attachment; filename=\"" + key.getPreferredFilename() + "\""); context.sendReplyHeaders(200, "OK", headers, "application/x-msdownload", data.size()); context.writeData(data); } else { // Send the data, intact context.sendReplyHeaders(200, "OK", new MultiValueTable(), mimeType, data.size()); context.writeData(data); } } catch (URISyntaxException use1) { /* shouldn't happen */ use1.printStackTrace(); Logger.error(FProxyToadlet.class, "could not create URI", use1); } catch (UnsafeContentTypeException e) { HTMLNode pageNode = context.getPageMaker().getPageNode("Potentially Dangerous Content"); HTMLNode contentNode = context.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-alert"); infobox.addChild("div", "class", "infobox-header", e.getRawTitle()); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild(e.getHTMLExplanation()); infoboxContent.addChild("p", "Your options are:"); HTMLNode optionList = infoboxContent.addChild("ul"); HTMLNode option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?type=text/plain"+extras, "Click here"); option.addChild("#", " to open the file as plain text (this should not be dangerous but it may be garbled)."); // FIXME: is this safe? See bug #131 option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?forcedownload"+extras, "Click here"); option.addChild("#", " to force your browser to download the file to disk."); option = optionList.addChild("li"); option.addChild("a", "href", basePath + key.toString(false) + "?force=" + getForceValue(key, now)+extras, "Click here"); option.addChild("#", " to open the file as " + mimeType + "."); option = optionList.addChild("li"); option.addChild("a", "href", "/", "Click here"); option.addChild("#", " to go to the FProxy home page."); byte[] pageBytes = pageNode.generate().getBytes(); context.sendReplyHeaders(200, "OK", new MultiValueTable(), "text/html; charset=utf-8", pageBytes.length); context.writeData(pageBytes); } }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/62fd59041864b4ed1f43adc676de6bfb5ea977f3/FProxyToadlet.java/buggy/src/freenet/clients/http/FProxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 1640, 7109, 12, 774, 361, 1810, 1042, 819, 16, 7408, 501, 16, 7408, 1733, 2783, 1733, 16, 514, 10707, 16, 514, 3764, 16821, 16, 514, 2944, 780, 16, 1250, 2944, 7109,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 7109, 12, 774, 361, 1810, 1042, 819, 16, 7408, 501, 16, 7408, 1733, 2783, 1733, 16, 514, 10707, 16, 514, 3764, 16821, 16, 514, 2944, 780, 16, 1250, 2944, 7109,...
if (this.lineEndTable == null || ((length = this.lineEndTable.length) == 0)) return -2; if (line < 1 || column < 0) return -1;
if ((length = this.lineEndTable.length) == 0) { if (line != 1) return -1; return column >= getStartPosition() + getLength() ? -1 : column; }
public int getPosition(int line, int column) { int length; if (this.lineEndTable == null || ((length = this.lineEndTable.length) == 0)) return -2; if (line < 1 || column < 0) return -1; if (line == 1) { final int endOfLine = this.lineEndTable[0]; return column > endOfLine ? -1 : column; } else if( line > length + 1 ) { // greater than the number of lines in the source string. return -1; } // -1 to for one-based to zero-based conversion. // -1, again, to get previous line. final int previousLineOffset = this.lineEndTable[line - 2]; // previousLineOffset + 1 is the first character of the current line final int offsetForLine = previousLineOffset + 1; final int currentLineEnd = line == length + 1 ? getStartPosition() + getLength() - 1 : this.lineEndTable[line-1]; if ((offsetForLine + column) > currentLineEnd) { return -1; } else { return offsetForLine + column; } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/ccbb4ee73c1d56e51a0d901ba370b4dbe9978628/CompilationUnit.java/buggy/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/CompilationUnit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 1071, 509, 14441, 12, 474, 980, 16, 509, 1057, 13, 288, 202, 202, 474, 769, 31, 202, 202, 430, 261, 2211, 18, 1369, 1638, 1388, 422, 446, 747, 14015, 2469, 273, 333, 18, 1369, 1638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 509, 14441, 12, 474, 980, 16, 509, 1057, 13, 288, 202, 202, 474, 769, 31, 202, 202, 430, 261, 2211, 18, 1369, 1638, 1388, 422, 446, 747, 14015, 2469, 273, 333, 18, 1369, 1638, ...
public org.quickfix.field.UnderlyingDirtyPrice getUnderlyingDirtyPrice() throws FieldNotFound { org.quickfix.field.UnderlyingDirtyPrice value = new org.quickfix.field.UnderlyingDirtyPrice();
public quickfix.field.UnderlyingDirtyPrice getUnderlyingDirtyPrice() throws FieldNotFound { quickfix.field.UnderlyingDirtyPrice value = new quickfix.field.UnderlyingDirtyPrice();
public org.quickfix.field.UnderlyingDirtyPrice getUnderlyingDirtyPrice() throws FieldNotFound { org.quickfix.field.UnderlyingDirtyPrice value = new org.quickfix.field.UnderlyingDirtyPrice(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/buggy/src/java/src/quickfix/fix44/Quote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, 5147, 10833, 765, 6291, 10785, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10785, 5147, 10833, 765, 6291, 10785, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, ...
engine.setProperty(Properties.DISABLED_IMAGE_URL, disabledImageURL); }
engine.setProperty(Properties.DISABLED_IMAGE_URL, disabledImageURL); }
public final void setDisabledImageURL(java.lang.String disabledImageURL) { engine.setProperty(Properties.DISABLED_IMAGE_URL, disabledImageURL); }
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/DateChooserComponent.java/buggy/org.rcfaces.core/src/org/rcfaces/core/component/DateChooserComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 444, 8853, 2040, 1785, 12, 6290, 18, 4936, 18, 780, 5673, 2040, 1785, 13, 288, 3639, 4073, 18, 542, 1396, 12, 2297, 18, 24493, 67, 13603, 67, 1785, 16, 5673, 2040, 1785,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 444, 8853, 2040, 1785, 12, 6290, 18, 4936, 18, 780, 5673, 2040, 1785, 13, 288, 3639, 4073, 18, 542, 1396, 12, 2297, 18, 24493, 67, 13603, 67, 1785, 16, 5673, 2040, 1785,...
public IRubyObject evalSimple(ThreadContext context, IRubyObject src, String file) { // this is ensured by the callers assert file != null; ThreadContext threadContext = getRuntime().getCurrentContext(); ISourcePosition savedPosition = threadContext.getPosition(); // no binding, just eval in "current" frame (caller's frame) Iter iter = threadContext.getFrameIter(); IRubyObject result = getRuntime().getNil(); try { // hack to avoid using previous frame if we're the first frame, since this eval is used to start execution too if (threadContext.getPreviousFrame() != null) { threadContext.setFrameIter(threadContext.getPreviousFrameIter()); } result = EvaluationState.eval(threadContext, getRuntime().parse(src.toString(), file, threadContext.getCurrentScope()), this); } finally { // FIXME: this is broken for Proc, see above threadContext.setFrameIter(iter); // restore position threadContext.setPosition(savedPosition); } return result; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/c8b66db475de1dc66f347884891dd70d9943689b/RubyObject.java/clean/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 5302, 5784, 12, 3830, 1042, 819, 16, 15908, 10340, 921, 1705, 16, 514, 585, 13, 288, 3639, 368, 333, 353, 3387, 72, 635, 326, 19932, 3639, 1815, 585, 480, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 5302, 5784, 12, 3830, 1042, 819, 16, 15908, 10340, 921, 1705, 16, 514, 585, 13, 288, 3639, 368, 333, 353, 3387, 72, 635, 326, 19932, 3639, 1815, 585, 480, 446, ...
Manifest manifest = getManifest( "src/test/resources/manifests/manifest5.mf" );
getManifest( "src/test/resources/manifests/manifest5.mf" );
public void testManifestReader5() { try { Manifest manifest = getManifest( "src/test/resources/manifests/manifest5.mf" ); fail(); } catch (IOException ioe) { ioe.printStackTrace(); fail( ioe.getMessage() ); } catch (ManifestException me) { boolean hasWarning = me.getMessage().indexOf("Manifest sections should start with a \"Name\" attribute") != -1; assertEquals("Expected warning about section not starting with Name: attribute", true, hasWarning); return; } }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/713ecf8795f4808c6241a96149e8478af99c2f57/ManifestTest.java/clean/plexus-archiver/src/test/java/org/codehaus/plexus/archiver/jar/ManifestTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 9121, 2514, 25, 1435, 565, 288, 3639, 775, 3639, 288, 5411, 23619, 3811, 12, 315, 4816, 19, 3813, 19, 4683, 19, 14357, 87, 19, 14357, 25, 18, 16126, 6, 11272, 5411, 232...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9121, 2514, 25, 1435, 565, 288, 3639, 775, 3639, 288, 5411, 23619, 3811, 12, 315, 4816, 19, 3813, 19, 4683, 19, 14357, 87, 19, 14357, 25, 18, 16126, 6, 11272, 5411, 232...
return toRet;
if (mSubtractRules == null) return toAdd; List<Instance> toExclude = mSubtractRules.expandInstances(calItem, start, end); return ListUtil.subtractSortedLists( toAdd, toExclude, new Instance.StartTimeComparator());
public List<Instance> expandInstances(CalendarItem calItem, long start, long end) { if (mDtStart == null) { ZimbraLog.calendar.warn("Unable to expand a recurrence with no DTSTART"); return new ArrayList<Instance>(); } if (mAddRules == null) { // trivial, just DtStart! List<Instance> toRet = new ArrayList<Instance>(1); long instStart = mDtStart.getUtcTime(); long instEnd = mDuration != null ? mDtStart.add(mDuration).getUtcTime() : instStart; if (instStart < end && instEnd > start) { toRet.add(new Instance(calItem, mInvId, false, instStart, instEnd, false)); } return toRet; } // start with the addrules List<Instance> addRules = mAddRules.expandInstances(calItem, start, end); // subtract the SubRules List<Instance> subRules; if (mSubtractRules != null) { subRules = mSubtractRules.expandInstances(calItem, start, end); } else { subRules = new ArrayList<Instance>(); } List<Instance> toRet = (List<Instance>) ListUtil.subtractSortedLists(addRules, subRules); // ALWAYS include DTSTART -- by spec long firstStart = mDtStart.getUtcTime(); long firstEnd = mDuration != null ? mDtStart.add(mDuration).getUtcTime() : firstStart; if (firstStart < end && firstEnd > start) { CalendarItem.Instance first = null; if (toRet.size() >0) { first = (CalendarItem.Instance)toRet.get(0); } CalendarItem.Instance dtstartInst = new CalendarItem.Instance( calItem, mInvId, false, firstStart, firstEnd, false); if (first == null || first.compareTo(dtstartInst) != 0) { assert(first == null || first.compareTo(dtstartInst) > 0); // first MUST be after dtstart! toRet.add(0,dtstartInst); } } return toRet; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/e954015c48cc1432411be7eb6e1c950d3d665853/Recurrence.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/calendar/Recurrence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 987, 32, 1442, 34, 4542, 5361, 12, 7335, 1180, 1443, 1180, 16, 1525, 787, 16, 1525, 679, 13, 540, 288, 5411, 309, 261, 81, 19739, 1685, 422, 446, 13, 288, 7734, 2285, 381, 15397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 32, 1442, 34, 4542, 5361, 12, 7335, 1180, 1443, 1180, 16, 1525, 787, 16, 1525, 679, 13, 540, 288, 5411, 309, 261, 81, 19739, 1685, 422, 446, 13, 288, 7734, 2285, 381, 15397, ...
public void visitUndefNode(Node iVisited) { visit(iVisited); leave(iVisited); }
public void visitUndefNode(Node iVisited) { visit(iVisited); leave(iVisited); }
public void visitUndefNode(Node iVisited) { visit(iVisited); leave(iVisited); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/buggy/org/jruby/nodes/NodeVisitorAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 984, 536, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 19574, 12, 77, 30019, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 984, 536, 907, 12, 907, 277, 30019, 13, 202, 95, 202, 202, 11658, 12, 77, 30019, 1769, 202, 202, 19574, 12, 77, 30019, 1769, 202, 97, 2, -100, -100, -100, -100, -...
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment( );
GraphicsEnvironment ge = GraphicsEnvironment .getLocalGraphicsEnvironment( );
public static String[] getSystemFontNames( ) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment( ); return ge.getAvailableFontFamilyNames( ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bfff87b48d2cfdef853156d02518171a515734e7/DEUtil.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 8526, 12996, 5711, 1557, 12, 262, 202, 95, 202, 202, 17558, 5494, 8244, 273, 16830, 5494, 18, 588, 2042, 17558, 5494, 12, 11272, 202, 202, 2463, 8244, 18, 588, 5268, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 8526, 12996, 5711, 1557, 12, 262, 202, 95, 202, 202, 17558, 5494, 8244, 273, 16830, 5494, 18, 588, 2042, 17558, 5494, 12, 11272, 202, 202, 2463, 8244, 18, 588, 5268, ...
final FSDataInputStream in = fs.open(split.getFile());
final FSDataInputStream in = fs.open(split.getPath());
public RecordReader getRecordReader(FileSystem fs, FileSplit split, JobConf job, Reporter reporter) throws IOException { reporter.setStatus(split.toString()); final long start = split.getStart(); final long end = start + split.getLength(); // open the file and seek to the start of the split final FSDataInputStream in = fs.open(split.getFile()); if (start != 0) { in.seek(start-1); while (in.getPos() < end) { // scan to the next newline in the file char c = (char)in.read(); if (c == '\r' || c == '\n') { break; } } } return new RecordReader() { /** Read a line. */ public synchronized boolean next(Writable key, Writable value) throws IOException { long pos = in.getPos(); if (pos >= end) return false; ((LongWritable)key).set(pos); // key is position ((UTF8)value).set(readLine(in)); // value is line return true; } public synchronized long getPos() throws IOException { return in.getPos(); } public synchronized void close() throws IOException { in.close(); } }; }
50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/ee01fef4b4fb82c7492a4a747793839a4d14cd39/TextInputFormat.java/buggy/src/java/org/apache/hadoop/mapred/TextInputFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5059, 2514, 11674, 2514, 12, 11785, 2662, 16, 1387, 5521, 1416, 16, 4766, 1377, 3956, 3976, 1719, 16, 25585, 11528, 13, 565, 1216, 1860, 288, 565, 11528, 18, 542, 1482, 12, 4939, 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, 282, 1071, 5059, 2514, 11674, 2514, 12, 11785, 2662, 16, 1387, 5521, 1416, 16, 4766, 1377, 3956, 3976, 1719, 16, 25585, 11528, 13, 565, 1216, 1860, 288, 565, 11528, 18, 542, 1482, 12, 4939, 18...
for (int i = 0; i < numLocals; ++i) result.setValue(i, IsNullValue.nonReportingNotNullValue());
boolean instanceMethod = !methodGen.isStatic(); for (int i = 0; i < numLocals; ++i) { IsNullValue paramValue; if (UNKNOWN_VALUES_ARE_NSP && !(instanceMethod && i == 0)) paramValue = IsNullValue.nullOnSomePathValue(); else paramValue = IsNullValue.nonReportingNotNullValue(); result.setValue(i, paramValue); }
public void initEntryFact(IsNullValueFrame result) { result.setValid(); int numLocals = methodGen.getMaxLocals(); for (int i = 0; i < numLocals; ++i) result.setValue(i, IsNullValue.nonReportingNotNullValue()); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/2e86a581de8c661aa93576f81f0d0dcf82f46156/IsNullValueAnalysis.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/IsNullValueAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1208, 1622, 9766, 12, 2520, 2041, 620, 3219, 563, 13, 288, 202, 202, 2088, 18, 542, 1556, 5621, 202, 202, 474, 818, 1333, 1031, 273, 707, 7642, 18, 588, 2747, 1333, 1031,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 1622, 9766, 12, 2520, 2041, 620, 3219, 563, 13, 288, 202, 202, 2088, 18, 542, 1556, 5621, 202, 202, 474, 818, 1333, 1031, 273, 707, 7642, 18, 588, 2747, 1333, 1031,...
protected NodeImpl(DocumentImpl ownerDocument) {
protected NodeImpl(DocumentImpl ownerDocument, OMFactory factory) { this(factory);
protected NodeImpl(DocumentImpl ownerDocument) { this.ownerNode = ownerDocument; // this.isOwned(true); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/46a014bae8b3bdea6efef1d984a295027545ce0c/NodeImpl.java/buggy/modules/doom/src/org/apache/axis2/om/impl/dom/NodeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2029, 2828, 12, 2519, 2828, 19701, 16, 28839, 1733, 3272, 13, 288, 333, 12, 6848, 1769, 4202, 333, 18, 8443, 907, 273, 19701, 31, 3639, 368, 333, 18, 291, 5460, 329, 12, 3767, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 2029, 2828, 12, 2519, 2828, 19701, 16, 28839, 1733, 3272, 13, 288, 333, 12, 6848, 1769, 4202, 333, 18, 8443, 907, 273, 19701, 31, 3639, 368, 333, 18, 291, 5460, 329, 12, 3767, 176...
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 12; } public int getIconWidth() { return 12; } public void paintIcon(Component c, Graphics g, int x, int y) { g.translate(x, y); Color saved = g.getColor(); g.setColor(Color.BLACK); g.fillPolygon(new Polygon(new int[] { 3, 9, 3 }, new int[] { 2, 6, 10 }, 3)); g.setColor(saved); g.translate(-x, -y); } }; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/BasicIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicIconFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 5554, 588, 4599, 18691, 5554, 1435, 95, 2463, 2704, 5554, 1435, 95, 202, 482, 474, 588, 5554, 2686, 1435, 202, 95, 202, 2463, 2138, 31, 202, 97, 202, 482, 474, 588, 5554, 2384, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3845, 5554, 588, 4599, 18691, 5554, 1435, 95, 2463, 2704, 5554, 1435, 95, 202, 482, 474, 588, 5554, 2686, 1435, 202, 95, 202, 2463, 2138, 31, 202, 97, 202, 482, 474, 588, 5554, 2384, 1...
if (j <= (lo + h - 1)) {
if ( j <= ( lo + h - 1 ) ) {
private void simpleSort(int lo, int hi, int d) { int i, j, h, bigN, hp; int v; bigN = hi - lo + 1; if (bigN < 2) { return; } hp = 0; while (incs[hp] < bigN) { hp++; } hp--; for (; hp >= 0; hp--) { h = incs[hp]; i = lo + h; while (true) { /* copy 1 */ if (i > hi) { break; } v = zptr[i]; j = i; while (fullGtU(zptr[j - h] + d, v + d)) { zptr[j] = zptr[j - h]; j = j - h; if (j <= (lo + h - 1)) { break; } } zptr[j] = v; i++; /* copy 2 */ if (i > hi) { break; } v = zptr[i]; j = i; while (fullGtU(zptr[j - h] + d, v + d)) { zptr[j] = zptr[j - h]; j = j - h; if (j <= (lo + h - 1)) { break; } } zptr[j] = v; i++; /* copy 3 */ if (i > hi) { break; } v = zptr[i]; j = i; while (fullGtU(zptr[j - h] + d, v + d)) { zptr[j] = zptr[j - h]; j = j - h; if (j <= (lo + h - 1)) { break; } } zptr[j] = v; i++; if (workDone > workLimit && firstAttempt) { return; } } } }
55907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55907/4da7a225ba9c01ca94805923e06e3fb2d46bf201/CBZip2OutputStream.java/buggy/plexus-archiver/src/main/java/org/codehaus/plexus/archiver/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4143, 4416, 12, 474, 437, 16, 509, 10118, 16, 509, 302, 13, 288, 3639, 509, 277, 16, 525, 16, 366, 16, 5446, 50, 16, 16460, 31, 3639, 509, 331, 31, 3639, 5446, 50, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4143, 4416, 12, 474, 437, 16, 509, 10118, 16, 509, 302, 13, 288, 3639, 509, 277, 16, 525, 16, 366, 16, 5446, 50, 16, 16460, 31, 3639, 509, 331, 31, 3639, 5446, 50, 273, 1...
payPlayer(player,(int) (itemPrice * ((1.0f * sheep.getWeight()) / sheep.MAX_WEIGHT)));
payPlayer(player,(int) (itemPrice * (((float) sheep.getWeight()) / (float)sheep.MAX_WEIGHT)));
public SheepGrowing(StendhalRPWorld world, StendhalRPRuleProcessor rules) { StendhalRPZone zone=(StendhalRPZone)world.getRPZone(new IRPZone.ID("0_semos_village")); Sign sign=new Sign(); zone.assignRPObjectID(sign); sign.setx(26); sign.sety(41); sign.setText("Talk to Nishiya to buy a sheep!.|He has the best prices for miles."); zone.add(sign); NPC npc=new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(33,44)); nodes.add(new Path.Node(33,42)); nodes.add(new Path.Node(23,42)); nodes.add(new Path.Node(23,44)); setPath(nodes,true); } protected void createDialog() { class SheepSellerBehaviour extends Behaviours.SellerBehaviour { SheepSellerBehaviour(Map<String,Integer> items) { super(items); } public boolean onSell(SpeakerNPC seller, Player player, String itemName, int itemPrice) { if(!player.hasSheep()) { seller.say("Congratulations! Here is your sheep!Keep it safe!"); StendhalRPZone zone=(StendhalRPZone)world.getRPZone(seller.getID()); Sheep sheep=new Sheep(player); zone.assignRPObjectID(sheep); sheep.setx(seller.getx()); sheep.sety(seller.gety()+2); world.add(sheep); player.setSheep(sheep); world.modify(player); chargePlayer(player,itemPrice); return true; } else { say("You already have a sheep. Take care of it first!"); return false; } } } Map<String,Integer> items=new HashMap<String,Integer>(); items.put("sheep",30); Behaviours.addGreeting(this); Behaviours.addJob(this,"I work as a sheep seller."); Behaviours.addHelp(this,"I just sell sheeps. Just tell me buy sheep and I will sell you a nice sheep!."); Behaviours.addGoodbye(this); Behaviours.addSeller(this,new SheepSellerBehaviour(items)); } }; zone.assignRPObjectID(npc); npc.put("class","sellernpc"); npc.setName("Nishiya"); npc.setx(33); npc.sety(44); npc.setBaseHP(100); npc.setHP(npc.getBaseHP()); zone.add(npc); rules.addNPC(npc); zone=(StendhalRPZone)world.getRPZone(new IRPZone.ID("0_semos_city")); sign=new Sign(); zone.assignRPObjectID(sign); sign.setx(43); sign.sety(40); sign.setText("Talk to Sato to sell your sheep!.|He probably won't give you a fair price but this is a small village...|The price he will offer you depends on the weight of your sheep."); zone.add(sign); npc=new SpeakerNPC() { protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(40,44)); nodes.add(new Path.Node(58,44)); nodes.add(new Path.Node(58,21)); nodes.add(new Path.Node(39,21)); nodes.add(new Path.Node(39,14)); nodes.add(new Path.Node(20,14)); nodes.add(new Path.Node(20,21)); nodes.add(new Path.Node(23,21)); nodes.add(new Path.Node(23,44)); setPath(nodes,true); } protected void createDialog() { class SheepBuyerBehaviour extends Behaviours.BuyerBehaviour { SheepBuyerBehaviour(Map<String,Integer> items) { super(items); } public boolean onBuy(SpeakerNPC seller, Player player, String itemName, int itemPrice) { if(player.hasSheep()) { Sheep sheep=(Sheep)world.get(player.getSheep()); if(seller.distance(sheep)>5*5) { seller.say("Ya sheep is too far away. I can't see it from here. Go and bring it here."); } else { say("Thanks! Here is your money."); rp.removeNPC(sheep); world.remove(sheep.getID()); player.removeSheep(sheep); payPlayer(player,(int) (itemPrice * ((1.0f * sheep.getWeight()) / sheep.MAX_WEIGHT))); world.modify(player); return true; } } else { seller.say("You ain't got a sheep!! What game you trying to play, "+player.get("name")+"?"); } return false; } } Map<String,Integer> buyitems=new HashMap<String,Integer>(); buyitems.put("sheep",150); Behaviours.addGreeting(this); Behaviours.addJob(this,"I work as the main Semos' sheep buyer."); Behaviours.addHelp(this,"I just buy sheeps. Just tell me sell sheep and I will buy your nice sheep!."); Behaviours.addBuyer(this,new SheepBuyerBehaviour(buyitems)); Behaviours.addGoodbye(this); } }; zone.assignRPObjectID(npc); npc.setName("Sato"); npc.put("class","buyernpc"); npc.setx(40); npc.sety(44); npc.setBaseHP(100); npc.setHP(npc.getBaseHP()); zone.add(npc); rules.addNPC(npc); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/57e1ccfea8164b5c2961f815d50e77c260bafe9e/SheepGrowing.java/clean/src/games/stendhal/server/quests/SheepGrowing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 348, 580, 881, 30948, 310, 12, 510, 409, 22314, 54, 52, 18071, 9117, 16, 934, 409, 22314, 54, 52, 2175, 5164, 2931, 13, 565, 288, 565, 934, 409, 22314, 54, 52, 4226, 4157, 28657, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 348, 580, 881, 30948, 310, 12, 510, 409, 22314, 54, 52, 18071, 9117, 16, 934, 409, 22314, 54, 52, 2175, 5164, 2931, 13, 565, 288, 565, 934, 409, 22314, 54, 52, 4226, 4157, 28657, ...
BuildDefinition bd = new BuildDefinition(); bd.setArguments( "" ); bd.setGoals( "clean:clean jar:install" ); bd.setBuildFile( "project.xml" ); try { Schedule schedule = store.getScheduleByName( DefaultContinuumInitializer.DEFAULT_SCHEDULE_NAME ); bd.setSchedule( schedule ); } catch ( ContinuumStoreException e ) { getLogger().warn( "Can't get default schedule.", e ); } project.addBuildDefinition( bd );
public void mapMetadata( File metadata, Project project ) throws MavenOneMetadataHelperException { Xpp3Dom mavenProject; try { mavenProject = Xpp3DomBuilder.build( new FileReader( metadata ) ); } catch ( Exception e ) { throw new MavenOneMetadataHelperException( "Error while reading maven POM.", e ); } // ---------------------------------------------------------------------- // We cannot deal with projects that use the <extend/> element because // we don't have the whole source tree and we might be missing elements // that are present in the parent. // ---------------------------------------------------------------------- String extend = getValue( mavenProject, "extend", null ); if ( extend != null ) { throw new MavenOneMetadataHelperException( "Cannot use a POM with an 'extend' element." ); } // ---------------------------------------------------------------------- // Artifact and group id // ---------------------------------------------------------------------- String groupId; String artifactId; String id = getValue( mavenProject, "id", null ); if ( !StringUtils.isEmpty( id ) ) { groupId = id; artifactId = id; } else { groupId = getValue( mavenProject, "groupId", project.getGroupId() ); if ( StringUtils.isEmpty( groupId ) ) { throw new MavenOneMetadataHelperException( "Missing 'groupId' element in the POM." ); } artifactId = getValue( mavenProject, "artifactId", project.getArtifactId() ); if ( StringUtils.isEmpty( artifactId ) ) { throw new MavenOneMetadataHelperException( "Missing 'artifactId' element in the POM." ); } } // ---------------------------------------------------------------------- // version // ---------------------------------------------------------------------- String version = getValue( mavenProject, "currentVersion", project.getVersion() ); if ( StringUtils.isEmpty( project.getVersion() ) && StringUtils.isEmpty( version ) ) { throw new MavenOneMetadataHelperException( "Missing 'version' element in the POM." ); } // ---------------------------------------------------------------------- // name // ---------------------------------------------------------------------- String name = getValue( mavenProject, "name", project.getName() ); if ( StringUtils.isEmpty( project.getName() ) && StringUtils.isEmpty( name ) ) { throw new MavenOneMetadataHelperException( "Missing 'name' element in POM." ); } // ---------------------------------------------------------------------- // scm // ---------------------------------------------------------------------- Xpp3Dom repository = mavenProject.getChild( "repository" ); String scmConnection; if ( repository == null ) { if ( !StringUtils.isEmpty( project.getScmUrl() ) ) { scmConnection = project.getScmUrl(); } else { throw new MavenOneMetadataHelperException( "Missing 'repository' element in the POM." ); } } else { scmConnection = getValue( repository, "developerConnection", project.getScmUrl() ); scmConnection = getValue( repository, "connection", scmConnection ); if ( StringUtils.isEmpty( scmConnection ) ) { throw new MavenOneMetadataHelperException( "Missing both anonymous and developer SCM connection URLs." ); } } // ---------------------------------------------------------------------- // notifiers // ---------------------------------------------------------------------- Xpp3Dom build = mavenProject.getChild( "build" ); List notifiers = null; ProjectNotifier notifier = new ProjectNotifier(); if ( build == null ) { if ( project.getNotifiers() != null && !project.getNotifiers().isEmpty() ) { notifiers = project.getNotifiers(); } else { throw new MavenOneMetadataHelperException( "Missing 'build' element in the POM." ); } } else { String currentNagEmailAddress = null; if ( project.getNotifiers() != null && !project.getNotifiers().isEmpty() ) { for ( Iterator i = project.getNotifiers().iterator(); i.hasNext(); ) { ProjectNotifier notif = (ProjectNotifier) i.next(); // Can we have an other type for maven 1 project? if ( "mail".equals( notif.getType() ) ) { currentNagEmailAddress = (String) notif.getConfiguration().get( ContinuumRecipientSource.ADDRESS_FIELD ); } } } String nagEmailAddress = getValue( build, "nagEmailAddress", currentNagEmailAddress ); if ( nagEmailAddress != null ) { Properties props = new Properties(); props.put( ContinuumRecipientSource.ADDRESS_FIELD, nagEmailAddress ); notifier.setConfiguration( props ); } } if ( notifiers == null && notifier.getConfiguration().isEmpty() ) { throw new MavenOneMetadataHelperException( "Missing 'nagEmailAddress' element in the 'build' element in the POM." ); } else { if ( notifiers == null ) { notifiers = new ArrayList(); } notifiers.add( notifier ); } // ---------------------------------------------------------------------- // Make the project // ---------------------------------------------------------------------- project.setGroupId( groupId ); project.setArtifactId( artifactId ); project.setVersion( version ); project.setName( name ); project.setScmUrl( scmConnection ); project.setNotifiers( notifiers ); BuildDefinition bd = new BuildDefinition(); bd.setArguments( "" ); bd.setGoals( "clean:clean jar:install" ); bd.setBuildFile( "project.xml" ); try { Schedule schedule = store.getScheduleByName( DefaultContinuumInitializer.DEFAULT_SCHEDULE_NAME ); bd.setSchedule( schedule ); } catch ( ContinuumStoreException e ) { getLogger().warn( "Can't get default schedule.", e ); } project.addBuildDefinition( bd ); }
48499 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48499/a4b9f11224f014c94895dc26d63aaa5ccf66439b/DefaultMavenOneMetadataHelper.java/buggy/continuum-core/src/main/java/org/apache/maven/continuum/execution/maven/m1/DefaultMavenOneMetadataHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 852, 2277, 12, 1387, 1982, 16, 5420, 1984, 262, 3639, 1216, 17176, 3335, 2277, 2276, 503, 565, 288, 3639, 1139, 11858, 23, 8832, 20499, 4109, 31, 3639, 775, 3639, 288, 5411, 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, 852, 2277, 12, 1387, 1982, 16, 5420, 1984, 262, 3639, 1216, 17176, 3335, 2277, 2276, 503, 565, 288, 3639, 1139, 11858, 23, 8832, 20499, 4109, 31, 3639, 775, 3639, 288, 5411, 20...
ReportItemHandle container = DEUtil.getBindingHolder( input.getContainer( ) ); if ( container != null && ( container.getDataSet( ) != null || container.columnBindingsIterator( ) .hasNext( ) ) ) { NullChoice = CHOICE_FROM_CONTAINER; } else { NullChoice = CHOICE_NONE; }
public void setInput( ReportItemHandle input ) { Assert.isNotNull( input ); this.inputElement = input; ReportItemHandle container = DEUtil.getBindingHolder( input.getContainer( ) ); if ( container != null && ( container.getDataSet( ) != null || container.columnBindingsIterator( ) .hasNext( ) ) ) { NullChoice = CHOICE_FROM_CONTAINER; } else { NullChoice = CHOICE_NONE; } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/f93286dc6d03bc1b6417b1a9244304ed2d4b7ce9/ColumnBindingDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ColumnBindingDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 21687, 12, 8706, 1180, 3259, 810, 262, 202, 95, 202, 202, 8213, 18, 291, 5962, 12, 810, 11272, 202, 202, 2211, 18, 2630, 1046, 273, 810, 31, 202, 202, 4820, 1180, 3259, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21687, 12, 8706, 1180, 3259, 810, 262, 202, 95, 202, 202, 8213, 18, 291, 5962, 12, 810, 11272, 202, 202, 2211, 18, 2630, 1046, 273, 810, 31, 202, 202, 4820, 1180, 3259, ...
new MenuManager(ResourceNavigatorMessages.getString("ResourceNavigator.sort"));
new MenuManager(ResourceNavigatorMessages.getString("ResourceNavigator.sort"));
public void fillActionBarMenu(IMenuManager menu, IStructuredSelection selection) { //Update the selections of those who need a refresh before filling sortByTypeAction.selectionChanged(selection); sortByNameAction.selectionChanged(selection); IMenuManager submenu = new MenuManager(ResourceNavigatorMessages.getString("ResourceNavigator.sort")); //$NON-NLS-1$ menu.add(submenu); updateSortActions(); submenu.add(sortByNameAction); submenu.add(sortByTypeAction); menu.add(filterAction); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/80cfecc0fb5392981e25acee0f567feb8ed55185/SortAndFilterActionFactory.java/buggy/bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/views/navigator/SortAndFilterActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3636, 1803, 5190, 4599, 12, 3445, 2104, 1318, 3824, 16, 467, 30733, 6233, 4421, 13, 288, 9506, 202, 759, 1891, 326, 21738, 434, 5348, 10354, 1608, 279, 4460, 1865, 25740, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3636, 1803, 5190, 4599, 12, 3445, 2104, 1318, 3824, 16, 467, 30733, 6233, 4421, 13, 288, 9506, 202, 759, 1891, 326, 21738, 434, 5348, 10354, 1608, 279, 4460, 1865, 25740, 9...
public org.quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { org.quickfix.field.UnderlyingMaturityDate value = new org.quickfix.field.UnderlyingMaturityDate();
public quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { quickfix.field.UnderlyingMaturityDate value = new quickfix.field.UnderlyingMaturityDate();
public org.quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { org.quickfix.field.UnderlyingMaturityDate value = new org.quickfix.field.UnderlyingMaturityDate(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelRequest.java/buggy/src/java/src/quickfix/fix44/CrossOrderCancelRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 1626, 10833, 765, 6291, 15947, 2336, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15947, 2336, 1626, 10833, 765, 6291, 15947, 2336, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, ...
public void mFLOAT() throws RecognitionException { int FLOAT_StartIndex = input.index(); try { int type = FLOAT; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 48) ) { return ; } // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1001:17: ( ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1001:17: ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1001:17: ( '-' )? int alt5=2; int LA5_0 = input.LA(1); if ( LA5_0=='-' ) { alt5=1; } else if ( (LA5_0>='0' && LA5_0<='9') ) { alt5=2; } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1001:17: ( \'-\' )?", 5, 0, input); throw nvae; } switch (alt5) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1001:18: '-' { match('-'); if (failed) return ; } break; } // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1001:23: ( '0' .. '9' )+ int cnt6=0; loop6: do { int alt6=2; int LA6_0 = input.LA(1); if ( (LA6_0>='0' && LA6_0<='9') ) { alt6=1; } switch (alt6) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1001:24: '0' .. '9' { matchRange('0','9'); if (failed) return ; } break; default : if ( cnt6 >= 1 ) break loop6; if (backtracking>0) {failed=true; return ;} EarlyExitException eee = new EarlyExitException(6, input); throw eee; } cnt6++; } while (true); match('.'); if (failed) return ; // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1001:39: ( '0' .. '9' )+ int cnt7=0; loop7: do { int alt7=2; int LA7_0 = input.LA(1); if ( (LA7_0>='0' && LA7_0<='9') ) { alt7=1; } switch (alt7) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1001:40: '0' .. '9' { matchRange('0','9'); if (failed) return ; } break; default : if ( cnt7 >= 1 ) break loop7; if (backtracking>0) {failed=true; return ;} EarlyExitException eee = new EarlyExitException(7, input); throw eee; } cnt7++; } while (true); } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 48, FLOAT_StartIndex); } } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/d5f13d3fd7dfa914ff0c982ef4e7b3e9027d4eb1/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 15640, 1435, 1216, 9539, 288, 3639, 509, 15483, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 15483, 31, 5411, 509, 787, 273, 23577, 1016, 5621...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 15640, 1435, 1216, 9539, 288, 3639, 509, 15483, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 15483, 31, 5411, 509, 787, 273, 23577, 1016, 5621...
}
return new IGroup[] { group }; }
protected IGroup[] getGroupsToSend(IUserView userView, SendMailForm form, Map previousRequestParameters) throws FenixFilterException, FenixServiceException, FenixActionException { String degreeCurricularPlanID = ((String[])previousRequestParameters.get("degreeCurricularPlanID"))[0]; DegreeCurricularPlan degreeCurricularPlan = rootDomainObject.readDegreeCurricularPlanByOID(Integer.parseInt(degreeCurricularPlanID)); IGroup group = new DegreeCurricularPlanActiveOrSchoolPartConcludedStudentsGroup(degreeCurricularPlan); return new IGroup[]{group}; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/7a0c46554f101cca44c09e6e1f6f5b7402043864/SendMailToDegreeCurricularPlanStudents.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/cms/messaging/mailSender/SendMailToDegreeCurricularPlanStudents.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 467, 1114, 8526, 22708, 28878, 12, 45, 1299, 1767, 729, 1767, 16, 2479, 6759, 1204, 646, 16, 1635, 2416, 691, 2402, 13, 1216, 478, 275, 697, 1586, 503, 16, 478, 275, 697, 151...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1114, 8526, 22708, 28878, 12, 45, 1299, 1767, 729, 1767, 16, 2479, 6759, 1204, 646, 16, 1635, 2416, 691, 2402, 13, 1216, 478, 275, 697, 1586, 503, 16, 478, 275, 697, 151...
throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier);
throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier, global);
public ClientGetMessage(SimpleFieldSet fs) throws MessageInvalidException { short defaultPriority; clientToken = fs.get("ClientToken"); global = Fields.stringToBool(fs.get("Global"), false); ignoreDS = Fields.stringToBool(fs.get("IgnoreDS"), false); dsOnly = Fields.stringToBool(fs.get("DSOnly"), false); identifier = fs.get("Identifier"); if(identifier == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", null); try { uri = new FreenetURI(fs.get("URI")); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URI_PARSE_ERROR, e.getMessage(), identifier); } String verbosityString = fs.get("Verbosity"); if(verbosityString == null) verbosity = 0; else { try { verbosity = Integer.parseInt(verbosityString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier); } } String returnTypeString = fs.get("ReturnType"); returnType = parseReturnType(returnTypeString); if(returnType == RETURN_TYPE_DIRECT) { diskFile = null; tempFile = null; // default just below FProxy defaultPriority = RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS; } else if(returnType == RETURN_TYPE_NONE) { diskFile = null; tempFile = null; defaultPriority = RequestStarter.PREFETCH_PRIORITY_CLASS; } else if(returnType == RETURN_TYPE_DISK) { defaultPriority = RequestStarter.BULK_SPLITFILE_PRIORITY_CLASS; String filename = fs.get("Filename"); if(filename == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing Filename", identifier); diskFile = new File(filename); String tempFilename = fs.get("TempFilename"); if(tempFilename == null) tempFilename = filename + ".freenet-tmp"; tempFile = new File(tempFilename); if(!diskFile.getAbsoluteFile().getParentFile().equals(tempFile.getAbsoluteFile().getParentFile())) throw new MessageInvalidException(ProtocolErrorMessage.FILENAME_AND_TEMP_FILENAME_MUST_BE_IN_SAME_DIR, null, identifier); if(diskFile.exists()) throw new MessageInvalidException(ProtocolErrorMessage.DISK_TARGET_EXISTS, null, identifier); try { if(!(tempFile.createNewFile() || (tempFile.exists() && tempFile.canRead() && tempFile.canWrite()))) throw new MessageInvalidException(ProtocolErrorMessage.COULD_NOT_CREATE_FILE, "Could not create temp file "+tempFile, identifier); } catch (IOException e) { throw new MessageInvalidException(ProtocolErrorMessage.COULD_NOT_CREATE_FILE, e.getMessage(), identifier); } } else throw new MessageInvalidException(ProtocolErrorMessage.MESSAGE_PARSE_ERROR, "Unknown return-type", identifier); String maxSizeString = fs.get("MaxSize"); if(maxSizeString == null) // default to unlimited maxSize = Long.MAX_VALUE; else { try { maxSize = Long.parseLong(maxSizeString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } String maxTempSizeString = fs.get("MaxTempSize"); if(maxTempSizeString == null) // default to unlimited maxTempSize = Long.MAX_VALUE; else { try { maxTempSize = Long.parseLong(maxTempSizeString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } String maxRetriesString = fs.get("MaxRetries"); if(maxRetriesString == null) // default to 0 maxRetries = 0; else { try { maxRetries = Integer.parseInt(maxRetriesString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "max retries="+maxRetries); String priorityString = fs.get("PriorityClass"); if(priorityString == null) { // defaults to the one just below FProxy priorityClass = defaultPriority; } else { try { priorityClass = Short.parseShort(priorityString, 10); if((priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS) || (priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS)) throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier); } } String persistenceString = fs.get("Persistence"); if((persistenceString == null) || persistenceString.equalsIgnoreCase("connection")) { // Default: persists until connection loss. persistenceType = ClientRequest.PERSIST_CONNECTION; } else if(persistenceString.equalsIgnoreCase("reboot")) { // Reports to client by name; persists over connection loss. // Not saved to disk, so dies on reboot. persistenceType = ClientRequest.PERSIST_REBOOT; } else if(persistenceString.equalsIgnoreCase("forever")) { // Same as reboot but saved to disk, persists forever. persistenceType = ClientRequest.PERSIST_FOREVER; } else { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Persistence field: "+persistenceString, identifier); } if(global && (persistenceType == ClientRequest.PERSIST_CONNECTION)) { throw new MessageInvalidException(ProtocolErrorMessage.NOT_SUPPORTED, "Global requests must be persistent", identifier); } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/ClientGetMessage.java/buggy/src/freenet/node/fcp/ClientGetMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 967, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 6620, 805, 8183, 31, 202, 202, 2625, 1345, 273, 2662, 18, 588, 2932, 1227, 1345, 8863, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 967, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 6620, 805, 8183, 31, 202, 202, 2625, 1345, 273, 2662, 18, 588, 2932, 1227, 1345, 8863, 202...
ASTRewrite unitRewriter, String typeName) throws JavaModelException {
ASTRewrite unitRewriter, String typeName) throws JavaModelException {
private void updateCu(CompilationUnit unit, Set vars, CompilationUnitChange unitChange, ASTRewrite unitRewriter, String typeName) throws JavaModelException { for (Iterator it=vars.iterator(); it.hasNext(); ){ ConstraintVariable cv = (ConstraintVariable)it.next(); ASTNode decl= findDeclaration(unit, cv); if (decl instanceof SimpleName && cv instanceof ExpressionVariable) { ASTNode gp= decl.getParent().getParent(); if (gp.getNodeType() == ASTNode.METHOD_DECLARATION){ // method parameter if (decl.getParent().getNodeType() == ASTNode.SINGLE_VARIABLE_DECLARATION) { updateType(unit, getType(decl.getParent()), unitChange, unitRewriter, typeName); } } else{ updateType(unit, getType(gp), unitChange, unitRewriter, typeName); // local variable, field } } else if (decl instanceof MethodDeclaration) { updateType(unit, getType(decl), unitChange, unitRewriter, typeName); // method return } } }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/3800c5a6642cbd9b9f28ba832984c1e932b96a52/ChangeTypeRefactoring.java/buggy/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeTypeRefactoring.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 39, 89, 12, 19184, 2802, 2836, 16, 1000, 4153, 16, 22416, 2802, 3043, 2836, 3043, 16, 15106, 225, 432, 3902, 12341, 2836, 17631, 1091, 16, 514, 8173, 13, 1216, 5110,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 39, 89, 12, 19184, 2802, 2836, 16, 1000, 4153, 16, 22416, 2802, 3043, 2836, 3043, 16, 15106, 225, 432, 3902, 12341, 2836, 17631, 1091, 16, 514, 8173, 13, 1216, 5110,...