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 |
|---|---|---|---|---|---|---|
for (Iterator i=bundles.keySet().iterator();i.hasNext();) { Integer initLevel = ((Integer) i.next()); | for (Iterator i=bundles.entrySet().iterator();i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); Integer initLevel = (Integer) entry.getKey(); | public String[] create() throws IOException { ArrayList args = new ArrayList(); // Create xargs file File initFile = new File(instanceDir, "init.xargs"); File restartFile = new File(instanceDir, "restart.xargs"); // Start empty framework if (attributes.containsKey(IOsgiLaunchConfigurationConstants.ATTR_OSGI_INSTANCE_INIT) && ((Boolean) attributes.get(IOsgiLaunchConfigurationConstants.ATTR_OSGI_INSTANCE_INIT)).booleanValue()) { args.add("-init"); } // Set framework dir writeProperty(initFile, PROPERTY_FRAMEWORK_DIR, instanceDir.getAbsolutePath()+"/fwdir", false); writeProperty(restartFile, PROPERTY_FRAMEWORK_DIR, instanceDir.getAbsolutePath()+"/fwdir", false); // System properties Map properties = (Map) attributes.get(IOsgiLaunchConfigurationConstants.ATTR_PROPERTIES); if (properties != null) { for(Iterator i=properties.entrySet().iterator();i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); writeProperty(initFile, (String) entry.getKey(), (String) entry.getValue(), true); writeProperty(restartFile, (String) entry.getKey(), (String) entry.getValue(), true); } } writeCommand(initFile, "-init", "", true); // Add install entries int currentLevel = -1; for (Iterator i=bundles.keySet().iterator();i.hasNext();) { Integer initLevel = ((Integer) i.next()); // Set initial start level if (currentLevel != initLevel.intValue()) { writeCommand(initFile, "-initlevel", initLevel.toString(), true); currentLevel = initLevel.intValue(); } // Add bundle install entries for this start level ArrayList l = (ArrayList) bundles.get(initLevel); for (Iterator j = l.iterator() ; j.hasNext() ;) { IOsgiBundle bundle = (IOsgiBundle) j.next(); writeCommand(initFile, "-install", "file:"+bundle.getPath(), true); } } // Set start level and launch writeCommand(initFile, "-startlevel", Integer.toString(DEFAULT_STARTLEVEL), true); writeCommand(initFile, "-launch", "", true); // Add start entries for (Iterator i=bundles.keySet().iterator();i.hasNext();) { Integer initLevel = ((Integer) i.next()); // Add bundle install entries for this start level ArrayList l = (ArrayList) bundles.get(initLevel); for (Iterator j = l.iterator() ; j.hasNext() ;) { IOsgiBundle bundle = (IOsgiBundle) j.next(); writeCommand(initFile, "-start", "file:"+bundle.getPath(), true); } } return (String[]) args.toArray(new String[args.size()]); } | 14547 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14547/7570cb0eac9e8ce8f4e3cac76f377f740d5f1f8d/OsgiConfiguration.java/buggy/org.knopflerfish.eclipse.core/src/org/knopflerfish/eclipse/core/OsgiConfiguration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8526,
752,
1435,
1216,
1860,
288,
565,
2407,
833,
273,
394,
2407,
5621,
3639,
368,
1788,
619,
1968,
585,
565,
1387,
1208,
812,
273,
394,
1387,
12,
1336,
1621,
16,
315,
2738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
8526,
752,
1435,
1216,
1860,
288,
565,
2407,
833,
273,
394,
2407,
5621,
3639,
368,
1788,
619,
1968,
585,
565,
1387,
1208,
812,
273,
394,
1387,
12,
1336,
1621,
16,
315,
2738,
... |
int startChunk = Conversions.addressToMmapChunksDown(start); | int startChunk = Conversions.addressToMmapChunksDown(start); | public static void protect(Address start, int pages) { int startChunk = Conversions.addressToMmapChunksDown(start); int chunks = Conversions.pagesToMmapChunksUp(pages); int endChunk = startChunk + chunks; lock.acquire(); for (int chunk=startChunk; chunk < endChunk; chunk++) { if (mapped[chunk] == MAPPED) { Address mmapStart = Conversions.mmapChunksToAddress(chunk); if (!Memory.mprotect(mmapStart, MMAP_CHUNK_SIZE)) { lock.release(); Assert.fail("LazyMmapper.mprotect failed"); } else { if (verbose) { Log.write("mprotect succeeded at chunk "); Log.write(chunk); Log.write(" "); Log.write(mmapStart); Log.write(" with len = "); Log.writeln(MMAP_CHUNK_SIZE); } } mapped[chunk] = PROTECTED; } else { if (Assert.VERIFY_ASSERTIONS) Assert._assert(mapped[chunk] == PROTECTED); } } lock.release(); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/4c66aa27cec27f8dd5902baec018ff86d7f49ee2/LazyMmapper.java/buggy/MMTk/src/org/mmtk/utility/heap/LazyMmapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
17151,
12,
1887,
787,
16,
509,
4689,
13,
288,
565,
509,
787,
5579,
273,
735,
10169,
18,
2867,
774,
49,
1458,
14975,
4164,
12,
1937,
1769,
377,
509,
6055,
273,
735,
10169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
17151,
12,
1887,
787,
16,
509,
4689,
13,
288,
565,
509,
787,
5579,
273,
735,
10169,
18,
2867,
774,
49,
1458,
14975,
4164,
12,
1937,
1769,
377,
509,
6055,
273,
735,
10169... |
logger.debug(message.toString()); | logger.debug(String.valueOf(message)); | public void debug(Object message) { logger.debug(message.toString()); } | 47996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47996/20ccb7e664910ee2066f364bc6ef007f40ccf10f/SLF4JLog.java/buggy/src/java/org/apache/commons/logging/impl/SLF4JLog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1198,
12,
921,
883,
13,
288,
565,
1194,
18,
4148,
12,
780,
18,
1132,
951,
12,
2150,
10019,
225,
289,
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,
282,
1071,
918,
1198,
12,
921,
883,
13,
288,
565,
1194,
18,
4148,
12,
780,
18,
1132,
951,
12,
2150,
10019,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
void setAlign(String align); | void setAlign( String align ); | void setAlign(String align); | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/418b538dedc46927b62e9d884dd3fc2419ed5e34/IScriptStyle.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/script/instance/IScriptStyle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
444,
10044,
12,
780,
5689,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
444,
10044,
12,
780,
5689,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
boolean fromEval) | ErrorReporter compilationErrorReporter) | private Object compile(Scriptable scope, Reader sourceReader, String sourceString, String sourceName, int lineno, Object securityDomain, boolean returnFunction, boolean fromEval) throws IOException { if (securityDomain != null && securityController == null) { throw new IllegalArgumentException( "securityDomain should be null if setSecurityController() was never called"); } // One of sourceReader or sourceString has to be null if (!(sourceReader == null ^ sourceString == null)) Kit.codeBug(); // scope should be given if and only if compiling function if (!(scope == null ^ returnFunction)) Kit.codeBug(); CompilerEnvirons compilerEnv = new CompilerEnvirons(); compilerEnv.initFromContext(this); compilerEnv.setFromEval(fromEval); if (debugger != null) { if (sourceReader != null) { sourceString = Kit.readReader(sourceReader); sourceReader = null; } } Parser p = new Parser(compilerEnv); ScriptOrFnNode tree; if (sourceString != null) { tree = p.parse(sourceString, sourceName, lineno); } else { tree = p.parse(sourceReader, sourceName, lineno); } int syntaxErrorCount = compilerEnv.getSyntaxErrorCount(); if (syntaxErrorCount == 0) { if (returnFunction) { if (!(tree.getFunctionCount() == 1 && tree.getFirstChild() != null && tree.getFirstChild().getType() == Token.FUNCTION)) { // XXX: the check just look for the first child // and allows for more nodes after it for compatibility // with sources like function() {};;; throw new IllegalArgumentException( "compileFunction only accepts source with single JS function: "+sourceString); } } Interpreter compiler = createCompiler(); String encodedSource = p.getEncodedSource(); Object result = compiler.compile(scope, compilerEnv, tree, encodedSource, returnFunction, securityDomain); syntaxErrorCount = compilerEnv.getSyntaxErrorCount(); if (syntaxErrorCount == 0) { if (debugger != null) { if (sourceString == null) Kit.codeBug(); compiler.notifyDebuggerCompilationDone(this, result, sourceString); } return result; } } String msg = Context.getMessage1("msg.got.syntax.errors", String.valueOf(syntaxErrorCount)); throw compilerEnv.getErrorReporter(). runtimeError(msg, sourceName, lineno, null, 0); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/31ff23cd2e6b5190dbe92f81b7d5dc732adb75d6/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
4074,
12,
3651,
429,
2146,
16,
21821,
5393,
1084,
2514,
16,
514,
1084,
780,
16,
21821,
514,
28337,
16,
509,
7586,
16,
21821,
1033,
4373,
3748,
16,
1250,
327,
2083,
16,
21821,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
4074,
12,
3651,
429,
2146,
16,
21821,
5393,
1084,
2514,
16,
514,
1084,
780,
16,
21821,
514,
28337,
16,
509,
7586,
16,
21821,
1033,
4373,
3748,
16,
1250,
327,
2083,
16,
21821,
... |
return image; | return null; | public Image getColumnHeaderImage() { return image; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/1e93f90efdd1830ca8ce4d498400400142e1afd3/FieldFolder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldFolder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3421,
6716,
1864,
2040,
1435,
288,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3421,
6716,
1864,
2040,
1435,
288,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
do { int widthAtLevelOne = ( ( width > 1 ) ? (widthPowerOf2 >> 1) : widthPowerOf2 ); int heightAtLevelOne = ( ( height > 1 ) ? (heightPowerOf2 >> 1) : heightPowerOf2 ); int proxyTarget; | try { do { int widthAtLevelOne = ( ( width > 1 ) ? (widthPowerOf2 >> 1) : widthPowerOf2 ); int heightAtLevelOne = ( ( height > 1 ) ? (heightPowerOf2 >> 1) : heightPowerOf2 ); int proxyTarget; | public static void closestFit( GL gl, int target, int width, int height, int internalFormat, int format, int type, int[] newWidth, int[] newHeight ) { // Use proxy textures if OpenGL version >= 1.1 if( Double.parseDouble( gl.glGetString( GL.GL_VERSION ).trim().substring( 0, 3 ) ) >= 1.1 ) { int widthPowerOf2 = nearestPower( width ); int heightPowerOf2 = nearestPower( height ); int[] proxyWidth = new int[1]; boolean noProxyTextures = false; do { // compute level 1 width & height, clamping each at 1 int widthAtLevelOne = ( ( width > 1 ) ? (widthPowerOf2 >> 1) : widthPowerOf2 ); int heightAtLevelOne = ( ( height > 1 ) ? (heightPowerOf2 >> 1) : heightPowerOf2 ); int proxyTarget; assert( widthAtLevelOne > 0 ); assert( heightAtLevelOne > 0 ); // does width x height at level 1 & all their mipmaps fit? if( target == GL.GL_TEXTURE_2D || target == GL.GL_PROXY_TEXTURE_2D ) { proxyTarget = GL.GL_PROXY_TEXTURE_2D; gl.glTexImage2D( proxyTarget, 1, internalFormat, widthAtLevelOne, heightAtLevelOne, 0, format, type, (double[])null ); } else if( (target == GL.GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB) || (target == GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB) ) { proxyTarget = GL.GL_PROXY_TEXTURE_CUBE_MAP_ARB; gl.glTexImage2D( proxyTarget, 1, internalFormat, widthAtLevelOne, heightAtLevelOne, 0, format, type, (double[])null ); } else { assert( target == GL.GL_TEXTURE_1D || target == GL.GL_PROXY_TEXTURE_1D ); proxyTarget = GL.GL_PROXY_TEXTURE_1D; gl.glTexImage1D( proxyTarget, 1, internalFormat, widthAtLevelOne, 0, format, type, (double[])null ); } gl.glGetTexLevelParameteriv( proxyTarget, 1, GL.GL_TEXTURE_WIDTH, proxyWidth ); // does it fit? if( proxyWidth[0] == 0 ) { // nope, so try again with theses sizes if( widthPowerOf2 == 1 && heightPowerOf2 == 1 ) { /* A 1x1 texture couldn't fit for some reason so break out. This * should never happen. But things happen. The disadvantage with * this if-statement is that we will never be aware of when this * happens since it will silently branch out. */ noProxyTextures = true; break; } widthPowerOf2 = widthAtLevelOne; heightPowerOf2 = heightAtLevelOne; } // else it doese fit } while( proxyWidth[0] == 0 ); // loop must terminate // return the width & height at level 0 that fits if( !noProxyTextures ) { newWidth[0] = widthPowerOf2; newHeight[0] = heightPowerOf2; return; } } int[] maxsize = new int[1]; gl.glGetIntegerv( GL.GL_MAX_TEXTURE_SIZE, maxsize ); // clamp user's texture sizes to maximum sizes, if necessary newWidth[0] = nearestPower( width ); if( newWidth[0] > maxsize[0] ) { newWidth[0] = maxsize[0]; } newHeight[0] = nearestPower( height ); if( newHeight[0] > maxsize[0] ) { newHeight[0] = maxsize[0]; } } | 46278 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46278/d34ebafbd61123d369a1657b8e9bb2db5d45ba6a/Mipmap.java/clean/src/net/java/games/jogl/impl/mipmap/Mipmap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
9219,
14219,
12,
10252,
5118,
16,
509,
1018,
16,
509,
1835,
16,
509,
2072,
16,
509,
2713,
1630,
16,
27573,
509,
740,
16,
509,
618,
16,
509,
8526,
23542,
16,
509,
8526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
9219,
14219,
12,
10252,
5118,
16,
509,
1018,
16,
509,
1835,
16,
509,
2072,
16,
509,
2713,
1630,
16,
27573,
509,
740,
16,
509,
618,
16,
509,
8526,
23542,
16,
509,
8526,
... |
filterList.add(new UserFilter(fileList[i])); | UserFilter filter=null; try { filter = new UserFilter(fileList[i]); }catch(ParserException e) { mLog.warning("error parsing filter from file "+fileList[i]+"; exception: "+e); } if (filter!=null) { filterList.add(filter); } | private ProgramFilter[] createFilterList() { ArrayList filterList = new ArrayList(); /* Add default filters. The user may not remove them. */ filterList.add(new ShowAllFilter()); filterList.add(new PluginFilter()); /* Read the available filters from the file system and add them to the array */ if (mFilterDirectory==null) { throw new NullPointerException("directory is null"); } File[] fileList = getFilterFiles(); if (fileList!=null) { for (int i=0;i<fileList.length;i++) { filterList.add(new UserFilter(fileList[i])); } } /* Create the array */ ProgramFilter[] filterArr = new ProgramFilter[filterList.size()]; filterList.toArray(filterArr); /* Sort the list*/ File inxFile=new File(mFilterDirectory,FILTER_INDEX); BufferedReader inxIn=null; try { inxIn=new BufferedReader(new FileReader(inxFile)); int cnt=0; String curFilterName=null; curFilterName=inxIn.readLine(); while (curFilterName!=null){ for (int i=cnt;i<filterArr.length;i++) { if (filterArr[i].toString().equalsIgnoreCase(curFilterName)) { //swap i<-->cnt ProgramFilter h = filterArr[cnt]; filterArr[cnt] = filterArr[i]; filterArr[i] = h; cnt++; break; } } curFilterName=inxIn.readLine(); } }catch (FileNotFoundException e) { // ignore }catch (IOException e) { e.printStackTrace(); }finally{ try{ if (inxIn!=null) inxIn.close();}catch(IOException e){}; } return filterArr; } | 9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/ea5071d42d809ac32c624ef83985dc051b5f4903/FilterList.java/buggy/tvbrowser/src/tvbrowser/core/filters/FilterList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
13586,
1586,
8526,
752,
1586,
682,
1435,
288,
565,
2407,
1034,
682,
273,
394,
2407,
5621,
3639,
1748,
1436,
805,
3415,
18,
1021,
729,
2026,
486,
1206,
2182,
18,
1195,
565,
1034,
682... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13586,
1586,
8526,
752,
1586,
682,
1435,
288,
565,
2407,
1034,
682,
273,
394,
2407,
5621,
3639,
1748,
1436,
805,
3415,
18,
1021,
729,
2026,
486,
1206,
2182,
18,
1195,
565,
1034,
682... |
public AdminButtonParser ( String prefix, String suffix, int perm_set_id, int perm_set ) { super(prefix,suffix) ; set_id = perm_set_id ; set = perm_set ; } | public AdminButtonParser( UserDomainObject user, String prefix, String suffix, int perm_set_id, int perm_set ) { this.user = user ; this.prefix = prefix ; this.suffix = suffix ; set_id = perm_set_id; set = perm_set; } | public AdminButtonParser ( String prefix, String suffix, int perm_set_id, int perm_set ) { super(prefix,suffix) ; set_id = perm_set_id ; set = perm_set ; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/618d5d54faf5e3c0770e526300f1e7af31025ba1/AdminButtonParser.java/buggy/server/src/imcode/server/parser/AdminButtonParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
7807,
3616,
2678,
261,
514,
1633,
16,
514,
3758,
16,
509,
4641,
67,
542,
67,
350,
16,
509,
4641,
67,
542,
262,
288,
202,
202,
9565,
12,
3239,
16,
8477,
13,
274,
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,
7807,
3616,
2678,
261,
514,
1633,
16,
514,
3758,
16,
509,
4641,
67,
542,
67,
350,
16,
509,
4641,
67,
542,
262,
288,
202,
202,
9565,
12,
3239,
16,
8477,
13,
274,
202,
202,
... |
context.pencil.clip(); | Object data[]; data = context.popOperands(3); | public void execute(PAContext context) throws PainterException { context.pencil.clip(); } | 3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/3cd4a973dbdca1f7072d8e189d388c5a878cc9a6/PAContext.java/clean/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
501,
273,
819,
18,
5120,
3542,
5708,
12,
23,
1769,
5411,
289,
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,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
501,
273,
819,
18,
5120,
3542,
5708,
12,
23,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100... |
throwBacktrack(firstOffset); | throwBacktrack(firstOffset, LA(1).getEndOffset(), LA(1).getLineNumber()); | protected IASTDeclaration simpleDeclaration( SimpleDeclarationStrategy strategy, IASTScope scope, IASTTemplate ownerTemplate, CompletionKind overideKind, boolean fromCatchHandler, KeywordSetKey overrideKey) throws BacktrackException, EndOfFileException { IToken firstToken = LA(1); int firstOffset = firstToken.getOffset(); if( firstToken.getType() == IToken.tLBRACE ) throwBacktrack(firstToken.getOffset()); DeclarationWrapper sdw = new DeclarationWrapper(scope, firstToken.getOffset(), firstToken.getLineNumber(), ownerTemplate); firstToken = null; // necessary for scalability CompletionKind completionKindForDeclaration = getCompletionKindForDeclaration(scope, overideKind); setCompletionValues( scope, completionKindForDeclaration, KeywordSetKey.DECL_SPECIFIER_SEQUENCE ); declSpecifierSeq(sdw, false, strategy == SimpleDeclarationStrategy.TRY_CONSTRUCTOR, completionKindForDeclaration, overrideKey ); IASTSimpleTypeSpecifier simpleTypeSpecifier = null; if (sdw.getTypeSpecifier() == null && sdw.getSimpleType() != IASTSimpleTypeSpecifier.Type.UNSPECIFIED ) try { simpleTypeSpecifier = astFactory.createSimpleTypeSpecifier( scope, sdw.getSimpleType(), sdw.getName(), sdw.isShort(), sdw.isLong(), sdw.isSigned(), sdw.isUnsigned(), sdw.isTypeNamed(), sdw.isComplex(), sdw.isImaginary(), sdw.isGloballyQualified(), sdw.getExtensionParameters()); sdw.setTypeSpecifier( simpleTypeSpecifier); sdw.setTypeName( null ); } catch (Exception e1) { logException( "simpleDeclaration:createSimpleTypeSpecifier", e1 ); //$NON-NLS-1$ throwBacktrack(firstOffset); } try { Declarator declarator = null; if (LT(1) != IToken.tSEMI) { declarator = initDeclarator(sdw, strategy, completionKindForDeclaration, constructInitializersInDeclarations ); while (LT(1) == IToken.tCOMMA) { consume(); initDeclarator(sdw, strategy, completionKindForDeclaration, constructInitializersInDeclarations ); } } boolean hasFunctionBody = false; boolean hasFunctionTryBlock = false; boolean consumedSemi = false; switch (LT(1)) { case IToken.tSEMI : consume(IToken.tSEMI); consumedSemi = true; break; case IToken.t_try : consume( IToken.t_try ); if( LT(1) == IToken.tCOLON ) ctorInitializer( declarator ); hasFunctionTryBlock = true; declarator.setFunctionTryBlock( true ); break; case IToken.tCOLON : ctorInitializer(declarator); break; case IToken.tLBRACE: break; case IToken.tRPAREN: if( ! fromCatchHandler ) throwBacktrack(firstOffset); break; default: throwBacktrack(firstOffset); } if( ! consumedSemi ) { if( LT(1) == IToken.tLBRACE ) { declarator.setHasFunctionBody(true); hasFunctionBody = true; } if( hasFunctionTryBlock && ! hasFunctionBody ) throwBacktrack(firstOffset); } List l = null; try { l = sdw.createASTNodes(astFactory); } catch (ASTSemanticException e) { if( e.getProblem() == null ) { IProblem p = problemFactory.createProblem( IProblem.SYNTAX_ERROR, sdw.getStartingOffset(), lastToken != null ? lastToken.getEndOffset() : 0, sdw.getStartingLine(), scanner.getCurrentFilename(), EMPTY_STRING, false, true ); throwBacktrack( p ); } else { throwBacktrack(e.getProblem()); } } catch( Exception e ) { logException( "simpleDecl", e ); //$NON-NLS-1$ throwBacktrack(firstOffset); } if (hasFunctionBody && l.size() != 1) { throwBacktrack(firstOffset); //TODO Should be an IProblem } if (!l.isEmpty()) // no need to do this unless we have a declarator { if (!hasFunctionBody || fromCatchHandler) { IASTDeclaration declaration = null; for( int i = 0; i < l.size(); ++i ) { declaration = (IASTDeclaration)l.get(i); ((IASTOffsetableElement)declaration).setEndingOffsetAndLineNumber( lastToken.getEndOffset(), lastToken.getLineNumber()); declaration.acceptElement( requestor, astFactory.getReferenceManager() ); if( sdw.getTypeSpecifier() instanceof IASTSimpleTypeSpecifier ) ((IASTSimpleTypeSpecifier)sdw.getTypeSpecifier()).releaseReferences( astFactory.getReferenceManager() ); } return declaration; } IASTDeclaration declaration = (IASTDeclaration)l.get(0); endDeclaration( declaration ); declaration.enterScope( requestor, astFactory.getReferenceManager() ); if( sdw.getTypeSpecifier() instanceof IASTSimpleTypeSpecifier ) ((IASTSimpleTypeSpecifier)sdw.getTypeSpecifier()).releaseReferences( astFactory.getReferenceManager() ); if ( !( declaration instanceof IASTScope ) ) throwBacktrack(firstOffset); handleFunctionBody((IASTScope)declaration ); ((IASTOffsetableElement)declaration).setEndingOffsetAndLineNumber( lastToken.getEndOffset(), lastToken.getLineNumber()); declaration.exitScope( requestor, astFactory.getReferenceManager() ); if( hasFunctionTryBlock ) catchHandlerSequence( scope ); return declaration; } try { if( sdw.getTypeSpecifier() != null ) { IASTAbstractTypeSpecifierDeclaration declaration = astFactory.createTypeSpecDeclaration( sdw.getScope(), sdw.getTypeSpecifier(), ownerTemplate, sdw.getStartingOffset(), sdw.getStartingLine(), lastToken.getEndOffset(), lastToken.getLineNumber(), sdw.isFriend()); declaration.acceptElement(requestor, astFactory.getReferenceManager()); return declaration; } } catch (Exception e1) { logException( "simpleDeclaration:createTypeSpecDeclaration", e1 ); //$NON-NLS-1$ throwBacktrack(firstOffset); } return null; } catch( BacktrackException be ) { if( simpleTypeSpecifier != null ) simpleTypeSpecifier.releaseReferences(astFactory.getReferenceManager()); throwBacktrack(be); return null; } catch( EndOfFileException eof ) { if( simpleTypeSpecifier != null ) simpleTypeSpecifier.releaseReferences(astFactory.getReferenceManager()); throw eof; } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/36ec31dca2ce38ed47d0f35d5d3993c54f09c5ff/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
6094,
4143,
6094,
12,
3639,
4477,
6094,
4525,
6252,
16,
3639,
467,
9053,
3876,
2146,
16,
3639,
467,
9053,
2283,
3410,
2283,
16,
20735,
5677,
1879,
831,
5677,
16,
1250,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
6094,
4143,
6094,
12,
3639,
4477,
6094,
4525,
6252,
16,
3639,
467,
9053,
3876,
2146,
16,
3639,
467,
9053,
2283,
3410,
2283,
16,
20735,
5677,
1879,
831,
5677,
16,
1250,
62... |
p = (PortletComponent) components.get(i); if (p.getVisible()) { p.doRender(event); | if (!components.isEmpty()) { out.println("<table width=\"100%\" cellspacing=\"2\" cellpadding=\"0\"> <!-- START COLUMN -->"); out.println("<tbody>"); for (int i=0;i<components.size();i++) { out.print("<tr><td valign=\"top\">"); p = (PortletComponent) components.get(i); if (p.getVisible()) { p.doRender(event); } out.println("</td></tr>"); | public void doRender(GridSphereEvent event) throws PortletLayoutException, IOException { PortletResponse res = event.getPortletResponse(); PrintWriter out = res.getWriter(); PortletComponent p = null; // starting of the gridtable out.println("<table width=\"100%\" cellspacing=\"2\" cellpadding=\"0\"> <!-- START COLUMN -->"); out.println("<tbody>"); for (int i=0;i<components.size();i++) { out.print("<tr><td valign=\"top\">"); p = (PortletComponent) components.get(i); if (p.getVisible()) { p.doRender(event); //out.println("comp: "+i); } out.println("</td></tr>"); } out.println("</tbody>"); out.println("</table> <!-- END COLUMN -->"); } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/5ae4600d8ab1fbecd88304fe87f07985cb876694/PortletColumnLayout.java/buggy/src/org/gridlab/gridsphere/layout/PortletColumnLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3420,
12,
6313,
22747,
1133,
871,
13,
1216,
21305,
3744,
503,
16,
1860,
288,
3639,
21305,
1064,
400,
273,
871,
18,
588,
18566,
1064,
5621,
3639,
14071,
596,
273,
400,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3420,
12,
6313,
22747,
1133,
871,
13,
1216,
21305,
3744,
503,
16,
1860,
288,
3639,
21305,
1064,
400,
273,
871,
18,
588,
18566,
1064,
5621,
3639,
14071,
596,
273,
400,
18,
... |
ret = intersection(r); | ret = new EmptyRegion(rank); | public region difference(region r ) { assert r != null; region ret = null; if (r instanceof ContiguousRange) { ContiguousRange cr = (ContiguousRange) r; if (lo == cr.lo || hi == cr.hi) { ret = intersection(r); } } if (ret == null) ret = super.difference(r); return ret; } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/06a286b073a1f0282e240b47a98ec724b0e756aa/ContiguousRange.java/clean/x10.runtime/src/x10/array/ContiguousRange.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3020,
7114,
12,
6858,
436,
262,
288,
202,
202,
11231,
436,
480,
446,
31,
202,
202,
6858,
325,
273,
446,
31,
202,
202,
430,
261,
86,
1276,
1816,
10623,
2655,
13,
288,
1082,
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,
3020,
7114,
12,
6858,
436,
262,
288,
202,
202,
11231,
436,
480,
446,
31,
202,
202,
6858,
325,
273,
446,
31,
202,
202,
430,
261,
86,
1276,
1816,
10623,
2655,
13,
288,
1082,
5... |
if (jj_3R_298()) { | if (jj_scan_token(100)) { | final private boolean jj_3R_276() { Token xsp; xsp = jj_scanpos; if (jj_3R_298()) { jj_scanpos = xsp; if (jj_3R_299()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_265()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/d42ce7980bc2030e88ae13be5cf1b864eee291da/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5324,
26,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
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,
727,
3238,
1250,
10684,
67,
23,
54,
67,
5324,
26,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
... |
return storeTemplate(template, true); | return storeTemplate(template, true, true); | public PresentationTemplate storeTemplate(final PresentationTemplate template) { return storeTemplate(template, true); } | 48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/c243b2a2c04bc8e6d1705ecbece92c2daf2ac79d/PresentationManagerImpl.java/clean/presentation/api-impl/src/java/org/theospi/portfolio/presentation/model/impl/PresentationManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
25130,
367,
2283,
1707,
2283,
12,
6385,
25130,
367,
2283,
1542,
13,
288,
1377,
327,
1707,
2283,
12,
3202,
16,
638,
16,
638,
1769,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
1071,
25130,
367,
2283,
1707,
2283,
12,
6385,
25130,
367,
2283,
1542,
13,
288,
1377,
327,
1707,
2283,
12,
3202,
16,
638,
16,
638,
1769,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Log.setApplicationVersionDate("$Id: BrowserControlMozillaShim.java,v 1.3 1999-09-03 19:28:45 edburns%acm.org Exp $"); | Log.setApplicationVersionDate("$Id: BrowserControlMozillaShim.java,v 1.4 1999-10-08 00:48:02 edburns%acm.org Exp $"); | public static void main(String [] args){ Assert.setEnabled(true); BrowserControlMozillaShim me = new BrowserControlMozillaShim(); Log.setApplicationName("BrowserControlMozillaShim"); Log.setApplicationVersion("0.0"); Log.setApplicationVersionDate("$Id: BrowserControlMozillaShim.java,v 1.3 1999-09-03 19:28:45 edburns%acm.org Exp $"); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/9b8cfd3205d2687376e8f6ee565df985044e3651/BrowserControlMozillaShim.java/clean/java/webclient/classes/org/mozilla/webclient/BrowserControlMozillaShim.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
918,
2774,
12,
780,
5378,
833,
15329,
565,
5452,
18,
542,
1526,
12,
3767,
1769,
565,
15408,
3367,
49,
11142,
10745,
1555,
381,
1791,
273,
394,
15408,
3367,
49,
11142,
10745,
1555,
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,
1071,
760,
918,
2774,
12,
780,
5378,
833,
15329,
565,
5452,
18,
542,
1526,
12,
3767,
1769,
565,
15408,
3367,
49,
11142,
10745,
1555,
381,
1791,
273,
394,
15408,
3367,
49,
11142,
10745,
1555,
3... |
public AddOrModifyUser(User user) | public AddOrModifyUser() | public AddOrModifyUser(User user) { super(null, "Wicket-Addons: Category Request Form"); if (user == null) { user = new User(); } // Create and add feedback panel to page final FeedbackPanel feedback = new FeedbackPanel("feedback"); //add(feedback); add(new AddUserForm("form", feedback, user)); } | 51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/014f0718834fc1e3aec3560738d584575cb2164b/AddOrModifyUser.java/buggy/wicket-library/src/java/wicket/addons/admin/AddOrModifyUser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1436,
1162,
11047,
1299,
1435,
565,
288,
3639,
2240,
12,
2011,
16,
315,
59,
29378,
17,
986,
7008,
30,
9856,
1567,
2748,
8863,
7734,
309,
261,
1355,
422,
446,
13,
3639,
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,
1436,
1162,
11047,
1299,
1435,
565,
288,
3639,
2240,
12,
2011,
16,
315,
59,
29378,
17,
986,
7008,
30,
9856,
1567,
2748,
8863,
7734,
309,
261,
1355,
422,
446,
13,
3639,
288,
5411,
... |
setPageComplete(getValidProjects().length > 0); | setPageComplete(projectsList.getCheckedElements().length > 0); | public void updateProjectsList(final String path) { if(path.equals(lastPath)) { return; } lastPath = path; // on an empty path empty selectedProjects if (path == null || path.length() == 0) { selectedProjects = new ProjectRecord[0]; projectsList.refresh(true); projectsList.setCheckedElements(selectedProjects); setPageComplete(getValidProjects().length > 0); return; } // We can't access the radio button from the inner class so get the // status beforehand final boolean dirSelected = this.projectFromDirectoryRadio .getSelection(); try { getContainer().run(true, true, new IRunnableWithProgress() { /* * (non-Javadoc) * * @see org.eclipse.jface.operation.IRunnableWithProgress#run(org.eclipse.core.runtime.IProgressMonitor) */ public void run(IProgressMonitor monitor) { monitor .beginTask( DataTransferMessages.WizardProjectsImportPage_SearchingMessage, 100); File directory = new File(path); selectedProjects = new ProjectRecord[0]; Collection files = new ArrayList(); monitor.worked(10); if (!dirSelected && ArchiveFileManipulations.isTarFile(path)) { TarFile sourceTarFile = getSpecifiedTarSourceFile(path); if (sourceTarFile == null) { return; } TarLeveledStructureProvider provider = ArchiveFileManipulations .getTarStructureProvider(sourceTarFile, getContainer().getShell()); Object child = provider.getRoot(); if (!collectProjectFilesFromProvider(files, provider, child, 0, monitor)) { return; } Iterator filesIterator = files.iterator(); selectedProjects = new ProjectRecord[files.size()]; int index = 0; monitor.worked(50); monitor .subTask(DataTransferMessages.WizardProjectsImportPage_ProcessingMessage); while (filesIterator.hasNext()) { selectedProjects[index++] = (ProjectRecord) filesIterator .next(); } } else if (!dirSelected && ArchiveFileManipulations.isZipFile(path)) { ZipFile sourceFile = getSpecifiedZipSourceFile(path); if (sourceFile == null) { return; } ZipLeveledStructureProvider provider = ArchiveFileManipulations .getZipStructureProvider(sourceFile, getContainer().getShell()); Object child = provider.getRoot(); if (!collectProjectFilesFromProvider(files, provider, child, 0, monitor)) { return; } Iterator filesIterator = files.iterator(); selectedProjects = new ProjectRecord[files.size()]; int index = 0; monitor.worked(50); monitor .subTask(DataTransferMessages.WizardProjectsImportPage_ProcessingMessage); while (filesIterator.hasNext()) { selectedProjects[index++] = (ProjectRecord) filesIterator .next(); } } else if (dirSelected && directory.isDirectory()) { if (!collectProjectFilesFromDirectory(files, directory, monitor)) { return; } Iterator filesIterator = files.iterator(); selectedProjects = new ProjectRecord[files.size()]; int index = 0; monitor.worked(50); monitor .subTask(DataTransferMessages.WizardProjectsImportPage_ProcessingMessage); while (filesIterator.hasNext()) { File file = (File) filesIterator.next(); selectedProjects[index] = new ProjectRecord(file); index++; } } else { monitor.worked(60); } monitor.done(); } }); } catch (InvocationTargetException e) { IDEWorkbenchPlugin.log(e.getMessage(), e); } catch (InterruptedException e) { // Nothing to do if the user interrupts. } projectsList.refresh(true); projectsList.setCheckedElements(getValidProjects()); setPageComplete(getValidProjects().length > 0); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/06321623726fd4a8f22d18290c97ca30d1c9236a/WizardProjectsImportPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
15298,
682,
12,
6385,
514,
589,
13,
288,
9506,
202,
430,
12,
803,
18,
14963,
12,
2722,
743,
3719,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
2722,
743,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
15298,
682,
12,
6385,
514,
589,
13,
288,
9506,
202,
430,
12,
803,
18,
14963,
12,
2722,
743,
3719,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
2722,
743,
27... |
if(pubKey != null) | if(pubKey != null) { | public synchronized Object makeRequestSender(Key key, short htl, long uid, PeerNode source, double closestLocation, boolean localOnly, boolean cache) { Logger.minor(this, "makeRequestSender("+key+","+htl+","+uid+","+source+") on "+portNumber); // In store? KeyBlock chk = null; try { if(key instanceof NodeCHK) chk = chkDatastore.fetch((NodeCHK)key, !cache); else if(key instanceof NodeSSK) { NodeSSK k = (NodeSSK)key; DSAPublicKey pubKey = k.getPubKey(); if(pubKey == null) { pubKey = getKey(k.getPubKeyHash()); k.setPubKey(pubKey); } if(pubKey != null) chk = sskDatastore.fetch((NodeSSK)key, !cache); } else throw new IllegalStateException("Unknown key type: "+key.getClass()); } catch (IOException e) { Logger.error(this, "Error accessing store: "+e, e); } if(chk != null) return chk; if(localOnly) return null; Logger.minor(this, "Not in store locally"); // Transfer coalescing - match key only as HTL irrelevant RequestSender sender = (RequestSender) transferringRequestSenders.get(key); if(sender != null) { Logger.minor(this, "Data already being transferred: "+sender); return sender; } // HTL == 0 => Don't search further if(htl == 0) { Logger.minor(this, "No HTL"); return null; } // Request coalescing KeyHTLPair kh = new KeyHTLPair(key, htl); sender = (RequestSender) requestSenders.get(kh); if(sender != null) { Logger.minor(this, "Found sender: "+sender+" for "+uid); return sender; } sender = new RequestSender(key, null, htl, uid, this, closestLocation, source); requestSenders.put(kh, sender); Logger.minor(this, "Created new sender: "+sender); return sender; } | 46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/c9f6ebb4822e48325e7abc91f5d0d340e3189312/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1033,
23009,
12021,
12,
653,
498,
16,
3025,
366,
6172,
16,
1525,
4555,
16,
10669,
907,
1084,
16,
1645,
9219,
2735,
16,
1250,
1191,
3386,
16,
1250,
1247,
13,
288,
3639,
4242,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
23009,
12021,
12,
653,
498,
16,
3025,
366,
6172,
16,
1525,
4555,
16,
10669,
907,
1084,
16,
1645,
9219,
2735,
16,
1250,
1191,
3386,
16,
1250,
1247,
13,
288,
3639,
4242,
... |
if (occurrence.isThisOrSuper()) { | if (occurrence.isThisOrSuper() || occurrence.isMethodOrConstructorInvocation()) { | public NameDeclaration findVariableHere(NameOccurrence occurrence) { if (occurrence.isThisOrSuper()) { return null; } ImageFinderFunction finder = new ImageFinderFunction(occurrence.getImage()); Applier.apply(finder, variableNames.keySet().iterator()); return finder.getDecl(); } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/14f22ca0ded9047f00db3996c9a1e5870a6b58d7/MethodScope.java/clean/pmd/src/net/sourceforge/pmd/symboltable/MethodScope.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1770,
6094,
1104,
3092,
26715,
12,
461,
24267,
13083,
13,
288,
3639,
309,
261,
31177,
18,
291,
2503,
1162,
8051,
1435,
747,
13083,
18,
291,
1305,
1162,
6293,
9267,
10756,
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,
1770,
6094,
1104,
3092,
26715,
12,
461,
24267,
13083,
13,
288,
3639,
309,
261,
31177,
18,
291,
2503,
1162,
8051,
1435,
747,
13083,
18,
291,
1305,
1162,
6293,
9267,
10756,
288,
5411,
... |
public void booleanTests(boolean useServerPrepare) throws SQLException { java.sql.PreparedStatement pstmt = con.prepareStatement("insert into testbool values (?)"); if (useServerPrepare) ((org.postgresql.PGStatement)pstmt).setUseServerPrepare(true); pstmt.setObject(1, new Float(0), java.sql.Types.BIT); pstmt.executeUpdate(); pstmt.setObject(1, new Float(1), java.sql.Types.BIT); pstmt.executeUpdate(); pstmt.setObject(1, "False", java.sql.Types.BIT); pstmt.executeUpdate(); pstmt.setObject(1, "True", java.sql.Types.BIT); pstmt.executeUpdate(); ResultSet rs = con.createStatement().executeQuery("select * from testbool"); for (int i = 0; i<2; i++) { assertTrue(rs.next()); assertEquals(false, rs.getBoolean(1)); assertTrue(rs.next()); assertEquals(true, rs.getBoolean(1)); } pstmt = con.prepareStatement("insert into testbit values (?)"); pstmt.setObject(1, new Float(0), java.sql.Types.BIT); pstmt.executeUpdate(); pstmt.setObject(1, new Float(1), java.sql.Types.BIT); pstmt.executeUpdate(); pstmt.setObject(1, "false", java.sql.Types.BIT); pstmt.executeUpdate(); pstmt.setObject(1, "true", java.sql.Types.BIT); pstmt.executeUpdate(); rs = con.createStatement().executeQuery("select * from testbit"); for (int i = 0;i<2; i++) { assertTrue(rs.next()); assertEquals(false, rs.getBoolean(1)); assertTrue(rs.next()); assertEquals(true, rs.getBoolean(1)); } rs = con.createStatement().executeQuery("select * from testboolstring"); for (int i = 0;i<4; i++) { assertTrue(rs.next()); assertEquals(true, rs.getBoolean(1)); assertTrue(rs.next()); assertEquals(false, rs.getBoolean(1)); } } | 49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/20aaea3cf4cc33459ad8a89c94b19616f1cfdb27/ResultSetTest.java/buggy/org/postgresql/test/jdbc2/ResultSetTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1250,
14650,
12,
6494,
999,
2081,
7543,
13,
1216,
6483,
3639,
288,
7734,
2252,
18,
4669,
18,
29325,
293,
10589,
273,
356,
18,
9366,
3406,
2932,
6387,
1368,
1842,
6430,
924,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
14650,
12,
6494,
999,
2081,
7543,
13,
1216,
6483,
3639,
288,
7734,
2252,
18,
4669,
18,
29325,
293,
10589,
273,
356,
18,
9366,
3406,
2932,
6387,
1368,
1842,
6430,
924,... | ||
private void logParams() { | protected void logParams() { | private void logParams() { Enumeration en = req.getParameterNames(); while (en.hasMoreElements()) { String name = (String)en.nextElement(); log.debug(name + " = " + req.getParameter(name)); } } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/0d04d3d4e4492ba995cfea554d9c1b01ff954a72/LockssServlet.java/clean/src/org/lockss/servlet/LockssServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
613,
1370,
1435,
288,
565,
13864,
570,
273,
1111,
18,
588,
1662,
1557,
5621,
565,
1323,
261,
275,
18,
5332,
7417,
3471,
10756,
288,
1377,
514,
508,
273,
261,
780,
13,
275,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
613,
1370,
1435,
288,
565,
13864,
570,
273,
1111,
18,
588,
1662,
1557,
5621,
565,
1323,
261,
275,
18,
5332,
7417,
3471,
10756,
288,
1377,
514,
508,
273,
261,
780,
13,
275,
18... |
return getSourceEditPart().getParent() == getTargetEditPart(); | EditPart part = getSourceEditPart(); while (part != getTargetEditPart() && part != null) { if (part.getParent() == getTargetEditPart() && part.getSelected() != EditPart.SELECTED_NONE) return true; part = part.getParent(); } return false; | protected boolean isMove() { return getSourceEditPart().getParent() == getTargetEditPart();} | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/c02f5e227d8c7a71cd463a9e32ca3b4029536288/DragEditPartsTracker.java/buggy/org.eclipse.gef/src/org/eclipse/gef/tools/DragEditPartsTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
1250,
353,
7607,
1435,
288,
202,
2463,
7889,
4666,
1988,
7675,
588,
3054,
1435,
422,
8571,
4666,
1988,
5621,
97,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
1250,
353,
7607,
1435,
288,
202,
2463,
7889,
4666,
1988,
7675,
588,
3054,
1435,
422,
8571,
4666,
1988,
5621,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if(flag != oldFlag) throw new InterruptedException(); if(index - minValue < maxRange) return; | if(flag != oldFlag) { Logger.minor(this, "Interrupted"); throw new InterruptedException(); } if(index - minValue < maxRange || minValue == -1) { Logger.minor(this, "index="+index+", minValue="+minValue+", maxRange="+maxRange+" - returning"); return; } | public synchronized void lock(int index) throws InterruptedException { boolean oldFlag = flag; if(minValue == -1) return; if(index - minValue < maxRange) return; Logger.normal(this, toString()+" lock("+index+") - minValue = "+minValue+", maxValue = "+maxValue+", maxRange="+maxRange); while(true) { wait(); if(flag != oldFlag) throw new InterruptedException(); if(index - minValue < maxRange) return; } } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/d764310ce0592a5fd06db73c2ccf0b083791a0b2/LimitedRangeIntByteArrayMap.java/buggy/src/freenet/support/LimitedRangeIntByteArrayMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
2176,
12,
474,
770,
13,
1216,
7558,
288,
3639,
1250,
1592,
4678,
273,
2982,
31,
3639,
309,
12,
1154,
620,
422,
300,
21,
13,
327,
31,
3639,
309,
12,
1615,
300,
20533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2176,
12,
474,
770,
13,
1216,
7558,
288,
3639,
1250,
1592,
4678,
273,
2982,
31,
3639,
309,
12,
1154,
620,
422,
300,
21,
13,
327,
31,
3639,
309,
12,
1615,
300,
20533,
... |
|| op.equals("PopUp") | private static String XlateSeleneseStatementTokens(String op, String[] tokens, String oldLine) { String beginning = "\t\t// " + oldLine .replaceFirst(BEGIN_SELENESE, "") .replaceFirst(END_SELENESE, "") .replaceAll(SELENESE_TOKEN_DIVIDER, "|") + EOL; String ending = ";"; if (op.startsWith("waitFor")) { beginning = EOL + "pause(5000);" + beginning; op = op.replaceFirst("waitFor", "assert"); tokens[0] = tokens[0].replaceFirst("waitFor", "assert"); } if (op.endsWith("AndWait")) { ending += EOL + "selenium.waitForPageToLoad(\"" + timeOut + "\");"; op = op.replaceFirst("AndWait", ""); tokens[0] = tokens[0].replaceFirst("AndWait", ""); } if (op.equals("storeText")) { return beginning + "String " + tokens[2] + " = selenium.getText(" + quote(tokens[1]) + ");"; } if (op.equals("storeTextLength")) { return beginning + "Integer " + tokens[2] + " = new Integer(selenium.getText(" + quote(tokens[1]) + ").length());"; } if (op.equals("store")) { return beginning + possiblyDeclare(tokens[2]) + " = " + XlateSeleneseArgument(tokens[1]) + ";"; } if (op.equals("storeAttribute")) { return beginning + possiblyDeclare(tokens[2]) + " = selenium.getAttribute(" + XlateSeleneseArgument(tokens[1]) + ");"; } if (op.equals("storeTitle") || op.equals("storeAlert")) { return beginning + possiblyDeclare(tokens[1]) + " = selenium.get" + op.replaceFirst("store", "") + "();"; } if (op.equals("storeBodyText")) { return beginning + possiblyDeclare(tokens[1]) + " = this.getText();"; } if (op.equals("storeValue")) { if (tokens[2].equals("")) { return beginning + possiblyDeclare(tokens[1]) + " = this.getText();"; } return beginning + possiblyDeclare(tokens[2]) + " = selenium.getValue(" + XlateSeleneseArgument(tokens[1]) + ");"; } if (op.startsWith("verify") || op.startsWith("assert")) { String middle; if (op.startsWith("verify")) { beginning += "verifyEquals("; } else { beginning += "assertEquals("; } ending = ")" + ending; op = op.replaceFirst("assert|verify", ""); if (op.equals("ElementPresent") || op.equals("ElementNotPresent") || op.equals("TextPresent") || op.equals("TextNotPresent") || op.equals("Editable") || op.equals("NotEditable") || op.equals("Visible") || op.equals("NotVisible")) { //assert beginning.indexOf("assert") != -1; // because verify's will be picked off by the caller return "\t\tselenium.assert" + op + "(" + XlateSeleneseArgument(tokens[1]) + ");"; } if (op.equals("Selected") || op.equals("NotSelected")) { return "selenium.assert" + op + "(" + XlateSeleneseArgument(tokens[1]) + ", " + XlateSeleneseArgument(tokens[2]) + ");"; } if (op.startsWith("Not")) { beginning = invertAssertion(beginning); op = op.replaceFirst("Not", ""); } if (op.equals("Attribute")) { return beginning + XlateSeleneseArgument(tokens[2]) + ", selenium.getAttribute(" + XlateSeleneseArgument(tokens[1]) + "));"; } else if (op.equals("Text")) { middle = XlateSeleneseArgument(tokens[2]) + ", selenium.getText(" + XlateSeleneseArgument(tokens[1]) + ")"; } else if (op.equals("TextLength")) { middle = XlateSeleneseArgument(tokens[2]) + ", \"\" + selenium.getText(" + XlateSeleneseArgument(tokens[1]) + ").length()"; } else if (op.equals("Location")) { return "\t\tselenium.assertLocation(" + XlateSeleneseArgument(tokens[1]) + ");"; } else if (op.equals("AbsoluteLocation")) { middle = XlateSeleneseArgument(tokens[1]) + ", selenium.getAbsoluteLocation()"; } else if (op.equals("Title")) { middle = XlateSeleneseArgument(tokens[1]) + ", selenium.getTitle()"; } else if (op.equals("Value")) { middle = XlateSeleneseArgument(tokens[2]) + ", selenium.getValue(" + XlateSeleneseArgument(tokens[1]) + ")"; } else if (op.equals("Alert")) { middle = XlateSeleneseArgument(tokens[1]) + ", selenium.getAlert()"; } else if (op.equals("Prompt")) { middle = XlateSeleneseArgument(tokens[1]) + ", selenium.getPrompt()"; } else if (op.equals("Confirmation")) { middle = XlateSeleneseArgument(tokens[1]) + ", selenium.getConfirmation()"; } else if (op.equals("Checked")) { middle = XlateSeleneseArgument(tokens[2]) + ", selenium.getChecked(" + XlateSeleneseArgument(tokens[1]) + ")"; } else if (op.equals("Expression")) { middle = XlateSeleneseArgument(tokens[1]) + ", " + XlateSeleneseArgument(tokens[2]); } else if (op.equals("ErrorOnNext") || op.equals("FailureOnNext")) { throw new RuntimeException("these line-spanning ops should be handled by the caller: " + oldLine); } else if (op.equals("Selected") || op.equals("ValueRepeated") || op.equals("PopUp") || op.equals("modalDialogTest")) { return "// skipped undocumented " + oldLine; } else if (op.equals("SelectOptions") || op.equals("SelectedOptions")) { String tmpArrayVarName = newTmpName(); beginning = declareAndInitArray(tmpArrayVarName, tokens[2]) + "\n" + beginning; middle = tmpArrayVarName + ", selenium.get" + op + "(" + XlateSeleneseArgument(tokens[1]) + ")"; } else if (op.equals("Table")) { middle = XlateSeleneseArgument(tokens[2]) + ", selenium.get" + op + "(" + XlateSeleneseArgument(tokens[1]) + ")"; } else { throw new RuntimeException("unrecognized assert op " + op); } return beginning + middle + ending; } if (op.equals("pause")) { return beginning + op + "(" + tokens[1] + ")" + ending; } if (op.equals("modalDialogTest") || op.equals("ValueRepeated") ) { return "// skipped undocumented, unsupported op in " + oldLine; } if (op.equals("open")) { recordFirstDomain(tokens[1]); } int expectedArgCount = 2; if (op.equals("open") || op.equals("answerOnNextPrompt") || op.equals("click") || op.equals("check") || op.equals("selectWindow") || op.equals("submit") || op.equals("uncheck") || op.equals("answerOnNextPrompt") ) { expectedArgCount = 1; } else if (op.equals("chooseCancelOnNextConfirmation") || op.equals("close") || op.equals("goBack")) { expectedArgCount = 0; } return beginning + XlateSeleneseStatementDefault(expectedArgCount, "selenium", tokens) + ending; } | 4718 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4718/5c8747499eb025be085728e51061032a82f05c7f/XlateHtmlSeleneseToJava.java/clean/server/src/main/java/org/openqa/selenium/server/testgenerator/XlateHtmlSeleneseToJava.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1139,
20293,
1877,
275,
3392,
3406,
5157,
12,
780,
1061,
16,
514,
8526,
2430,
16,
514,
1592,
1670,
13,
288,
3639,
514,
8435,
273,
1548,
88,
64,
88,
759,
315,
397,
1592,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
1139,
20293,
1877,
275,
3392,
3406,
5157,
12,
780,
1061,
16,
514,
8526,
2430,
16,
514,
1592,
1670,
13,
288,
3639,
514,
8435,
273,
1548,
88,
64,
88,
759,
315,
397,
1592,
... | |
getCurrentContext().pushClass(getClasses().getObjectClass()); | getCurrentContext().setRubyClass(getClasses().getObjectClass()); | private void init() { getIterStack().push(Iter.ITER_NOT); getFrameStack().push(); getScope().push(); setCurrentVisibility(Visibility.PRIVATE); classes = new RubyClasses(this); classes.initCoreClasses(); RubyGlobal.createGlobals(this); exceptions = new RubyExceptions(this); exceptions.initDefaultExceptionClasses(); topSelf = TopSelfFactory.createTopSelf(this); getCurrentContext().pushClass(getClasses().getObjectClass()); getCurrentFrame().setSelf(topSelf); classes.initBuiltinClasses(); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/abfe85d15f992ecf4447b155d177050fe2239c3b/Ruby.java/clean/src/org/jruby/Ruby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1435,
288,
3639,
336,
2360,
2624,
7675,
6206,
12,
2360,
18,
11844,
67,
4400,
1769,
3639,
25396,
2624,
7675,
6206,
5621,
3639,
19203,
7675,
6206,
5621,
3639,
12589,
10135,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
1435,
288,
3639,
336,
2360,
2624,
7675,
6206,
12,
2360,
18,
11844,
67,
4400,
1769,
3639,
25396,
2624,
7675,
6206,
5621,
3639,
19203,
7675,
6206,
5621,
3639,
12589,
10135,
1... |
if(parent != null) { if(parent != finalP2) { while(!(parent instanceof JFrame)) { | if (parent != null) { if (parent != finalP2) { while (!(parent instanceof JFrame)) { | ContextWindow(Main db) { super(); this.db = db; enabled = false; JPanel left = new JPanel(); JToolBar t1 = new JToolBar(); t1.setName("Variables"); t1.setLayout(new GridLayout()); t1.add(left); JPanel p1 = new JPanel(); p1.setLayout(new GridLayout()); JPanel p2 = new JPanel(); p2.setLayout(new GridLayout()); p1.add(t1); JLabel label = new JLabel("Context:"); context = new JComboBox(); context.setLightWeightPopupEnabled(false); toolTips = new java.util.Vector(); label.setBorder(context.getBorder()); context.addActionListener(this); context.setActionCommand("ContextSwitch"); GridBagLayout layout = new GridBagLayout(); left.setLayout(layout); GridBagConstraints lc = new GridBagConstraints(); lc.insets.left = 5; lc.anchor = GridBagConstraints.WEST; lc.ipadx = 5; layout.setConstraints(label, lc); left.add(label); GridBagConstraints c = new GridBagConstraints(); c.gridwidth = GridBagConstraints.REMAINDER; c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; layout.setConstraints(context, c); left.add(context); tabs = new JTabbedPane(SwingConstants.BOTTOM); tabs.setPreferredSize(new Dimension(500,300)); thisTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { //return 3; return 2; } public String getColumnName(int column) { switch(column) { case 0: return " Name"; case 1: //return "Type"; //case 2: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); JScrollPane jsp = new JScrollPane(thisTable); jsp.getViewport().setViewSize(new Dimension(5,2)); tabs.add("this", jsp); localsTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { return 2; } public String getColumnName(int column) { switch(column) { case 0: return " Name"; case 1: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); localsTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); localsTable.setPreferredSize(null); jsp = new JScrollPane(localsTable); tabs.add("Locals", jsp); c.weightx = c.weighty = 1; c.gridheight = GridBagConstraints.REMAINDER; c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.WEST; layout.setConstraints(tabs, c); left.add(tabs); evaluator = new Evaluator(db); cmdLine = new EvalTextArea(db); //cmdLine.requestFocus(); tableModel = evaluator.tableModel; jsp = new JScrollPane(evaluator); JToolBar t2 = new JToolBar(); t2.setName("Evaluate"); tabs2 = new JTabbedPane(SwingConstants.BOTTOM); tabs2.add("Watch", jsp); tabs2.add("Evaluate", new JScrollPane(cmdLine)); tabs2.setPreferredSize(new Dimension(500,300)); t2.setLayout(new GridLayout()); t2.add(tabs2); p2.add(t2); evaluator.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, p1, p2); split.setOneTouchExpandable(true); Main.setResizeWeight(split, 0.5); setLayout(new BorderLayout()); add(split, BorderLayout.CENTER); final JToolBar finalT1 = t1; final JToolBar finalT2 = t2; final JPanel finalP1 = p1; final JPanel finalP2 = p2; final JSplitPane finalSplit = split; final JPanel finalThis = this; final Main finalDb = db; ComponentListener clistener = new ComponentListener() { boolean t1Docked = true; boolean t2Docked = true; void check(Component comp) { Component thisParent = finalThis.getParent(); if(thisParent == null) { return; } Component parent = finalT1.getParent(); boolean leftDocked = true; boolean rightDocked = true; boolean adjustVerticalSplit = false; if(parent != null) { if(parent != finalP1) { while(!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; finalDb.addTopLevel("Variables", frame); // We need the following hacks because: // - We want an undocked toolbar to be // resizable. // - We are using JToolbar as a container of a // JComboBox. Without this JComboBox's popup // can get left floating when the toolbar is // re-docked. // // We make the frame resizable and then // remove JToolbar's window listener // and insert one of our own that first ensures // the JComboBox's popup window is closed // and then calls JToolbar's window listener. if(!frame.isResizable()) { frame.setResizable(true); frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); final EventListener[] l = frame.getListeners(WindowListener.class); frame.removeWindowListener((WindowListener)l[0]); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { context.hidePopup(); ((WindowListener)l[0]).windowClosing(e); } }); //adjustVerticalSplit = true; } leftDocked = false; } else { leftDocked = true; } } parent = finalT2.getParent(); if(parent != null) { if(parent != finalP2) { while(!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; finalDb.addTopLevel("Evaluate", frame); frame.setResizable(true); rightDocked = false; } else { rightDocked = true; } } if(leftDocked && t2Docked && rightDocked && t2Docked) { // no change return; } t1Docked = leftDocked; t2Docked = rightDocked; JSplitPane split = (JSplitPane)thisParent; if(leftDocked) { if(rightDocked) { finalSplit.setDividerLocation(0.5); } else { finalSplit.setDividerLocation(1.0); } if(adjustVerticalSplit) { split.setDividerLocation(0.66); } } else if(rightDocked) { finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } public void componentHidden(ComponentEvent e) { check(e.getComponent()); } public void componentMoved(ComponentEvent e) { check(e.getComponent()); } public void componentResized(ComponentEvent e) { check(e.getComponent()); } public void componentShown(ComponentEvent e) { check(e.getComponent()); } }; p1.addContainerListener(new ContainerListener() { public void componentAdded(ContainerEvent e) { Component thisParent = finalThis.getParent(); JSplitPane split = (JSplitPane)thisParent; if(e.getChild() == finalT1) { if(finalT2.getParent() == finalP2) { // both docked finalSplit.setDividerLocation(0.5); } else { // left docked only finalSplit.setDividerLocation(1.0); } split.setDividerLocation(0.66); } } public void componentRemoved(ContainerEvent e) { Component thisParent = finalThis.getParent(); JSplitPane split = (JSplitPane)thisParent; if(e.getChild() == finalT1) { if(finalT2.getParent() == finalP2) { // right docked only finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } } }); t1.addComponentListener(clistener); t2.addComponentListener(clistener); disable(); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5b760bc86060749267746b7d77c0c8da1d3b9c1d/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1772,
3829,
12,
6376,
1319,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
1966,
273,
1319,
31,
3639,
3696,
273,
629,
31,
3639,
24048,
2002,
273,
394,
24048,
5621,
3639,
804,
6364,
5190,
268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
3829,
12,
6376,
1319,
13,
288,
3639,
2240,
5621,
3639,
333,
18,
1966,
273,
1319,
31,
3639,
3696,
273,
629,
31,
3639,
24048,
2002,
273,
394,
24048,
5621,
3639,
804,
6364,
5190,
268,
... |
if (tmpf.tindexes.size() > 0) { | if (tmpf.intTIndexes.length > 0) { | public void drawModel(float matAlphaMultiplier, boolean greyed) { float alphaMultiplier = 1; try { Vertex v = null, vt = null, vn = null, endV = null; int vtidx = 0, vnidx = 0, vidx = 0, vidx2=0; PImage imgtex = null; boolean bTexture = false; // render all triangles for (int g = 0; g < groups.size(); g++) { Group tmpgroup = (Group) (groups.elementAt(g)); Material mtl = null; float[] colors = {255,255,255,255}; // debug("hogehoge1"); if (tmpgroup.mtlName != null) { try{ mtl = (Material) materials.get(tmpgroup.mtlName); //if(tmpgroup.mtlName=="Backstei")System.out.println("mtl: "+mtl); colors[0]=255.0f * mtl.Ka[0]; colors[1]=255.0f * mtl.Ka[1]; colors[2]=255.0f * mtl.Ka[2]; colors[3]=255.0f * mtl.d * matAlphaMultiplier; } catch(NullPointerException e){ System.out.println("material: "+tmpgroup.mtlName); } } if(!greyed)parent.fill(colors[0],colors[1],colors[2],colors[3]); else{ parent.fill( (colors[0]+colors[1]+colors[2]) /3); } // debug("hogehoge2"); // check texture availability if (texture != null) { bTexture = true; } else if (mtl != null) { if (mtl.map_Kd != null) { bTexture = true; imgtex = mtl.map_Kd; } else { bTexture = false; } } // debug("hogehoge3"); if (tmpgroup.facets.size() > 0) { for (int f = 0; f < tmpgroup.facets.size(); f++) { Facet tmpf = (Facet) (tmpgroup.facets.elementAt(f)); //parent.textureMode(PApplet.NORMALIZED); parent.beginShape(mode); // specify render mode if (bTexture && flagTexture) { if (tmpf.tindexes.size() > 0) {// int minValX;// int maxValX;// int minValY;// int maxValY;// for(int patternIndex=0;patternIndex<tmpf.tindexes.size();patternIndex++){// //minValX = tmpf.tindexes.get(patternIndex);// }// if (texture != null) parent.texture(texture); // setting // texture else if (imgtex != null) parent.texture(imgtex); // setting texture } else { bTexture = false; } } else { bTexture = false; }/** * {{added by Gunnar // z-fading enabled? if(fadeFlag==true){ if(fadeMidPoint==null) parent.die("Sorry, you have to call at least once the function to set the midPoint."); else if(fadeMidPoint.length!=3) parent.die("You did't set a 3-dimensional information for the middle-Point"); else { float[] collectVector = new float[tmpf.indexes.size()]; float mediaDistance=0; for(int collVertexIndex=0;collVertexIndex<tmpf.indexes.size();collVertexIndex++){ vidx = ((Integer) (tmpf.indexes.elementAt(collVertexIndex))).intValue(); v = (Vertex) vertexes.elementAt(vidx - 1); float[] distanceVertex = new float[3]; distanceVertex[0]=v.vx>fadeMidPoint[0]?v.vx-fadeMidPoint[0]:fadeMidPoint[0]-v.vx; distanceVertex[1]=v.vy>fadeMidPoint[1]?v.vy-fadeMidPoint[1]:fadeMidPoint[1]-v.vy; distanceVertex[2]=v.vz>fadeMidPoint[2]?v.vz-fadeMidPoint[2]:fadeMidPoint[2]-v.vz; collectVector[collVertexIndex] = (float)Math.sqrt((distanceVertex[0]*distanceVertex[0])+(distanceVertex[1]*distanceVertex[1])+(distanceVertex[2]*distanceVertex[2])); mediaDistance+=collectVector[collVertexIndex]; if(f==10)debug("collectVector: "+collectVector[collVertexIndex]); } if(f==10)debug("A Face: "); mediaDistance=mediaDistance/(collectVector.length); if(f==10)debug("mediaDistance: "+mediaDistance); alphaMultiplier = 0; if(mediaDistance<fadeDistance)alphaMultiplier = 1; else if(mediaDistance<fadeDistance+fadeSpace){ alphaMultiplier = ((mediaDistance-fadeDistance)/(float)fadeSpace); alphaMultiplier=alphaMultiplier<0?1:(alphaMultiplier>1?0:1-alphaMultiplier); } if(f==10){ debug("alphaMultiplier: "+alphaMultiplier); parent.fill(255,0,0,colors[3]*alphaMultiplier); }else{ float[] fadeColor = {167,198,167}; float[] colorBuffer = new float[3]; for(int u=0;u<3;u++) colorBuffer[u]=(float)(colors[u]+(255-colors[u])*(1.0-alphaMultiplier)); colorBuffer[u]=(float)(colors[u]+(fadeColor[u]-colors[u])*(1.0-alphaMultiplier)); parent.fill(colorBuffer[0],colorBuffer[1],colorBuffer[2],colors[3]); parent.noStroke(); //} } }*/ if(alphaMultiplier!=0){/*** }}added by Gunnar*/ if (tmpf.intIndexes.length > 0) { for (int fp = 0; fp < tmpf.intIndexes.length; fp++) { vidx = tmpf.intIndexes[fp]; v = (Vertex) vertexes.elementAt(vidx - 1); if (v != null) { try { if (tmpf.intNIndexes.length > 0) { vnidx = tmpf.intNIndexes[fp]; vn = (Vertex) normv .elementAt(vnidx - 1); parent.normal(-vn.vx, -vn.vy, -vn.vz); } if (bTexture) { vtidx = tmpf.intTIndexes[fp]; vt = (Vertex) texturev .elementAt(vtidx - 1); parent.vertex(-v.vx, v.vy, v.vz, 1.0f - vt.vx, vt.vy); } else parent.vertex(-v.vx, v.vy, v.vz); } catch (Exception e) { e.printStackTrace(); } } else { parent.vertex(-v.vx, v.vy, v.vz); } } } parent.endShape(); // Same procedure to draw just the lines in question if(drawLines){ parent.noFill(); parent.stroke(lineColor.r, lineColor.g, lineColor.b, 255*matAlphaMultiplier); if (tmpf.intIndexes.length > 0) { for (int fp = 0; fp < tmpf.intIndexes.length; fp++) { vidx = tmpf.intIndexes[fp]; if(fp<tmpf.intIndexes.length-1) vidx2 = tmpf.intIndexes[fp+1]; else vidx2 = tmpf.intIndexes[0]; v = (Vertex) vertexes.elementAt(vidx - 1); endV = (Vertex) vertexes.elementAt(vidx2 - 1); if ( v.vx==endV.vx && v.vz==endV.vz || v.vz==endV.vz && v.vy==endV.vy || v.vx==endV.vx && v.vy==endV.vy) parent.line(-v.vx, v.vy, v.vz, -endV.vx, endV.vy, endV.vz); } } parent.endShape(); parent.fill(colors[0],colors[1],colors[2],colors[3]); parent.noStroke(); } // End Linedrawing }// } } } } catch (Exception e) { e.printStackTrace(); } } | 55499 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55499/648da0cce12a512ed4d4f539712df502e34090a8/OBJModel.java/buggy/cpm/objLoader/OBJModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3724,
1488,
12,
5659,
4834,
9690,
23365,
16,
1250,
5174,
93,
329,
13,
288,
202,
202,
5659,
4190,
23365,
273,
404,
31,
202,
202,
698,
288,
1082,
202,
6475,
331,
273,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3724,
1488,
12,
5659,
4834,
9690,
23365,
16,
1250,
5174,
93,
329,
13,
288,
202,
202,
5659,
4190,
23365,
273,
404,
31,
202,
202,
698,
288,
1082,
202,
6475,
331,
273,
446,
... |
if (id1 != null && id2 != null && !id1.equals(id2)) return collator.compare(id1, id2); | if (id1 != null && id2 != null && !id1.equals(id2)) { return collator.compare(id1, id2); } | public int compare(Object a, Object b) { IConfigurationElement element1 = (IConfigurationElement) a; IConfigurationElement element2 = (IConfigurationElement) b; String id1 = element1.getAttribute("id"); //$NON-NLS-1$ String id2 = element2.getAttribute("id"); //$NON-NLS-1$ if (id1 != null && id2 != null && !id1.equals(id2)) return collator.compare(id1, id2); String title1 = element1.getAttribute("sectionTitle"); //$NON-NLS-1$ String title2 = element2.getAttribute("sectionTitle"); //$NON-NLS-1$ if (title1 == null) title1 = ""; //$NON-NLS-1$ if (title2 == null) title2 = ""; //$NON-NLS-1$ return collator.compare(title1, title2); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/AboutSystemDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/AboutSystemDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
509,
3400,
12,
921,
279,
16,
1033,
324,
13,
288,
7734,
467,
1750,
1046,
930,
21,
273,
261,
45,
1750,
1046,
13,
279,
31,
7734,
467,
1750,
1046,
930,
22,
273,
261,
45,
1750,
1046... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
509,
3400,
12,
921,
279,
16,
1033,
324,
13,
288,
7734,
467,
1750,
1046,
930,
21,
273,
261,
45,
1750,
1046,
13,
279,
31,
7734,
467,
1750,
1046,
930,
22,
273,
261,
45,
1750,
1046... |
public DataContent( IContent content ) | public DataContent( ReportContent report ) | public DataContent( IContent content ) { super( content ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/b811fd826807f2a8956bc9cc187b79dc5aff3c45/DataContent.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/DataContent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1910,
1350,
12,
467,
1350,
913,
262,
202,
95,
202,
202,
9565,
12,
913,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1910,
1350,
12,
467,
1350,
913,
262,
202,
95,
202,
202,
9565,
12,
913,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
getHardTokenSession().getIsTokenTypeAvailableToIssuer(admin, issuerid, data); | getHardTokenSession().getIsHardTokenProfileAvailableToIssuer(admin, issuerid, data); | public Collection getNextHardTokensToGenerate(Admin admin, X509Certificate issuercert) throws UnavailableTokenException{ debug(">getNextHardTokensToGenerate()"); ArrayList returnval = new ArrayList(); int issuerid = getHardTokenSession().getHardTokenIssuerId(admin, issuercert); if(issuerid != IHardTokenSessionLocal.NO_ISSUER){ ResultSet rs = null; Connection con = null; try{ // Construct SQL query. con = getConnection(); rs = getHardTokensFromHardTokenIssuer(con,issuerid); // Assemble result. while(rs.next() && returnval.size() <= IHardTokenBatchJobSessionLocal.MAX_RETURNED_QUEUE_SIZE){ UserAdminData data = new UserAdminData(rs.getString(1), rs.getString(2), rs.getInt(14), rs.getString(3), rs.getString(4), rs.getInt(5), rs.getInt(6) , rs.getInt(10), rs.getInt(11) , new java.util.Date(rs.getLong(8)), new java.util.Date(rs.getLong(9)) , rs.getInt(12), rs.getInt(13)); data.setPassword(rs.getString(7)); getHardTokenSession().getIsTokenTypeAvailableToIssuer(admin, issuerid, data); returnval.add(data); getLogSession().log(admin, data.getCAId(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),data.getUsername(), null, LogEntry.EVENT_ERROR_HARDTOKEN_USERDATASENT,"Userdata sent for token generation to issuer with dn: " + CertTools.getSubjectDN(issuercert)); } }catch(Exception e){ getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKEN_USERDATASENT,"Error when retrieving next tokens for issuer with dn: " + CertTools.getSubjectDN(issuercert)); throw new EJBException(e); }finally{ try{ if(rs != null) rs.close(); if(con!= null) con.close(); }catch(SQLException se){ error("Fel vid upprensning: ", se); } } } if(returnval.size()==0) returnval=null; debug("<getNextHardTokensToGenerate()"); return returnval; }// getNextHardTokensToGenerate | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/7734ca14478c03822c95e1fe85ba81ec3f718dc9/LocalEjbcaHardTokenBatchJobSessionBean.java/buggy/src/java/se/anatom/ejbca/hardtoken/LocalEjbcaHardTokenBatchJobSessionBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2200,
6927,
29601,
5157,
774,
4625,
12,
4446,
3981,
16,
1139,
5995,
4719,
9715,
7593,
13,
1216,
1351,
5699,
1345,
503,
95,
1377,
1198,
2932,
34,
588,
2134,
29601,
5157,
774,
4625,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2200,
6927,
29601,
5157,
774,
4625,
12,
4446,
3981,
16,
1139,
5995,
4719,
9715,
7593,
13,
1216,
1351,
5699,
1345,
503,
95,
1377,
1198,
2932,
34,
588,
2134,
29601,
5157,
774,
4625,
1... |
synchronized void doneWithRecruits() | void doneWithRecruits() | synchronized void doneWithRecruits() { if (!isMyTurn()) { return; } aiPause(); nakable = Constants.doneWithSplits; server.doneWithRecruits(); } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/13fd7e55524ae607efd57c2dd1bbc8ece72c6451/Client.java/buggy/Colossus/net/sf/colossus/client/Client.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2731,
1190,
426,
3353,
89,
1282,
1435,
565,
288,
3639,
309,
16051,
291,
12062,
15858,
10756,
3639,
288,
5411,
327,
31,
3639,
289,
3639,
14679,
19205,
5621,
3639,
290,
581,
429,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2731,
1190,
426,
3353,
89,
1282,
1435,
565,
288,
3639,
309,
16051,
291,
12062,
15858,
10756,
3639,
288,
5411,
327,
31,
3639,
289,
3639,
14679,
19205,
5621,
3639,
290,
581,
429,
273,
... |
SetOfMolecules som2 = new SetOfMolecules(); | SetOfMolecules som2 = builder.newSetOfMolecules(); | public void testAdd_SetOfMolecules() { SetOfMolecules som = new SetOfMolecules(); som.addMolecule(new Molecule()); som.addMolecule(new Molecule()); som.addMolecule(new Molecule()); som.addMolecule(new Molecule()); som.addMolecule(new Molecule()); SetOfMolecules som2 = new SetOfMolecules(); som2.add(som); assertEquals(5, som2.getMoleculeCount()); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/67261c8143759a6ee4feb79dc1687d6dcfa25f40/SetOfMoleculesTest.java/buggy/src/org/openscience/cdk/test/SetOfMoleculesTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
986,
67,
694,
951,
49,
29466,
1435,
288,
3639,
1000,
951,
49,
29466,
4737,
273,
394,
1000,
951,
49,
29466,
5621,
3639,
4737,
18,
1289,
29669,
12,
2704,
490,
10545,
10663,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
986,
67,
694,
951,
49,
29466,
1435,
288,
3639,
1000,
951,
49,
29466,
4737,
273,
394,
1000,
951,
49,
29466,
5621,
3639,
4737,
18,
1289,
29669,
12,
2704,
490,
10545,
10663,... |
barContainer.getParent().getLayout().layoutContainer(barContainer.getParent()); resize(); | barContainer.getParent().getLayout().layoutContainer(barContainer.getParent()); resize(); | protected void update() { // Reset Layout configureSlidingIcons(); TableLayout layout = (TableLayout) sheet.getLayout(); layout.setColumn(0, 0); layout.setColumn(2, 0); layout.setRow(0, 0); layout.setRow(2, 0); barContainer.getParent().getLayout().layoutContainer(barContainer.getParent()); resize(); Component content = getContentContainer(); sheet.remove(content); sheet.add(content, "1,1,FULL,FULL"); // Prepare sheet border.setAnchor(toolWindow.getAnchor()); sheet.setBorder(border); int height = mainPanel.getHeight(); Point point = SwingUtilities.convertPoint(mainPanel, 0, 0, glassPane); sheet.setBounds(point.x, point.y, mainPanel.getWidth(), height); glassPane.remove(sheet); glassPane.add(sheet); glassPane.validate(); } | 51282 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51282/af64b92abdde29d6ca1f7bfe4d12bcbc8ce142c1/SlidingContainer.java/clean/mydoggy-plaf/src/main/java/org/noos/xing/mydoggy/plaf/ui/SlidingContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1089,
1435,
288,
3639,
368,
7151,
9995,
3639,
5068,
3738,
10415,
27510,
5621,
3639,
3555,
3744,
3511,
273,
261,
1388,
3744,
13,
6202,
18,
588,
3744,
5621,
3639,
3511,
18,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1089,
1435,
288,
3639,
368,
7151,
9995,
3639,
5068,
3738,
10415,
27510,
5621,
3639,
3555,
3744,
3511,
273,
261,
1388,
3744,
13,
6202,
18,
588,
3744,
5621,
3639,
3511,
18,
542,
... |
if(BugzillaPreferences.getUserName() != null && !BugzillaPreferences.getUserName().equals("") && BugzillaPreferences.getPassword() != null && !BugzillaPreferences.getPassword().equals("")) | if(BugzillaPreferencePage.getUserName() != null && !BugzillaPreferencePage.getUserName().equals("") && BugzillaPreferencePage.getPassword() != null && !BugzillaPreferencePage.getPassword().equals("")) | public BugReport getBug(int id) throws IOException, MalformedURLException, LoginException { BufferedReader in = null; try { // create a new input stream for getting the bug String url = bugzillaUrl + "/show_bug.cgi?id=" + id; // allow the use to only see the operations that they can do to a bug if they have // their user name and password in the preferences if(BugzillaPreferences.getUserName() != null && !BugzillaPreferences.getUserName().equals("") && BugzillaPreferences.getPassword() != null && !BugzillaPreferences.getPassword().equals("")) { /* * The UnsupportedEncodingException exception for * URLEncoder.encode() should not be thrown, since every * implementation of the Java platform is required to support * the standard charset "UTF-8" */ url += "&GoAheadAndLogIn=1&Bugzilla_login=" + URLEncoder.encode(BugzillaPreferences.getUserName(), "UTF-8") + "&Bugzilla_password=" + URLEncoder.encode(BugzillaPreferences.getPassword(), "UTF-8"); } URL bugUrl = new URL(url); URLConnection cntx = BugzillaPlugin.getDefault().getUrlConnection(bugUrl); if(cntx != null){ InputStream input = cntx.getInputStream(); if(input != null) { in = new BufferedReader(new InputStreamReader(input)); // get the actual bug fron the server and return it BugReport bug = BugParser.parseBug(in, id, BugzillaPlugin.getDefault().getServerName(), BugzillaPreferences.is218(), BugzillaPreferences.getUserName(), BugzillaPreferences.getPassword()); return bug; } } // TODO handle the error return null; } catch (MalformedURLException e) { throw e; } catch (IOException e) { throw e; } catch(LoginException e) { throw e; } catch(Exception e) { // throw an exception if there is a problem reading the bug from the server e.printStackTrace(); throw new IOException(e.getMessage()); } finally { try{ if(in != null) in.close(); }catch(IOException e) { BugzillaPlugin.log(new Status(IStatus.ERROR, IBugzillaConstants.PLUGIN_ID,IStatus.ERROR,"Problem closing the stream", e)); } } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/695b71c2a1894c734e97c79c6ddbecafadbdf35c/BugzillaRepository.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/BugzillaRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16907,
4820,
2882,
637,
12,
474,
612,
13,
1216,
1860,
16,
20710,
16,
11744,
503,
202,
95,
202,
202,
17947,
2514,
316,
273,
446,
31,
202,
202,
698,
288,
25083,
202,
759,
752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16907,
4820,
2882,
637,
12,
474,
612,
13,
1216,
1860,
16,
20710,
16,
11744,
503,
202,
95,
202,
202,
17947,
2514,
316,
273,
446,
31,
202,
202,
698,
288,
25083,
202,
759,
752,
... |
if (element instanceof IPackageFragmentRoot) { | if (!fIsFlatLayout && element instanceof IPackageFragment) { return fPackageFragmentProvider.getHierarchicalPackageParent((IPackageFragment) element); } else if (element instanceof IPackageFragmentRoot) { | protected Object internalGetParent(Object element) { // since we insert logical package containers we have to fix // up the parent for package fragment roots so that they refer // to the container and containers refere to the project // if (element instanceof IPackageFragmentRoot) { IPackageFragmentRoot root= (IPackageFragmentRoot)element; IJavaProject project= root.getJavaProject(); try { IClasspathEntry[] entries= project.getRawClasspath(); for (int i= 0; i < entries.length; i++) { IClasspathEntry entry= entries[i]; if (entry.getEntryKind() == IClasspathEntry.CPE_CONTAINER) { if (ClassPathContainer.contains(project, entry, root)) return new ClassPathContainer(project, entry); } } } catch (JavaModelException e) { // fall through } } if (element instanceof ClassPathContainer) { return ((ClassPathContainer)element).getJavaProject(); } return super.internalGetParent(element); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/9910e19c5f4a333211710688e7dc9340855a4265/PackageExplorerContentProvider.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerContentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
2713,
967,
3054,
12,
921,
930,
13,
288,
202,
202,
759,
3241,
732,
2243,
6374,
2181,
8475,
732,
1240,
358,
2917,
202,
202,
759,
731,
326,
982,
364,
2181,
5481,
12876,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
2713,
967,
3054,
12,
921,
930,
13,
288,
202,
202,
759,
3241,
732,
2243,
6374,
2181,
8475,
732,
1240,
358,
2917,
202,
202,
759,
731,
326,
982,
364,
2181,
5481,
12876,
14... |
public final static void endCallArgs(Ruby ruby, Block currentBlock) { if (currentBlock != null) { ruby.getBlockStack().push(currentBlock); } ruby.getIterStack().pop(); | public static void endCallArgs(Ruby runtime, Block currentBlock) { runtime.getBlockStack().setCurrent(currentBlock); runtime.getIterStack().pop(); | public final static void endCallArgs(Ruby ruby, Block currentBlock) { if (currentBlock != null) { ruby.getBlockStack().push(currentBlock); // Refresh the next attribute. } ruby.getIterStack().pop(); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/aa3fe2195e86c2c426f4012089ef8c66a66e925c/ArgsUtil.java/buggy/org/jruby/ast/util/ArgsUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
760,
918,
679,
1477,
2615,
12,
54,
10340,
22155,
16,
3914,
30610,
13,
288,
3639,
309,
261,
2972,
1768,
480,
446,
13,
288,
5411,
22155,
18,
588,
1768,
2624,
7675,
6206,
12,
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,
377,
1071,
727,
760,
918,
679,
1477,
2615,
12,
54,
10340,
22155,
16,
3914,
30610,
13,
288,
3639,
309,
261,
2972,
1768,
480,
446,
13,
288,
5411,
22155,
18,
588,
1768,
2624,
7675,
6206,
12,
29... |
Quad[] ql = (Quad[]) hc.getElements(); for (int i=0; i<ql.length; i++) if (execMap(ql[i])) ql[i].accept(visitor); | for (Iterator it=new SnapshotIterator(hc.getElementsI()); it.hasNext(); ) { Quad q = (Quad) it.next(); if (execMap(q)) q.accept(visitor); } | public void optimize(final HCode hc) { QuadVisitor visitor = new QuadVisitor() { public void visit(Quad q) { // if all defs are constants, replace the statement // with a series of CONSTs. Temp d[] = q.def(); if (d.length == 0) return; // nothing to do here. int i; for (i=0; i<d.length; i++) if (!cm.isConst(q, d[i])) break; if (i!=d.length) // not all args are constant return; // ok. Replace with a series of CONSTs. assert q.next().length==1 && q.prev().length==1; Quad header = q.prev(0); int which_succ = q.prevEdge(0).which_succ(); Quad successor = q.next(0); int which_pred = q.nextEdge(0).which_pred(); for (i=0; i<d.length; i++) { Quad qq = newCONST(q.getFactory(), q, d[i], cm.constMap(q, d[i]), ti.typeMap(q, d[i]) ); Quad.addEdge(header, which_succ, qq, 0); Ee.add(header.nextEdge(which_succ)); header = qq; which_succ = 0; } // link to successor. Quad.addEdge(header, which_succ, successor, which_pred); Ee.add(header.nextEdge(which_succ)); // done. } // END VISIT quad. public void visit(CONST q) { /* do nothing. */ } public void visit(METHOD q) { // can't optimize if entire method is not executable. assert execMap(q) && execMap(q.nextEdge(0)); /* do nothing. */ } public void visit(FOOTER q) { // remove unexecutable FOOTER edges. FOOTER newF = q; Edge[] prv = q.prevEdge(); for (int i=prv.length-1; i>=0; i--) if (!execMap(prv[i])) newF = newF.remove(i); // add new executable edges to set. for (int i=0; i<newF.prevLength(); i++) Ee.add(newF.prevEdge(i)); } public void visit(TYPESWITCH q) { /* multiple edges of this SIGMA may be executable */ List keylist = new ArrayList(q.arity()); List edgelist = new ArrayList(q.arity()); // collect executable edges. for (int i=0; i < q.arity(); i++) if (execMap(q.nextEdge(i))) { if (i<q.keysLength()) keylist.add(q.keys(i)); edgelist.add(q.nextEdge(i)); } // default edge may not be executable. boolean hasDefault = !(keylist.size() == edgelist.size()); // make new keys and edge array. HClass[] nkeys = (HClass[]) keylist.toArray(new HClass[keylist.size()]); Edge[] edges = (Edge[]) edgelist.toArray(new Edge[edgelist.size()]); // make new dst[][] array for sigmas Temp[][] ndst = new Temp[q.numSigmas()][edgelist.size()]; for (int i=0; i < q.numSigmas(); i++) for (int j=0; j < edges.length; j++) ndst[i][j] = q.dst(i, edges[j].which_succ()); // make new TYPESWITCH TYPESWITCH nts = new TYPESWITCH(q.getFactory(), q, q.index(), nkeys, ndst, q.src(), hasDefault); // and link the new TYPESWITCH. Edge pedge = q.prevEdge(0); Quad.addEdge((Quad)pedge.from(), pedge.which_succ(), nts, 0); Ee.add(nts.prevEdge(0)); for (int i=0; i < edges.length; i++) { Quad.addEdge(nts, i, (Quad) edges[i].to(), edges[i].which_pred()); Ee.add(nts.nextEdge(i)); } // visit(SIGMA) to trim out TYPESWITCH iff only one edge is // executable // (no-default typeswitch with one edge is an *assertion*. // we don't want to delete it.) if (hasDefault) visit((SIGMA)nts); // ta-da! } public void visit(SWITCH q) { /* multiple edges of this SIGMA may be executable */ List keylist = new ArrayList(q.arity()); List edgelist = new ArrayList(q.arity()); // collect executable edges. for (int i=0; i < q.arity(); i++) if (execMap(q.nextEdge(i))) { if (i<q.keysLength()) keylist.add(new Integer(q.keys(i))); edgelist.add(q.nextEdge(i)); } // default edge may not be executable. boolean hasDefault = !(keylist.size() == edgelist.size()); // if default edge isn't executable, remove last key to make // new default edge. if (!hasDefault) keylist.remove(keylist.size()-1); assert keylist.size()+1 == edgelist.size(); // make new keys and edge array. int[] nkeys = new int[keylist.size()]; for (int i=0; i<nkeys.length; i++) nkeys[i] = ((Integer)keylist.get(i)).intValue(); Edge[] edges = (Edge[]) edgelist.toArray(new Edge[edgelist.size()]); // make new dst[][] array for sigmas Temp[][] ndst = new Temp[q.numSigmas()][edgelist.size()]; for (int i=0; i < q.numSigmas(); i++) for (int j=0; j < edges.length; j++) ndst[i][j] = q.dst(i, edges[j].which_succ()); // make new SWITCH SWITCH nsw = new SWITCH(q.getFactory(), q, q.index(), nkeys, ndst, q.src()); // and link the new SWITCH. Edge pedge = q.prevEdge(0); Quad.addEdge((Quad)pedge.from(), pedge.which_succ(), nsw, 0); Ee.add(nsw.prevEdge(0)); for (int i=0; i < edges.length; i++) { Quad.addEdge(nsw, i, (Quad) edges[i].to(), edges[i].which_pred()); Ee.add(nsw.nextEdge(i)); } // visit(SIGMA) to trim out SWITCH iff only one edge is // executable if (edgelist.size()==1) visit((SIGMA)nsw); // ta-da! } public void visit(CALL q) { // calls are like sigmas, but we can't actually // remove either of the edges. // Instead, we must stub out the bogus edge with an // infinite loop. for (int i=0; i<q.nextLength(); i++) { if (!execMap(q.nextEdge(i))) { Quad loop = new PHI(q.getFactory(), q, new Temp[0], 2); Quad.addEdge(q, i, loop, 0); Quad.addEdge(loop, 0, loop, 1); // don't add these edges to Ee because they're still // not executable. } } } public void visit(SIGMA q) { // if the condition is constant, link this sigma (cjmp/switch) // out of existence. Either all or exactly one edge will be // executable. Edge[] next = q.nextEdge(); int i; for (i=0; i < next.length; i++) if (execMap(next[i])) break; assert i!=next.length : q/*NO EDGES EXECUTABLE!*/; if (i==next.length-1 || !execMap(next[i+1])) { for (int j=i+1; j<next.length; j++) assert !execMap(next[j]); // only one edge is executable. int liveEdge = i; assert !(q instanceof CALL); // Grab the link information from the original CJMP/SWITCH. Quad header = q.prev(0); int which_succ = q.prevEdge(0).which_succ(); Quad successor = q.next(liveEdge); int which_pred = q.nextEdge(liveEdge).which_pred(); // insert a series of MOVEs to implement SIGMAs for (i=0; i < q.numSigmas(); i++) { Quad qq = new MOVE(q.getFactory(), q, q.dst(i,liveEdge), q.src(i)); Quad.addEdge(header, which_succ, qq, 0); Ee.add(header.nextEdge(which_succ)); header = qq; which_succ = 0; } // link to successor. Quad.addEdge(header, which_succ, successor, which_pred); Ee.add(header.nextEdge(which_succ)); } } // end VISIT SIGMA public void visit(PHI q) { // remove non-executable edges into this PHI. for (int i=0; i < q.prev().length; ) { if (!execMap(q.prevEdge(i))) q.removePred(i); else i++; } // replace any phi's with constant args with a CONST. for (int i=0; i < q.numPhis(); ) { if (cm.isConst(q, q.dst(i))) { // insert CONST. Quad qq = newCONST(q.getFactory(), q, q.dst(i), cm.constMap(q, q.dst(i)), ti.typeMap(q, q.dst(i)) ); Edge edge = q.nextEdge(0); Quad.addEdge(qq, 0,(Quad)edge.to(), edge.which_pred()); Quad.addEdge(q, 0, qq, 0); Ee.add(q.nextEdge(0)); Ee.add(qq.nextEdge(0)); q.removePhi(i); // remove i'th phi function. } else i++; } } // end VISIT PHI. }; // actual traversal code. Quad[] ql = (Quad[]) hc.getElements(); for (int i=0; i<ql.length; i++) if (execMap(ql[i])) ql[i].accept(visitor); // clean up the mess DeadCode.optimize((harpoon.IR.Quads.Code)hc, null /* throw away AllocationInformation */); } | 2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/ae73e6914d226d74c23bbe0da89acd8d2aabada9/SCCOptimize.java/buggy/Analysis/Quads/SCC/SCCOptimize.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10979,
12,
6385,
670,
1085,
11684,
13,
288,
377,
202,
24483,
7413,
8000,
273,
394,
27258,
7413,
1435,
288,
202,
565,
1071,
918,
3757,
12,
24483,
1043,
13,
288,
202,
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,
377,
1071,
918,
10979,
12,
6385,
670,
1085,
11684,
13,
288,
377,
202,
24483,
7413,
8000,
273,
394,
27258,
7413,
1435,
288,
202,
565,
1071,
918,
3757,
12,
24483,
1043,
13,
288,
202,
202,
759,
... |
ArrayList ary = new ArrayList(getALength()); for (Node node = this; node != null ; node = node.getNextNode()) { ary.add(node.getHeadNode().eval(ruby, self)); } | ArrayList ary = getArrayList(ruby, self); | public RubyObject[] getArray(Ruby ruby, RubyObject self) { ArrayList ary = new ArrayList(getALength()); for (Node node = this; node != null ; node = node.getNextNode()) { ary.add(node.getHeadNode().eval(ruby, self)); } return (RubyObject[])ary.toArray(new RubyObject[ary.size()]); } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/f629550c5947df9c1dbe414645f3dc76bcb70df4/ArrayNode.java/buggy/org/jruby/nodes/ArrayNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
8526,
12634,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
3639,
2407,
11841,
273,
394,
2407,
12,
588,
1013,
1288,
10663,
3639,
364,
261,
907,
756,
273,
333,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
8526,
12634,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
3639,
2407,
11841,
273,
394,
2407,
12,
588,
1013,
1288,
10663,
3639,
364,
261,
907,
756,
273,
333,
31,
... |
return children.size(); | return children.length; | public int getElementCount() { return children.size(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24b73181a09b4527eb22c4c8eb2b482d63993ef9/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
7426,
1380,
1435,
565,
288,
1377,
327,
2325,
18,
2469,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
7426,
1380,
1435,
565,
288,
1377,
327,
2325,
18,
2469,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
run("./Future1Boxed.x10","Future1Boxed","./Constructs/Future"); } | runHelper(); } | public void test_Constructs_Future_Future1Boxed() { run("./Future1Boxed.x10","Future1Boxed","./Constructs/Future"); } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/3bd1027a0e8a0edbdacb19b952cc4296d36760df/TestCompiler.java/clean/x10.test/src/polyglot/ext/x10/tests/TestCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
13262,
67,
4118,
67,
4118,
21,
3514,
329,
1435,
288,
3639,
1086,
2932,
18,
19,
4118,
21,
3514,
329,
18,
92,
2163,
15937,
4118,
21,
3514,
329,
3113,
9654,
19,
13262,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
67,
13262,
67,
4118,
67,
4118,
21,
3514,
329,
1435,
288,
3639,
1086,
2932,
18,
19,
4118,
21,
3514,
329,
18,
92,
2163,
15937,
4118,
21,
3514,
329,
3113,
9654,
19,
13262,... |
} | public void timePassing(double time) { Collection fixedMalfunctions = new ArrayList(); // Check if any malfunctions are fixed. if (hasMalfunction()) { Iterator i = malfunctions.iterator(); while (i.hasNext()) { Malfunction malfunction = (Malfunction) i.next(); if (malfunction.isFixed()) { // System.out.println(malfunction.getName() + " at " + entity.getName() + " is fully fixed."); fixedMalfunctions.add(malfunction); } } } if (fixedMalfunctions.size() > 0) { Iterator i = fixedMalfunctions.iterator(); while (i.hasNext()) { Malfunction item = (Malfunction)i.next(); malfunctions.remove(item); HistoricalEvent newEvent = new HistoricalEvent("Repaired", entity, item.getName()); mars.getEventManager().registerNewEvent(newEvent); } } // Determine life support modifiers. setLifeSupportModifiers(time); // Deplete resources. depleteResources(time); } | 49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/a697e2d1c1cc6fd42f5cd03f8faef0903a937fca/MalfunctionManager.java/buggy/org/mars_sim/msp/simulation/malfunction/MalfunctionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
813,
6433,
310,
12,
9056,
813,
13,
288,
3639,
2200,
5499,
49,
287,
10722,
273,
394,
2407,
5621,
3639,
368,
2073,
309,
1281,
27431,
10722,
854,
5499,
18,
202,
430,
261,
5332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
813,
6433,
310,
12,
9056,
813,
13,
288,
3639,
2200,
5499,
49,
287,
10722,
273,
394,
2407,
5621,
3639,
368,
2073,
309,
1281,
27431,
10722,
854,
5499,
18,
202,
430,
261,
5332,
... | |
return single.requiresTraining(); } | return single.requiresTraining(); } | public boolean requiresTraining() { return single.requiresTraining(); } | 45325 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45325/9d7d7ef96431a47fb3a1e2dfe7df19a71f0925ec/FeatureTypesEachLabel.java/buggy/src/iitb/Model/FeatureTypesEachLabel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
4991,
14527,
1435,
288,
202,
202,
2463,
2202,
18,
18942,
14527,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
4991,
14527,
1435,
288,
202,
202,
2463,
2202,
18,
18942,
14527,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
buf.append(c); | throw new EOFException(); | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); buf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = false; boolean entities = false; for (char c = literalReadCh(); c != delim; c = literalReadCh()) { switch (c) { case '\n': case '\r': if ((flags & (LIT_ATTRIBUTE | LIT_PUBID)) != 0) c = ' '; // normalize to space break; case '\t': if ((flags & LIT_ATTRIBUTE) != 0) c = ' '; // normalize to space break; case '&': mark(2); c = readCh(); if (c == '#') { if ((flags & LIT_DISABLE_CREF) != 0) error("literal may not contain character reference"); mark(1); c = readCh(); boolean hex = (c == 'x'); if (!hex) reset(); char[] ref = readCharacterRef(hex ? 16 : 10); for (int i = 0; i < ref.length; i++) { c = ref[i]; if ((flags & (LIT_ATTRIBUTE | LIT_PUBID)) != 0 && (c == '\n' || c == '\r')) c = ' '; // normalize else if ((flags & LIT_ATTRIBUTE) != 0 && c == '\t') c = ' '; // normalize buf.append(c); } entities = true; continue; } else { if ((flags & LIT_DISABLE_EREF) != 0) error("literal may not contain entity reference"); reset(); if (replaceERefs || (flags & LIT_NORMALIZE) > 0) { String entityName = readNmtoken(true); require(';'); String text = (String) PREDEFINED_ENTITIES.get(entityName); if (text != null) buf.append(text); else expandEntity(entityName); entities = true; continue; } else error("parser is configured not to replace entity " + "references"); } break; case '<': if ((flags & LIT_ATTRIBUTE) != 0) error("attribute values may not contain '<'"); break; } buf.append(c); } expandPE = saved; if (entities) normalizeCRLF(); if ((flags & LIT_NORMALIZE) > 0) normalize(); return buf.toString(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0194d0bf7a4335231f8ce3fab46cefa8a9a70bb0/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
514,
855,
6177,
12,
474,
2943,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1250,
5198,
273,
4542,
1423,
31,
565,
1149,
10508,
273,
855,
782,
5621,
565,
309,
261,
23822,
480,
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,
282,
3238,
514,
855,
6177,
12,
474,
2943,
13,
565,
1216,
1860,
16,
21526,
225,
288,
565,
1250,
5198,
273,
4542,
1423,
31,
565,
1149,
10508,
273,
855,
782,
5621,
565,
309,
261,
23822,
480,
15... |
mid = (end - prev_end)/2; | mid = prev_end + (end - prev_end)/2; | public String process (Item seg) throws ProcessException{ //System.out.println("Looking for pitch..."); try{ float mid; float end = seg.getFeatures().getFloat("end"); Item prev = seg.getPrevious(); if (prev == null) { mid = end/2; } else { float prev_end = prev.getFeatures().getFloat("end"); mid = (end - prev_end)/2; } Relation targetRelation = seg.getUtterance().getRelation("Target"); if (targetRelation == null){ return "0.0"; } int lastTarget = seg.getFeatures().getInt("lastTarget"); int nextTarget = seg.getFeatures().getInt("nextTarget"); Item lastTargetItem = getTargetItem(targetRelation,lastTarget); Item nextTargetItem = getTargetItem(targetRelation,nextTarget); if (lastTargetItem == null || nextTargetItem == null){ return "0.0"; } float lastF0 = lastTargetItem.getFeatures().getFloat("f0"); float lastPos = lastTargetItem.getFeatures().getFloat("pos"); float nextF0 = nextTargetItem.getFeatures().getFloat("f0"); float nextPos = nextTargetItem.getFeatures().getFloat("pos"); //System.out.println("lastPos: "+lastPos+" lastF0: "+lastF0+" nextPos: "+nextPos // +" nextF0: "+nextF0); float slope = (nextF0 - lastF0) / (nextPos - lastPos); float intersectionYAxis = lastF0 - slope*lastPos; float pitch = slope*mid+intersectionYAxis; //System.out.println("slope: "+slope+" intersection: "+ // intersectionYAxis+" mid: "+mid+" pitch: "+pitch); return Float.toString(pitch); } catch (NullPointerException npe){ //npe.printStackTrace(); System.out.println("Problem calculating pitch"); return "0.0"; } } | 49846 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49846/c1adbf0f073bf408862c069beed0047c384e260e/GenericFeatureProcessors.java/clean/java/de/dfki/lt/mary/unitselection/featureprocessors/GenericFeatureProcessors.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1207,
261,
1180,
2291,
13,
1216,
4389,
503,
95,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
9794,
310,
364,
14486,
7070,
1769,
5411,
775,
95,
5411,
1431,
7501,
31,
5411,
1431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1207,
261,
1180,
2291,
13,
1216,
4389,
503,
95,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
9794,
310,
364,
14486,
7070,
1769,
5411,
775,
95,
5411,
1431,
7501,
31,
5411,
1431,
... |
public static DERUTF8String getInstance( Object obj) | public static DERUTF8String getInstance(Object obj) | public static DERUTF8String getInstance( Object obj) { if (obj == null || obj instanceof DERUTF8String) { return (DERUTF8String)obj; } if (obj instanceof ASN1OctetString) { return new DERUTF8String(((ASN1OctetString)obj).getOctets()); } if (obj instanceof ASN1TaggedObject) { return getInstance(((ASN1TaggedObject)obj).getObject()); } throw new IllegalArgumentException("illegal object in getInstance: " + obj.getClass().getName()); } | 53000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53000/b112da6f2b9bc0b03599d0c4f87783cab94c1bf3/DERUTF8String.java/buggy/crypto/src/org/bouncycastle/asn1/DERUTF8String.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
21801,
5159,
28,
780,
3694,
12,
3639,
1033,
225,
1081,
13,
565,
288,
3639,
309,
261,
2603,
422,
446,
747,
1081,
1276,
21801,
5159,
28,
780,
13,
3639,
288,
5411,
327,
261,
417... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21801,
5159,
28,
780,
3694,
12,
3639,
1033,
225,
1081,
13,
565,
288,
3639,
309,
261,
2603,
422,
446,
747,
1081,
1276,
21801,
5159,
28,
780,
13,
3639,
288,
5411,
327,
261,
417... |
protected void addImpl (Component comp, Object constraints, int index) { if (index > ncomponents || comp instanceof Window || (comp instanceof Container && ((Container) comp).isAncestorOf (this))) throw new IllegalArgumentException (); // Reparent component, and make sure component is instantiated if // we are. if (comp.parent != this) comp.parent.remove (comp); comp.parent = this; if (peer != null) comp.addNotify (); invalidate (); // This isn't the most efficient implementation. We could do less // copying when growing the array. It probably doesn't matter. if (ncomponents >= component.length) { int nl = component.length * 2; Component[] c = new Component[nl]; System.arraycopy (component, 0, c, 0, ncomponents); component = c; } if (index == -1) component[ncomponents++] = comp; else { System.arraycopy (component, index, component, index + 1, ncomponents - index); component[index] = comp; ++ncomponents; } // Notify the layout manager. if (layoutMgr != null) { if (constraints != null && layoutMgr instanceof LayoutManager2) { LayoutManager2 lm2 = (LayoutManager2) layoutMgr; lm2.addLayoutComponent (comp, constraints); } else layoutMgr.addLayoutComponent ((String) constraints, comp); } ContainerEvent ce = new ContainerEvent (this, ContainerEvent.COMPONENT_ADDED, comp); // FIXME: is this right? dispatchEvent (ce); if (containerListener != null) containerListener.componentAdded (ce); } | 45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/14a46ad9e70e8baeb4a720508e0a04f9df8b41f5/Container.java/buggy/libjava/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
527,
2828,
261,
1841,
1161,
16,
1033,
6237,
16,
509,
770,
15329,
430,
261,
1615,
405,
290,
8119,
202,
20081,
1161,
1276,
6076,
202,
20081,
261,
2919,
1276,
4039,
202,
10,
10,
14015,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
527,
2828,
261,
1841,
1161,
16,
1033,
6237,
16,
509,
770,
15329,
430,
261,
1615,
405,
290,
8119,
202,
20081,
1161,
1276,
6076,
202,
20081,
261,
2919,
1276,
4039,
202,
10,
10,
14015,... | ||
System.out.println(" database changed "); | synchronized void _check_mtime(){ try { if ((dboptions & GEOIP_CHECK_CACHE) != 0){ long t = databaseFile.lastModified(); if (t != mtime){ System.out.println(" database changed "); /* GeoIP Database file updated */ /* refresh filehandle */ file.close(); file = new RandomAccessFile(databaseFile,"r"); mtime = t; if ((dboptions & GEOIP_MEMORY_CACHE) != 0){ /* reload database into memory cache */ int l = (int) file.length(); dbbuffer = new byte[l]; file.seek(0); file.read(dbbuffer,0,l); } if ((dboptions & GEOIP_INDEX_CACHE) != 0){ int l = databaseSegments[0] * recordLength * 2; index_cache = new byte[l]; if (index_cache != null){ file.seek(0); file.read(index_cache,0,l); } } //return true; } } } catch (IOException e) { System.out.println("file not found"); } } | 6812 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6812/e30eb29e85f27c9dea62354fae4f3c6424d99de9/LookupService.java/clean/source/com/maxmind/geoip/LookupService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
389,
1893,
67,
10838,
1435,
95,
1377,
775,
288,
3639,
309,
14015,
72,
1075,
573,
473,
17788,
51,
2579,
67,
10687,
67,
8495,
13,
480,
374,
15329,
1850,
1525,
268,
273,
2063,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
389,
1893,
67,
10838,
1435,
95,
1377,
775,
288,
3639,
309,
14015,
72,
1075,
573,
473,
17788,
51,
2579,
67,
10687,
67,
8495,
13,
480,
374,
15329,
1850,
1525,
268,
273,
2063,
8... | |
super(maxHits); | super(numHits); | public LimitedCollector(int numHits, int maxHits) { super(maxHits); this.maxHits = maxHits; } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/f2b977b670aefff850597e68d964d33a738ac57d/LuceneQueryOptimizer.java/clean/src/java/org/apache/nutch/searcher/LuceneQueryOptimizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7214,
329,
7134,
12,
474,
818,
20950,
16,
509,
943,
20950,
13,
288,
1377,
2240,
12,
2107,
20950,
1769,
1377,
333,
18,
1896,
20950,
273,
943,
20950,
31,
565,
289,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7214,
329,
7134,
12,
474,
818,
20950,
16,
509,
943,
20950,
13,
288,
1377,
2240,
12,
2107,
20950,
1769,
1377,
333,
18,
1896,
20950,
273,
943,
20950,
31,
565,
289,
2,
-100,
-100,
-1... |
printDebug( "Validate Coord: " + value); printDebug( "System in: " + insys + " " + inJB + inequinox ); printDebug( "System out: " + outsys + " " + outJB + outequinox ); | printDebug( "validate: Coord: " + value); printDebug( " System in: " + insys + " " + inJBeq + inequinox ); printDebug( " System out: " + outsys + " " + outJBeq + outequinox ); | public AngleDR validate( String value ) { String text = null; AngleDR ra, rb, rw; double a, b, w; printDebug( "Validate Coord: " + value); printDebug( "System in: " + insys + " " + inJB + inequinox ); printDebug( "System out: " + outsys + " " + outJB + outequinox ); if ( value.equals( "" ) ) { answer = null; return null; } else { text = value; } palString val = new palString( value + "\n"); double d[] = new double[10]; int jf[] = new int[10]; if ( lowprec ) { setPrecision( 'L' ); } else if ( mediumprec ) { setPrecision( 'M' ); } else if ( highprec ) { setPrecision( 'H' ); } if ( insys == '4' || insys == 'B' || insys == '5' || insys == 'A' ) { for ( int i=0; i < 10; i++ ) { double f = 0.0; f = pal.Dfltin( val, f ); int j = pal.Status; d[i] = f; if ( i == 6 || i == 7 ) if ( val.getChar() == '"' ) { j = -2; val.incrChar(); } jf[i] = j; if ( j > 1 ) { printDebug( "Flag " + i + " = " + j ); return null; } else if ( j != 1 ) { count = i+1; } } printDebug ( "Number of fields = " + count ); if ( count < 2 ) return null; if ( count == 2 ) { jf[5] = 0; jf[4] = 0; d[3] = d[1]; jf[3] = jf[1]; d[1] = 0.0; jf[1] = 0; d[2] = 0.0; jf[2] = 0; count = 6; } else if ( degrees ) { return null; } else if ( count == 3 ) { return null; } else if ( count == 4 ) { jf[5] = 0; d[4] = d[3]; jf[4] = jf[3]; d[3] = d[2]; jf[3] = jf[2]; d[2] = 0.0; jf[2] = 0; count = 6; } else if ( count == 5 ) { jf[5] = 0; count = 6; } printDebug( "Coarse Validity Check" ); /* Coarse Validity check */ if ( jf[0] != 0 || jf[1] != 0 || jf[2] != 0 || jf[3] > 0 || jf[4] != 0 || jf[5] != 0 ||count == 7 || Math.abs( d[6] ) >= 15.0 || Math.abs( d[7] ) >= 15.0 || jf[8] < 0 || d[8] >= 1.0 || Math.abs( d[9] ) >= 200.0 || ( insys == 'A' && count > 6 ) ) return null; a = ( 60.0 * (60.0*d[0] + d[1] ) + d[2] ) * S2R; b = ( 60.0 * (60.0*Math.abs( d[3] ) + d[4] ) + d[5] ) * AS2R; if ( jf[3] < 0 ) b = -b; jz = jf[6]; da = d[6] * S2R; db = d[7] * AS2R; px = d[8]; rv = d[9]; if ( degrees ) a = a / 15.0; if ( jz == -2 ) { ra = new AngleDR( da/15.0, db ); rb = new AngleDR( 0.0, b ); ra = pal.Dtp2s( ra, rb ); da = pal.Drange( ra.getAlpha() ); db = ra.getDelta() - b; } else { printDebug( "Angle > 15.0" ); if ( Math.cos(a) * Math.abs(da) / AS2R >= 15.0 ) return null; } } else {/* Decode ecliptic or galactic coordinates */ w = 0.0; w = pal.Dfltin( val, w ); if ( pal.Status > 0 ) return null; a = w * D2R; w = pal.Dfltin( val, w ); if ( pal.Status > 0 ) return null; b = w * D2R; if ( Math.abs( w ) > 90.0 ) return null; }/* Check nothing left in record */ printDebug ( "Check end of String " + val.getPos() + " " + val.length() ); if ( val.getPos() < val.length() ) return null;/* Normalise */ ra = new AngleDR( a, b ); double v[] = pal.Dcs2c( ra ); ra = pal.Dcc2s( v ); ra.setAlpha( pal.Dranrm ( ra.getAlpha() ) ); ra = normalize ( ra ); return ra; } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/5499057960531eb152fbab79fcdc99b83d5f7003/CoordinateConversion.java/buggy/coco/src/main/uk/ac/starlink/coco/CoordinateConversion.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
24154,
6331,
1954,
12,
514,
460,
262,
288,
3639,
514,
977,
273,
446,
31,
3639,
24154,
6331,
767,
16,
7138,
16,
7985,
31,
3639,
1645,
279,
16,
324,
16,
341,
31,
3639,
1172,
2829,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24154,
6331,
1954,
12,
514,
460,
262,
288,
3639,
514,
977,
273,
446,
31,
3639,
24154,
6331,
767,
16,
7138,
16,
7985,
31,
3639,
1645,
279,
16,
324,
16,
341,
31,
3639,
1172,
2829,
... |
weapon.flags |= F_FLAMER | F_ENERGY; | weapon.flags |= F_FLAMER | F_ENERGY | F_BURST_FIRE; | private static WeaponType createCLFlamer() { WeaponType weapon = new WeaponType(); weapon.techLevel = TechConstants.T_CLAN_LEVEL_2; weapon.name = "Flamer"; weapon.setInternalName("CLFlamer"); weapon.addLookupName("Clan Flamer"); weapon.heat = 3; weapon.damage = 2; weapon.ammoType = AmmoType.T_NA; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 1; weapon.mediumRange = 2; weapon.longRange = 3; weapon.extremeRange = 4; weapon.tonnage = 0.5f; weapon.criticals = 1; weapon.flags |= F_FLAMER | F_ENERGY; weapon.bv = 6; String[] modes = { "Damage", "Heat" }; weapon.setModes(modes); weapon.cost = 7500; return weapon; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/6e1b12cd6539c07d258d62cd05cf7c5a167a9268/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1660,
28629,
559,
752,
5017,
2340,
24458,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
28012,
2355,
273,
399,
8987,
2918... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1660,
28629,
559,
752,
5017,
2340,
24458,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
3639,
732,
28629,
18,
28012,
2355,
273,
399,
8987,
2918... |
ILaunchConfigurationWorkingCopy configwc = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(IRemoteProxyConstants.LOCAL_LAUNCH_TYPE).newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom("LocalProxy_"+project.getName())); | ILaunchConfigurationWorkingCopy configwc = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(IProxyConstants.LOCAL_LAUNCH_TYPE).newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom("LocalProxy_"+project.getName())); | public static ProxyFactoryRegistry startImplementation( IProject project, String vmTitle, IConfigurationContributor[] aContribs, IProgressMonitor pm) throws CoreException { // First find the appropriate launch configuration to use for this project. // The process is: // 1) See if the project's persistent property has a setting for "proxyLaunchConfiguration", if it does, // get the configuration of that name and create a working copy of it. // 2) If not, then get the "org.eclipse.jem.proxy.LocalProxyLaunchConfigurationType" // and create a new instance working copy. IJavaProject javaProject = JavaCore.create(project); if (javaProject == null) { throw new CoreException( new Status( IStatus.WARNING, ProxyPlugin.getPlugin().getDescriptor().getUniqueIdentifier(), 0, MessageFormat.format( ProxyMessages.getString(ProxyMessages.NOT_JAVA_PROJECT), new Object[] { project.getName()}), null)); } // First if specific set. String launchName = project.getPersistentProperty(PROPERTY_LAUNCH_CONFIGURATION); ILaunchConfiguration config = null; if (launchName != null && !NOT_SET.equals(launchName)) { ILaunchConfiguration[] configs = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurations(); for (int i = 0; i < configs.length; i++) { if (configs[i].getName().equals(launchName)) { config = configs[i]; break; } } if (config == null || !config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, "").equals(project.getName())) { project.setPersistentProperty(PROPERTY_LAUNCH_CONFIGURATION, (String) null); // Config not found, or for a different project, so no longer the default. config = null; } } if (config == null) { ILaunchConfigurationWorkingCopy configwc = DebugPlugin.getDefault().getLaunchManager().getLaunchConfigurationType(IRemoteProxyConstants.LOCAL_LAUNCH_TYPE).newInstance(null, DebugPlugin.getDefault().getLaunchManager().generateUniqueLaunchConfigurationNameFrom("LocalProxy_"+project.getName())); configwc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJECT_NAME, project.getName()); config = configwc; } return startImplementation(config, vmTitle, aContribs, pm); } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/75a8c1b96c14de389b11d746a188e99bb3bf5259/ProxyLaunchSupport.java/buggy/plugins/org.eclipse.jem.proxy/proxy/org/eclipse/jem/internal/proxy/core/ProxyLaunchSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7659,
1733,
4243,
787,
13621,
12,
1082,
202,
45,
4109,
1984,
16,
1082,
202,
780,
4268,
4247,
16,
1082,
202,
45,
1750,
442,
19293,
8526,
279,
442,
665,
87,
16,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
7659,
1733,
4243,
787,
13621,
12,
1082,
202,
45,
4109,
1984,
16,
1082,
202,
780,
4268,
4247,
16,
1082,
202,
45,
1750,
442,
19293,
8526,
279,
442,
665,
87,
16,
1082,
202,
... |
nextbit = Util.substitute( patMat, MENU_PATTERN, menuparsersubstitution, nextbit, Util.SUBSTITUTE_ALL ); | String result = Util.substitute( patMat, MENU_PATTERN, menuparsersubstitution, template, Util.SUBSTITUTE_ALL ); | private String replaceTags( String nextbit, Perl5Matcher patMat, MenuParserSubstitution menuparsersubstitution, ImcmsTagSubstitution imcmstagsubstitution, MapSubstitution hashtagsubstitution ) { // Menus. nextbit = Util.substitute( patMat, MENU_PATTERN, menuparsersubstitution, nextbit, Util.SUBSTITUTE_ALL ); // <?imcms:tags?> nextbit = Util.substitute( patMat, IMCMS_TAG_PATTERN, imcmstagsubstitution, nextbit, Util.SUBSTITUTE_ALL ); // #hashtags# nextbit = Util.substitute( patMat, HASHTAG_PATTERN, hashtagsubstitution, nextbit, Util.SUBSTITUTE_ALL ); return nextbit; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ad377e1666afe055ff7402850f0d10196cb46451/TextDocumentParser.java/buggy/server/src/imcode/server/parser/TextDocumentParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1453,
3453,
12,
514,
1024,
3682,
16,
5722,
80,
25,
6286,
9670,
15947,
16,
9809,
2678,
23798,
21247,
416,
5913,
414,
373,
14278,
16,
27573,
2221,
6851,
1805,
23798,
709,
7670,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1453,
3453,
12,
514,
1024,
3682,
16,
5722,
80,
25,
6286,
9670,
15947,
16,
9809,
2678,
23798,
21247,
416,
5913,
414,
373,
14278,
16,
27573,
2221,
6851,
1805,
23798,
709,
7670,
3... |
org.exist.xquery.parser.XQueryAST tmp57_AST_in = (org.exist.xquery.parser.XQueryAST)_t; | org.exist.xquery.parser.XQueryAST tmp59_AST_in = (org.exist.xquery.parser.XQueryAST)_t; | public final Expression typeCastExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST typeCastExpr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST castAST = null; org.exist.xquery.parser.XQueryAST t = null; org.exist.xquery.parser.XQueryAST castableAST = null; org.exist.xquery.parser.XQueryAST t2 = null; step= null; PathExpr expr= new PathExpr(context); int cardinality= Cardinality.EXACTLY_ONE; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_cast: { AST __t206 = _t; castAST = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_cast); _t = _t.getFirstChild(); step=expr(_t,expr); _t = _retTree; t = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATOMIC_TYPE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUESTION: { org.exist.xquery.parser.XQueryAST tmp57_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QUESTION); _t = _t.getNextSibling(); cardinality= Cardinality.ZERO_OR_ONE; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } QName qn= QName.parse(context, t.getText()); int code= Type.getType(qn); CastExpression castExpr= new CastExpression(context, expr, code, cardinality); castExpr.setASTNode(castAST); path.add(castExpr); step = castExpr; _t = __t206; _t = _t.getNextSibling(); break; } case LITERAL_castable: { AST __t208 = _t; castableAST = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_castable); _t = _t.getFirstChild(); step=expr(_t,expr); _t = _retTree; t2 = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATOMIC_TYPE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUESTION: { org.exist.xquery.parser.XQueryAST tmp58_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QUESTION); _t = _t.getNextSibling(); cardinality= Cardinality.ZERO_OR_ONE; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } QName qn= QName.parse(context, t2.getText()); int code= Type.getType(qn); CastableExpression castExpr= new CastableExpression(context, expr, code, cardinality); castExpr.setASTNode(castAST); path.add(castExpr); step = castExpr; _t = __t208; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
618,
9735,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
618,
9735,
4742,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
23... |
NodeRef ref = new NodeRef(doc.getDocId()); final IndexQuery idx = new IndexQuery(IndexQuery.TRUNC_RIGHT, ref); new DOMTransaction(this, domDb) { public Object start() { try { domDb.findKeys(idx); } catch (BTreeException e) { LOG.warn("start() - " + "error while removing doc", e); } catch (IOException e) { LOG.warn("start() - " + "error while removing doc", e); } return null; } } .run(); | public void checkTree(final DocumentImpl doc) { LOG.debug("Checking DOM tree for document " + doc.getFileName()); new DOMTransaction(this, domDb, Lock.READ_LOCK) { public Object start() throws ReadOnlyException { LOG.debug("Pages used: " + domDb.debugPages(doc)); return null; } }.run(); NodeList nodes = doc.getChildNodes(); NodeImpl n; for (int i = 0; i < nodes.getLength(); i++) { n = (NodeImpl) nodes.item(i); Iterator iterator = getNodeIterator( new NodeProxy(doc, n.getGID(), n.getInternalAddress())); iterator.next(); checkTree(iterator, n); } NodeRef ref = new NodeRef(doc.getDocId()); final IndexQuery idx = new IndexQuery(IndexQuery.TRUNC_RIGHT, ref); new DOMTransaction(this, domDb) { public Object start() { try { domDb.findKeys(idx); } catch (BTreeException e) { LOG.warn("start() - " + "error while removing doc", e); } catch (IOException e) { LOG.warn("start() - " + "error while removing doc", e); } return null; } } .run(); } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/f54245bba75f634e8e6feceb3e5199151e5b88f5/NativeBroker.java/buggy/src/org/exist/storage/NativeBroker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
866,
2471,
12,
6385,
4319,
2828,
997,
13,
288,
202,
202,
4842,
18,
4148,
2932,
14294,
4703,
2151,
364,
1668,
315,
397,
997,
18,
588,
4771,
10663,
202,
202,
2704,
4703,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
866,
2471,
12,
6385,
4319,
2828,
997,
13,
288,
202,
202,
4842,
18,
4148,
2932,
14294,
4703,
2151,
364,
1668,
315,
397,
997,
18,
588,
4771,
10663,
202,
202,
2704,
4703,
33... | |
+ whitespace); | + newlines * whitespace); | public static boolean expandAbbrev(View view, boolean add) { //{{{ Figure out some minor things Buffer buffer = view.getBuffer(); JEditTextArea textArea = view.getTextArea(); if(!buffer.isEditable()) { view.getToolkit().beep(); return false; } int line = textArea.getCaretLine(); int lineStart = buffer.getLineStartOffset(line); int caret = textArea.getCaretPosition(); String lineText = buffer.getLineText(line); if(lineText.length() == 0) { if(add) view.getToolkit().beep(); return false; } int pos = caret - lineStart; if(pos == 0) { if(add) view.getToolkit().beep(); return false; } //}}} // we reuse the 'pp' vector to save time pp.removeAllElements(); int wordStart; String abbrev; //{{{ Handle abbrevs of the form abbrev#pos1#pos2#pos3#... if(lineText.charAt(pos-1) == '#') { wordStart = lineText.indexOf('#'); wordStart = TextUtilities.findWordStart(lineText,wordStart, buffer.getStringProperty("noWordSep") + '#'); abbrev = lineText.substring(wordStart,pos - 1); // positional parameters will be inserted where $1, $2, $3, ... // occurs in the expansion int lastIndex = 0; for(int i = 0; i < abbrev.length(); i++) { if(abbrev.charAt(i) == '#') { pp.addElement(abbrev.substring(lastIndex,i)); lastIndex = i + 1; } } pp.addElement(abbrev.substring(lastIndex)); // the first element of pp is the abbrev itself abbrev = (String)pp.elementAt(0); pp.removeElementAt(0); } //}}} //{{{ Handle ordinary abbrevs else { wordStart = TextUtilities.findWordStart(lineText,pos - 1, buffer.getStringProperty("noWordSep")); abbrev = lineText.substring(wordStart,pos); } //}}} Expansion expand = expandAbbrev(buffer.getMode().getName(), abbrev,(buffer.getBooleanProperty("noTabs") ? buffer.getTabSize() : 0),pp); //{{{ Maybe show add abbrev dialog if(expand == null) { if(add) new AddAbbrevDialog(view,abbrev); return false; } //}}} //{{{ Insert the expansion else { buffer.remove(lineStart + wordStart, pos - wordStart); int whitespace = buffer.insertIndented( lineStart + wordStart, expand.text); if(expand.caretPosition != -1) { textArea.setCaretPosition(lineStart + wordStart + expand.caretPosition + whitespace); } if(expand.posParamCount != pp.size()) { view.getStatus().setMessageAndClear( jEdit.getProperty( "view.status.incomplete-abbrev", new Integer[] { new Integer(pp.size()), new Integer(expand.posParamCount) })); } return true; } //}}} } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/8da8b7e42fe31df906724245a97564ef79cf4980/Abbrevs.java/buggy/org/gjt/sp/jedit/Abbrevs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1250,
4542,
5895,
27216,
12,
1767,
1476,
16,
1250,
527,
13,
202,
95,
202,
202,
759,
12187,
95,
18818,
596,
2690,
8439,
9198,
202,
202,
1892,
1613,
273,
1476,
18,
588,
189... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4542,
5895,
27216,
12,
1767,
1476,
16,
1250,
527,
13,
202,
95,
202,
202,
759,
12187,
95,
18818,
596,
2690,
8439,
9198,
202,
202,
1892,
1613,
273,
1476,
18,
588,
189... |
this.blockArea = | blockArea = | public Status layout(Area area) throws FOPException { // MessageHandler.error(" b:LAY[" + marker + "] "); if (this.marker == BREAK_AFTER) { return new Status(Status.OK); } if (this.marker == START) { this.align = this.properties.get("text-align").getEnum(); this.alignLast = this.properties.get("text-align-last").getEnum(); this.breakAfter = this.properties.get("break-after").getEnum(); this.lineHeight = this.properties.get("line-height").getLength().mvalue(); this.startIndent = this.properties.get("start-indent").getLength().mvalue(); this.endIndent = this.properties.get("end-indent").getLength().mvalue(); this.spaceBefore = this.properties.get("space-before.optimum").getLength().mvalue(); this.spaceAfter = this.properties.get("space-after.optimum").getLength().mvalue(); this.textIndent = this.properties.get("text-indent").getLength().mvalue(); this.keepWithNext = this.properties.get("keep-with-next").getEnum(); this.backgroundColor = this.properties.get("background-color").getColorType(); this.blockWidows = this.properties.get("widows").getNumber().intValue(); this.blockOrphans = this.properties.get("orphans").getNumber().intValue(); this.id = this.properties.get("id").getString(); if (area instanceof BlockArea) { area.end(); } if (area.getIDReferences() != null) area.getIDReferences().createID(id); this.marker = 0; // no break if first in area tree, or leading in context // area int breakBeforeStatus = propMgr.checkBreakBefore(area); if (breakBeforeStatus != Status.OK) { return new Status(breakBeforeStatus); } int numChildren = this.children.size(); for (int i = 0; i < numChildren; i++) { FONode fo = (FONode)children.elementAt(i); if (fo instanceof FOText) { if (((FOText)fo).willCreateArea()) { fo.setWidows(blockWidows); break; } else { children.removeElementAt(i); numChildren = this.children.size(); i--; } } else { fo.setWidows(blockWidows); break; } } for (int i = numChildren - 1; i >= 0; i--) { FONode fo = (FONode)children.elementAt(i); if (fo instanceof FOText) { if (((FOText)fo).willCreateArea()) { fo.setOrphans(blockOrphans); break; } } else { fo.setOrphans(blockOrphans); break; } } } if ((spaceBefore != 0) && (this.marker == 0)) { area.addDisplaySpace(spaceBefore); } if (anythingLaidOut) { this.textIndent = 0; } if (marker == 0 && area.getIDReferences() != null) { area.getIDReferences().configureID(id, area); } int spaceLeft = area.spaceLeft(); this.blockArea = new BlockArea(propMgr.getFontState(area.getFontInfo()), area.getAllocationWidth(), area.spaceLeft(), startIndent, endIndent, textIndent, align, alignLast, lineHeight); this.blockArea.setGeneratedBy(this); this.areasGenerated++; if (this.areasGenerated == 1) this.blockArea.isFirst(true); // for normal areas this should be the only pair this.blockArea.addLineagePair(this, this.areasGenerated); // markers if (this.hasMarkers()) this.blockArea.addMarkers(this.getMarkers()); this.blockArea.setParent(area); // BasicLink needs it blockArea.setPage(area.getPage()); blockArea.setBackgroundColor(backgroundColor); blockArea.setBorderAndPadding(propMgr.getBorderAndPadding()); blockArea.setHyphenation(propMgr.getHyphenationProps()); blockArea.start(); blockArea.setAbsoluteHeight(area.getAbsoluteHeight()); blockArea.setIDReferences(area.getIDReferences()); blockArea.setTableCellXOffset(area.getTableCellXOffset()); int numChildren = this.children.size(); for (int i = this.marker; i < numChildren; i++) { FONode fo = (FONode)children.elementAt(i); Status status; if ((status = fo.layout(blockArea)).isIncomplete()) { this.marker = i; // this block was modified by // Hani Elabed 11/27/2000 // if ((i != 0) && (status.getCode() == Status.AREA_FULL_NONE)) // { // status = new Status(Status.AREA_FULL_SOME); // } // new block to replace the one above // Hani Elabed 11/27/2000 if (status.getCode() == Status.AREA_FULL_NONE) { // something has already been laid out if ((i != 0)) { status = new Status(Status.AREA_FULL_SOME); area.addChild(blockArea); area.setMaxHeight(area.getMaxHeight() - spaceLeft + blockArea.getMaxHeight()); area.increaseHeight(blockArea.getHeight()); area.setAbsoluteHeight(blockArea.getAbsoluteHeight()); anythingLaidOut = true; return status; } else // i == 0 nothing was laid out.. { anythingLaidOut = false; return status; } } // blockArea.end(); area.addChild(blockArea); area.setMaxHeight(area.getMaxHeight() - spaceLeft + blockArea.getMaxHeight()); area.increaseHeight(blockArea.getHeight()); area.setAbsoluteHeight(blockArea.getAbsoluteHeight()); anythingLaidOut = true; return status; } anythingLaidOut = true; } blockArea.end(); area.setMaxHeight(area.getMaxHeight() - spaceLeft + blockArea.getMaxHeight()); area.addChild(blockArea); /* should this be combined into above? */ area.increaseHeight(blockArea.getHeight()); area.setAbsoluteHeight(blockArea.getAbsoluteHeight()); if (spaceAfter != 0) { area.addDisplaySpace(spaceAfter); } if (area instanceof BlockArea) { area.start(); } // no break if last in area tree, or trailing in context // area int breakAfterStatus = propMgr.checkBreakAfter(area); if (breakAfterStatus != Status.OK) { this.marker = BREAK_AFTER; return new Status(breakAfterStatus); } if (keepWithNext != 0) { return new Status(Status.KEEP_WITH_NEXT); } // MessageHandler.error(" b:OK" + marker + " "); this.blockArea.isLast(true); return new Status(Status.OK); } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/cc7a009f4767f9207956d8a4672c608659fd2cf9/Block.java/buggy/src/org/apache/fop/fo/flow/Block.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2685,
3511,
12,
5484,
5091,
13,
1216,
478,
3665,
503,
288,
3639,
368,
2350,
1503,
18,
1636,
2932,
324,
30,
7868,
9614,
397,
5373,
397,
9850,
315,
1769,
3639,
309,
261,
2211,
18,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2685,
3511,
12,
5484,
5091,
13,
1216,
478,
3665,
503,
288,
3639,
368,
2350,
1503,
18,
1636,
2932,
324,
30,
7868,
9614,
397,
5373,
397,
9850,
315,
1769,
3639,
309,
261,
2211,
18,
1... |
Result result = runQuery( "with member [Measures].[Store Profit Rate] as '([Measures].[Store Sales]-[Measures].[Store Cost])/[Measures].[Store Cost]', format = '#.00%'" + nl + "select" + nl + " {[Measures].[Store Cost],[Measures].[Store Sales],[Measures].[Store Profit Rate]} on columns," + nl + " Order([Product].[Product Department].members, [Measures].[Store Profit Rate], BDESC) on rows" + nl + "from Sales" + nl + "where ([Time].[1997])"); | runQueryCheckResult(sampleQueries[5]); | public void testSample5() { Result result = runQuery( "with member [Measures].[Store Profit Rate] as '([Measures].[Store Sales]-[Measures].[Store Cost])/[Measures].[Store Cost]', format = '#.00%'" + nl + "select" + nl + " {[Measures].[Store Cost],[Measures].[Store Sales],[Measures].[Store Profit Rate]} on columns," + nl + " Order([Product].[Product Department].members, [Measures].[Store Profit Rate], BDESC) on rows" + nl + "from Sales" + nl + "where ([Time].[1997])"); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/7509e0f25235fd2cb529aabfa3408833d5f3a58b/FoodMartTestCase.java/buggy/src/main/mondrian/test/FoodMartTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8504,
25,
1435,
288,
202,
202,
1253,
563,
273,
1086,
1138,
12,
9506,
202,
6,
1918,
3140,
306,
23177,
1823,
8009,
63,
2257,
1186,
7216,
13025,
65,
487,
296,
3816,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8504,
25,
1435,
288,
202,
202,
1253,
563,
273,
1086,
1138,
12,
9506,
202,
6,
1918,
3140,
306,
23177,
1823,
8009,
63,
2257,
1186,
7216,
13025,
65,
487,
296,
3816,
23... |
if (singleton == null) | if (singleton == null) { | public IStatus runInUIThread(IProgressMonitor monitor) { if (singleton == null) return Status.CANCEL_STATUS; if (ProgressManagerUtil.rescheduleIfModalShellOpen(this)) return Status.CANCEL_STATUS; singleton.open(); return Status.OK_STATUS; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/BlockedJobsDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/BlockedJobsDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
202,
430,
261,
24487,
422,
446,
13,
25083,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
467,
1482,
1086,
382,
57,
1285,
76,
896,
12,
45,
5491,
7187,
6438,
13,
288,
6862,
202,
430,
261,
24487,
422,
446,
13,
25083,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
... |
String url = request.getParameter("url"); | public void doV1(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); stats.bumpHour(System.currentTimeMillis()); stats.bumpRequests(); ClientVersion clientVersion = clientVersionFromParams(request); stats.bumpByClient(clientVersion); try { String netName = "gnutella"; if (request.getParameter("ping") != null) { out.println("PONG jumswebcache/" + getVersion()); } else if (request.getParameter("urlfile") != null) { stats.bumpUrlRequests(); Iterator it = Data.getInstance().getURLs(netName, RemoteURL.PROTO_V1).iterator(); while (it.hasNext()) { RemoteURL url = (RemoteURL)it.next(); out.println(url.getRemoteURL()); } } else if (request.getParameter("hostfile") != null) { stats.bumpHostRequests(); Iterator it = Data.getInstance().getHosts(netName).iterator(); while (it.hasNext()) { RemoteClient host = (RemoteClient)it.next(); out.println(host.getRemoteIP() + ":" + host.getPort()); } } else if (request.getParameter("url") != null || request.getParameter("ip") != null) { stats.bumpGWC1Updates(); String remoteIP = request.getRemoteAddr(); RemoteClient remoteClient = remoteFromParams(request,clientVersion); String c = remoteClient.getClientVersion().getClient(); if (c.equals("GNUT")) throw new WebCacheException("phatbot not allowd here"); String url = request.getParameter("url"); out.println("OK"); if (Data.getInstance().isRateLimited(remoteIP)) { out.println("WARNING: update denied due to rate limit"); return; } if (remoteClient.getRemoteIP() != null) { checkAddress(remoteClient.getRemoteIP()); Data.getInstance().addHost(netName, remoteClient); } if (url != null) { try { url = URLDecoder.decode(url, "ISO-8859-1"); } catch (UnsupportedEncodingException ex) { throw new WebCacheException("bad encoding"); } RemoteURL remoteURL = new RemoteURL(url, RemoteURL.PROTO_V1, remoteClient.getClientVersion()); Data.getInstance().addURL(netName, remoteURL); } } else if (request.getParameter("statfile") != null) { out.println(stats.numRequests.getTotalCount()); out.println(stats.numRequests.getLastHourCount()); out.println(stats.numUpdates.getLastHourCount()); out.println(stats.numUpdates); } else { out.println("ERROR: unknown command"); } } catch (WebCacheException ex) { out.println("ERROR: " + ex.getMessage()); //log("doV1", ex); } } | 2284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2284/45e56ee285cb02fdd8a7d2b51a991d0d30b72657/GWebCache.java/buggy/org/mager/gwebcache/GWebCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
58,
21,
12,
2940,
18572,
590,
16,
13491,
12446,
766,
13,
13491,
1216,
16517,
16,
1860,
288,
3639,
14071,
596,
273,
766,
18,
588,
2289,
5621,
3639,
3177,
18,
70,
2801,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
58,
21,
12,
2940,
18572,
590,
16,
13491,
12446,
766,
13,
13491,
1216,
16517,
16,
1860,
288,
3639,
14071,
596,
273,
766,
18,
588,
2289,
5621,
3639,
3177,
18,
70,
2801,
13... | |
info.addNativeTypeMapping(Types.TINYINT, "NUMBER(3,0)"); | info.addNativeTypeMapping(Types.TINYINT, "NUMBER(3)"); | public Oracle8Platform() { PlatformInfo info = new PlatformInfo(); info.setMaxIdentifierLength(30); info.setRequiringNullAsDefaultValue(false); info.setPrimaryKeyEmbedded(true); info.setForeignKeysEmbedded(false); info.setIndicesEmbedded(false); info.addNativeTypeMapping(Types.ARRAY, "BLOB"); info.addNativeTypeMapping(Types.BIGINT, "NUMBER(38,0)"); info.addNativeTypeMapping(Types.BINARY, "RAW"); info.addNativeTypeMapping(Types.BIT, "NUMBER(1,0)"); info.addNativeTypeMapping(Types.DECIMAL, "NUMBER"); info.addNativeTypeMapping(Types.DISTINCT, "BLOB"); info.addNativeTypeMapping(Types.DOUBLE, "NUMBER(38)"); info.addNativeTypeMapping(Types.FLOAT, "NUMBER(38)"); info.addNativeTypeMapping(Types.INTEGER, "NUMBER(20,0)"); info.addNativeTypeMapping(Types.JAVA_OBJECT, "BLOB"); info.addNativeTypeMapping(Types.LONGVARBINARY, "BLOB"); info.addNativeTypeMapping(Types.LONGVARCHAR, "CLOB"); info.addNativeTypeMapping(Types.NULL, "BLOB"); info.addNativeTypeMapping(Types.NUMERIC, "NUMBER"); info.addNativeTypeMapping(Types.OTHER, "BLOB"); info.addNativeTypeMapping(Types.REAL, "NUMBER(18)"); info.addNativeTypeMapping(Types.REF, "BLOB"); info.addNativeTypeMapping(Types.SMALLINT, "NUMBER(5,0)"); info.addNativeTypeMapping(Types.STRUCT, "BLOB"); info.addNativeTypeMapping(Types.TIME, "DATE"); info.addNativeTypeMapping(Types.TIMESTAMP, "DATE"); info.addNativeTypeMapping(Types.TINYINT, "NUMBER(3,0)"); info.addNativeTypeMapping(Types.VARBINARY, "RAW"); info.addNativeTypeMapping(Types.VARCHAR, "VARCHAR2"); info.addNativeTypeMapping("BOOLEAN", "NUMBER(1,0)"); info.addNativeTypeMapping("DATALINK", "BLOB"); info.addDefaultSize(Types.BINARY, 254); info.addDefaultSize(Types.VARCHAR, 254); setSqlBuilder(new OracleBuilder(info)); setModelReader(new OracleModelReader(info)); } | 1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/00f40881986c6b57e3fc6470542ea338a246ef56/Oracle8Platform.java/buggy/src/java/org/apache/ddlutils/platform/oracle/Oracle8Platform.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
28544,
28,
8201,
1435,
565,
288,
3639,
11810,
966,
1123,
273,
394,
11810,
966,
5621,
3639,
1123,
18,
542,
2747,
3004,
1782,
12,
5082,
1769,
3639,
1123,
18,
542,
426,
372,
11256,
204... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28544,
28,
8201,
1435,
565,
288,
3639,
11810,
966,
1123,
273,
394,
11810,
966,
5621,
3639,
1123,
18,
542,
2747,
3004,
1782,
12,
5082,
1769,
3639,
1123,
18,
542,
426,
372,
11256,
204... |
if (defaultOK != null && (binding.prefix.length() > 0 || defaultOK.booleanValue())) { | boolean satisfiesRequirement = defaultOK != null && (binding.prefix.length() > 0 || defaultOK.booleanValue()); if (((BindingUsage)bindingUsageMap.get(binding)).required || satisfiesRequirement) { | NamespaceBindings createBindings() { // maps prefix representing a string to a namespaceUri Map prefixMap = new HashMap(); // maps namespace to preferred non-empty prefix Map nsMap = new HashMap(); prefixMap.put("xml", WellKnownNamespaces.XML); requiredNamespaces.remove(WellKnownNamespaces.XML); List bindingList = new Vector(); bindingList.addAll(bindingUsageMap.keySet()); Collections.sort(bindingList, new BindingComparator()); for (Iterator iter = bindingList.iterator(); iter.hasNext();) { Binding binding = (Binding)iter.next(); if (prefixMap.get(binding.prefix) == null) { Boolean defaultOK = (Boolean)requiredNamespaces.get(binding.namespaceUri); if (defaultOK != null && (binding.prefix.length() > 0 || defaultOK.booleanValue())) { prefixMap.put(binding.prefix, binding.namespaceUri); iter.remove(); requiredNamespaces.remove(binding.namespaceUri); if (binding.prefix.length() > 0) nsMap.put(binding.namespaceUri, binding.prefix); } } } // use any of the bindings that we haven't yet used that don't conflict for (Iterator iter = bindingList.iterator(); iter.hasNext();) { Binding binding = (Binding)iter.next(); if (prefixMap.get(binding.prefix) == null) { prefixMap.put(binding.prefix, binding.namespaceUri); } } for (int i = 0; i < conventionalBindings.length; i += 2) { String prefix = conventionalBindings[i]; if (prefixMap.get(prefix) == null) { String ns = conventionalBindings[i + 1]; Boolean defaultOK = (Boolean)requiredNamespaces.get(ns); if (defaultOK != null && (prefix.length() > 0 || defaultOK.booleanValue())) { prefixMap.put(prefix, ns); requiredNamespaces.remove(ns); if (prefix.length() > 0) nsMap.put(ns, prefix); } } } Iterator iter = requiredNamespaces.keySet().iterator(); for (int i = 1; iter.hasNext(); i++) { String prefix = "ns" + Integer.toString(i); if (prefixMap.get(prefix) == null) { Object ns = iter.next(); prefixMap.put(prefix, ns); nsMap.put(ns, prefix); } } return new NamespaceBindings(prefixMap, nsMap); } | 50651 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50651/62a1a5704e97e13481934d8181018c6a61a2c6e3/NamespaceManager.java/buggy/trang/src/com/thaiopensource/relaxng/output/rnc/NamespaceManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
6005,
10497,
752,
10497,
1435,
288,
565,
368,
7565,
1633,
5123,
279,
533,
358,
279,
1981,
3006,
565,
1635,
1633,
863,
273,
394,
4317,
5621,
565,
368,
7565,
1981,
358,
9119,
1661,
17,
5531... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6005,
10497,
752,
10497,
1435,
288,
565,
368,
7565,
1633,
5123,
279,
533,
358,
279,
1981,
3006,
565,
1635,
1633,
863,
273,
394,
4317,
5621,
565,
368,
7565,
1981,
358,
9119,
1661,
17,
5531... |
return get_Shipment_mode(); | try { return ((Integer) shipment_modeConverter.toJava(get_Shipment_mode())).intValue(); } catch (org.openxava.converters.ConversionException ex) { ex.printStackTrace(); throw new EJBException(XavaResources.getString("generator.conversion_error", "shipment.mode", "Delivery", "int")); } | public int getShipment_mode() { return get_Shipment_mode(); } | 14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/030793e9d0d4ab721e9bb90abaea43fe0ca66d5e/DeliveryBean.java/clean/OpenXavaTest/gen-src-xava/org/openxava/test/model/xejb/DeliveryBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
28674,
475,
67,
3188,
1435,
288,
3196,
202,
698,
288,
327,
14015,
4522,
13,
26990,
67,
3188,
5072,
18,
869,
5852,
12,
588,
67,
19355,
67,
3188,
10756,
2934,
474,
620,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
28674,
475,
67,
3188,
1435,
288,
3196,
202,
698,
288,
327,
14015,
4522,
13,
26990,
67,
3188,
5072,
18,
869,
5852,
12,
588,
67,
19355,
67,
3188,
10756,
2934,
474,
620,
562... |
public void mFLOAT() throws RecognitionException { try { ruleNestingLevel++; int _type = FLOAT; int _start = getCharIndex(); int _line = getLine(); int _charPosition = getCharPositionInLine(); int _channel = Token.DEFAULT_CHANNEL; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1341:4: ( ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1341:4: ( '-' )? ( '0' .. '9' )+ '.' ( '0' .. '9' )+ { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1341:4: ( '-' )? int alt5=2; int LA5_0 = input.LA(1); if ( (LA5_0=='-') ) { alt5=1; } switch (alt5) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1341:5: '-' { match('-'); if (failed) return ; } break; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1341:10: ( '0' .. '9' )+ int cnt6=0; loop6: do { int alt6=2; int LA6_0 = input.LA(1); if ( ((LA6_0>='0' && LA6_0<='9')) ) { alt6=1; } switch (alt6) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1341:11: '0' .. '9' { matchRange('0','9'); if (failed) return ; } break; default : if ( cnt6 >= 1 ) break loop6; if (backtracking>0) {failed=true; return ;} EarlyExitException eee = new EarlyExitException(6, input); throw eee; } cnt6++; } while (true); match('.'); if (failed) return ; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1341:26: ( '0' .. '9' )+ int cnt7=0; loop7: do { int alt7=2; int LA7_0 = input.LA(1); if ( ((LA7_0>='0' && LA7_0<='9')) ) { alt7=1; } switch (alt7) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1341:27: '0' .. '9' { matchRange('0','9'); if (failed) return ; } break; default : if ( cnt7 >= 1 ) break loop7; if (backtracking>0) {failed=true; return ;} EarlyExitException eee = new EarlyExitException(7, input); throw eee; } cnt7++; } while (true); } if ( backtracking==0 ) { if ( token==null && ruleNestingLevel==1 ) { emit(_type,_line,_charPosition,_channel,_start,getCharIndex()-1); } } } finally { ruleNestingLevel--; } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/d92dc116c388103ddf04d98d53904a6fdc204af5/DRLLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
15640,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
15483,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
15640,
1435,
1216,
9539,
288,
3639,
775,
288,
5411,
1720,
50,
10100,
2355,
9904,
31,
5411,
509,
389,
723,
273,
15483,
31,
5411,
509,
389,
1937,
273,
23577,
1016,
5621,
541... | ||
public abstract NamedLocation addLocation (Symbol name, Object prop, Location loc); | public final void addLocation (NamedLocation loc) { addLocation(loc.getKeySymbol(), loc.getKeyProperty(), loc); } | public abstract NamedLocation addLocation (Symbol name, Object prop, Location loc); | 36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/6df231561b7efa217227002a394fbc19a3a9e631/Environment.java/buggy/gnu/mapping/Environment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8770,
9796,
2735,
527,
2735,
261,
5335,
508,
16,
1033,
2270,
16,
7050,
1515,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
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,
282,
1071,
8770,
9796,
2735,
527,
2735,
261,
5335,
508,
16,
1033,
2270,
16,
7050,
1515,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void populateLayoutConstraint(LayoutConstraint constraint) { // TODO Auto-generated method stub } | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/1aa9d8e4021b81d1278aaf3ff0dc441a0f195829/GraphModelConnection.java/buggy/org.eclipse.zest.core/src/org/eclipse/zest/core/internal/graphmodel/GraphModelConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
3744,
5806,
12,
3744,
5806,
4954,
13,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
3744,
5806,
12,
3744,
5806,
4954,
13,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | ||
public void createTestableMethods(JClass jclass, FactoryState state) { if (jclass == null) throw new IllegalArgumentException("JClass must not be null"); jclass.addInterface("org.exolab.castor.tests.framework.CastorTestable"); jclass.addImport("org.exolab.castor.tests.framework.CastorTestable"); jclass.addImport("org.exolab.castor.tests.framework.RandomHelper"); //implementation of randomizeFields JMethod jMethod = new JMethod("randomizeFields"); jMethod.addException(new JClass("InstantiationException")); jMethod.addException(new JClass("IllegalAccessException")); jMethod.setComment("implementation of org.exolab.castor.tests.framework.CastorTestable"); jclass.addMethod(jMethod); JSourceCode jsc = jMethod.getSourceCode(); JField[] fields = jclass.getFields(); for (int i = 0; i <fields.length; i++) { JField temp = fields[i]; JType type = temp.getType(); String name = temp.getName(); if (state.fieldInfoForChoice != null) { if (name.equals(state.fieldInfoForChoice.getName())) { continue; } } if (name.startsWith("_")) name = JavaNaming.toJavaClassName(name.substring(1)); else name = JavaNaming.toJavaClassName(name); String setName = "set" + name; String componentName = null; if (name.indexOf("Has") == -1) { //Collection needs a specific handling if (type instanceof JCollectionType) {// if ( (type.getName().equals("java.util.Vector<Object>")) ||// (type.getName().equals("java.util.ArrayList<Object>")) ) { //if we are dealing with a Vector or an ArrayList //we retrieve the type included in this Collection int listLocat = name.lastIndexOf("List"); String tempName = name; if (listLocat != -1) tempName = tempName.substring(0,listLocat); String methodName = JavaNaming.toJavaClassName(tempName); methodName = "get"+methodName; JMethod method = jclass.getMethod(methodName,0); //@todo handle the Item introduced in with the group handling if (method == null) continue; componentName = method.getReturnType().getName(); method = null; methodName = null; tempName = null; jsc.add(temp.getName()); jsc.append(" = RandomHelper.getRandom("); jsc.append(temp.getName()); jsc.append(", "); jsc.append(componentName); jsc.append(".class);"); }//Vector or ArrayList else if (type.isPrimitive()) { jsc.add(setName); jsc.append("(RandomHelper.getRandom("); jsc.append(temp.getName()); jsc.append("));"); } else { jsc.add(setName); jsc.append("(("); jsc.append(type.getName()); jsc.append(")RandomHelper.getRandom("); jsc.append(temp.getName()); jsc.append(", "); jsc.append(type.getName()); jsc.append(".class));"); } jsc.add(""); } } //implementation of dumpFields jMethod = new JMethod("dumpFields", SGTypes.String, "a String representation of all of the fields for " + jclass.getName()); jMethod.setComment("implementation of org.exolab.castor.tests.framework.CastorTestable"); jclass.addMethod(jMethod); jsc = jMethod.getSourceCode(); jsc.add("String result = \"DumpFields() for element: "); jsc.append(jclass.getName()); jsc.append("\\n\";"); for (int i = 0; i <fields.length; i++) { JField temp = fields[i]; String name = temp.getName(); if ( (temp.getType().isPrimitive()) || //hack when using the option 'primitivetowrapper' //this should not interfere with other cases (temp.getType().getName().startsWith("java.lang."))) { jsc.add("result += \"Field "); jsc.append(name); jsc.append(":\" +"); jsc.append(name); jsc.append("+\"\\n\";"); } else { jsc.add("if ( ("); jsc.append(name); jsc.append(" != null) && ("); jsc.append(name); jsc.append(".getClass().isAssignableFrom(CastorTestable.class)))"); jsc.indent(); jsc.add("result += ((CastorTestable)"); jsc.append(name); jsc.append(").dumpFields();"); jsc.unindent(); jsc.add("else result += \"Field "); jsc.append(name); jsc.append(":\" +"); jsc.append(name); jsc.append("+\"\\n\";"); } jsc.add(""); } jsc.add(""); jsc.add("return result;"); }//CreateTestableMethods | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/fcdb945626043d9ec20f92b02741abd9cab7d4e7/SourceFactory.java/clean/castor/trunk/src/main/java/org/exolab/castor/builder/SourceFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
752,
4709,
429,
4712,
12,
46,
797,
525,
1106,
16,
7822,
1119,
919,
13,
288,
282,
309,
261,
78,
1106,
422,
446,
13,
282,
604,
394,
2754,
2932,
46,
797,
1297,
486,
506,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
752,
4709,
429,
4712,
12,
46,
797,
525,
1106,
16,
7822,
1119,
919,
13,
288,
282,
309,
261,
78,
1106,
422,
446,
13,
282,
604,
394,
2754,
2932,
46,
797,
1297,
486,
506,
446,
... | ||
if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) { | if (allowMemberExprAsFunctionName) { | private Object function(TokenStream ts, boolean isExpr) throws IOException, JavaScriptException { int baseLineno = ts.getLineno(); // line number where source starts String name; Object memberExprNode = null; if (ts.matchToken(ts.NAME)) { name = ts.getString(); if (!ts.matchToken(ts.LP)) { if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) { // Extension to ECMA: if 'function <name>' does not follow // by '(', assume <name> starts memberExpr sourceAddString(ts.NAME, name); Object memberExprHead = nf.createName(name); name = null; memberExprNode = memberExprTail(ts, false, memberExprHead); } mustMatchToken(ts, ts.LP, "msg.no.paren.parms"); } } else if (ts.matchToken(ts.LP)) { // Anonymous function name = null; } else { name = null; if (Context.getContext().hasFeature (Context.FEATURE_MEMBER_EXPR_AS_FUNCTION_NAME)) { // Note that memberExpr can not start with '(' like // in (1+2).toString, because 'function (' already // processed as anonymous function memberExprNode = memberExpr(ts, false); } mustMatchToken(ts, ts.LP, "msg.no.paren.parms"); } if (memberExprNode != null) { // transform 'function' <memberExpr> to <memberExpr> = function // even in the decompilated source sourceAdd((char)ts.ASSIGN); sourceAdd((char)ts.NOP); } // save a reference to the function in the enclosing source. sourceAdd((char) ts.FUNCTION); sourceAdd((char)functionNumber); ++functionNumber; // Save current source top to restore it on exit not to include // function to parent source int savedSourceTop = sourceTop; int savedFunctionNumber = functionNumber; ObjArray args = new ObjArray(); Object body; String source; try { functionNumber = 0; // FUNCTION as the first token in a Source means it's a function // definition, and not a reference. sourceAdd((char) ts.FUNCTION); if (name != null) { sourceAddString(ts.NAME, name); } sourceAdd((char) ts.LP); if (!ts.matchToken(ts.RP)) { boolean first = true; do { if (!first) sourceAdd((char)ts.COMMA); first = false; mustMatchToken(ts, ts.NAME, "msg.no.parm"); String s = ts.getString(); args.add(s); sourceAddString(ts.NAME, s); } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.parms"); } sourceAdd((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.body"); sourceAdd((char)ts.LC); sourceAdd((char)ts.EOL); body = parseFunctionBody(ts); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); sourceAdd((char)ts.RC); // skip the last EOL so nested functions work... // name might be null; source = sourceToString(savedSourceTop); } finally { sourceTop = savedSourceTop; functionNumber = savedFunctionNumber; } Object pn = nf.createFunction(name, args, body, ts.getSourceName(), baseLineno, ts.getLineno(), source, isExpr || memberExprNode != null); if (memberExprNode != null) { pn = nf.createBinary(ts.ASSIGN, ts.NOP, memberExprNode, pn); } // Add EOL but only if function is not part of expression, in which // case it gets SEMI + EOL from Statement. if (!isExpr) { if (memberExprNode != null) { // Add ';' to make 'function x.f(){}' and 'x.f = function(){}' // to print the same strings when decompiling sourceAdd((char)ts.SEMI); } sourceAdd((char)ts.EOL); wellTerminated(ts, ts.FUNCTION); } return pn; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/56c3f65ac92dbd3ff9f471a1829280e95bd7ddf4/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
445,
12,
1345,
1228,
3742,
16,
1250,
353,
4742,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
1026,
48,
267,
5764,
273,
3742,
18,
588,
48,
267,
5764,
5621,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
445,
12,
1345,
1228,
3742,
16,
1250,
353,
4742,
13,
3639,
1216,
1860,
16,
11905,
503,
565,
288,
3639,
509,
1026,
48,
267,
5764,
273,
3742,
18,
588,
48,
267,
5764,
5621,
225,... |
Class controllerClass = gcl.parseClass( "class TestController {\n" + | gcl.parseClass( "class TestController {\n" + | public void testGetTagLibForTag() throws Exception { GroovyClassLoader gcl = new GroovyClassLoader(); Class controllerClass = gcl.parseClass( "class TestController {\n" + "@Property list = {\n" + "}\n" + "}" ); Class tagLibClass1 = gcl.parseClass( "class FirstTagLib {\n" + "@Property firstTag = {\n" + "}\n" + "}" ); Class tagLibClass2 = gcl.parseClass( "class SecondTagLib {\n" + "@Property secondTag = {\n" + "}\n" + "}" ); GrailsApplicationAttributes attrs = getAttributesForClasses(new Class[]{controllerClass,tagLibClass1,tagLibClass2},gcl); assertNotNull(attrs); assertNotNull(attrs.getApplicationContext()); assertNotNull(attrs.getGrailsApplication()); MockHttpServletRequest request = new MockHttpServletRequest(); GroovyObject controller = (GroovyObject)attrs.getApplicationContext().getBean("TestController"); SimpleGrailsControllerHelper helper = new SimpleGrailsControllerHelper(attrs.getGrailsApplication(),attrs.getApplicationContext(),attrs.getServletContext()); new ControllerDynamicMethods(controller,helper,request,null); request.setAttribute(GrailsApplicationAttributes.CONTROLLER,controller ); GroovyObject tagLib1 = attrs.getTagLibraryForTag(request,"firstTag"); assertNotNull(tagLib1); assertNotNull(request.getAttribute(GrailsApplicationAttributes.TAG_CACHE)); Map tagCache = (Map)request.getAttribute(GrailsApplicationAttributes.TAG_CACHE); assertNotNull(tagCache.get("firstTag")); } | 47932 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47932/69a3cca909851811b4e03b13e0fc135a1832f1c7/GrailsApplicationAttributesTests.java/clean/grails/test/web/org/codehaus/groovy/grails/web/servlet/GrailsApplicationAttributesTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
1805,
5664,
1290,
1805,
1435,
1216,
1185,
288,
202,
202,
43,
12859,
7805,
314,
830,
273,
394,
20841,
7805,
5621,
3639,
1659,
29345,
273,
314,
830,
18,
2670,
797,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
1805,
5664,
1290,
1805,
1435,
1216,
1185,
288,
202,
202,
43,
12859,
7805,
314,
830,
273,
394,
20841,
7805,
5621,
3639,
1659,
29345,
273,
314,
830,
18,
2670,
797,... |
return findListFor(token.getSearchState().getClass()); | if (token.isEmitting()) { return emittingActiveList; } else { return findListFor(token.getSearchState().getClass()); } | private ActiveList findListFor(Token token) { return findListFor(token.getSearchState().getClass()); } | 52185 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52185/a52dacb4235ac75799ffe095717988fe0b9b16d8/SimpleActiveListManager.java/clean/edu/cmu/sphinx/decoder/search/SimpleActiveListManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
8857,
682,
1104,
682,
1290,
12,
1345,
1147,
13,
288,
3639,
309,
261,
2316,
18,
291,
17982,
1787,
10756,
288,
327,
3626,
1787,
3896,
682,
31,
289,
469,
288,
327,
1104,
682,
1290,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
8857,
682,
1104,
682,
1290,
12,
1345,
1147,
13,
288,
3639,
309,
261,
2316,
18,
291,
17982,
1787,
10756,
288,
327,
3626,
1787,
3896,
682,
31,
289,
469,
288,
327,
1104,
682,
1290,
1... |
pushed = true; | public void run() { List seismograms = new ArrayList(); for(int counter = 0; counter < requestFilters.length; counter++) { try { RequestFilter[] temp = { requestFilters[counter] }; LocalSeismogram[] seis = dbDataCenter.retrieve_seismograms(temp); LocalSeismogramImpl[] seisImpl = castToLocalSeismogramImplArray(seis); synchronized(initiators){ pushed = true; Iterator it = initiators.iterator(); while(it.hasNext()){ a_client.pushData(seisImpl, ((SeisDataChangeListener)it.next())); } } for (int i = 0; i < seisImpl.length; i++){ seismograms.add(seisImpl[i]); } } catch(FissuresException fe) { synchronized(initiators){ pushed = true; Iterator it = initiators.iterator(); while(it.hasNext()){ a_client.error(((SeisDataChangeListener)it.next()), fe); } continue; } } catch(org.omg.CORBA.SystemException fe) { synchronized(initiators){ pushed = true; Iterator it = initiators.iterator(); while(it.hasNext()){ a_client.error(((SeisDataChangeListener)it.next()), fe); } continue; } } } LocalSeismogramImpl[] seisArray = new LocalSeismogramImpl[seismograms.size()]; seisRef = new SoftReference(seismograms.toArray(seisArray)); synchronized(initiators){ Iterator it = initiators.iterator(); while(it.hasNext()){ a_client.finished(((SeisDataChangeListener)it.next())); } } } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/752de332cbe92654ab0c0f2173a0c5213266f594/DataCenterThread.java/buggy/src/edu/sc/seis/fissuresUtil/database/DataCenterThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
987,
695,
6228,
5553,
87,
273,
394,
2407,
5621,
3639,
364,
12,
474,
3895,
273,
374,
31,
3895,
411,
225,
590,
5422,
18,
2469,
31,
3895,
27245,
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,
1086,
1435,
288,
3639,
987,
695,
6228,
5553,
87,
273,
394,
2407,
5621,
3639,
364,
12,
474,
3895,
273,
374,
31,
3895,
411,
225,
590,
5422,
18,
2469,
31,
3895,
27245,
288,
5411... | |
logger.error("Unable to parse configured initial ping target '" + configuredTargets[i] + "'. Skipping this target. Check your setting of the property " + PINGS_INITIAL_COMMON_TARGETS_PROP); | logger.error("Unable to parse configured initial ping target '" + thisTarget + "'. Skipping this target. Check your setting of the property " + PINGS_INITIAL_COMMON_TARGETS_PROP); | public static void initializeCommonTargets() throws RollerException { String configuredVal = RollerConfig.getProperty(PINGS_INITIAL_COMMON_TARGETS_PROP); if (configuredVal == null || configuredVal.trim().length() == 0) { if (logger.isDebugEnabled()) { logger.debug("No (or empty) value of " + PINGS_INITIAL_COMMON_TARGETS_PROP + " present in the configuration. Skipping initialization of commmon targets."); } return; } PingTargetManager pingTargetMgr = RollerFactory.getRoller().getPingTargetManager(); if (!pingTargetMgr.getCommonPingTargets().isEmpty()) { if (logger.isDebugEnabled()) { logger.debug("Some common ping targets are present in the database already. Skipping initialization."); } return; } String[] configuredTargets = configuredVal.trim().split(","); for (int i = 0; i < configuredTargets.length; i++) { // Trim space around the target spec String thisTarget = configuredTargets[i].trim(); // skip empty ones if (thisTarget.length() == 0) continue; // parse the ith target and store it Matcher m = PING_TARGET_SPEC.matcher(configuredTargets[i].trim()); if (m.matches() && m.groupCount() == 2) { String name = m.group(1); String url = m.group(2); logger.info("Creating common ping target '" + name + "' from configuration properties."); PingTargetData pingTarget = new PingTargetData(null, name, url, null, false); pingTargetMgr.savePingTarget(pingTarget); } else { logger.error("Unable to parse configured initial ping target '" + configuredTargets[i] + "'. Skipping this target. Check your setting of the property " + PINGS_INITIAL_COMMON_TARGETS_PROP); } } } | 46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/4bb8739367642f752495ca5d666aa53681218635/PingConfig.java/buggy/src/org/apache/roller/config/PingConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
4046,
6517,
9432,
1435,
1216,
11714,
749,
503,
288,
3639,
514,
4351,
3053,
273,
11714,
749,
809,
18,
588,
1396,
12,
20002,
55,
67,
28497,
67,
4208,
17667,
67,
16374,
55,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
4046,
6517,
9432,
1435,
1216,
11714,
749,
503,
288,
3639,
514,
4351,
3053,
273,
11714,
749,
809,
18,
588,
1396,
12,
20002,
55,
67,
28497,
67,
4208,
17667,
67,
16374,
55,
... |
" 16 new java.util.ArrayList [17]\n" + | " 16 new java.util.ArrayList [16]\n" + | public void test034() { this.runConformTest( new String[] { "X.java", "import java.util.ArrayList;\n" + "import java.util.List;\n" + "\n" + "public class X {\n" + " public static void main(String [] args) {\n" + " List list = (List) new ArrayList();\n" + " list = (List) new ArrayList();\n" + " \n" + " ArrayList alist = new ArrayList();\n" + " List list2 = (List) alist;\n" + " list2 = (List) alist;\n" + " \n" + " System.out.println(\"SUCCESS\");\n" + " }\n" + "}\n", }, "SUCCESS"); ClassFileBytesDisassembler disassembler = ToolFactory.createDefaultClassFileBytesDisassembler(); String actualOutput = null; try { byte[] classFileBytes = org.eclipse.jdt.internal.compiler.util.Util.getFileByteContent(new File(OUTPUT_DIR + File.separator +"X.class")); actualOutput = disassembler.disassemble( classFileBytes, "\n", ClassFileBytesDisassembler.DETAILED); } catch (org.eclipse.jdt.core.util.ClassFormatException e) { assertTrue("ClassFormatException", false); } catch (IOException e) { assertTrue("IOException", false); } String expectedOutput = " // Method descriptor #15 ([Ljava/lang/String;)V\n" + " // Stack: 2, Locals: 4\n" + " public static void main(String[] args);\n" + " 0 new java.util.ArrayList [17]\n" + " 3 dup\n" + " 4 invokespecial java.util.ArrayList() [18]\n" + " 7 astore_1 [list]\n" + " 8 new java.util.ArrayList [17]\n" + " 11 dup\n" + " 12 invokespecial java.util.ArrayList() [18]\n" + " 15 astore_1 [list]\n" + " 16 new java.util.ArrayList [17]\n" + " 19 dup\n" + " 20 invokespecial java.util.ArrayList() [18]\n" + " 23 astore_2 [alist]\n" + " 24 aload_2 [alist]\n" + " 25 astore_3 [list2]\n" + " 26 aload_2 [alist]\n" + " 27 astore_3 [list2]\n" + " 28 getstatic java.lang.System.out : java.io.PrintStream [24]\n" + " 31 ldc <String \"SUCCESS\"> [26]\n" + " 33 invokevirtual java.io.PrintStream.println(java.lang.String) : void [32]\n" + " 36 return\n" + " Line numbers:\n" + " [pc: 0, line: 6]\n" + " [pc: 8, line: 7]\n" + " [pc: 16, line: 9]\n" + " [pc: 24, line: 10]\n" + " [pc: 26, line: 11]\n" + " [pc: 28, line: 13]\n" + " [pc: 36, line: 14]\n" + " Local variable table:\n" + " [pc: 0, pc: 37] local: args index: 0 type: java.lang.String[]\n" + " [pc: 8, pc: 37] local: list index: 1 type: java.util.List\n" + " [pc: 24, pc: 37] local: alist index: 2 type: java.util.ArrayList\n" + " [pc: 26, pc: 37] local: list2 index: 3 type: java.util.List\n"; int index = actualOutput.indexOf(expectedOutput); if (index == -1 || expectedOutput.length() == 0) { System.out.println(Util.displayString(actualOutput, 2)); } if (index == -1) { assertEquals("Wrong contents", expectedOutput, actualOutput); }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/c17970bb54810597f5d28802d36bfac65d844634/CastTest.java/buggy/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/CastTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
4630,
24,
1435,
288,
202,
2211,
18,
2681,
442,
687,
4709,
12,
202,
202,
2704,
514,
8526,
288,
1082,
202,
6,
60,
18,
6290,
3113,
1082,
202,
6,
5666,
2252,
18,
1367,
18,
195... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
4630,
24,
1435,
288,
202,
2211,
18,
2681,
442,
687,
4709,
12,
202,
202,
2704,
514,
8526,
288,
1082,
202,
6,
60,
18,
6290,
3113,
1082,
202,
6,
5666,
2252,
18,
1367,
18,
195... |
public ActionForward chooseExecutionDegreePostBack(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) { DFACandidacyBean candidacyBean = (DFACandidacyBean) RenderUtils.getViewState().getMetaObject().getObject(); RenderUtils.invalidateViewState(); request.setAttribute("candidacyBean", candidacyBean); return mapping.getInputForward(); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/5c3dc2c3719b5088c690a493b9a51c7dbe70de86/DFACandidacyDispatchAction.java/buggy/src/net/sourceforge/fenixedu/presentationTier/Action/administrativeOffice/candidacy/DFACandidacyDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
9876,
3210,
22885,
3349,
2711,
12,
1803,
3233,
2874,
16,
5411,
4382,
1204,
1301,
1204,
16,
9984,
590,
16,
12446,
766,
13,
288,
7734,
463,
2046,
39,
3339,
3505,
3381,
422... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
9876,
3210,
22885,
3349,
2711,
12,
1803,
3233,
2874,
16,
5411,
4382,
1204,
1301,
1204,
16,
9984,
590,
16,
12446,
766,
13,
288,
7734,
463,
2046,
39,
3339,
3505,
3381,
422... | ||
assertEquals( initValue1.tokens().size(), 1 ); | assertEquals( initValue1.elements().size(), 1 ); | public void testPointerOperators() throws Exception { // Parse and get the translaton unit Writer code = new StringWriter(); code.write("int * x = 0, & y, * const * const volatile * z;"); TranslationUnit translationUnit = parse(code.toString()); List tudeclarations = translationUnit.getDeclarations(); assertEquals( 1, tudeclarations.size() ); SimpleDeclaration decl1 = (SimpleDeclaration)tudeclarations.get(0); assertEquals( decl1.getDeclSpecifier().getType(), DeclSpecifier.t_int); assertEquals( 3, decl1.getDeclarators().size() ); Declarator declarator1 = (Declarator)decl1.getDeclarators().get( 0 ); assertEquals( declarator1.getName().toString(), "x" ); Expression initValue1 = declarator1.getExpression(); assertEquals( initValue1.tokens().size(), 1 ); List ptrOps1 = declarator1.getPointerOperators(); assertNotNull( ptrOps1 ); assertEquals( 1, ptrOps1.size() ); PointerOperator po1 = (PointerOperator)ptrOps1.get(0); assertNotNull( po1 ); assertFalse( po1.isConst() ); assertFalse( po1.isVolatile() ); assertEquals( po1.getType(), PointerOperator.t_pointer ); Token t1 = (Token)initValue1.tokens().get(0); assertEquals( t1.getType(), Token.tINTEGER ); assertEquals( t1.getImage(), "0"); Declarator declarator2 = (Declarator)decl1.getDeclarators().get( 1 ); assertEquals( declarator2.getName().toString(), "y" ); assertNull( declarator2.getExpression() ); List ptrOps2 = declarator2.getPointerOperators(); assertNotNull( ptrOps2 ); assertEquals( 1, ptrOps2.size() ); PointerOperator po2 = (PointerOperator)ptrOps2.get(0); assertNotNull( po2 ); assertFalse( po2.isConst() ); assertFalse( po2.isVolatile() ); assertEquals( po2.getType(), PointerOperator.t_reference ); Declarator declarator3 = (Declarator)decl1.getDeclarators().get( 2 ); assertEquals( "z", declarator3.getName().toString() ); List ptrOps3 = declarator3.getPointerOperators(); assertNotNull( ptrOps3 ); assertEquals( 3, ptrOps3.size() ); //* const PointerOperator po3 = (PointerOperator)ptrOps3.get(0); assertNotNull( po3 ); assertTrue( po3.isConst() ); assertFalse( po3.isVolatile() ); assertEquals( po3.getType(), PointerOperator.t_pointer ); // * const volatile PointerOperator po4 = (PointerOperator)ptrOps3.get(1); assertNotNull( po4 ); assertEquals( po4.getType(), PointerOperator.t_pointer ); assertTrue( po4.isConst() ); assertTrue( po4.isVolatile() ); // * PointerOperator po5 = (PointerOperator)ptrOps3.get(2); assertNotNull( po5 ); assertFalse( po5.isConst() ); assertFalse( po5.isVolatile() ); assertEquals( po5.getType(), PointerOperator.t_pointer ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/30b5b4501043f254e85bfaa3f0153fef1000ae21/DOMTests.java/buggy/core/org.eclipse.cdt.ui.tests/parser/org/eclipse/cdt/core/parser/tests/DOMTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4926,
24473,
1435,
1216,
1185,
202,
95,
202,
202,
759,
2884,
471,
336,
326,
2162,
16799,
2836,
202,
202,
2289,
981,
273,
394,
17436,
5621,
202,
202,
710,
18,
2626,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
4926,
24473,
1435,
1216,
1185,
202,
95,
202,
202,
759,
2884,
471,
336,
326,
2162,
16799,
2836,
202,
202,
2289,
981,
273,
394,
17436,
5621,
202,
202,
710,
18,
2626,
... |
public void setVarOrder(String ordering) { List result = new LinkedList(); int nDomains = numberOfDomains(); StringTokenizer st = new StringTokenizer(ordering, "x_", true); boolean[] done = new boolean[nDomains]; List last = null; for (int i=0; ; ++i) { String s = st.nextToken(); BDDDomain d; for (int j=0; ; ++j) { if (j == nDomains) throw new BDDException("bad domain: "+s); d = getDomain(j); if (s.equals(d.getName())) break; } if (done[d.getIndex()]) throw new BDDException("duplicate domain: "+s); done[d.getIndex()] = true; if (last != null) last.add(d); if (st.hasMoreTokens()) { s = st.nextToken(); if (s.equals("x")) { if (last == null) { last = new LinkedList(); last.add(d); result.add(last); } } else if (s.equals("_")) { if (last == null) { result.add(d); } last = null; } else { throw new BDDException("bad token: "+s); } } else { if (last == null) { result.add(d); } break; } } for (int i=0; i<done.length; ++i) { if (!done[i]) { throw new BDDException("missing domain #"+i+": "+getDomain(i)); } } setVarOrder(result); } | public void setVarOrder(int[] neworder) { bdd_setvarorder(neworder); } | public void setVarOrder(String ordering) { List result = new LinkedList(); int nDomains = numberOfDomains(); StringTokenizer st = new StringTokenizer(ordering, "x_", true); boolean[] done = new boolean[nDomains]; List last = null; for (int i=0; ; ++i) { String s = st.nextToken(); BDDDomain d; for (int j=0; ; ++j) { if (j == nDomains) throw new BDDException("bad domain: "+s); d = getDomain(j); if (s.equals(d.getName())) break; } if (done[d.getIndex()]) throw new BDDException("duplicate domain: "+s); done[d.getIndex()] = true; if (last != null) last.add(d); if (st.hasMoreTokens()) { s = st.nextToken(); if (s.equals("x")) { if (last == null) { last = new LinkedList(); last.add(d); result.add(last); } } else if (s.equals("_")) { if (last == null) { result.add(d); } last = null; } else { throw new BDDException("bad token: "+s); } } else { if (last == null) { result.add(d); } break; } } for (int i=0; i<done.length; ++i) { if (!done[i]) { throw new BDDException("missing domain #"+i+": "+getDomain(i)); } } setVarOrder(result); } | 5661 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5661/1b3981caf5cf23dfd71e6ebcffe7d25398ef69c7/JFactory.java/buggy/JavaBDD/net/sf/javabdd/JFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
1537,
2448,
12,
780,
9543,
13,
288,
3639,
987,
563,
273,
394,
10688,
5621,
3639,
509,
290,
15531,
273,
7922,
15531,
5621,
3639,
16370,
384,
273,
394,
16370,
12,
22598,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
1537,
2448,
12,
780,
9543,
13,
288,
3639,
987,
563,
273,
394,
10688,
5621,
3639,
509,
290,
15531,
273,
7922,
15531,
5621,
3639,
16370,
384,
273,
394,
16370,
12,
22598,
16,... |
msg.setArrival(new Date(_context.clock().now())); | msg.setArrival(new Date(getContext().clock().now())); | private void sendAck() { DeliveryStatusMessage msg = new DeliveryStatusMessage(_context); msg.setMessageId(_message.getReplyToken()); msg.setArrival(new Date(_context.clock().now())); TunnelId outTunnelId = selectOutboundTunnel(); _context.jobQueue().addJob(new SendTunnelMessageJob(_context, msg, outTunnelId, _message.getReplyGateway(), _message.getReplyTunnel(), null, null, null, null, ACK_TIMEOUT, ACK_PRIORITY)); } | 27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/e737e5c9507ed0d463dc9e45a8f63657f466b177/HandleDatabaseStoreMessageJob.java/buggy/router/java/src/net/i2p/router/networkdb/HandleDatabaseStoreMessageJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
11931,
1435,
288,
3639,
17390,
1482,
1079,
1234,
273,
394,
17390,
1482,
1079,
24899,
2472,
1769,
3639,
1234,
18,
542,
30550,
24899,
2150,
18,
588,
7817,
1345,
10663,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
11931,
1435,
288,
3639,
17390,
1482,
1079,
1234,
273,
394,
17390,
1482,
1079,
24899,
2472,
1769,
3639,
1234,
18,
542,
30550,
24899,
2150,
18,
588,
7817,
1345,
10663,
3639,
... |
userView, "ReadExecutionDegreesByExecutionYear", new Object[] { infoExecutionYear }); | userView, "ReadExecutionDegreesByExecutionYearAndDegreeType", new Object[] { infoExecutionYear, TipoCurso.LICENCIATURA_OBJ }); | public ActionForward chooseDegree(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException, FenixServiceException, IllegalAccessException, InstantiationException { final IUserView userView = SessionUtils.getUserView(request); final DynaActionForm finalWorkForm = (DynaActionForm) form; finalWorkForm.set("role", "responsable"); finalWorkForm.set("responsibleCreditsPercentage", "100"); finalWorkForm.set("coResponsibleCreditsPercentage", "0"); final List infoExecutionYears = CommonServiceRequests .getInfoExecutionYears(); final Collection transformedInfoExecutionYears = CollectionUtils .collect( infoExecutionYears, new FinalDegreeWorkProposalsDispatchAction().new INFO_EXECUTION_YEAR_INCREMENTER()); request.setAttribute("infoExecutionYears", transformedInfoExecutionYears); final String executionYear = (String) finalWorkForm .get("executionYear"); InfoExecutionYear infoExecutionYear = null; if (executionYear == null || executionYear.length() == 0) { infoExecutionYear = findCurrentExecutionDegree(infoExecutionYears); if (infoExecutionYear != null) { finalWorkForm.set("executionYear", infoExecutionYear .getIdInternal().toString()); } } else { infoExecutionYear = findExecutionDegreeByID(infoExecutionYears, new Integer(executionYear)); } final List executionDegreeList = (List) ServiceUtils.executeService( userView, "ReadExecutionDegreesByExecutionYear", new Object[] { infoExecutionYear }); final BeanComparator name = new BeanComparator( "infoDegreeCurricularPlan.infoDegree.nome"); Collections.sort(executionDegreeList, name); request.setAttribute("executionDegreeList", executionDegreeList); final InfoTeacher infoTeacher = getTeacher(userView); final Object args[] = { infoTeacher.getIdInternal() }; final List finalDegreeWorkProposalHeaders = (List) ServiceUtils .executeService(userView, "ReadFinalDegreeWorkProposalHeadersByTeacher", args); if ((finalDegreeWorkProposalHeaders != null) && !(finalDegreeWorkProposalHeaders.isEmpty())) { final BeanComparator title = new BeanComparator("title"); Collections.sort(finalDegreeWorkProposalHeaders, title); final String[] selectedProposals = new String[finalDegreeWorkProposalHeaders .size()]; for (int i = 0; i < finalDegreeWorkProposalHeaders.size(); i++) { final FinalDegreeWorkProposalHeader header = (FinalDegreeWorkProposalHeader) finalDegreeWorkProposalHeaders .get(i); if (header.getGroupAttributedByTeacher() != null) { final InfoGroupProposal infoGroupProposal = (InfoGroupProposal) CollectionUtils .find( header.getGroupProposals(), new PREDICATE_FIND_GROUP_PROPOSAL_BY_GROUP( header .getGroupAttributedByTeacher() .getIdInternal())); selectedProposals[i] = infoGroupProposal.getIdInternal() .toString(); } } final FormBeanConfig fbc2 = new FormBeanConfig(); fbc2.setModuleConfig(mapping.getModuleConfig()); fbc2.setName("finalWorkAttributionForm"); final DynaActionFormClass dafc2 = DynaActionFormClass .createDynaActionFormClass(fbc2); final DynaActionForm finalWorkAttributionForm = (DynaActionForm) dafc2 .newInstance(); finalWorkAttributionForm.set("selectedGroupProposals", selectedProposals); request.setAttribute("finalWorkAttributionForm", finalWorkAttributionForm); request.setAttribute("finalDegreeWorkProposalHeaders", finalDegreeWorkProposalHeaders); } return mapping.findForward("chooseDegreeForFinalWorkProposal"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/66b2b2fb20c480b8fb161f845123ae2766c456e6/FinalWorkManagementAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/FinalWorkManagementAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4382,
8514,
9876,
22885,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
1082,
202,
2940,
18572,
590,
16,
12446,
766,
13,
1082,
202,
15069,
478,
275,
697,
1803,
503,
16,
478,
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,
4382,
8514,
9876,
22885,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
1082,
202,
2940,
18572,
590,
16,
12446,
766,
13,
1082,
202,
15069,
478,
275,
697,
1803,
503,
16,
478,
2... |
while (_active) { try { DatagramPacket packet = getPacket(); removeTimedOutFilters(); if(packet != null) { Peer peer = new Peer(packet.getAddress(), packet.getPort()); byte[] data = packet.getData(); int offset = packet.getOffset(); int length = packet.getLength(); if(lowLevelFilter != null) { try { lowLevelFilter.process(data, offset, length, peer); Logger.minor(this, "Successfully handled packet length "+length); } catch (Throwable t) { Logger.error(this, "Caught "+t+" from "+lowLevelFilter, t); } } else { Message m = decodePacket(data, offset, length, new DummyPeerContext(peer)); if(m != null) checkFilters(m); } } else Logger.minor(this, "Null packet"); } catch (Throwable t) { Logger.error(this, "Caught "+t, t); } } | while (/*_active*/true) { try { DatagramPacket packet = getPacket(); removeTimedOutFilters(); if (packet != null) { Peer peer = new Peer(packet.getAddress(), packet.getPort()); byte[] data = packet.getData(); int offset = packet.getOffset(); int length = packet.getLength(); if (lowLevelFilter != null) { try { lowLevelFilter.process(data, offset, length, peer); Logger.minor(this, "Successfully handled packet length " + length); } catch (Throwable t) { Logger.error(this, "Caught " + t + " from " + lowLevelFilter, t); } } else { Message m = decodePacket(data, offset, length, new DummyPeerContext(peer)); if (m != null) checkFilters(m); } } else Logger.minor(this, "Null packet"); } catch (Throwable t) { Logger.error(this, "Caught " + t, t); } } | public void run() { // Listen for packets try { while (_active) { try { DatagramPacket packet = getPacket(); // Check for timedout _filters removeTimedOutFilters(); // Check for matched _filters if(packet != null) { Peer peer = new Peer(packet.getAddress(), packet.getPort()); byte[] data = packet.getData(); int offset = packet.getOffset(); int length = packet.getLength(); if(lowLevelFilter != null) { try { lowLevelFilter.process(data, offset, length, peer); Logger.minor(this, "Successfully handled packet length "+length); } catch (Throwable t) { Logger.error(this, "Caught "+t+" from "+lowLevelFilter, t); } } else { // Create a bogus context since no filter Message m = decodePacket(data, offset, length, new DummyPeerContext(peer)); if(m != null) checkFilters(m); } } else Logger.minor(this, "Null packet"); } catch (Throwable t) { Logger.error(this, "Caught "+t, t); } } } finally { Logger.error(this, "run() exiting"); synchronized (this) { _isDone = true; notifyAll(); } } } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/b4ecaa4055b5835413830d4125c72de27d68e306/UdpSocketManager.java/buggy/src/freenet/io/comm/UdpSocketManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
288,
368,
13426,
364,
12640,
202,
202,
698,
288,
202,
202,
17523,
261,
67,
3535,
13,
288,
1082,
565,
775,
288,
1082,
202,
5139,
17049,
6667,
4414,
273,
30401,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
368,
13426,
364,
12640,
202,
202,
698,
288,
202,
202,
17523,
261,
67,
3535,
13,
288,
1082,
565,
775,
288,
1082,
202,
5139,
17049,
6667,
4414,
273,
30401,
... |
for (int addedChildrenIndex = 0; addedChildrenIndex < addedChildren.length; ++addedChildrenIndex) { | boolean childFound = false; for (int addedChildrenIndex = 0; !childFound && addedChildrenIndex < addedChildren.length; ++addedChildrenIndex) { | private void renderAddChildren(RenderContext rc, ServerComponentUpdate update) { Column column = (Column) update.getParent(); String elementId = ContainerInstance.getElementId(column); Component[] components = update.getParent().getVisibleComponents(); Component[] addedChildren = update.getAddedChildren(); for (int componentIndex = components.length - 1; componentIndex >= 0; --componentIndex) { for (int addedChildrenIndex = 0; addedChildrenIndex < addedChildren.length; ++addedChildrenIndex) { if (addedChildren[addedChildrenIndex] == components[componentIndex]) { DocumentFragment htmlFragment = rc.getServerMessage().getDocument().createDocumentFragment(); renderChild(rc, update, htmlFragment, column, components[componentIndex]); if (componentIndex == components.length - 1) { DomUpdate.renderElementAdd(rc.getServerMessage(), elementId, htmlFragment); } else { DomUpdate.renderElementAdd(rc.getServerMessage(), elementId, elementId + "_cell_" + ContainerInstance.getElementId(components[componentIndex + 1]), htmlFragment); } //BUGBUG. continue outside for loop...no reason to continue searching added children. } } } // Special case: Recall the child which was rendered at the last index of the column on the previous // rendering. If this child is still present but is no longer at the last index, render a spacing // row beneath it (if necessary). ColumnPeerRenderState renderState = (ColumnPeerRenderState) rc.getContainerInstance().getRenderState(column); if (renderState != null && renderState.lastChild != null) { int previousLastChildIndex = column.visibleIndexOf(renderState.lastChild); if (previousLastChildIndex != -1 && previousLastChildIndex != column.getVisibleComponentCount() - 1) { // Child which was previously last is present, but no longer last. DocumentFragment htmlFragment = rc.getServerMessage().getDocument().createDocumentFragment(); renderCellSpacingRow(htmlFragment, column, renderState.lastChild); DomUpdate.renderElementAdd(rc.getServerMessage(), elementId, elementId + "_cell_" + ContainerInstance.getElementId(components[previousLastChildIndex + 1]), htmlFragment); } } } | 45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/3c861f5dfc9a33a5d4122f3a34b09dc4074f911a/ColumnPeer.java/clean/src/webcontainer/java/nextapp/echo2/webcontainer/syncpeer/ColumnPeer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1743,
986,
4212,
12,
3420,
1042,
4519,
16,
3224,
1841,
1891,
1089,
13,
288,
3639,
4753,
1057,
273,
261,
1494,
13,
1089,
18,
588,
3054,
5621,
3639,
514,
930,
548,
273,
4039,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
986,
4212,
12,
3420,
1042,
4519,
16,
3224,
1841,
1891,
1089,
13,
288,
3639,
4753,
1057,
273,
261,
1494,
13,
1089,
18,
588,
3054,
5621,
3639,
514,
930,
548,
273,
4039,
1... |
public static WeaponType createISUltraAC10() { WeaponType weapon = new WeaponType(); weapon.name = "Ultra AC/10"; weapon.internalName = "ISUltraAC10"; weapon.mepName = "IS Ultra AC/10"; weapon.mtfName = "ISUltraAC10"; weapon.heat = 4; weapon.damage = 10; weapon.rackSize = 10; weapon.ammoType = AmmoType.T_AC_ULTRA; weapon.minimumRange = 0; weapon.shortRange = 6; weapon.mediumRange = 12; weapon.longRange = 18; weapon.tonnage = 13.0f; weapon.criticals = 7; weapon.flags |= F_DIRECT_FIRE; weapon.bv = 253; String[] modes = { "Single", "Ultra" }; weapon.setModes(modes); return weapon; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/d05f2130c25015ca88066511083759513d50b746/WeaponType.java/clean/megamek/src/megamek/common/WeaponType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
5127,
57,
80,
2033,
2226,
2163,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
7734,
732,
28629,
18,
529,
273,
315,
57,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1660,
28629,
559,
752,
5127,
57,
80,
2033,
2226,
2163,
1435,
288,
3639,
1660,
28629,
559,
732,
28629,
273,
394,
1660,
28629,
559,
5621,
7734,
732,
28629,
18,
529,
273,
315,
57,... | ||
public boolean isSet(org.quickfix.field.SecurityAltID field) | public boolean isSet(quickfix.field.SecurityAltID field) | public boolean isSet(org.quickfix.field.SecurityAltID field) { return isSetField(field); } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityListRequest.java/clean/src/java/src/quickfix/fix44/SecurityListRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
4368,
10655,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
282,
1071,
1250,
13532,
12,
19525,
904,
18,
1518,
18,
4368,
10655,
734,
652,
13,
225,
288,
327,
13532,
974,
12,
1518,
1769,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if ( paramValueObj instanceof Date ) { params.put( paramName, paramValueObj ); continue; } | protected Map getParsedParameters( IViewerReportDesignHandle design, Collection parameterList, HttpServletRequest request, InputOptions options ) throws ReportServiceException { Map params = new HashMap( ); if ( parameterList == null || this.parametersAsString == null ) return params; for ( Iterator iter = parameterList.iterator( ); iter.hasNext( ); ) { ScalarParameterHandle parameter = null; Object parameterObj = iter.next( ); if ( parameterObj instanceof ScalarParameterHandle ) { parameter = (ScalarParameterHandle) parameterObj; } // if current object is not Scalar parameter handle, then skip it if ( parameter == null ) continue; String paramName = parameter.getName( ); Object paramValueObj = this.parametersAsString.get( paramName ); if ( paramValueObj != null ) { // if default value is Date object, put map directly if ( paramValueObj instanceof Date ) { params.put( paramName, paramValueObj ); continue; } try { // convert parameter to object String format = ParameterAccessor.getFormat( request, paramName ); if ( format == null || format.length( ) <= 0 ) { format = parameter.getPattern( ); } paramValueObj = DataUtil.validate( parameter.getDataType( ), format, paramValueObj .toString( ), locale ); params.put( paramName, paramValueObj ); } catch ( ValidationValueException e ) { // if in PREVIEW mode, then throw exception directly if ( ParameterAccessor.SERVLET_PATH_PREVIEW .equalsIgnoreCase( request.getServletPath( ) ) ) { this.exception = e; break; } } } else { params.put( paramName, null ); } } return params; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e67b6a4506a01d4fbb741a982d76ef6cb9dba851/ViewerAttributeBean.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1635,
25406,
2402,
12,
467,
18415,
4820,
15478,
3259,
8281,
16,
1082,
202,
2532,
1569,
682,
16,
9984,
590,
16,
1082,
202,
1210,
1320,
702,
262,
1216,
8706,
15133,
202,
95,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1635,
25406,
2402,
12,
467,
18415,
4820,
15478,
3259,
8281,
16,
1082,
202,
2532,
1569,
682,
16,
9984,
590,
16,
1082,
202,
1210,
1320,
702,
262,
1216,
8706,
15133,
202,
95,
202,... | |
public org.quickfix.field.UnderlyingStartValue getUnderlyingStartValue() throws FieldNotFound { org.quickfix.field.UnderlyingStartValue value = new org.quickfix.field.UnderlyingStartValue(); | public quickfix.field.UnderlyingStartValue getUnderlyingStartValue() throws FieldNotFound { quickfix.field.UnderlyingStartValue value = new quickfix.field.UnderlyingStartValue(); | public org.quickfix.field.UnderlyingStartValue getUnderlyingStartValue() throws FieldNotFound { org.quickfix.field.UnderlyingStartValue value = new org.quickfix.field.UnderlyingStartValue(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteResponse.java/buggy/src/java/src/quickfix/fix44/QuoteResponse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
1685,
620,
10833,
765,
6291,
1685,
620,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
1685,
620... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
1685,
620,
10833,
765,
6291,
1685,
620,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
1685,
620... |
public DeflaterOutputStream(OutputStream out, Deflater defl, int bufsize) | public DeflaterOutputStream (OutputStream out) | public DeflaterOutputStream(OutputStream out, Deflater defl, int bufsize) { super (out); buf = new byte[bufsize]; def = defl; } | 5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/1e3cd04be9565704fb97be6d733636dea0442cf2/DeflaterOutputStream.java/buggy/libjava/java/util/zip/DeflaterOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1505,
2242,
2045,
4632,
261,
4632,
596,
13,
225,
288,
565,
2240,
261,
659,
1769,
565,
1681,
273,
394,
1160,
63,
4385,
1467,
15533,
565,
1652,
273,
1652,
80,
31,
225,
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,
1,
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,
1505,
2242,
2045,
4632,
261,
4632,
596,
13,
225,
288,
565,
2240,
261,
659,
1769,
565,
1681,
273,
394,
1160,
63,
4385,
1467,
15533,
565,
1652,
273,
1652,
80,
31,
225,
289,
2,
-100,... |
names = (IASTName[]) ArrayUtil.append( IASTName.class, names, name ); | if (name != null) { namesPos++; names = (IASTName[]) ArrayUtil.append( IASTName.class, names, name ); } | public int visit(IASTName name) { names = (IASTName[]) ArrayUtil.append( IASTName.class, names, name ); return PROCESS_CONTINUE; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8a37c61a8cf7ad9a8e5afee104a5b301a0555dbb/CASTAmbiguity.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/CASTAmbiguity.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
3757,
12,
45,
9053,
461,
508,
13,
288,
5411,
309,
261,
529,
480,
446,
13,
288,
1257,
1616,
9904,
31,
1257,
273,
261,
45,
9053,
461,
63,
5717,
27207,
18,
6923,
12,
467,
9053... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
509,
3757,
12,
45,
9053,
461,
508,
13,
288,
5411,
309,
261,
529,
480,
446,
13,
288,
1257,
1616,
9904,
31,
1257,
273,
261,
45,
9053,
461,
63,
5717,
27207,
18,
6923,
12,
467,
9053... |
if(line.isNil()) { return recv.getRuntime().newString(""); } | public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) throws IOException { IRubyObject line = recv.getRuntime().getNil(); String v = readline.readLine(prompt.toString()); if(null != v) { if (add_to_hist.isTrue()) readline.getHistory().addToHistory(v); line = recv.getRuntime().newString(v); } if(line.isNil()) { return recv.getRuntime().newString(""); } return line; } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/93b4832244b3a18f15b406720fe8e901ecb92553/Readline.java/buggy/src/org/jruby/ext/Readline.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
272,
67,
896,
1369,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
6866,
16,
15908,
10340,
921,
527,
67,
869,
67,
11488,
13,
1216,
1860,
288,
3639,
1590... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
272,
67,
896,
1369,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
6866,
16,
15908,
10340,
921,
527,
67,
869,
67,
11488,
13,
1216,
1860,
288,
3639,
1590... | |
public org.quickfix.field.EncodedIssuerLen getEncodedIssuerLen() throws FieldNotFound { org.quickfix.field.EncodedIssuerLen value = new org.quickfix.field.EncodedIssuerLen(); | public quickfix.field.EncodedIssuerLen getEncodedIssuerLen() throws FieldNotFound { quickfix.field.EncodedIssuerLen value = new quickfix.field.EncodedIssuerLen(); | public org.quickfix.field.EncodedIssuerLen getEncodedIssuerLen() throws FieldNotFound { org.quickfix.field.EncodedIssuerLen value = new org.quickfix.field.EncodedIssuerLen(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityDefinitionRequest.java/buggy/src/java/src/quickfix/fix42/SecurityDefinitionRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
16667,
2891,
28799,
16667,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
16667,
2891,
460,
273,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
16667,
2891,
28799,
16667,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
16667,
2891,
460,
273,
394,
... |
/* * Hooks into the Eclipse framework for Object contributions, and View * contributions. */ if (force || viewerDescriptor.allowsPlatformContributionsToContextMenu()) commonViewerSite.registerContextMenu(contentService .getViewerDescriptor().getPopupMenuId(), menu, aSelectionProvider); | if(commonViewerSite instanceof ICommonViewerWorkbenchSite) { /* * Hooks into the Eclipse framework for Object contributions, and View * contributions. */ if (force || viewerDescriptor.allowsPlatformContributionsToContextMenu()) ((ICommonViewerWorkbenchSite)commonViewerSite).registerContextMenu(contentService .getViewerDescriptor().getPopupMenuId(), menu, aSelectionProvider); } | public void prepareMenuForPlatformContributions(MenuManager menu, ISelectionProvider aSelectionProvider, boolean force) { Assert.isTrue(!disposed); /* * Hooks into the Eclipse framework for Object contributions, and View * contributions. */ if (force || viewerDescriptor.allowsPlatformContributionsToContextMenu()) commonViewerSite.registerContextMenu(contentService .getViewerDescriptor().getPopupMenuId(), menu, aSelectionProvider); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fac8f823cbc986ebda4bd8c18b1aa4ab764531ee/NavigatorActionService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/NavigatorActionService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2911,
4599,
1290,
8201,
442,
15326,
12,
4599,
1318,
3824,
16,
1082,
202,
45,
6233,
2249,
279,
6233,
2249,
16,
1250,
2944,
13,
288,
202,
202,
8213,
18,
291,
5510,
12,
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,
2911,
4599,
1290,
8201,
442,
15326,
12,
4599,
1318,
3824,
16,
1082,
202,
45,
6233,
2249,
279,
6233,
2249,
16,
1250,
2944,
13,
288,
202,
202,
8213,
18,
291,
5510,
12,
5,
... |
g.setForegroundColor(ZestColors.LIGHT_BLUE_CYAN); | g.setForegroundColor(ZestPlugin.getDefault().getColor(IZestColorConstants.LIGHT_BLUE_CYAN)); | protected void paintFigure(Graphics g) { super.paintFigure(g); Rectangle r = Rectangle.SINGLETON; r.setBounds(getBounds()); g.fillRectangle(r); Insets insets = getInsets(); if (!insets.isEmpty()) { r.resize(0 - (insets.left + insets.right), 0 - (insets.top + insets.bottom)); r.translate(insets.left, insets.top); } // define a square for the border if (r.width <= r.height) { r.y = r.y + (r.height - r.width) / 2; r.height = r.width; } else { r.x = r.x + (r.width - r.height) / 2; r.width = r.height; } g.setBackgroundColor(ColorConstants.white); g.fillRectangle(r); g.setForegroundColor(ZestColors.LIGHT_BLUE_CYAN); g.drawRectangle(new Rectangle(r.x+1, r.y+1, r.width-1, r.height-1)); g.setForegroundColor(ZestColors.GREY_BLUE); g.drawRectangle(r); int xMid = r.x + r.width / 2; int yMid = r.y + r.height / 2; g.setForegroundColor(ZestColors.LIGHT_BLUE_CYAN); g.drawLine(r.x + 3, yMid+1, r.right() - 2, yMid+1); if (!isSelected()) { g.drawLine(xMid+1, r.y + 3, xMid+1, r.bottom() - 2); } g.setForegroundColor(ZestColors.DARK_BLUE); g.drawLine(r.x + 2, yMid, r.right() - 2, yMid); if (!isSelected()) { g.drawLine(xMid, r.y + 2, xMid, r.bottom() - 2); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/4dd8b192ec1fe2f3d6e8f7953f02d9fc386aba37/PlusMinusFigure.java/buggy/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/internal/viewers/figures/PlusMinusFigure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
12574,
42,
15906,
12,
17558,
314,
13,
288,
202,
202,
9565,
18,
84,
1598,
42,
15906,
12,
75,
1769,
9506,
202,
19463,
436,
273,
13264,
18,
20184,
56,
673,
31,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
12574,
42,
15906,
12,
17558,
314,
13,
288,
202,
202,
9565,
18,
84,
1598,
42,
15906,
12,
75,
1769,
9506,
202,
19463,
436,
273,
13264,
18,
20184,
56,
673,
31,
202,
202,
... |
if (this == object) return true; if (!(object instanceof DateFormatSymbols)) return false; DateFormatSymbols obj = (DateFormatSymbols) object; if (!localPatternChars.equals(obj.localPatternChars)) return false; if (!Arrays.equals(ampms, obj.ampms)) return false; if (!Arrays.equals(eras, obj.eras)) return false; if (!Arrays.equals(months, obj.months)) return false; if (!Arrays.equals(shortMonths, obj.shortMonths)) return false; if (!Arrays.equals(shortWeekdays, obj.shortWeekdays)) return false; if (!Arrays.equals(weekdays, obj.weekdays)) return false; if (zoneStrings.length != obj.zoneStrings.length) return false; for (int i = 0; i < zoneStrings.length; i++) { if (zoneStrings[i].length != obj.zoneStrings[i].length) return false; for (int j = 0; j < zoneStrings[i].length; j++) if (zoneStrings[i][j] != obj.zoneStrings[i][j] && !(zoneStrings[i][j].equals(obj.zoneStrings[i][j]))) return false; } return true; } | if (this == object) { return true; } if (!(object instanceof DateFormatSymbols)) { return false; } DateFormatSymbols obj = (DateFormatSymbols) object; if (!localPatternChars.equals(obj.localPatternChars)) { return false; } if (!Arrays.equals(ampms, obj.ampms)) { return false; } if (!Arrays.equals(eras, obj.eras)) { return false; } if (!Arrays.equals(months, obj.months)) { return false; } if (!Arrays.equals(shortMonths, obj.shortMonths)) { return false; } if (!Arrays.equals(shortWeekdays, obj.shortWeekdays)) { return false; } if (!Arrays.equals(weekdays, obj.weekdays)) { return false; } if (zoneStrings.length != obj.zoneStrings.length) { return false; } for (String[] element : zoneStrings) { if (element.length != element.length) { return false; } for (int j = 0; j < element.length; j++) { if (element[j] != element[j] && !(element[j].equals(element[j]))) { return false; } } } return true; } | public boolean equals(Object object) { if (this == object) return true; if (!(object instanceof DateFormatSymbols)) return false; DateFormatSymbols obj = (DateFormatSymbols) object; if (!localPatternChars.equals(obj.localPatternChars)) return false; if (!Arrays.equals(ampms, obj.ampms)) return false; if (!Arrays.equals(eras, obj.eras)) return false; if (!Arrays.equals(months, obj.months)) return false; if (!Arrays.equals(shortMonths, obj.shortMonths)) return false; if (!Arrays.equals(shortWeekdays, obj.shortWeekdays)) return false; if (!Arrays.equals(weekdays, obj.weekdays)) return false; if (zoneStrings.length != obj.zoneStrings.length) return false; for (int i = 0; i < zoneStrings.length; i++) { if (zoneStrings[i].length != obj.zoneStrings[i].length) return false; for (int j = 0; j < zoneStrings[i].length; j++) if (zoneStrings[i][j] != obj.zoneStrings[i][j] && !(zoneStrings[i][j].equals(obj.zoneStrings[i][j]))) return false; } return true; } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/019def355790934e1681619028e65dda09efed65/DateFormatSymbols.java/buggy/modules/text/src/main/java/java/text/DateFormatSymbols.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1606,
12,
921,
733,
13,
288,
202,
202,
430,
261,
2211,
422,
733,
13,
1082,
202,
2463,
638,
31,
202,
202,
430,
16051,
12,
1612,
1276,
18371,
14821,
3719,
1082,
202,
2463,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1606,
12,
921,
733,
13,
288,
202,
202,
430,
261,
2211,
422,
733,
13,
1082,
202,
2463,
638,
31,
202,
202,
430,
16051,
12,
1612,
1276,
18371,
14821,
3719,
1082,
202,
2463,... |
final File dir = selectFile("Destination directory", "Select checkout destination directory"); | File dir = selectFile("Destination directory", "Select checkout destination directory"); | protected void doCheckout() { SVNURL url = getRepositoryBrowser().getSelectedNode().getURL(); final File dir = selectFile("Destination directory", "Select checkout destination directory"); if (dir == null) { return; } Project p = myProject; CheckoutOptionsDialog dialog = new CheckoutOptionsDialog(p, url, dir); dialog.show(); if (dialog.isOK()) { SvnCheckoutProvider.doCheckout(myVCS.getProject(), dir, url.toString(), dialog.isRecursive(), dialog.isIgnoreExternals()); } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/137c8859d8edf9ee99b42cc1073d1ab0d7d9351f/RepositoryBrowserDialog.java/buggy/plugins/svn4idea/src/org/jetbrains/idea/svn/dialogs/RepositoryBrowserDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
741,
18581,
1435,
288,
565,
29537,
50,
1785,
880,
273,
8261,
9132,
7675,
588,
7416,
907,
7675,
588,
1785,
5621,
565,
1387,
1577,
273,
2027,
812,
2932,
5683,
1867,
3113,
315,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
741,
18581,
1435,
288,
565,
29537,
50,
1785,
880,
273,
8261,
9132,
7675,
588,
7416,
907,
7675,
588,
1785,
5621,
565,
1387,
1577,
273,
2027,
812,
2932,
5683,
1867,
3113,
315,
33... |
design = (ReportDesign) designHandle.module; | design = (ReportDesign) designHandle.getModule( ); | protected void setUp( ) throws Exception { super.setUp( ); designHandle = new SessionHandle( ULocale.getDefault( ) ) .createDesign( ); design = (ReportDesign) designHandle.module; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/de4e32d64d24337e8801521456bb895f21408aa9/StructureFactoryTest.java/clean/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/StructureFactoryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
24292,
12,
262,
1216,
1185,
202,
95,
202,
202,
9565,
18,
542,
1211,
12,
11272,
202,
202,
16934,
3259,
273,
394,
3877,
3259,
12,
29145,
18,
588,
1868,
12,
262,
262,
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,
1117,
918,
24292,
12,
262,
1216,
1185,
202,
95,
202,
202,
9565,
18,
542,
1211,
12,
11272,
202,
202,
16934,
3259,
273,
394,
3877,
3259,
12,
29145,
18,
588,
1868,
12,
262,
262,
9506,... |
cfw.add(ByteCode.ARETURN); int finallyHandler = cfw.acquireLabel(); cfw.markHandler(finallyHandler); short exceptionObject = getNewWordLocal(); cfw.addAStore(exceptionObject); generateExitCode(); cfw.addALoad(exceptionObject); releaseWordLocal(exceptionObject); cfw.add(ByteCode.ATHROW); cfw.addExceptionHandler(enterAreaStartLabel, epilogueLabel, finallyHandler, null); | private void generateEpilogue() { if (hasVarsInRegs) { if (epilogueLabel != -1) { cfw.markLabel(epilogueLabel); } cfw.add(ByteCode.ARETURN); return; } cfw.markLabel(epilogueLabel); generateExitCode(); if (fnCurrent == null) { cfw.addALoad(popvLocal); } cfw.add(ByteCode.ARETURN); // Generate catch block to catch all and rethrow to call exit code // under exception propagation as well. int finallyHandler = cfw.acquireLabel(); cfw.markHandler(finallyHandler); short exceptionObject = getNewWordLocal(); cfw.addAStore(exceptionObject); // Duplicate generateExitCode() in the catch block since it takes // less space then full-fetured ByteCode.JSR/ByteCode.RET generateExitCode(); cfw.addALoad(exceptionObject); releaseWordLocal(exceptionObject); // rethrow cfw.add(ByteCode.ATHROW); // mark the handler cfw.addExceptionHandler(enterAreaStartLabel, epilogueLabel, finallyHandler, null); // catch any } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/5f71fe6973a37b77b4615a721450340c063c12ab/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
18918,
21947,
344,
1435,
565,
288,
3639,
309,
261,
5332,
5555,
382,
426,
564,
13,
288,
5411,
309,
261,
881,
21947,
344,
2224,
480,
300,
21,
13,
288,
7734,
6080,
91,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
18918,
21947,
344,
1435,
565,
288,
3639,
309,
261,
5332,
5555,
382,
426,
564,
13,
288,
5411,
309,
261,
881,
21947,
344,
2224,
480,
300,
21,
13,
288,
7734,
6080,
91,
18,... | |
public XSElementDeclaration getElementDeclaration(String namespace, String name); | public XSElementDeclaration getElementDeclaration(String name, String namespace); | public XSElementDeclaration getElementDeclaration(String namespace, String name); | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/a2ddc083665db7fbab1c54bade4a78804cb7a1a7/XSModel.java/buggy/src/org/apache/xerces/xs/XSModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1139,
55,
1046,
6094,
7426,
6094,
12,
780,
1981,
16,
4766,
15604,
514,
508,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
1139,
55,
1046,
6094,
7426,
6094,
12,
780,
1981,
16,
4766,
15604,
514,
508,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if ( report.getSlot( ReportDesign.PAGE_SLOT ).getCount( ) == 0 ) | if ( report.getSlot( IModuleModel.PAGE_SLOT ).getCount( ) == 0 ) | public List validate( Module module, DesignElement element ) { if ( !( element instanceof ReportDesign ) ) return Collections.EMPTY_LIST; List list = new ArrayList( ); ReportDesign report = (ReportDesign) element; if ( report.getSlot( ReportDesign.PAGE_SLOT ).getCount( ) == 0 ) { list.add( new SemanticError( report, SemanticError.DESIGN_EXCEPTION_MISSING_MASTER_PAGE ) ); } return list; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/MasterPageRequiredValidator.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/validators/MasterPageRequiredValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
1954,
12,
5924,
1605,
16,
29703,
1046,
930,
262,
202,
95,
202,
202,
430,
261,
401,
12,
930,
1276,
8706,
15478,
262,
262,
1082,
202,
2463,
5737,
18,
13625,
67,
7085,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
987,
1954,
12,
5924,
1605,
16,
29703,
1046,
930,
262,
202,
95,
202,
202,
430,
261,
401,
12,
930,
1276,
8706,
15478,
262,
262,
1082,
202,
2463,
5737,
18,
13625,
67,
7085,
31,
... |
new CreateNetCommand( (EditorDataProxy) child, "testnet" ).execute(); | Command createNet = new CreateNetCommand( (EditorDataProxy) child, "testnet" ); executor.executeCommand(createNet).get(); | private void initComponents() { JFrame.setDefaultLookAndFeelDecorated(true); try { UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { e.printStackTrace();} componentEditorSplitPane = new javax.swing.JSplitPane(); componentList1Panel = new javax.swing.JPanel(); componentList2Panel = new javax.swing.JPanel(); componentTreesSplitPane = new JSplitPane(); componentTreesPanel = new javax.swing.JPanel(); componentList1ScrollPane = new javax.swing.JScrollPane(); componentList2ScrollPane = new javax.swing.JScrollPane(); SpecificationDAO memdao = DAOFactory.getDAOFactory(DAOFactory.Type.MEMORY).getSpecificationModelDAO(); SpecificationDAO filedao = DAOFactory.getDAOFactory(DAOFactory.Type.FILE).getSpecificationModelDAO();// SpecificationDAO hibernatedao = DAOFactory.getDAOFactory(DAOFactory.Type.HIBERNATE).getSpecificationModelDAO(); DataContext memdc = new DataContext(memdao, EditorDataProxy.class); DataContext filedc = new DataContext(filedao, EditorDataProxy.class);// DataContext hibdc = new DataContext(hibernatedao, EditorDataProxy.class); Object o = new DatasourceRoot("virtual://memory/home/sandozm/templates/"); EditorDataProxy memdp = (EditorDataProxy) memdc.createProxy(o, null); memdc.attachProxy(memdp, o); try { new CreateSpecificationCommand( memdp, "testspec" ).execute(); Set<DataProxy> children = memdc.getChildren( memdp, false ); for( DataProxy child : children ) { if( child.getData() instanceof YSpecification ) { new CreateNetCommand( (EditorDataProxy) child, "testnet" ).execute(); Set<DataProxy> subchildren = child.getContext().getChildren( child, false ); for( DataProxy subchild : subchildren ) { if( subchild.getData() instanceof YNet ) { new CreateConditionCommand( (EditorDataProxy) subchild, CreateConditionCommand.TYPE_INPUT_CONDITION, null).execute(); new CreateConditionCommand( (EditorDataProxy) subchild, CreateConditionCommand.TYPE_OUTPUT_CONDITION, null).execute(); new CreateNexusComponent( (EditorDataProxy) subchild, "jython", "jython", NexusServiceInfo.getServiceWithName( "Jython" ) ).execute(); } } } } } catch( Exception e ) { e.printStackTrace( System.out ); System.out.flush(); } String dataroot = new File("exampleSpecs/").toURI().toString(); o = new DatasourceRoot(dataroot); EditorDataProxy filedp = (EditorDataProxy) filedc.createProxy(o, null); filedc.attachProxy(filedp, o);// EditorDataProxy hibdp = (EditorDataProxy) hibdc.getDataProxy(new DatasourceRoot("hibernate://home/sandozm/"), null); SharedNode memRootNode = new SharedNode(memdp); SharedNode fileRootNode = new SharedNode(filedp);// SharedNode hibernateRootNode = new SharedNode(hibdp); SharedNodeTreeModel memTreeModel = new SharedNodeTreeModel(memRootNode); SharedNodeTreeModel fileTreeModel = new SharedNodeTreeModel(fileRootNode);// SharedNodeTreeModel hibernateTreeModel = new SharedNodeTreeModel(hibernateRootNode); memRootNode.setTreeModel(memTreeModel); fileRootNode.setTreeModel(fileTreeModel);// hibernateRootNode.setTreeModel(hibernateTreeModel); memoryComponentListTree = new STree(memTreeModel, componentList1ScrollPane); memoryComponentListTree.setShowsRootHandles(false); memoryComponentListTree.setRootVisible(true); memoryComponentListTree.setRowHeight(34); fileComponentListTree = new STree(fileTreeModel, componentList1ScrollPane); fileComponentListTree.setShowsRootHandles(false); fileComponentListTree.setRootVisible(true); fileComponentListTree.setRowHeight(34); desktopAndStatusPanel = new javax.swing.JPanel(); desktopLogSplitPane = new javax.swing.JSplitPane(); desktopPanel = new javax.swing.JPanel(); desktopScrollPane = new javax.swing.JScrollPane(); desktopPane = new DesktopPane(); logPanel = new CapselaLogPanel(); logTextScrollPane = new javax.swing.JScrollPane(); logTextArea = new javax.swing.JTextArea(); menuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); openMenuItem = new javax.swing.JMenuItem(); saveMenuItem = new javax.swing.JMenuItem(); saveAsMenuItem = new javax.swing.JMenuItem(); exitMenuItem = new javax.swing.JMenuItem(); editMenu = new javax.swing.JMenu(); cutMenuItem = new javax.swing.JMenuItem(); copyMenuItem = new javax.swing.JMenuItem(); pasteMenuItem = new javax.swing.JMenuItem(); deleteMenuItem = new javax.swing.JMenuItem(); helpMenu = new javax.swing.JMenu(); contentsMenuItem = new javax.swing.JMenuItem(); aboutMenuItem = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Nexus/BPM Process Editor"); setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); setForeground(java.awt.Color.lightGray); setName("Nexus/BPM Process Editor"); this.setIconImage(ApplicationIcon.getIcon("NexusFrame.window_icon", ApplicationIcon.LARGE_SIZE).getImage()); componentEditorSplitPane.setDividerLocation(200); componentList1Panel.setLayout(new java.awt.BorderLayout()); componentList2Panel.setLayout(new java.awt.BorderLayout()); componentTreesPanel.setLayout(new java.awt.BorderLayout()); componentList1ScrollPane.setViewportView(memoryComponentListTree); componentList2ScrollPane.setViewportView(fileComponentListTree); componentList1Panel.add(componentList1ScrollPane, java.awt.BorderLayout.CENTER); componentList2Panel.add(componentList2ScrollPane, java.awt.BorderLayout.CENTER); componentEditorSplitPane.setLeftComponent(componentTreesPanel); componentTreesSplitPane.setDividerLocation(300); componentTreesSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); componentTreesSplitPane.setTopComponent(componentList1Panel); componentTreesSplitPane.setBottomComponent(componentList2Panel); componentTreesPanel.add(componentTreesSplitPane); desktopAndStatusPanel.setLayout(new java.awt.GridLayout(1, 0)); desktopLogSplitPane.setDividerLocation(480); desktopLogSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); desktopLogSplitPane.setRequestFocusEnabled(false); desktopPanel.setLayout(new java.awt.GridLayout(1, 0)); desktopPane.setBackground(new java.awt.Color(135, 145, 161)); desktopScrollPane.setViewportView(desktopPane); desktopPanel.add(desktopScrollPane); desktopLogSplitPane.setTopComponent(desktopPanel); desktopLogSplitPane.setBottomComponent(logPanel); desktopAndStatusPanel.add(desktopLogSplitPane); componentEditorSplitPane.setRightComponent(desktopAndStatusPanel); getContentPane().add(componentEditorSplitPane, java.awt.BorderLayout.CENTER); fileMenu.setText("File"); openMenuItem.setText("Open"); fileMenu.add(openMenuItem); saveMenuItem.setText("Save"); fileMenu.add(saveMenuItem); saveAsMenuItem.setText("Save As ..."); fileMenu.add(saveAsMenuItem); exitMenuItem.setText("Exit"); exitMenuItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitMenuItemActionPerformed(evt); } }); fileMenu.add(exitMenuItem); menuBar.add(fileMenu); editMenu.setText("Edit"); cutMenuItem.setText("Cut"); editMenu.add(cutMenuItem); copyMenuItem.setText("Copy"); editMenu.add(copyMenuItem); pasteMenuItem.setText("Paste"); editMenu.add(pasteMenuItem); deleteMenuItem.setText("Delete"); editMenu.add(deleteMenuItem); menuBar.add(editMenu); helpMenu.setText("Help"); contentsMenuItem.setText("Contents"); helpMenu.add(contentsMenuItem); aboutMenuItem.setText("About"); helpMenu.add(aboutMenuItem); menuBar.add(helpMenu); setJMenuBar(menuBar); pack(); } | 51637 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51637/2ba5f00f2828d2feccb69026ef7668f77e5b1ca8/WorkflowEditor.java/buggy/yawl/editor/com/nexusbpm/editor/WorkflowEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
202,
565,
804,
3219,
18,
542,
1868,
9794,
1876,
2954,
292,
7859,
690,
12,
3767,
1769,
202,
202,
698,
288,
202,
3639,
6484,
1318,
18,
542,
9794,
1876,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
202,
565,
804,
3219,
18,
542,
1868,
9794,
1876,
2954,
292,
7859,
690,
12,
3767,
1769,
202,
202,
698,
288,
202,
3639,
6484,
1318,
18,
542,
9794,
1876,
2... |
break; case NOT_TOKEN: jj_consume_token(NOT_TOKEN); | break; case NOT_TOKEN: jj_consume_token(NOT_TOKEN); | final public int Modifier() throws ParseException { trace_call("Modifier"); try { Token mod = null; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case PLUS: jj_consume_token(PLUS); {if (true) return PLUS;} break; case MINUS: jj_consume_token(MINUS); {if (true) return MINUS;} break; case NOT_TOKEN: jj_consume_token(NOT_TOKEN); {if (true) return MINUS;} break; default: jj_la1[1] = jj_gen; {if (true) return 0;} } throw new Error("Missing return statement in function"); } finally { trace_return("Modifier"); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/1fc33da8eddd8249205ff3612ffbf86557b572ab/ZimbraQueryParser.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/queryparser/ZimbraQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
509,
12832,
1435,
1216,
10616,
288,
565,
2606,
67,
1991,
2932,
9829,
8863,
565,
775,
288,
565,
3155,
681,
273,
446,
31,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
509,
12832,
1435,
1216,
10616,
288,
565,
2606,
67,
1991,
2932,
9829,
8863,
565,
775,
288,
565,
3155,
681,
273,
446,
31,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
... |
setCompletionValues(scope, kind, first, prev ); | setCompletionValues(scope, kind, first, prev, Key.EMPTY ); | protected ITokenDuple name(IASTScope scope, IASTCompletionNode.CompletionKind kind ) throws BacktrackException, EndOfFileException { IToken first = LA(1); IToken last = null; IToken mark = mark(); List argumentList = new LinkedList(); boolean hasTemplateId = false; boolean startsWithColonColon = false; if (LT(1) == IToken.tCOLONCOLON){ argumentList.add( null ); last = consume( IToken.tCOLONCOLON ); setCompletionValues( scope, kind, Key.EMPTY, getCompliationUnit() ); startsWithColonColon = true; } if (LT(1) == IToken.tCOMPL) consume(); switch (LT(1)) { case IToken.tIDENTIFIER : IToken prev = last; last = consume(IToken.tIDENTIFIER); if( startsWithColonColon ) setCompletionValues( scope, kind, getCompliationUnit() ); else if( prev != null ) setCompletionValues(scope, kind, first, prev ); else setCompletionValues(scope, kind ); last = consumeTemplateArguments(scope, last, argumentList); if( last.getType() == IToken.tGT ) hasTemplateId = true; break; default : backup(mark); throw backtrack; } while (LT(1) == IToken.tCOLONCOLON) { IToken prev = last; last = consume(IToken.tCOLONCOLON); setCompletionValues( scope, kind, first, prev ); if (queryLookaheadCapability() && LT(1) == IToken.t_template) consume(); if (queryLookaheadCapability() && LT(1) == IToken.tCOMPL) consume(); switch (LT(1)) { case IToken.t_operator : backup(mark); throw backtrack; case IToken.tIDENTIFIER : prev = last; last = consume(); setCompletionValues( scope, kind, first, prev ); last = consumeTemplateArguments(scope, last, argumentList); if( last.getType() == IToken.tGT ) hasTemplateId = true; } } ITokenDuple tokenDuple = new TokenDuple(first, last, ( hasTemplateId ? argumentList : null ) ); setGreaterNameContext( tokenDuple ); return tokenDuple; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1a5788e0dc8eb7824785a35eaf53c7373aa33bdb/ExpressionParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ExpressionParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
1345,
40,
2268,
508,
12,
45,
9053,
3876,
2146,
16,
467,
9053,
11238,
907,
18,
11238,
5677,
3846,
262,
1216,
4297,
4101,
503,
16,
4403,
951,
812,
503,
288,
9506,
565,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
467,
1345,
40,
2268,
508,
12,
45,
9053,
3876,
2146,
16,
467,
9053,
11238,
907,
18,
11238,
5677,
3846,
262,
1216,
4297,
4101,
503,
16,
4403,
951,
812,
503,
288,
9506,
565,
467... |
return tokadd_escape(); | return tokadd_escape(term); /* FIX 1.6.5*/ | private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); for (i=0; i<2; i++) { c = nextc(); if (c == -1) { //goto eof; yyerror("Invalid escape character syntax"); return -1; } if (c < '0' || '7' < c) { pushback(c); break; } tokadd(c); } } return 0; case 'x': /* hex constant */ { tokadd('\\'); tokadd(c); int[] numlen = new int[1]; scan_hex(lex_curline, lex_p, 2, numlen); while (numlen[0]-- != 0) tokadd(nextc()); } return 0; case 'M': if ((c = nextc()) != '-') { yyerror("Invalid escape character syntax"); pushback(c); return 0; } tokadd('\\'); tokadd('M'); tokadd('-'); //goto escaped; if ((c = nextc()) == '\\') { return tokadd_escape(); } else if (c == -1) { // goto eof; yyerror("Invalid escape character syntax"); return -1; } tokadd(c); return 0; case 'C': if ((c = nextc()) != '-') { yyerror("Invalid escape character syntax"); pushback(c); return 0; } tokadd('\\'); tokadd('C'); tokadd('-'); //goto escaped; if ((c = nextc()) == '\\') { return tokadd_escape(); } else if (c == -1) { // goto eof; yyerror("Invalid escape character syntax"); return -1; } tokadd(c); return 0; case 'c': tokadd('\\'); tokadd('c'); //escaped: if ((c = nextc()) == '\\') { return tokadd_escape(); } else if (c == -1) { // goto eof; yyerror("Invalid escape character syntax"); return -1; } tokadd(c); return 0; case -1: // eof: yyerror("Invalid escape character syntax"); return -1; default: tokadd('\\'); tokadd(c); } return 0; } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/241a0fe060c8d239aa9e5d2519e98cf44d69a201/parse.java/clean/org/jruby/parser/parse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
946,
1289,
67,
6939,
1435,
288,
3639,
509,
276,
31,
3639,
1620,
261,
71,
273,
1024,
71,
10756,
288,
202,
3593,
2337,
82,
4278,
5411,
327,
374,
31,
202,
202,
20308,
2537,
2305... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
946,
1289,
67,
6939,
1435,
288,
3639,
509,
276,
31,
3639,
1620,
261,
71,
273,
1024,
71,
10756,
288,
202,
3593,
2337,
82,
4278,
5411,
327,
374,
31,
202,
202,
20308,
2537,
2305... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.