rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
public int getSample(int x, int y, int b, DataBuffer data) { | public int getSample(int x, int y, int b, DataBuffer data) { | public int getSample(int x, int y, int b, DataBuffer data) { return data.getElem(bankIndices[b], getOffset(x, y, b)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ComponentSampleModel.java/buggy/core/src/classpath/java/java/awt/image/ComponentSampleModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
26078,
12,
474,
619,
16,
509,
677,
16,
509,
324,
16,
1910,
1892,
501,
13,
288,
202,
202,
2463,
501,
18,
588,
7498,
12,
10546,
8776,
63,
70,
6487,
13386,
12,
92,
16,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
26078,
12,
474,
619,
16,
509,
677,
16,
509,
324,
16,
1910,
1892,
501,
13,
288,
202,
202,
2463,
501,
18,
588,
7498,
12,
10546,
8776,
63,
70,
6487,
13386,
12,
92,
16,
6... |
super(document, element, locale, type); m_stringValue = element.getText(); | super(); | protected A_CmsXmlValueTextBase(I_CmsXmlDocument document, Element element, Locale locale, I_CmsXmlSchemaType type) { super(document, element, locale, type); m_stringValue = element.getText(); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/3490d71abdd2f86b3a1412c7e7311ab55b31ba53/A_CmsXmlValueTextBase.java/buggy/src/org/opencms/xml/types/A_CmsXmlValueTextBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
432,
67,
4747,
4432,
620,
1528,
2171,
12,
45,
67,
4747,
4432,
2519,
1668,
16,
3010,
930,
16,
6458,
2573,
16,
467,
67,
4747,
4432,
3078,
559,
618,
13,
288,
3639,
2240,
12,
5457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
432,
67,
4747,
4432,
620,
1528,
2171,
12,
45,
67,
4747,
4432,
2519,
1668,
16,
3010,
930,
16,
6458,
2573,
16,
467,
67,
4747,
4432,
3078,
559,
618,
13,
288,
3639,
2240,
12,
5457,
... |
if(peerExponential != null) throw new IllegalStateException("Assigned other side exponential twice"); | if(peerExponential != null) { if(!peerExponential.equals(a)) throw new IllegalStateException("Assigned other side exponential twice"); else return; } | public synchronized void setOtherSideExponential(NativeBigInteger a) { lastUsedTime = System.currentTimeMillis(); if(peerExponential != null) throw new IllegalStateException("Assigned other side exponential twice"); if(a == null) throw new NullPointerException(); peerExponential = a; } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/b4ecaa4055b5835413830d4125c72de27d68e306/DiffieHellmanContext.java/buggy/src/freenet/crypt/DiffieHellmanContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
444,
8290,
8895,
17972,
649,
12,
9220,
24198,
279,
13,
288,
3639,
1142,
6668,
950,
273,
2332,
18,
2972,
28512,
5621,
3639,
309,
12,
12210,
17972,
649,
480,
446,
13,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
444,
8290,
8895,
17972,
649,
12,
9220,
24198,
279,
13,
288,
3639,
1142,
6668,
950,
273,
2332,
18,
2972,
28512,
5621,
3639,
309,
12,
12210,
17972,
649,
480,
446,
13,
288,
... |
return newString(getValue()).infectBy(this); | return newString(toString()).infectBy(this); | public IRubyObject dup() { return newString(getValue()).infectBy(this); } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/buggy/src/org/jruby/RubyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
9417,
1435,
288,
202,
202,
2463,
394,
780,
12,
24805,
1435,
2934,
10625,
386,
858,
12,
2211,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
9417,
1435,
288,
202,
202,
2463,
394,
780,
12,
24805,
1435,
2934,
10625,
386,
858,
12,
2211,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
System.out.println("Moving blocks: "+(i*100/wantedMove.size())+ "% ( "+i+"/"+wantedMove.size()+")"); | System.out.println("Moving blocks: "+(i*100/wantedMove.size())+ "% ( "+i+ '/' +wantedMove.size()+ ')'); | private void maybeSlowShrink(boolean dontCheck, boolean inStartUp) throws DatabaseException, IOException { Vector wantedKeep = new Vector(); // keep; content is wanted, and is in the right place Vector unwantedIgnore = new Vector(); // ignore; content is not wanted, and is not in the right place Vector wantedMove = new Vector(); // content is wanted, but is in the wrong part of the store Vector unwantedMove = new Vector(); // content is not wanted, but is in the part of the store we will keep Vector alreadyDropped = new Vector(); // any blocks past the end which have already been truncated, but which there are still database blocks pointing to Cursor c = null; Transaction t = null; long newSize = maxChkBlocks; if(chkBlocksInStore < maxChkBlocks) return; checkForHoles(maxChkBlocks, true); WrapperManager.signalStarting((int)chkBlocksInStore * 100); // 10 per second long realSize = countCHKBlocksFromFile(); System.err.println("Shrinking from "+chkBlocksInStore+" to "+maxChkBlocks+" (from db "+countCHKBlocksFromDatabase()+" from file "+countCHKBlocksFromFile()+")"); try { c = chkDB_accessTime.openCursor(null,null); DatabaseEntry keyDBE = new DatabaseEntry(); DatabaseEntry blockDBE = new DatabaseEntry(); OperationStatus opStat; opStat = c.getLast(keyDBE, blockDBE, LockMode.RMW); if(opStat == OperationStatus.NOTFOUND) { System.err.println("Database is empty (shrinking)."); c.close(); c = null; return; } //Logger.minor(this, "Found first key"); int x = 0; while(true) { StoreBlock storeBlock = (StoreBlock) storeBlockTupleBinding.entryToObject(blockDBE); long block = storeBlock.offset; if(storeBlock.offset > Integer.MAX_VALUE) { // 2^31 * blockSize; ~ 70TB for CHKs, 2TB for the others System.err.println("Store too big, doing quick shrink"); // memory usage would be insane c.close(); c = null; maybeQuickShrink(false, false); return; } Integer blockNum = new Integer((int)storeBlock.offset); //Long seqNum = new Long(storeBlock.recentlyUsed); //System.out.println("#"+x+" seq "+seqNum+": block "+blockNum); if(blockNum.longValue() >= realSize) { // Truncated already? Logger.minor(this, "Truncated already? "+blockNum.longValue()); alreadyDropped.add(blockNum); } else { if(x < newSize) { // Wanted if(block < newSize) { //System.out.println("Keep where it is: block "+blockNum+" seq # "+x+" / "+newSize); wantedKeep.add(blockNum); } else { //System.out.println("Move to where it should go: "+blockNum+" seq # "+x+" / "+newSize); wantedMove.add(blockNum); } } else { // Unwanted if(block < newSize) { //System.out.println("Overwrite: "+blockNum+" seq # "+x+" / "+newSize); unwantedMove.add(blockNum); } else { //System.out.println("Ignore, will be wiped: block "+blockNum+" seq # "+x+" / "+newSize); unwantedIgnore.add(blockNum); } } x++; if(x % 1024 == 0) { System.out.println("Reading store prior to shrink: "+(x*100/realSize)+ "% ( "+x+"/"+realSize+")"); } if(x == Integer.MAX_VALUE) { System.err.println("Key number "+x+" - ignoring store after "+(x*(dataBlockSize+headerBlockSize)+" bytes")); break; } } opStat = c.getPrev(keyDBE, blockDBE, LockMode.RMW); if(opStat == OperationStatus.NOTFOUND) { System.out.println("Read store: "+x+" keys."); break; } } } finally { if(c != null) c.close(); } Integer[] wantedKeepNums = (Integer[]) wantedKeep.toArray(new Integer[wantedKeep.size()]); Integer[] unwantedIgnoreNums = (Integer[]) unwantedIgnore.toArray(new Integer[unwantedIgnore.size()]); Integer[] wantedMoveNums = (Integer[]) wantedMove.toArray(new Integer[wantedMove.size()]); Integer[] unwantedMoveNums = (Integer[]) unwantedMove.toArray(new Integer[unwantedMove.size()]); long[] freeEarlySlots = freeBlocks.toArray(); Arrays.sort(wantedKeepNums); Arrays.sort(unwantedIgnoreNums); Arrays.sort(wantedMoveNums); Arrays.sort(unwantedMoveNums); for(int i=0;i<realSize;i++) { Integer ii = new Integer(i); if(Arrays.binarySearch(wantedKeepNums, ii) >= 0) continue; if(Arrays.binarySearch(unwantedIgnoreNums, ii) >= 0) continue; if(Arrays.binarySearch(wantedMoveNums, ii) >= 0) continue; if(Arrays.binarySearch(unwantedMoveNums, ii) >= 0) continue; unwantedMove.add(ii); } unwantedMoveNums = (Integer[]) unwantedMove.toArray(new Integer[unwantedMove.size()]); System.err.println("Keys to keep where they are: "+wantedKeepNums.length); System.err.println("Keys which will be wiped anyway: "+unwantedIgnoreNums.length); System.err.println("Keys to move: "+wantedMoveNums.length); System.err.println("Keys to be moved over: "+unwantedMoveNums.length); System.err.println("Free slots to be moved over: "+freeEarlySlots.length); // Now move all the wantedMove blocks onto the corresponding unwantedMove's. WrapperManager.signalStarting(wantedMoveNums.length*1000); // 1 per second byte[] buf = new byte[headerBlockSize + dataBlockSize]; t = null; try { t = environment.beginTransaction(null,null); if(alreadyDropped.size() > 0) { System.err.println("Deleting "+alreadyDropped.size()+" blocks beyond the length of the file"); for(int i=0;i<alreadyDropped.size();i++) { Integer unwantedBlock = (Integer) alreadyDropped.get(i); DatabaseEntry unwantedBlockEntry = new DatabaseEntry(); longTupleBinding.objectToEntry(unwantedBlock, unwantedBlockEntry); chkDB_blockNum.delete(t, unwantedBlockEntry); if(i % 1024 == 0) { t.commit(); t = environment.beginTransaction(null,null); } } if(alreadyDropped.size() % 1024 != 0) { t.commit(); t = environment.beginTransaction(null,null); } } for(int i=0;i<wantedMoveNums.length;i++) { Integer wantedBlock = wantedMoveNums[i]; Integer unwantedBlock; // Can we move over an empty slot? if(i < freeEarlySlots.length) { // Don't need to delete old block unwantedBlock = new Integer((int) freeEarlySlots[i]); // will fit in an int } else if(unwantedMoveNums.length + freeEarlySlots.length > i) { unwantedBlock = unwantedMoveNums[i-freeEarlySlots.length]; // Delete unwantedBlock from the store DatabaseEntry unwantedBlockEntry = new DatabaseEntry(); longTupleBinding.objectToEntry(unwantedBlock, unwantedBlockEntry); // Delete the old block from the database. chkDB_blockNum.delete(t, unwantedBlockEntry); } else { System.err.println("Keys to move but no keys to move over! Moved "+i); t.commit(); t = null; return; } // Move old data to new location DatabaseEntry wantedBlockEntry = new DatabaseEntry(); longTupleBinding.objectToEntry(wantedBlock, wantedBlockEntry); long seekTo = wantedBlock.longValue() * (headerBlockSize + dataBlockSize); try { chkStore.seek(seekTo); chkStore.readFully(buf); } catch (EOFException e) { System.err.println("Was reading "+wantedBlock+" to write to "+unwantedBlock); System.err.println(e); e.printStackTrace(); throw e; } seekTo = unwantedBlock.longValue() * (headerBlockSize + dataBlockSize); chkStore.seek(seekTo); chkStore.write(buf); // Update the database w.r.t. the old block. DatabaseEntry routingKeyDBE = new DatabaseEntry(); DatabaseEntry blockDBE = new DatabaseEntry(); chkDB_blockNum.get(t, wantedBlockEntry, routingKeyDBE, blockDBE, LockMode.RMW); StoreBlock block = (StoreBlock) storeBlockTupleBinding.entryToObject(blockDBE); block.offset = unwantedBlock.longValue(); storeBlockTupleBinding.objectToEntry(block, blockDBE); chkDB.put(t, routingKeyDBE, blockDBE); // Think about committing the transaction. if((i+1) % 2048 == 0) { t.commit(); t = environment.beginTransaction(null,null); System.out.println("Moving blocks: "+(i*100/wantedMove.size())+ "% ( "+i+"/"+wantedMove.size()+")"); } //System.err.println("Moved "+wantedBlock+" to "+unwantedBlock); } System.out.println("Moved all "+wantedMove.size()+" blocks"); if(t != null) { t.commit(); t = null; } } finally { if(t != null) t.abort(); } // If there are any slots left over, they must be free. freeBlocks.clear(); for(int i=wantedMoveNums.length;i<unwantedMoveNums.length+freeEarlySlots.length;i++) { if(i < freeEarlySlots.length) { addFreeBlock(freeEarlySlots[i], false, "early slot "+i); } else { addFreeBlock(unwantedMoveNums[i-freeEarlySlots.length].longValue(), false, "unwanted "+(i-freeEarlySlots.length)); } } maybeQuickShrink(false, true); } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/62fd59041864b4ed1f43adc676de6bfb5ea977f3/BerkeleyDBFreenetStore.java/clean/src/freenet/store/BerkeleyDBFreenetStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
6944,
28733,
28747,
12,
6494,
14046,
1564,
16,
1250,
316,
1685,
1211,
13,
1216,
27215,
16,
1860,
288,
202,
202,
5018,
15504,
11523,
273,
394,
5589,
5621,
368,
3455,
31,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6944,
28733,
28747,
12,
6494,
14046,
1564,
16,
1250,
316,
1685,
1211,
13,
1216,
27215,
16,
1860,
288,
202,
202,
5018,
15504,
11523,
273,
394,
5589,
5621,
368,
3455,
31,
91... |
if ( synPredMatched75 ) { | if ( synPredMatched81 ) { | public final void exprSingle() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST exprSingle_AST = null; boolean synPredMatched70 = false; if (((LA(1)==LITERAL_for||LA(1)==LITERAL_let))) { int _m70 = mark(); synPredMatched70 = true; inputState.guessing++; try { { { switch ( LA(1)) { case LITERAL_for: { match(LITERAL_for); break; } case LITERAL_let: { match(LITERAL_let); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(DOLLAR); } } catch (RecognitionException pe) { synPredMatched70 = false; } rewind(_m70); inputState.guessing--; } if ( synPredMatched70 ) { flworExpr(); astFactory.addASTChild(currentAST, returnAST); exprSingle_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched73 = false; if (((LA(1)==LITERAL_some||LA(1)==LITERAL_every))) { int _m73 = mark(); synPredMatched73 = true; inputState.guessing++; try { { { switch ( LA(1)) { case LITERAL_some: { match(LITERAL_some); break; } case LITERAL_every: { match(LITERAL_every); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(DOLLAR); } } catch (RecognitionException pe) { synPredMatched73 = false; } rewind(_m73); inputState.guessing--; } if ( synPredMatched73 ) { quantifiedExpr(); astFactory.addASTChild(currentAST, returnAST); exprSingle_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched75 = false; if (((LA(1)==LITERAL_if))) { int _m75 = mark(); synPredMatched75 = true; inputState.guessing++; try { { match(LITERAL_if); match(LPAREN); } } catch (RecognitionException pe) { synPredMatched75 = false; } rewind(_m75); inputState.guessing--; } if ( synPredMatched75 ) { ifExpr(); astFactory.addASTChild(currentAST, returnAST); exprSingle_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else if ((_tokenSet_0.member(LA(1)))) { orExpr(); astFactory.addASTChild(currentAST, returnAST); exprSingle_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } }} returnAST = exprSingle_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/942d71ceffee004821cc1b2e75c2538951c04027/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3065,
5281,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3065,
5281,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3... |
return value; } } public boolean containsKey(Object key) { if (key.equals("this") || key.equals("continuation")) { return true; } if (handler != null) { String[] result = handler.getPropertyNames(bean); for (int i = 0; i < result.length; i++) { if (key.equals(result[i])) { return true; | public Object[] getKeys() { Object[] result = null; if (handler != null) { result = handler.getPropertyNames(bean); } else { result = new Object[props.length]; for (int i = 0; i < props.length; i++) { result[i] = props[i].getName(); } } Set set = new HashSet(); for (int i = 0; i < result.length; i++) { set.add(result[i]); } set.add("flowContext"); set.add("continuation"); result = new Object[set.size()]; set.toArray(result); return result; } public Object get(String key) { if (key.equals("flowContext")) { return bean; } if (key.equals("continuation")) { return kont; } if (handler != null) { return handler.getProperty(bean, key.toString()); } else { for (int i = 0; i < props.length; i++) { if (props[i].getName().equals(key)) { try { return props[i].getReadMethod().invoke(bean, null); } catch (Exception ignored) { break; } } } return null; | public void setup(SourceResolver resolver, Map objectModel, String src, Parameters params) throws ProcessingException, SAXException, IOException { if (activeFlag) { throw new IllegalStateException("setup called on recyclable sitemap component before properly recycling previous state"); } super.setup(resolver, objectModel, src, params); // Pass along the SourceResolver to the Velocity resource loader this.resolverContext.put(CONTEXT_RESOLVER_KEY, resolver); this.resolverContext.put(CONTEXT_SOURCE_CACHE_KEY, new HashMap()); // FIXME: Initialize the Velocity context. Use objectModel to pass these final Object bean = ((Environment) resolver).getAttribute("bean-dict"); final WebContinuation kont = (WebContinuation) ((Environment) resolver).getAttribute("kont"); // This velocity context provides two variables: "this" which represents the // bean object passed to sendPage*() and "continuation" which is the // current continuation. The immediate properties of the bean object are // also available in the context. // // Hack? I use JXPath to determine the properties of the bean object final JXPathBeanInfo bi = JXPathIntrospector.getBeanInfo(bean.getClass()); DynamicPropertyHandler h = null; final PropertyDescriptor[] props; if (bi.isDynamic()) { Class cl = bi.getDynamicPropertyHandlerClass(); try { h = (DynamicPropertyHandler) cl.newInstance(); } catch (Exception exc) { exc.printStackTrace(); h = null; } props = null; } else { h = null; props = bi.getPropertyDescriptors(); } final DynamicPropertyHandler handler = h; this.velocityContext = new Context() { public Object put(String key, Object value) { if (key.equals("this") || key.equals("continuation")) { return value; } if (handler != null) { handler.setProperty(bean, key, value); return value; } else { for (int i = 0; i < props.length; i++) { if (props[i].getName().equals(key)) { try { return props[i].getWriteMethod().invoke(bean, new Object[]{value}); } catch (Exception ignored) { break; } } } return value; } } public boolean containsKey(Object key) { if (key.equals("this") || key.equals("continuation")) { return true; } if (handler != null) { String[] result = handler.getPropertyNames(bean); for (int i = 0; i < result.length; i++) { if (key.equals(result[i])) { return true; } } } else { for (int i = 0; i < props.length; i++) { if (key.equals(props[i].getName())) { return true; } } } return false; } public Object[] getKeys() { Object[] result = null; if (handler != null) { result = handler.getPropertyNames(bean); } else { result = new Object[props.length]; for (int i = 0; i < props.length; i++) { result[i] = props[i].getName(); } } Set set = new HashSet(); for (int i = 0; i < result.length; i++) { set.add(result[i]); } set.add("this"); set.add("continuation"); result = new Object[set.size()]; set.toArray(result); return result; } public Object get(String key) { if (key.equals("this")) { return bean; } if (key.equals("continuation")) { return kont; } if (handler != null) { return handler.getProperty(bean, key.toString()); } else { for (int i = 0; i < props.length; i++) { if (props[i].getName().equals(key)) { try { return props[i].getReadMethod().invoke(bean, null); } catch (Exception ignored) { break; } } } return null; } } public Object remove(Object key) { // not implemented return key; } }; this.activeFlag = true; } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/d3867896e161c3f6e54283518321881a1a4bd27d/FlowVelocityGenerator.java/clean/src/scratchpad/src/org/apache/cocoon/generation/FlowVelocityGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3875,
12,
1830,
4301,
5039,
16,
1635,
733,
1488,
16,
514,
1705,
16,
7012,
859,
13,
5411,
1216,
19652,
503,
16,
14366,
16,
1860,
288,
3639,
309,
261,
3535,
4678,
13,
288,
5411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3875,
12,
1830,
4301,
5039,
16,
1635,
733,
1488,
16,
514,
1705,
16,
7012,
859,
13,
5411,
1216,
19652,
503,
16,
14366,
16,
1860,
288,
3639,
309,
261,
3535,
4678,
13,
288,
5411... |
gain=.5f; | gain = .5f; | public void comb_filter(final float[] exc, final int esi, final float[] new_exc, final int nsi, final int nsf, final int pitch, final float[] pitch_gain, float comb_gain) { int i, j; float exc_energy=0.0f, new_exc_energy=0.0f; float gain, step, fact, g=0.0f; /*Compute excitation energy prior to enhancement*/ for (i=esi; i<esi+nsf; i++) { exc_energy+=exc[i]*exc[i]; } /* Some gain adjustment if pitch is too high or if unvoiced */ g = .5f*Math.abs(pitch_gain[0] + pitch_gain[1] + pitch_gain[2] + last_pitch_gain[0] + last_pitch_gain[1] + last_pitch_gain[2]); if (g>1.3f) comb_gain*=1.3f/g; if (g<.5f) comb_gain*=2.0f*g; step = 1.0f/nsf; fact=0; /* Apply pitch comb-filter (filter out noise between pitch harmonics)*/ for (i=0, j=esi; i<nsf; i++, j++) { fact += step; new_exc[nsi+i] = exc[j] + comb_gain * fact * (pitch_gain[0]*exc[j-pitch+1] + pitch_gain[1]*exc[j-pitch] + pitch_gain[2]*exc[j-pitch-1]) + comb_gain * (1.0f-fact) * (last_pitch_gain[0]*exc[j-last_pitch+1] + last_pitch_gain[1]*exc[j-last_pitch] + last_pitch_gain[2]*exc[j-last_pitch-1]); } last_pitch_gain[0] = pitch_gain[0]; last_pitch_gain[1] = pitch_gain[1]; last_pitch_gain[2] = pitch_gain[2]; last_pitch = pitch; /* Gain after enhancement*/ for (i=nsi;i<nsi+nsf;i++) new_exc_energy+=new_exc[i]*new_exc[i]; /* Compute scaling factor and normalize energy*/ gain = (float) (Math.sqrt(exc_energy/(.1f+new_exc_energy))); if (gain < .5f) { gain=.5f; } if (gain>1.0f) { gain=1.0f; } for (i=nsi;i<nsi+nsf;i++) { smooth_gain = .96f*smooth_gain + .04f*gain; new_exc[i] *= smooth_gain; } } | 6022 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6022/68640e768b66e83c5637a95cc8f41b712d9fea61/Filters.java/clean/main/trunk/codec/src/main/java/org/xiph/speex/Filters.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3894,
67,
2188,
12,
6385,
1431,
8526,
3533,
16,
12900,
727,
509,
27453,
16,
12900,
727,
1431,
8526,
394,
67,
10075,
16,
12900,
727,
509,
3153,
77,
16,
12900,
727,
509,
3153,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3894,
67,
2188,
12,
6385,
1431,
8526,
3533,
16,
12900,
727,
509,
27453,
16,
12900,
727,
1431,
8526,
394,
67,
10075,
16,
12900,
727,
509,
3153,
77,
16,
12900,
727,
509,
3153,
... |
; | public void testGetNestedUnknown() { try { PropertyUtils.getNestedProperty(bean, "nested.unknown"); fail("Should have thrown NoSuchMethodException"); } catch (IllegalAccessException e) { fail("IllegalAccessException"); } catch (IllegalArgumentException e) { fail("IllegalArgumentException"); } catch (InvocationTargetException e) { fail("InvocationTargetException"); } catch (NoSuchMethodException e) { ; // Correct result for this test } } | 54521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54521/815a48d2428d1c7bfed1d81f2df07fb9e042c1d8/PropertyUtilsTestCase.java/clean/src/test/org/apache/commons/beanutils/PropertyUtilsTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
8649,
4874,
1435,
288,
3639,
775,
288,
5411,
4276,
1989,
18,
588,
8649,
1396,
12,
14496,
16,
315,
12985,
18,
8172,
7923,
5411,
2321,
2932,
14309,
1240,
6718,
15959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
967,
8649,
4874,
1435,
288,
3639,
775,
288,
5411,
4276,
1989,
18,
588,
8649,
1396,
12,
14496,
16,
315,
12985,
18,
8172,
7923,
5411,
2321,
2932,
14309,
1240,
6718,
15959,
... | |
public String getToolTipText(MouseEvent event) | public String getToolTipText() | public String getToolTipText(MouseEvent event) { return tool_tip_text; } | 13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JComponent.java/clean/libjava/javax/swing/JComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
29250,
1528,
12,
9186,
1133,
871,
13,
202,
95,
202,
2463,
5226,
67,
14587,
67,
955,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
336,
29250,
1528,
12,
9186,
1133,
871,
13,
202,
95,
202,
2463,
5226,
67,
14587,
67,
955,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
try { URL testIt = new URL(systemId); InputSource s = new InputSource(testIt.openStream()); return s; } catch (Exception e) { cat.info("NOTE: Could not open DTD " + systemId + " due to exception"); | try { URL testIt = new URL(systemId); InputSource s = new InputSource(testIt.openStream()); return s; } catch (Exception e) { cat.info("NOTE: Could not open DTD " + systemId + " due to exception"); | public InputSource resolveEntity (String publicId, String systemId) { try { URL testIt = new URL(systemId); InputSource s = new InputSource(testIt.openStream()); return s; } catch (Exception e) { cat.info("NOTE: Could not open DTD " + systemId + " due to exception"); String dtdName = systemId.substring(systemId.lastIndexOf('/')+1); String dtdPath = "/org/argouml/xml/dtd/" + dtdName; InputStream is = SAXParserBase.class.getResourceAsStream(dtdPath); if(is == null) { try { is = new FileInputStream(dtdPath.substring(1)); } catch(Exception ex) { } } return new InputSource(is); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/SAXParserBase.java/clean/src_new/org/argouml/xml/SAXParserBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
23699,
2245,
1943,
261,
780,
1071,
548,
16,
514,
30083,
13,
288,
565,
775,
288,
1377,
1976,
1842,
7193,
273,
394,
1976,
12,
4299,
548,
1769,
1377,
23699,
272,
273,
394,
23699,
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,
282,
1071,
23699,
2245,
1943,
261,
780,
1071,
548,
16,
514,
30083,
13,
288,
565,
775,
288,
1377,
1976,
1842,
7193,
273,
394,
1976,
12,
4299,
548,
1769,
1377,
23699,
272,
273,
394,
23699,
12,
... |
if ( la() == '\r') | eol(); break CONSUME_LOOP; } default: { consume(); } } } token = null; break ROOT_SWITCH; } case ( '/' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '=' ): { consume(); token = Token.divideEqual( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } case ( '/' ): { consume(); CONSUME_LOOP: while ( true ) { switch ( la() ) { case ( '\r' ): { consume(); if ( la() == '\n' ) { consume(); } eol(); break CONSUME_LOOP; } case ( '\n' ): { consume(); eol(); break CONSUME_LOOP; } default: { consume(); } } } token = null; break MULTICHAR_SWITCH; } case ( '*' ): { CONSUME_LOOP: while ( true ) { CONSUME_SWITCH: switch ( la() ) { case ( '*' ): { consume(); if ( la() == '/' ) { consume(); break CONSUME_LOOP; } break CONSUME_SWITCH; } case ( '\r' ): { consume(); if ( la() == '\n' ) { consume(); } eol(); break CONSUME_SWITCH; } case ( '\n' ): | public Token nextToken() throws IOException, LexerException { Token token = null; OUTER_LOOP: while ( token == null ) { char c = la(); ROOT_SWITCH: switch ( c ) { case ( CharStream.EOS ): { break OUTER_LOOP; } case ( ' ' ): case ( '\t' ): { consume(); token = null; break ROOT_SWITCH; } case ( '\r' ): { consume(); if ( la() == '\n' ) { consume(); token = Token.newline( getStartLine(), getStartColumn() ); } else { token = null; } eol(); break ROOT_SWITCH; } case ( '\n' ): { consume(); if ( la() == '\r') { consume(); } eol(); token = Token.newline( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( '{' ): { mark(); consume(); token = Token.leftCurlyBrace( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( '}' ): { mark(); consume(); token = Token.rightCurlyBrace( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( '[' ): { mark(); consume(); token = Token.leftSquareBracket( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( ']' ): { mark(); consume(); token = Token.rightSquareBracket( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( '(' ): { mark(); consume(); token = Token.leftParenthesis( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( ')' ): { mark(); consume(); token = Token.rightParenthesis( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( '.' ): { mark(); consume(); if ( la() == '.' ) { consume(); token = Token.dotDot( getStartLine(), getStartColumn() ); } else { token = Token.dot( getStartLine(), getStartColumn() ); } break ROOT_SWITCH; } case ( '#' ): { consume(); CONSUME_LOOP: while ( true ) { switch ( la() ) { case ( '\r' ): { consume(); if ( la() == '\n' ) { consume(); } eol(); break CONSUME_LOOP; } case ( '\n' ): { consume(); eol(); break CONSUME_LOOP; } default: { consume(); } } } token = null; break ROOT_SWITCH; } case ( '/' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '=' ): { consume(); token = Token.divideEqual( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } case ( '/' ): { consume(); CONSUME_LOOP: while ( true ) { switch ( la() ) { case ( '\r' ): { consume(); if ( la() == '\n' ) { consume(); } eol(); break CONSUME_LOOP; } case ( '\n' ): { consume(); eol(); break CONSUME_LOOP; } default: { consume(); } } } token = null; break MULTICHAR_SWITCH; } case ( '*' ): { CONSUME_LOOP: while ( true ) { CONSUME_SWITCH: switch ( la() ) { case ( '*' ): { consume(); if ( la() == '/' ) { consume(); break CONSUME_LOOP; } break CONSUME_SWITCH; } case ( '\r' ): { consume(); if ( la() == '\n' ) { consume(); } eol(); break CONSUME_SWITCH; } case ( '\n' ): { eol(); consume(); break CONSUME_SWITCH; } default: { consume(); } } } token = null; break MULTICHAR_SWITCH; } default: { token = Token.divide( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } } break ROOT_SWITCH; } case ( '%' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '=' ): { consume(); token = Token.modEqual( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } default: { token = Token.mod( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } } break ROOT_SWITCH; } case ( '~' ): { mark(); consume(); // Support ~<double quoted string> token = Token.patternRegex( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( '!' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '=' ): { consume(); token = Token.compareNotEqual( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } default: { token = Token.not( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } } break ROOT_SWITCH; } case ( '=' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '=' ): { consume(); c = la(); switch ( c ) { case '=': { consume(); token = Token.compareIdentical( getStartLine(), getStartColumn() ); break; } case '~': { consume(); token = Token.matchRegex( getStartLine(), getStartColumn()); break; } default: { token = Token.compareEqual( getStartLine(), getStartColumn() ); } } break MULTICHAR_SWITCH; } case '~': { consume(); token = Token.findRegex( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } default: { token = Token.equal( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } } break ROOT_SWITCH; } case ( '&' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '&' ): { consume(); token = Token.logicalAnd( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } default: { throw new UnexpectedCharacterException( getStartLine(), getStartColumn()+1, c, new char[] { '&' } ); } } break ROOT_SWITCH; } case ( '|' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '|' ): { consume(); token = Token.logicalOr( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } default: { token = Token.pipe( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } } break ROOT_SWITCH; } case ( '+' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '+' ): { consume(); token = Token.plusPlus( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } case ( '=' ): { consume(); token = Token.plusEqual( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } default: { token = Token.plus( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } } break ROOT_SWITCH; } case ( '-' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '-' ): { consume(); token = Token.minusMinus( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } case ( '=' ): { consume(); token = Token.minusEqual( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } case ( '>' ): { consume(); token = Token.navigate( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } default: { token = Token.minus( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } } break ROOT_SWITCH; } case ( '*' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch( c ) { case ( '=' ): { consume(); token = Token.multiplyEqual( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } default: { token = Token.multiply( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } } break ROOT_SWITCH; } case ( ':' ): { mark(); consume(); token = Token.colon( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( ',' ): { mark(); consume(); token = Token.comma( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( ';' ): { mark(); consume(); token = Token.semicolon( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( '?' ): { mark(); consume(); token = Token.question( getStartLine(), getStartColumn() ); break ROOT_SWITCH; } case ( '<' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '=' ): { consume(); c = la(); if ( c == '>' ) { consume(); token = Token.compareTo( getStartLine(), getStartColumn() ); } else { token = Token.compareLessThanEqual( getStartLine(), getStartColumn() ); } break MULTICHAR_SWITCH; } case ( '<' ): { consume(); c = la(); // Long strings can be created by using <<<TOK ... \nTOK // They are exactly like double quoted strings except you don't need to escape anything if ( c == '<' ) { consume(); // The marker consists of everything from the end of the <<< to the end of the line. StringBuffer marker = new StringBuffer(); while((c = la()) != '\n') { marker.append(c); consume(); } consume(); // consume the nextline eol(); // next line mark(); // this is the start of the string StringBuffer stringLiteral = new StringBuffer(); LITERAL_LOOP: while ( true ) { c = la(); LITERAL_SWITCH: switch ( c ) { case ( '\n' ): { eol(); // bump the line number StringBuffer markerBuffer = new StringBuffer(); markerBuffer.append(consume()); for (int i = 0; i < marker.length(); i++) { if (la() != marker.charAt(i)) { stringLiteral.append(markerBuffer); continue LITERAL_LOOP; } c = consume(); markerBuffer.append(c); } break LITERAL_LOOP; } case ( CharStream.EOS ): { throw new UnterminatedStringLiteralException( getStartLine(), getStartColumn() ); } } stringLiteral.append( consume() ); } // Fortunately they have the same semantics as a double quoted string once lexed token = Token.doubleQuoteString( getStartLine(), getStartColumn(), stringLiteral.toString() ); break ROOT_SWITCH; } else { throw new UnexpectedCharacterException( getStartLine(), getStartColumn()+1, c, new char[] { } ); } } default: { token = Token.compareLessThan( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } } break ROOT_SWITCH; } case ( '>' ): { mark(); consume(); c = la(); MULTICHAR_SWITCH: switch ( c ) { case ( '=' ): { consume(); token = Token.compareGreaterThanEqual( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } default: { token = Token.compareGreaterThan( getStartLine(), getStartColumn() ); break MULTICHAR_SWITCH; } } break ROOT_SWITCH; } case ( '\'') : { mark(); consume(); StringBuffer stringLiteral = new StringBuffer(); LITERAL_LOOP: while ( true ) { c = la(); LITERAL_SWITCH: switch ( c ) { case ( '\\' ): { consume(); c = la(); ESCAPE_SWITCH: switch ( c ) { case ( 't' ): { consume(); stringLiteral.append( '\t' ); break ESCAPE_SWITCH; } case ( 'n' ): { consume(); stringLiteral.append( '\n' ); break ESCAPE_SWITCH; } case ( 'r' ): { consume(); stringLiteral.append( '\r' ); break ESCAPE_SWITCH; } default: { stringLiteral.append( consume() ); break ESCAPE_SWITCH; } } break LITERAL_SWITCH; } case ( '\r' ): case ( '\n' ): case ( CharStream.EOS ): { throw new UnterminatedStringLiteralException( getStartLine(), getStartColumn() ); } case ( '\'' ): { consume(); break LITERAL_LOOP; } default: { stringLiteral.append( consume() ); break LITERAL_SWITCH; } } } token = Token.singleQuoteString( getStartLine(), getStartColumn(), stringLiteral.toString() ); break ROOT_SWITCH; } case ( '"' ): { mark(); consume(); StringBuffer stringLiteral = new StringBuffer(); LITERAL_LOOP: while ( true ) { c = la(); LITERAL_SWITCH: switch ( c ) { case ( '\\' ): { consume(); c = la(); ESCAPE_SWITCH: switch ( c ) { case ( 't' ): { consume(); stringLiteral.append( '\t' ); break ESCAPE_SWITCH; } case ( 'n' ): { consume(); stringLiteral.append( '\n' ); break ESCAPE_SWITCH; } case ( 'r' ): { consume(); stringLiteral.append( '\r' ); break ESCAPE_SWITCH; } default: { stringLiteral.append( consume() ); break ESCAPE_SWITCH; } } break LITERAL_SWITCH; } case ( '"' ): { consume(); break LITERAL_LOOP; } case ( '\r' ): case ( '\n' ): case ( CharStream.EOS ): { throw new UnterminatedStringLiteralException( getStartLine(), getStartColumn() ); } default: { stringLiteral.append( consume() ); break LITERAL_SWITCH; } } } token = Token.doubleQuoteString( getStartLine(), getStartColumn(), stringLiteral.toString() ); break ROOT_SWITCH; } case ( '0' ): case ( '1' ): case ( '2' ): case ( '3' ): case ( '4' ): case ( '5' ): case ( '6' ): case ( '7' ): case ( '8' ): case ( '9' ): { mark(); StringBuffer numericLiteral = new StringBuffer(); boolean isFloat = false; while ( c == '0' || c == '1' || c == '2' || c == '3' || c == '4' || c == '5' || c == '6' || c == '7' || c == '8' || c == '9' ) { numericLiteral.append( consume() ); c = la(); } if ( c == '.' ) { if ( ( c = la( 2 ) ) == '.' ) { // int followed by range op, break out. } else { while ( c == '0' || c == '1' || c == '2' || c == '3' || c == '4' || c == '5' || c == '6' || c == '7' || c == '8' || c == '9' ) { if ( !isFloat ) numericLiteral.append( consume() ); isFloat = true; numericLiteral.append( consume() ); c = la(); } } } if ( isFloat ) { token = Token.floatNumber( getStartLine(), getStartColumn(), numericLiteral.toString() ); } else { token = Token.integerNumber( getStartLine(), getStartColumn(), numericLiteral.toString() ); } break ROOT_SWITCH; } default: { mark(); if ( Character.isJavaIdentifierStart( c ) ) { StringBuffer identifier = new StringBuffer(); identifier.append( consume() ); IDENTIFIER_LOOP: while ( true ) { c = la(); if ( Character.isJavaIdentifierPart( c ) ) { identifier.append( consume() ); } else { break IDENTIFIER_LOOP; } } token = Token.keyword( getStartLine(), getStartColumn(), identifier.toString() ); if ( token == null ) { token = Token.identifier( getStartLine(), getStartColumn(), identifier.toString() ); } } else { throw new UnexpectedCharacterException( getStartLine(), getStartColumn()+1, c, new char[] { } ); } break ROOT_SWITCH; } } } return token; } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/b5e2e640b10d4bda5b22982cc3c2b75732c0a439/Lexer.java/clean/src/main/org/codehaus/groovy/syntax/lexer/Lexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3155,
9617,
1435,
3639,
1216,
1860,
16,
14234,
503,
565,
288,
3639,
3155,
1147,
273,
446,
31,
1377,
28759,
67,
28677,
30,
3639,
1323,
261,
1147,
422,
446,
262,
3639,
288,
5411,
1149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3155,
9617,
1435,
3639,
1216,
1860,
16,
14234,
503,
565,
288,
3639,
3155,
1147,
273,
446,
31,
1377,
28759,
67,
28677,
30,
3639,
1323,
261,
1147,
422,
446,
262,
3639,
288,
5411,
1149... |
if (max_items != null && "none".equals(maxItems)) { | if (max_items != null && "none".equals(max_items)) { | public void execute(SessionData data, Element command) { String max_items = data.getData().get("max_items").get(0); int maxItems = -1; if (max_items != null && "none".equals(maxItems)) { try { maxItems = Integer.parseInt(max_items); } catch (NumberFormatException e) { // Do nothing. Assume that all users are being requested } } DataForm form = new DataForm(DataForm.Type.result); FormField field = form.addField(); field.setType(FormField.Type.hidden); field.setVariable("FORM_TYPE"); field.addValue("http://jabber.org/protocol/admin"); field = form.addField(); field.setType(FormField.Type.jid_single); field.setLabel("The list of active users"); field.setVariable("activeuserjids"); // Get list of users (i.e. bareJIDs) that are connected to the server Collection<ClientSession> sessions = SessionManager.getInstance().getSessions(); Set<String> users = new HashSet<String>(sessions.size()); for (ClientSession session : sessions) { if (session.getPresence().isAvailable()) { users.add(session.getAddress().toBareJID()); } if (maxItems > 0 && users.size() >= maxItems) { break; } } // Add users to the result for (String user : users) { field.addValue(user); } command.add(form.getElement()); } | 51636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51636/5ad49feea0da188ba912d46c04a96de72d613bab/GetListActiveUsers.java/buggy/src/java/org/jivesoftware/wildfire/commands/admin/GetListActiveUsers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
12,
2157,
751,
501,
16,
3010,
1296,
13,
288,
3639,
514,
943,
67,
3319,
273,
501,
18,
588,
751,
7675,
588,
2932,
1896,
67,
3319,
20387,
588,
12,
20,
1769,
3639,
509,
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,
377,
1071,
918,
1836,
12,
2157,
751,
501,
16,
3010,
1296,
13,
288,
3639,
514,
943,
67,
3319,
273,
501,
18,
588,
751,
7675,
588,
2932,
1896,
67,
3319,
20387,
588,
12,
20,
1769,
3639,
509,
9... |
il.insert(ih, factory.createInvoke( joinPointClass, "<init>", Type.VOID, new Type[]{Type.STRING, Type.OBJECT, Type.STRING}, Constants.INVOKESPECIAL)); | il.insert(ih, factory.createFieldAccess( cg.getClassName(), joinPoint.toString(), joinPointType, Constants.PUTFIELD)); | private Method createJoinPointMemberField(final ConstantPoolGen cp, final ClassGen cg, final Method init, final InstructionFactory factory, final String fieldName, final String signature, final Type joinPointType, final String uuid) { final String joinPointPrefix = getJoinPointPrefix(joinPointType); final String joinPointClass = getJoinPointClass(joinPointType); final MethodGen mg = new MethodGen(init, cg.getClassName(), cp); final InstructionList il = mg.getInstructionList(); final InstructionHandle[] ihs = il.getInstructionHandles(); for (int i = 0; i < ihs.length; i++) { // inserts field instantiation into the constructor final InstructionHandle ih = ihs[i]; if (!(ih.getInstruction() instanceof ReturnInstruction)) continue; // build the right join point member field name final StringBuffer joinPoint = getJoinPointName(joinPointPrefix, fieldName); // create an new join point final InstructionHandle ihPost = il.insert( ih, factory.createLoad(Type.OBJECT, 0)); il.insert(ih, factory.createNew(joinPointClass)); // load the parameters (uuid, this, field signature) il.insert(ih, InstructionConstants.DUP); il.insert(ih, new PUSH(cp, uuid)); il.insert(ih, factory.createLoad(Type.OBJECT, 0)); il.insert(ih, new PUSH(cp, signature)); // invokes the constructor il.insert(ih, factory.createInvoke( joinPointClass, "<init>", Type.VOID, new Type[]{Type.STRING, Type.OBJECT, Type.STRING}, Constants.INVOKESPECIAL)); // set the join point to the member field specified il.insert(ih, factory.createFieldAccess( cg.getClassName(), joinPoint.toString(), joinPointType, Constants.PUTFIELD)); il.redirectBranches(ih, ihPost); } mg.setMaxStack(); mg.setMaxLocals(); return mg.getMethod(); } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/e884a254b640ac9f7d6c0e9119eca456a2ed76ac/AdviseMemberFieldTransformer.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/transform/AdviseMemberFieldTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2985,
752,
4572,
2148,
4419,
974,
12,
6385,
10551,
2864,
7642,
3283,
16,
4766,
2868,
727,
1659,
7642,
14947,
16,
4766,
2868,
727,
2985,
1208,
16,
4766,
2868,
727,
24605,
1733,
3272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2985,
752,
4572,
2148,
4419,
974,
12,
6385,
10551,
2864,
7642,
3283,
16,
4766,
2868,
727,
1659,
7642,
14947,
16,
4766,
2868,
727,
2985,
1208,
16,
4766,
2868,
727,
24605,
1733,
3272,
... |
public String[] getCalendarNames(SchedulingContext ctxt) throws JobPersistenceException; | String[] getCalendarNames(SchedulingContext ctxt) throws JobPersistenceException; | public String[] getCalendarNames(SchedulingContext ctxt) throws JobPersistenceException; | 3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/JobStore.java/buggy/src/java/org/quartz/spi/JobStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
28623,
1557,
12,
25401,
1042,
14286,
13,
5411,
1216,
3956,
13182,
503,
31,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8526,
28623,
1557,
12,
25401,
1042,
14286,
13,
5411,
1216,
3956,
13182,
503,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
reset(w,h); } | reset(w,h); } | public void render(int w, int h, Graphics2D g2) { //System.out.println("SassiAnimatedSurface.render w="+w+" h="+h); Dimension d = getSize(); if (oldSize.width != d.width || oldSize.height != d.height) reset(w,h); } | 7173 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7173/284798c12a4cc040d0cc40304bb2842bedad0b0e/AnimatedCanvas.java/buggy/qos/src/org/cougaar/core/qos/frame/visualizer/AnimatedCanvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1743,
12,
474,
341,
16,
509,
366,
16,
16830,
22,
40,
314,
22,
13,
288,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
55,
428,
77,
979,
17275,
11508,
18,
5902,
341,
1546,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1743,
12,
474,
341,
16,
509,
366,
16,
16830,
22,
40,
314,
22,
13,
288,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
55,
428,
77,
979,
17275,
11508,
18,
5902,
341,
1546,
15,
... |
.debug( "initialize: snmpifindex = " + index + ", snmpifname = " + name + ", snmpifdescr = " + descr + ", snmpphysaddr = -" + physAddr + "-"); | .debug( "initialize: snmpifindex = " + index + ", snmpifname = " + name + ", snmpifdescr = " + descr + ", snmpphysaddr = -" + physAddr + "-"); | private void getSnmpInfoForInterfaces() { { PreparedStatement stmt = null; try { stmt = m_dsConn.prepareStatement(SnmpCollector.SQL_GET_SNMP_INFO); stmt.setInt(1, m_nodeID); ResultSet rs = stmt.executeQuery(); addIfaceToSnmpPrimaryMap(); while (rs.next()) { // Extract retrieved database values from the result set int index = rs.getInt(1); int type = rs.getInt(2); String name = rs.getString(3); String descr = rs.getString(4); String physAddr = rs.getString(5); if (m_collector.log().isDebugEnabled()) { m_collector.log() .debug( "initialize: snmpifindex = " + index + ", snmpifname = " + name + ", snmpifdescr = " + descr + ", snmpphysaddr = -" + physAddr + "-"); } /* * Determine the label for this interface. The label will be * used to create the RRD file name which holds SNMP data * retreived from the remote agent. If available ifName is * used to generate the label since it is guaranteed to be * unique. Otherwise ifDescr is used. In either case, all * non alpha numeric characters are converted to underscores * to ensure that the resuling string will make a decent * file name and that RRD won't have any problems using it */ String label = null; if (name != null) { label = AlphaNumeric.parseAndReplace(name, SnmpCollector.nonAnRepl); } else if (descr != null) { label = AlphaNumeric.parseAndReplace(descr, SnmpCollector.nonAnRepl); } else { m_collector.log() .warn( "Interface (ifIndex/nodeId=" + index + "/" + m_nodeID + ") has no ifName and no " + "ifDescr...setting to label to 'no_ifLabel'."); label = "no_ifLabel"; } /* * In order to assure the uniqueness of the RRD file names * we now append the MAC/physical address to the end of * label if it is available. */ if (physAddr != null) { physAddr = AlphaNumeric.parseAndTrim(physAddr); if (physAddr.length() == 12) { label = label + "-" + physAddr; } else { if (m_collector.log().isDebugEnabled()) { m_collector.log().debug( "initialize: physical address len " + "is NOT 12, physAddr=" + physAddr); } } } if (m_collector.log().isDebugEnabled()) { m_collector.log().debug("initialize: ifLabel = '" + label + "'"); } // Create new IfInfo object String collType = (String) m_snmppriMap.get(rs.getString(1)); IfInfo ifInfo = new IfInfo(index, type, label, collType); if (index == m_primaryIfIndex) { ifInfo.setIsPrimary(true); } else { ifInfo.setIsPrimary(false); } /* * Retrieve list of mib objects to be collected from the * remote agent for this interface. */ m_oidList = DataCollectionConfigFactory.getInstance() .getMibObjectList(m_collectionName, m_sysoid, m_ipAddr.getHostAddress(), type); /* * Now build a list of RRD data source objects from the list * of mib objects */ m_dsList = m_collector.buildDataSourceList(m_collectionName, m_oidList); // Set MIB object and data source lists in IfInfo object ifInfo.setOidList(m_oidList); ifInfo.setDsList(m_dsList); /* * Add the new IfInfo object to the interface map keyed by * interface index */ m_ifMap.put(new Integer(index), ifInfo); } rs.close(); } catch (SQLException e) { m_collector.log().debug("initialize: SQL exception!!", e); throw new RuntimeException("SQL exception while attempting " + "to retrieve snmp interface info", e); } catch (NullPointerException e) { /* * Thrown by ResultSet.getString() if database query did not * return anything */ m_collector.log().debug("initialize: NullPointerException", e); throw new RuntimeException("NullPointerException while " + "attempting to retrieve snmp interface info", e); } finally { try { stmt.close(); } catch (Exception e) { m_collector.log().info( "initialize: an error occured trying to close " + "an SQL statement", e); } } } /* * Verify that we did find at least one eligible interface for the * node. */ if (m_ifMap.size() < 1) { throw new RuntimeException("Failed to retrieve any eligible " + "interfaces for node " + m_nodeID + " from the database."); } // Add the ifMap object as an attribute of the interface m_iface.setAttribute(SnmpCollector.IF_MAP_KEY, m_ifMap); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/cc54dfb75188d14438ebe4380c4700c499516431/Initializer.java/clean/src/services/org/opennms/netmgt/collectd/Initializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1322,
82,
1291,
966,
1290,
10273,
1435,
288,
202,
202,
95,
25083,
202,
29325,
3480,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
10589,
273,
312,
67,
2377,
3543,
18,
936... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1322,
82,
1291,
966,
1290,
10273,
1435,
288,
202,
202,
95,
25083,
202,
29325,
3480,
273,
446,
31,
202,
202,
698,
288,
1082,
202,
10589,
273,
312,
67,
2377,
3543,
18,
936... |
clone._isRestartable = false; | public NodeIterator cloneIterator() { try { final FilteredStepIterator clone = (FilteredStepIterator)super.clone(); clone._isRestartable = false; clone._source = _source.cloneIterator(); clone._iterator = _iterator.cloneIterator() .setStartNode(_source.next()); return clone.resetPosition(); } catch (CloneNotSupportedException e) { BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR, e.toString()); return null; } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/61ddaf85858b506ab9b862333d4c02da77dc8ce7/FilteredStepIterator.java/clean/src/org/apache/xalan/xsltc/dom/FilteredStepIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
3198,
3236,
3198,
1435,
288,
202,
698,
288,
202,
565,
727,
4008,
329,
4160,
3198,
3236,
273,
202,
202,
12,
14478,
4160,
3198,
13,
9565,
18,
14056,
5621,
202,
565,
3236,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
3198,
3236,
3198,
1435,
288,
202,
698,
288,
202,
565,
727,
4008,
329,
4160,
3198,
3236,
273,
202,
202,
12,
14478,
4160,
3198,
13,
9565,
18,
14056,
5621,
202,
565,
3236,
6315,
... | |
following.push(FOLLOW_paren_chunk_in_lhs_eval2571); c=paren_chunk(); following.pop(); match(input,23,FOLLOW_23_in_lhs_eval2573); | System.err.println( "END EVAL" ); match(input,23,FOLLOW_23_in_lhs_eval2664); System.err.println( "END 2" ); | public PatternDescr lhs_eval() throws RecognitionException { PatternDescr d; Token loc=null; String c = null; d = null; String text = ""; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:904:17: ( 'eval' loc= '(' opt_eol c= paren_chunk ')' ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:904:17: 'eval' loc= '(' opt_eol c= paren_chunk ')' { match(input,56,FOLLOW_56_in_lhs_eval2561); loc=(Token)input.LT(1); match(input,21,FOLLOW_21_in_lhs_eval2565); following.push(FOLLOW_opt_eol_in_lhs_eval2567); opt_eol(); following.pop(); following.push(FOLLOW_paren_chunk_in_lhs_eval2571); c=paren_chunk(); following.pop(); match(input,23,FOLLOW_23_in_lhs_eval2573); checkTrailingSemicolon( c, loc.getLine() ); d = new EvalDescr( c ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/506adcf4556609ba2040aab4c53c1e38dbf7c80e/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
8622,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
514,
276,
273,
446,
31,
540,
202,
202,
72,
273,
446,
31,
540,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
8622,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
514,
276,
273,
446,
31,
540,
202,
202,
72,
273,
446,
31,
540,... |
static void initOptions() { | public static void initOptions() { | static void initOptions() { options = new VM_BaselineOptions(); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3244bbe4a4a879b815f1721d3b48595e84349cc5/VM_BaselineCompiler.java/clean/rvm/src/com/ibm/jikesrvm/VM_BaselineCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1208,
1320,
1435,
288,
565,
702,
273,
394,
8251,
67,
16635,
1320,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1208,
1320,
1435,
288,
565,
702,
273,
394,
8251,
67,
16635,
1320,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
format.setLineSeparator( System.getProperty( "line.separator" ) ); | format.setLineSeparator( lineSeparator ); | public static String serializeDocument( Document doc) throws IOException { ByteArrayOutputStream s = new ByteArrayOutputStream(); OutputFormat format = new OutputFormat(); format.setIndenting( true ); format.setLineSeparator( System.getProperty( "line.separator" ) ); //$NON-NLS-1$ Serializer serializer = SerializerFactory.getSerializerFactory( Method.XML ).makeSerializer( new OutputStreamWriter( s, "UTF8" ), format ); serializer.asDOMSerializer().serialize( doc ); return s.toString( "UTF8" ); //$NON-NLS-1$ } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/022ba9b78918302caa276ee1003a5ede4485861a/CDebugUtils.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
4472,
2519,
12,
4319,
997,
13,
1216,
1860,
202,
95,
202,
202,
8826,
4632,
272,
273,
394,
11559,
5621,
202,
202,
1447,
1630,
740,
273,
394,
3633,
1630,
5621,
202,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
4472,
2519,
12,
4319,
997,
13,
1216,
1860,
202,
95,
202,
202,
8826,
4632,
272,
273,
394,
11559,
5621,
202,
202,
1447,
1630,
740,
273,
394,
3633,
1630,
5621,
202,
202... |
ClassLoader loader = getClass().getClassLoader(); if (loader != null) { Class clazz = ClassManager.defineClass(loader, name, data); if (clazz != null) return clazz; } | public Class defineClass(String name, byte data[]) { ClassLoader loader = getClass().getClassLoader(); if (loader != null) { Class clazz = ClassManager.defineClass(loader, name, data); if (clazz != null) return clazz; } return super.defineClass(name, data, 0, data.length); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/f7417f7060c11be1359953bdaadcaebd072b36c6/DefiningClassLoader.java/clean/js/rhino/src/org/mozilla/classfile/DefiningClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
4426,
797,
12,
780,
508,
16,
1160,
501,
63,
5717,
288,
3639,
9403,
4088,
273,
2900,
7675,
588,
7805,
5621,
3639,
309,
261,
6714,
480,
446,
13,
288,
5411,
1659,
4003,
273,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
4426,
797,
12,
780,
508,
16,
1160,
501,
63,
5717,
288,
3639,
9403,
4088,
273,
2900,
7675,
588,
7805,
5621,
3639,
309,
261,
6714,
480,
446,
13,
288,
5411,
1659,
4003,
273,
16... | |
public org.quickfix.field.ContractMultiplier getContractMultiplier() throws FieldNotFound { org.quickfix.field.ContractMultiplier value = new org.quickfix.field.ContractMultiplier(); | public quickfix.field.ContractMultiplier getContractMultiplier() throws FieldNotFound { quickfix.field.ContractMultiplier value = new quickfix.field.ContractMultiplier(); | public org.quickfix.field.ContractMultiplier getContractMultiplier() throws FieldNotFound { org.quickfix.field.ContractMultiplier value = new org.quickfix.field.ContractMultiplier(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Email.java/clean/src/java/src/quickfix/fix44/Email.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8924,
23365,
336,
8924,
23365,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8924,
23365,
460,
273,
394,
2358,
18,
19525,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8924,
23365,
336,
8924,
23365,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8924,
23365,
460,
273,
394,
2358,
18,
19525,... |
_loop1756: | _loop1760: | public final void promptforstate(AST _t) throws RecognitionException { AST promptforstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1747 = _t; AST tmp1120_AST_in = (AST)_t; match(_t,PROMPTFOR); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STREAM: { stream_name(_t); _t = _retTree; break; } case EOF: case PERIOD: case EXCEPT: case GOON: case IN_KW: case UNLESSHIDDEN: case WITH: case Editing_phrase: case Form_item: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNLESSHIDDEN: { AST tmp1121_AST_in = (AST)_t; match(_t,UNLESSHIDDEN); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case EXCEPT: case GOON: case IN_KW: case WITH: case Editing_phrase: case Form_item: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1751: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { form_item(_t); _t = _retTree; } else { break _loop1751; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case GOON: { goonphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: case EXCEPT: case IN_KW: case WITH: case Editing_phrase: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t1754 = _t; AST tmp1122_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop1756: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { field(_t); _t = _retTree; } else { break _loop1756; } } while (true); } _t = __t1754; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case IN_KW: case WITH: case Editing_phrase: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t1758 = _t; AST tmp1123_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp1124_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t1758; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case WITH: case Editing_phrase: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WITH: { framephrase(_t); _t = _retTree; break; } case EOF: case PERIOD: case Editing_phrase: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Editing_phrase: { editingphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t1747; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
6866,
1884,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
6866,
1884,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
6866,
1884,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
6866,
1884,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... |
public NavigatorContentService(String aViewerId, StructuredViewer aViewer) { this(aViewerId); structuredViewerManager = new StructuredViewerManager(aViewer); | public NavigatorContentService(String aViewerId) { super(); aViewerId = aViewerId != null ? aViewerId : ""; viewerDescriptor = VIEWER_DESCRIPTOR_REGISTRY .getNavigatorViewerDescriptor(aViewerId); assistant = new VisibilityAssistant(viewerDescriptor, getActivationService()); getActivationService().addExtensionActivationListener(this); | public NavigatorContentService(String aViewerId, StructuredViewer aViewer) { this(aViewerId); structuredViewerManager = new StructuredViewerManager(aViewer); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3883d6eab90d253e293e4fad9070385b5e31e028/NavigatorContentService.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorContentService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
423,
13061,
1350,
1179,
12,
780,
279,
18415,
548,
16,
7362,
2862,
18415,
279,
18415,
13,
288,
202,
202,
2211,
12,
69,
18415,
548,
1769,
202,
202,
17233,
18415,
1318,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
423,
13061,
1350,
1179,
12,
780,
279,
18415,
548,
16,
7362,
2862,
18415,
279,
18415,
13,
288,
202,
202,
2211,
12,
69,
18415,
548,
1769,
202,
202,
17233,
18415,
1318,
273,
394,
... |
Value exemplarValue = desiredLocaleFile.getValue(prefix + "exemplarCity"); | String exemplarValue = desiredLocaleFile.getStringValue(prefix + "exemplarCity"); | public String getFormattedZone(String zoneid, int length, int type) { String result;/*<long><generic>Alaska Time</generic><standard>Alaska Standard Time</standard><daylight>Alaska Daylight Time</daylight></long><short><generic>AKT</generic><standard>AKST</standard><daylight>AKDT</daylight></short>*/ String prefix = "/ldml/dates/timeZoneNames/zone[@type=\"" + zoneid + "\"]/"; // 1. If non-GMT format, and we have an explicit translation, use it if (length != GMT) { Value formatValue = desiredLocaleFile.getValue(prefix + LENGTH.get(length) + "/" + TYPE.get(type)); if (formatValue != null) return formatValue.getStringValue(); } String country = (String) zone_countries.get(zoneid); // 2. if GMT format or no country, use it if (length == GMT || country.equals(StandardCodes.NO_COUNTRY)) { TimeZone tz = TimeZone.getTimeZone(zoneid); long gmtOffset1 = tz.getOffset(D2005_01_02); tz = TimeZone.getTimeZone(zoneid); long gmtOffset2 = tz.getOffset(D2005_06_02); DateFormat format = hourFormat[gmtOffset1 >= 0 ? 0 : 1]; if (type == GENERIC && gmtOffset1 != gmtOffset2) { calendar.setTimeInMillis(Math.abs(gmtOffset1)); String first = format.format(calendar); calendar.setTimeInMillis(Math.abs(gmtOffset2)); String second = format.format(calendar); result = hoursFormat.format(new Object[]{first, second}); } else { gmtOffset1 = type == STANDARD ? Math.min(gmtOffset1, gmtOffset2) : Math.max(gmtOffset1, gmtOffset2); calendar.setTimeInMillis(Math.abs(gmtOffset1)); result = format.format(calendar); } return gmtFormat.format(new Object[]{result}); } // 3. Else for non-wall-time, use GMT format // America/Los_Angeles => "GMT-08:00" // 4. *Else if there is an exemplar city, use it with the region format. The exemplar city may not be the same as the Olson ID city, if another city is much more recognizable for whatever reason. // However, it is very strongly recommended that the same city be used. // America/Los_Angeles => "Tampo de San Fransisko" // 5. *Else if there is a country for the time zone, and a translation in the locale for the country name, and the country only has one (modern) timezone, use it with the region format : // Africa/Monrovia => LR => "Tampo de Liberja" Set s = (Set) countries_zoneSet.get(country); if (s != null && s.size() == 1) { result = desiredLocaleFile.getName(CLDRFile.TERRITORY_NAME, country, false); if (result != null) return regionFormat.format(new Object[]{result}); } // 6. Else if it is a perpetual alias for a "real" ID, and if there is an exact translation for that, try #1..#4 with that alias. // Europe/San_Marino => Europe/Rome => ... => "Tampo de Roma" // TODO // 7. Else fall back to the raw Olson ID (stripping off the prefix, and turning _ into space), using the fallback format. // America/Goose_Bay => "Tampo de Goose Bay" Value exemplarValue = desiredLocaleFile.getValue(prefix + "exemplarCity"); if (exemplarValue != null) { result = exemplarValue.getStringValue(); } else { result = getFallbackName(zoneid); } String countryTranslation = desiredLocaleFile.getName(CLDRFile.TERRITORY_NAME, country, false); if (countryTranslation == null) countryTranslation = country; return fallbackFormat.format(new Object[]{result, countryTranslation}); // 8. Else use the (possibly multi-offset) GMT format // America/Nome => "GMT-0900/-0800" // TODO } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/b2661290265a41e441c15e96aa15d2931bd8722d/TimezoneFormatter.java/buggy/tools/java/org/unicode/cldr/util/TimezoneFormatter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
15562,
4226,
12,
780,
4157,
350,
16,
509,
769,
16,
509,
618,
13,
288,
202,
202,
780,
563,
31,
20308,
32,
5748,
4438,
13540,
34,
1067,
835,
69,
2647,
1757,
13540,
4438,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
15562,
4226,
12,
780,
4157,
350,
16,
509,
769,
16,
509,
618,
13,
288,
202,
202,
780,
563,
31,
20308,
32,
5748,
4438,
13540,
34,
1067,
835,
69,
2647,
1757,
13540,
4438,
... |
label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createconst.other.description", new Object[] { name, getTypeSignature(senderDeclBinding) } ); | label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createconst.other.description", new Object[] { name, ASTResolving.getTypeSignature(senderDeclBinding) } ); | private static void addNewFieldProposals(ICompilationUnit cu, CompilationUnit astRoot, ITypeBinding binding, ITypeBinding declaringTypeBinding, SimpleName simpleName, boolean isWriteAccess, Collection proposals) throws JavaModelException { // new variables ICompilationUnit targetCU; ITypeBinding senderDeclBinding; if (binding != null) { senderDeclBinding= binding.getTypeDeclaration(); targetCU= ASTResolving.findCompilationUnitForBinding(cu, astRoot, binding); } else { // binding is null for accesses without qualifier senderDeclBinding= declaringTypeBinding; targetCU= cu; } if (!senderDeclBinding.isFromSource() || targetCU == null || !JavaModelUtil.isEditable(targetCU)) { return; } ITypeBinding outsideAnonymous= null; if (binding == null && senderDeclBinding.isAnonymous()) { ASTNode anonymDecl= astRoot.findDeclaringNode(senderDeclBinding); if (anonymDecl != null) { ITypeBinding bind= Bindings.getBindingOfParentType(anonymDecl.getParent()); if (!bind.isAnonymous()) { outsideAnonymous= bind; } } } String name= simpleName.getIdentifier(); int relevance= StubUtility.hasFieldName(cu.getJavaProject(), name) ? 9 : 6; String label; Image image; if (binding == null) { label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createfield.description", name); //$NON-NLS-1$ image= JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PRIVATE); } else { label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createfield.other.description", new Object[] { name, getTypeSignature(senderDeclBinding) } ); //$NON-NLS-1$ image= JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PUBLIC); } proposals.add(new NewVariableCompletionProposal(label, targetCU, NewVariableCompletionProposal.FIELD, simpleName, senderDeclBinding, relevance, image)); // create field in outer class (if inside anonymous) if (outsideAnonymous != null) { label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createfield.other.description", new Object[] { name, getTypeSignature(outsideAnonymous) } ); //$NON-NLS-1$ image= JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PUBLIC); proposals.add(new NewVariableCompletionProposal(label, targetCU, NewVariableCompletionProposal.FIELD, simpleName, outsideAnonymous, relevance + 1, image)); } // create constant if (!isWriteAccess) { relevance= StubUtility.hasConstantName(name) ? 9 : 4; ITypeBinding target= (outsideAnonymous != null) ? outsideAnonymous : senderDeclBinding; if (binding == null) { label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createconst.description", name); //$NON-NLS-1$ image= JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PRIVATE); } else { label= CorrectionMessages.getFormattedString("UnresolvedElementsSubProcessor.createconst.other.description", new Object[] { name, getTypeSignature(senderDeclBinding) } ); //$NON-NLS-1$ image= JavaPluginImages.get(JavaPluginImages.IMG_FIELD_PUBLIC); } proposals.add(new NewVariableCompletionProposal(label, targetCU, NewVariableCompletionProposal.CONST_FIELD, simpleName, target, relevance, image)); } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/c7f8aedf7566dd612e073464aa4a4fac273df0d0/UnresolvedElementsSubProcessor.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/UnresolvedElementsSubProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
20973,
974,
626,
22536,
12,
45,
19184,
2802,
15985,
16,
22416,
2802,
3364,
2375,
16,
467,
559,
5250,
5085,
16,
467,
559,
5250,
20845,
559,
5250,
16,
4477,
461,
4143,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
20973,
974,
626,
22536,
12,
45,
19184,
2802,
15985,
16,
22416,
2802,
3364,
2375,
16,
467,
559,
5250,
5085,
16,
467,
559,
5250,
20845,
559,
5250,
16,
4477,
461,
4143,
... |
public Object execMethod (int methodId, IdFunction function, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { switch (methodId) { case Id_abs: return wrap_double (js_abs(ScriptRuntime.toNumber(args, 0))); case Id_acos: return wrap_double (js_acos(ScriptRuntime.toNumber(args, 0))); case Id_asin: return wrap_double (js_asin(ScriptRuntime.toNumber(args, 0))); case Id_atan: return wrap_double (js_atan(ScriptRuntime.toNumber(args, 0))); case Id_atan2: return wrap_double (js_atan2(ScriptRuntime.toNumber(args, 0), ScriptRuntime.toNumber(args, 1))); case Id_ceil: return wrap_double (js_ceil(ScriptRuntime.toNumber(args, 0))); case Id_cos: return wrap_double (js_cos(ScriptRuntime.toNumber(args, 0))); case Id_exp: return wrap_double (js_exp(ScriptRuntime.toNumber(args, 0))); case Id_floor: return wrap_double (js_floor(ScriptRuntime.toNumber(args, 0))); case Id_log: return wrap_double (js_log(ScriptRuntime.toNumber(args, 0))); case Id_max: return wrap_double (js_max(args)); case Id_min: return wrap_double (js_min(args)); case Id_pow: return wrap_double (js_pow(ScriptRuntime.toNumber(args, 0), ScriptRuntime.toNumber(args, 1))); case Id_random: return wrap_double (js_random()); case Id_round: return wrap_double (js_round(ScriptRuntime.toNumber(args, 0))); case Id_sin: return wrap_double (js_sin(ScriptRuntime.toNumber(args, 0))); case Id_sqrt: return wrap_double (js_sqrt(ScriptRuntime.toNumber(args, 0))); case Id_tan: return wrap_double (js_tan(ScriptRuntime.toNumber(args, 0))); } return null; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeMath.java/clean/js/rhino/org/mozilla/javascript/NativeMath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
445,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
445,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... | ||
throw Py.AttributeError("__abs__"); | throw Py.AttributeError("__abs__"); | public PyObject __abs__() { throw Py.AttributeError("__abs__"); } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/7578bed5e736ab8559f331661b6296572b52d1eb/PyObject.java/buggy/org/python/core/PyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4707,
921,
1001,
5113,
972,
1435,
288,
202,
12849,
4707,
18,
1499,
668,
2932,
972,
5113,
972,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4707,
921,
1001,
5113,
972,
1435,
288,
202,
12849,
4707,
18,
1499,
668,
2932,
972,
5113,
972,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
try | Object [] params = new Object[paramCount]; try | public Object execute(Object o, InternalContextAdapter context) throws MethodInvocationException { /* * new strategy (strategery!) for introspection. Since we want * to be thread- as well as context-safe, we *must* do it now, * at execution time. There can be no in-node caching, * but if we are careful, we can do it in the context. */ VelMethod method = null; try { /* * check the cache */ IntrospectionCacheData icd = context.icacheGet( this ); Class c = o.getClass(); /* * like ASTIdentifier, if we have cache information, and the * Class of Object o is the same as that in the cache, we are * safe. */ if ( icd != null && icd.contextData == c ) { /* * sadly, we do need recalc the values of the args, as this can * change from visit to visit */ for (int j = 0; j < paramCount; j++) params[j] = jjtGetChild(j + 1).value(context); /* * and get the method from the cache */ method = (VelMethod) icd.thingy; } else { /* * otherwise, do the introspection, and then * cache it */ for (int j = 0; j < paramCount; j++) params[j] = jjtGetChild(j + 1).value(context); method = rsvc.getUberspect().getMethod(o, methodName, params, new Info("",1,1)); if (method != null) { icd = new IntrospectionCacheData(); icd.contextData = c; icd.thingy = method; context.icachePut( this, icd ); } } /* * if we still haven't gotten the method, either we are calling * a method that doesn't exist (which is fine...) or I screwed * it up. */ if (method == null) return null; } catch( MethodInvocationException mie ) { /* * this can come from the doIntrospection(), as the arg values * are evaluated to find the right method signature. We just * want to propogate it here, not do anything fancy */ throw mie; } catch( Exception e ) { /* * can come from the doIntropection() also, from Introspector */ rsvc.error("ASTMethod.execute() : exception from introspection : " + e); return null; } try { /* * get the returned object. It may be null, and that is * valid for something declared with a void return type. * Since the caller is expecting something to be returned, * as long as things are peachy, we can return an empty * String so ASTReference() correctly figures out that * all is well. */ Object obj = method.invoke(o, params); if (obj == null) { if( method.getReturnType() == Void.TYPE) return new String(""); } return obj; } catch( InvocationTargetException ite ) { /* * In the event that the invocation of the method * itself throws an exception, we want to catch that * wrap it, and throw. We don't log here as we want to figure * out which reference threw the exception, so do that * above */ EventCartridge ec = context.getEventCartridge(); /* * if we have an event cartridge, see if it wants to veto * also, let non-Exception Throwables go... */ if ( ec != null && ite.getTargetException() instanceof java.lang.Exception) { try { return ec.methodException( o.getClass(), methodName, (Exception)ite.getTargetException() ); } catch( Exception e ) { throw new MethodInvocationException( "Invocation of method '" + methodName + "' in " + o.getClass() + " threw exception " + e.getClass() + " : " + e.getMessage(), e, methodName ); } } else { /* * no event cartridge to override. Just throw */ throw new MethodInvocationException( "Invocation of method '" + methodName + "' in " + o.getClass() + " threw exception " + ite.getTargetException().getClass() + " : " + ite.getTargetException().getMessage(), ite.getTargetException(), methodName ); } } catch( Exception e ) { rsvc.error("ASTMethod.execute() : exception invoking method '" + methodName + "' in " + o.getClass() + " : " + e ); return null; } } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/612e7eb2a5998f114dc6fa8e3278ef18f107e8d9/ASTMethod.java/buggy/src/java/org/apache/velocity/runtime/parser/node/ASTMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1836,
12,
921,
320,
16,
3186,
1042,
4216,
819,
13,
3639,
1216,
2985,
9267,
503,
565,
288,
3639,
1748,
540,
380,
225,
394,
6252,
261,
701,
1287,
627,
24949,
364,
18446,
7017,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1836,
12,
921,
320,
16,
3186,
1042,
4216,
819,
13,
3639,
1216,
2985,
9267,
503,
565,
288,
3639,
1748,
540,
380,
225,
394,
6252,
261,
701,
1287,
627,
24949,
364,
18446,
7017,
... |
Container.class.isAssignableFrom((Class) type)) { | Struct.class.isAssignableFrom((Class) type)) { | static Object deSerializeParameter(Object parameter, Type type) throws Exception { if (null == parameter) return null; // it's a TypeSignature, turn it into a Type[] if (parameter instanceof TypeSignature) { Vector<Type> ts = new Vector<Type>(); getJavaType(((TypeSignature) parameter).sig, ts, -1); parameter = ts.toArray(new Type[0]); } // its a wrapped variant, unwrap it if (type instanceof TypeVariable && parameter instanceof Variant) { parameter = ((Variant)parameter).getValue(); } // recurse on these if (parameter instanceof Variant) { parameter = new Variant(deSerializeParameter(((Variant) parameter).getValue(), ((Variant) parameter).getType()), ((Variant) parameter).getType()); } // its a wrapped map, unwrap it if (parameter instanceof MapContainer) parameter = ((MapContainer) parameter).getMap(type); // its a wrapped list, unwrap it if (parameter instanceof ListContainer) { parameter = ((ListContainer) parameter).getList(type); } // its an object path, get/create the proxy if (parameter instanceof ObjectPath) { parameter = ((ObjectPath) parameter).conn.getExportedObject( ((ObjectPath) parameter).source, ((ObjectPath) parameter).path); } // it should be a struct. create it if (parameter instanceof Object[] && type instanceof Class && Container.class.isAssignableFrom((Class) type)) { Type[] ts = Container.getTypeCache(type); if (null == ts) { Field[] fs = ((Class) type).getDeclaredFields(); ts = new Type[fs.length]; for (Field f : fs) { Position p = f.getAnnotation(Position.class); if (null == p) continue; ts[p.value()] = f.getGenericType(); } Container.putTypeCache(type, ts); } // recurse over struct contents parameter = deSerializeParameters((Object[]) parameter, ts); for (Constructor con: ((Class) type).getDeclaredConstructors()) { try { parameter = con.newInstance((Object[]) parameter); break; } catch (IllegalArgumentException IAe) {} } } // recurse over arrays if (parameter instanceof Object[]) { Type[] ts = new Type[((Object[]) parameter).length]; Arrays.fill(ts, parameter.getClass().getComponentType()); parameter = deSerializeParameters((Object[]) parameter, ts); } // make sure arrays are in the correct format if (parameter instanceof Object[] || parameter instanceof List || parameter.getClass().isArray()) { if (type instanceof ParameterizedType) parameter = ArrayFrob.convert(parameter, (Class<? extends Object>) ((ParameterizedType) type).getRawType()); else if (type instanceof GenericArrayType) { Type ct = ((GenericArrayType) type).getGenericComponentType(); Class cc = null; if (ct instanceof Class) cc = (Class) ct; if (ct instanceof ParameterizedType) cc = (Class) ((ParameterizedType) ct).getRawType(); Object o = Array.newInstance(cc, 0); parameter = ArrayFrob.convert(parameter, o.getClass()); } else if (type instanceof Class && ((Class) type).isArray()) { Class cc = ((Class) type).getComponentType(); Object o = Array.newInstance(cc, 0); parameter = ArrayFrob.convert(parameter, o.getClass()); } } return parameter; } | 5401 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5401/852b4ace9cde76f14b7630c07d3d462739665f9b/DBusConnection.java/clean/org/freedesktop/dbus/DBusConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
760,
1033,
443,
10343,
1662,
12,
921,
1569,
16,
1412,
618,
13,
1216,
1185,
282,
288,
1377,
309,
261,
2011,
422,
1569,
13,
1850,
327,
446,
31,
1377,
368,
518,
1807,
279,
1412,
5374,
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,
760,
1033,
443,
10343,
1662,
12,
921,
1569,
16,
1412,
618,
13,
1216,
1185,
282,
288,
1377,
309,
261,
2011,
422,
1569,
13,
1850,
327,
446,
31,
1377,
368,
518,
1807,
279,
1412,
5374,
16,
... |
if ((_doResponse[option] == 0 && _stateIsDo(option)) || _requestedDo(option)) | if ((_doResponse[option] == 0 && _stateIsDo(option)) || _requestedDo(option)) { | final synchronized void _requestDo(int option) throws IOException { if ((_doResponse[option] == 0 && _stateIsDo(option)) || _requestedDo(option)) return ; _setWantDo(option); ++_doResponse[option]; _sendDo(option); } | 50121 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50121/9cdfe8b631f8520c9bcf72b76cc6a9e9a5392222/Telnet.java/clean/src/java/org/apache/commons/net/telnet/Telnet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3852,
918,
389,
2293,
3244,
12,
474,
1456,
13,
565,
1216,
1860,
565,
288,
3639,
309,
14015,
67,
2896,
1064,
63,
3482,
65,
422,
374,
597,
389,
2019,
2520,
3244,
12,
3482,
3719,
747,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
3852,
918,
389,
2293,
3244,
12,
474,
1456,
13,
565,
1216,
1860,
565,
288,
3639,
309,
14015,
67,
2896,
1064,
63,
3482,
65,
422,
374,
597,
389,
2019,
2520,
3244,
12,
3482,
3719,
747,... |
for (byte b : conn.getSourceData()) out.write(Integer.toHexString((int) b).getBytes()); | for (byte b : conn.getSourceData()) { String hexString = Integer.toHexString((int) b); if (hexString.length() == 1) hexString = "0" + hexString; out.write(hexString.getBytes()); } | public void logConnection(RadioConnection conn) { if (myType == LOG_TO_LOG4J || myType == LOG_TO_FILE_AND_LOG4J) { if (conn.getDestinationPositons() != null && conn.getDestinationPositons().length > 0) for (Position destPos : conn.getDestinationPositons()) { logger.info("RADIODATA from " + conn.getSourcePosition() + " to " + destPos + "\tsize:" + conn.getSourceData().length); } else logger.info("RADIODATA from " + conn.getSourcePosition() + " to " + "[NOWHERE]" + "\tsize:" + conn.getSourceData().length); } if (myType == LOG_TO_FILE || myType == LOG_TO_FILE_AND_LOG4J) { try { FileOutputStream out = new FileOutputStream(myFile, true); if (conn.getDestinationPositons() != null && conn.getDestinationPositons().length > 0) { for (int i = 0; i < conn.getDestinationPositons().length; i++) { // Source pos out.write("SRC_POS\t".getBytes()); Position pos = conn.getSourcePosition(); out.write(Double.toString(pos.getXCoordinate()).getBytes()); out.write("\t".getBytes()); out.write(Double.toString(pos.getYCoordinate()).getBytes()); out.write("\t".getBytes()); out.write(Double.toString(pos.getZCoordinate()).getBytes()); out.write("\t".getBytes()); // Source data out.write("SRC_DATA\t".getBytes()); for (byte b : conn.getSourceData()) out.write(Integer.toHexString((int) b).getBytes()); out.write("\t".getBytes()); // Destination pos out.write("DEST_POS\t".getBytes()); pos = conn.getDestinationPositons()[i]; out.write(Double.toString(pos.getXCoordinate()).getBytes()); out.write("\t".getBytes()); out.write(Double.toString(pos.getYCoordinate()).getBytes()); out.write("\t".getBytes()); out.write(Double.toString(pos.getZCoordinate()).getBytes()); out.write("\t".getBytes()); // Source data out.write("DEST_DATA\t".getBytes()); for (byte b : conn.getDestinationData()[i]) out.write(Integer.toHexString((int) b).getBytes()); out.write("\t".getBytes()); out.write("\n".getBytes()); } } else { // Source pos out.write("SRC_POS\t".getBytes()); Position pos = conn.getSourcePosition(); out.write(Double.toString(pos.getXCoordinate()).getBytes()); out.write("\t".getBytes()); out.write(Double.toString(pos.getYCoordinate()).getBytes()); out.write("\t".getBytes()); out.write(Double.toString(pos.getZCoordinate()).getBytes()); out.write("\t".getBytes()); // Source data out.write("SRC_DATA\t".getBytes()); for (byte b : conn.getSourceData()) out.write(Integer.toHexString((int) b).getBytes()); out.write("\n".getBytes()); } out.close(); } catch (Exception e) { logger.fatal("Exception while logging to file: " + e); myType = LOG_TO_LOG4J; return; } } } | 43320 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43320/8e0150d44b09fd49163c682ecc1444d91f29bc40/ConnectionLogger.java/buggy/tools/cooja/java/se/sics/cooja/ConnectionLogger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
613,
1952,
12,
19984,
1952,
1487,
13,
288,
565,
309,
261,
4811,
559,
422,
2018,
67,
4296,
67,
4842,
24,
46,
747,
3399,
559,
422,
2018,
67,
4296,
67,
3776,
67,
4307,
67,
484... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
613,
1952,
12,
19984,
1952,
1487,
13,
288,
565,
309,
261,
4811,
559,
422,
2018,
67,
4296,
67,
4842,
24,
46,
747,
3399,
559,
422,
2018,
67,
4296,
67,
3776,
67,
4307,
67,
484... |
} | } | public void drawArc(int x, int y, int w, int h, int startAngle, int arcAngle) { // TODO } // drawArc() | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/50dc6879c9be89f646fdff68c58f785e3dc0b90e/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3724,
14598,
12,
474,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
16,
1875,
202,
474,
787,
8467,
16,
509,
8028,
8467,
13,
288,
202,
202,
759,
2660,
202,
97,
368,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
14598,
12,
474,
619,
16,
509,
677,
16,
509,
341,
16,
509,
366,
16,
1875,
202,
474,
787,
8467,
16,
509,
8028,
8467,
13,
288,
202,
202,
759,
2660,
202,
97,
368,
3... |
String value = ""; | String value = ""; | private List lookupMacros(String prefix){ Set keySet = new TreeSet(macroMap.keySet()); Iterator i = keySet.iterator(); List resultSet = new ArrayList(); while( i.hasNext() ) { String key = (String) i.next(); String value = ""; if(key.length() > prefix.length()) { value = key.substring(0, prefix.length()); }else { value = key; } if( value.equalsIgnoreCase( prefix ) ) { IMacroDescriptor macroD = (IMacroDescriptor)macroMap.get(key); if (macroD.getMacroType() == IMacroDescriptor.MacroType.FUNCTION_LIKE ) resultSet.add( macroD.getCompleteSignature() ); else resultSet.add( macroD.getName() ); } else if( value.compareToIgnoreCase( prefix ) > 0 ) break; } return resultSet; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1738ff26440cb838b4d42f49cb8d29c4cc9babdf/CompletionEngine.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/CompletionEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
3689,
9990,
6973,
12,
780,
1633,
15329,
1082,
202,
694,
7685,
273,
394,
19461,
12,
26448,
863,
18,
856,
694,
10663,
202,
202,
3198,
277,
273,
7685,
18,
9838,
5621,
9506,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
3689,
9990,
6973,
12,
780,
1633,
15329,
1082,
202,
694,
7685,
273,
394,
19461,
12,
26448,
863,
18,
856,
694,
10663,
202,
202,
3198,
277,
273,
7685,
18,
9838,
5621,
9506,
... |
c = _consolePane; | newC = _consolePane; | private void _switchToPane(Component c) { if (c == _interactionsScroll) { c = _interactionsPane; } if (c == _consoleScroll) { c = _consolePane; } showTab(c); c.requestFocus(); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/6df23b9d947a754084cff460e34d203b0d81fd48/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
9610,
774,
8485,
12,
1841,
276,
13,
288,
565,
309,
261,
71,
422,
389,
2761,
4905,
6806,
13,
288,
1377,
276,
273,
389,
2761,
4905,
8485,
31,
565,
289,
565,
309,
261,
71... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
389,
9610,
774,
8485,
12,
1841,
276,
13,
288,
565,
309,
261,
71,
422,
389,
2761,
4905,
6806,
13,
288,
1377,
276,
273,
389,
2761,
4905,
8485,
31,
565,
289,
565,
309,
261,
71... |
Drawing d = createDrawing(); d.setTitle(getDefaultDrawingTitle()); DrawingView dv = new ZoomDrawingView(this); dv.setDrawing(d); return dv; | return new ZoomDrawingView(this); | protected DrawingView createDrawingView() { Drawing d = createDrawing(); d.setTitle(getDefaultDrawingTitle()); DrawingView dv = new ZoomDrawingView(this); dv.setDrawing(d); return dv; } | 5626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5626/fd6141583eb286d7a0c6fb88b32b06eb519af75e/JavaDrawApp.java/clean/JHotDraw/src/CH/ifa/draw/samples/javadraw/JavaDrawApp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
10184,
310,
1767,
752,
26885,
1767,
1435,
288,
202,
202,
26885,
302,
273,
752,
26885,
5621,
202,
202,
72,
18,
542,
4247,
12,
588,
1868,
26885,
4247,
10663,
202,
202,
26885,
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,
1117,
10184,
310,
1767,
752,
26885,
1767,
1435,
288,
202,
202,
26885,
302,
273,
752,
26885,
5621,
202,
202,
72,
18,
542,
4247,
12,
588,
1868,
26885,
4247,
10663,
202,
202,
26885,
176... |
if (jj_3_26()) { jj_scanpos = xsp; break; } | if (jj_3_19()) { jj_scanpos = xsp; break; } | final private boolean jj_3R_20() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; if (jj_3_26()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; while (true) { xsp = jj_scanpos; if (jj_3_26()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/d1775300ef3c91eaadbc0bf2706207627b5dc993/SoarParser.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/parser/SoarParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3462,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
12995,
9254,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
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,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
3462,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
12995,
9254,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
... |
throw new AssertionError(Messages.getString("prefs.5")); | throw new NullPointerException(Messages.getString("prefs.5")); | public void exportNode(OutputStream ostream) throws IOException, BackingStoreException { if(ostream == null) { // prefs.5=Stream is null throw new AssertionError(Messages.getString("prefs.5")); //$NON-NLS-1$ } checkState(); XMLParser.exportPrefs(this, ostream, false); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/54c9c40471b5ff1eb74b1549b6896720222c420d/AbstractPreferences.java/buggy/modules/prefs/src/main/java/java/util/prefs/AbstractPreferences.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3359,
907,
12,
4632,
320,
3256,
13,
1216,
1860,
16,
5411,
4297,
310,
21151,
288,
3639,
309,
12,
669,
793,
422,
446,
13,
288,
5411,
368,
15503,
18,
25,
33,
1228,
353,
446,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3359,
907,
12,
4632,
320,
3256,
13,
1216,
1860,
16,
5411,
4297,
310,
21151,
288,
3639,
309,
12,
669,
793,
422,
446,
13,
288,
5411,
368,
15503,
18,
25,
33,
1228,
353,
446,
5... |
frame.Release(); | public OleControlSite(Composite parent, int style, String progId) { super(parent, style); createCOMInterfaces(); // check for licensing appClsid = getClassID(progId); if (appClsid == null) OLE.error(OLE.ERROR_INVALID_CLASSID); int licinfo = getLicenseInfo(appClsid); if (licinfo == 0) { // Open a storage object tempStorage = createTempStorage(); // Create ole object with storage object int[] address = new int[1]; int result = COM.OleCreate(appClsid, COM.IIDIUnknown, COM.OLERENDER_DRAW, null, 0, tempStorage.getAddress(), address); if (result != COM.S_OK) OLE.error(OLE.ERROR_CANNOT_CREATE_OBJECT, result); objIUnknown = new IUnknown(address[0]); } else { // Prepare the ClassFactory int[] ppvObject = new int[1]; try { int result = COM.CoGetClassObject(appClsid, COM.CLSCTX_INPROC_HANDLER | COM.CLSCTX_INPROC_SERVER, 0, COM.IIDIClassFactory2, ppvObject); if (result != COM.S_OK) { OLE.error(OLE.ERROR_CANNOT_ACCESS_CLASSFACTORY, result); } IClassFactory2 classFactory = new IClassFactory2(ppvObject[0]); // Create Com Object ppvObject = new int[1]; result = classFactory.CreateInstanceLic(0, 0, COM.IIDIUnknown, licinfo, ppvObject); classFactory.Release(); if (result != COM.S_OK) OLE.error(OLE.ERROR_CANNOT_CREATE_LICENSED_OBJECT, result); } finally { COM.SysFreeString(licinfo); } objIUnknown = new IUnknown(ppvObject[0]); // Prepare a storage medium ppvObject = new int[1]; if (objIUnknown.QueryInterface(COM.IIDIPersistStorage, ppvObject) == COM.S_OK) { IPersistStorage persist = new IPersistStorage(ppvObject[0]); tempStorage = createTempStorage(); persist.InitNew(tempStorage.getAddress()); persist.Release(); } } // Init sinks try { addObjectReferences(); } catch (SWTError e) { disposeCOMInterfaces(); frame.Release(); throw e; } if (COM.OleRun(objIUnknown.getAddress()) == OLE.S_OK) state= STATE_RUNNING;} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/44d04241b701a3760bfc388747d6cea8273f6b21/OleControlSite.java/clean/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
531,
298,
3367,
4956,
12,
9400,
982,
16,
509,
2154,
16,
514,
11243,
548,
13,
288,
202,
9565,
12,
2938,
16,
2154,
1769,
202,
2640,
4208,
10273,
5621,
202,
759,
866,
364,
328,
335,
773,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
531,
298,
3367,
4956,
12,
9400,
982,
16,
509,
2154,
16,
514,
11243,
548,
13,
288,
202,
9565,
12,
2938,
16,
2154,
1769,
202,
2640,
4208,
10273,
5621,
202,
759,
866,
364,
328,
335,
773,
... | |
mfi.getWidth(0), mfi.getHeight(0), Transparency.BITMASK); | WIDTH, HEIGHT, Transparency.BITMASK); | public void setAvatar (int[] avatar) { CharacterDescriptor cdesc = _ctx.getAvatarMetrics().decodeAvatar(avatar); ActionFrames af; try { af = _ctx.getCharacterManager().getActionFrames(cdesc, "default"); } catch (Exception e) { log.log(Level.WARNING, "Unable to load action frames " + "[cdesc=" + cdesc + "].", e); return; } MultiFrameImage mfi = af.getFrames(0); BufferedImage image = _ctx.getImageManager().createImage( mfi.getWidth(0), mfi.getHeight(0), Transparency.BITMASK); Graphics2D gfx = (Graphics2D)image.createGraphics(); try { mfi.paintFrame(gfx, 0, 0, 0); } finally { gfx.dispose(); } setIcon(new ImageIcon((BufferedImage)image.getScaledInstance( 234, 300, BufferedImage.SCALE_SMOOTH))); } | 8059 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8059/3b9a833dfc65ce063202e4852d926fdc733a16a0/AvatarView.java/clean/src/java/com/threerings/bang/avatar/client/AvatarView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
23999,
261,
474,
8526,
16910,
13,
565,
288,
3639,
6577,
3187,
276,
5569,
273,
389,
5900,
18,
588,
23999,
5653,
7675,
3922,
23999,
12,
19660,
1769,
3639,
4382,
15162,
10073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
23999,
261,
474,
8526,
16910,
13,
565,
288,
3639,
6577,
3187,
276,
5569,
273,
389,
5900,
18,
588,
23999,
5653,
7675,
3922,
23999,
12,
19660,
1769,
3639,
4382,
15162,
10073,
... |
public int getPercentUsed() { return percentUsed; } | public int getPercentUsed() throws IOException { doDF(); return percentUsed; } | public int getPercentUsed() { return percentUsed; } | 50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/fa8ed1c0ee625b2f259787749309594d6792971c/DF.java/clean/src/java/org/apache/hadoop/fs/DF.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
22612,
2998,
6668,
1435,
288,
327,
5551,
6668,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
22612,
2998,
6668,
1435,
288,
327,
5551,
6668,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
CDebugUtils.error( e1.getStatus(), CDebugTarget.this ); | failed( CoreModelMessages.getString( "CDebugTarget.4" ), e1 ); | public void suspend() throws DebugException { if ( !canSuspend() ) return; final CDebugElementState oldState = getState(); setState( CDebugElementState.SUSPENDING ); DebugPlugin.getDefault().asyncExec( new Runnable() { public void run() { try { getCDITarget().suspend(); } catch( CDIException e ) { setState( oldState ); try { targetRequestFailed( e.getMessage(), e ); } catch( DebugException e1 ) { CDebugUtils.error( e1.getStatus(), CDebugTarget.this ); } } } } ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/28b6334ebe9d80ffd8955d6fcc63107f6e6ce125/CDebugTarget.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20413,
1435,
1216,
4015,
503,
288,
202,
202,
430,
261,
401,
4169,
55,
18815,
1435,
262,
1082,
202,
2463,
31,
202,
202,
6385,
385,
2829,
1046,
1119,
26440,
273,
8997,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20413,
1435,
1216,
4015,
503,
288,
202,
202,
430,
261,
401,
4169,
55,
18815,
1435,
262,
1082,
202,
2463,
31,
202,
202,
6385,
385,
2829,
1046,
1119,
26440,
273,
8997,
5621,
... |
public org.quickfix.field.NotifyBrokerOfCredit getNotifyBrokerOfCredit() throws FieldNotFound { org.quickfix.field.NotifyBrokerOfCredit value = new org.quickfix.field.NotifyBrokerOfCredit(); | public quickfix.field.NotifyBrokerOfCredit getNotifyBrokerOfCredit() throws FieldNotFound { quickfix.field.NotifyBrokerOfCredit value = new quickfix.field.NotifyBrokerOfCredit(); | public org.quickfix.field.NotifyBrokerOfCredit getNotifyBrokerOfCredit() throws FieldNotFound { org.quickfix.field.NotifyBrokerOfCredit value = new org.quickfix.field.NotifyBrokerOfCredit(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Allocation.java/clean/src/java/src/quickfix/fix41/Allocation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
9168,
11194,
951,
16520,
336,
9168,
11194,
951,
16520,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
9168,
11194,
951,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
9168,
11194,
951,
16520,
336,
9168,
11194,
951,
16520,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
9168,
11194,
951,
16... |
doModifyDistributionList(args); | mProv.modifyAttrs(lookupDistributionList(args[1]), getMap(args, 2), true); | private boolean execute(String args[]) throws ServiceException, ArgException, IOException { mCommand = lookupCommand(args[0]); if (mCommand == null) return false; switch(mCommand) { case ADD_ACCOUNT_ALIAS: doAddAccountAlias(args); break; case AUTO_COMPLETE_GAL: doAutoCompleteGal(args); break; case CREATE_ACCOUNT: doCreateAccount(args); break; case CREATE_COS: doCreateCos(args); break; case CREATE_DOMAIN: doCreateDomain(args); break; case CREATE_SERVER: doCreateServer(args); break; case EXIT: System.exit(0); break; case GENERATE_DOMAIN_PRE_AUTH_KEY: doGenerateDomainPreAuthKey(args); break; case GENERATE_DOMAIN_PRE_AUTH: doGenerateDomainPreAuth(args); break; case GET_ACCOUNT: doGetAccount(args); break; case GET_ACCOUNT_MEMBERSHIP: doGetAccountMembership(args); break; case GET_ALL_ACCOUNTS: doGetAllAccounts(args); break; case GET_ALL_ADMIN_ACCOUNTS: doGetAllAdminAccounts(args); break; case GET_ALL_CONFIG: doGetAllConfig(args); break; case GET_ALL_COS: doGetAllCos(args); break; case GET_ALL_DOMAINS: doGetAllDomains(args); break; case GET_ALL_SERVERS: doGetAllServers(args); break; case GET_CONFIG: doGetConfig(args); break; case GET_COS: doGetCos(args); break; case GET_DISTRIBUTION_LIST_MEMBERSHIP: doGetDistributionListMembership(args); break; case GET_DOMAIN: doGetDomain(args); break; case GET_SERVER: doGetServer(args); break; case HELP: doHelp(args); break; case MODIFY_ACCOUNT: doModifyAccount(args); break; case MODIFY_COS: doModifyCos(args); break; case MODIFY_CONFIG: doModifyConfig(args); break; case MODIFY_DOMAIN: doModifyDomain(args); break; case MODIFY_SERVER: doModifyServer(args); break; case DELETE_ACCOUNT: doDeleteAccount(args); break; case DELETE_COS: doDeleteCos(args); break; case DELETE_DOMAIN: doDeleteDomain(args); break; case DELETE_SERVER: doDeleteServer(args); break; case REMOVE_ACCOUNT_ALIAS: doRemoveAccountAlias(args); break; case RENAME_ACCOUNT: doRenameAccount(args); break; case RENAME_COS: doRenameCos(args); break; case SET_ACCOUNT_COS: doSetAccountCos(args); break; case SEARCH_ACCOUNTS: doSearchAccounts(args); break; case SEARCH_GAL: doSearchGal(args); break; case SYNC_GAL: doSyncGal(args); break; case SET_PASSWORD: doSetPassword(args); break; case CREATE_DISTRIBUTION_LIST: doCreateDistributionList(args); break; case CREATE_DISTRIBUTION_LISTS_BULK: doCreateDistributionListsBulk(args); break; case GET_ALL_DISTRIBUTION_LISTS: doGetAllDistributionLists(args); break; case GET_DISTRIBUTION_LIST: doGetDistributionList(args); break; case MODIFY_DISTRIBUTION_LIST: doModifyDistributionList(args); break; case DELETE_DISTRIBUTION_LIST: doDeleteDistributionList(args); break; case ADD_DISTRIBUTION_LIST_MEMBER: doAddDistributionListMember(args); break; case REMOVE_DISTRIBUTION_LIST_MEMBER: doRemoveDistributionListMember(args); break; case CREATE_BULK_ACCOUNTS: doCreateAccountsBulk(args); break; case ADD_DISTRIBUTION_LIST_ALIAS: doAddDistributionListAlias(args); break; case REMOVE_DISTRIBUTION_LIST_ALIAS: doRemoveDistributionListAlias(args); break; case RENAME_DISTRIBUTION_LIST: doRenameDistributionList(args); break; case CREATE_CALENDAR_RESOURCE: doCreateCalendarResource(args); break; case DELETE_CALENDAR_RESOURCE: doDeleteCalendarResource(args); break; case MODIFY_CALENDAR_RESOURCE: doModifyCalendarResource(args); break; case RENAME_CALENDAR_RESOURCE: doRenameCalendarResource(args); break; case GET_CALENDAR_RESOURCE: doGetCalendarResource(args); break; case GET_ALL_CALENDAR_RESOURCES: doGetAllCalendarResources(args); break; case SEARCH_CALENDAR_RESOURCES: doSearchCalendarResources(args); break; case INIT_NOTEBOOK: importNotebook(args, true); break; case IMPORT_NOTEBOOK: importNotebook(args, false); break; case SOAP: // HACK FOR NOW SoapProvisioning sp = new SoapProvisioning(); sp.soapSetURI("https://localhost:7071"+ZimbraServlet.ADMIN_SERVICE_URI); sp.soapZimbraAdminAuthenticate(); mProv = sp; break; case LDAP: // HACK FOR NOW mProv = Provisioning.getInstance(); break; default: return false; } return true; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/9c508145dbd57cc91e6cd9ddad783a1ae1bf751d/ProvUtil.java/buggy/ZimbraServer/src/java/com/zimbra/cs/account/ProvUtil.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,
3639,
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,
3639,
312,
2189,
273,
3689,
2189,
12,
1968,
63,
20,
19226,
7734,
309,
261,
81,
2189,
422,
446,
13,
... |
protected void webConnectorRemoval(WebConnector connector) { | protected void webConnectorRemoval(WebConnector connector) { | protected void webConnectorRemoval(WebConnector connector) { } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/322dc8fc66270e633f79cfd74ebcb21c5def0b49/AbstractWebContainer.java/clean/modules/web/src/java/org/apache/geronimo/web/AbstractWebContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3311,
7487,
24543,
12,
4079,
7487,
8703,
13,
565,
288,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
918,
3311,
7487,
24543,
12,
4079,
7487,
8703,
13,
565,
288,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ignoreEscape = false; | ignoreEscape = true; | public ExtendedPatternRule(String startSequence, String endSequence, IToken token, char escapeCharacter, boolean breaksOnEOL, int noMaxChar, String rejectDelimWithFirstChar, String[] groupContent, boolean bracketMatch, int noMultipleEndTag, boolean requireEndTag, boolean CaseInSensitive, boolean isDynamicTagging, String countDelimterChars, String beforeTag, String afterTag, boolean requireBeforeWhitespace, boolean requireAfterWhitespace, String optinalModifiers, IWhitespaceDetector whiteSpace) { //the last parameter makes a default handling, //i.e. if the End-Tag is missing => mark till the end of File super (startSequence, endSequence, token, escapeCharacter, breaksOnEOL,true); this.isBracketMatch=bracketMatch; if (isBracketMatch) { if (endSequence.indexOf("}") >= 0) { closingBracket = '}'; openingBracket = '{'; }else if (endSequence.indexOf(")") >= 0) { closingBracket = ')'; openingBracket = '('; }else if (endSequence.indexOf("]") >= 0) { closingBracket = ']'; openingBracket = '['; }else if (endSequence.indexOf(">") >= 0) { closingBracket = '>'; openingBracket = '<'; } } this.groupContent = groupContent; if (groupContent == null) { isExistingGroup = false; } else { isExistingGroup = true; } this.requireEndTag = requireEndTag; this.noDynamicDelimiterChars = noMaxChar; isCaseInSensitive = CaseInSensitive; //TODO check if it really required, i.e. lowercase = uppercase dynamicEndTerminate = endSequence; this.isDynamicTagging = isDynamicTagging; if (isDynamicTagging) { isCaseInSensitive = false; //case-sensitive is nonsense with dynamic Tags } if (countDelimterChars.length() == 0) { ignoreDelimAsLetterOrDigit = false; rquDelimAsNonInteger = false; rquDelimNonEscape = false; transformEmptyDelimiter = false; acceptWhiteSpaceBefore = true; ignoreEscape = false; } else { //works if (countDelimterChars.indexOf(":NONINTEGER:") >= 0) { rquDelimAsNonInteger = true; } else { rquDelimAsNonInteger = false; } //should work if (countDelimterChars.indexOf(":NO_LETTER_OR_DIGITS:") >= 0) { ignoreDelimAsLetterOrDigit = true; } else { ignoreDelimAsLetterOrDigit = false; } //works if (countDelimterChars.indexOf(":ESCAPE_AND_DELIM_AS_ONE:") >= 0) { rquDelimNonEscape = true; ignoreEscape = false; } else { rquDelimNonEscape = false; ignoreEscape = false; } //works if (countDelimterChars.indexOf(":EMPTY_AS_LINEFEED:") >= 0) { transformEmptyDelimiter = true; } else { transformEmptyDelimiter = false; } //works if (countDelimterChars.indexOf(":NO_WHITESPACE_BEFORE_DELIM:") >= 0) { acceptWhiteSpaceBefore = false; } else { acceptWhiteSpaceBefore = true; } } this.requireBeforeTag = beforeTag; this.requireAfterTag = afterTag; this.requireBeforeWhitespace = requireBeforeWhitespace ; this.requireAfterWhitespace = requireAfterWhitespace; this.optinalModifiers = optinalModifiers; this.rejectDelimWithFirstChar = rejectDelimWithFirstChar; if (isCaseInSensitive) { //rewrite the values for caseInSensitive!!! fStartSequence= startSequence.toLowerCase().toCharArray(); fEndSequence= (endSequence == null ? new char[0] : endSequence.toLowerCase().toCharArray()); } this.noMultipleEndTag = noMultipleEndTag; if (noMultipleEndTag > 1 || isDynamicTagging) { isMultiple = true; } this.whiteSpace= whiteSpace; } | 48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/6a72a5a6b98d78f1102ab0b65322da07b67e324f/ExtendedPatternRule.java/buggy/org.epic.ext.cbg.editor/src/cbg/editor/rules/ExtendedPatternRule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14094,
3234,
2175,
12,
780,
787,
4021,
16,
514,
679,
4021,
16,
467,
1345,
1147,
16,
3196,
4202,
1149,
4114,
7069,
16,
1250,
16217,
1398,
5842,
16,
509,
1158,
2747,
2156,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14094,
3234,
2175,
12,
780,
787,
4021,
16,
514,
679,
4021,
16,
467,
1345,
1147,
16,
3196,
4202,
1149,
4114,
7069,
16,
1250,
16217,
1398,
5842,
16,
509,
1158,
2747,
2156,
16,
5... |
jjCheckNAddStates(68, 70); | jjCheckNAddStates(62, 64); | private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 36; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x3ff000000000000L & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(23); } else if ((0x100002600L & l) != 0L) { if (kind > 26) kind = 26; jjCheckNAdd(4); } else if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(33, 34); } else if (curChar == 46) jjstateSet[jjnewStateCnt++] = 27; else if (curChar == 45) jjCheckNAdd(23); else if (curChar == 39) jjCheckNAddStates(68, 70); else if (curChar == 34) jjCheckNAddStates(71, 73); else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 4: if ((0x100002600L & l) == 0L) break; if (kind > 26) kind = 26; jjCheckNAdd(4); break; case 5: if (curChar == 34) jjCheckNAddStates(71, 73); break; case 6: if ((0xfffffffbffffffffL & l) != 0L) jjCheckNAddStates(71, 73); break; case 7: if (curChar == 34 && kind > 27) kind = 27; break; case 9: if ((0x8400000000L & l) != 0L) jjCheckNAddStates(71, 73); break; case 10: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(74, 77); break; case 11: if ((0xff000000000000L & l) != 0L) jjCheckNAddStates(71, 73); break; case 12: if ((0xf000000000000L & l) != 0L) jjstateSet[jjnewStateCnt++] = 13; break; case 13: if ((0xff000000000000L & l) != 0L) jjCheckNAdd(11); break; case 14: if (curChar == 32) jjAddStates(78, 79); break; case 15: if (curChar == 10) jjCheckNAddStates(71, 73); break; case 16: if (curChar == 39) jjCheckNAddStates(68, 70); break; case 17: if ((0xffffff7fffffffffL & l) != 0L) jjCheckNAddStates(68, 70); break; case 19: if (curChar == 32) jjAddStates(13, 14); break; case 20: if (curChar == 10) jjCheckNAddStates(68, 70); break; case 21: if (curChar == 39 && kind > 27) kind = 27; break; case 22: if (curChar == 45) jjCheckNAdd(23); break; case 23: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(23); break; case 25: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 59) kind = 59; jjstateSet[jjnewStateCnt++] = 25; break; case 26: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 27; break; case 30: if (curChar == 36 && kind > 13) kind = 13; break; case 32: if (curChar == 36) jjCheckNAddTwoStates(33, 34); break; case 34: if (curChar == 33 && kind > 14) kind = 14; break; case 35: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(33, 34); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 59) kind = 59; jjCheckNAdd(25); } else if (curChar == 92) jjCheckNAddStates(80, 83); break; case 1: if (kind > 16) kind = 16; break; case 6: if ((0xffffffffefffffffL & l) != 0L) jjCheckNAddStates(71, 73); break; case 8: if (curChar == 92) jjAddStates(84, 88); break; case 9: if ((0x14404410000000L & l) != 0L) jjCheckNAddStates(71, 73); break; case 17: jjAddStates(68, 70); break; case 18: if (curChar == 92) jjAddStates(13, 14); break; case 24: case 25: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 59) kind = 59; jjCheckNAdd(25); break; case 27: if ((0x7fffffe07fffffeL & l) != 0L && kind > 60) kind = 60; break; case 28: if (curChar == 92) jjCheckNAddStates(80, 83); break; case 29: if (curChar == 92) jjCheckNAddTwoStates(29, 30); break; case 31: if (curChar == 92) jjCheckNAddTwoStates(31, 32); break; case 33: if (curChar == 92) jjAddStates(89, 90); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; case 6: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(71, 73); break; case 17: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) jjAddStates(68, 70); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 36 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/89173502837b4d67a69cd30d0b93cf47ed84c8cc/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
21,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
509,
10684,
7607,
50,
507,
67,
21,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... |
{ | { | public int write (ByteBuffer src) throws IOException { int w = 0; if (buf == null) { throw new EOFException ("file not mapped"); } while (src.hasRemaining ()) { buf.put (src.get ()); w++; } return w; } | 27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/8cef25e737d97238751152631de70237a2aabaa4/FileChannelImpl.java/buggy/libjava/gnu/java/nio/FileChannelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1045,
261,
12242,
1705,
13,
1216,
1860,
225,
288,
565,
509,
341,
273,
374,
31,
565,
309,
261,
4385,
422,
446,
13,
202,
565,
288,
3639,
604,
394,
30051,
7566,
768,
486,
5525,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1045,
261,
12242,
1705,
13,
1216,
1860,
225,
288,
565,
509,
341,
273,
374,
31,
565,
309,
261,
4385,
422,
446,
13,
202,
565,
288,
3639,
604,
394,
30051,
7566,
768,
486,
5525,
... |
public void setExtensionProperty(String name, String value) { dataSet.setExtensionProperty( name, value ); | public void setExtensionProperty(String name, String value) { dataSet.setExtensionProperty(name, value); | public void setExtensionProperty(String name, String value) { dataSet.setExtensionProperty( name, value ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/1f65f0b94ecbb94bb9445ab80ed750dc00b51917/DataSetInstance.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/script/internal/instance/DataSetInstance.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3625,
1396,
12,
780,
508,
16,
514,
460,
13,
202,
95,
202,
202,
892,
694,
18,
542,
3625,
1396,
12,
508,
16,
460,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
3625,
1396,
12,
780,
508,
16,
514,
460,
13,
202,
95,
202,
202,
892,
694,
18,
542,
3625,
1396,
12,
508,
16,
460,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
... |
StaticEntity.getClient().processResult( new AdventureResult( itemID, 0 - quantity ) ); | StaticEntity.getClient().processResult( new AdventureResult( itemId, 0 - quantity ) ); | public static boolean processRequest( String urlString ) { // First, delegate subclasses, if it's a subclass request. if ( urlString.indexOf( "starchart.php" ) != -1 ) return StarChartRequest.processRequest( urlString ); if ( urlString.indexOf( "action=makepixel" ) != -1 ) return PixelRequest.processRequest( urlString ); if ( urlString.indexOf( "action=tinksomething" ) != -1 ) return TinkerRequest.processRequest( urlString ); if ( urlString.indexOf( "action=makepaste" ) != -1 ) return CombineMeatRequest.processRequest( urlString ); // Now that we know it's not a special subclass instance, // all we do is parse out the ingredients which were used // and then print the attempt to the screen. boolean usesTurns = false; boolean isCreationURL = false; StringBuffer command = new StringBuffer(); Matcher itemMatcher = ITEMID_PATTERN.matcher( urlString ); Matcher quantityMatcher = QUANTITY_PATTERN.matcher( urlString ); if ( urlString.indexOf( "combine.php" ) != -1 ) { isCreationURL = true; command.append( "Combine " ); } else if ( urlString.indexOf( "cocktail.php" ) != -1 ) { isCreationURL = true; command.append( "Mix " ); usesTurns = !KoLCharacter.hasBartender(); } else if ( urlString.indexOf( "cook.php" ) != -1 ) { isCreationURL = true; command.append( "Cook " ); usesTurns = !KoLCharacter.hasChef(); } else if ( urlString.indexOf( "smith.php" ) != -1 ) { isCreationURL = urlString.indexOf( "action=pulverize" ) == -1; command.append( "Smith " ); usesTurns = urlString.indexOf( "action=pulverize" ) == -1; } else if ( urlString.indexOf( "jewelry.php" ) != -1 ) { isCreationURL = true; command.append( "Ply " ); usesTurns = true; } else if ( urlString.indexOf( "action=stillbooze" ) != -1 || urlString.indexOf( "action=stillfruit" ) != -1 ) { isCreationURL = true; command.append( "Distill " ); usesTurns = false; } else if ( urlString.indexOf( "action=wokcook" ) != -1 ) { isCreationURL = true; command.append( "Wok " ); usesTurns = true; } else if ( urlString.indexOf( "action=malussmash" ) != -1 ) { isCreationURL = true; command.append( "Pulverize " ); usesTurns = false; } if ( !isCreationURL ) return false; boolean needsPlus = false; int quantity = quantityMatcher.find() ? StaticEntity.parseInt( quantityMatcher.group(1) ) : 1; while ( isCreationURL && itemMatcher.find() ) { if ( needsPlus ) command.append( " + " ); int itemID = StaticEntity.parseInt( itemMatcher.group(1) ); command.append( quantity ); command.append( ' ' ); command.append( TradeableItemDatabase.getItemName( itemID ) ); StaticEntity.getClient().processResult( new AdventureResult( itemID, 0 - quantity ) ); needsPlus = true; } if ( urlString.indexOf( "combine.php" ) != -1 ) StaticEntity.getClient().processResult( new AdventureResult( MEAT_PASTE, 0 - quantity ) ); if ( usesTurns ) command.insert( 0, "[" + KoLCharacter.getTotalTurnsUsed() + "] " ); KoLmafia.getSessionStream().println( command.toString() ); return true; } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/db652071b06715a4456f702f081fbe5b47aa5a70/ItemCreationRequest.java/clean/src/net/sourceforge/kolmafia/ItemCreationRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
1207,
691,
12,
514,
29374,
262,
202,
95,
202,
202,
759,
5783,
16,
7152,
15320,
16,
309,
518,
1807,
279,
10177,
590,
18,
202,
202,
430,
261,
29374,
18,
31806,
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,
482,
760,
1250,
1207,
691,
12,
514,
29374,
262,
202,
95,
202,
202,
759,
5783,
16,
7152,
15320,
16,
309,
518,
1807,
279,
10177,
590,
18,
202,
202,
430,
261,
29374,
18,
31806,
12,
... |
private void genConcat(String typeName) { String decl = typeName + " " + prefix + "concat" + typeName + "(" + typeName + " arg0, " + typeName + " arg1)"; | private void genConcat(String typeId, String typeName) { String decl = typeName + " " + prefix + "concat" + typeId + "(" + typeName + " arg0, " + typeName + " arg1)"; | private void genConcat(String typeName) { String decl = typeName + " " + prefix + "concat" + typeName + "(" + typeName + " arg0, " + typeName + " arg1)"; hprintln(decl + ";"); println(decl + " {"); println(" return (" + typeName + ") ATconcat((ATermList) arg0, (ATermList) arg1);"); println("}"); } | 3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/d20d05536ebcf61c8c082073d1885d0fe9736ee5/APIGenerator.java/buggy/apigen/src/apigen/gen/c/APIGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
15113,
12,
780,
8173,
13,
288,
202,
282,
514,
3496,
273,
8173,
397,
315,
315,
397,
1633,
397,
315,
16426,
6,
397,
8173,
397,
12452,
397,
8173,
397,
315,
1501,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3157,
15113,
12,
780,
8173,
13,
288,
202,
282,
514,
3496,
273,
8173,
397,
315,
315,
397,
1633,
397,
315,
16426,
6,
397,
8173,
397,
12452,
397,
8173,
397,
315,
1501,
20,
... |
rule.setProperty( HighlightRule.COLOR_MEMBER, new Integer( colorValue ) ); | rule.setProperty( HighlightRule.COLOR_MEMBER, new Integer( colorValue ) ); | protected void okPressed( ) { try { String familyValue = getRawFontFamily( ); String sizeValue = getRawFontSize( ); int colorValue = DEUtil.getRGBInt( color.getRGB( ) ); int backColorValue = DEUtil.getRGBInt( backColor.getRGB( ) ); String italicValue = italic.getSelection( ) ? DesignChoiceConstants.FONT_STYLE_ITALIC : DesignChoiceConstants.FONT_STYLE_NORMAL; String weightValue = bold.getSelection( ) ? DesignChoiceConstants.FONT_WEIGHT_BOLD : DesignChoiceConstants.FONT_WEIGHT_NORMAL; String underlineValue = underline.getSelection( ) ? DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE : DesignChoiceConstants.TEXT_UNDERLINE_NONE; String lingthroughValue = linethrough.getSelection( ) ? DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH : DesignChoiceConstants.TEXT_LINE_THROUGH_NONE; // provider.setTestExpression( DEUtil.resolveNull( // expression.getText( ) ) ); if ( handle == null ) { HighlightRule rule = StructureFactory.createHighlightRule( ); rule.setProperty( HighlightRule.OPERATOR_MEMBER, DEUtil.resolveNull( getValueForOperator( operator.getText( ) ) ) ); rule.setProperty( HighlightRule.VALUE1_MEMBER, DEUtil.resolveNull( value1.getText( ) ) ); rule.setProperty( HighlightRule.VALUE2_MEMBER, DEUtil.resolveNull( value2.getText( ) ) ); /** * Sets our necessary style properties. */ if ( color.getRGB( ) != null ) { rule.setProperty( HighlightRule.COLOR_MEMBER, new Integer( colorValue ) ); } if ( backColor.getRGB( ) != null ) { rule.setProperty( HighlightRule.BACKGROUND_COLOR_MEMBER, new Integer( backColorValue ) ); } if ( familyValue != null ) { rule.setProperty( HighlightRule.FONT_FAMILY_MEMBER, familyValue ); } if ( sizeValue != null ) { rule.setProperty( HighlightRule.FONT_SIZE_MEMBER, sizeValue ); } if ( isItalicChanged ) { rule.setProperty( HighlightRule.FONT_STYLE_MEMBER, italicValue ); } if ( isBoldChanged ) { rule.setProperty( HighlightRule.FONT_WEIGHT_MEMBER, weightValue ); } if ( isLinethroughChanged ) { rule.setProperty( HighlightRule.TEXT_LINE_THROUGH_MEMBER, lingthroughValue ); } if ( isUnderlineChanged ) { rule.setProperty( HighlightRule.TEXT_UNDERLINE_MEMBER, underlineValue ); } // set test expression into highlight rule. rule.setTestExpression( DEUtil.resolveNull( expression.getText( ) ) ); handle = provider.doAddItem( rule, handleCount ); } else { handle.setOperator( DEUtil.resolveNull( getValueForOperator( operator.getText( ) ) ) ); handle.setValue1( DEUtil.resolveNull( value1.getText( ) ) ); if ( handle.getOperator( ) .equals( DesignChoiceConstants.MAP_OPERATOR_BETWEEN ) || handle.getOperator( ) .equals( DesignChoiceConstants.MAP_OPERATOR_NOT_BETWEEN ) ) { handle.setValue2( DEUtil.resolveNull( value2.getText( ) ) ); } handle.getFontFamilyHandle( ) .setStringValue( DEUtil.resolveNull( familyValue ) ); handle.getFontSize( ) .setStringValue( DEUtil.resolveNull( sizeValue ) ); if ( color.getRGB( ) != null ) { handle.getColor( ).setRGB( colorValue ); } else { handle.getColor( ).setValue( null ); } if ( backColor.getRGB( ) != null ) { handle.getBackgroundColor( ).setRGB( backColorValue ); } else { handle.getBackgroundColor( ).setValue( null ); } if ( isItalicChanged ) { handle.setFontStyle( italicValue ); } if ( isBoldChanged ) { handle.setFontWeight( weightValue ); } if ( isUnderlineChanged ) { handle.setTextUnderline( underlineValue ); } if ( isLinethroughChanged ) { handle.setTextLineThrough( lingthroughValue ); } // set test expression into highlight rule. handle.setTestExpression( DEUtil.resolveNull( expression.getText( ) ) ); } } catch ( Exception e ) { WidgetUtil.processError( getShell( ), e ); } super.okPressed( ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e2b6eafcb11806e8cec2333182f81de479004998/HighlightRuleBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HighlightRuleBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
780,
6755,
620,
273,
10547,
5711,
9203,
12,
11272,
1082,
202,
780,
963,
620,
273,
10547,
22688,
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,
1117,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
780,
6755,
620,
273,
10547,
5711,
9203,
12,
11272,
1082,
202,
780,
963,
620,
273,
10547,
22688,
12... |
this(parent, id, (IModel)null, type); | this(parent, id, (IModel<T>)null); | public AutoCompleteTextField(MarkupContainer parent, String id, Class type) { this(parent, id, (IModel)null, type); } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/16ffd3a5c25047e43afdef2542e8e2c59c0d6f42/AutoCompleteTextField.java/buggy/wicket-extensions/src/java/wicket/extensions/ajax/markup/html/autocomplete/AutoCompleteTextField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8064,
6322,
16157,
12,
13111,
2170,
982,
16,
514,
612,
16,
1659,
618,
13,
202,
95,
202,
202,
2211,
12,
2938,
16,
612,
16,
261,
45,
1488,
13,
2011,
16,
618,
1769,
202,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8064,
6322,
16157,
12,
13111,
2170,
982,
16,
514,
612,
16,
1659,
618,
13,
202,
95,
202,
202,
2211,
12,
2938,
16,
612,
16,
261,
45,
1488,
13,
2011,
16,
618,
1769,
202,
97,
... |
BufferedReader inbound = null; BufferedOutputStream outbound = null; | InputStream inbound = client.getInputStream(); OutputStream outbound = client.getOutputStream(); | public void serviceClient(Socket client) throws IllegalArgumentException, IOException { // Check argument MandatoryArgumentChecker.check("client", client); BufferedReader inbound = null; BufferedOutputStream outbound = null; try { // Acquire the streams for IO/* TODO inbound = new BufferedReader(new InputStreamReader(client.getInputStream())); outbound = new BufferedOutputStream(client.getOutputStream()); httpQuery(inbound, outbound);*/ httpQuery(client.getInputStream(), client.getOutputStream()); } finally{ // Clean up if (inbound != null) { try { inbound.close(); } catch (Throwable exception) { // ignore } } if (outbound != null) { try { outbound.close(); } catch (Throwable exception) { // ignore } } } } | 45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/d4ac72dd47bc809cfde567471e5967b8059dc162/HTTPServletHandler.java/buggy/src/java-common/org/xins/common/servlet/container/HTTPServletHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1156,
1227,
12,
4534,
1004,
13,
282,
1216,
2754,
16,
1860,
288,
1377,
368,
2073,
1237,
1377,
490,
10018,
1379,
8847,
18,
1893,
2932,
2625,
3113,
1004,
1769,
1377,
10633,
4202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1156,
1227,
12,
4534,
1004,
13,
282,
1216,
2754,
16,
1860,
288,
1377,
368,
2073,
1237,
1377,
490,
10018,
1379,
8847,
18,
1893,
2932,
2625,
3113,
1004,
1769,
1377,
10633,
4202,
... |
updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); disabledColor = textComponent.getDisabledTextColor(); selectedColor = Color.WHITE; Rectangle rect = s.getBounds(); int lineHeight = metrics.getHeight(); int end = getEndOffset(); int currStart = getStartOffset(); int currEnd; while (currStart < end) { currEnd = calculateBreakPosition(currStart, end); drawLine(currStart, currEnd, g, rect.x, rect.y); rect.y += lineHeight; if (currEnd == currStart) currStart ++; else currStart = currEnd; } | public void paint(Graphics g, Shape s) { // TODO Auto-generated method stub } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/74171de2560e91a8fc81940ffc40e047ca41f4a0/WrappedPlainView.java/buggy/core/src/classpath/javax/javax/swing/text/WrappedPlainView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1089,
5653,
5621,
804,
1528,
1841,
977,
1841,
273,
261,
46,
1528,
1841,
13,
9272,
5621,
225,
314,
18,
542,
5711,
12,
955,
1841,
18,
588,
5711,
10663,
3170,
2957,
273,
977,
1841,
18,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1089,
5653,
5621,
804,
1528,
1841,
977,
1841,
273,
261,
46,
1528,
1841,
13,
9272,
5621,
225,
314,
18,
542,
5711,
12,
955,
1841,
18,
588,
5711,
10663,
3170,
2957,
273,
977,
1841,
18,
588... | |
Iterator itr = perspList.iterator(); while (itr.hasNext()) { Perspective perspective = (Perspective) itr.next(); window.removePerspectiveShortcut(perspective.getDesc(), this); } | protected void onDeactivate() { if (activePart != null) { deactivatePart(activePart); actionSwitcher.updateActivePart(null); firePartDeactivated(activePart); } actionSwitcher.updateTopEditor(null); lastActiveEditor = null; if (getActivePerspective() != null) getActivePerspective().onDeactivate(); composite.setVisible(false); Iterator itr = perspList.iterator(); while (itr.hasNext()) { Perspective perspective = (Perspective) itr.next(); window.removePerspectiveShortcut(perspective.getDesc(), this); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7492b2d89e421d819724566c58a91d81b97ce989/WorkbenchPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
603,
758,
10014,
1435,
288,
3639,
309,
261,
3535,
1988,
480,
446,
13,
288,
5411,
18790,
1988,
12,
3535,
1988,
1769,
5411,
1301,
10200,
264,
18,
2725,
3896,
1988,
12,
2011,
1769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
603,
758,
10014,
1435,
288,
3639,
309,
261,
3535,
1988,
480,
446,
13,
288,
5411,
18790,
1988,
12,
3535,
1988,
1769,
5411,
1301,
10200,
264,
18,
2725,
3896,
1988,
12,
2011,
1769... | |
if ( field == null && componentClass.getSuperclass() != Object.class ) | if ( fields.size() == 1 ) | protected Field getFieldByTypeIncludingSuperclasses( Class componentClass, Class type, ComponentDescriptor componentDescriptor ) throws CompositionException { Field field = null; Class arrayType = Array.newInstance( type, 0 ).getClass(); Field[] fields = componentClass.getDeclaredFields(); for ( int i = 0; i < fields.length; i++ ) { Class fieldType = fields[i].getType(); if ( fieldType.isAssignableFrom( type ) || fieldType.isAssignableFrom( arrayType ) ) { field = fields[i]; break; } } if ( field == null && componentClass.getSuperclass() != Object.class ) { field = getFieldByTypeIncludingSuperclasses( componentClass.getSuperclass(), type, componentDescriptor ); } return field; } | 55908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55908/e47e9b16b40acaadbd1219c33918ca40312bacd9/FieldComponentComposer.java/buggy/plexus-container-default.old/src/java/org/codehaus/plexus/component/composition/FieldComponentComposer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2286,
5031,
14145,
382,
18596,
8051,
4701,
12,
1659,
1794,
797,
16,
4766,
7682,
1659,
618,
16,
4766,
7682,
5435,
3187,
1794,
3187,
262,
3639,
1216,
1286,
3276,
503,
565,
288,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
2286,
5031,
14145,
382,
18596,
8051,
4701,
12,
1659,
1794,
797,
16,
4766,
7682,
1659,
618,
16,
4766,
7682,
5435,
3187,
1794,
3187,
262,
3639,
1216,
1286,
3276,
503,
565,
288,
3639,
... |
public HTTPConnection(URL url) throws ProtocolNotSuppException | public HTTPConnection(Applet applet) throws ProtocolNotSuppException | public HTTPConnection(URL url) throws ProtocolNotSuppException { this(url.getProtocol(), url.getHost(), url.getPort()); } | 9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/7f665ef90c2c1ed8c2c675e697d41447e89ef17f/HTTPConnection.java/buggy/HTTPClient/HTTPConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2239,
1952,
12,
23696,
21853,
13,
225,
1216,
4547,
1248,
3088,
84,
503,
565,
288,
202,
2211,
12,
718,
18,
588,
5752,
9334,
880,
18,
588,
2594,
9334,
880,
18,
588,
2617,
10663,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2239,
1952,
12,
23696,
21853,
13,
225,
1216,
4547,
1248,
3088,
84,
503,
565,
288,
202,
2211,
12,
718,
18,
588,
5752,
9334,
880,
18,
588,
2594,
9334,
880,
18,
588,
2617,
10663,
565... |
return m_currentInterface.addService(svcName, serviceId); | return getInterface(nodeId, ipAddr).addService(svcName, serviceId); | public MockService addService(String svcName) { int serviceId = getServiceId(svcName); return m_currentInterface.addService(svcName, serviceId); } | 48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/d8a6e8e3b2b216405ee55674bae0dbc50149fe3f/MockNetwork.java/buggy/src/services/org/opennms/netmgt/mock/MockNetwork.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7867,
1179,
527,
1179,
12,
780,
7538,
461,
13,
288,
3639,
509,
17130,
273,
6373,
548,
12,
30992,
461,
1769,
3639,
327,
336,
1358,
12,
2159,
548,
16,
2359,
3178,
2934,
1289,
1179,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7867,
1179,
527,
1179,
12,
780,
7538,
461,
13,
288,
3639,
509,
17130,
273,
6373,
548,
12,
30992,
461,
1769,
3639,
327,
336,
1358,
12,
2159,
548,
16,
2359,
3178,
2934,
1289,
1179,
... |
if (keyCode == e.VK_UNDEFINED || keyCode == e.VK_CAPS_LOCK || keyCode == e.VK_SHIFT || keyCode == e.VK_ALT || keyCode == e.VK_ALT_GRAPH || keyCode == e.VK_CONTROL | if (keyCode == KeyEvent.VK_UNDEFINED || keyCode == KeyEvent.VK_CAPS_LOCK || keyCode == KeyEvent.VK_SHIFT || keyCode == KeyEvent.VK_ALT || keyCode == KeyEvent.VK_ALT_GRAPH || keyCode == KeyEvent.VK_CONTROL | void processVTKeyPressed(KeyEvent e){ displayInfo(e); int keyCode = e.getKeyCode(); if (isLinux && keyCode == e.VK_ALT_GRAPH) { isAltGr = true; } // be careful with the control key if (keyCode == e.VK_UNDEFINED || keyCode == e.VK_CAPS_LOCK || keyCode == e.VK_SHIFT || keyCode == e.VK_ALT || keyCode == e.VK_ALT_GRAPH || keyCode == e.VK_CONTROL ) { return; } // be careful with the control key !!!!!! if (!e.isAltDown() || !e.isShiftDown() || !e.isControlDown() || keyCode != KeyEvent.VK_CONTROL && // be careful about removing this line !e.isActionKey()) {// if (keyCode == KeyEvent.VK_ESCAPE ||// keyCode == KeyEvent.VK_CONTROL ||// keyCode == KeyEvent.VK_BACK_SPACE) {// displayInfo(e,"Pressed added"); keyevent = e; dialog.setVisible(false); dialog.dispose();// } } } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/07bb3e36537d736453880eae077a576d2dd55fe2/KeyGetter13.java/clean/tn5250j/src/org/tn5250j/keyboard/configure/KeyGetter13.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
1207,
58,
56,
653,
24624,
12,
653,
1133,
425,
15329,
1377,
2562,
966,
12,
73,
1769,
1377,
509,
16369,
273,
425,
18,
588,
653,
1085,
5621,
1377,
309,
261,
291,
19475,
597,
16369,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
1207,
58,
56,
653,
24624,
12,
653,
1133,
425,
15329,
1377,
2562,
966,
12,
73,
1769,
1377,
509,
16369,
273,
425,
18,
588,
653,
1085,
5621,
1377,
309,
261,
291,
19475,
597,
16369,
42... |
String id = element.getAttribute(CAT_ATT_ID); String name = element.getAttribute(CAT_ATT_NAME); if (id==null) { logMissingAttribute(element, CAT_ATT_ID); | try { Category category = new Category(element); capabilityRegistry.addCategory(category); } catch (WorkbenchException e) { WorkbenchPlugin.log("Unable to create capability category. ", e.getStatus()); | private boolean readCategory(IConfigurationElement element) { String id = element.getAttribute(CAT_ATT_ID); String name = element.getAttribute(CAT_ATT_NAME); if (id==null) { logMissingAttribute(element, CAT_ATT_ID); } if (name==null) { logMissingAttribute(element, CAT_ATT_NAME); } CapabilityCategory category = new CapabilityCategory(id, name); capabilityRegistry.addCategory(category); return true; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/440f5144e9ac626abee93b29d254622715027c3c/CapabilityRegistryReader.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/registry/CapabilityRegistryReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
855,
4457,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
780,
612,
273,
930,
18,
588,
1499,
12,
14130,
67,
789,
56,
67,
734,
1769,
202,
202,
780,
508,
273,
930,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
855,
4457,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
780,
612,
273,
930,
18,
588,
1499,
12,
14130,
67,
789,
56,
67,
734,
1769,
202,
202,
780,
508,
273,
930,
18,
5... |
inputSource = new InputSource( context.getServletContext().getResourceAsStream(resourcePath)); | InputStream stream = context.getServletContext().getResourceAsStream(resourcePath); if (stream == null) { throw new IllegalArgumentException (sm.getString("contextConfig.tldResourcePath", resourcePath)); } inputSource = new InputSource(stream); | private void tldScanTld(String resourcePath) throws Exception { if (log.isDebugEnabled()) { log.debug(" Scanning TLD at resource path '" + resourcePath + "'"); } InputSource inputSource = null; try { inputSource = new InputSource( context.getServletContext().getResourceAsStream(resourcePath)); if (inputSource == null) { throw new IllegalArgumentException (sm.getString("contextConfig.tldResourcePath", resourcePath)); } tldScanStream(inputSource); } catch (Exception e) { throw new ServletException (sm.getString("contextConfig.tldFileException", resourcePath, context.getPath()), e); } } | 46196 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46196/a072883bc59691a1efd78e9863bb7ef9b90b81e9/TldConfig.java/buggy/java/org/apache/catalina/startup/TldConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
23373,
7972,
56,
1236,
12,
780,
15467,
13,
1216,
1185,
288,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
5411,
613,
18,
4148,
2932,
2850,
10903,
399,
12069,
622,
1058... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23373,
7972,
56,
1236,
12,
780,
15467,
13,
1216,
1185,
288,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
5411,
613,
18,
4148,
2932,
2850,
10903,
399,
12069,
622,
1058... |
public boolean isSet(org.quickfix.field.AllocAccount field) | public boolean isSet(quickfix.field.AllocAccount field) | public boolean isSet(org.quickfix.field.AllocAccount field) { return isSetField(field); } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix43/OrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
8763,
3032,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
8763,
3032,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
} | } | protected void processElse(int startPos, int endPos, boolean taken) { } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1e8393f7a2cd5d5de7919712722d6a1202f825c5/Scanner2.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/Scanner2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
1207,
12427,
12,
474,
16013,
16,
509,
19809,
16,
1250,
9830,
13,
288,
282,
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,
565,
4750,
918,
1207,
12427,
12,
474,
16013,
16,
509,
19809,
16,
1250,
9830,
13,
288,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
} | public synchronized void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException { int size = in.readInt(); for (int i=0; i<size; i++) { UniqueID id = (UniqueID) in.readObject(); UniversalBody remoteBody = (UniversalBody) in.readObject(); idToBodyMap.put(id, remoteBody); } } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/72186abc6d443a4d713da92efc5079c9b125d539/BodyMap.java/clean/src/org/objectweb/proactive/core/body/BodyMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
855,
6841,
12,
6290,
18,
1594,
18,
921,
1210,
316,
13,
1216,
2252,
18,
1594,
18,
14106,
16,
10403,
288,
565,
509,
963,
273,
316,
18,
896,
1702,
5621,
565,
364,
261,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
855,
6841,
12,
6290,
18,
1594,
18,
921,
1210,
316,
13,
1216,
2252,
18,
1594,
18,
14106,
16,
10403,
288,
565,
509,
963,
273,
316,
18,
896,
1702,
5621,
565,
364,
261,
4... | |
getPreferenceStore().setValue(TaskListPreferenceConstants.ARCHIVE_FOLDER, archiveFolderText.getText()); TaskListAutoArchiveManager.archiveNow(); setLastArchived(); | getPreferenceStore().setValue(TaskListPreferenceConstants.BACKUP_FOLDER, backupFolderText.getText()); TaskListBackupManager.backupNow(); setLastBackup(); | public void widgetSelected(SelectionEvent e) { try { getPreferenceStore().setValue(TaskListPreferenceConstants.ARCHIVE_FOLDER, archiveFolderText.getText()); TaskListAutoArchiveManager.archiveNow(); setLastArchived(); } catch (InvocationTargetException ex) { MessageDialog.openError(getShell(), "Archive Error", TaskListAutoArchiveManager.ARCHIVE_FAILURE_MESSAGE + ex.getCause().getMessage()); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/2eb55d3a34f210fa2491f05411dbbf10988f7182/MylarTaskListPreferencePage.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/preferences/MylarTaskListPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
698,
288,
6862,
202,
588,
9624,
2257,
7675,
542,
620,
12,
2174,
682,
9624,
2918,
18,
10586,
5354,
67,
17357,
16,
686... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
9506,
202,
698,
288,
6862,
202,
588,
9624,
2257,
7675,
542,
620,
12,
2174,
682,
9624,
2918,
18,
10586,
5354,
67,
17357,
16,
686... |
if (image != null) imagesToDispose.add(image); | if (image != null) { imagesToDispose.add(image); } | protected TableItem newResourceTableItem(IFileEditorMapping mapping, int index, boolean selected) { Image image = mapping.getImageDescriptor().createImage(false); if (image != null) imagesToDispose.add(image); TableItem item = new TableItem(resourceTypeTable, SWT.NULL, index); if (image != null) { item.setImage(image); } item.setText(mapping.getLabel()); item.setData(mapping); if (selected) { resourceTypeTable.setSelection(index); } return item; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/FileEditorsPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FileEditorsPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3555,
1180,
31757,
1388,
1180,
12,
45,
812,
6946,
3233,
2874,
16,
5411,
509,
770,
16,
1250,
3170,
13,
288,
3639,
3421,
1316,
273,
2874,
18,
588,
2040,
3187,
7675,
2640,
2040,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3555,
1180,
31757,
1388,
1180,
12,
45,
812,
6946,
3233,
2874,
16,
5411,
509,
770,
16,
1250,
3170,
13,
288,
3639,
3421,
1316,
273,
2874,
18,
588,
2040,
3187,
7675,
2640,
2040,
12,
... |
public SimpleFieldSet getFieldSet() { | public synchronized SimpleFieldSet getFieldSet() { | public SimpleFieldSet getFieldSet() { SimpleFieldSet fs = new SimpleFieldSet(true); // we will need multi-level later... fs.put("Type", "GET"); fs.put("URI", uri.toString(false)); fs.put("Identifier", identifier); fs.put("Verbosity", Integer.toString(verbosity)); fs.put("PriorityClass", Short.toString(priorityClass)); fs.put("ReturnType", ClientGetMessage.returnTypeString(returnType)); fs.put("Persistence", ClientRequest.persistenceTypeString(persistenceType)); fs.put("ClientName", client.name); if(targetFile != null) fs.put("Filename", targetFile.getPath()); if(tempFile != null) fs.put("TempFilename", tempFile.getPath()); if(clientToken != null) fs.put("ClientToken", clientToken); if(returnType == ClientGetMessage.RETURN_TYPE_DISK && targetFile != null) { // Otherwise we must re-run it anyway as we don't have the data. // finished => persistence of completion state, pending messages //fs.put("Finished", Boolean.toString(finished)); } fs.put("IgnoreDS", Boolean.toString(fctx.ignoreStore)); fs.put("DSOnly", Boolean.toString(fctx.localRequestOnly)); fs.put("MaxRetries", Integer.toString(fctx.maxNonSplitfileRetries)); fs.put("Finished", Boolean.toString(finished)); fs.put("Succeeded", Boolean.toString(succeeded)); if(finished) { if(succeeded) { fs.put("FoundDataLength", Long.toString(foundDataLength)); fs.put("FoundDataMimeType", foundDataMimeType); if(postFetchProtocolErrorMessage != null) { fs.put("PostFetchProtocolError", postFetchProtocolErrorMessage.getFieldSet()); } } else { if(getFailedMessage != null) { fs.put("GetFailed", getFailedMessage.getFieldSet(false)); } } } return fs; } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/2feef30f4266f2b8f54b92445661044a936a611a/ClientGet.java/buggy/src/freenet/node/fcp/ClientGet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4477,
974,
694,
5031,
694,
1435,
288,
202,
202,
5784,
974,
694,
2662,
273,
394,
4477,
974,
694,
12,
3767,
1769,
368,
732,
903,
1608,
3309,
17,
2815,
5137,
2777,
202,
202,
2556... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4477,
974,
694,
5031,
694,
1435,
288,
202,
202,
5784,
974,
694,
2662,
273,
394,
4477,
974,
694,
12,
3767,
1769,
368,
732,
903,
1608,
3309,
17,
2815,
5137,
2777,
202,
202,
2556... |
Signature sig = getSignature(type, om.getRetrieveAll(), null, false); | Signature sig = getSignature(type, om.getRetrieveAll(), null, null); | public Query getQuery(ObjectType type) { ObjectMap om = Root.getRoot().getObjectMap(type); Signature sig = getSignature(type, om.getRetrieveAll(), null, false); return new Query(sig, null); } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/d9ed392ae0b8d5fcfa941f4e51eb66f2d9adeaaa/StaticQuerySource.java/buggy/archive/proto/src/com/arsdigita/persistence/proto/engine/rdbms/StaticQuerySource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
6041,
12,
17610,
618,
13,
288,
3639,
1033,
863,
8068,
273,
7450,
18,
588,
2375,
7675,
588,
921,
863,
12,
723,
1769,
3639,
9249,
3553,
273,
20104,
12,
723,
16,
8068,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2770,
6041,
12,
17610,
618,
13,
288,
3639,
1033,
863,
8068,
273,
7450,
18,
588,
2375,
7675,
588,
921,
863,
12,
723,
1769,
3639,
9249,
3553,
273,
20104,
12,
723,
16,
8068,
18,
588,... |
ImageQueue queue = (ImageQueue) scheduledImagesByName.get(name); | ImageQueue queue = (ImageQueue) scheduledImagesByName.get(url); | public static Image getImage( String name, Object parent, boolean cache ) throws IOException { // check if the image has been cached before: if ( imagesByName != null ) { Image image = (Image) imagesByName.get( name ); if (image != null) { return image; } } //#ifdef polish.images.directLoad // when images should be loaded directly, try to do so now: Image image = Image.createImage( name ); if (cache) { if (imagesByName == null ) { imagesByName = new Hashtable(); } imagesByName.put( name, image ); } //# return image; //#else // when images should be loaded in the background, // tell the background-thread to do so now: if ( ! (parent instanceof ImageConsumer)) { //#debug error System.out.println("StyleSheet.getImage(..) needs an ImageConsumer when images are loaded in the background!"); return null; } if (scheduledImagesByName == null ) { scheduledImagesByName = new Hashtable(); } ImageQueue queue = (ImageQueue) scheduledImagesByName.get(name); if (queue != null) { // this image is already scheduled to load: queue.addConsumer((ImageConsumer) parent); return null; } scheduledImagesByName.put( name, new ImageQueue( (ImageConsumer) parent, cache ) ); if (imagesByName == null ) { imagesByName = new Hashtable(); } if (timer == null) { timer = new Timer(); } ImageTask task = new ImageTask( name ); timer.schedule( task, 10 ); return null; //#endif } | 9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/4e8983ac96e4e1a995d9f8434572c31f4d05d76c/StyleSheet.java/clean/j2me/source/src/de/enough/polish/ui/StyleSheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
3421,
10567,
12,
514,
508,
16,
1033,
982,
16,
1250,
1247,
262,
202,
15069,
1860,
225,
202,
95,
202,
202,
759,
866,
309,
326,
1316,
711,
2118,
3472,
1865,
30,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
3421,
10567,
12,
514,
508,
16,
1033,
982,
16,
1250,
1247,
262,
202,
15069,
1860,
225,
202,
95,
202,
202,
759,
866,
309,
326,
1316,
711,
2118,
3472,
1865,
30,
202,
202,
... |
public void mTokens() throws RecognitionException { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: ( T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | MISC | WS | EOL | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT ) int alt16=54; alt16 = dfa16.predict(input); if (failed) return ; switch (alt16) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: T15 { mT15(); if (failed) return ; } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:14: T16 { mT16(); if (failed) return ; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:18: T17 { mT17(); if (failed) return ; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:22: T18 { mT18(); if (failed) return ; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:26: T19 { mT19(); if (failed) return ; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:30: T20 { mT20(); if (failed) return ; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:34: T21 { mT21(); if (failed) return ; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:38: T22 { mT22(); if (failed) return ; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:42: T23 { mT23(); if (failed) return ; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:46: T24 { mT24(); if (failed) return ; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:50: T25 { mT25(); if (failed) return ; } break; case 12 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:54: T26 { mT26(); if (failed) return ; } break; case 13 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:58: T27 { mT27(); if (failed) return ; } break; case 14 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:62: T28 { mT28(); if (failed) return ; } break; case 15 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:66: T29 { mT29(); if (failed) return ; } break; case 16 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:70: T30 { mT30(); if (failed) return ; } break; case 17 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:74: T31 { mT31(); if (failed) return ; } break; case 18 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:78: T32 { mT32(); if (failed) return ; } break; case 19 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:82: T33 { mT33(); if (failed) return ; } break; case 20 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:86: T34 { mT34(); if (failed) return ; } break; case 21 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:90: T35 { mT35(); if (failed) return ; } break; case 22 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:94: T36 { mT36(); if (failed) return ; } break; case 23 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:98: T37 { mT37(); if (failed) return ; } break; case 24 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:102: T38 { mT38(); if (failed) return ; } break; case 25 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:106: T39 { mT39(); if (failed) return ; } break; case 26 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:110: T40 { mT40(); if (failed) return ; } break; case 27 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:114: T41 { mT41(); if (failed) return ; } break; case 28 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:118: T42 { mT42(); if (failed) return ; } break; case 29 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:122: T43 { mT43(); if (failed) return ; } break; case 30 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:126: T44 { mT44(); if (failed) return ; } break; case 31 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:130: T45 { mT45(); if (failed) return ; } break; case 32 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:134: T46 { mT46(); if (failed) return ; } break; case 33 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:138: T47 { mT47(); if (failed) return ; } break; case 34 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:142: T48 { mT48(); if (failed) return ; } break; case 35 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:146: T49 { mT49(); if (failed) return ; } break; case 36 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:150: T50 { mT50(); if (failed) return ; } break; case 37 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:154: T51 { mT51(); if (failed) return ; } break; case 38 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:158: T52 { mT52(); if (failed) return ; } break; case 39 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:162: T53 { mT53(); if (failed) return ; } break; case 40 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:166: T54 { mT54(); if (failed) return ; } break; case 41 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:170: T55 { mT55(); if (failed) return ; } break; case 42 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:174: T56 { mT56(); if (failed) return ; } break; case 43 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:178: T57 { mT57(); if (failed) return ; } break; case 44 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:182: MISC { mMISC(); if (failed) return ; } break; case 45 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:187: WS { mWS(); if (failed) return ; } break; case 46 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:190: EOL { mEOL(); if (failed) return ; } break; case 47 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:194: INT { mINT(); if (failed) return ; } break; case 48 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:198: FLOAT { mFLOAT(); if (failed) return ; } break; case 49 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:204: STRING { mSTRING(); if (failed) return ; } break; case 50 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:211: BOOL { mBOOL(); if (failed) return ; } break; case 51 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:216: ID { mID(); if (failed) return ; } break; case 52 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:219: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 53 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:248: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 54 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:276: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/e3fb9256ae6e5fcb8c78a2c3dbd47f678d9b1287/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5157,
1435,
1216,
9539,
288,
3639,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64... | ||
private static void fireEventListeners(NodeEventTarget node, Event e, boolean useCapture, HashSet stoppedGroups, HashSet toBeStoppedGroups, boolean isCustom) { String type = e.getType(); EventSupport support = node.getEventSupport(); if (support == null) { return; } EventListenerList list = support.getEventListeners(type, useCapture); if (list == null) { return; } EventListenerList.Entry[] listeners = list.getEventListeners(); | protected void fireEventListeners(NodeEventTarget node, Event e, EventListenerList.Entry[] listeners, HashSet stoppedGroups, HashSet toBeStoppedGroups, boolean isCustom) { | private static void fireEventListeners(NodeEventTarget node, Event e, boolean useCapture, HashSet stoppedGroups, HashSet toBeStoppedGroups, boolean isCustom) { String type = e.getType(); EventSupport support = node.getEventSupport(); // check if the event support has been instantiated if (support == null) { return; } EventListenerList list = support.getEventListeners(type, useCapture); // check if the event listeners list is not empty if (list == null) { return; } // dump event listeners, we get the registered listeners NOW EventListenerList.Entry[] listeners = list.getEventListeners(); // check if event listeners with the correct event type exist if (listeners == null) { return; } // fire event listeners CustomEvent ce = null; AbstractEvent aevt = null; String eventNS; if (isCustom) { ce = (CustomEvent) e; eventNS = ce.getNamespaceURI(); } else { aevt = (AbstractEvent) e; eventNS = aevt.getNamespaceURI(); } for (int i = 0; i < listeners.length; i++) { try { String listenerNS = listeners[i].getNamespaceURI(); if (listenerNS != null && eventNS != null && !listenerNS.equals(eventNS)) { continue; } Object group = listeners[i].getGroup(); if (!stoppedGroups.contains(group)) { listeners[i].getListener().handleEvent(e); if (isCustom) { if (ce.isImmediatePropagationStopped()) { stoppedGroups.add(group); // XXX How to not stop other groups? // Need something like // aevt.stopImmediatePropagation(false); } else if (ce.isPropagationStopped()) { toBeStoppedGroups.add(group); // XXX How to not stop other groups? // Need something like aevt.stopPropagation(false); } } else { if (aevt.getStopImmediatePropagation()) { stoppedGroups.add(group); aevt.stopImmediatePropagation(false); } else if (aevt.getStopPropagation()) { toBeStoppedGroups.add(group); aevt.stopPropagation(false); } } } } catch (ThreadDeath td) { throw td; } catch (Throwable th) { th.printStackTrace(); } } } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/4a2d10461f1455f5c0538982e50f935f8e49c347/EventSupport.java/clean/sources/org/apache/batik/dom/events/EventSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
15659,
5583,
12,
907,
1133,
2326,
756,
16,
9944,
282,
2587,
425,
16,
4766,
6647,
1250,
999,
12372,
16,
4766,
6647,
6847,
9627,
3621,
16,
4766,
6647,
6847,
21333,
15294,
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,
760,
918,
15659,
5583,
12,
907,
1133,
2326,
756,
16,
9944,
282,
2587,
425,
16,
4766,
6647,
1250,
999,
12372,
16,
4766,
6647,
6847,
9627,
3621,
16,
4766,
6647,
6847,
21333,
15294,
36... |
throw getRuntime().newNameError("uninitialized class variable " + name + " in " + getName()); | throw getRuntime().newNameError("uninitialized class variable " + name + " in " + getName(), name); | public IRubyObject getClassVar(String name) { RubyModule module = getModuleWithInstanceVar(name); if (module != null) { IRubyObject variable = module.getInstanceVariable(name); return variable == null ? getRuntime().getNil() : variable; } throw getRuntime().newNameError("uninitialized class variable " + name + " in " + getName()); } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/1278c5bb3507a052d150d814f15453542ae41aed/RubyModule.java/clean/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
2900,
1537,
12,
780,
508,
13,
288,
3639,
19817,
3120,
1605,
273,
11251,
1190,
1442,
1537,
12,
529,
1769,
7734,
309,
261,
2978,
480,
446,
13,
288,
540,
202,
7937,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2900,
1537,
12,
780,
508,
13,
288,
3639,
19817,
3120,
1605,
273,
11251,
1190,
1442,
1537,
12,
529,
1769,
7734,
309,
261,
2978,
480,
446,
13,
288,
540,
202,
7937,
... |
} | } | public int getChildCount(Object value0) { return 0; // TODO } // getChildCount() | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/DefaultTreeModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
27157,
12,
921,
460,
20,
13,
288,
202,
202,
2463,
374,
31,
368,
2660,
202,
97,
368,
27157,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
27157,
12,
921,
460,
20,
13,
288,
202,
202,
2463,
374,
31,
368,
2660,
202,
97,
368,
27157,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
logInvPG=inv; if(logInvPG != null) { logToExcelOutput(logInvPG.getWithdrawList(), logInvPG.getProjWithdrawList(), logInvPG.getActualDemandTasksList(), logInvPG.getSupplyList(), logInvPG.getProjSupplyList(), logInvPG.getBufferedCritLevels(), logInvPG.getBufferedInvLevels(), logInvPG.getBufferedTargetLevels(), aCycleStamp); } } | logInvPG = inv; if (logInvPG != null) { logToExcelOutput(logInvPG.getWithdrawList(), logInvPG.getProjWithdrawList(), logInvPG.getActualDemandTasksList(), logInvPG.getSupplyList(), logInvPG.getProjSupplyList(), logInvPG.getBufferedCritLevels(), logInvPG.getBufferedInvLevels(), logInvPG.getBufferedTargetLevels(), aCycleStamp); } } | public void logToExcelOutput(LogisticsInventoryPG inv, long aCycleStamp) { logInvPG=inv;if(logInvPG != null) {logToExcelOutput(logInvPG.getWithdrawList(),logInvPG.getProjWithdrawList(),logInvPG.getActualDemandTasksList(),logInvPG.getSupplyList(),logInvPG.getProjSupplyList(),logInvPG.getBufferedCritLevels(),logInvPG.getBufferedInvLevels(),logInvPG.getBufferedTargetLevels(),aCycleStamp);}} | 11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/6067a66e7bcded775432f69ba28faa00558f443a/LogisticsInventoryFormatter.java/clean/bbn/src/org/cougaar/logistics/plugin/inventory/LogisticsInventoryFormatter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
613,
774,
7177,
1447,
12,
1343,
4287,
15059,
18679,
2198,
16,
6862,
1525,
279,
13279,
8860,
13,
288,
202,
1330,
3605,
18679,
33,
5768,
31,
430,
12,
1330,
3605,
18679,
480,
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,
1071,
918,
613,
774,
7177,
1447,
12,
1343,
4287,
15059,
18679,
2198,
16,
6862,
1525,
279,
13279,
8860,
13,
288,
202,
1330,
3605,
18679,
33,
5768,
31,
430,
12,
1330,
3605,
18679,
480,
446,
13,
... |
waitTime = now + (long) (t2 * 1000) - 2000;; | waitTime = now + (long) (t2 * 1000) - 2000; | public void run() { try { try { long now = System.currentTimeMillis(); time.setTime(new Date(now)); float t = timedDocumentRoot.convertWallclockTime(time); if (Math.floor(t) > second) { second = Math.floor(t); // System.err.println("fps: " + frames); frames = 0; } float t2 = tick(t, false); if (t2 == Float.POSITIVE_INFINITY) { waitTime = Long.MAX_VALUE; } else { waitTime = now + (long) (t2 * 1000) - 2000;; } frames++; } catch (AnimationException ex) { throw new BridgeException(ctx, ex.getElement().getElement(), ex.getMessage()); } } catch (BridgeException ex) { if (ctx.getUserAgent() == null) { ex.printStackTrace(); } else { ctx.getUserAgent().displayError(ex); } } //Thread.yield(); try { Thread.sleep(1); } catch (InterruptedException ie) { } } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/28c10db70bd8684137bea41e4d2b14b11a43da23/SVGAnimationEngine.java/clean/sources/org/apache/batik/bridge/SVGAnimationEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
775,
288,
10792,
1525,
2037,
273,
2332,
18,
2972,
28512,
5621,
10792,
813,
18,
542,
950,
12,
2704,
2167,
12,
3338,
10019,
10792,
1431,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1086,
1435,
288,
5411,
775,
288,
7734,
775,
288,
10792,
1525,
2037,
273,
2332,
18,
2972,
28512,
5621,
10792,
813,
18,
542,
950,
12,
2704,
2167,
12,
3338,
10019,
10792,
1431,
26... |
AST tmp1329_AST_in = (AST)_t; | AST tmp1328_AST_in = (AST)_t; | public final void function_param_arg(AST _t) throws RecognitionException { AST function_param_arg_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST id2 = null; AST ds = null; AST dsh = null; AST id = null; AST as = null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TABLE: { AST tmp1328_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST tmp1329_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); break; } case RECORD_NAME: { break; } default: { throw new NoViableAltException(_t); } } } tbl(_t,CQ.TEMPTABLESYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1330_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case 3: case BIND: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BIND: { AST tmp1331_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } break; } case TABLEHANDLE: { AST tmp1332_AST_in = (AST)_t; match(_t,TABLEHANDLE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FOR: { AST tmp1333_AST_in = (AST)_t; match(_t,FOR); _t = _t.getNextSibling(); break; } case ID: { break; } default: { throw new NoViableAltException(_t); } } } id2 = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1334_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case 3: case BIND: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BIND: { AST tmp1335_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(id2, id2, HANDLE)); } break; } case DATASET: { AST tmp1336_AST_in = (AST)_t; match(_t,DATASET); _t = _t.getNextSibling(); ds = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1337_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case 3: case BIND: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BIND: { AST tmp1338_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineSymbol(DATASET, ds, ds)); } break; } case DATASETHANDLE: { AST tmp1339_AST_in = (AST)_t; match(_t,DATASETHANDLE); _t = _t.getNextSibling(); dsh = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { AST tmp1340_AST_in = (AST)_t; match(_t,APPEND); _t = _t.getNextSibling(); break; } case 3: case BIND: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BIND: { AST tmp1341_AST_in = (AST)_t; match(_t,BIND); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { action.addToSymbolScope(action.defineVariable(dsh, dsh, HANDLE)); } break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case ID: case DATETIME: case DATETIMETZ: case LONGCHAR: case CLASS: case TYPE_NAME: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ID: { id = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); as = (AST)_t; match(_t,AS); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case DATETIME: case DATETIMETZ: case LONGCHAR: case CLASS: case TYPE_NAME: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CLASS: { AST tmp1342_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getNextSibling(); AST tmp1343_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case DATETIME: case DATETIMETZ: case LONGCHAR: case TYPE_NAME: { datatype_var(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXTENT: { extentphrase(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } if ( inputState.guessing==0 ) { if (id != null) { action.addToSymbolScope(action.defineVariable(id, id)); action.defAs(as); } } break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
445,
67,
891,
67,
3175,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
445,
67,
891,
67,
3175,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
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,
727,
918,
445,
67,
891,
67,
3175,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
445,
67,
891,
67,
3175,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13... |
addByteCode(ByteCode.CHECKCAST, "org/mozilla/javascript/Scriptable"); addByteCode(ByteCode.ARETURN); markLabel(exitLabel); | cfw.add(ByteCode.CHECKCAST, "org/mozilla/javascript/Scriptable"); cfw.add(ByteCode.ARETURN); cfw.markLabel(exitLabel); | private void emitDirectConstructor() {/* we generate .. Scriptable directConstruct(<directCallArgs>) { Scriptable newInstance = createObject(cx, scope); Object val = callDirect(cx, scope, newInstance, <directCallArgs>); if (val instanceof Scriptable && val != Undefined.instance) { return (Scriptable) val; } return newInstance; }*/ short flags = (short)(ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL); classFile.startMethod("constructDirect", fnCurrent.getDirectCallMethodSignature(), flags); int argCount = fnCurrent.getParamCount(); int firstLocal = (4 + argCount * 3) + 1; aload((short)0); // this aload((short)1); // cx aload((short)2); // scope addVirtualInvoke("org/mozilla/javascript/BaseFunction", "createObject", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +")Lorg/mozilla/javascript/Scriptable;"); astore((short)firstLocal); aload((short)0); aload((short)1); aload((short)2); aload((short)firstLocal); for (int i = 0; i < argCount; i++) { aload((short)(4 + (i * 3))); dload((short)(5 + (i * 3))); } aload((short)(4 + argCount * 3)); addVirtualInvoke(generatedClassName, "callDirect", fnCurrent.getDirectCallMethodSignature()); int exitLabel = acquireLabel(); addByteCode(ByteCode.DUP); // make a copy of callDirect result addByteCode(ByteCode.INSTANCEOF, "org/mozilla/javascript/Scriptable"); addByteCode(ByteCode.IFEQ, exitLabel); addByteCode(ByteCode.DUP); // make a copy of callDirect result pushUndefined(); addByteCode(ByteCode.IF_ACMPEQ, exitLabel); // cast callDirect result addByteCode(ByteCode.CHECKCAST, "org/mozilla/javascript/Scriptable"); addByteCode(ByteCode.ARETURN); markLabel(exitLabel); aload((short)firstLocal); addByteCode(ByteCode.ARETURN); classFile.stopMethod((short)(firstLocal + 1), null); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3626,
5368,
6293,
1435,
565,
288,
20308,
565,
732,
2103,
6116,
3639,
22780,
2657,
7249,
12,
32,
7205,
1477,
2615,
23429,
288,
5411,
22780,
5984,
273,
17109,
12,
71,
92,
16,
214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3626,
5368,
6293,
1435,
565,
288,
20308,
565,
732,
2103,
6116,
3639,
22780,
2657,
7249,
12,
32,
7205,
1477,
2615,
23429,
288,
5411,
22780,
5984,
273,
17109,
12,
71,
92,
16,
214... |
funcCtx = funcCtx.getParentContext(); | else { break; } | public Function getFunction(QName functionName, Object[] parameters){ String namespace = functionName.getPrefix(); String name = functionName.getName(); JXPathContext funcCtx = this; Function func = null; Functions funcs; while (funcCtx != null){ funcs = funcCtx.getFunctions(); func = funcs.getFunction(namespace, name, parameters); if (func != null){ return func; } funcCtx = funcCtx.getParentContext(); } func = genericFunctions.getFunction(namespace, name, parameters); if (func != null){ return func; } throw new RuntimeException("Undefined function: " + functionName.asString()); } | 52531 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52531/207c6dd98407506ff367d072be25b56f37989215/JXPathContextReferenceImpl.java/buggy/src/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4284,
18697,
12,
13688,
14117,
16,
1033,
8526,
1472,
15329,
3639,
514,
1981,
273,
14117,
18,
588,
2244,
5621,
3639,
514,
508,
273,
14117,
18,
17994,
5621,
3639,
804,
14124,
1042,
1326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4284,
18697,
12,
13688,
14117,
16,
1033,
8526,
1472,
15329,
3639,
514,
1981,
273,
14117,
18,
588,
2244,
5621,
3639,
514,
508,
273,
14117,
18,
17994,
5621,
3639,
804,
14124,
1042,
1326... |
return (DynaClass)dynaClass; | return dynaClass; | public DynaClass getDynaClass() { return (DynaClass)dynaClass; } | 54521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54521/563cb810bc92fd1ec7cc4af1bcde00af99056757/LazyDynaBean.java/buggy/src/java/org/apache/commons/beanutils/LazyDynaBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
463,
23041,
797,
2343,
23041,
797,
1435,
288,
3639,
327,
19417,
69,
797,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
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,
463,
23041,
797,
2343,
23041,
797,
1435,
288,
3639,
327,
19417,
69,
797,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
protected void prepareParameterBean( HttpServletRequest request, IViewerReportService service, ScalarParameterBean parameterBean, Locale locale ) throws ReportServiceException | public static void prepareParameterBean( IViewerReportDesignHandle designHandle, IViewerReportService service, HttpServletRequest request, ScalarParameterBean parameterBean, ParameterDefinition parameter, Locale locale, boolean isDesigner ) throws ReportServiceException | protected void prepareParameterBean( HttpServletRequest request, IViewerReportService service, ScalarParameterBean parameterBean, Locale locale ) throws ReportServiceException { } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/67113f256fa817ffd68ab02bb47526a967d3b869/ScalarParameterFragment.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/presentation/aggregation/parameter/ScalarParameterFragment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2911,
1662,
3381,
12,
9984,
590,
16,
1082,
202,
45,
18415,
4820,
1179,
1156,
16,
15791,
1662,
3381,
1569,
3381,
16,
1082,
202,
3916,
2573,
262,
1216,
8706,
15133,
202,
95,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2911,
1662,
3381,
12,
9984,
590,
16,
1082,
202,
45,
18415,
4820,
1179,
1156,
16,
15791,
1662,
3381,
1569,
3381,
16,
1082,
202,
3916,
2573,
262,
1216,
8706,
15133,
202,
95,... |
if ( documentMapper.userHasAtLeastDocumentReadPermission( user, document) && imcref.checkDocAdminRights( intMetaId, user ) ) { | if ( user.canAccess( document ) && imcref.checkDocAdminRights( intMetaId, user ) ) { | public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets get the parameters and validate them Properties params = this.getParameters( req ); UserDomainObject user = Utility.getLoggedOnUser( req ); if ( !isUserAuthorized( req, res, user ) ) { return; } // Lets get the replylist from DB String discId = params.getProperty( "DISC_ID" ); String userId = ""; // Lets update the sessions DISC_ID HttpSession session = req.getSession( false ); if ( session != null ) { session.setAttribute( "Conference.disc_id", discId ); userId = (String)session.getAttribute( "Conference.user_id" ); } // Lets get serverinformation ImcmsServices imcref = Imcms.getServices(); String[][] sqlAnswer = imcref.sqlProcedureMulti( "A_GetAllRepliesInDisc", new String[]{discId, userId} ); // Lets get the discussion header String discHeader = imcref.sqlProcedureStr( "A_GetDiscussionHeader", new String[]{discId} ); if ( discHeader == null || discId.equalsIgnoreCase( "-1" ) ) discHeader = " "; // THIS CODE IS USED IF WE WANT RADIOBUTTONS // UsersSortOrderRadioButtons String metaId = params.getProperty( "META_ID" ); int intMetaId = Integer.parseInt( metaId ); String sortOrderValue = imcref.sqlProcedureStr( "A_ConfUsersGetReplyOrderSel", new String[]{metaId, userId} ); String ascState = ""; String descState = ""; String ascVal = "0"; if ( sortOrderValue.equalsIgnoreCase( "1" ) ) ascState = "checked"; else descState = "checked"; // SYNTAX: date first_name last_name headline text reply_level // Lets build our variable list Vector tagsV = new Vector(); tagsV.add( "#REPLY_DATE#" ); tagsV.add( "#FIRST_NAME#" ); tagsV.add( "#LAST_NAME#" ); tagsV.add( "#REPLY_HEADER#" ); tagsV.add( "#REPLY_TEXT#" ); tagsV.add( "#REPLY_LEVEL#" ); // Lets get path to the imagefolder. http://dev.imcode.com/images/102/ConfDiscNew.gif String imagePath = super.getExternalImageFolder( req ) + "ConfExpert.gif"; // Lets get the part of the expert html // Lets get the part of an html page, wich will be parsed for every a Href reference File templateLib = super.getExternalTemplateFolder( req ); File aSnippetFile = new File( templateLib, RECS_HTML ); // Lets update the discussion list this.updateDiscFlagList( req, discId ); // Lets preparse all records String allRecs = " "; if ( sqlAnswer != null ) allRecs = preParse( sqlAnswer, tagsV, aSnippetFile, imagePath ); // Lets build the Responsepage //lets generate the buttons that should appear String commentButton = " "; //lets show comment button if user has more than readrights DocumentMapper documentMapper = imcref.getDocumentMapper(); DocumentDomainObject document = documentMapper.getDocument(intMetaId); if ( documentMapper.userHasAtLeastDocumentReadPermission( user, document) && imcref.checkDocAdminRights( intMetaId, user ) ) { VariableManager vmButtons = new VariableManager(); vmButtons.addProperty( "#SERVLET_URL#", "" ); vmButtons.addProperty( "#IMAGE_URL#", this.getExternalImageFolder( req ) ); commentButton = getTemplate( NEW_COMMENT_TEMPLATE, user, vmButtons.getTagsAndData() ); } VariableManager vm = new VariableManager(); vm.addProperty( "NEW_COMMENT", commentButton ); vm.addProperty( "USER_SORT_ORDER", ascVal ); vm.addProperty( "CHECKBOX_STATE_ASC", ascState ); vm.addProperty( "CHECKBOX_STATE_DESC", descState ); vm.addProperty( "REPLIES_RECORDS", allRecs ); vm.addProperty( "CURRENT_DISCUSSION_HEADER", discHeader ); vm.addProperty( "ADMIN_LINK_HTML", ADMIN_LINK_TEMPLATE ); this.sendHtml( req, res, vm, HTML_TEMPLATE ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/87490680132ae04c68e0ba85f62f842824f80fd1/ConfReply.java/buggy/server/src/com/imcode/imcms/servlet/conference/ConfReply.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
336,
326,
1472,
471,
1954,
2182,
3639,
6183,
859,
273,
333,
18,
588,
2402,
12,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
336,
326,
1472,
471,
1954,
2182,
3639,
6183,
859,
273,
333,
18,
588,
2402,
12,
1... |
Member member = memberCalc.evaluateMember(evaluator); return ascendants(member); | final List list = listCalc.evaluateList(evaluator); return addCalculatedMembers(list, evaluator); | public List evaluateList(Evaluator evaluator) { Member member = memberCalc.evaluateMember(evaluator); return ascendants(member); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/5aca340e1cdbb6179077d96383341db48f0997be/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
987,
5956,
682,
12,
15876,
18256,
13,
288,
13491,
8596,
3140,
273,
3140,
25779,
18,
21024,
4419,
12,
14168,
639,
1769,
13491,
327,
6972,
409,
4388,
12,
5990,
1769,
10792,
289,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
987,
5956,
682,
12,
15876,
18256,
13,
288,
13491,
8596,
3140,
273,
3140,
25779,
18,
21024,
4419,
12,
14168,
639,
1769,
13491,
327,
6972,
409,
4388,
12,
5990,
1769,
10792,
289,
2,
-... |
public RegexFormatter(String pattern) throws PatternSyntaxException | public RegexFormatter() | public RegexFormatter(String pattern) throws PatternSyntaxException { this(); setPattern(Pattern.compile(pattern)); } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/7e1df5432ae96363ad648f8be72faa33ff3f32b5/RegexFormatter.java/buggy/code/src/java/pcgen/gui/utils/RegexFormatter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15078,
5074,
12,
780,
1936,
13,
1216,
6830,
14714,
202,
95,
202,
202,
2211,
5621,
202,
202,
542,
3234,
12,
3234,
18,
11100,
12,
4951,
10019,
202,
97,
2,
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,
15078,
5074,
12,
780,
1936,
13,
1216,
6830,
14714,
202,
95,
202,
202,
2211,
5621,
202,
202,
542,
3234,
12,
3234,
18,
11100,
12,
4951,
10019,
202,
97,
2,
-100,
-100,
-100,
-100... |
boolean isValid = true; | boolean isValid = true; | private static boolean isIDValid(String id) { boolean isValid = true; int pos = id.indexOf('%'); if (pos < 0) { // There is no % in the id. In order to be valid all characters // should be non-special isValid = !hasSpecialChar(id); } else { // There is a % sign in the id. In order to be valid it has // to be in the form X..X%Y..Y, where there should be no // special characters in X..X, and Y..Y should be a hexadecimal // number if (pos + 1 < id.length()) { String start = id.substring(0, pos); String end = id.substring(pos + 1); // Check X..X isValid = !hasSpecialChar(start); if (isValid) { // OK; Check Y..Y try { Integer.parseInt(end, 16); // OK isValid = true; } catch (Exception e) { // Not OK isValid = false; } } } else { // The % sign is in the beginning - bad ID. isValid = false; } } return isValid; } | 43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/0c761c736af622d36b8ce9b201c391d24ce52b89/HistoryID.java/buggy/src/net/java/sip/communicator/service/history/HistoryID.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
353,
734,
1556,
12,
780,
612,
13,
288,
202,
202,
6494,
4908,
273,
638,
31,
202,
202,
474,
949,
273,
612,
18,
31806,
29909,
8284,
202,
202,
430,
261,
917,
411,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
353,
734,
1556,
12,
780,
612,
13,
288,
202,
202,
6494,
4908,
273,
638,
31,
202,
202,
474,
949,
273,
612,
18,
31806,
29909,
8284,
202,
202,
430,
261,
917,
411,
37... |
JLabel.CENTER); | SwingConstants.CENTER); | public void update(Observable o, Object target) { Logger.debug(this, "Move on the connection (?)"); if(o == connection && !connection.isConnected()) { disconnect(); int nmbReconnect = 0; JDialog warningDialog = new JDialog(); warningDialog.setTitle("Thaw - reconnection"); warningDialog.setModal(false); warningDialog.setSize(500, 40); warningDialog.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE); JPanel warningPanel = new JPanel(); JLabel warningLabel = new JLabel(I18n.getMessage("thaw.warning.autoreconnecting"), JLabel.CENTER); warningPanel.add(warningLabel); warningDialog.setContentPane(warningPanel); warningDialog.setVisible(true); for(nmbReconnect = 0; nmbReconnect < MAX_CONNECT_TRIES ; nmbReconnect++) { try { Thread.sleep(TIME_BETWEEN_EACH_TRY); } catch(java.lang.InterruptedException e) { // brouzouf } Logger.notice(this, "Trying to reconnect ... : "+ Integer.toString(nmbReconnect)); if(initNodeConnection()) break; } warningDialog.setVisible(false); if(nmbReconnect == MAX_CONNECT_TRIES) { while(!initNodeConnection()) { int ret = JOptionPane.showOptionDialog((java.awt.Component)null, I18n.getMessage("thaw.warning.disconnected"), "Thaw - "+I18n.getMessage("thaw.warning.title"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, (javax.swing.Icon)null, (java.lang.Object[])null, (java.lang.Object)null); if(ret == JOptionPane.CLOSED_OPTION || ret == JOptionPane.CANCEL_OPTION || ret == JOptionPane.NO_OPTION) break; } } getPluginManager().stopPlugins(); getPluginManager().loadPlugins(); getPluginManager().runPlugins(); } } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/Core.java/clean/src/thaw/core/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
15279,
320,
16,
1033,
1018,
13,
288,
202,
202,
3328,
18,
4148,
12,
2211,
16,
315,
7607,
603,
326,
1459,
13590,
2225,
1769,
202,
202,
430,
12,
83,
422,
1459,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
12,
15279,
320,
16,
1033,
1018,
13,
288,
202,
202,
3328,
18,
4148,
12,
2211,
16,
315,
7607,
603,
326,
1459,
13590,
2225,
1769,
202,
202,
430,
12,
83,
422,
1459,
5... |
jjAddStates(66, 67); break; case 54: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(55, 56); | jjCheckNAddTwoStates(53, 54); | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 75; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0x3ff000000000000L & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(18, 23); break; case 2: case 41: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(2, 3); break; case 3: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: case 50: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(7); break; case 7: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 10: case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: case 63: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(12, 13); break; case 13: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(14); break; case 14: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 17: case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(20); break; case 20: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(24, 26); break; case 24: if ((0x600000000000L & l) != 0L) jjCheckNAddStates(27, 29); break; case 26: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 33); break; case 28: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(34, 36); break; case 29: if (curChar != 46) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(29, 30); break; case 30: if (curChar == 45) jjCheckNAdd(31); break; case 31: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(32, 33); break; case 33: if (curChar == 46) jjCheckNAdd(34); break; case 34: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: case 39: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 42: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 44: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 45: case 46: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(46, 47); break; case 47: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(48); break; case 48: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 53: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 54: case 55: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(57); break; case 57: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 59: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 60: case 61: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(62, 63); break; case 66: if (curChar == 39) jjstateSet[jjnewStateCnt++] = 67; break; case 69: if (curChar == 46) jjCheckNAdd(70); break; case 71: if (curChar != 46) break; if (kind > 3) kind = 3; jjCheckNAdd(70); break; case 73: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 74; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(40, 45); if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(46, 47); break; case 3: if (curChar == 95) jjCheckNAdd(4); break; case 4: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if (curChar == 95) jjCheckNAdd(7); break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if (curChar == 95) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(48, 49); break; case 13: if (curChar == 95) jjCheckNAdd(14); break; case 14: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if (curChar == 95) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(50, 51); break; case 19: if (curChar == 95) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(24, 26); break; case 25: if (curChar == 95) jjCheckNAdd(26); break; case 26: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(30, 33); break; case 27: if (curChar == 64) jjCheckNAdd(28); break; case 28: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(34, 36); break; case 31: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(32, 33); break; case 34: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: if (curChar == 95) jjCheckNAddTwoStates(37, 38); break; case 37: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 39: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 39; break; case 40: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 42: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: if (curChar == 95) jjCheckNAddTwoStates(44, 45); break; case 44: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 46: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(52, 53); break; case 47: if (curChar == 95) jjCheckNAdd(48); break; case 48: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: if (curChar == 95) jjCheckNAddTwoStates(53, 54); break; case 53: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 55: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if (curChar == 95) jjCheckNAdd(57); break; case 57: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: if (curChar == 95) jjCheckNAddTwoStates(59, 60); break; case 59: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 61: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(62, 63); break; case 64: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(40, 45); break; case 65: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(65, 66); break; case 67: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(66, 67); break; case 68: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(68, 69); break; case 70: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(54, 55); break; case 72: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(72, 73); break; case 73: if (curChar == 64) jjCheckNAdd(74); break; case 74: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 4) kind = 4; jjCheckNAdd(74); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) { if (kind > 10) kind = 10; jjCheckNAdd(0); } if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(18, 23); if (jjCanMove_2(hiByte, i1, i2, l1, l2)) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(40, 45); break; case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 10) kind = 10; jjCheckNAdd(0); break; case 2: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 4: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 4; break; case 5: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 7: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(56, 57); break; case 9: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(58, 59); break; case 10: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 11: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 14: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(14, 15); break; case 16: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(60, 61); break; case 17: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 18: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 20: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(24, 26); break; case 26: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(30, 33); break; case 28: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(34, 36); break; case 31: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(32, 33); break; case 34: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(35, 36); break; case 37: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(62, 63); break; case 38: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 39: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 40: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(40, 41); break; case 41: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 42: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(42, 43); break; case 44: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(64, 65); break; case 45: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(46, 47); break; case 46: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(46, 47); break; case 48: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(49, 50); break; case 50: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 51: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(51, 52); break; case 53: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(66, 67); break; case 54: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(55, 56); break; case 55: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(55, 56); break; case 57: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(68, 69); break; case 59: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(70, 71); break; case 60: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 61: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(62, 63); break; case 63: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 64: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(40, 45); break; case 65: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(65, 66); break; case 67: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(66, 67); break; case 68: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(68, 69); break; case 70: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(54, 55); break; case 72: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(72, 73); break; case 74: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 4) kind = 4; jjstateSet[jjnewStateCnt++] = 74; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 75 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }} | 1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/b118a27a8623ffbfab74ffed2cb6817d04292d9a/StandardTokenizerTokenManager.java/buggy/src/java/org/apache/lucene/analysis/standard/StandardTokenizerTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
509,
10684,
7607,
50,
507,
67,
20,
12,
474,
787,
1119,
16,
509,
662,
1616,
15329,
282,
509,
8526,
1024,
7629,
31,
282,
509,
2542,
861,
273,
374,
31,
282,
10684,
2704,
1119,
11750,... |
public abstract DocumentSet getAllDocuments( User user ); | public DocumentSet getAllDocuments() { return getAllDocuments( new User( "admin", null, "dba" ) ); } | public abstract DocumentSet getAllDocuments( User user ); | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1af04acb6aaa43dcf47434b5fe250592458c8e2a/DBBroker.java/buggy/src/org/exist/storage/DBBroker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
4319,
694,
5514,
12922,
12,
2177,
729,
11272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
4319,
694,
5514,
12922,
12,
2177,
729,
11272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
SessionUtils.removeAttribute(CustomerConstants.CUSTOMER_MEETING, request); | SessionUtils.removeAttribute(CustomerConstants.CUSTOMER_MEETING, request); | public ActionForward load(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { CenterCustActionForm actionForm = (CenterCustActionForm) form; doCleanUp(actionForm, request); SessionUtils.removeAttribute(CustomerConstants.CUSTOMER_MEETING, request); loadCreateMasterData(actionForm, request); actionForm.setMfiJoiningDate(DateHelper.getCurrentDate(getUserContext(request).getPereferedLocale())); return mapping.findForward(ActionForwards.load_success.toString()); } | 45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/d942e5c715c1dd9904b26491bbaeaf08f2cc972f/CenterCustAction.java/buggy/mifos/src/org/mifos/application/customer/center/struts/action/CenterCustAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
1262,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
1082,
202,
2940,
18572,
590,
16,
12446,
766,
13,
1082,
202,
15069,
1185,
288,
202,
202,
8449,
39,
641,
1803,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
1262,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
1082,
202,
2940,
18572,
590,
16,
12446,
766,
13,
1082,
202,
15069,
1185,
288,
202,
202,
8449,
39,
641,
1803,
1... |
AST tmp2448_AST_in = (AST)_t; | AST tmp2447_AST_in = (AST)_t; | public final void sqlexpression(AST _t) throws RecognitionException { AST sqlexpression_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OR: { AST __t2432 = _t; AST tmp2429_AST_in = (AST)_t; match(_t,OR); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; sqlexpression(_t); _t = _retTree; _t = __t2432; _t = _t.getNextSibling(); break; } case AND: { AST __t2433 = _t; AST tmp2430_AST_in = (AST)_t; match(_t,AND); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; sqlexpression(_t); _t = _retTree; _t = __t2433; _t = _t.getNextSibling(); break; } case NOT: { AST __t2434 = _t; AST tmp2431_AST_in = (AST)_t; match(_t,NOT); _t = _t.getFirstChild(); sqlexpression(_t); _t = _retTree; _t = __t2434; _t = _t.getNextSibling(); break; } case MATCHES: { AST __t2435 = _t; AST tmp2432_AST_in = (AST)_t; match(_t,MATCHES); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2435; _t = _t.getNextSibling(); break; } case BEGINS: { AST __t2437 = _t; AST tmp2433_AST_in = (AST)_t; match(_t,BEGINS); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2437; _t = _t.getNextSibling(); break; } case CONTAINS: { AST __t2439 = _t; AST tmp2434_AST_in = (AST)_t; match(_t,CONTAINS); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2439; _t = _t.getNextSibling(); break; } case EQ: { AST __t2441 = _t; AST tmp2435_AST_in = (AST)_t; match(_t,EQ); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2441; _t = _t.getNextSibling(); break; } case NE: { AST __t2443 = _t; AST tmp2436_AST_in = (AST)_t; match(_t,NE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2443; _t = _t.getNextSibling(); break; } case GTHAN: { AST __t2445 = _t; AST tmp2437_AST_in = (AST)_t; match(_t,GTHAN); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2445; _t = _t.getNextSibling(); break; } case GE: { AST __t2447 = _t; AST tmp2438_AST_in = (AST)_t; match(_t,GE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2447; _t = _t.getNextSibling(); break; } case LTHAN: { AST __t2449 = _t; AST tmp2439_AST_in = (AST)_t; match(_t,LTHAN); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2449; _t = _t.getNextSibling(); break; } case LE: { AST __t2451 = _t; AST tmp2440_AST_in = (AST)_t; match(_t,LE); _t = _t.getFirstChild(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else if ((_t.getType()==Sql_comp_query)) { sql_comp_query(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t2451; _t = _t.getNextSibling(); break; } case EXISTS: { AST __t2453 = _t; AST tmp2441_AST_in = (AST)_t; match(_t,EXISTS); _t = _t.getFirstChild(); AST tmp2442_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); selectstatea(_t); _t = _retTree; AST tmp2443_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2453; _t = _t.getNextSibling(); break; } case Sql_begins: { AST __t2454 = _t; AST tmp2444_AST_in = (AST)_t; match(_t,Sql_begins); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp2445_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case BEGINS: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2446_AST_in = (AST)_t; match(_t,BEGINS); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; _t = __t2454; _t = _t.getNextSibling(); break; } case Sql_between: { AST __t2456 = _t; AST tmp2447_AST_in = (AST)_t; match(_t,Sql_between); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp2448_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case BETWEEN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2449_AST_in = (AST)_t; match(_t,BETWEEN); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; AST tmp2450_AST_in = (AST)_t; match(_t,AND); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; _t = __t2456; _t = _t.getNextSibling(); break; } case Sql_in: { AST __t2458 = _t; AST tmp2451_AST_in = (AST)_t; match(_t,Sql_in); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp2452_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2453_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getNextSibling(); AST tmp2454_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SELECT: { selectstatea(_t); _t = _retTree; break; } case LEXDATE: case NUMBER: case QSTRING: case BIGENDIAN: case EXCLUSIVELOCK: case FALSE_KW: case FINDCASESENSITIVE: case FINDGLOBAL: case FINDNEXTOCCURRENCE: case FINDPREVOCCURRENCE: case FINDSELECT: case FINDWRAPAROUND: case HOSTBYTEORDER: case LITTLEENDIAN: case NO: case NOLOCK: case NOWAIT: case NULL_KW: case READAVAILABLE: case READEXACTNUM: case SEARCHSELF: case SEARCHTARGET: case SHARELOCK: case TRUE_KW: case USERID: case WINDOWDELAYEDMINIMIZE: case WINDOWMAXIMIZED: case WINDOWMINIMIZED: case WINDOWNORMAL: case YES: case UNKNOWNVALUE: case Field_ref: case FUNCTIONCALLTYPE: case GETATTRCALLTYPE: case PROCEDURECALLTYPE: case SAXCOMPLETE: case SAXPARSERERROR: case SAXRUNNING: case SAXUNINITIALIZED: case SETATTRCALLTYPE: case ROWUNMODIFIED: case ROWDELETED: case ROWMODIFIED: case ROWCREATED: { sql_in_val(_t); _t = _retTree; { _loop2462: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2455_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sql_in_val(_t); _t = _retTree; } else { break _loop2462; } } while (true); } break; } default: { throw new NoViableAltException(_t); } } } AST tmp2456_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2458; _t = _t.getNextSibling(); break; } case Sql_like: { AST __t2463 = _t; AST tmp2457_AST_in = (AST)_t; match(_t,Sql_like); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp2458_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case LIKE: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2459_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ESCAPE: { AST tmp2460_AST_in = (AST)_t; match(_t,ESCAPE); _t = _t.getNextSibling(); sqlscalar(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2463; _t = _t.getNextSibling(); break; } case Sql_null_test: { AST __t2466 = _t; AST tmp2461_AST_in = (AST)_t; match(_t,Sql_null_test); _t = _t.getFirstChild(); AST tmp2462_AST_in = (AST)_t; match(_t,IS); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOT: { AST tmp2463_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); break; } case NULL_KW: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp2464_AST_in = (AST)_t; match(_t,NULL_KW); _t = _t.getNextSibling(); _t = __t2466; _t = _t.getNextSibling(); break; } default: if (_t==null) _t=ASTNULL; if ((_tokenSet_40.member(_t.getType()))) { sqlscalar(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/JPTreeParser.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4744,
4149,
1337,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4744,
4149,
1337,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4744,
4149,
1337,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4744,
4149,
1337,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... |
if ( featureID >= 0 ) | switch ( featureID ) | public NotificationChain eInverseRemove( InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs ) { if ( featureID >= 0 ) { switch ( eDerivedStructuralFeatureID( featureID, baseClass ) ) { case ComponentPackage.NEEDLE__LINE_ATTRIBUTES : return basicSetLineAttributes( null, msgs ); default : return eDynamicInverseRemove( otherEnd, featureID, baseClass, msgs ); } } return eBasicSetContainer( null, featureID, msgs ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/036e8c78765730b146e5854b9d6c397a296fed86/NeedleImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/NeedleImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3186,
8029,
1308,
1638,
16,
1082,
202,
474,
6966,
16,
1659,
23955,
16,
27050,
8733,
262,
202,
95,
202,
202,
430,
261,
6966,
1545,
374,
262,
202,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3186,
8029,
1308,
1638,
16,
1082,
202,
474,
6966,
16,
1659,
23955,
16,
27050,
8733,
262,
202,
95,
202,
202,
430,
261,
6966,
1545,
374,
262,
202,
2... |
Log.write(Conversions.pagesToBytes(Plan.getPagesUsed())>>10); | Log.write(Conversions.pagesToBytes(Plan.getPagesUsed()).toWord().rshl(10).toInt()); | private final void baseGlobalPrepare(long start) { Statistics.gcCount++; gcStartTime = start; if ((Options.verbose == 1) || (Options.verbose == 2)) { Log.write("[GC "); Log.write(Statistics.gcCount); if (Options.verbose == 1) { Log.write(" Start "); Log.write(VM_Interface.cyclesToSecs(gcStartTime - bootTime)); Log.write(" s"); } else { Log.write(" Start "); Log.write(VM_Interface.cyclesToMillis(gcStartTime - bootTime)); Log.write(" ms"); } Log.write(" "); Log.write(Conversions.pagesToBytes(Plan.getPagesUsed())>>10); Log.write(" KB "); Log.flush(); } if (Options.verbose > 2) { Log.write("Collection "); Log.write(Statistics.gcCount); Log.write(": reserved = "); writePages(Plan.getPagesReserved(), MB_PAGES); Log.write(" total = "); writePages(getTotalPages(), MB_PAGES); Log.writeln(); Log.write(" Before Collection: "); MemoryResource.showUsage(MB); if (Options.verbose >= 4) { Log.write(" "); MemoryResource.showUsage(PAGES); } } globalPrepare(); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/e43d7e2016a91361127c8fb9db97d6fb31546065/StopTheWorldGC.java/buggy/MMTk/src/org/mmtk/plan/StopTheWorldGC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
918,
1026,
5160,
7543,
12,
5748,
787,
13,
288,
565,
22964,
18,
13241,
1380,
9904,
31,
565,
8859,
13649,
273,
787,
31,
565,
309,
14015,
1320,
18,
11369,
422,
404,
13,
747,
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,
3238,
727,
918,
1026,
5160,
7543,
12,
5748,
787,
13,
288,
565,
22964,
18,
13241,
1380,
9904,
31,
565,
8859,
13649,
273,
787,
31,
565,
309,
14015,
1320,
18,
11369,
422,
404,
13,
747,
261... |
target[0] = new CDebugTarget( launch, ICDebugTargetType.TARGET_TYPE_LOCAL_ATTACH, | target[0] = new CDebugTarget( launch, ICDebugTargetType.TARGET_TYPE_LOCAL_RUN, | public void run( IProgressMonitor m ) { target[0] = new CDebugTarget( launch, ICDebugTargetType.TARGET_TYPE_LOCAL_ATTACH, cdiTarget, name, null, project, false, true ); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/97fc7f02f379551586610a36ac715d2aefcbf893/CDebugModel.java/clean/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
467,
5491,
7187,
312,
262,
1082,
202,
95,
9506,
202,
3299,
63,
20,
65,
273,
394,
385,
2829,
2326,
12,
8037,
16,
17322,
9506,
225,
26899,
2829,
2326,
559,
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,
1875,
202,
482,
918,
1086,
12,
467,
5491,
7187,
312,
262,
1082,
202,
95,
9506,
202,
3299,
63,
20,
65,
273,
394,
385,
2829,
2326,
12,
8037,
16,
17322,
9506,
225,
26899,
2829,
2326,
559,
18,
... |
return cu.getOriginalElement().getUnderlyingResource(); | return cu.getOriginalElement().getResource(); | private IResource getResource(IJavaElement element) throws JavaModelException { if (element instanceof IMember) { ICompilationUnit cu = ((IMember)element).getCompilationUnit(); if (cu != null) { if (cu.isWorkingCopy()) { return cu.getOriginalElement().getUnderlyingResource(); } else { return cu.getUnderlyingResource(); } } } return element.getUnderlyingResource();} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/93b35a5a711d0edb75c141799c4443c91fb39f10/SearchEngine.java/buggy/org.eclipse.jdt.core/search/org/eclipse/jdt/core/search/SearchEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
467,
1420,
5070,
12,
45,
5852,
1046,
930,
13,
1216,
5110,
1488,
503,
288,
202,
430,
261,
2956,
1276,
467,
4419,
13,
288,
202,
202,
45,
19184,
2802,
15985,
273,
14015,
3445,
2558,
13,
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,
3238,
467,
1420,
5070,
12,
45,
5852,
1046,
930,
13,
1216,
5110,
1488,
503,
288,
202,
430,
261,
2956,
1276,
467,
4419,
13,
288,
202,
202,
45,
19184,
2802,
15985,
273,
14015,
3445,
2558,
13,
2... |
int in = (int) (((double)tin*10.0) / (divby*(double)(i+1))); int out =(int) (((double)tout*10.0) /(divby*(double)(i+1))); | int in = (int) ((tin*10.0) / (divby*(i+1))); int out =(int) ((tout*10.0) /(divby*(i+1))); | private void _dumpInfo() { rotate(); //DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, Locale.FRANCE); //System.err.println(DateFormat.getDateInstance().format(new Date())); System.err.println(new Date()); Iterator it = targets.keySet().iterator(); final double divby = STATISTICS_DURATION_S*1024; while (it.hasNext()) { String key = (String)it.next(); int inres[] = ((StatisticEntry)targets.get(key)).getRecieved(); int outres[] = ((StatisticEntry)targets.get(key)).getSent(); System.err.print((key + " ").substring(0,22) + ": "); int tin = 0; int tout = 0; for (int i = 0 ; i < inres.length ; i++) { // in/out in 102.4 bytes (hecto-bytes) tin += inres[i]; tout += outres[i]; int in = (int) (((double)tin*10.0) / (divby*(double)(i+1))); int out =(int) (((double)tout*10.0) /(divby*(double)(i+1))); System.err.print("i:" + (in/10) + "." + (in%10)); System.err.print(" o:" + (out/10) + "." + (out%10)); System.err.print(" \t"); } System.err.println(); } System.err.println(); } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/IOStatisticCollector.java/buggy/src/freenet/io/comm/IOStatisticCollector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
389,
8481,
966,
1435,
288,
202,
202,
20342,
5621,
202,
202,
759,
11878,
3013,
273,
18371,
18,
588,
1626,
1442,
12,
11878,
18,
14639,
16,
6458,
18,
9981,
4722,
1769,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
389,
8481,
966,
1435,
288,
202,
202,
20342,
5621,
202,
202,
759,
11878,
3013,
273,
18371,
18,
588,
1626,
1442,
12,
11878,
18,
14639,
16,
6458,
18,
9981,
4722,
1769,
202,
... |
public IWorkbenchWindow getActiveWorkbenchWindow() { // Display will be null if SWT has not been initialized or // this method was called from wrong thread. Display display = Display.getCurrent(); if (display == null) return null; // Look at the current shell and up its parent // hierarchy for a workbench window. Control shell = display.getActiveShell(); while (shell != null) { Object data = shell.getData(); if (data instanceof IWorkbenchWindow) return (IWorkbenchWindow) data; shell = shell.getParent(); } // Look for the window that was last known being // the active one WorkbenchWindow win = getActivatedWindow(); if (win != null) { return win; } // Look at all the shells and pick the first one // that is a workbench window. Shell shells[] = display.getShells(); for (int i = 0; i < shells.length; i++) { Object data = shells[i].getData(); if (data instanceof IWorkbenchWindow) return (IWorkbenchWindow) data; } // Can't find anything! return null; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c982c620ee74d8f88359cf86b9700d8f8f07c71a/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2421,
22144,
3829,
11960,
2421,
22144,
3829,
1435,
288,
202,
202,
759,
9311,
903,
506,
446,
309,
348,
8588,
711,
486,
2118,
6454,
578,
202,
202,
759,
333,
707,
1703,
2566,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2421,
22144,
3829,
11960,
2421,
22144,
3829,
1435,
288,
202,
202,
759,
9311,
903,
506,
446,
309,
348,
8588,
711,
486,
2118,
6454,
578,
202,
202,
759,
333,
707,
1703,
2566,
... | ||
if(getPattern()==null) return AlwaysMatch.v; if(!getPattern().matchesMethod(msm.getMethod())) return null; | if(!getPattern().matchesMethodRef(msm.getMethodRef())) return null; | protected Residue matchesAt(ShadowMatch sm) { if(!(sm instanceof MethodCallShadowMatch)) return null; MethodCallShadowMatch msm=(MethodCallShadowMatch) sm; // FIXME: Hack should be removed when patterns are added if(getPattern()==null) return AlwaysMatch.v; if(!getPattern().matchesMethod(msm.getMethod())) return null; return AlwaysMatch.v; } | 236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/997f4e7c5dc7eab7f3734a2c9600492132debb26/MethodCall.java/buggy/aop/abc/src/abc/weaving/aspectinfo/MethodCall.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1124,
23965,
1885,
861,
12,
12957,
2060,
3029,
13,
288,
202,
430,
12,
5,
12,
4808,
1276,
2985,
1477,
12957,
2060,
3719,
327,
446,
31,
202,
12592,
12957,
2060,
4086,
81,
28657,
12592... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1124,
23965,
1885,
861,
12,
12957,
2060,
3029,
13,
288,
202,
430,
12,
5,
12,
4808,
1276,
2985,
1477,
12957,
2060,
3719,
327,
446,
31,
202,
12592,
12957,
2060,
4086,
81,
28657,
12592... |
for (;;) { if (obj instanceof NativeWith) { Scriptable withObj = obj.getPrototype(); | do { if (scope instanceof NativeWith) { Scriptable withObj = scope.getPrototype(); | public static Scriptable bind(Context cx, Scriptable scope, String id) { Scriptable obj = scope; Scriptable firstXMLObject = null; for (;;) { if (obj instanceof NativeWith) { Scriptable withObj = obj.getPrototype(); if (withObj instanceof XMLObject) { XMLObject xmlObject = (XMLObject)withObj; if (xmlObject.ecmaHas(cx, id)) { return xmlObject; } if (firstXMLObject == null) { firstXMLObject = xmlObject; } } else { if (ScriptableObject.hasProperty(withObj, id)) { return withObj; } } } else { if (ScriptableObject.hasProperty(obj, id)) { return obj; } } obj = obj.getParentScope(); if (obj == null) { // XML objects always bind so return it if it was found return firstXMLObject; } } } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/cef67b9e54df90242c6b61cd47b35f1810416ada/ScriptRuntime.java/clean/src/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
22780,
1993,
12,
1042,
9494,
16,
22780,
2146,
16,
514,
612,
13,
565,
288,
3639,
22780,
1081,
273,
2146,
31,
3639,
22780,
1122,
4201,
921,
273,
446,
31,
3639,
364,
261,
25708,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22780,
1993,
12,
1042,
9494,
16,
22780,
2146,
16,
514,
612,
13,
565,
288,
3639,
22780,
1081,
273,
2146,
31,
3639,
22780,
1122,
4201,
921,
273,
446,
31,
3639,
364,
261,
25708,
... |
} else if (str.indexOf("FIXME: what is the message that indicates server has stoping") != -1) { | } else if (str.indexOf("FIXME: what is the message that indicates server is stopping") != -1) { | public void run() { try { String str; while ((str = forrestOutput.readLine()) != null) { // FIXME: Output should be sent to log not console System.out.println(str); if (str.indexOf("init-props:") != -1) { status = CONFIGURING; } else if (str.indexOf("run_default_jetty:") != -1 || str.indexOf("run_custom_jetty:") != -1) { status = STARTING; } else if (str.indexOf("EVENT Started org.mortbay.jetty.Server") != -1) { status = RUNNING; } else if (str.indexOf("FIXME: what is the message that indicates server has stoping") != -1) { status = STOPPING; } else if (str.indexOf("FIXME: what is the message that indicates server has stopped") != -1) { status = STOPPED; } else if (str.indexOf("org.mortbay.util.MultiException[java.net.BindException: Address already in use: JVM_Bind]") != -1) { exceptionMessage = str; status = EXCEPTION; } } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } | 6140 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6140/75e07f99b02ce58458c7732680e216dd77ddc6fd/ForrestRunner.java/clean/tools/eclipse/src/org/apache/forrest/ForrestRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
698,
288,
1082,
202,
780,
609,
31,
1082,
202,
17523,
14015,
701,
273,
364,
8792,
1447,
18,
896,
1670,
10756,
480,
446,
13,
288,
9506,
202,
759,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
202,
202,
698,
288,
1082,
202,
780,
609,
31,
1082,
202,
17523,
14015,
701,
273,
364,
8792,
1447,
18,
896,
1670,
10756,
480,
446,
13,
288,
9506,
202,
759,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.