rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
logger.debug("corbaloc not null");
public org.omg.CORBA.Object getRoot() { org.omg.CORBA.Object rootObj = null; if(nameServiceCorbaLoc != null) { logger.debug("corbaloc not null"); logger.info("Using name service corba loc=" + nameServiceCorbaLoc); rootObj = orb.string_to_object(nameServiceCorbaLoc); if(rootObj == null) { throw new RuntimeException("Unable to make an object from " + nameServiceCorbaLoc); } logger.debug("got root object"); } else { logger.debug("corbaloc is null, resolve initial references"); try { // get a reference to the Naming Service root_context rootObj = orb.resolve_initial_references("NameService"); } catch(org.omg.CORBA.ORBPackage.InvalidName e) { throw new RuntimeException("Unable to resolve from initial references", e); } if(rootObj == null) { throw new RuntimeException("Unable to resolve from initial references"); } } return rootObj; }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/7370b9b75dffcd7af4928bfdfa92cef2bb0af023/FissuresNamingService.java/buggy/src/edu/sc/seis/fissuresUtil/namingService/FissuresNamingService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2358, 18, 362, 75, 18, 9428, 12536, 18, 921, 7656, 1435, 288, 3639, 2358, 18, 362, 75, 18, 9428, 12536, 18, 921, 1365, 2675, 273, 446, 31, 3639, 309, 12, 529, 1179, 6217, 12124, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2358, 18, 362, 75, 18, 9428, 12536, 18, 921, 7656, 1435, 288, 3639, 2358, 18, 362, 75, 18, 9428, 12536, 18, 921, 1365, 2675, 273, 446, 31, 3639, 309, 12, 529, 1179, 6217, 12124, ...
public void testGreaterThan() throws Exception { final DeweyDecimal dd1 = new DeweyDecimal( DD1 ); final DeweyDecimal dd2 = new DeweyDecimal( DD2 ); final DeweyDecimal dd3 = new DeweyDecimal( DD3 ); final DeweyDecimal dd4 = new DeweyDecimal( DD4 ); final DeweyDecimal dd5 = new DeweyDecimal( DD5 ); assertTrue( "Bad: " + DD1 + " > " + DD1, !dd1.isGreaterThan( dd1 ) ); assertTrue( "Bad: " + DD1 + " > " + DD2, !dd1.isGreaterThan( dd2 ) ); assertTrue( "Bad: " + DD1 + " > " + DD3, !dd1.isGreaterThan( dd3 ) ); assertTrue( "Bad: " + DD1 + " < " + DD4, dd1.isGreaterThan( dd4 ) ); assertTrue( "Bad: " + DD1 + " > " + DD5, !dd1.isGreaterThan( dd5 ) ); assertTrue( "Bad: " + DD2 + " < " + DD1, dd2.isGreaterThan( dd1 ) ); assertTrue( "Bad: " + DD2 + " > " + DD2, !dd2.isGreaterThan( dd2 ) ); assertTrue( "Bad: " + DD2 + " > " + DD3, !dd2.isGreaterThan( dd3 ) ); assertTrue( "Bad: " + DD2 + " < " + DD4, dd2.isGreaterThan( dd4 ) ); assertTrue( "Bad: " + DD2 + " > " + DD5, !dd2.isGreaterThan( dd5 ) ); assertTrue( "Bad: " + DD3 + " < " + DD1, dd3.isGreaterThan( dd1 ) ); assertTrue( "Bad: " + DD3 + " < " + DD2, dd3.isGreaterThan( dd2 ) ); assertTrue( "Bad: " + DD3 + " > " + DD3, !dd3.isGreaterThan( dd3 ) ); assertTrue( "Bad: " + DD3 + " < " + DD4, dd3.isGreaterThan( dd4 ) ); assertTrue( "Bad: " + DD3 + " > " + DD5, !dd3.isGreaterThan( dd5 ) ); assertTrue( "Bad: " + DD4 + " > " + DD1, !dd4.isGreaterThan( dd1 ) ); assertTrue( "Bad: " + DD4 + " > " + DD2, !dd4.isGreaterThan( dd2 ) ); assertTrue( "Bad: " + DD4 + " > " + DD3, !dd4.isGreaterThan( dd3 ) ); assertTrue( "Bad: " + DD4 + " > " + DD4, !dd4.isGreaterThan( dd4 ) ); assertTrue( "Bad: " + DD4 + " > " + DD5, !dd4.isGreaterThan( dd5 ) ); assertTrue( "Bad: " + DD5 + " < " + DD1, dd5.isGreaterThan( dd1 ) ); assertTrue( "Bad: " + DD5 + " < " + DD2, dd5.isGreaterThan( dd2 ) ); assertTrue( "Bad: " + DD5 + " < " + DD3, dd5.isGreaterThan( dd3 ) ); assertTrue( "Bad: " + DD5 + " < " + DD4, dd5.isGreaterThan( dd4 ) ); assertTrue( "Bad: " + DD5 + " > " + DD5, !dd5.isGreaterThan( dd5 ) ); }
2044 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2044/e622ff134f94da7c133006a05d0aab68115a1013/DeweyDecimalTestCase.java/clean/scm/loom/support/extension/src/test/org/realityforge/extension/DeweyDecimalTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 28130, 1435, 15069, 503, 95, 6385, 40, 359, 402, 5749, 449, 21, 33, 2704, 40, 359, 402, 5749, 12, 5698, 21, 1769, 6385, 40, 359, 402, 5749, 449, 22, 33, 2704, 40, 359, 40...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 3813, 28130, 1435, 15069, 503, 95, 6385, 40, 359, 402, 5749, 449, 21, 33, 2704, 40, 359, 402, 5749, 12, 5698, 21, 1769, 6385, 40, 359, 402, 5749, 449, 22, 33, 2704, 40, 359, 40...
taskList.removeFromRoot(task); }
taskList.removeFromRoot(task); }
public void moveToCategory(TaskCategory category, ITask task) { if(category.equals(taskList.getRootCategory())) { moveToRoot(task); } else { taskList.removeFromRoot(task); } if (task.getCategory() instanceof TaskCategory) { ((TaskCategory) task.getCategory()).removeTask(task); } if (!category.getChildren().contains(task)) { category.addTask(task); } task.setCategory(category); for (ITaskChangeListener listener : changeListeners) listener.taskListModified(); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/abde6eefcd5d77de457210fc6e4627c7285a37f2/TaskListManager.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/provisional/tasklist/TaskListManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 13863, 4457, 12, 2174, 4457, 3150, 16, 467, 2174, 1562, 13, 288, 202, 202, 430, 12, 4743, 18, 14963, 12, 4146, 682, 18, 588, 2375, 4457, 1435, 3719, 288, 1082, 202, 8501,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13863, 4457, 12, 2174, 4457, 3150, 16, 467, 2174, 1562, 13, 288, 202, 202, 430, 12, 4743, 18, 14963, 12, 4146, 682, 18, 588, 2375, 4457, 1435, 3719, 288, 1082, 202, 8501,...
System.out.println(" tag " + i + ":");
System.out.println (" " + Messages.getString("StandaloneAppletViewer.Tag") + " " + i + ":");
void printTags() { if (verbose) { System.out.println("parsed applet tags:"); for (int i = 0; i < appletTags.size(); i++) { AppletTag tag = (AppletTag) appletTags.get(i); System.out.println(" tag " + i + ":"); System.out.println(tag); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4c8433cfced7bf4547e39d39cd3393319aad49f0/StandaloneAppletViewer.java/clean/core/src/classpath/tools/gnu/classpath/tools/appletviewer/StandaloneAppletViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1172, 3453, 1435, 225, 288, 565, 309, 261, 11369, 13, 1377, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 10817, 21853, 2342, 2773, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1172, 3453, 1435, 225, 288, 565, 309, 261, 11369, 13, 1377, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 10817, 21853, 2342, 2773, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 4...
String causingSourceFile = determineSourceFile(prevLine);
String causingSourceFile = determineSourceFile(); System.out.println("cause: " + causingSourceFile);
protected boolean parseErrors(IResource resource, String output) { TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_LATEX_RERUN, null); TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_BIBTEX_RERUN, null); IProject project = resource.getProject(); IContainer sourceDir = TexlipseProperties.getProjectSourceDir(project); if (sourceDir == null) { sourceDir = project; } boolean errorsFound = false; String prevLine = ""; StringTokenizer st = new StringTokenizer(output, "\r\n"); while (st.hasMoreTokens()) { String line = st.nextToken(); if (line.startsWith("! Undefined control sequence.")) { String part1 = st.nextToken(); String part2 = st.nextToken(); int index = part1.indexOf(' '); int comIndex = part1.indexOf('\\'); if (comIndex == -1) comIndex = index; // just in case... String lineNumberString = part1.substring(2, index); Integer lineNumber = null; try { int num = Integer.parseInt(lineNumberString); lineNumber = new Integer(num); } catch (NumberFormatException e) { } String error = "Undefined control sequence: " + part1.substring(comIndex).trim() + " (followed by: " + part2.trim() + ")"; errorsFound = true; String causingSourceFile = determineSourceFile(prevLine); //System.out.println("cause: " + causingSourceFile); IResource extResource = null; if (causingSourceFile != null) { extResource = sourceDir.findMember(causingSourceFile); } if (extResource != null) { createMarker(extResource, lineNumber, error); } else { createMarker(resource, lineNumber, error); } } else if (line.startsWith("! LaTeX Error:")) { String error = line.substring(15); String part2 = st.nextToken().trim(); if (Character.isLowerCase(part2.charAt(0))) { error += ' ' + part2; } // find additional information related to the error Integer lineNumber = null; if (part2.startsWith("See the LaTeX manual")) { String help2 = st.nextToken(); if (help2.startsWith("Type ")) { String dots = st.nextToken().trim(); if (dots.startsWith("..")) { String lineNumStr = st.nextToken().trim(); if (lineNumStr.length() == 0) { lineNumStr = st.nextToken().trim(); } if (lineNumStr.startsWith("l.")) { int lineNum = -1; try { lineNum = Integer.parseInt(lineNumStr.substring(2, lineNumStr.indexOf(' ', 2))); } catch (NumberFormatException e) { } if (lineNum != -1) { lineNumber = new Integer(lineNum); } } } } } errorsFound = true; String causingSourceFile = determineSourceFile(prevLine); IResource extResource = null; if (causingSourceFile != null) { extResource = sourceDir.findMember(causingSourceFile); } if (extResource != null) { createMarker(extResource, lineNumber, error); } else { createMarker(resource, lineNumber, error); } } else if (line.startsWith("LaTeX Warning: ")) { if (line.indexOf("Label(s) may have changed.") > 0) { // prepare to re-run latex TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_LATEX_RERUN, "true"); } else if (line.indexOf("There were undefined references.") > 0) { // prepare to run bibtex TexlipseProperties.setSessionProperty(resource.getProject(), TexlipseProperties.SESSION_BIBTEX_RERUN, "true"); } } else if (line.indexOf("(") != -1) { prevLine = line; } } return errorsFound; }
9028 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9028/5aaf006a3de9feb0c27af0568fc555c191f49683/LatexRunner.java/clean/source/net/sourceforge/texlipse/builder/LatexRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 1109, 4229, 12, 45, 1420, 1058, 16, 514, 876, 13, 288, 7734, 399, 338, 10472, 2297, 18, 542, 2157, 1396, 12, 3146, 18, 588, 4109, 9334, 399, 338, 10472, 2297, 18, 7042, 67, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 1109, 4229, 12, 45, 1420, 1058, 16, 514, 876, 13, 288, 7734, 399, 338, 10472, 2297, 18, 542, 2157, 1396, 12, 3146, 18, 588, 4109, 9334, 399, 338, 10472, 2297, 18, 7042, 67, ...
in.seek(in.getFilePointer() + size);
in.skipBytes(size);
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); offsets = new Vector(); byte[] list = new byte[4]; String listString; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("RIFF")) { bigChunkSize = size; if (!fcc.equals("AVI ")) { whine("Sorry, AVI RIFF format not found."); } } else { whine("Not an AVI file"); } while (in.read(list) == 4) { in.seek(in.getFilePointer() - 4); listString = new String(list); if (listString.equals("JUNK")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.seek(in.getFilePointer() + size); } } else if (listString.equals("LIST")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); in.seek(in.getFilePointer() - 12); if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("avih")) { pos = in.getFilePointer(); dwMicroSecPerFrame = DataTools.read4SignedBytes(in, little); dwMaxBytesPerSec = DataTools.read4SignedBytes(in, little); dwReserved1 = DataTools.read4SignedBytes(in, little); dwFlags = DataTools.read4SignedBytes(in, little); dwTotalFrames = DataTools.read4SignedBytes(in, little); dwInitialFrames = DataTools.read4SignedBytes(in, little); dwStreams = DataTools.read4SignedBytes(in, little); dwSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwWidth = DataTools.read4SignedBytes(in, little); dwHeight = DataTools.read4SignedBytes(in, little); dwScale = DataTools.read4SignedBytes(in, little); dwRate = DataTools.read4SignedBytes(in, little); dwStart = DataTools.read4SignedBytes(in, little); dwLength = DataTools.read4SignedBytes(in, little); metadata.put("Microseconds per frame", new Integer(dwMicroSecPerFrame)); metadata.put("Max. bytes per second", new Integer(dwMaxBytesPerSec)); metadata.put("Total frames", new Integer(dwTotalFrames)); metadata.put("Initial frames", new Integer(dwInitialFrames)); metadata.put("Frame width", new Integer(dwWidth)); metadata.put("Frame height", new Integer(dwHeight)); metadata.put("Scale factor", new Integer(dwScale)); metadata.put("Frame rate", new Integer(dwRate)); metadata.put("Start time", new Integer(dwStart)); metadata.put("Length", new Integer(dwLength)); in.seek(pos + size); } } } } else if (fcc.equals("strl")) { long startPos = in.getFilePointer(); long streamSize = size; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("strl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strh")) { pos = in.getFilePointer(); String fccStreamTypeOld = fccStreamType; fccStreamType = readStringBytes(); if (!fccStreamType.equals("vids")) { fccStreamType = fccStreamTypeOld; } fccStreamHandler = readStringBytes(); dwStreamFlags = DataTools.read4SignedBytes(in, little); dwStreamReserved1 = DataTools.read4SignedBytes(in, little); dwStreamInitialFrames = DataTools.read4SignedBytes(in, little); dwStreamScale = DataTools.read4SignedBytes(in, little); dwStreamRate = DataTools.read4SignedBytes(in, little); dwStreamStart = DataTools.read4SignedBytes(in, little); dwStreamLength = DataTools.read4SignedBytes(in, little); dwStreamSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwStreamQuality = DataTools.read4SignedBytes(in, little); dwStreamSampleSize = DataTools.read4SignedBytes(in, little); metadata.put("Stream quality", new Integer(dwStreamQuality)); metadata.put("Stream sample size", new Integer(dwStreamSampleSize)); in.seek(pos + size); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strf")) { pos = in.getFilePointer(); bmpSize = DataTools.read4SignedBytes(in, little); bmpWidth = DataTools.read4SignedBytes(in, little); bmpHeight = DataTools.read4SignedBytes(in, little); bmpPlanes = DataTools.read2SignedBytes(in, little); bmpBitsPerPixel = DataTools.read2SignedBytes(in, little); bmpCompression = DataTools.read4SignedBytes(in, little); bmpSizeOfBitmap = DataTools.read4SignedBytes(in, little); bmpHorzResolution = DataTools.read4SignedBytes(in, little); bmpVertResolution = DataTools.read4SignedBytes(in, little); bmpColorsUsed = DataTools.read4SignedBytes(in, little); bmpColorsImportant = DataTools.read4SignedBytes(in, little); bmpTopDown = (bmpHeight < 0); bmpNoOfPixels = bmpWidth * bmpHeight; metadata.put("Bitmap compression value", new Integer(bmpCompression)); metadata.put("Horizontal resolution", new Integer(bmpHorzResolution)); metadata.put("Vertical resolution", new Integer(bmpVertResolution)); metadata.put("Number of colors used", new Integer(bmpColorsUsed)); metadata.put("Bits per pixel", new Integer(bmpBitsPerPixel)); // scan line is padded with zeros to be a multiple of 4 bytes int npad = bmpWidth % 4; if (npad > 0) npad = 4 - npad; bmpScanLineSize = (bmpWidth + npad) * (bmpBitsPerPixel / 8); if (bmpSizeOfBitmap != 0) { bmpActualSize = bmpSizeOfBitmap; } else { // a value of 0 doesn't mean 0 -- it means we have // to calculate it bmpActualSize = bmpScanLineSize * bmpHeight; } if (bmpColorsUsed != 0) { bmpActualColorsUsed = bmpColorsUsed; } else { // a value of 0 means we determine this based on the // bits per pixel if (bmpBitsPerPixel < 16) { bmpActualColorsUsed = 1 << bmpBitsPerPixel; } else { // no palette bmpActualColorsUsed = 0; } } if (bmpCompression != 0) { whine("Sorry, compressed AVI files not supported."); } if (!(bmpBitsPerPixel == 8 || bmpBitsPerPixel == 24 || bmpBitsPerPixel == 32)) { whine("Sorry, " + bmpBitsPerPixel + " bits per pixel not " + "supported"); } if (bmpActualColorsUsed != 0) { // read the palette long pos1 = in.getFilePointer(); pr = new byte[bmpColorsUsed]; pg = new byte[bmpColorsUsed]; pb = new byte[bmpColorsUsed]; for (int i=0; i<bmpColorsUsed; i++) { pb[i] = (byte) in.read(); pg[i] = (byte) in.read(); pr[i] = (byte) in.read(); in.read(); } } in.seek(pos + size); } } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strd")) { in.seek(in.getFilePointer() + size); } else { in.seek(in.getFilePointer() - 8); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strn")) { in.seek(in.getFilePointer() + size); } else { in.seek(in.getFilePointer() - 8); } } in.seek(startPos + 8 + streamSize); } else if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (!(type.equals("LIST") && fcc.equals("rec "))) { in.seek(in.getFilePointer() - 12); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); long startPos = in.getFilePointer(); while (type.substring(2).equals("db") || type.substring(2).equals("dc") || type.substring(2).equals("wb")) { pos = in.getFilePointer(); if (type.substring(2).equals("db") || type.substring(2).equals("dc")) { offsets.add(new Long(in.getFilePointer())); in.skipBytes(bmpHeight * bmpScanLineSize); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.seek(in.getFilePointer() + size); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); } } in.seek(in.getFilePointer() - 8); } } } else { // skipping unknown block in.seek(in.getFilePointer() + 8 + size); } } else { // skipping unknown block type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); in.seek(in.getFilePointer() + size); } } numImages = offsets.size(); initOMEMetadata(); }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/91859a26506b8a1d312b398da2c3ecd94e02fa60/AVIReader.java/clean/loci/formats/AVIReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 26933, 12, 350, 16, 315, 86, 8863, 565, 8738...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 316, 273, 394, 8072, 26933, 12, 350, 16, 315, 86, 8863, 565, 8738...
public RubyBignum op_rshift(IRubyObject iNum) { long shift = numericValue(iNum).getLongValue();
public RubyBignum op_rshift(RubyNumeric other) { long shift = other.getLongValue();
public RubyBignum op_rshift(IRubyObject iNum) { long shift = numericValue(iNum).getLongValue(); if (shift > Integer.MAX_VALUE || shift < Integer.MIN_VALUE) throw new RangeError(runtime, "bignum too big to convert into `int'"); return new RubyBignum(runtime, value.shiftRight((int) shift)); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 38, 724, 379, 1061, 67, 86, 4012, 12, 7937, 10340, 921, 277, 2578, 13, 288, 3639, 1525, 4654, 273, 6389, 620, 12, 77, 2578, 2934, 588, 3708, 620, 5621, 3639, 309, 261, 4012...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 38, 724, 379, 1061, 67, 86, 4012, 12, 7937, 10340, 921, 277, 2578, 13, 288, 3639, 1525, 4654, 273, 6389, 620, 12, 77, 2578, 2934, 588, 3708, 620, 5621, 3639, 309, 261, 4012...
return (ActionType)AttributeFactory.eINSTANCE.createFromString(AttributePackage.eINSTANCE.getActionType(), initialValue);
return (ActionType) AttributeFactory.eINSTANCE.createFromString(AttributePackage.eINSTANCE.getActionType(), initialValue);
public ActionType createActionTypeObjectFromString(EDataType eDataType, String initialValue) { return (ActionType)AttributeFactory.eINSTANCE.createFromString(AttributePackage.eINSTANCE.getActionType(), initialValue); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/AttributeFactoryImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/AttributeFactoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 559, 752, 26995, 921, 9193, 12, 41, 6273, 11479, 16, 514, 11837, 13, 565, 288, 3639, 327, 261, 26995, 13, 3601, 1733, 18, 73, 13341, 18, 2640, 9193, 12, 1499, 2261, 18, 73, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 559, 752, 26995, 921, 9193, 12, 41, 6273, 11479, 16, 514, 11837, 13, 565, 288, 3639, 327, 261, 26995, 13, 3601, 1733, 18, 73, 13341, 18, 2640, 9193, 12, 1499, 2261, 18, 73, ...
assertTrue("The binding shouldn't be active", bindingManager .getActiveBindingsFor(commandId).length == 0);
assertTrue("The binding shouldn't be active", bindingManager.getActiveBindingsFor(binding .getParameterizedCommand()).length == 0);
public final void testSetLocale() throws NotDefinedException { // GENERAL SET-UP final Context context = contextManager.getContext("na"); context.define("name", "description", null); final Scheme scheme = bindingManager.getScheme("na"); scheme.define("name", "description", null); bindingManager.setActiveScheme(scheme); final Set activeContextIds = new HashSet(); activeContextIds.add("na"); contextManager.setActiveContextIds(activeContextIds); // SET TO NULL try { bindingManager.setLocale(null); fail("Cannot set the locale to null"); } catch (final NullPointerException e) { // Success } // SET TO SOMETHING final String commandId = "commandId"; final Binding binding = new TestBinding(commandId, "na", "na", "xx", null, Binding.SYSTEM); bindingManager.addBinding(binding); assertTrue("The binding shouldn't be active", bindingManager .getActiveBindingsFor(commandId).length == 0); bindingManager.setLocale("xx_XX"); final TriggerSequence[] activeBindings = bindingManager .getActiveBindingsFor(commandId); assertEquals("The binding should become active", 1, activeBindings.length); assertSame("The binding should be the same", TestBinding.TRIGGER_SEQUENCE, activeBindings[0]); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/BindingManagerTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/BindingManagerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1842, 694, 3916, 1435, 1216, 2288, 8116, 503, 288, 202, 202, 759, 13679, 1013, 7855, 17, 3079, 202, 202, 6385, 1772, 819, 273, 819, 1318, 18, 29120, 2932, 6582, 8863, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1842, 694, 3916, 1435, 1216, 2288, 8116, 503, 288, 202, 202, 759, 13679, 1013, 7855, 17, 3079, 202, 202, 6385, 1772, 819, 273, 819, 1318, 18, 29120, 2932, 6582, 8863, ...
namespaceSupport.pushContext();
namespaceSupport.startElement();
public void startElement(String uri, String localname, String qName, Attributes attributes) throws SAXException { namespaceSupport.pushContext(); if (config.matchURI == null || config.matchURI.equals(uri)) { int colonIndex = qName.indexOf(':'); String prefix = (colonIndex == -1) ? "" : qName.substring(0, colonIndex); if (config.matchPrefix == null || config.matchPrefix.equals(prefix)) { // Match: replace prefix or URI or both String newURI = (config.replaceURI == null) ? uri : config.replaceURI; String newQName; if (config.replacePrefix == null) { newQName = qName; } else if (colonIndex == -1) { newQName = config.replacePrefix + ":" + qName; } else { newQName = config.replacePrefix + qName.substring(colonIndex); } checkNamespace(uri, newURI, prefix, (config.replacePrefix == null) ? prefix : config.replacePrefix, true); super.startElement(newURI, localname, newQName, attributes); } else { // No match super.startElement(uri, localname, qName, attributes); } } else { // No match super.startElement(uri, localname, qName, attributes); } }
52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/4815b907b90527af06e12476cfece46be4870d75/QNameConverter.java/buggy/src/java/org/orbeon/oxf/processor/converter/QNameConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 13591, 12, 780, 2003, 16, 514, 1191, 529, 16, 514, 22914, 16, 9055, 1677, 13, 1216, 14366, 288, 13491, 1981, 6289, 18, 1937, 1046, 5621, 13491, 309, 261, 1425, 18, 1916, 3098,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 13591, 12, 780, 2003, 16, 514, 1191, 529, 16, 514, 22914, 16, 9055, 1677, 13, 1216, 14366, 288, 13491, 1981, 6289, 18, 1937, 1046, 5621, 13491, 309, 261, 1425, 18, 1916, 3098,...
if (currentExtension.startsWith("*.")) result.add(currentExtension.substring(2)); else { if (currentExtension.startsWith(".")) result.add(currentExtension.substring(1)); else result.add(currentExtension);
if (currentExtension.startsWith("*.")) { result.add(currentExtension.substring(2)); } else { if (currentExtension.startsWith(".")) { result.add(currentExtension.substring(1)); } else { result.add(currentExtension); }
private void addUserDefinedEntries(List result) { StringTokenizer tokenizer = new StringTokenizer(userDefinedText .getText(), TYPE_DELIMITER); //Allow the *. and . prefix and strip out the extension while (tokenizer.hasMoreTokens()) { String currentExtension = tokenizer.nextToken().trim(); if (!currentExtension.equals("")) { //$NON-NLS-1$ if (currentExtension.startsWith("*."))//$NON-NLS-1$ result.add(currentExtension.substring(2)); else { if (currentExtension.startsWith("."))//$NON-NLS-1$ result.add(currentExtension.substring(1)); else result.add(currentExtension); } } } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/TypeFilteringDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/TypeFilteringDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 1299, 8116, 5400, 12, 682, 563, 13, 288, 3639, 16370, 10123, 273, 394, 16370, 12, 1355, 8116, 1528, 7734, 263, 588, 1528, 9334, 3463, 67, 19722, 1769, 3639, 368, 7009, 326...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 1299, 8116, 5400, 12, 682, 563, 13, 288, 3639, 16370, 10123, 273, 394, 16370, 12, 1355, 8116, 1528, 7734, 263, 588, 1528, 9334, 3463, 67, 19722, 1769, 3639, 368, 7009, 326...
* are not valid in the default style. The fix is to use a style from a * widget.
* are not valid in the default style. The fix is to use a style * from a widget.
public void drawFocus(int x, int y, int width, int height) { if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED); /* * Feature in GTK. The function gtk_widget_get_default_style() * can't be used here because gtk_paint_focus() uses GCs, which * are not valid in the default style. The fix is to use a style from a * widget. */ int /*long*/ style = OS.gtk_widget_get_style(data.device.shellHandle); OS.gtk_paint_focus(style, data.drawable, OS.GTK_STATE_NORMAL, null, 0, new byte[1], x, y, width, height);}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/0bdde811530233a98417bfd51a03e863bcbbc1b6/GC.java/buggy/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/GC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 3724, 9233, 12, 474, 619, 16, 509, 677, 16, 509, 1835, 16, 509, 2072, 13, 288, 202, 430, 261, 4110, 422, 374, 13, 348, 8588, 18, 1636, 12, 55, 8588, 18, 3589, 67, 24372, 2871, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3724, 9233, 12, 474, 619, 16, 509, 677, 16, 509, 1835, 16, 509, 2072, 13, 288, 202, 430, 261, 4110, 422, 374, 13, 348, 8588, 18, 1636, 12, 55, 8588, 18, 3589, 67, 24372, 2871, ...
PrintStream err = System.err; PrintStream out = System.out; PrintStream logstr = new PrintStream(new LogOutputStream(getRmic(), Project.MSG_WARN));
public boolean execute() throws BuildException { getRmic().log("Using WebLogic rmic", Project.MSG_VERBOSE); Commandline cmd = setupRmicCommand(new String[] {"-noexit"}); PrintStream err = System.err; PrintStream out = System.out; PrintStream logstr = new PrintStream(new LogOutputStream(getRmic(), Project.MSG_WARN)); try { System.setOut(logstr); System.setErr(logstr); // Create an instance of the rmic Class c = Class.forName("weblogic.rmic"); Method doRmic = c.getMethod("main", new Class [] { String[].class }); doRmic.invoke(null, new Object[] { }); return true; } catch (ClassNotFoundException ex) { throw new BuildException("Cannot use WebLogic rmic, as it is not available"+ " A common solution is to set the environment variable"+ " CLASSPATH.", getRmic().getLocation() ); } catch (Exception ex) { if (ex instanceof BuildException) { throw (BuildException) ex; } else { throw new BuildException("Error starting WebLogic rmic: ", ex, getRmic().getLocation()); } } finally { System.setErr(err); System.setOut(out); logstr.close(); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/cb6df3b29f3afe2ca591237d1bb5ed31becd337b/WLRmic.java/buggy/src/main/org/apache/tools/ant/taskdefs/rmic/WLRmic.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1836, 1435, 1216, 18463, 288, 3639, 4170, 27593, 7675, 1330, 2932, 7736, 2999, 20556, 6692, 335, 3113, 5420, 18, 11210, 67, 21900, 1769, 3639, 3498, 1369, 1797, 273, 3875, 54, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1836, 1435, 1216, 18463, 288, 3639, 4170, 27593, 7675, 1330, 2932, 7736, 2999, 20556, 6692, 335, 3113, 5420, 18, 11210, 67, 21900, 1769, 3639, 3498, 1369, 1797, 273, 3875, 54, 2...
nodes.add(node);
public void add(Object value, int node) { IntegerArray nodes = (IntegerArray) _index.get(value); if (nodes == null) { nodes = new IntegerArray(); _index.put(value, nodes); } nodes.add(node); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/f4fa39227087699d02ffd202064190469fbb546c/KeyIndex.java/buggy/src/org/apache/xalan/xsltc/dom/KeyIndex.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 921, 460, 16, 509, 756, 13, 288, 3639, 2144, 1076, 2199, 273, 261, 4522, 1076, 13, 389, 1615, 18, 588, 12, 1132, 1769, 3639, 309, 261, 4690, 422, 446, 13, 288, 239...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 12, 921, 460, 16, 509, 756, 13, 288, 3639, 2144, 1076, 2199, 273, 261, 4522, 1076, 13, 389, 1615, 18, 588, 12, 1132, 1769, 3639, 309, 261, 4690, 422, 446, 13, 288, 239...
msgContext.setProperty(Constants.SERVLET_CONTEXT, sessionContext);
msgContext.setProperty(Constants.SERVLET_CONTEXT, servletConfig.getServletContext());
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { MessageContext msgContext = null; OutputStream out = null; try { Object sessionContext = getSessionContext(req); msgContext = createAndSetInitialParamsToMsgCtxt(sessionContext, msgContext, res, req); // adding ServletContext into msgContext; msgContext.setProperty(Constants.SERVLET_CONTEXT, sessionContext); out = res.getOutputStream(); HTTPTransportUtils.processHTTPPostRequest(msgContext, req.getInputStream(), out, req.getContentType(), req.getHeader(HTTPConstants.HEADER_SOAP_ACTION), req.getRequestURL().toString()); Object contextWritten = msgContext.getOperationContext().getProperty(Constants.RESPONSE_WRITTEN); res.setContentType("text/xml; charset=" + msgContext.getProperty(MessageContext.CHARACTER_SET_ENCODING)); if ((contextWritten == null) || !Constants.VALUE_TRUE.equals(contextWritten)) { res.setStatus(HttpServletResponse.SC_ACCEPTED); } } catch (AxisFault e) { if (msgContext != null) { try { handleFault(msgContext, out, e); } catch (AxisFault e2) { log.info(e.getMessage()); } } else { throw new ServletException(e); } } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/63c7c259d2b4288fe5a064f2b4423bbb914acb62/AxisServlet.java/buggy/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 5411, 1216, 16517, 16, 1860, 288, 3639, 2350, 1042, 1234, 1042, 273, 446, 31, 3639, 8962, 596, 273, 446, 31, 3639, 775, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 5411, 1216, 16517, 16, 1860, 288, 3639, 2350, 1042, 1234, 1042, 273, 446, 31, 3639, 8962, 596, 273, 446, 31, 3639, 775, ...
menu.add(quitAction); menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END)); return menu;
ActionContributionItem quitItem = new ActionContributionItem(quitAction); quitItem.setVisible(!"carbon".equals(SWT.getPlatform())); menu.add(quitItem); menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END)); return menu;
private MenuManager createFileMenu() { MenuManager menu = new MenuManager(IDEWorkbenchMessages.Workbench_file, IWorkbenchActionConstants.M_FILE); menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_START)); { // create the New submenu, using the same id for it as the New action String newText = IDEWorkbenchMessages.Workbench_new; String newId = ActionFactory.NEW.getId(); MenuManager newMenu = new MenuManager(newText, newId) { public String getMenuText() { String result = super.getMenuText(); if (newQuickMenu == null) { return result; } String shortCut = newQuickMenu.getShortCutString(); if (shortCut == null) { return result; } return result + "\t" + shortCut; //$NON-NLS-1$ } }; newMenu.add(new Separator(newId)); this.newWizardMenu = new NewWizardMenu(getWindow()); newMenu.add(this.newWizardMenu); newMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); menu.add(newMenu); } menu.add(new GroupMarker(IWorkbenchActionConstants.NEW_EXT)); menu.add(new Separator()); menu.add(closeAction); menu.add(closeAllAction); // menu.add(closeAllSavedAction); menu.add(new GroupMarker(IWorkbenchActionConstants.CLOSE_EXT)); menu.add(new Separator()); menu.add(saveAction); menu.add(saveAsAction); menu.add(saveAllAction); menu.add(revertAction); menu.add(new Separator()); menu.add(moveAction); menu.add(renameAction); menu.add(refreshAction); menu.add(new GroupMarker(IWorkbenchActionConstants.SAVE_EXT)); menu.add(new Separator()); menu.add(printAction); menu.add(new GroupMarker(IWorkbenchActionConstants.PRINT_EXT)); menu.add(new Separator()); menu.add(openWorkspaceAction); menu.add(new GroupMarker(IWorkbenchActionConstants.OPEN_EXT)); menu.add(new Separator()); menu.add(importResourcesAction); menu.add(exportResourcesAction); menu.add(new GroupMarker(IWorkbenchActionConstants.IMPORT_EXT)); menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS)); menu.add(new Separator()); menu.add(propertiesAction); menu.add(ContributionItemFactory.REOPEN_EDITORS.create(getWindow())); menu.add(new GroupMarker(IWorkbenchActionConstants.MRU)); menu.add(new Separator()); menu.add(quitAction); menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END)); return menu; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/010830d6b908e96043852d47cc6f7072717e510c/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 9809, 1318, 21266, 4599, 1435, 288, 3639, 9809, 1318, 3824, 273, 394, 9809, 1318, 12, 10385, 2421, 22144, 5058, 18, 2421, 22144, 67, 768, 16, 467, 2421, 22144, 1803, 2918, 18, 49, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 9809, 1318, 21266, 4599, 1435, 288, 3639, 9809, 1318, 3824, 273, 394, 9809, 1318, 12, 10385, 2421, 22144, 5058, 18, 2421, 22144, 67, 768, 16, 467, 2421, 22144, 1803, 2918, 18, 49, 6...
toolbarWrapper.setVisible(visible);
toolbar.setVisible(visible);
private void toolBarResized(ToolBar toolBar, int newSize) { if (toolbarWrapper != null) { Control ctrl = getControl(); boolean visible = ctrl != null && ctrl.isVisible() && toolbarIsVisible(); toolbarWrapper.setVisible(visible); } presentableAdapter.firePropertyChange(IPresentablePart.PROP_TOOLBAR); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/abba4798cd61db67570963bde98b859b30c12990/ViewPane.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ViewPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5226, 5190, 607, 1235, 12, 6364, 5190, 5226, 5190, 16, 509, 21402, 13, 288, 3639, 309, 261, 18849, 3611, 480, 446, 13, 288, 5411, 8888, 6414, 273, 27174, 5621, 5411, 1250, 6021...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5226, 5190, 607, 1235, 12, 6364, 5190, 5226, 5190, 16, 509, 21402, 13, 288, 3639, 309, 261, 18849, 3611, 480, 446, 13, 288, 5411, 8888, 6414, 273, 27174, 5621, 5411, 1250, 6021...
IPerspectiveDescriptor activePerspectiveDescriptor = null; IWorkbenchSite activeWorkbenchSite = null; IWorkbenchWindow activeWorkbenchWindow = workbench .getActiveWorkbenchWindow(); if (this.activeWorkbenchWindow != activeWorkbenchWindow) { if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.removePageListener(pageListener); this.activeWorkbenchWindow .removePerspectiveListener(perspectiveListener); this.activeWorkbenchWindow.getPartService().removePartListener( partListener); } this.activeWorkbenchWindow = activeWorkbenchWindow; if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.addPageListener(pageListener); this.activeWorkbenchWindow .addPerspectiveListener(perspectiveListener); this.activeWorkbenchWindow.getPartService().addPartListener( partListener); } } if (activeWorkbenchWindow != null) { IWorkbenchPage activeWorkbenchPage = activeWorkbenchWindow .getActivePage(); if (activeWorkbenchPage != null) { activePerspectiveDescriptor = activeWorkbenchPage .getPerspective(); IWorkbenchPart activeWorkbenchPart = activeWorkbenchPage .getActivePart(); if (activeWorkbenchPart != null) activeWorkbenchSite = activeWorkbenchPart.getSite(); } } if (force || !Util.equals(this.activeWorkbenchSite, activeWorkbenchSite) || !Util.equals(this.activeWorkbenchWindow, activeWorkbenchWindow)) { this.activeWorkbenchSite = activeWorkbenchSite; this.activeWorkbenchWindow = activeWorkbenchWindow; Map handlersByCommandId = new HashMap(); for (Iterator iterator = handlerSubmissionsByCommandId.entrySet() .iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String commandId = (String) entry.getKey(); List handlerSubmissions = (List) entry.getValue(); HandlerSubmission bestHandlerSubmission = null; boolean conflict = false; for (int i = 0; i < handlerSubmissions.size(); i++) { HandlerSubmission handlerSubmission = (HandlerSubmission) handlerSubmissions .get(i); IWorkbenchSite activeWorkbenchSite2 = handlerSubmission .getActiveWorkbenchSite(); if (activeWorkbenchSite2 != null && activeWorkbenchSite2 != activeWorkbenchSite) continue; IWorkbenchWindow activeWorkbenchWindow2 = handlerSubmission .getActiveWorkbenchWindow(); if (activeWorkbenchWindow2 != null && activeWorkbenchWindow2 != activeWorkbenchWindow) continue; if (bestHandlerSubmission == null) bestHandlerSubmission = handlerSubmission; else { int compareTo = Util.compare(activeWorkbenchSite2, bestHandlerSubmission.getActiveWorkbenchSite()); if (compareTo == 0) { compareTo = Util.compare(activeWorkbenchWindow2, bestHandlerSubmission .getActiveWorkbenchWindow()); if (compareTo == 0) compareTo = Util.compare(-handlerSubmission .getPriority(), -bestHandlerSubmission .getPriority()); } if (compareTo > 0) { conflict = false; bestHandlerSubmission = handlerSubmission; } else if (compareTo == 0) conflict = true; } } if (bestHandlerSubmission != null && !conflict) handlersByCommandId.put(commandId, bestHandlerSubmission.getHandler()); } ((CommandManager) mutableCommandManager) .setHandlersByCommandId(handlersByCommandId); }
processHandlerSubmissions(force, workbench.getDisplay() .getActiveShell());
private void processHandlerSubmissions(boolean force) { IPerspectiveDescriptor activePerspectiveDescriptor = null; IWorkbenchSite activeWorkbenchSite = null; IWorkbenchWindow activeWorkbenchWindow = workbench .getActiveWorkbenchWindow(); if (this.activeWorkbenchWindow != activeWorkbenchWindow) { if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.removePageListener(pageListener); this.activeWorkbenchWindow .removePerspectiveListener(perspectiveListener); this.activeWorkbenchWindow.getPartService().removePartListener( partListener); } this.activeWorkbenchWindow = activeWorkbenchWindow; if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.addPageListener(pageListener); this.activeWorkbenchWindow .addPerspectiveListener(perspectiveListener); this.activeWorkbenchWindow.getPartService().addPartListener( partListener); } } if (activeWorkbenchWindow != null) { IWorkbenchPage activeWorkbenchPage = activeWorkbenchWindow .getActivePage(); if (activeWorkbenchPage != null) { activePerspectiveDescriptor = activeWorkbenchPage .getPerspective(); IWorkbenchPart activeWorkbenchPart = activeWorkbenchPage .getActivePart(); if (activeWorkbenchPart != null) activeWorkbenchSite = activeWorkbenchPart.getSite(); } } if (force || !Util.equals(this.activeWorkbenchSite, activeWorkbenchSite) || !Util.equals(this.activeWorkbenchWindow, activeWorkbenchWindow)) { this.activeWorkbenchSite = activeWorkbenchSite; this.activeWorkbenchWindow = activeWorkbenchWindow; Map handlersByCommandId = new HashMap(); for (Iterator iterator = handlerSubmissionsByCommandId.entrySet() .iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String commandId = (String) entry.getKey(); List handlerSubmissions = (List) entry.getValue(); HandlerSubmission bestHandlerSubmission = null; boolean conflict = false; for (int i = 0; i < handlerSubmissions.size(); i++) { HandlerSubmission handlerSubmission = (HandlerSubmission) handlerSubmissions .get(i); IWorkbenchSite activeWorkbenchSite2 = handlerSubmission .getActiveWorkbenchSite(); if (activeWorkbenchSite2 != null && activeWorkbenchSite2 != activeWorkbenchSite) continue; IWorkbenchWindow activeWorkbenchWindow2 = handlerSubmission .getActiveWorkbenchWindow(); if (activeWorkbenchWindow2 != null && activeWorkbenchWindow2 != activeWorkbenchWindow) continue; if (bestHandlerSubmission == null) bestHandlerSubmission = handlerSubmission; else { int compareTo = Util.compare(activeWorkbenchSite2, bestHandlerSubmission.getActiveWorkbenchSite()); if (compareTo == 0) { compareTo = Util.compare(activeWorkbenchWindow2, bestHandlerSubmission .getActiveWorkbenchWindow()); if (compareTo == 0) compareTo = Util.compare(-handlerSubmission .getPriority(), -bestHandlerSubmission .getPriority()); } if (compareTo > 0) { conflict = false; bestHandlerSubmission = handlerSubmission; } else if (compareTo == 0) conflict = true; } } if (bestHandlerSubmission != null && !conflict) handlersByCommandId.put(commandId, bestHandlerSubmission.getHandler()); } ((CommandManager) mutableCommandManager) .setHandlersByCommandId(handlersByCommandId); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/WorkbenchCommandSupport.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/ws/WorkbenchCommandSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 1503, 1676, 7300, 12, 6494, 2944, 13, 288, 3639, 2971, 414, 16772, 3187, 2695, 14781, 16772, 3187, 273, 446, 31, 3639, 467, 2421, 22144, 4956, 2695, 2421, 22144, 4956, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 1503, 1676, 7300, 12, 6494, 2944, 13, 288, 3639, 2971, 414, 16772, 3187, 2695, 14781, 16772, 3187, 273, 446, 31, 3639, 467, 2421, 22144, 4956, 2695, 2421, 22144, 4956, 273,...
if (group != null && !usedGroups.containsKey(new Integer(group.getID()))) { groupID = new Integer(group.getID()); groupData = (CategoryGroupData) groupsMap.get(groupID); if (groupData == null) { groupData = createCategoryGroupData(group); groupsMap.put(groupID, groupData); } catData = createCategoryData(category, categoriesMap); catData.setCategoryGroup(groupData); groupData.getCategories().add(catData); results.add(groupData);
if (group != null) { if (!usedGroups.containsKey(new Integer(group.getID()))) { groupID = new Integer(group.getID()); groupData = (CategoryGroupData) groupsMap.get(groupID); if (groupData == null) { groupData = createCategoryGroupData(group); groupsMap.put(groupID, groupData); } catData = createCategoryData(category, categoriesMap); catData.setCategoryGroup(groupData); groupData.getCategories().add(catData); results.add(groupData); }
public static List fillICGHierarchyAvailable(List categories, int imgID, int userID) { ArrayList results = new ArrayList(), finalResults = new ArrayList(); Iterator i = categories.iterator(), j; Category category; CategoryGroup group; CategoryGroupData groupData = null; CategoryData catData; Classification classif; Integer groupID; HashMap groupsMap = new HashMap(), categoriesMap = new HashMap(); HashMap usedGroups = new HashMap(); boolean in; while (i.hasNext()) { in = false; category = (Category) i.next(); group = category.getCategoryGroup(); j = category.getClassificationList().iterator(); while (j.hasNext()) { classif = (Classification) j.next(); if (classif.isValid().equals(Boolean.TRUE) && classif.getModuleExecution().getExperimenter().getID() == userID && classif.getImage().getID() == imgID) { in = true; if (group != null) usedGroups.put(new Integer(group.getID()), group); } } if (!in) { //the image has been classified in the category. if (group != null && !usedGroups.containsKey(new Integer(group.getID()))) { groupID = new Integer(group.getID()); groupData = (CategoryGroupData) groupsMap.get(groupID); if (groupData == null) { groupData = createCategoryGroupData(group); groupsMap.put(groupID, groupData); } //Create the category catData = createCategoryData(category, categoriesMap); catData.setCategoryGroup(groupData); groupData.getCategories().add(catData); results.add(groupData); } else { //orphan category, shouldn't happen catData = createCategoryData(category, categoriesMap); results.add(catData); } } } //Copy all elements of results into finalResults finalResults.addAll(results); i = results.iterator(); Object userObject; while (i.hasNext()) { userObject = i.next(); if (userObject instanceof CategoryGroupData) { groupData = (CategoryGroupData) userObject; if (usedGroups.containsKey(new Integer(groupData.getID()))) finalResults.remove(groupData); } } return finalResults; }
13273 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13273/59f74816fa77a67f314a1ab6fd2bff7092c3761e/HierarchyMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/HierarchyMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 987, 3636, 2871, 43, 12074, 5268, 12, 682, 6477, 16, 509, 3774, 734, 16, 4766, 2398, 509, 16299, 13, 565, 288, 3639, 2407, 1686, 273, 394, 2407, 9334, 727, 3447, 273, 394, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 3636, 2871, 43, 12074, 5268, 12, 682, 6477, 16, 509, 3774, 734, 16, 4766, 2398, 509, 16299, 13, 565, 288, 3639, 2407, 1686, 273, 394, 2407, 9334, 727, 3447, 273, 394, 24...
WorkbenchPlugin.log(msg, new Status(Status.ERROR, PlatformUI.PLUGIN_ID,0, msg, e));
WorkbenchPlugin.log(msg, new Status(Status.ERROR, PlatformUI.PLUGIN_ID, 0, msg, e));
private void forceOpenPerspective() { if (getWorkbenchWindowCount() == 0) { // Something is wrong, there should be at least // one workbench window open by now. return; } String perspId = null; for (int i = 0; i < commandLineArgs.length - 1; i++) { if (commandLineArgs[i].equalsIgnoreCase("-perspective")) { //$NON-NLS-1$ perspId = commandLineArgs[i+1]; break; } } if (perspId == null) return; IPerspectiveDescriptor desc = getPerspectiveRegistry().findPerspectiveWithId(perspId); if (desc == null) return; IWorkbenchWindow win = getActiveWorkbenchWindow(); if (win == null) win = getWorkbenchWindows()[0]; try { showPerspective(perspId, win); } catch (WorkbenchException e) { String msg = "Workbench exception showing specified command line perspective on startup."; //$NON-NLS-1$ WorkbenchPlugin.log(msg, new Status(Status.ERROR, PlatformUI.PLUGIN_ID,0, msg, e)); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/25425fe3505bc6f62e9021f3f79e33d77a752241/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2944, 3678, 14781, 16772, 1435, 288, 202, 202, 430, 261, 588, 2421, 22144, 3829, 1380, 1435, 422, 374, 13, 288, 1082, 202, 759, 29116, 353, 7194, 16, 1915, 1410, 506, 622,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2944, 3678, 14781, 16772, 1435, 288, 202, 202, 430, 261, 588, 2421, 22144, 3829, 1380, 1435, 422, 374, 13, 288, 1082, 202, 759, 29116, 353, 7194, 16, 1915, 1410, 506, 622,...
static String readLine(Reader f) throws IOException {
static public String readLine(Reader f) throws IOException {
static String readLine(Reader f) throws IOException { StringBuffer s=new StringBuffer(); for ( int i=0; i<MAXBUF; i++ ) { int c=f.read(); if ( c=='\0'||c=='\n'||c==-1|| (c=='\r'&&'\n'==f.read()) ) { if ( i==0 && c==-1 ) return null; break; } s.append(c); } return s.toString(); }
14414 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14414/b9575731aa8c78d3dcdfc6f61ed88ee1fc0a482a/IO.java/buggy/cycmoo/lang/IO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 514, 12273, 12, 2514, 284, 13, 1216, 1860, 288, 3639, 6674, 272, 33, 2704, 6674, 5621, 3639, 364, 261, 509, 277, 33, 20, 31, 277, 32, 6694, 3000, 42, 31, 277, 9904, 262, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1071, 514, 12273, 12, 2514, 284, 13, 1216, 1860, 288, 3639, 6674, 272, 33, 2704, 6674, 5621, 3639, 364, 261, 509, 277, 33, 20, 31, 277, 32, 6694, 3000, 42, 31, 277, 9904, 262, 28...
new Class[] {String.class});
new Class[] {String.class}, new Object[] {"helloWorld"});
public void testDeclinesAccessUsingCreateFromClass() throws Exception { UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken("Test", "Password", new GrantedAuthority[] {new GrantedAuthorityImpl("ROLE_NOT_HELD")}); MethodInvocation mi = MethodInvocationUtils.createFromClass(ITargetObject.class, "makeLowerCase", new Class[] {String.class}); MethodSecurityInterceptor interceptor = makeSecurityInterceptor(); MethodInvocationPrivilegeEvaluator mipe = new MethodInvocationPrivilegeEvaluator(); mipe.setSecurityInterceptor(interceptor); mipe.afterPropertiesSet(); assertFalse(mipe.isAllowed(mi, token)); }
29994 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29994/58d3f0c56f6137f58a23cf59f22701e6d79b743a/MethodInvocationPrivilegeEvaluatorTests.java/clean/core/src/test/java/org/acegisecurity/intercept/method/MethodInvocationPrivilegeEvaluatorTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3456, 1465, 1862, 7736, 1684, 1265, 797, 1435, 3639, 1216, 1185, 288, 3639, 11313, 3913, 6492, 1345, 1147, 273, 394, 11313, 3913, 6492, 1345, 2932, 4709, 3113, 315, 3913, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3456, 1465, 1862, 7736, 1684, 1265, 797, 1435, 3639, 1216, 1185, 288, 3639, 11313, 3913, 6492, 1345, 1147, 273, 394, 11313, 3913, 6492, 1345, 2932, 4709, 3113, 315, 3913, 3...
return fatalException; }
return fatalException; }
public synchronized Exception getException() { return fatalException; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/RunAnalysisDialog.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/RunAnalysisDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1185, 17669, 1435, 288, 202, 2463, 10081, 503, 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, ...
[ 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, 3852, 1185, 17669, 1435, 288, 202, 2463, 10081, 503, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
protected int prepScalarStream (boolean chainedWithSameCorrelator,
private int prepScalarStream( boolean chainedWithSameCorrelator,
protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; if (writeNullByte) nullIndicatorSize = 1; extendedLengthByteCount = calculateExtendedLengthByteCount (leftToRead + 4 + nullIndicatorSize); // flush the existing DSS segment if this stream will not fit in the send buffer if (10 + extendedLengthByteCount + nullIndicatorSize + leftToRead + offset > DssConstants.MAX_DSS_LENGTH) { try { // The existing DSS segment was finalized by endDss; all // we have to do is send it across the wire. sendBytes(agent.getOutputStream()); } catch (java.io.IOException e) { agent.markCommunicationsFailure ("DDMWriter.writeScalarStream()", "OutputStream.flush()", e.getMessage(),"*"); } } // buildStreamDss should not call ensure length. beginDss(chainedWithSameCorrelator, DssConstants.GDSFMT_OBJDSS); if (extendedLengthByteCount > 0) { // method should never ensure length writeLengthCodePoint (0x8004 + extendedLengthByteCount, codePoint); if (writeNullByte) writeExtendedLengthBytes (extendedLengthByteCount, leftToRead + 1); else writeExtendedLengthBytes (extendedLengthByteCount, leftToRead); } else { if (writeNullByte) writeLengthCodePoint (leftToRead + 4 + 1, codePoint); else writeLengthCodePoint (leftToRead + 4, codePoint); } // write the null byte, if necessary if (writeNullByte) writeByte(0x0); int bytesToRead; if (writeNullByte) bytesToRead = Math.min (leftToRead, DssConstants.MAX_DSS_LENGTH - 6 - 4 - 1 - extendedLengthByteCount); else bytesToRead = Math.min (leftToRead, DssConstants.MAX_DSS_LENGTH - 6 - 4 - extendedLengthByteCount); return bytesToRead; }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/f3ab04f35dde0f944acdac272f2e4742f65a89d0/DDMWriter.java/clean/java/drda/org/apache/derby/impl/drda/DDMWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 509, 13237, 13639, 1228, 12, 1250, 20269, 1190, 8650, 6217, 2878, 639, 16, 4766, 282, 509, 18614, 16, 4766, 282, 1250, 1045, 2041, 3216, 16, 4766, 282, 509, 2002, 23321, 13, 1216, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 13237, 13639, 1228, 12, 1250, 20269, 1190, 8650, 6217, 2878, 639, 16, 4766, 282, 509, 18614, 16, 4766, 282, 1250, 1045, 2041, 3216, 16, 4766, 282, 509, 2002, 23321, 13, 1216, 1...
disjunct.addField(trueDisjunct); SootField falseDisjunct = new SootField("falseD", disjunct.getType(), Modifier.PUBLIC | Modifier.FINAL | Modifier.STATIC); disjunct.addField(falseDisjunct);
disjunct.addField(trueDisjunct); SootField falseDisjunct = new SootField("falseD", disjunct.getType(), Modifier.PUBLIC | Modifier.FINAL | Modifier.STATIC); disjunct.addField(falseDisjunct);
protected void addDisjunctClassMembers() { // static singleton fields for true/false disjuncts SootField trueDisjunct= new SootField("trueD", disjunct.getType(), Modifier.PUBLIC | Modifier.FINAL | Modifier.STATIC); disjunct.addField(trueDisjunct); SootField falseDisjunct = new SootField("falseD", disjunct.getType(), Modifier.PUBLIC | Modifier.FINAL | Modifier.STATIC); disjunct.addField(falseDisjunct); // the remainin fields depend upon the tracematch and its variables. For each tracematch // formal X, X$isBound (do we have a binding for X?), not$X (which values X mustn't take // -- a set, and null if X is bound) and var$X (the value X is bound to, or null if X is // not bound strongly (0 if X is primitive)). Also, for non-primitive bindings, there is // a field weak$X storing a possible weak binding to X. List varNames = curTraceMatch.getFormalNames(); Iterator varIt = varNames.iterator(); while(varIt.hasNext()) { String varName = (String)varIt.next(); SootField curField = new SootField("var$" + varName, curTraceMatch.bindingType(varName), Modifier.PUBLIC); disjunct.addField(curField); if(!abc.main.Debug.v().noNegativeBindings) { curField = new SootField("not$" + varName, setType, Modifier.PUBLIC); disjunct.addField(curField); } curField = new SootField(varName + "$isBound", BooleanType.v(), Modifier.PUBLIC); disjunct.addField(curField); if(!curTraceMatch.isPrimitive(varName)) { curField = new SootField("weak$" + varName, curTraceMatch.weakBindingClass(varName).getType(), Modifier.PUBLIC); disjunct.addField(curField); } } }
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/6bfdd4698fa4edb661b1e45946e7d37b991d8275/ClassGenHelper.java/buggy/aop/abc/src/abc/tm/weaving/weaver/ClassGenHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 1669, 78, 6931, 797, 6918, 1435, 288, 202, 202, 759, 760, 6396, 1466, 364, 638, 19, 5743, 1015, 78, 6931, 87, 3639, 348, 1632, 974, 638, 1669, 78, 6931, 33, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 1669, 78, 6931, 797, 6918, 1435, 288, 202, 202, 759, 760, 6396, 1466, 364, 638, 19, 5743, 1015, 78, 6931, 87, 3639, 348, 1632, 974, 638, 1669, 78, 6931, 33, 394, ...
private MultiSourceTypeFactory getParentTypedFactory( final String role )
private MultiSourceTypeFactory getParentTypedFactory( final Class role )
private MultiSourceTypeFactory getParentTypedFactory( final String role ) { if( null != m_parent ) { return m_parent.lookupFactory( role ); } else { return null; } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0fec0f3137ece3e3543aa645162fb1b925d26a61/DefaultTypeManager.java/buggy/proposal/myrmidon/src/java/org/apache/myrmidon/components/type/DefaultTypeManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5991, 1830, 559, 1733, 5089, 11985, 1733, 12, 727, 1659, 2478, 262, 565, 288, 3639, 309, 12, 446, 480, 312, 67, 2938, 262, 3639, 288, 5411, 327, 312, 67, 2938, 18, 8664, 1733, 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, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 5991, 1830, 559, 1733, 5089, 11985, 1733, 12, 727, 1659, 2478, 262, 565, 288, 3639, 309, 12, 446, 480, 312, 67, 2938, 262, 3639, 288, 5411, 327, 312, 67, 2938, 18, 8664, 1733, 12,...
EnterSelectionDialog esd = new EnterSelectionDialog(shell, props, files, Messages.getString("TextFileOutputDialog.SelectOutputFiles.DialogTitle"), Messages.getString("TextFileOutputDialog.SelectOutputFiles.DialogMessage"));
EnterSelectionDialog esd = new EnterSelectionDialog(shell, files, Messages.getString("TextFileOutputDialog.SelectOutputFiles.DialogTitle"), Messages.getString("TextFileOutputDialog.SelectOutputFiles.DialogMessage"));
public void widgetSelected(SelectionEvent e) { TextFileOutputMeta tfoi = new TextFileOutputMeta(); getInfo(tfoi); String files[] = tfoi.getFiles(); if (files!=null && files.length>0) { EnterSelectionDialog esd = new EnterSelectionDialog(shell, props, files, Messages.getString("TextFileOutputDialog.SelectOutputFiles.DialogTitle"), Messages.getString("TextFileOutputDialog.SelectOutputFiles.DialogMessage")); esd.setViewOnly(); esd.open(); } else { MessageBox mb = new MessageBox(shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage(Messages.getString("TextFileOutputDialog.NoFilesFound.DialogMessage")); mb.setText(Messages.getString("System.DialogTitle.Error")); mb.open(); } }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/17b32f2dbf12dc41ff7c6220abf449aac09d1a04/TextFileOutputDialog.java/clean/src/be/ibridge/kettle/trans/step/textfileoutput/TextFileOutputDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 4697, 202, 95, 6862, 202, 1528, 812, 1447, 2781, 268, 617, 77, 273, 394, 3867, 812, 1447, 2781, 5621, 6862, 202, 588, 966, 12, 88, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 4697, 202, 95, 6862, 202, 1528, 812, 1447, 2781, 268, 617, 77, 273, 394, 3867, 812, 1447, 2781, 5621, 6862, 202, 588, 966, 12, 88, ...
throw new Error("not implemented");
return null;
public String getBaseURI() { throw new Error("not implemented"); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/clean/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 8297, 3098, 1435, 225, 288, 565, 327, 446, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 282, 1071, 514, 8297, 3098, 1435, 225, 288, 565, 327, 446, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
public nsIComponentRegistrar getComponentRegistrar() throws XPCOMException;
nsIComponentRegistrar getComponentRegistrar() throws XPCOMException;
public nsIComponentRegistrar getComponentRegistrar() throws XPCOMException;
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/7018c6550a927ea68b67d886158e6ea9107de593/IXPCOM.java/buggy/extensions/java/xpcom/interfaces/IXPCOM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3153, 45, 1841, 30855, 10322, 30855, 1435, 1216, 1139, 3513, 1872, 503, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3153, 45, 1841, 30855, 10322, 30855, 1435, 1216, 1139, 3513, 1872, 503, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
match(input,36,FOLLOW_36_in_word3083); word="end";
match(input,35,FOLLOW_35_in_word3259); if (failed) return word; if ( backtracking==0 ) { word="end"; }
public String word() throws RecognitionException { String word = null; Token id=null; Token str=null; word = null; try { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1248:4: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt45=11; switch ( input.LA(1) ) { case ID: alt45=1; break; case 29: alt45=2; break; case 74: alt45=3; break; case 38: alt45=4; break; case 35: alt45=5; break; case 42: alt45=6; break; case 43: alt45=7; break; case 39: alt45=8; break; case RHS: alt45=9; break; case 36: alt45=10; break; case STRING: alt45=11; break; default: NoViableAltException nvae = new NoViableAltException("1244:1: word returns [String word] : (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING );", 45, 0, input); throw nvae; } switch (alt45) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1248:4: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word2991); word=id.getText(); } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1249:4: 'import' { match(input,29,FOLLOW_29_in_word3003); word="import"; } break; case 3 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1250:4: 'use' { match(input,74,FOLLOW_74_in_word3012); word="use"; } break; case 4 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1251:4: 'rule' { match(input,38,FOLLOW_38_in_word3024); word="rule"; } break; case 5 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1252:4: 'query' { match(input,35,FOLLOW_35_in_word3035); word="query"; } break; case 6 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1253:4: 'salience' { match(input,42,FOLLOW_42_in_word3045); word="salience"; } break; case 7 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1254:5: 'no-loop' { match(input,43,FOLLOW_43_in_word3053); word="no-loop"; } break; case 8 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1255:4: 'when' { match(input,39,FOLLOW_39_in_word3061); word="when"; } break; case 9 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1256:4: 'then' { match(input,RHS,FOLLOW_RHS_in_word3072); word="then"; } break; case 10 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1257:4: 'end' { match(input,36,FOLLOW_36_in_word3083); word="end"; } break; case 11 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1258:4: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word3097); word=getString(str); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/6b34eb3854fdc06f31034567ebdf72ff28c6c11a/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2076, 1435, 1216, 9539, 288, 6647, 514, 2076, 273, 446, 31, 3639, 3155, 612, 33, 2011, 31, 3639, 3155, 609, 33, 2011, 31, 1171, 202, 202, 1095, 273, 446, 31, 540, 202, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2076, 1435, 1216, 9539, 288, 6647, 514, 2076, 273, 446, 31, 3639, 3155, 612, 33, 2011, 31, 3639, 3155, 609, 33, 2011, 31, 1171, 202, 202, 1095, 273, 446, 31, 540, 202, 3639, ...
{ lexicalHandler.startCDATA (); }
{ lexicalHandler.startCDATA(); }
void startCDATA () throws SAXException { lexicalHandler.startCDATA (); }
56365 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56365/7fb7568e63c3fe14af521de4699cb37898923ca7/SAXDriver.java/clean/libjava/gnu/xml/aelfred2/SAXDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 787, 18375, 1832, 565, 1216, 14366, 565, 288, 202, 4149, 1706, 1503, 18, 1937, 18375, 261, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 787, 18375, 1832, 565, 1216, 14366, 565, 288, 202, 4149, 1706, 1503, 18, 1937, 18375, 261, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
IMacroContextInfo info = getInfo(); if(info != null) info = info.getNext(); return get(fName,info);
return new MacroDescriptor(fName,getInfo(),getSupplierNum()+1);
public MacroDescriptor getNext(){ IMacroContextInfo info = getInfo(); if(info != null) info = info.getNext(); return get(fName,info); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/fa2c1a50ab37cebc7024ad9bb983e8d53b4f4b1c/DefaultMacroSubstitutor.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/macros/DefaultMacroSubstitutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 31203, 3187, 6927, 1435, 95, 1082, 202, 3445, 1077, 303, 1042, 966, 1123, 273, 17142, 5621, 1082, 202, 430, 12, 1376, 480, 446, 13, 9506, 202, 1376, 273, 1123, 18, 588, 2134, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 31203, 3187, 6927, 1435, 95, 1082, 202, 3445, 1077, 303, 1042, 966, 1123, 273, 17142, 5621, 1082, 202, 430, 12, 1376, 480, 446, 13, 9506, 202, 1376, 273, 1123, 18, 588, 2134, ...
public void visit(PANode node) { _I.addEdge(v, node); remaining_nodes.add(node); }
public final void visit(PANode node){ if(remaining_nodes.add(node)) worklist.add(node); }
public void visit(PANode node) { _I.addEdge(v, node); remaining_nodes.add(node); }
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/9bee8905ff9b74123ce55088f4b5316d61c1ba6d/PointsToGraph.java/buggy/Analysis/PointerAnalysis/PointsToGraph.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 1071, 918, 3757, 12, 4066, 907, 756, 13, 288, 9506, 377, 389, 45, 18, 1289, 6098, 12, 90, 16, 756, 1769, 9506, 377, 4463, 67, 4690, 18, 1289, 12, 2159, 1769, 9506, 289, 2, 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, 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, 4697, 1071, 918, 3757, 12, 4066, 907, 756, 13, 288, 9506, 377, 389, 45, 18, 1289, 6098, 12, 90, 16, 756, 1769, 9506, 377, 4463, 67, 4690, 18, 1289, 12, 2159, 1769, 9506, 289, 2, -100, -100...
Splitter splitter = (Splitter)westComponent;
Splitter splitter = (Splitter) westComponent;
public void addLayoutComponent(String name, Component comp) { super.addLayoutComponent(name, comp); comp.setSize(comp.getPreferredSize()); Component parent = comp.getParent(); if (parent instanceof Container) { Container container = (Container)parent; int componentPosition = getComponentPosition(comp); int componentCount = container.getComponentCount(); if (comp instanceof Splitter) { Splitter splitter = (Splitter)comp; splitter.addMouseListener(splitterMouseListener); if (componentPosition > 0) { Component westComponent = container.getComponent(componentPosition-1); if (!(westComponent instanceof Splitter)) { splitter.registerComponent(Splitter.WEST, westComponent); } } if (componentPosition < componentCount-1) { Component eastComponent = container.getComponent(componentPosition+1); if (!(eastComponent instanceof Splitter)) { splitter.registerComponent(Splitter.EAST, eastComponent); } } } else { if (componentPosition > 0) { Component westComponent = container.getComponent(componentPosition-1); if (westComponent instanceof Splitter) { Splitter splitter = (Splitter)westComponent; splitter.registerComponent(Splitter.EAST, comp); } } if (componentPosition < componentCount-1) { Component eastComponent = container.getComponent(componentPosition+1); if (eastComponent instanceof Splitter) { Splitter splitter = (Splitter)eastComponent; splitter.registerComponent(Splitter.WEST, comp); } } } } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/SplitterLayout.java/clean/src_new/org/argouml/swingext/SplitterLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 3744, 1841, 12, 780, 508, 16, 5435, 1161, 13, 288, 3639, 2240, 18, 1289, 3744, 1841, 12, 529, 16, 1161, 1769, 3639, 1161, 18, 542, 1225, 12, 2919, 18, 588, 16028, 1225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 3744, 1841, 12, 780, 508, 16, 5435, 1161, 13, 288, 3639, 2240, 18, 1289, 3744, 1841, 12, 529, 16, 1161, 1769, 3639, 1161, 18, 542, 1225, 12, 2919, 18, 588, 16028, 1225, ...
FileReader fr = new FileReader(fileName[4]);
File file = new File(fileName[4]); InputStream fileIS = new FileInputStream(file); Reader fr = new InputStreamReader(fileIS, "US-ASCII");
private static void clobNegativeTest_Derby265(Connection conn) throws SQLException, FileNotFoundException,IOException { System.out.println(START + "clobNegativeTest_Derby265"); // basically setup the tables for clob Statement s = conn.createStatement(); s.execute("create table \"MAPS\"(MAP_ID int, MAP_NAME varchar(20),REGION varchar(20),AREA varchar(20), PHOTO_FORMAT varchar(20),PICTURE clob(2G))"); conn.setAutoCommit(false); PreparedStatement ps = conn.prepareStatement("insert into \"MAPS\" values(?,?,?,?,?,?)"); for (int i = 0; i < 3; i++) { FileReader fr = new FileReader(fileName[4]); ps.setInt(1, i); ps.setString(2, "x" + i); ps.setString(3, "abc"); ps.setString(4, "abc"); ps.setString(5, "abc"); ps.setCharacterStream(6, new java.io.BufferedReader(fr),300000); ps.executeUpdate(); fr.close(); } conn.commit(); conn.setAutoCommit(true); System.out.println("-----------------------------"); s = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); s.execute("SELECT \"MAP_ID\", \"MAP_NAME\", \"REGION\", \"AREA\", \"PHOTO_FORMAT\", \"PICTURE\" FROM \"MAPS\""); ResultSet rs1 = s.getResultSet(); Statement s2 = conn.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); s2.executeQuery("SELECT \"MAP_ID\", \"MAP_NAME\", \"REGION\", \"AREA\", \"PHOTO_FORMAT\", \"PICTURE\" FROM \"MAPS\""); ResultSet rs2 = s2.getResultSet(); rs2.next(); Clob b2 = rs2.getClob(6); // should be fine rs1.next(); Clob b1 = rs1.getClob(6); try { rs1.close(); // this commits the transaction rs2.next(); rs2.getClob(6); // no longer valid } catch (SQLException sqle) { String sqlstate = sqle.getSQLState(); boolean expected = (sqlstate != null && (sqlstate.equals("XJ073") || sqlstate.equals("XCL30"))); TestUtil.dumpSQLExceptions(sqle,expected); } finally { rs2.close(); s2.close(); s.close(); ps.close(); } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/bb5e9caf5fc30d76d31cef76adc5c9f13368ad06/blobclob4BLOB.java/clean/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/blobclob4BLOB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1219, 70, 14959, 4709, 67, 12041, 1637, 30281, 12, 1952, 1487, 13, 5411, 1216, 6483, 16, 13707, 16, 14106, 288, 377, 202, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 71...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 1219, 70, 14959, 4709, 67, 12041, 1637, 30281, 12, 1952, 1487, 13, 5411, 1216, 6483, 16, 13707, 16, 14106, 288, 377, 202, 3163, 18, 659, 18, 8222, 12, 7570, 397, 315, 71...
((EventTarget)doc).addEventListener("SVGUnload", l, false); ctx.setUnloadListener(l);
EventTarget target = (EventTarget)doc; target.addEventListener("SVGUnload", l, false); ctx.storeEventListener(target, "SVGUnload", l, false);
public static void addGVTListener(BridgeContext ctx, Document doc) { UserAgent ua = ctx.getUserAgent(); if (ua != null) { EventDispatcher dispatcher = ua.getEventDispatcher(); if (dispatcher != null) { final Listener listener = new Listener(ctx, ua); dispatcher.addGraphicsNodeMouseListener(listener); // add an unload listener on the SVGDocument to remove // that listener for dispatching events EventListener l = new GVTUnloadListener(dispatcher, listener); ((EventTarget)doc).addEventListener("SVGUnload", l, false); ctx.setUnloadListener(l); } } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/8ac50fee179d081e2ee65da876929f35b7a942d4/BridgeEventSupport.java/buggy/sources/org/apache/batik/bridge/BridgeEventSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 527, 25269, 56, 2223, 12, 13691, 1042, 1103, 16, 4319, 997, 13, 288, 3639, 21917, 10165, 273, 1103, 18, 588, 12276, 5621, 3639, 309, 261, 11886, 480, 446, 13, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 527, 25269, 56, 2223, 12, 13691, 1042, 1103, 16, 4319, 997, 13, 288, 3639, 21917, 10165, 273, 1103, 18, 588, 12276, 5621, 3639, 309, 261, 11886, 480, 446, 13, 288, 5411, ...
metadata.enableElementID( );
public SessionHandle getSessionHandle( ) { if ( sessionHandle == null ) { sessionHandle = new DesignEngine( new DesignConfig( ) ) .newSessionHandle( ULocale.getDefault( ) ); IMetaDataDictionary metadata = DEUtil.getMetaDataDictionary( ); metadata.enableElementID( ); } sessionHandle.activate( ); return sessionHandle; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2ebc37cd501a6a4eed154c9429a519694a531cb2/SessionHandleAdapter.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/model/SessionHandleAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3877, 3259, 7183, 3259, 12, 262, 202, 95, 202, 202, 430, 261, 1339, 3259, 422, 446, 262, 202, 202, 95, 1082, 202, 3184, 3259, 273, 394, 29703, 4410, 12, 394, 29703, 809, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3877, 3259, 7183, 3259, 12, 262, 202, 95, 202, 202, 430, 261, 1339, 3259, 422, 446, 262, 202, 202, 95, 1082, 202, 3184, 3259, 273, 394, 29703, 4410, 12, 394, 29703, 809, 12, ...
Logger.minor(this, "" + (System.currentTimeMillis() % 60000) + " " + _sock.getLocalPort() + " <- "
Logger.minor(this, "" + (System.currentTimeMillis() % 60000) + ' ' + _sock.getLocalPort() + " <- "
public void checkFilters(Message m) { if ((m.getSource()) instanceof PeerNode) { ((PeerNode)m.getSource()).addToLocalNodeReceivedMessagesFromStatistic(m); } boolean matched = false; if ((!(m.getSpec().equals(DMT.packetTransmit))) && logMINOR) { if ((m.getSpec().equals(DMT.ping) || m.getSpec().equals(DMT.pong)) && Logger.shouldLog(Logger.DEBUG, this)) { Logger.debug(this, "" + (System.currentTimeMillis() % 60000) + " " + _sock.getLocalPort() + " <- " + m.getSource() + " : " + m); } else { Logger.minor(this, "" + (System.currentTimeMillis() % 60000) + " " + _sock.getLocalPort() + " <- " + m.getSource() + " : " + m); } } synchronized (_filters) { for (ListIterator i = _filters.listIterator(); i.hasNext();) { MessageFilter f = (MessageFilter) i.next(); if (f.match(m)) { matched = true; f.setMessage(m); synchronized (f) { i.remove(); f.notify(); } if(logMINOR) Logger.minor(this, "Matched: "+f); break; // Only one match permitted per message } } } // Feed unmatched messages to the dispatcher if ((!matched) && (_dispatcher != null)) { try { if(logMINOR) Logger.minor(this, "Feeding to dispatcher: "+m); matched = _dispatcher.handleMessage(m); } catch (Throwable t) { Logger.error(this, "Dispatcher threw "+t, t); } } // Keep the last few _unclaimed messages around in case the intended receiver isn't receiving yet if (!matched) { if(logMINOR) Logger.minor(this, "Unclaimed: "+m); /** Check filters and then add to _unmatched is ATOMIC * It has to be atomic, because otherwise we can get a * race condition that results in timeouts on MFs. * * Specifically: * - Thread A receives packet * - Thread A checks filters. It doesn't match any. * - Thread A feeds to Dispatcher. * - Thread B creates filter. * - Thread B checks _unmatched. * - Thread B adds filter. * - Thread B sleeps. * - Thread A returns from Dispatcher. Which didn't match. * - Thread A adds to _unmatched. * * OOPS! * The only way to fix this is to have checking the * filters and unmatched be a single atomic operation. * Another race is possible if we merely recheck the * filters after we return from dispatcher, for example. */ synchronized (_filters) { if(logMINOR) Logger.minor(this, "Rechecking filters and adding message"); for (ListIterator i = _filters.listIterator(); i.hasNext();) { MessageFilter f = (MessageFilter) i.next(); if (f.match(m)) { matched = true; f.setMessage(m); synchronized (f) { i.remove(); f.notify(); } if(logMINOR) Logger.minor(this, "Matched: "+f); break; // Only one match permitted per message } } if(!matched) { while (_unclaimed.size() > MAX_UNMATCHED_FIFO_SIZE) { Message removed = (Message)_unclaimed.removeFirst(); long messageLifeTime = System.currentTimeMillis() - removed.localInstantiationTime; if ((removed.getSource()) instanceof PeerNode) { Logger.normal(this, "Dropping unclaimed from "+removed.getSource().getPeer()+", lived "+TimeUtil.formatTime(messageLifeTime, 2, true)+" : "+removed); } else { Logger.normal(this, "Dropping unclaimed, lived "+TimeUtil.formatTime(messageLifeTime, 2, true)+" : "+removed); } } _unclaimed.addLast(m); if(logMINOR) Logger.minor(this, "Done"); } } } }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/62fd59041864b4ed1f43adc676de6bfb5ea977f3/UdpSocketManager.java/clean/src/freenet/io/comm/UdpSocketManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 866, 5422, 12, 1079, 312, 13, 288, 202, 202, 430, 14015, 81, 18, 588, 1830, 10756, 1276, 10669, 907, 13, 202, 202, 95, 1082, 202, 12443, 6813, 907, 13, 81, 18, 588, 183...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 866, 5422, 12, 1079, 312, 13, 288, 202, 202, 430, 14015, 81, 18, 588, 1830, 10756, 1276, 10669, 907, 13, 202, 202, 95, 1082, 202, 12443, 6813, 907, 13, 81, 18, 588, 183...
if (fully_indexed) addQueueNegativeBindingsBodyFullIndex(symbol, this_local, values, sym_binds, indices, state); else addQueueNegativeBindingsBodyPartialIndex(symbol, this_local, values, sym_binds, indices, state);
addQueueNegativeBindingsBodyIndex(symbol, this_local, values, sym_binds, indices, state);
protected void addIndConstraintQueueNegativeBindingsMethods() { List params = new LinkedList(); List args = new LinkedList(); Iterator syms = curTraceMatch.getSymbols().iterator(); while (syms.hasNext()) { String symbol = (String) syms.next(); Stmt method_end = getNewLabel(); params.clear(); args.clear(); List sym_binds = curTraceMatch.getVariableOrder(symbol); Iterator vars = sym_binds.iterator(); while (vars.hasNext()) { String var = (String) vars.next(); Type type = curTraceMatch.bindingType(var); params.add(type); } startMethod("queueNegativeBindingsForSymbol" + symbol, params, VoidType.v(), Modifier.PUBLIC); Local this_local = getThisLocal(); Local state = getFieldLocal(this_local, "onState", IntType.v()); Local[] values = new Local[sym_binds.size()]; for (int i = 0; i < sym_binds.size(); i++) values[i] = getParamLocal(i, (Type) params.get(i)); Stmt no_index_case = getNewLabel(); Map indices_to_labels = addIndLookupSwitch(state, no_index_case, true); Iterator index_lists = indices_to_labels.keySet().iterator(); while (index_lists.hasNext()) { List indices = (List) index_lists.next(); Stmt label = (Stmt) indices_to_labels.get(indices); boolean fully_indexed = sym_binds.containsAll(indices); doAddLabel(label); if (fully_indexed) addQueueNegativeBindingsBodyFullIndex(symbol, this_local, values, sym_binds, indices, state); else addQueueNegativeBindingsBodyPartialIndex(symbol, this_local, values, sym_binds, indices, state); doJump(method_end); } doAddLabel(no_index_case); addQueueNegativeBindingsBodyNoIndex(symbol, this_local, values, sym_binds, state); doAddLabel(method_end); doReturnVoid(); } }
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/c1412fd5be07edf7e3ca985917cd1a2ecafd3d5f/ClassGenHelper.java/clean/aop/abc/src/abc/tm/weaving/weaver/ClassGenHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 3866, 5806, 3183, 14959, 10497, 4712, 1435, 288, 3639, 987, 859, 273, 394, 10688, 5621, 3639, 987, 833, 273, 394, 10688, 5621, 3639, 4498, 24367, 273, 662, 3448, 2060, 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, 4750, 918, 527, 3866, 5806, 3183, 14959, 10497, 4712, 1435, 288, 3639, 987, 859, 273, 394, 10688, 5621, 3639, 987, 833, 273, 394, 10688, 5621, 3639, 4498, 24367, 273, 662, 3448, 2060, 18, ...
protected UMOMessage processResponse(UMOMessage message, Object replyTo, ReplyToHandler replyToHandler) throws UMOException { boolean stopProcessing = !descriptor.getOutboundRouter().hasEndpoints(); // if(descriptor.getResponseRouter()!=null) { // stopProcessing = descriptor.getResponseRouter().isStopProcessing(); // } else { // stopProcessing = event.isStopFurtherProcessing(); // } UMOMessage returnMessage = null; // Need to find a cleaner solution for handling response messages // Right now routing is split between here a nd the proxy if (descriptor.getResponseRouter() != null) { if (event.isSynchronous() && !stopProcessing) { // we need to do the outbound first but we dispatch aynshonously // as // we are waiting for a response on another resource descriptor.getOutboundRouter().route(message, event.getSession(), false); } logger.debug("Waiting for response router message"); message = descriptor.getResponseRouter().getResponse(message);// if (descriptor.getResponseRouter().isStopProcessing()) {// logger.debug("Setting stop oubound processing according to response router");// RequestContext.getEvent().setStopFurtherProcessing(true);// } } // return message; // } // this is the request event UMOEvent event = RequestContext.getEvent(); if (event.isStopFurtherProcessing()) { logger.debug("Event stop further processing has been set, no outbound routing will be performed."); } if (message != null && !event.isStopFurtherProcessing()) { Map context = RequestContext.clearProperties(); if (context != null) { message.addProperties(context); } returnMessage = descriptor.getOutboundRouter().route(message, event.getSession(), event.isSynchronous()); } else { returnMessage = message; } // process repltyTo if there is one if (message != null && replyTo != null) { String requestor = (String) message.getProperty(MuleProperties.MULE_REPLY_TO_REQUESTOR_PROPERTY); // ReplyToHandler replyToHandler = ((AbstractConnector) // event.getEndpoint().getConnector()).getReplyToHandler(); if (replyToHandler != null) { if ((requestor != null && !requestor.equals(descriptor.getName())) || requestor == null) { replyToHandler.processReplyTo(event, message, replyTo); } } } return returnMessage; }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/d391c44dabcab4193803085a540dae705c3792a9/MuleProxy.java/buggy/src/java/org/mule/impl/MuleProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 587, 5980, 1079, 1207, 1064, 12, 2799, 51, 1079, 883, 16, 1033, 30934, 16, 16202, 774, 1503, 30934, 1503, 13, 15069, 587, 5980, 503, 95, 6494, 2132, 7798, 273, 401, 12628, 18, 588, 17873...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 587, 5980, 1079, 1207, 1064, 12, 2799, 51, 1079, 883, 16, 1033, 30934, 16, 16202, 774, 1503, 30934, 1503, 13, 15069, 587, 5980, 503, 95, 6494, 2132, 7798, 273, 401, 12628, 18, 588, 17873...
AST tmp618_AST_in = (AST)_t;
AST tmp617_AST_in = (AST)_t;
public final void method_param_list(AST _t) throws RecognitionException { AST method_param_list_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1601 = _t; AST tmp618_AST_in = (AST)_t; match(_t,Method_param_list); _t = _t.getFirstChild(); AST tmp619_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BUFFER: case INPUT: case INPUTOUTPUT: case OUTPUT: case PARAMETER: { parameter(_t); _t = _retTree; break; } case COMMA: case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1605: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp620_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BUFFER: case INPUT: case INPUTOUTPUT: case OUTPUT: case PARAMETER: { parameter(_t); _t = _retTree; break; } case COMMA: case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop1605; } } while (true); } AST tmp621_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1601; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 707, 67, 891, 67, 1098, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 707, 67, 891, 67, 1098, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 707, 67, 891, 67, 1098, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 707, 67, 891, 67, 1098, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13...
{ int sql_type = getField(column).getSQLType(); switch (sql_type) { case Types.SMALLINT: return 5; case Types.INTEGER: return 10; case Types.REAL: return 8; case Types.FLOAT: return 16; case Types.DOUBLE: return 16; default: throw new SQLException("no precision for non-numeric data types."); } }
{ int sql_type = getField(column).getSQLType(); switch (sql_type) { case Types.SMALLINT: return 5; case Types.INTEGER: return 10; case Types.REAL: return 8; case Types.FLOAT: return 16; case Types.DOUBLE: return 16; default: throw new SQLException("no precision for non-numeric data types."); } }
public int getPrecision(int column) throws SQLException { int sql_type = getField(column).getSQLType(); switch (sql_type) { case Types.SMALLINT: return 5; case Types.INTEGER: return 10; case Types.REAL: return 8; case Types.FLOAT: return 16; case Types.DOUBLE: return 16; default: throw new SQLException("no precision for non-numeric data types."); } }
45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSetMetaData.java/buggy/src/interfaces/jdbc/postgresql/ResultSetMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 12822, 5156, 12, 474, 1057, 13, 1216, 6483, 202, 95, 202, 202, 474, 1847, 67, 723, 273, 5031, 12, 2827, 2934, 588, 3997, 559, 5621, 202, 202, 9610, 261, 4669, 67, 723, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12822, 5156, 12, 474, 1057, 13, 1216, 6483, 202, 95, 202, 202, 474, 1847, 67, 723, 273, 5031, 12, 2827, 2934, 588, 3997, 559, 5621, 202, 202, 9610, 261, 4669, 67, 723, ...
public String word() throws RecognitionException { String word; Token id=null; Token str=null; word = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:902:17: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt60=11; switch ( input.LA(1) ) { case ID: alt60=1; break; case 17: alt60=2; break; case 57: alt60=3; break; case 28: alt60=4; break; case 26: alt60=5; break; case 33: alt60=6; break; case 34: alt60=7; break; case 29: alt60=8; break; case 31: alt60=9; break; case 27: alt60=10; break; case STRING: alt60=11; break; default: NoViableAltException nvae = new NoViableAltException("898:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 60, 0, input); throw nvae; } switch (alt60) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:902:17: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word2595); word=id.getText(); } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:903:17: 'import' { match(input,17,FOLLOW_17_in_word2607); word="import"; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:904:17: 'use' { match(input,57,FOLLOW_57_in_word2616); word="use"; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:905:17: 'rule' { match(input,28,FOLLOW_28_in_word2628); word="rule"; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:906:17: 'query' { match(input,26,FOLLOW_26_in_word2639); word="query"; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:907:17: 'salience' { match(input,33,FOLLOW_33_in_word2649); word="salience"; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:908:17: 'no-loop' { match(input,34,FOLLOW_34_in_word2657); word="no-loop"; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:909:17: 'when' { match(input,29,FOLLOW_29_in_word2665); word="when"; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:910:17: 'then' { match(input,31,FOLLOW_31_in_word2676); word="then"; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:911:17: 'end' { match(input,27,FOLLOW_27_in_word2687); word="end"; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:912:17: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word2701); word=getString(str); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2076, 1435, 1216, 9539, 288, 6647, 514, 2076, 31, 3639, 3155, 612, 33, 2011, 31, 3639, 3155, 609, 33, 2011, 31, 1171, 202, 202, 1095, 273, 446, 31, 540, 202, 3639, 775, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 2076, 1435, 1216, 9539, 288, 6647, 514, 2076, 31, 3639, 3155, 612, 33, 2011, 31, 3639, 3155, 609, 33, 2011, 31, 1171, 202, 202, 1095, 273, 446, 31, 540, 202, 3639, 775, 288, ...
return realGetKey(key, localOnly, cache);
return realGetKey(key, localOnly, cache, ignoreStore);
public ClientKeyBlock getKey(ClientKey key, boolean localOnly, RequestStarterClient client, boolean cache) throws LowLevelGetException { if(key instanceof ClientSSK) { ClientSSK k = (ClientSSK) key; if(k.getPubKey() != null) cacheKey(k.pubKeyHash, k.getPubKey()); } if(localOnly) return realGetKey(key, localOnly, cache); else return client.getKey(key, localOnly, cache); }
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/87760d0ac57e5e39f75661e91adeb3a9ffcc5dfb/Node.java/buggy/src/freenet/node/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2445, 653, 1768, 3579, 12, 1227, 653, 498, 16, 1250, 1191, 3386, 16, 1567, 510, 14153, 1227, 1004, 16, 1250, 1247, 13, 1216, 23629, 2355, 967, 503, 288, 377, 202, 430, 12, 856, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2445, 653, 1768, 3579, 12, 1227, 653, 498, 16, 1250, 1191, 3386, 16, 1567, 510, 14153, 1227, 1004, 16, 1250, 1247, 13, 1216, 23629, 2355, 967, 503, 288, 377, 202, 430, 12, 856, 12...
URL newURI = null; try { newURI = new URL(oldURI, url); } catch (MalformedURLException e) { userAgent.displayError(e); return; }
ParsedURL newURI = null; newURI = new ParsedURL(oldURI, url);
public void loadSVGDocument(String url) { stopProcessing(); URL oldURI = null; if (svgDocument != null) { oldURI = ((SVGOMDocument)svgDocument).getURLObject(); } URL newURI = null; try { newURI = new URL(oldURI, url); } catch (MalformedURLException e) { userAgent.displayError(e); return; } url = newURI.toString(); fragmentIdentifier = newURI.getRef(); loader = new DocumentLoader(userAgent); nextDocumentLoader = new SVGDocumentLoader(url, loader); nextDocumentLoader.setPriority(Thread.MIN_PRIORITY); Iterator it = svgDocumentLoaderListeners.iterator(); while (it.hasNext()) { nextDocumentLoader.addSVGDocumentLoaderListener ((SVGDocumentLoaderListener)it.next()); } if (documentLoader == null && gvtTreeBuilder == null && gvtTreeRenderer == null && svgLoadEventDispatcher == null && updateManager == null) { startDocumentLoader(); } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/b3bfbdc9cdab85ed31fcac017fd38c721cc6713e/JSVGComponent.java/clean/sources/org/apache/batik/swing/svg/JSVGComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 26531, 2519, 12, 780, 880, 13, 288, 3639, 2132, 7798, 5621, 3639, 1976, 1592, 3098, 273, 446, 31, 3639, 309, 261, 11451, 2519, 480, 446, 13, 288, 5411, 1592, 3098, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 26531, 2519, 12, 780, 880, 13, 288, 3639, 2132, 7798, 5621, 3639, 1976, 1592, 3098, 273, 446, 31, 3639, 309, 261, 11451, 2519, 480, 446, 13, 288, 5411, 1592, 3098, 273, ...
debugGui.showStackFrame(frame);
debugGui.showStopLine(frame);
public void actionPerformed(ActionEvent e) { if (!enabled) return; if (e.getActionCommand().equals("ContextSwitch")) { Main.ContextData contextData = debugGui.main.currentContextData(); if (contextData == null) { return; } int frameIndex = context.getSelectedIndex(); context.setToolTipText(toolTips.elementAt(frameIndex).toString()); int frameCount = contextData.frameCount(); if (frameIndex >= frameCount) { return; } Main.StackFrame frame = contextData.getFrame(frameIndex); Scriptable scope = frame.scope(); Scriptable thisObj = frame.thisObj(); thisTable.resetTree(new VariableModel(thisObj)); AbstractTreeTableModel scopeModel; if (scope != thisObj) { scopeModel = new VariableModel(scope); } else { scopeModel = 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.resetTree(scopeModel); debugGui.main.contextSwitch(frameIndex); debugGui.showStackFrame(frame); tableModel.updateModel(); } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/72e2855e0d8d88c49a600ea9cea86b892d0868a1/DebugGui.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/DebugGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 309, 16051, 5745, 13, 327, 31, 3639, 309, 261, 73, 18, 588, 1803, 2189, 7675, 14963, 2932, 1042, 10200, 6, 3719, 288, 5411, 12740, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 309, 16051, 5745, 13, 327, 31, 3639, 309, 261, 73, 18, 588, 1803, 2189, 7675, 14963, 2932, 1042, 10200, 6, 3719, 288, 5411, 12740, ...
public void initialize(BSFManager mgr, String lang, Vector declaredBeans) throws BSFException { super.initialize(mgr, lang, declaredBeans); ruby = Ruby.getDefaultInstance(org.jruby.regexp.GNURegexpAdapter.class); int size = declaredBeans.size(); for (int i = 0; i < size; i++) { BSFDeclaredBean bean = (BSFDeclaredBean) declaredBeans.elementAt(i); BeanAccessor accessor = new BeanAccessor(ruby, bean); ruby.defineVirtualVariable(bean.name, accessor, accessor); } // ruby.defineGlobalFunction("declareBean", method); }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/786cea08c1dd2092a02d1254b49fbee371ace5f9/JRubyEngine.java/buggy/org/jruby/javasupport/bsf/JRubyEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 12, 12692, 42, 1318, 13333, 16, 514, 3303, 16, 5589, 7886, 14495, 13, 1216, 605, 22395, 503, 288, 3639, 2240, 18, 11160, 12, 13552, 16, 3303, 16, 7886, 14495, 1769, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 12, 12692, 42, 1318, 13333, 16, 514, 3303, 16, 5589, 7886, 14495, 13, 1216, 605, 22395, 503, 288, 3639, 2240, 18, 11160, 12, 13552, 16, 3303, 16, 7886, 14495, 1769, 3639,...
/* Uu.p("in get left down distance: " + box); for(int i=0; i< left_floats.size(); i++) { Box floater = (Box) left_floats.get(i); Uu.p("looking at floater: " + floater); Uu.p("floater parent = " + floater.getParent()); Uu.p("floater parent parent = " + floater.getParent().getParent()); Point fpt = (Point) offset_map.get(floater); Uu.p("offset = " + fpt); if(floater.y + floater.height - fpt.y > box.y) { return floater.y + floater.height - fpt.y; } } return 0; */
public int getLeftDownDistance(Box box) { /* Uu.p("in get left down distance: " + box); for(int i=0; i< left_floats.size(); i++) { Box floater = (Box) left_floats.get(i); Uu.p("looking at floater: " + floater); Uu.p("floater parent = " + floater.getParent()); Uu.p("floater parent parent = " + floater.getParent().getParent());Point fpt = (Point) offset_map.get(floater); Uu.p("offset = " + fpt); if(floater.y + floater.height - fpt.y > box.y) { return floater.y + floater.height - fpt.y; } } return 0; */ return getDownDistance(box, left_floats); }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/3f7f1ad563975d526a941d1eb9629a543d42be24/BlockFormattingContext.java/buggy/src/java/org/xhtmlrenderer/layout/BlockFormattingContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 15930, 4164, 7200, 12, 3514, 3919, 13, 288, 3639, 1748, 3639, 587, 89, 18, 84, 2932, 267, 336, 2002, 2588, 3888, 30, 315, 397, 3919, 1769, 3639, 364, 12, 474, 277, 33, 20, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 15930, 4164, 7200, 12, 3514, 3919, 13, 288, 3639, 1748, 3639, 587, 89, 18, 84, 2932, 267, 336, 2002, 2588, 3888, 30, 315, 397, 3919, 1769, 3639, 364, 12, 474, 277, 33, 20, ...
else if (i == DOC_COMMENT_TEXT || i == DOC_INLINE_TAG) {
else if (i == JavaDocElementType.DOC_COMMENT || i == DOC_INLINE_TAG) {
public int getChildRole(ASTNode child) { LOG.assertTrue(child.getTreeParent() == this); IElementType i = child.getElementType(); if (i == DOC_TAG) { return ChildRole.DOC_TAG; } else if (i == DOC_COMMENT_TEXT || i == DOC_INLINE_TAG) { return ChildRole.DOC_CONTENT; } else if (i == DOC_COMMENT_LEADING_ASTERISKS) { return ChildRole.DOC_COMMENT_ASTERISKS; } else if (i == DOC_COMMENT_START) { return ChildRole.DOC_COMMENT_START; } else if (i == DOC_COMMENT_END) { return ChildRole.DOC_COMMENT_END; } else { return ChildRole.NONE; } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/7cc49f57fd75f032b80560ecde54c4a99bda9ac7/PsiDocCommentImpl.java/buggy/source/com/intellij/psi/impl/source/javadoc/PsiDocCommentImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 8154, 2996, 12, 9053, 907, 1151, 13, 288, 565, 2018, 18, 11231, 5510, 12, 3624, 18, 588, 2471, 3054, 1435, 422, 333, 1769, 565, 467, 17481, 277, 273, 1151, 18, 588, 17481, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 8154, 2996, 12, 9053, 907, 1151, 13, 288, 565, 2018, 18, 11231, 5510, 12, 3624, 18, 588, 2471, 3054, 1435, 422, 333, 1769, 565, 467, 17481, 277, 273, 1151, 18, 588, 17481, 56...
public Container getParent () { return parent; }
public Container getParent() { return parent; }
public Container getParent () { return parent; }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/42de8277e53eabea04a48598c12ed6d488412a7b/Component.java/buggy/libjava/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4039, 5089, 1832, 288, 327, 982, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 4039, 5089, 1832, 288, 327, 982, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Security security = ctx.getSecurity();
public static Map quickRunAllProductionRunTasks(DispatchContext ctx, Map context) { Map result = ServiceUtil.returnSuccess(); GenericDelegator delegator = ctx.getDelegator(); LocalDispatcher dispatcher = ctx.getDispatcher(); Security security = ctx.getSecurity(); Locale locale = (Locale) context.get("locale"); GenericValue userLogin = (GenericValue) context.get("userLogin"); String productionRunId = (String) context.get("productionRunId"); ProductionRun productionRun = new ProductionRun(productionRunId, delegator, dispatcher); if (!productionRun.exist()){ return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunNotExists", locale)); } List tasks = productionRun.getProductionRunRoutingTasks(); GenericValue oneTask = null; String taskId = null; for (int i = 0; i < tasks.size(); i++) { oneTask = (GenericValue)tasks.get(i); taskId = oneTask.getString("workEffortId"); try { Map serviceContext = null; Map resultService = null; serviceContext = new HashMap(); serviceContext.put("productionRunId", productionRunId); serviceContext.put("taskId", taskId); serviceContext.put("userLogin", userLogin); resultService = dispatcher.runSync("quickRunProductionRunTask", serviceContext); } catch (GenericServiceException e) { Debug.logError(e, "Problem calling the quickRunProductionRunTask service", module); return ServiceUtil.returnError(UtilProperties.getMessage(resource, "ManufacturingProductionRunStatusNotChanged", locale)); } } return result; }
45953 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45953/9b3b889c7b7b34004f352b6b9cabb4103d892e41/ProductionRunServices.java/clean/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1635, 9549, 1997, 1595, 31590, 1997, 6685, 12, 5325, 1042, 1103, 16, 1635, 819, 13, 288, 3639, 1635, 563, 273, 1956, 1304, 18, 2463, 4510, 5621, 3639, 7928, 15608, 639, 11158, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1635, 9549, 1997, 1595, 31590, 1997, 6685, 12, 5325, 1042, 1103, 16, 1635, 819, 13, 288, 3639, 1635, 563, 273, 1956, 1304, 18, 2463, 4510, 5621, 3639, 7928, 15608, 639, 11158, ...
return getInsertionIndex(container, member.getNodeType(), isStatic(member));
int defaultIndex= container.size(); int memberType= member.getNodeType(); int memberModifiers= member.getModifiers(); switch (memberType) { case ASTNode.TYPE_DECLARATION: case ASTNode.ENUM_DECLARATION : case ASTNode.ANNOTATION_TYPE_DECLARATION : case ASTNode.ANNOTATION_TYPE_MEMBER_DECLARATION: case ASTNode.INITIALIZER: { int insertPos= -1; int i= 0; for (Iterator iter= container.iterator(); iter.hasNext(); i++) { int nodeType= ((BodyDeclaration)iter.next()).getNodeType(); switch (nodeType) { case ASTNode.TYPE_DECLARATION: case ASTNode.INITIALIZER: case ASTNode.ENUM_DECLARATION : case ASTNode.ANNOTATION_TYPE_DECLARATION: case ASTNode.ANNOTATION_TYPE_MEMBER_DECLARATION: if (nodeType == memberType) insertPos= i + 1; break; default: if (insertPos == -1) insertPos= i; } } if (insertPos != -1) return insertPos; return defaultIndex; } case ASTNode.FIELD_DECLARATION: { int normalFieldInsertPos= -1; int staticFieldInsertPos= -1; int finalStaticFieldInsertPos= -1; int i= 0; for (Iterator iter= container.iterator(); iter.hasNext(); i++) { ASTNode node= (ASTNode)iter.next(); int nodeType= node.getNodeType(); switch (nodeType) { case ASTNode.FIELD_DECLARATION: int modifiers=((FieldDeclaration) node).getModifiers(); normalFieldInsertPos= i + 1; if (Modifier.isStatic(modifiers)) { staticFieldInsertPos= i + 1; if (Modifier.isFinal(modifiers)) { finalStaticFieldInsertPos= i + 1; } else if (finalStaticFieldInsertPos == -1) { finalStaticFieldInsertPos= i; } } else if (staticFieldInsertPos == -1) { staticFieldInsertPos= i; } break; case ASTNode.METHOD_DECLARATION: case ASTNode.INITIALIZER: if (normalFieldInsertPos == -1) normalFieldInsertPos= i; break; } } if (Modifier.isStatic(memberModifiers) && Modifier.isFinal(memberModifiers) && finalStaticFieldInsertPos != -1) return finalStaticFieldInsertPos; if (Modifier.isStatic(memberModifiers) && staticFieldInsertPos != -1) return staticFieldInsertPos; if (normalFieldInsertPos != -1) return normalFieldInsertPos; return defaultIndex; } case ASTNode.METHOD_DECLARATION: { int normalMethodInsertPos= -1; int constructorInsertPos= -1; int staticMethodInsertPos= -1; int i= 0; for (Iterator iter= container.iterator(); iter.hasNext(); i++) { ASTNode node= (ASTNode)iter.next(); int nodeType= node.getNodeType(); switch (nodeType) { case ASTNode.METHOD_DECLARATION: MethodDeclaration curr= (MethodDeclaration) node; normalMethodInsertPos= i + 1; if (curr.isConstructor()) { constructorInsertPos= i + 1; } else if (constructorInsertPos == -1) { constructorInsertPos= i; } if (Modifier.isStatic(curr.getModifiers())) { staticMethodInsertPos= i + 1; } else if (staticMethodInsertPos == -1) { staticMethodInsertPos= i; } break; } } if (Modifier.isStatic(memberModifiers) && staticMethodInsertPos != -1) return staticMethodInsertPos; if ((((MethodDeclaration) member).isConstructor()) && constructorInsertPos != -1) return constructorInsertPos; if (normalMethodInsertPos != -1) return normalMethodInsertPos; return defaultIndex; } } return defaultIndex;
public static int getInsertionIndex(BodyDeclaration member, List container) { return getInsertionIndex(container, member.getNodeType(), isStatic(member)); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/6e0e9e1d89578626bd64556e80eabc49bc337f02/ASTNodes.java/buggy/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 509, 336, 29739, 1016, 12, 2250, 6094, 3140, 16, 987, 1478, 13, 288, 202, 202, 2463, 336, 29739, 1016, 12, 3782, 16, 3140, 18, 588, 15101, 9334, 16116, 12, 5990, 10019, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 509, 336, 29739, 1016, 12, 2250, 6094, 3140, 16, 987, 1478, 13, 288, 202, 202, 2463, 336, 29739, 1016, 12, 3782, 16, 3140, 18, 588, 15101, 9334, 16116, 12, 5990, 10019, 2...
return pageList.getActive(); }
return pageList.getActive(); }
public IWorkbenchPage getActivePage() { return pageList.getActive(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/97610ef9afbe6c924e048d8d60c2f4721860850b/WorkbenchWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 2421, 22144, 1964, 11960, 1964, 1435, 288, 3639, 327, 1363, 682, 18, 588, 3896, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 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, 377, 1071, 467, 2421, 22144, 1964, 11960, 1964, 1435, 288, 3639, 327, 1363, 682, 18, 588, 3896, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
al.add( new ShapedAction( iev.getSource( ),
al.add( new ShapedAction( iev.getStructureSource( ),
public void enableInteraction( InteractionEvent iev ) throws ChartException { if ( _iun == null ) { logger.log( ILogger.WARNING, Messages.getString( "exception.missing.component.interaction", getULocale( ) ) ); //$NON-NLS-1$ return; } final Trigger[] tga = iev.getTriggers( ); if ( tga == null ) { return; } Shape clipping = _g2d.getClip( ); // CREATE AND SETUP THE SHAPES FOR INTERACTION TriggerCondition tc; ArrayList al; final PrimitiveRenderEvent pre = iev.getHotSpot( ); if ( pre instanceof PolygonRenderEvent ) { final Location[] loa = ( (PolygonRenderEvent) pre ).getPoints( ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), loa, tga[i].getAction( ), clipping ) ); } } else if ( pre instanceof RectangleRenderEvent ) { final Bounds bo = ( (RectangleRenderEvent) pre ).getBounds( ); final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( bo.getLeft( ), bo.getTop( ) ); loa[1] = LocationImpl.create( bo.getLeft( ), bo.getTop( ) + bo.getHeight( ) ); loa[2] = LocationImpl.create( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) + bo.getHeight( ) ); loa[3] = LocationImpl.create( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), loa, tga[i].getAction( ), clipping ) ); } } else if ( pre instanceof OvalRenderEvent ) { final Bounds boEllipse = ( (OvalRenderEvent) pre ).getBounds( ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), boEllipse, tga[i].getAction( ), clipping ) ); } } else if ( pre instanceof ArcRenderEvent ) { final ArcRenderEvent are = (ArcRenderEvent) pre; final Bounds boEllipse = are.getEllipseBounds( ); double dStart = are.getStartAngle( ); double dExtent = are.getAngleExtent( ); int iArcType = toSwingArcType( are.getStyle( ) ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), boEllipse, dStart, dExtent, iArcType, tga[i].getAction( ), clipping ) ); } } else if ( pre instanceof AreaRenderEvent ) { final Bounds bo = ( (AreaRenderEvent) pre ).getBounds( ); final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( bo.getLeft( ), bo.getTop( ) ); loa[1] = LocationImpl.create( bo.getLeft( ), bo.getTop( ) + bo.getHeight( ) ); loa[2] = LocationImpl.create( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) + bo.getHeight( ) ); loa[3] = LocationImpl.create( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), loa, tga[i].getAction( ), clipping ) ); } } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/2d20506054849c42d48678ae5d0e59f9c37d95e8/SwingRendererImpl.java/buggy/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingRendererImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4237, 17419, 12, 5294, 1128, 1133, 9228, 90, 262, 1216, 14804, 503, 202, 95, 202, 202, 430, 261, 389, 77, 318, 422, 446, 262, 202, 202, 95, 1082, 202, 4901, 18, 1330, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4237, 17419, 12, 5294, 1128, 1133, 9228, 90, 262, 1216, 14804, 503, 202, 95, 202, 202, 430, 261, 389, 77, 318, 422, 446, 262, 202, 202, 95, 1082, 202, 4901, 18, 1330, 1...
il.append(fact.createLoad(BcelWorld.makeBcelType(getType()), oldSlot));
il.append(InstructionFactory.createLoad(BcelWorld.makeBcelType(getType()), oldSlot));
public InstructionList createCopyFrom(InstructionFactory fact, int oldSlot) { InstructionList il = new InstructionList(); il.append(fact.createLoad(BcelWorld.makeBcelType(getType()), oldSlot)); il.append(createStore(fact)); return il; }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/fde423ac335eb547834bb6f1b0ec51ddfac51cd6/BcelVar.java/clean/weaver/src/org/aspectj/weaver/bcel/BcelVar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24605, 682, 752, 2951, 1265, 12, 11983, 1733, 5410, 16, 509, 1592, 8764, 13, 288, 3639, 24605, 682, 14254, 273, 394, 24605, 682, 5621, 3639, 14254, 18, 6923, 12, 11983, 1733, 18, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24605, 682, 752, 2951, 1265, 12, 11983, 1733, 5410, 16, 509, 1592, 8764, 13, 288, 3639, 24605, 682, 14254, 273, 394, 24605, 682, 5621, 3639, 14254, 18, 6923, 12, 11983, 1733, 18, 26...
public void sendMessage(SIPMessage messageToSend) throws IOException { // Message typecast as a request SIPRequest transactionRequest; transactionRequest = (SIPRequest) messageToSend; // Set the branch id for the top via header. Via topVia = (Via) transactionRequest.getViaHeaders().getFirst(); // Tack on a branch identifier to match responses. try { topVia.setBranch(getBranch()); } catch (java.text.ParseException ex) { } if (sipStack.getLogWriter().isLoggingEnabled()) { sipStack.getLogWriter() .logDebug("Sending Message " + messageToSend); sipStack.getLogWriter().logDebug( "TransactionState " + this.getState()); } // If this is the first request for this transaction, if (TransactionState.PROCEEDING == getState() || TransactionState.CALLING == getState()) { // If this is a TU-generated ACK request, if (transactionRequest.getMethod().equals(Request.ACK)) { // Send directly to the underlying // transport and close this transaction if (isReliable()) { this.setState(TransactionState.TERMINATED); } else { this.setState(TransactionState.COMPLETED); } //BUGBUG -- This suppresses sending the ACK uncomment this to // test 4xx retransmission //if (transactionRequest.getMethod() != Request.ACK) super.sendMessage(transactionRequest); return; } } try { // Send the message to the server lastRequest = transactionRequest; if (getState() == null) { // Save this request as the one this transaction // is handling setOriginalRequest(transactionRequest); // Change to trying/calling state // Set state first to avoid race condition.. if (transactionRequest.getMethod().equals(Request.INVITE)) { this.setState(TransactionState.CALLING); } else if (transactionRequest.getMethod().equals(Request.ACK)) { // Acks are never retransmitted. this.setState(TransactionState.TERMINATED); } else { this.setState(TransactionState.TRYING); } if (!isReliable()) { enableRetransmissionTimer(); } if (isInviteTransaction()) { enableTimeoutTimer(TIMER_B); } else { enableTimeoutTimer(TIMER_F); } } //BUGBUG This supresses sending ACKS -- uncomment to test // 4xx retransmission. //if (transactionRequest.getMethod() != Request.ACK) super.sendMessage(transactionRequest); } catch (IOException e) { this.setState(TransactionState.TERMINATED); throw e; } }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/77bfd61010e144d31e7bc2a7173c5300bb2f9032/SIPClientTransaction.java/clean/trunk/src/gov/nist/javax/sip/stack/SIPClientTransaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15399, 12, 17739, 1079, 883, 28878, 13, 1216, 1860, 288, 202, 202, 759, 2350, 618, 4155, 487, 279, 590, 202, 202, 17739, 691, 2492, 691, 31, 202, 202, 7958, 691, 273, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15399, 12, 17739, 1079, 883, 28878, 13, 1216, 1860, 288, 202, 202, 759, 2350, 618, 4155, 487, 279, 590, 202, 202, 17739, 691, 2492, 691, 31, 202, 202, 7958, 691, 273, 261...
methodDeclaration.setProperty(JavaCompilationUnitSorter.SOURCE_START, new Integer(this.sourceStart));
methodDeclaration.setProperty(CompilationUnitSorter.SOURCE_START, new Integer(this.sourceStart));
ASTNode convert() { MethodDeclaration methodDeclaration = ast.newMethodDeclaration(); methodDeclaration.setConstructor(false); methodDeclaration.setModifiers(this.modifiers); methodDeclaration.setName(ast.newSimpleName(new String(this.name))); methodDeclaration.setProperty(JavaCompilationUnitSorter.SOURCE_START, new Integer(this.sourceStart)); // set parameter names and types if (this.parametersNames != null) { setParameters(methodDeclaration, this.parametersNames, this.parametersTypes); } // set thrown exceptions if (this.thrownExceptions != null) { for (int j = 0, max2 = this.thrownExceptions.length; j < max2; j++) { String currentException = this.thrownExceptions[j]; Name exceptionName; if (currentException.indexOf('.') == -1) { exceptionName = ast.newSimpleName(currentException); } else { exceptionName = ast.newName(splitOn('.', currentException)); } methodDeclaration.thrownExceptions().add(exceptionName); } } // set return type int indexOfArrayBrace; String currentReturnType = this.returnType; if (currentReturnType.indexOf('.') != -1) { String[] returnTypeSubstrings = splitOn('.', currentReturnType); int length = returnTypeSubstrings.length; indexOfArrayBrace = returnTypeSubstrings[length - 1].indexOf('['); if (indexOfArrayBrace != -1) { int dimensions = occurencesOf('[', returnTypeSubstrings[length - 1]); returnTypeSubstrings[length - 1] = returnTypeSubstrings[length - 1].substring(0, indexOfArrayBrace); methodDeclaration.setReturnType(ast.newArrayType(ast.newSimpleType(ast.newName(returnTypeSubstrings)), dimensions)); } else { methodDeclaration.setReturnType(ast.newSimpleType(ast.newName(returnTypeSubstrings))); } } else if ((indexOfArrayBrace = currentReturnType.indexOf('[')) != -1) { int dimensions = occurencesOf('[', currentReturnType); currentReturnType = currentReturnType.substring(0, indexOfArrayBrace); methodDeclaration.setReturnType(ast.newArrayType(newType(currentReturnType), dimensions)); } else { methodDeclaration.setReturnType(newType(currentReturnType)); } return methodDeclaration; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/b6e5ae943550075226ab72b52ecddee830556320/SortElementBuilder.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SortElementBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 9053, 907, 1765, 1435, 288, 1082, 202, 1305, 6094, 707, 6094, 273, 3364, 18, 2704, 1305, 6094, 5621, 1082, 202, 2039, 6094, 18, 542, 6293, 12, 5743, 1769, 1082, 202, 2039, 6094, 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, 3196, 202, 9053, 907, 1765, 1435, 288, 1082, 202, 1305, 6094, 707, 6094, 273, 3364, 18, 2704, 1305, 6094, 5621, 1082, 202, 2039, 6094, 18, 542, 6293, 12, 5743, 1769, 1082, 202, 2039, 6094, 18,...
public org.quickfix.field.Issuer getIssuer() throws FieldNotFound { org.quickfix.field.Issuer value = new org.quickfix.field.Issuer();
public quickfix.field.Issuer getIssuer() throws FieldNotFound { quickfix.field.Issuer value = new quickfix.field.Issuer();
public org.quickfix.field.Issuer getIssuer() throws FieldNotFound { org.quickfix.field.Issuer value = new org.quickfix.field.Issuer(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataRequest.java/buggy/src/java/src/quickfix/fix42/MarketDataRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 16667, 336, 16667, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 16667, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 16667, 336, 16667, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 16667, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, ...
BugzillaRepositoryUtil.validateCredentials(page.getServerUrl(), page.getUserName(), page.getPassword());
BugzillaServerFacade.validateCredentials(page.getServerUrl(), page.getUserName(), page.getPassword());
public void testPersistChangeUserId() throws Exception { assertEquals(1, manager.getAllRepositories().size()); EditRepositoryWizard wizard = new EditRepositoryWizard(repository); WizardDialog dialog = new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), wizard); dialog.create(); BugzillaRepositorySettingsPage page = (BugzillaRepositorySettingsPage) wizard.getSettingsPage(); BugzillaRepositoryUtil.validateCredentials(page.getServerUrl(), page.getUserName(), page.getPassword()); page.setUserId("bogus"); wizard.performFinish(); assertEquals(1, manager.getAllRepositories().size()); TaskRepository repositoryTest = manager.getRepository(BugzillaPlugin.REPOSITORY_KIND, IBugzillaConstants.TEST_BUGZILLA_222_URL); assertNotNull(repositoryTest); wizard = new EditRepositoryWizard(repositoryTest); dialog = new WizardDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), wizard); dialog.create(); page = (BugzillaRepositorySettingsPage) wizard.getSettingsPage(); try { BugzillaRepositoryUtil.validateCredentials(page.getServerUrl(), page.getUserName(), page.getPassword()); } catch (LoginException e) { return; } fail("LoginException didn't occur!"); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/0cd6c1455f92404f125b4542d0e87670558e15cc/RepositoryEditorWizardTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/RepositoryEditorWizardTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 12771, 3043, 10502, 1435, 1216, 1185, 288, 202, 202, 11231, 8867, 12, 21, 16, 3301, 18, 588, 1595, 18429, 7675, 1467, 10663, 202, 202, 4666, 3305, 27130, 24204, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 12771, 3043, 10502, 1435, 1216, 1185, 288, 202, 202, 11231, 8867, 12, 21, 16, 3301, 18, 588, 1595, 18429, 7675, 1467, 10663, 202, 202, 4666, 3305, 27130, 24204, 273, ...
reportSchemaError("sch-props-correct.1", new Object [] {DOMUtil.getLocalName(globalComp)}, globalComp);
reportSchemaError("s4s-elt-invalid-content.3", new Object [] {DOMUtil.getLocalName(globalComp)}, globalComp);
protected void buildGlobalNameRegistries() { /* Starting with fRoot, we examine each child of the schema * element. Skipping all imports and includes, we record the names * of all other global components (and children of <redefine>). We * also put <redefine> names in a registry that we look through in * case something needs renaming. Once we're done with a schema we * set its Document node to hidden so that we don't try to traverse * it again; then we look to its Dependency map entry. We keep a * stack of schemas that we haven't yet finished processing; this * is a depth-first traversal. */ Stack schemasToProcess = new Stack(); schemasToProcess.push(fRoot); while (!schemasToProcess.empty()) { XSDocumentInfo currSchemaDoc = (XSDocumentInfo)schemasToProcess.pop(); Document currDoc = currSchemaDoc.fSchemaDoc; if (DOMUtil.isHidden(currDoc)) { // must have processed this already! continue; } Element currRoot = DOMUtil.getRoot(currDoc); // process this schema's global decls boolean dependenciesCanOccur = true; for (Element globalComp = DOMUtil.getFirstChildElement(currRoot); globalComp != null; globalComp = DOMUtil.getNextSiblingElement(globalComp)) { // this loop makes sure the <schema> element ordering is // also valid. if (DOMUtil.getLocalName(globalComp).equals(SchemaSymbols.ELT_ANNOTATION)) { //skip it; traverse it later continue; } else if (DOMUtil.getLocalName(globalComp).equals(SchemaSymbols.ELT_INCLUDE) || DOMUtil.getLocalName(globalComp).equals(SchemaSymbols.ELT_IMPORT)) { if (!dependenciesCanOccur) { reportSchemaError("sch-props-correct.1", new Object [] {DOMUtil.getLocalName(globalComp)}, globalComp); } // we've dealt with this; mark as traversed DOMUtil.setHidden(globalComp); } else if (DOMUtil.getLocalName(globalComp).equals(SchemaSymbols.ELT_REDEFINE)) { if (!dependenciesCanOccur) { reportSchemaError("sch-props-correct.1", new Object [] {DOMUtil.getLocalName(globalComp)}, globalComp); } for (Element redefineComp = DOMUtil.getFirstChildElement(globalComp); redefineComp != null; redefineComp = DOMUtil.getNextSiblingElement(redefineComp)) { String lName = DOMUtil.getAttrValue(redefineComp, SchemaSymbols.ATT_NAME); if (lName.length() == 0) // an error we'll catch later continue; String qName = currSchemaDoc.fTargetNamespace == null ? ","+lName: currSchemaDoc.fTargetNamespace +","+lName; String componentType = DOMUtil.getLocalName(redefineComp); if (componentType.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { checkForDuplicateNames(qName, fUnparsedAttributeGroupRegistry, redefineComp, currSchemaDoc); // the check will have changed our name; String targetLName = DOMUtil.getAttrValue(redefineComp, SchemaSymbols.ATT_NAME)+REDEF_IDENTIFIER; // and all we need to do is error-check+rename our kkids: renameRedefiningComponents(currSchemaDoc, redefineComp, SchemaSymbols.ELT_ATTRIBUTEGROUP, lName, targetLName); } else if ((componentType.equals(SchemaSymbols.ELT_COMPLEXTYPE)) || (componentType.equals(SchemaSymbols.ELT_SIMPLETYPE))) { checkForDuplicateNames(qName, fUnparsedTypeRegistry, redefineComp, currSchemaDoc); // the check will have changed our name; String targetLName = DOMUtil.getAttrValue(redefineComp, SchemaSymbols.ATT_NAME) + REDEF_IDENTIFIER; // and all we need to do is error-check+rename our kkids: if (componentType.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { renameRedefiningComponents(currSchemaDoc, redefineComp, SchemaSymbols.ELT_COMPLEXTYPE, lName, targetLName); } else { // must be simpleType renameRedefiningComponents(currSchemaDoc, redefineComp, SchemaSymbols.ELT_SIMPLETYPE, lName, targetLName); } } else if (componentType.equals(SchemaSymbols.ELT_GROUP)) { checkForDuplicateNames(qName, fUnparsedGroupRegistry, redefineComp, currSchemaDoc); // the check will have changed our name; String targetLName = DOMUtil.getAttrValue(redefineComp, SchemaSymbols.ATT_NAME)+REDEF_IDENTIFIER; // and all we need to do is error-check+rename our kids: renameRedefiningComponents(currSchemaDoc, redefineComp, SchemaSymbols.ELT_GROUP, lName, targetLName); } } // end march through <redefine> children // and now set as traversed //DOMUtil.setHidden(globalComp); } else { dependenciesCanOccur = false; String lName = DOMUtil.getAttrValue(globalComp, SchemaSymbols.ATT_NAME); if (lName.length() == 0) // an error we'll catch later continue; String qName = currSchemaDoc.fTargetNamespace == null? ","+lName: currSchemaDoc.fTargetNamespace +","+lName; String componentType = DOMUtil.getLocalName(globalComp); if (componentType.equals(SchemaSymbols.ELT_ATTRIBUTE)) { checkForDuplicateNames(qName, fUnparsedAttributeRegistry, globalComp, currSchemaDoc); } else if (componentType.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { checkForDuplicateNames(qName, fUnparsedAttributeGroupRegistry, globalComp, currSchemaDoc); } else if ((componentType.equals(SchemaSymbols.ELT_COMPLEXTYPE)) || (componentType.equals(SchemaSymbols.ELT_SIMPLETYPE))) { checkForDuplicateNames(qName, fUnparsedTypeRegistry, globalComp, currSchemaDoc); } else if (componentType.equals(SchemaSymbols.ELT_ELEMENT)) { checkForDuplicateNames(qName, fUnparsedElementRegistry, globalComp, currSchemaDoc); } else if (componentType.equals(SchemaSymbols.ELT_GROUP)) { checkForDuplicateNames(qName, fUnparsedGroupRegistry, globalComp, currSchemaDoc); } else if (componentType.equals(SchemaSymbols.ELT_NOTATION)) { checkForDuplicateNames(qName, fUnparsedNotationRegistry, globalComp, currSchemaDoc); } } } // end for // now we're done with this one! DOMUtil.setHidden(currDoc); // now add the schemas this guy depends on Vector currSchemaDepends = (Vector)fDependencyMap.get(currSchemaDoc); for (int i = 0; i < currSchemaDepends.size(); i++) { schemasToProcess.push(currSchemaDepends.elementAt(i)); } } // while } // end buildGlobalNameRegistries
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/08452497d5ddc107ce0c88dafa4af418a8162487/XSDHandler.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1361, 5160, 461, 1617, 22796, 1435, 288, 3639, 1748, 24591, 598, 284, 2375, 16, 732, 19707, 558, 1517, 1151, 434, 326, 1963, 540, 380, 930, 18, 225, 27455, 777, 10095, 471, 610...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1361, 5160, 461, 1617, 22796, 1435, 288, 3639, 1748, 24591, 598, 284, 2375, 16, 732, 19707, 558, 1517, 1151, 434, 326, 1963, 540, 380, 930, 18, 225, 27455, 777, 10095, 471, 610...
groupUserDeleted(group, users, deletedUser);
groupUserDeleted(group, affectedUsers, deletedUser);
public void groupModified(Group group, Map params) { // Do nothing if no group property has been modified if (!"propertyModified".equals(params.get("type"))) { return; } String keyChanged = (String) params.get("propertyKey"); String originalValue = (String) params.get("originalValue"); if ("sharedRoster.showInRoster".equals(keyChanged)) { String currentValue = group.getProperties().get("sharedRoster.showInRoster"); // Nothing has changed so do nothing. if (currentValue.equals(originalValue)) { return; } // Remove the group from all users's rosters (if the group was a shared group) Collection<String> users = getAffectedUsers(group, originalValue, group.getProperties().get("sharedRoster.groupList")); for (String deletedUser : users) { groupUserDeleted(group, users, deletedUser); } // Get the users of the group users = new HashSet<String>(group.getMembers()); users.addAll(group.getAdmins()); // Simulate that the group users has been added to the group. This will cause to push // roster items to the "affected" users for the group users for (String user : users) { groupUserAdded(group, user); } } else if ("sharedRoster.groupList".equals(keyChanged)) { String currentValue = group.getProperties().get("sharedRoster.groupList"); // Nothing has changed so do nothing. if (currentValue.equals(originalValue)) { return; } // Remove the group from all users's rosters (if the group was a shared group) Collection<String> users = getAffectedUsers(group, group.getProperties().get("sharedRoster.showInRoster"), originalValue); for (String deletedUser : users) { groupUserDeleted(group, users, deletedUser); } // Get the users of the group users = new HashSet<String>(group.getMembers()); users.addAll(group.getAdmins()); // Simulate that the group users has been added to the group. This will cause to push // roster items to the "affected" users for the group users for (String user : users) { groupUserAdded(group, user); } } else if ("sharedRoster.displayName".equals(keyChanged)) { String currentValue = group.getProperties().get("sharedRoster.displayName"); // Nothing has changed so do nothing. if (currentValue.equals(originalValue)) { return; } // Do nothing if the group is not being shown in users' rosters if (!isSharedGroup(group)) { return; } // Get all the affected users Collection<String> users = getAffectedUsers(group); // Iterate on all the affected users and update their rosters for (String updatedUser : users) { // Get the roster to update. Roster roster = (Roster) CacheManager.getCache("username2roster").get(updatedUser); if (roster != null) { // Update the roster with the new group display name roster.shareGroupRenamed(originalValue, currentValue, users); } } } }
6312 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6312/729323036e79362be9a7ca3f6f388483ae4e3129/RosterManager.java/buggy/src/java/org/jivesoftware/messenger/roster/RosterManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1041, 4575, 12, 1114, 1041, 16, 1635, 859, 13, 288, 3639, 368, 2256, 5083, 309, 1158, 1041, 1272, 711, 2118, 4358, 3639, 309, 261, 4442, 4468, 4575, 9654, 14963, 12, 2010, 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, 1041, 4575, 12, 1114, 1041, 16, 1635, 859, 13, 288, 3639, 368, 2256, 5083, 309, 1158, 1041, 1272, 711, 2118, 4358, 3639, 309, 261, 4442, 4468, 4575, 9654, 14963, 12, 2010, 18, ...
XObject newsf[] = new XObject[_sf.length + (1024 * 4) + size];
XObject newsf[] = new XObject[_stackFrames.length + (1024 * 4) + size];
public int link(final int size) { _cfb = _top; _top += size; if (_top >= _sf.length) { XObject newsf[] = new XObject[_sf.length + (1024 * 4) + size]; System.arraycopy(_sf, 0, newsf, 0, _sf.length); _sf = newsf; } if (_linksTop + 1 >= _links.length) { int newlinks[] = new int[_links.length + (1024 * 2)]; System.arraycopy(_links, 0, newlinks, 0, _links.length); _links = newlinks; } _links[_linksTop++] = _cfb; return _cfb; }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/03a20ef89f957003109b27c92a9a5abb77b0dbb2/VariableStack.java/buggy/src/org/apache/xpath/VariableStack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1692, 12, 6385, 509, 963, 13, 225, 288, 565, 389, 8522, 70, 273, 389, 3669, 31, 565, 389, 3669, 1011, 963, 31, 565, 309, 261, 67, 3669, 1545, 389, 21668, 18, 2469, 13, 565,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1692, 12, 6385, 509, 963, 13, 225, 288, 565, 389, 8522, 70, 273, 389, 3669, 31, 565, 389, 3669, 1011, 963, 31, 565, 309, 261, 67, 3669, 1545, 389, 21668, 18, 2469, 13, 565,...
public ERXWOTextField(String s, NSDictionary nsdictionary, WOElement woelement) {
public ERXWOTextField(String tagname, NSDictionary nsdictionary, WOElement woelement) {
public ERXWOTextField(String s, NSDictionary nsdictionary, WOElement woelement) { super("input", nsdictionary, woelement); if(_value == null || !_value.isValueSettable()) throw new WODynamicElementCreationException("<" + getClass().getName() + "> 'value' attribute not present or is a constant"); _formatter = (WOAssociation)_associations.removeObjectForKey("formatter"); _dateFormat = (WOAssociation)_associations.removeObjectForKey("dateformat"); _numberFormat = (WOAssociation)_associations.removeObjectForKey("numberformat"); _useDecimalNumber = (WOAssociation)_associations.removeObjectForKey("useDecimalNumber"); if(_dateFormat != null && _numberFormat != null) { throw new WODynamicElementCreationException("<" + getClass().getName() + "> Cannot have 'dateFormat' and 'numberFormat' attributes at the same time."); } }
22541 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22541/f280d35d2fb1acc8fa8775a19037121579bf1540/ERXWOTextField.java/buggy/Common/Frameworks/ERExtensions/Sources/er/extensions/ERXWOTextField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4232, 60, 59, 51, 16157, 12, 780, 272, 16, 423, 9903, 3192, 3153, 15556, 16, 678, 51, 1046, 341, 83, 2956, 13, 288, 202, 202, 9565, 2932, 2630, 3113, 3153, 15556, 16, 341, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4232, 60, 59, 51, 16157, 12, 780, 272, 16, 423, 9903, 3192, 3153, 15556, 16, 678, 51, 1046, 341, 83, 2956, 13, 288, 202, 202, 9565, 2932, 2630, 3113, 3153, 15556, 16, 341, 8...
public java.sql.ResultSet ExecSQL(String sql) throws SQLException
public java.sql.ResultSet ExecSQL(PGStatement stmt, String sql) throws SQLException
public java.sql.ResultSet ExecSQL(String sql) throws SQLException { // added Oct 7 1998 to give us thread safety. synchronized(pg_stream) { Field[] fields = null; Vector tuples = new Vector(); byte[] buf = null; int fqp = 0; boolean hfr = false; String recv_status = null, msg; int update_count = 1; int insert_oid = 0; SQLException final_error = null; // Commented out as the backend can now handle queries // larger than 8K. Peter June 6 2000 //if (sql.length() > 8192) //throw new PSQLException("postgresql.con.toolong",sql); if (getEncoding() == null) buf = sql.getBytes(); else { try { buf = sql.getBytes(getEncoding()); } catch (UnsupportedEncodingException unse) { throw new PSQLException("postgresql.con.encoding", unse); } } try { pg_stream.SendChar('Q'); buf = sql.getBytes(); pg_stream.Send(buf); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } while (!hfr || fqp > 0) { Object tup=null; // holds rows as they are recieved int c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify pid = pg_stream.ReceiveInteger(4); msg = pg_stream.ReceiveString(8192); break; case 'B': // Binary Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, true); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'C': // Command Status recv_status = pg_stream.ReceiveString(8192); // Now handle the update count correctly. if(recv_status.startsWith("INSERT") || recv_status.startsWith("UPDATE") || recv_status.startsWith("DELETE")) { try { update_count = Integer.parseInt(recv_status.substring(1+recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } if(recv_status.startsWith("INSERT")) { try { insert_oid = Integer.parseInt(recv_status.substring(1+recv_status.indexOf(' '),recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } } } if (fields != null) hfr = true; else { try { pg_stream.SendChar('Q'); pg_stream.SendChar(' '); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } fqp++; } break; case 'D': // Text Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, false); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'E': // Error Message msg = pg_stream.ReceiveString(4096); final_error = new SQLException(msg); hfr = true; break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); if (t != 0) throw new PSQLException("postgresql.con.garbled"); if (fqp > 0) fqp--; if (fqp == 0) hfr = true; break; case 'N': // Error Notification addWarning(pg_stream.ReceiveString(4096)); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(8192); break; case 'T': // MetaData Field Description if (fields != null) throw new PSQLException("postgresql.con.multres"); fields = ReceiveFields(); break; case 'Z': // backend ready for query, ignore for now :-) break; default: throw new PSQLException("postgresql.con.type",new Character((char)c)); } } if (final_error != null) throw final_error; return getResultSet(this, fields, tuples, recv_status, update_count, insert_oid); } }
2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/48010fd7d0e97e0cb8fec8782931fd9a46e82dd1/Connection.java/buggy/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 18679, 3406, 3480, 16, 514, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 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, 377, 1071, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 18679, 3406, 3480, 16, 514, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, ...
ExecSQL("rollback; begin; " + getIsolationLevelSQL());
if (haveMinimumServerVersion("7.1")){ ExecSQL("rollback; begin;"+getIsolationLevelSQL()); }else{ ExecSQL("rollback"); ExecSQL("begin"); ExecSQL(getIsolationLevelSQL()); }
public void rollback() throws SQLException { if (autoCommit) return; ExecSQL("rollback; begin; " + getIsolationLevelSQL()); }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/7066253ab5268467e01049a6a8a735bebf74f989/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 8006, 1435, 1216, 6483, 288, 202, 430, 261, 6079, 5580, 13, 202, 565, 327, 31, 202, 430, 261, 21516, 13042, 2081, 1444, 2932, 27, 18, 21, 6, 3719, 95, 3889, 3997, 2932, 20050...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8006, 1435, 1216, 6483, 288, 202, 430, 261, 6079, 5580, 13, 202, 565, 327, 31, 202, 430, 261, 21516, 13042, 2081, 1444, 2932, 27, 18, 21, 6, 3719, 95, 3889, 3997, 2932, 20050...
if (in == null || pageList.contains(in)) pageList.setActive(in); WorkbenchPage newPage = pageList.getActive(); if (newPage != null) { hideEmptyWindowContents(); newPage.onActivate(); firePageActivated(newPage); if (newPage.getPerspective() != null) firePerspectiveActivated(newPage, newPage .getPerspective()); } if (isClosing()) return; updateDisabled = false; updateActionSets(); if (perspectiveSwitcher != null) perspectiveSwitcher.update(false); getMenuManager().update(IAction.TEXT);
public void run() { // Deactivate old persp. WorkbenchPage currentPage = getActiveWorkbenchPage(); if (currentPage != null) { currentPage.onDeactivate(); } // Activate new persp. if (in == null || pageList.contains(in)) pageList.setActive(in); WorkbenchPage newPage = pageList.getActive(); if (newPage != null) { hideEmptyWindowContents(); newPage.onActivate(); firePageActivated(newPage); if (newPage.getPerspective() != null) firePerspectiveActivated(newPage, newPage .getPerspective()); } if (isClosing()) return; updateDisabled = false; // Update action bars ( implicitly calls updateActionBars() ) updateActionSets(); if (perspectiveSwitcher != null) perspectiveSwitcher.update(false); getMenuManager().update(IAction.TEXT); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ec4283892051600f341564011e4b8f9c3717ec2d/WorkbenchWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 368, 1505, 10014, 1592, 13508, 84, 18, 7734, 4147, 22144, 1964, 15117, 273, 11960, 2421, 22144, 1964, 5621, 7734, 309, 261, 2972, 1964, 480, 446, 13, 288,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 368, 1505, 10014, 1592, 13508, 84, 18, 7734, 4147, 22144, 1964, 15117, 273, 11960, 2421, 22144, 1964, 5621, 7734, 309, 261, 2972, 1964, 480, 446, 13, 288,...
}else if( nSelected > 1)
} else if ( nSelected > 1 )
public IStatus validate( Object[] selection ) { int nSelected = selection.length; if ( nSelected == 0 ) { return ErrorStatusNoSelection; }else if( nSelected > 1) { return ErrorStatus; }else if ( selection[0] instanceof File && ( (File) selection[0] ).isFile( ) ) { return OKStatus; }else if ( newFileName == null || !newFileName.toLowerCase( ) .endsWith( ext.toLowerCase( ) ) ) { return ErrorStatus; } return OKStatus; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/f06fb5699fc635c9c62b83fb721c2da353cf68a6/NewResourceFileDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/resource/NewResourceFileDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 1482, 1954, 12, 1033, 8526, 4421, 262, 202, 202, 95, 1082, 202, 474, 290, 7416, 273, 4421, 18, 2469, 31, 1082, 202, 430, 261, 290, 7416, 422, 374, 225, 262, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 1482, 1954, 12, 1033, 8526, 4421, 262, 202, 202, 95, 1082, 202, 474, 290, 7416, 273, 4421, 18, 2469, 31, 1082, 202, 430, 261, 290, 7416, 422, 374, 225, 262, 1082, 202, ...
public org.quickfix.field.BasisPxType getBasisPxType() throws FieldNotFound { org.quickfix.field.BasisPxType value = new org.quickfix.field.BasisPxType();
public quickfix.field.BasisPxType getBasisPxType() throws FieldNotFound { quickfix.field.BasisPxType value = new quickfix.field.BasisPxType();
public org.quickfix.field.BasisPxType getBasisPxType() throws FieldNotFound { org.quickfix.field.BasisPxType value = new org.quickfix.field.BasisPxType(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/BidRequest.java/buggy/src/java/src/quickfix/fix44/BidRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 11494, 291, 21776, 559, 2882, 17247, 21776, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 11494, 291, 21776, 559, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11494, 291, 21776, 559, 2882, 17247, 21776, 559, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 11494, 291, 21776, 559, 46...
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() != null && getRequestedStatus().equals(ContentItemCase.STATUS_PUBLISHED)) {// if (getCase().getPublishedFromDate() == null) {// addErrorKey(KEY_ERROR_PUBLISHED_FROM_DATE_EMPTY);// storeOk = false;// }// } article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment()); String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; }/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); }*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); WebdavRootResource rootResource = session.getWebdavRootResource(); String uri = service.getWebdavServerURI(); String folderLoaction = getFolderLocation();// String filePath = service.getWebdavServerURI()+getFolderLocation();// boolean success = rootResource.mkcolMethod(filePath);// createPath(getFolderLocation()); IWSlideService slideService = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); slideService.createAllFoldersInPath(getFolderLocation()); System.out.println("URI = "+uri); System.out.println("Folder location = "+folderLoaction); // System.out.println("success "+success);// success = rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString());// System.out.println("success "+success);// String webdavServletURL = getWebdavServletURL(iwuc)+"/"+getFolder();// System.out.println("webdavServletURL = "+webdavServletURL);// System.out.println("webdavServerURL = "+service.getWebdavServerURL());// WebdavResource webdavResource = session.getWebdavResource(session.getWebdavServerURL().toString());// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/"); // WebdavFile webdavFile = session.getWebdavFile();// WebdavFile path = new WebdavFile(webdavFile, getFolder());// path.mkdirs();// webdavResource = session.getWebdavResource(getWebdavServletURL(iwuc)+getFolder()+"/"+filename+".xml");// WebdavResource webdavResource = session.getWebdavResource("http://localhost:8080/servlet/webdav/"+filename+".xml");// IWSlideService iwss = new IWSlideService();// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/");// WebdavResource webdavResource = new WebdavResource("http://localhost:8080/servlet/webdav/files/"+filename+".xml");// WebdavFile webdavFile = session.getWebdavFile();// webdavResource.putMethod(new File(filename+".xml")); /* HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml"); root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */// HttpURL root = new HttpURL("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// root.setUserinfo("root","root"); // WebdavFile webdavFile = new WebdavFile("http://localhost:8080/servlet/webdav/files/"+filename+".xml", "root", "root");// webdavFile.createNewFile();// if(!webdavFile.exists()) {// } // articleDoc.save(new File(getFolder()+"/"+filename+".xml"));// articleDoc.save(webdavFile);// webdavFile.close(); } catch (IOException e1) { storeOk = false; // TODO Auto-generated catch block e1.printStackTrace(); } if (storeOk) { if (getRequestedStatus() != null) { setStatus(getRequestedStatus()); setRequestedStatus(null); } }else { throw new ArticleStoreException(); } }
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/e75e5a35d9b917c44d8a58d117a43ccf5ad660b4/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1707, 1435, 1216, 1599, 51, 21151, 95, 759, 202, 482, 3411, 1707, 1435, 288, 202, 202, 6494, 1707, 8809, 273, 638, 31, 202, 202, 8507, 668, 2396, 5621, 202, 202, 7880, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1707, 1435, 1216, 1599, 51, 21151, 95, 759, 202, 482, 3411, 1707, 1435, 288, 202, 202, 6494, 1707, 8809, 273, 638, 31, 202, 202, 8507, 668, 2396, 5621, 202, 202, 7880, 25...
if (!myFieldDescMap.containsKey(binding)) { throw new CodeGenerationException("Cannot bind: field does not exist: " + myClassToBind + "." + binding); }
private void generateFieldBinding(final LwComponent lwComponent, final Class componentClass, final GeneratorAdapter generator, final int componentLocal) throws CodeGenerationException { final String binding = lwComponent.getBinding(); if (binding != null) { if (!myFieldDescMap.containsKey(binding)) { throw new CodeGenerationException("Cannot bind: field does not exist: " + myClassToBind + "." + binding); } Integer access = (Integer) myFieldAccessMap.get(binding); if ((access.intValue() & Opcodes.ACC_STATIC) != 0) { throw new CodeGenerationException("Cannot bind: field is static: " + myClassToBind + "." + binding); } if ((access.intValue() & Opcodes.ACC_FINAL) != 0) { throw new CodeGenerationException("Cannot bind: field is final: " + myClassToBind + "." + binding); } final Type fieldType = Type.getType((String)myFieldDescMap.get(binding)); if (fieldType.getSort() != Type.OBJECT) { throw new CodeGenerationException("Cannot bind: field is of primitive type: " + myClassToBind + "." + binding); } Class fieldClass; try { fieldClass = myLoader.loadClass(fieldType.getClassName()); } catch (ClassNotFoundException e) { throw new CodeGenerationException("Class not found: " + fieldType.getClassName()); } if (!fieldClass.isAssignableFrom(componentClass)) { throw new CodeGenerationException("Cannot bind: Incompatible types. Cannot assign " + componentClass.getName() + " to field " + myClassToBind + "." + binding); } generator.loadThis(); generator.loadLocal(componentLocal); generator.putField(Type.getType("L" + myClassName + ";"), binding, fieldType); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/0a8c7f6f897798de90c99991927c43760777d651/AsmCodeGenerator.java/buggy/UIDesignerCore/src/com/intellij/uiDesigner/compiler/AsmCodeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 974, 5250, 12, 6385, 511, 91, 1841, 14589, 1841, 16, 4766, 1377, 727, 1659, 1794, 797, 16, 4766, 1377, 727, 10159, 4216, 4456, 16, 4766, 1377, 727, 509, 1794, 2042, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 974, 5250, 12, 6385, 511, 91, 1841, 14589, 1841, 16, 4766, 1377, 727, 1659, 1794, 797, 16, 4766, 1377, 727, 10159, 4216, 4456, 16, 4766, 1377, 727, 509, 1794, 2042, 13, ...
orphans.remove(track);
public ServerDatabase processRequest(ServerDatabase request) { ServerDatabase reply = new ServerDatabase(); System.out.println("User " + request.getUserName() + " Password " + request.getPassword()); ServerDatabase user = userList.getUser(request.getUserName()); // If the user doesn't exist or the password is incorrect the return a // blank response. if (user == null) { reply.setError("user", "file:help/user.html"); return reply; } if (!user.getPassword().equals(request.getPassword())) { reply.setError("password", "file:help/password.html"); return reply; } // Update the users ratings. user.update(request); if (user.getNoOfTracks() * userRate >= getNoOfTracks()) { reply.setError("gotnone", "file:help/getstuffed.html"); return reply; } // If there are any orphans then we add one here if (orphans == null) orphans = findOrphans(); Track track = orphans.randomTrack(random); if (track != null) { System.out.print("Orphan: " + track.toString()); user.add(track); reply.add(track); orphans.remove(track); } else { // No orphans so we need to get any track which the user doesn't already have. ServerDatabase spares = getSpares(user); track = spares.randomTrack(random); if (track != null) { System.out.println("Spare: " + track.toString()); user.add(track); reply.add(track); } else { reply.setError("empty", "file:help/empty.html"); return reply; } } // Save the user database try { user.save(); } catch (IOException e) { e.printStackTrace(); } return reply; }
11635 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11635/f512ffb34086f3d6dbab44ca216b15da266f740c/MasterDatabase.java/buggy/trunk/irate/irate/server/MasterDatabase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3224, 4254, 1207, 691, 12, 2081, 4254, 590, 13, 288, 565, 3224, 4254, 4332, 273, 394, 3224, 4254, 5621, 565, 2332, 18, 659, 18, 8222, 2932, 1299, 315, 397, 590, 18, 588, 15296, 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, 282, 1071, 3224, 4254, 1207, 691, 12, 2081, 4254, 590, 13, 288, 565, 3224, 4254, 4332, 273, 394, 3224, 4254, 5621, 565, 2332, 18, 659, 18, 8222, 2932, 1299, 315, 397, 590, 18, 588, 15296, 14...
if (method.getName().equals("get")) {
if (method.getName().equals("get") || method.getName().equals("getAttribute")) {
protected boolean isGenericGetMethod(Method method) { if (method.getName().equals("get")) { Class[] parameterTypes = method.getParameterTypes(); return parameterTypes.length == 1 && parameterTypes[0] == String.class; } return false; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/64c78e0d8d7146dd22ff06e80bbbdcd38f92111b/MetaClass.java/buggy/src/main/groovy/lang/MetaClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 353, 7014, 967, 1305, 12, 1305, 707, 13, 288, 3639, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 588, 7923, 747, 707, 18, 17994, 7675, 14963, 2932, 588, 1499, 6, 3719, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 353, 7014, 967, 1305, 12, 1305, 707, 13, 288, 3639, 309, 261, 2039, 18, 17994, 7675, 14963, 2932, 588, 7923, 747, 707, 18, 17994, 7675, 14963, 2932, 588, 1499, 6, 3719, 288, ...
currentChart.getLegend( ).setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE );
currentChart.getLegend( ) .setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE );
private Chart getConvertedChart( Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); ChartDimension oldDimension = currentChart.getDimension( ); if ( ( currentChart instanceof ChartWithAxes ) ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) // Original // chart is // of this type // (LineChart) { if ( !currentChart.getSubType( ).equals( sNewSubType ) ) // Original // chart // is // of // the // required // subtype { currentChart.setSubType( sNewSubType ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType .equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } } } } } else if ( currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) || currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) || currentChart.getType( ).equals( StockChart.TYPE_LITERAL ) || currentChart.getType( ) .equals( ScatterChart.TYPE_LITERAL ) ) { if ( !currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( currentChart.getSampleData( ) ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).setType( AxisType.TEXT_LITERAL ); } currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); EList axes = ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axes.size( ); i++ ) { if ( sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) { ( (Axis) axes.get( i ) ).setPercent( true ); } else { ( (Axis) axes.get( i ) ).setPercent( false ); } EList seriesdefinitions = ( (Axis) axes.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL ) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } } else { return null; } ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setOrientation( Orientation.HORIZONTAL_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setType( AxisType.TEXT_LITERAL ); ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).setCategoryAxis( true ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setOrientation( Orientation.VERTICAL_LITERAL ); ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).setType( AxisType.LINEAR_LITERAL ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); currentChart.getInteractivity().setEnable( helperModel.getInteractivity().isEnable()); currentChart.getInteractivity().setLegendBehavior( helperModel.getInteractivity().getLegendBehavior()); if ( helperModel.getType( ).equals( PieChart.TYPE_LITERAL ) || helperModel.getType( ).equals( MeterChart.TYPE_LITERAL ) ) { // Clear existing series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy base series definitions ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ).get( 0 ) ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Clear existing series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .clear( ); // Copy orthogonal series definitions ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ) .addAll( ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeriesDefinitions( ) ); // Update the base series Series series = ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); // Clear existing series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .clear( ); // Add converted series ( (SeriesDefinition) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ).getSeries( ) .add( series ); // Update the orthogonal series EList seriesdefinitions = ( (Axis) ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ).get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); if ( ( sNewSubType.equalsIgnoreCase( STACKED_SUBTYPE_LITERAL) || sNewSubType.equalsIgnoreCase( PERCENTSTACKED_SUBTYPE_LITERAL ) ) ) { series.setStacked( true ); } else { series.setStacked( false ); } // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } } else { return null; } currentChart.getLegend( ).setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); } if ( currentChart instanceof ChartWithAxes && !( (ChartWithAxes) currentChart ).getOrientation( ) .equals( newOrientation ) ) { ( (ChartWithAxes) currentChart ).setOrientation( newOrientation ); } if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } if ( sNewDimension.equals( THREE_DIMENSION_TYPE ) && getDimensionFor( sNewDimension ) != oldDimension ) { ( (ChartWithAxes) currentChart ).setRotation( Rotation3DImpl.create( new Angle3D[]{ Angle3DImpl.create( -20, 45, 0 ) } ) ); ( (ChartWithAxes) currentChart ).setUnitSpacing( 50 ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .clear( ); Axis zAxisAncillary = AxisImpl.create( Axis.ANCILLARY_BASE ); zAxisAncillary.setTitlePosition( Position.BELOW_LITERAL ); zAxisAncillary.getTitle( ) .getCaption( ) .setValue( Messages.getString( "ChartWithAxesImpl.Z_Axis.title" ) ); //$NON-NLS-1$ zAxisAncillary.getTitle( ).setVisible( true ); zAxisAncillary.setPrimaryAxis( true ); zAxisAncillary.setLabelPosition( Position.BELOW_LITERAL ); zAxisAncillary.setOrientation( Orientation.HORIZONTAL_LITERAL ); zAxisAncillary.getOrigin( ).setType( IntersectionType.MIN_LITERAL ); zAxisAncillary.getOrigin( ) .setValue( NumberDataElementImpl.create( 0 ) ); zAxisAncillary.getTitle( ).setVisible( false ); zAxisAncillary.setType( AxisType.TEXT_LITERAL ); ( (ChartWithAxes) currentChart ).getPrimaryBaseAxes( )[0].getAncillaryAxes( ) .add( zAxisAncillary ); SeriesDefinition sdZ = SeriesDefinitionImpl.create( ); sdZ.getSeriesPalette( ).update( 0 ); sdZ.getSeries( ).add( SeriesImpl.create( ) ); zAxisAncillary.getSeriesDefinitions( ).add( sdZ ); if ( currentChart.getSampleData( ) .getAncillarySampleData( ) .isEmpty( ) ) { BaseSampleData sdAncillary = DataFactory.eINSTANCE.createBaseSampleData( ); sdAncillary.setDataSetRepresentation( "Series 1" ); //$NON-NLS-1$ currentChart.getSampleData( ) .getAncillarySampleData( ) .add( sdAncillary ); } } return currentChart; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/182827fe6ad4e223adc4bf4bcf44d469847b773d/LineChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 14097, 394, 14097, 16, 514, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 14097, 394, 14097, 16, 514, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, ...
public ActionForward fileUpload(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); IUserView userView = (IUserView) session.getAttribute(SessionConstants.U_VIEW); Integer itemCode = getItemCode(request); DynaActionForm xptoForm = (DynaActionForm) form; FormFile formFile = (FormFile) xptoForm.get("theFile"); FileSuportObject file = null; try { file = new FileSuportObject(); file.setContent(formFile.getFileData()); file.setFileName(new String((formFile.getFileName()).getBytes(), "ISO-8859-1")); file.setContentType(formFile.getContentType()); file.setLinkName((String) xptoForm.get("linkName")); if (file.getLinkName() == null || file.getLinkName() == "") { file.setLinkName(file.getFileName()); } } catch (FileNotFoundException e) { } catch (IOException e) { } ActionErrors actionErrors = new ActionErrors(); if (file.getFileName() == null || file.getFileName().indexOf("&") != -1 || file.getFileName().indexOf("#") != -1 || file.getFileName().indexOf("+") != -1) { actionErrors.add("fileNameInvalid", new ActionError("errors.fileNameInvalid", file .getFileName())); saveErrors(request, actionErrors); return prepareFileUpload(mapping, form, request, response); } Object[] args = { file, itemCode }; Boolean serviceResult = null; try { serviceResult = (Boolean) ServiceUtils.executeService(userView, "StoreItemFile", args); } catch (FileAlreadyExistsServiceException e1) { actionErrors.add("fileAlreadyExists", new ActionError("errors.fileAlreadyExists", file .getFileName())); saveErrors(request, actionErrors); return prepareFileUpload(mapping, form, request, response); } catch (FileNameTooLongServiceException e1) { actionErrors.add("fileNameTooLong", new ActionError("errors.fileNameTooLong", file .getFileName())); saveErrors(request, actionErrors); return prepareFileUpload(mapping, form, request, response); } catch (FenixServiceException e1) { actionErrors.add("unableToStoreFile", new ActionError("errors.unableToStoreFile", file .getFileName())); saveErrors(request, actionErrors); return prepareFileUpload(mapping, form, request, response); } if (!serviceResult.booleanValue()) { actionErrors.add("fileTooBig", new ActionError("errors.fileTooBig", file.getFileName())); saveErrors(request, actionErrors); return prepareFileUpload(mapping, form, request, response); } return viewSection(mapping, form, request, response); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f1790994e90150a41f878ae3110bab38ce01b720/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 585, 4777, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 5411, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 478, 275, 697, 1586, 503, 288, 3639,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 585, 4777, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 5411, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 478, 275, 697, 1586, 503, 288, 3639,...
offset = DataTools.bytesToLong(toRead, little);
offset = DataTools.bytesToLong(toRead, false);
private void initMetadata() throws IOException { in.seek(0); // start by reading the file header byte[] toRead = new byte[4]; in.read(toRead); long order = batoi(toRead); // byte ordering little = toRead[2] != 0xff || toRead[3] != 0xff; metadata.put("Byte Order", new Boolean(little)); in.skipBytes(4); in.read(toRead); long version = DataTools.bytesToLong(toRead, little); metadata.put("Version", new Long(version)); byte[] er = new byte[2]; in.read(er); short count = DataTools.bytesToShort(er, little); metadata.put("Count", new Short(count)); in.skipBytes(2); in.read(toRead); long offset = DataTools.bytesToLong(toRead, little); // skip to first tag in.seek(offset); // read in each tag and its data for (int i=0; i<count; i++) { in.read(er); short tag = DataTools.bytesToShort(er, little); in.skipBytes(2); in.read(toRead); offset = DataTools.bytesToLong(toRead, little); in.read(toRead); long fmt = DataTools.bytesToLong(toRead, little); metadata.put("Format", new Long(fmt)); in.read(toRead); long numBytes = DataTools.bytesToLong(toRead, little); metadata.put("NumBytes", new Long(numBytes)); if (tag == 67 || tag == 68) { byte[] b = new byte[1]; in.read(b); boolean isOpenlab2; if (b[0] == '0') isOpenlab2 = false; else isOpenlab2 = true; metadata.put("isOpenlab2", new Boolean(isOpenlab2)); in.skipBytes(2); in.read(er); short layerId = DataTools.bytesToShort(er, little); metadata.put("LayerID", new Short(layerId)); in.read(er); short layerType = DataTools.bytesToShort(er, little); metadata.put("LayerType", new Short(layerType)); in.read(er); short bitDepth = DataTools.bytesToShort(er, little); metadata.put("BitDepth", new Short(bitDepth)); in.read(er); short opacity = DataTools.bytesToShort(er, little); metadata.put("Opacity", new Short(opacity)); // not sure how many bytes to skip here in.skipBytes(10); in.read(toRead); long type = DataTools.bytesToLong(toRead, little); metadata.put("ImageType", new Long(type)); // not sure how many bytes to skip in.skipBytes(10); in.read(toRead); long timestamp = DataTools.bytesToLong(toRead, little); metadata.put("Timestamp", new Long(timestamp)); in.skipBytes(2); if (isOpenlab2 == true) { byte[] layerName = new byte[127]; in.read(layerName); metadata.put("LayerName", new String(layerName)); in.read(toRead); long timestampMS = DataTools.bytesToLong(toRead, little); metadata.put("Timestamp-MS", new Long(timestampMS)); in.skipBytes(1); byte[] notes = new byte[118]; in.read(notes); metadata.put("Notes", new String(notes)); } else in.skipBytes(123); } else if (tag == 69) { in.read(toRead); long platform = DataTools.bytesToLong(toRead, little); metadata.put("Platform", new Long(platform)); in.read(er); short units = DataTools.bytesToShort(er, little); metadata.put("Units", new Short(units)); in.read(er); short imageId = DataTools.bytesToShort(er, little); metadata.put("ID", new Short(imageId)); in.skipBytes(1); byte[] toRead2 = new byte[8]; double xOrigin = DataTools.readDouble(in, little); metadata.put("XOrigin", new Double(xOrigin)); double yOrigin = DataTools.readDouble(in, little); metadata.put("YOrigin", new Double(yOrigin)); double xScale = DataTools.readDouble(in, little); metadata.put("XScale", new Double(xScale)); double yScale = DataTools.readDouble(in, little); metadata.put("YScale", new Double(yScale)); in.skipBytes(1); byte[] other = new byte[31]; in.read(other); metadata.put("Other", new String(other)); } // Populate metadata store // The metadata store we're working with. MetadataStore store = getMetadataStore(); String type = "int8"; if (metadata.get("BitDepth") != null) { int bitDepth = ((Integer) metadata.get("BitDepth")).intValue(); if (bitDepth <= 8) type = "int8"; else if (bitDepth <= 16) type = "int16"; else type = "int32"; } store.setImage(null, (String) metadata.get("Timestamp"), null, null); // FIXME: There is a loss of precision here as we are down-casting from // double to float. store.setStageLabel(null, (Float) metadata.get("XOrigin"), (Float) metadata.get("YOrigin"), null, null); // FIXME: There is a loss of precision here as we are down-casting from // double to float. store.setDimensions((Float) metadata.get("XScale"), (Float) metadata.get("YScale"), null, null, null, null); in.seek(offset); // We need to poke at least one plane so that we can get "sizeX" and // "sizeY" set. to populate the pixels set. try { openImage(currentId, 0); } catch (FormatException e) { e.printStackTrace(); } store.setPixels(sizeX, sizeY, new Integer(numBlocks), new Integer(3), new Integer(1), type, new Boolean(!little), "XYCZT", null); } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/9505e643b52f7491e0055703a09512ad437442c0/OpenlabReader.java/clean/loci/formats/in/OpenlabReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2277, 1435, 1216, 1860, 288, 565, 316, 18, 16508, 12, 20, 1769, 565, 368, 787, 635, 6453, 326, 585, 1446, 565, 1160, 8526, 358, 1994, 273, 394, 1160, 63, 24, 15533, 565...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1208, 2277, 1435, 1216, 1860, 288, 565, 316, 18, 16508, 12, 20, 1769, 565, 368, 787, 635, 6453, 326, 585, 1446, 565, 1160, 8526, 358, 1994, 273, 394, 1160, 63, 24, 15533, 565...
o += " " + suffixes[i];
if(i < SizeUtil.suffixes.length) o += " " + SizeUtil.suffixes[i];
public static String formatSize(long sz) { // First determine suffix String[] suffixes = {"B", "KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"}; long s = 1; int i; for(i=0;i<suffixes.length;i++) { s *= 1024; if(s > sz) { break; // Smaller than multiplier [i] - use the previous one } } s /= 1024; // we use the previous unit if (s == 1) // Bytes? Then we don't need real numbers with a comma { return sz + " " + suffixes[0]; } else { double mantissa = (double)sz / (double)s; String o = Double.toString(mantissa); if(o.indexOf('.') == 3) o = o.substring(0, 3); else if((o.indexOf('.') > -1) && (o.indexOf('E') == -1) && (o.length() > 4)) o = o.substring(0, 4); o += " " + suffixes[i]; return o; } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/9eb0b58c7947a3a205743d39f05663a1e73b9279/SizeUtil.java/clean/src/freenet/support/SizeUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 1225, 12, 5748, 11262, 13, 288, 202, 202, 759, 5783, 4199, 3758, 9506, 202, 780, 8526, 18333, 273, 12528, 38, 3113, 315, 47, 17632, 15937, 49, 17632, 15937, 43, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 1225, 12, 5748, 11262, 13, 288, 202, 202, 759, 5783, 4199, 3758, 9506, 202, 780, 8526, 18333, 273, 12528, 38, 3113, 315, 47, 17632, 15937, 49, 17632, 15937, 43, ...
public void setLocalTbl(RubyIdPointer localTbl) { this.localTbl = localTbl;
public void setLocalTbl(int index, RubyId newId) { localTbl.set(index, newId);
public void setLocalTbl(RubyIdPointer localTbl) { this.localTbl = localTbl; }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/d69d4a4ad55400b629f71574f9f1c20c617cc2ca/RubyScope.java/buggy/org/jruby/runtime/RubyScope.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 27970, 22592, 12, 54, 10340, 548, 4926, 1191, 22592, 13, 288, 3639, 333, 18, 3729, 22592, 273, 1191, 22592, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 27970, 22592, 12, 54, 10340, 548, 4926, 1191, 22592, 13, 288, 3639, 333, 18, 3729, 22592, 273, 1191, 22592, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -10...
dumpElement("MARKER: 0x" + Integer.toHexString(marker) + " ");
if(dump) dumpElement("MARKER: 0x" + Integer.toHexString(marker) + " ");
public final Object readObject() throws ClassNotFoundException, IOException { if (this.useSubclassMethod) return readObjectOverride(); boolean was_deserializing; Object ret_val; was_deserializing = this.isDeserializing; boolean is_consumed = false; boolean old_mode = setBlockDataMode(false); this.isDeserializing = true; byte marker = this.realInputStream.readByte(); dumpElement("MARKER: 0x" + Integer.toHexString(marker) + " "); try { switch (marker) { case TC_ENDBLOCKDATA: { ret_val = null; is_consumed = true; break; } case TC_BLOCKDATA: case TC_BLOCKDATALONG: { if (marker == TC_BLOCKDATALONG) dumpElementln("BLOCKDATALONG"); else dumpElementln("BLOCKDATA"); readNextBlock(marker); throw new StreamCorruptedException("Unexpected blockData"); } case TC_NULL: { dumpElementln("NULL"); ret_val = null; break; } case TC_REFERENCE: { dumpElement("REFERENCE "); Integer oid = new Integer(this.realInputStream.readInt()); dumpElementln(Integer.toHexString(oid.intValue())); ret_val = ((ObjectIdentityWrapper) this.objectLookupTable.get(oid)).object; break; } case TC_CLASS: { dumpElementln("CLASS"); ObjectStreamClass osc = (ObjectStreamClass)readObject(); Class clazz = osc.forClass(); assignNewHandle(clazz); ret_val = clazz; break; } case TC_PROXYCLASSDESC: { dumpElementln("PROXYCLASS"); int n_intf = this.realInputStream.readInt(); String[] intfs = new String[n_intf]; for (int i = 0; i < n_intf; i++) { intfs[i] = this.realInputStream.readUTF(); System.out.println(intfs[i]); } boolean oldmode = setBlockDataMode(true); Class cl = resolveProxyClass(intfs); setBlockDataMode(oldmode); ObjectStreamClass osc = lookupClass(cl); assignNewHandle(osc); if (!is_consumed) { byte b = this.realInputStream.readByte(); if (b != TC_ENDBLOCKDATA) throw new IOException("Data annotated to class was not consumed." + b); } else is_consumed = false; ObjectStreamClass superosc = (ObjectStreamClass)readObject(); osc.setSuperclass(superosc); ret_val = osc; break; } case TC_CLASSDESC: { ObjectStreamClass osc = readClassDescriptor(); if (!is_consumed) { byte b = this.realInputStream.readByte(); if (b != TC_ENDBLOCKDATA) throw new IOException("Data annotated to class was not consumed." + b); } else is_consumed = false; osc.setSuperclass ((ObjectStreamClass)readObject()); ret_val = osc; break; } case TC_STRING: case TC_LONGSTRING: { dumpElement("STRING="); String s = this.realInputStream.readUTF(); dumpElementln(s); ret_val = processResolution(s, assignNewHandle(s)); break; } case TC_ARRAY: { dumpElementln("ARRAY"); ObjectStreamClass osc = (ObjectStreamClass)readObject(); Class componentType = osc.forClass().getComponentType(); dumpElement("ARRAY LENGTH="); int length = this.realInputStream.readInt(); dumpElementln (length + "; COMPONENT TYPE=" + componentType); Object array = Array.newInstance(componentType, length); int handle = assignNewHandle(array); readArrayElements(array, componentType); for (int i = 0, len = Array.getLength(array); i < len; i++) dumpElementln(" ELEMENT[" + i + "]=" + Array.get(array, i)); ret_val = processResolution(array, handle); break; } case TC_OBJECT: { dumpElementln("OBJECT"); ObjectStreamClass osc = (ObjectStreamClass)readObject(); Class clazz = osc.forClass(); if (!Serializable.class.isAssignableFrom(clazz)) throw new NotSerializableException (clazz + " is not Serializable, and thus cannot be deserialized."); if (Externalizable.class.isAssignableFrom(clazz)) { Externalizable obj = null; try { obj = (Externalizable)clazz.newInstance(); } catch (InstantiationException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); } catch (IllegalAccessException e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because class or " + "zero-argument constructor is not accessible"); } catch (NoSuchMethodError e) { throw new ClassNotFoundException ("Instance of " + clazz + " could not be created because zero-argument constructor is not defined"); } int handle = assignNewHandle(obj); boolean read_from_blocks = ((osc.getFlags() & SC_BLOCK_DATA) != 0); boolean oldmode = this.readDataFromBlock; if (read_from_blocks) setBlockDataMode(true); obj.readExternal(this); if (read_from_blocks) setBlockDataMode(oldmode); ret_val = processResolution(obj, handle); break; } // end if (Externalizable.class.isAssignableFrom (clazz)) // find the first non-serializable, non-abstract // class in clazz's inheritance hierarchy Class first_nonserial = clazz.getSuperclass(); while (Serializable.class.isAssignableFrom(first_nonserial) || Modifier.isAbstract(first_nonserial.getModifiers())) first_nonserial = first_nonserial.getSuperclass(); Object obj = null; obj = newObject(clazz, first_nonserial); if (obj == null) throw new ClassNotFoundException ("Instance of " + clazz + " could not be created"); int handle = assignNewHandle(obj); this.currentObject = obj; ObjectStreamClass[] hierarchy = inputGetObjectStreamClasses(clazz); for (int i = 0; i < hierarchy.length; i++) { this.currentObjectStreamClass = hierarchy[i]; dumpElementln("Reading fields of " + this.currentObjectStreamClass.getName ()); // XXX: should initialize fields in classes in the hierarchy // that aren't in the stream // should skip over classes in the stream that aren't in the // real classes hierarchy if (this.currentObjectStreamClass.hasReadMethod()) { fieldsAlreadyRead = false; boolean oldmode = setBlockDataMode(true); callReadMethod(obj, this.currentObjectStreamClass); setBlockDataMode(oldmode); dumpElement("ENDBLOCKDATA? "); try { // FIXME: XXX: This try block is to catch EOF which is // thrown for some objects. That indicates a bug in the logic. if (this.realInputStream.readByte() != TC_ENDBLOCKDATA) throw new IOException ("No end of block data seen for class with readObject (ObjectInputStream) method."); dumpElementln("yes"); } catch (EOFException e) { dumpElementln("no, got EOFException"); } catch (IOException e) { dumpElementln("no, got IOException"); } } else { readFields(obj, currentObjectStreamClass); } } this.currentObject = null; this.currentObjectStreamClass = null; ret_val = processResolution(obj, handle); break; } case TC_RESET: dumpElementln("RESET"); clearHandles(); ret_val = readObject(); break; case TC_EXCEPTION: { dumpElement("EXCEPTION="); Exception e = (Exception)readObject(); dumpElementln(e.toString()); clearHandles(); throw new WriteAbortedException("Exception thrown during writing of stream", e); } default: throw new IOException("Unknown marker on stream: " + marker); } } finally { setBlockDataMode(old_mode); this.isDeserializing = was_deserializing; if (! was_deserializing) { if (validators.size() > 0) invokeValidators(); } } return ret_val; }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/287ecb3eab399e579158e4cbd037261f67ffbc1b/ObjectInputStream.java/clean/libjava/java/io/ObjectInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 1033, 17362, 1435, 1216, 10403, 16, 1860, 225, 288, 565, 309, 261, 2211, 18, 1202, 1676, 1106, 1305, 13, 1377, 327, 17362, 6618, 5621, 565, 1250, 1703, 67, 5489, 24662, 6894, 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, 282, 1071, 727, 1033, 17362, 1435, 1216, 10403, 16, 1860, 225, 288, 565, 309, 261, 2211, 18, 1202, 1676, 1106, 1305, 13, 1377, 327, 17362, 6618, 5621, 565, 1250, 1703, 67, 5489, 24662, 6894, 3...
assertEquals("Unexpected number of history steps", 4, historySteps.size());
assertEquals("Unexpected number of history steps", 5, historySteps.size());
public void testExampleWorkflow() throws Exception { WorkflowQuery query; String workflowName = getClass().getResource("/samples/example.xml").toString(); assertTrue("canInitialize for workflow " + workflowName + " is false", workflow.canInitialize(workflowName, 1)); long workflowId = workflow.initialize(workflowName, 1, new HashMap()); String workorderName = workflow.getWorkflowName(workflowId); workflowDescriptor = workflow.getWorkflowDescriptor(workorderName); if (log.isDebugEnabled()) { log.debug("Name of workorder:" + workorderName); } assertTrue("Expected external-permission permA in step 1 not found", workflow.getSecurityPermissions(workflowId).contains("permA")); List currentSteps = workflow.getCurrentSteps(workflowId); assertEquals("Unexpected number of current steps", 1, currentSteps.size()); assertEquals("Unexpected current step", 1, ((Step) currentSteps.get(0)).getStepId()); List historySteps = workflow.getHistorySteps(workflowId); assertEquals("Unexpected number of history steps", 0, historySteps.size()); if (log.isDebugEnabled()) { log.debug("Perform Finish First Draft"); } workflow.doAction(workflowId, 1, Collections.EMPTY_MAP); int[] actions = workflow.getAvailableActions(workflowId, Collections.EMPTY_MAP); assertEquals(2, actions.length); historySteps = workflow.getHistorySteps(workflowId); assertEquals("Unexpected number of history steps", 1, historySteps.size()); Step historyStep = (Step) historySteps.get(0); assertEquals(USER_TEST, historyStep.getCaller()); assertNull(historyStep.getDueDate()); // check system date, add in a 1 second fudgefactor. assertTrue("history step finish date " + historyStep.getFinishDate() + " is in the future!", (historyStep.getFinishDate().getTime() - 1000) < System.currentTimeMillis()); logActions(actions); if (log.isDebugEnabled()) { log.debug("Perform Finish Foo"); } workflow.doAction(workflowId, 12, Collections.EMPTY_MAP); //Step lastHistoryStep = historyStep; historySteps = workflow.getHistorySteps(workflowId); assertEquals("Unexpected number of history steps", 2, historySteps.size()); //historyStep = (Step) historySteps.get(0); //assertEquals(lastHistoryStep.getId(), historyStep.getId()); if (log.isDebugEnabled()) { log.debug("Perform Finish Bar"); } workflow.doAction(workflowId, 13, Collections.EMPTY_MAP); actions = workflow.getAvailableActions(workflowId, Collections.EMPTY_MAP); assertEquals(1, actions.length); logActions(actions); if (log.isDebugEnabled()) { log.debug("Perform Finish Baz"); } workflow.doAction(workflowId, 14, Collections.EMPTY_MAP); actions = workflow.getAvailableActions(workflowId, Collections.EMPTY_MAP); logActions(actions); historySteps = workflow.getHistorySteps(workflowId); assertEquals("Unexpected number of history steps", 4, historySteps.size()); if (log.isDebugEnabled()) { log.debug("Perform Finish Editing"); } workflow.doAction(workflowId, 3, Collections.EMPTY_MAP); actions = workflow.getAvailableActions(workflowId, Collections.EMPTY_MAP); assertEquals(3, actions.length); logActions(actions); if (log.isDebugEnabled()) { log.debug("Perform Publish Doc"); } workflow.doAction(workflowId, 7, Collections.EMPTY_MAP); actions = workflow.getAvailableActions(workflowId, Collections.EMPTY_MAP); assertEquals(1, actions.length); logActions(actions); if (log.isDebugEnabled()) { log.debug("Perform Publish Document"); } workflow.doAction(workflowId, 11, Collections.EMPTY_MAP); actions = workflow.getAvailableActions(workflowId, Collections.EMPTY_MAP); assertEquals(0, actions.length); historySteps = workflow.getHistorySteps(workflowId); assertEquals("Unexpected number of history steps", 7, historySteps.size()); query = new WorkflowQuery(WorkflowQuery.OWNER, WorkflowQuery.CURRENT, WorkflowQuery.EQUALS, USER_TEST); try { List workflows = workflow.query(query); assertEquals("Unexpected number of workflow query results", 1, workflows.size()); WorkflowQuery queryLeft = new WorkflowQuery(WorkflowQuery.OWNER, WorkflowQuery.CURRENT, WorkflowQuery.EQUALS, USER_TEST); WorkflowQuery queryRight = new WorkflowQuery(WorkflowQuery.STATUS, WorkflowQuery.CURRENT, WorkflowQuery.EQUALS, "Finished"); query = new WorkflowQuery(queryLeft, WorkflowQuery.AND, queryRight); workflows = workflow.query(query); assertEquals("Unexpected number of workflow query results", 1, workflows.size()); } catch (QueryNotSupportedException ex) { System.out.println("query not supported"); } }
7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/40a565240bf030c3b78c11789795e391b9b0fa50/BaseFunctionalWorkflowTest.java/clean/src/test/com/opensymphony/workflow/spi/BaseFunctionalWorkflowTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10908, 8484, 1435, 1216, 1185, 288, 3639, 11363, 1138, 843, 31, 3639, 514, 6095, 461, 273, 2900, 7675, 588, 1420, 2932, 19, 7319, 19, 8236, 18, 2902, 20387, 10492, 5621, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 10908, 8484, 1435, 1216, 1185, 288, 3639, 11363, 1138, 843, 31, 3639, 514, 6095, 461, 273, 2900, 7675, 588, 1420, 2932, 19, 7319, 19, 8236, 18, 2902, 20387, 10492, 5621, ...
if (PermissionFinder.countByGroupsPermissions( permissions, groups) > 0) {
if (groups.size() > 0) { if (PermissionFinder.countByGroupsPermissions( permissions, groups) > 0) {
public boolean hasUserPermissions( String userId, String groupId, String actionId, String[] resourceIds, PermissionCheckerBag permissionCheckerBag) throws PortalException, SystemException { long start = 0; if (_log.isDebugEnabled()) { start = System.currentTimeMillis(); } // Return false if there is no resources if ((Validator.isNull(actionId)) || (resourceIds == null) || (resourceIds.length == 0)) { return false; } List permissions = PermissionFinder.findByA_R(actionId, resourceIds); // Return false if there are no permissions if (permissions.size() == 0) { return false; } // Record logs with the first resource id String resourceId = resourceIds[0]; logUserPermission(userId, actionId, resourceId, start, 1); if (_log.isDebugEnabled()) { start = System.currentTimeMillis(); } // Is the user directly connected to one of the permissions? if (PermissionFinder.countByUsersPermissions(permissions, userId) > 0) { return true; } logUserPermission(userId, actionId, resourceId, start, 2); if (_log.isDebugEnabled()) { start = System.currentTimeMillis(); } // If we are checking permissions an object that belongs to a community, // then it's only necessary to check the group that represents the // community and not all the groups that the user belongs to. This is so // because an object cannot belong to more than one community. List userGroups = new ArrayList(); //List userGroups = UserUtil.getGroups(userId); if (Validator.isNotNull(groupId)) { userGroups.add(GroupUtil.findByPrimaryKey(groupId)); } List userOrgs = permissionCheckerBag.getUserOrgs(); List userOrgGroups = permissionCheckerBag.getUserOrgGroups(); List groups = new ArrayList(userGroups.size() + userOrgGroups.size()); groups.addAll(userGroups); groups.addAll(userOrgGroups); logUserPermission(userId, actionId, resourceId, start, 3); if (_log.isDebugEnabled()) { start = System.currentTimeMillis(); } // Check the organization and community intersection table. Break out of // this method if the user has one of the permissions set at the // intersection because that takes priority. if (checkOrgGroupPermission(userOrgs, userGroups, permissions)) { return true; } logUserPermission(userId, actionId, resourceId, start, 4); if (_log.isDebugEnabled()) { start = System.currentTimeMillis(); } // Is the user associated with groups or organizations that are directly // connected to one of the permissions? if (_log.isDebugEnabled()) { start = System.currentTimeMillis(); } if (PermissionFinder.countByGroupsPermissions( permissions, groups) > 0) { return true; } logUserPermission(userId, actionId, resourceId, start, 5); if (_log.isDebugEnabled()) { start = System.currentTimeMillis(); } // Is the user connected to one of the permissions via user, group, or // organization roles? if (PermissionFinder.countByUsersRoles(permissions, userId) > 0) { return true; } if (PermissionFinder.countByGroupsRoles(permissions, groups) > 0) { return true; } logUserPermission(userId, actionId, resourceId, start, 6); return false; }
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/4fcd197827307e814716cdcd91851328a52e0b2c/PermissionLocalServiceImpl.java/clean/portal-ejb/src/com/liferay/portal/service/impl/PermissionLocalServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 711, 1299, 6521, 12, 1082, 202, 780, 6249, 16, 514, 6612, 16, 514, 1301, 548, 16, 1082, 202, 780, 8526, 1058, 2673, 16, 8509, 8847, 5013, 4132, 8847, 5013, 13, 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, 1250, 711, 1299, 6521, 12, 1082, 202, 780, 6249, 16, 514, 6612, 16, 514, 1301, 548, 16, 1082, 202, 780, 8526, 1058, 2673, 16, 8509, 8847, 5013, 4132, 8847, 5013, 13, 202, 202,...
Value name; try { name = new Value(collection.getURI().toString().getBytes("UTF-8")); } catch (UnsupportedEncodingException uee) { LOG.debug(uee); name = new Value(collection.getURI().toString().getBytes()); }
Value name = new CollectionStore.CollectionKey(collection.getURI().toString());
public void saveCollection(Txn transaction, Collection collection) throws PermissionDeniedException { if (collection == null) { LOG.error("NativeBroker.saveCollection called with collection == null! Aborting."); return; } if (readOnly) throw new PermissionDeniedException(DATABASE_IS_READ_ONLY); if (!pool.isInitializing()) // don't cache the collection during initialization: SecurityManager is not yet online pool.getCollectionsCache().add(collection); Lock lock = collectionsDb.getLock(); try { lock.acquire(Lock.WRITE_LOCK); if (collection.getId() == Collection.UNKNOWN_COLLECTION_ID) collection.setId(getNextCollectionId(transaction)); Value name; try { name = new Value(collection.getURI().toString().getBytes("UTF-8")); } catch (UnsupportedEncodingException uee) { LOG.debug(uee); name = new Value(collection.getURI().toString().getBytes()); } try { final VariableByteOutputStream ostream = new VariableByteOutputStream(8); collection.write(this, ostream); final long addr = collectionsDb.put(transaction, name, ostream.data(), true); if (addr == BFile.UNKNOWN_ADDRESS) { //TODO : exception !!! -pb LOG.warn("could not store collection data for '" + collection.getURI()+ "'"); return; } collection.setAddress(addr); ostream.close(); } catch (IOException ioe) { LOG.debug(ioe); } } catch (ReadOnlyException e) { LOG.warn(DATABASE_IS_READ_ONLY); } catch (LockException e) { LOG.warn("Failed to acquire lock on " + collectionsDb.getFile().getName(), e); } finally { lock.release(); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/7055be57b47eaf0c34e2ff29779c1a9cfce4c000/NativeBroker.java/buggy/src/org/exist/storage/NativeBroker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1923, 2532, 12, 13789, 2492, 16, 2200, 1849, 13, 1216, 8509, 15877, 288, 3639, 309, 261, 5548, 422, 446, 13, 288, 5411, 2018, 18, 1636, 2932, 9220, 11194, 18, 5688, 2532, 2566,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1923, 2532, 12, 13789, 2492, 16, 2200, 1849, 13, 1216, 8509, 15877, 288, 3639, 309, 261, 5548, 422, 446, 13, 288, 5411, 2018, 18, 1636, 2932, 9220, 11194, 18, 5688, 2532, 2566,...
getMessageUI().setBusy(true);
getMessageUI().setBusy(true);
public void actionPerformed(ActionEvent e) { if (getMessageUI() != null) getMessageUI().setBusy(true); FolderDisplayUI fw = getFolderDisplayUI(); if (fw != null) fw.setBusy(true);; saveMessageToFile(); if (fw != null) fw.setBusy(false); if (getMessageUI() != null) getMessageUI().setBusy(false); }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/55c2ef8139608f0f93fb72272ca8300eb9ac663e/MessageProxy.java/buggy/src/net/suberic/pooka/gui/MessageProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1377, 309, 261, 24906, 5370, 1435, 480, 446, 13, 202, 24906, 5370, 7675, 542, 29289, 12, 3767, 1769, 1377, 12623, 4236, 5370, 7600, 273, 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, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1377, 309, 261, 24906, 5370, 1435, 480, 446, 13, 202, 24906, 5370, 7675, 542, 29289, 12, 3767, 1769, 1377, 12623, 4236, 5370, 7600, 273, 29...
provider = initDataSocket(command);
provider = initDataSocket(command,commandReply);
public void uploadFile(File fromFile,FTPFile toFile) throws IOException,FtpWorkflowException,FtpIOException { StoreCommand command = new StoreCommand(Command.STOR,fromFile,toFile); SocketProvider provider = null; if (getConnectionType() != FTPConnection.FTP_CONNECTION && getConnectionType() != FTPConnection.IMPLICIT_SSL_FTP_CONNECTION) { Command pbsz = new Command(Command.PBSZ, "0"); (sendCommand(pbsz)).dumpReply(); Command prot = new Command(Command.PROT, "P"); (sendCommand(prot)).dumpReply(); } if(isPassiveMode()) { provider = initDataSocket(command); } else { provider = sendPortCommand(command); } command.setDataSocket(provider); //INFO response from ControllConnection is ignored command.fetchDataConnectionReply(); }
11835 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11835/f58ba0cd4424ba13d373222a4ba0d4f95c26cf50/FTPConnection.java/buggy/ftp4che14/src/java/org/ftp4che/FTPConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 29661, 12, 812, 31000, 16, 17104, 812, 24381, 13, 1216, 1860, 16, 42, 6834, 8484, 503, 16, 42, 6834, 14106, 565, 288, 377, 202, 377, 202, 2257, 2189, 1296, 273, 394, 4994, 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, 377, 1071, 918, 29661, 12, 812, 31000, 16, 17104, 812, 24381, 13, 1216, 1860, 16, 42, 6834, 8484, 503, 16, 42, 6834, 14106, 565, 288, 377, 202, 377, 202, 2257, 2189, 1296, 273, 394, 4994, 21...
ToolRegistry toolRegistry = ToolRegistry.getRegistry();
IToolRegistry toolRegistry = NicoUITools.getRegistry();
public void createPartControl(Composite parent) { fTableViewer = new TableViewer(parent, SWT.MULTI | SWT.V_SCROLL); fTableViewer.getTable().setLinesVisible(false); fTableViewer.getTable().setHeaderVisible(false); new TableColumn(fTableViewer.getTable(), SWT.DEFAULT); fTableViewer.getTable().addControlListener(new ControlAdapter() { public void controlResized(ControlEvent e) { // adapt the column width to the width of the table Table table = fTableViewer.getTable(); Rectangle area = table.getClientArea(); TableColumn column = table.getColumn(0); column.setWidth(area.width-3); // it looks better with a small gap } }); fTableViewer.setContentProvider(new ViewContentProvider()); fTableViewer.setLabelProvider(new TableLabelProvider()); createActions(); contributeToActionBars(); // listen on console changes ToolRegistry toolRegistry = ToolRegistry.getRegistry(); connect(toolRegistry.getActiveToolSession(getViewSite().getPage()).getProcess()); fToolRegistryListener = new IToolRegistryListener() { public void toolSessionActivated(ToolSessionInfo info) { final ToolProcess process = info.getProcess(); StatetPlugin.getDisplay().asyncExec(new Runnable() { public void run() { connect(process); } }); } public void toolSessionClosed(ToolSessionInfo info) { } }; toolRegistry.addListener(fToolRegistryListener, getViewSite().getPage()); }
47575 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47575/f3ec0418b7a8f15b5fabe0deb56adb554710e666/QueueView.java/buggy/de.walware.statet.nico.ui/src/de/walware/statet/nico/ui/views/QueueView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 9506, 202, 74, 1388, 18415, 273, 394, 3555, 18415, 12, 2938, 16, 348, 8588, 18, 26588, 571, 348, 8588, 18, 58, 67, 2312, 14555, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 1988, 3367, 12, 9400, 982, 13, 288, 9506, 202, 74, 1388, 18415, 273, 394, 3555, 18415, 12, 2938, 16, 348, 8588, 18, 26588, 571, 348, 8588, 18, 58, 67, 2312, 14555, ...
getEditorHistory().saveState(memento.createChild(IWorkbenchConstants.TAG_MRU_LIST));
result.add(getEditorHistory().saveState(memento.createChild(IWorkbenchConstants.TAG_MRU_LIST)));
private void saveState(IMemento memento) { // Save the version number. memento.putString(IWorkbenchConstants.TAG_VERSION, VERSION_STRING[1]); // Save the workbench windows. IWorkbenchWindow[] windows = getWorkbenchWindows(); for (int nX = 0; nX < windows.length; nX++) { WorkbenchWindow window = (WorkbenchWindow) windows[nX]; IMemento childMem = memento.createChild(IWorkbenchConstants.TAG_WINDOW); window.saveState(childMem); } getEditorHistory().saveState(memento.createChild(IWorkbenchConstants.TAG_MRU_LIST)); //$NON-NLS-1$ // Save perspective history. getPerspectiveHistory().saveState(memento.createChild(IWorkbenchConstants.TAG_PERSPECTIVE_HISTORY)); //$NON-NLS-1$ }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/625d7dc219fd2a8f50011e9460f57762160bd74d/Workbench.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1923, 1119, 12, 3445, 820, 83, 312, 820, 83, 13, 288, 202, 202, 759, 7074, 326, 1177, 1300, 18, 202, 202, 81, 820, 83, 18, 458, 780, 12, 45, 2421, 22144, 2918, 18, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1923, 1119, 12, 3445, 820, 83, 312, 820, 83, 13, 288, 202, 202, 759, 7074, 326, 1177, 1300, 18, 202, 202, 81, 820, 83, 18, 458, 780, 12, 45, 2421, 22144, 2918, 18, 7...
return id();
return RubyFixnum.newFixnum(ruby, id);
public RubyFixnum to_i() { return id(); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/a387d516d26e5f7ff453c52c2282ee687da0a99b/RubySymbol.java/clean/org/jruby/RubySymbol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 8585, 2107, 358, 67, 77, 1435, 288, 3639, 327, 19817, 8585, 2107, 18, 2704, 8585, 2107, 12, 27768, 16, 612, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 8585, 2107, 358, 67, 77, 1435, 288, 3639, 327, 19817, 8585, 2107, 18, 2704, 8585, 2107, 12, 27768, 16, 612, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
return new longArray.factory() { public LongReferenceArray LongReferenceArray(dist d, long c) { return new LongArray_c( d, c, true); } public LongReferenceArray LongReferenceArray(dist d, longArray.pointwiseOp f) { return new LongArray_c( d, f, true); } public longArray longValueArray(dist d, long c) { return new LongArray_c(d, c, true, false); } public longArray longValueArray(dist d, longArray.pointwiseOp f) { return new LongArray_c(d, f, true, false); } }; }
return new longArray.factory() { public LongReferenceArray LongReferenceArray(dist d, long c) { return new LongArray_c( d, c, true); } public LongReferenceArray LongReferenceArray(dist d, longArray.pointwiseOp f) { return new LongArray_c( d, f, true); } public longArray longValueArray(dist d, long c) { return new LongArray_c(d, c, true, false); } public longArray longValueArray(dist d, longArray.pointwiseOp f) { return new LongArray_c(d, f, true, false); } }; }
public longArray.factory getLongArrayFactory() { return new longArray.factory() { public LongReferenceArray LongReferenceArray(dist d, long c) { return new LongArray_c( d, c, true); } public LongReferenceArray LongReferenceArray(dist d, longArray.pointwiseOp f) { return new LongArray_c( d, f, true); } public longArray longValueArray(dist d, long c) { return new LongArray_c(d, c, true, false); } public longArray longValueArray(dist d, longArray.pointwiseOp f) { return new LongArray_c(d, f, true, false); } }; }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/acfeebc11baafec801adc2146699b1f17047c763/DefaultRuntime_c.java/buggy/x10.runtime/src/x10/runtime/DefaultRuntime_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 1525, 1076, 18, 6848, 11105, 1076, 1733, 1435, 288, 13491, 327, 394, 1525, 1076, 18, 6848, 1435, 288, 27573, 1071, 3407, 2404, 1076, 3407, 2404, 1076, 12, 4413, 302, 16, 1525, 276, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 1525, 1076, 18, 6848, 11105, 1076, 1733, 1435, 288, 13491, 327, 394, 1525, 1076, 18, 6848, 1435, 288, 27573, 1071, 3407, 2404, 1076, 3407, 2404, 1076, 12, 4413, 302, 16, 1525, 276, ...
mainPassword = p.getProperty("password"); if (mainPassword != null && mainPassword.length() > 1) mainPassword = mainPassword.trim();
tmp = p.getProperty("password"); if (tmp != null && tmp.length() > 1 && mainPassword == null) mainPassword = tmp.trim();
public static void getConnProperties(String connfile) { URL confInfo; Properties p = new Properties(); try { confInfo = new File(connfile).toURL(); p.load(confInfo.openStream()); mainHost = p.getProperty("host"); if (mainHost != null && mainHost.length() > 1) mainHost = mainHost.trim(); mainPort = p.getProperty("port"); if (mainPort != null && mainPort.length() > 1) mainPort = mainPort.trim(); mainDatabase = p.getProperty("databaseName"); if (mainDatabase != null && mainDatabase.length() > 1) mainDatabase = mainDatabase.trim(); mainUser = p.getProperty("user"); if (mainUser != null && mainUser.length() > 1) mainUser = mainUser.trim(); mainPassword = p.getProperty("password"); if (mainPassword != null && mainPassword.length() > 1) mainPassword = mainPassword.trim(); mainDatabaseType = p.getProperty("databaseType"); if (mainDatabaseType != null && mainDatabaseType.length() > 1) mainDatabaseType = mainDatabaseType.trim(); mainConfiguration = p.getProperty("alternateConfigurationFile"); if (mainConfiguration != null && mainConfiguration.length() > 1) { mainConfiguration = mainConfiguration.trim(); } } catch (java.net.MalformedURLException e) { mainLogger.warning("Could not load connection file " + connfile + " MalformedURLException: " + e); } catch (java.io.IOException e) { mainLogger.warning("Could not load connection file " + connfile + " IOException: " + e); } confinUse = connfile; }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/7aedb2cbeb89cb9ffa24f7163a3334a10ad04a21/MartShell.java/clean/src/java/org/ensembl/mart/shell/MartShell.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 336, 3543, 2297, 12, 780, 1487, 768, 13, 288, 202, 202, 1785, 2195, 966, 31, 202, 202, 2297, 293, 273, 394, 6183, 5621, 202, 202, 698, 288, 1082, 202, 3923, 966, 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, 760, 918, 336, 3543, 2297, 12, 780, 1487, 768, 13, 288, 202, 202, 1785, 2195, 966, 31, 202, 202, 2297, 293, 273, 394, 6183, 5621, 202, 202, 698, 288, 1082, 202, 3923, 966, 2...
body.append(fact.createLoad(paramType, pos));
body.append(InstructionFactory.createLoad(paramType, pos));
private static LazyMethodGen makeDispatcher( LazyClassGen onGen, String dispatchName, ResolvedMember superMethod, BcelWorld world, boolean isSuper) { Type[] paramTypes = BcelWorld.makeBcelTypes(superMethod.getParameterTypes()); Type returnType = BcelWorld.makeBcelType(superMethod.getReturnType()); int modifiers = Modifier.PUBLIC; if (onGen.isInterface()) modifiers |= Modifier.ABSTRACT; LazyMethodGen mg = new LazyMethodGen( modifiers, returnType, dispatchName, paramTypes, TypeX.getNames(superMethod.getExceptions()), onGen); InstructionList body = mg.getBody(); if (onGen.isInterface()) return mg; // assert (!superMethod.isStatic()) InstructionFactory fact = onGen.getFactory(); int pos = 0; body.append(fact.createThis()); pos++; for (int i = 0, len = paramTypes.length; i < len; i++) { Type paramType = paramTypes[i]; body.append(fact.createLoad(paramType, pos)); pos+=paramType.getSize(); } if (isSuper) { body.append(Utility.createSuperInvoke(fact, world, superMethod)); } else { body.append(Utility.createInvoke(fact, world, superMethod)); } body.append(fact.createReturn(returnType)); return mg; }
7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/990faf8f05daeac1a2ce1de47d832905d3eb1c5e/BcelTypeMunger.java/clean/org.aspectj/modules/weaver/src/org/aspectj/weaver/bcel/BcelTypeMunger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 12805, 1305, 7642, 1221, 6681, 12, 202, 202, 14443, 797, 7642, 603, 7642, 16, 202, 202, 780, 3435, 461, 16, 202, 202, 12793, 4419, 2240, 1305, 16, 202, 202, 38, 2183, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 12805, 1305, 7642, 1221, 6681, 12, 202, 202, 14443, 797, 7642, 603, 7642, 16, 202, 202, 780, 3435, 461, 16, 202, 202, 12793, 4419, 2240, 1305, 16, 202, 202, 38, 2183, 18...
public static RubyFloat sin(IRubyObject recv, IRubyObject other) { double x = RubyNumeric.numericValue(other).getDoubleValue(); return RubyFloat.newFloat(recv.getRuntime(), Math.sin(x));
public static RubyFloat sin(IRubyObject recv, RubyNumeric x) { return RubyFloat.newFloat(recv.getRuntime(), Math.sin(x.getDoubleValue()));
public static RubyFloat sin(IRubyObject recv, IRubyObject other) { double x = RubyNumeric.numericValue(other).getDoubleValue(); return RubyFloat.newFloat(recv.getRuntime(), Math.sin(x)); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyMath.java/buggy/src/org/jruby/RubyMath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 4723, 5367, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 1308, 13, 288, 202, 9056, 619, 273, 19817, 9902, 18, 5246, 620, 12, 3011, 2934, 588, 5265, 620, 5621, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 4723, 5367, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 1308, 13, 288, 202, 9056, 619, 273, 19817, 9902, 18, 5246, 620, 12, 3011, 2934, 588, 5265, 620, 5621, 363...
PermissionLevel temp = (PermissionLevel) defaultPermissionsMap.get(typeUuid); if (temp != null){ return temp; }
private PermissionLevel getDefaultPermissionLevel(final String typeUuid){ if (typeUuid == null) { throw new IllegalArgumentException("Null Argument"); } if (LOG.isDebugEnabled()){ LOG.debug("getDefaultPermissionLevel executing with typeUuid: " + typeUuid); } PermissionLevel temp = (PermissionLevel) defaultPermissionsMap.get(typeUuid); if (temp != null){ return temp; } HibernateCallback hcb = new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { Query q = session.getNamedQuery(QUERY_BY_TYPE_UUID); q.setParameter("typeUuid", typeUuid); return q.uniqueResult(); } }; PermissionLevel returnedLevel = (PermissionLevel) getHibernateTemplate().execute(hcb); if (returnedLevel != null){ defaultPermissionsMap.put(typeUuid, returnedLevel); } return returnedLevel; }
52248 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52248/7a08a4c383c7f0e2f9ea18c864db86b42b1d17cb/PermissionLevelManagerImpl.java/clean/messageforums-component-shared/src/java/org/sakaiproject/component/app/messageforums/PermissionLevelManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 8509, 2355, 4829, 5041, 2355, 12, 6385, 514, 618, 5897, 15329, 9506, 202, 430, 261, 723, 5897, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 2041, 5067, 8863, 202, 202, 97, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 8509, 2355, 4829, 5041, 2355, 12, 6385, 514, 618, 5897, 15329, 9506, 202, 430, 261, 723, 5897, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 2041, 5067, 8863, 202, 202, 97, ...
info = info.next();
return promoteTypeInfo(info, i);
public TypeInfo typeInfo(Type type, TypeDictionary typedefDictionary) { // Because typedefs of pointer types can show up at any point, // walk the pointer chain looking for a typedef name that is in // the TypeInfo map. int pointerDepth = type.pointerDepth(); for (int i = 0; i <= pointerDepth; i++) { String name = type.getName(); if (name != null) { TypeInfo info = (TypeInfo) typeInfoMap.get(name); while (info != null) { if (info.name().equals(name) && info.pointerDepth() == i) { return info; } info = info.next(); } } if (type.isCompound()) { // Try struct name as well name = type.asCompound().getStructName(); if (name != null) { TypeInfo info = (TypeInfo) typeInfoMap.get(name); while (info != null) { if (info.name().equals(name) && info.pointerDepth() == i) { return info; } info = info.next(); } } } // Try all typedef names that map to this type Set entrySet = typedefDictionary.entrySet(); for (Iterator iter = entrySet.iterator(); iter.hasNext(); ) { Map.Entry entry = (Map.Entry) iter.next(); // "eq" equality is OK to use here since all types have been canonicalized if (entry.getValue() == type) { name = (String) entry.getKey(); TypeInfo info = (TypeInfo) typeInfoMap.get(name); while (info != null) { if (info.name().equals(name) && info.pointerDepth() == i) { return info; } info = info.next(); } } } if (type.isPointer()) { type = type.asPointer().getTargetType(); } } return null; }
50087 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50087/1754f08ec0fb62ecd23f1ec3ec7c94da9a44de7a/JavaConfiguration.java/clean/src/java/com/sun/gluegen/JavaConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1412, 966, 23112, 12, 559, 618, 16, 1412, 10905, 618, 536, 10905, 13, 288, 565, 368, 15191, 618, 12537, 434, 4407, 1953, 848, 2405, 731, 622, 1281, 1634, 16, 565, 368, 5442, 326, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1412, 966, 23112, 12, 559, 618, 16, 1412, 10905, 618, 536, 10905, 13, 288, 565, 368, 15191, 618, 12537, 434, 4407, 1953, 848, 2405, 731, 622, 1281, 1634, 16, 565, 368, 5442, 326, ...
for(Iterator it = linkList.iterator();
for(final Iterator it = linkList.iterator();
public Vector getLinkList() { Vector newList = new Vector(); if (linkList == null) return newList; for(Iterator it = linkList.iterator(); it.hasNext();) { newList.add(it.next()); } return newList; }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/Index.java/buggy/src/thaw/plugins/index/Index.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5589, 15545, 682, 1435, 202, 95, 202, 202, 5018, 23605, 273, 394, 5589, 5621, 202, 202, 430, 261, 1232, 682, 422, 446, 13, 1082, 202, 2463, 23605, 31, 202, 202, 1884, 12, 3198...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5589, 15545, 682, 1435, 202, 95, 202, 202, 5018, 23605, 273, 394, 5589, 5621, 202, 202, 430, 261, 1232, 682, 422, 446, 13, 1082, 202, 2463, 23605, 31, 202, 202, 1884, 12, 3198...
public static double jsFunction_setUTCMinutes(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeTime(thisObj, args, 3, false, funObj);
private double jsFunction_setUTCMinutes(Object[] args) { return makeTime(args, 3, false);
public static double jsFunction_setUTCMinutes(Context cx, Scriptable thisObj, Object[] args, Function funObj) { return makeTime(thisObj, args, 3, false, funObj); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/73de18d72e0c8f14512bd8931af25545029f649a/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 3828, 2083, 67, 542, 11471, 13050, 12, 1042, 9494, 16, 4766, 5375, 22780, 15261, 16, 4766, 5375, 1033, 8526, 833, 16, 4766, 5375, 4284, 9831, 2675, 13, 565, 288, 3639, 32...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 3828, 2083, 67, 542, 11471, 13050, 12, 1042, 9494, 16, 4766, 5375, 22780, 15261, 16, 4766, 5375, 1033, 8526, 833, 16, 4766, 5375, 4284, 9831, 2675, 13, 565, 288, 3639, 32...
public void createControl( Composite parent ) { Composite container = new Composite( parent, SWT.NONE ); GridLayout gridLayout = new GridLayout( ); gridLayout.numColumns = 3; container.setLayout( gridLayout ); new Label( container, SWT.NONE ).setText( LABEL_DISPLAY_NAME ); nameText = createText( container, 2, 1 ); if ( module != null && module.getProperty( ModuleHandle.DISPLAY_NAME_PROP ) != null ) nameText.setText( module.getDisplayName( ) ); nameText.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { checkStatus( ); } } ); new Label( container, SWT.NONE ).setText( LABEL_DESCRIPTION ); descText = createText( container, 2, 5 ); if ( module != null && module.getProperty( ModuleHandle.DESCRIPTION_PROP ) != null ) descText.setText( (String) module.getProperty( ModuleHandle.DESCRIPTION_PROP ) ); descText.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { checkStatus( ); } } ); new Label( container, SWT.NONE ).setText( LABEL_IMAGE ); previewImageText = createText( container, 1, 1, SWT.BORDER ); if ( module != null && module.getIconFile( ) != null ) previewImageText.setText( module.getIconFile( ) ); previewImageText.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { checkStatus( ); validate( ); } } ); Button chooseBtn = new Button( container, SWT.NONE ); chooseBtn.setText( BTN_CHOOSE ); chooseBtn.addSelectionListener( new SelectionListener( ) { public void widgetSelected( SelectionEvent e ) { String fileName = null; AddImageResourceFileFolderSelectionDialog dlg = new AddImageResourceFileFolderSelectionDialog( ); if ( dlg.open( ) == Window.OK ) { fileName = dlg.getPath( ); previewImageText.setText( fileName ); } } public void widgetDefaultSelected( SelectionEvent e ) { } } ); nameText.forceFocus( ); setControl( container ); UIUtil.bindHelp( getControl( ), IHelpContextIds.PUBLISH_TEMPLATE_WIZARD_ID ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/61eb8c82e3d1b22b800d005a822e6f379b0bcf9d/WizardReportSettingPage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardReportSettingPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 1478, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 3744, 3068, 3744, 273, 394, 7145,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 3367, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 1478, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 3744, 3068, 3744, 273, 394, 7145,...
protected NodeImpl internalAddChildNode(QName nodeName, NodeTypeImpl nodeType, String uuid)
protected NodeImpl internalAddChildNode(QName nodeName, NodeTypeImpl nodeType)
protected NodeImpl internalAddChildNode(QName nodeName, NodeTypeImpl nodeType, String uuid) throws ItemExistsException, ConstraintViolationException, RepositoryException { Path nodePath; try { nodePath = Path.create(getPrimaryPath(), nodeName, true); } catch (MalformedPathException e) { // should never happen String msg = "internal error: invalid path " + safeGetJCRPath(); log.debug(msg); throw new RepositoryException(msg, e); } NodeDefImpl def; try { def = getApplicableChildNodeDef(nodeName, nodeType == null ? null : nodeType.getQName()); } catch (RepositoryException re) { String msg = "no definition found in parent node's node type for new node"; log.debug(msg); throw new ConstraintViolationException(msg, re); } if (nodeType == null) { // use default node type nodeType = (NodeTypeImpl) def.getDefaultPrimaryType(); } // check for name collisions/* try { Item item = itemMgr.getItem(nodePath); if (!item.isNode()) { // there's already a property with that name throw new ItemExistsException(itemMgr.safeGetJCRPath(nodePath)); } else { // there's already a node with that name // check same-name sibling setting of both new and existing node if (!def.allowSameNameSibs() || !((NodeImpl) item).getDefinition().allowSameNameSibs()) { throw new ItemExistsException(itemMgr.safeGetJCRPath(nodePath)); } } } catch (PathNotFoundException pnfe) { // no name collision }*/ NodeState thisState = (NodeState) state; if (thisState.hasPropertyEntry(nodeName)) { // there's already a property with that name throw new ItemExistsException(itemMgr.safeGetJCRPath(nodePath)); } NodeState.ChildNodeEntry cne = thisState.getChildNodeEntry(nodeName, 1); if (cne != null) { // there's already a child node entry with that name; // check same-name sibling setting of new node if (!def.allowSameNameSibs()) { throw new ItemExistsException(itemMgr.safeGetJCRPath(nodePath)); } // check same-name sibling setting of existing node NodeId newId = new NodeId(cne.getUUID()); if (!((NodeImpl) itemMgr.getItem(newId)).getDefinition().allowSameNameSibs()) { throw new ItemExistsException(itemMgr.safeGetJCRPath(nodePath)); } } // check protected flag of parent (i.e. this) node if (getDefinition().isProtected()) { String msg = safeGetJCRPath() + ": cannot add a child to a protected node"; log.debug(msg); throw new ConstraintViolationException(msg); } // now do create the child node return createChildNode(nodeName, def, nodeType, uuid); }
49304 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49304/053727fcf6beaf90094af71c92ee5f3594f7cded/NodeImpl.java/buggy/src/java/org/apache/jackrabbit/core/NodeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 2029, 2828, 2713, 986, 25550, 12, 13688, 7553, 16, 20896, 2828, 9507, 13, 5411, 1216, 4342, 4002, 503, 16, 10770, 27052, 16, 13367, 288, 3639, 2666, 20758, 31, 3639, 775, 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, 4750, 2029, 2828, 2713, 986, 25550, 12, 13688, 7553, 16, 20896, 2828, 9507, 13, 5411, 1216, 4342, 4002, 503, 16, 10770, 27052, 16, 13367, 288, 3639, 2666, 20758, 31, 3639, 775, 288, 5411, ...
if (e.isPublic())
else if (e.isPublic())
private void visibility(ProgramElementDoc e) { opt.w.print(stereotype(e, 'l')); if (!opt.showVisibility) return; if (e.isPrivate()) opt.w.print('-'); if (e.isPublic()) opt.w.print('+'); if (e.isProtected()) opt.w.print('#'); if (e.isPackagePrivate()) opt.w.print('$'); opt.w.print(' '); }
47201 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47201/cc2052d26124e25c8a63a7bc915d225d263c9e3a/ClassInfo.java/clean/src/org/umlgraph/doclet/ClassInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 9478, 12, 9459, 1046, 1759, 425, 13, 288, 202, 202, 3838, 18, 91, 18, 1188, 12, 334, 822, 10570, 12, 73, 16, 296, 80, 6134, 1769, 202, 202, 430, 16051, 3838, 18, 4500,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 9478, 12, 9459, 1046, 1759, 425, 13, 288, 202, 202, 3838, 18, 91, 18, 1188, 12, 334, 822, 10570, 12, 73, 16, 296, 80, 6134, 1769, 202, 202, 430, 16051, 3838, 18, 4500,...
if (!Modifier.isPublic(methods[i].getModifiers())) {
if (getMethodsCalled ? !Modifier.isPublic(methods[i].getModifiers()) : methods[i].getDeclaringClass() != clazz) {
static Method[] getMethodList(Class clazz) { Method[] cached = methodsCache; // get once to avoid synchronization if (cached != null && cached[0].getDeclaringClass() == clazz) return cached; Method[] methods = clazz.getDeclaredMethods(); int count = 0; for (int i=0; i < methods.length; i++) { if (!Modifier.isPublic(methods[i].getModifiers())) { methods[i] = null; } else { count++; } } Method[] result = new Method[count]; int j=0; for (int i=0; i < methods.length; i++) { if (methods[i] != null) result[j++] = methods[i]; } if (result.length > 0 && Context.isCachingEnabled) methodsCache = result; return result; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/cd8ce490e8d535c1dba204f5d14d038ad808fd76/FunctionObject.java/clean/js/rhino/src/org/mozilla/javascript/FunctionObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 2985, 8526, 6272, 682, 12, 797, 4003, 13, 288, 3639, 2985, 8526, 3472, 273, 2590, 1649, 31, 368, 336, 3647, 358, 4543, 24488, 3639, 309, 261, 7097, 480, 446, 597, 3472, 63, 20, 800...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 2985, 8526, 6272, 682, 12, 797, 4003, 13, 288, 3639, 2985, 8526, 3472, 273, 2590, 1649, 31, 368, 336, 3647, 358, 4543, 24488, 3639, 309, 261, 7097, 480, 446, 597, 3472, 63, 20, 800...
if(log.isDebugEnabled()) log.debug("calling request handler (" + (request_handler != null? request_handler.getClass().getName() : "null") + ") with request " + hdr.id);
if(log.isTraceEnabled()) log.trace("calling request handler (" + (request_handler != null? request_handler.getClass().getName() : "null") + ") with request " + hdr.id);
private void handleRequest(Message req) { Object retval; byte[] rsp_buf=null; Header hdr, rsp_hdr; Message rsp; // i. Remove the request correlator header from the msg and pass it to // the registered handler // // ii. If a reply is expected, pack the return value from the request // handler to a reply msg and send it back. The reply msg has the same // ID as the request and the name of the sender request correlator hdr = (Header)req.removeHeader(name); if(log.isDebugEnabled()) log.debug("calling request handler (" + (request_handler != null? request_handler.getClass().getName() : "null") + ") with request " + hdr.id); try { retval = request_handler.handle(req); } catch(Throwable t) { if(log.isErrorEnabled()) log.error("error invoking method, exception=" + t.toString()); retval=t; } if(!hdr.rsp_expected) // asynchronous call, we don't need to send a response; terminate call here return; if (transport == null) { if(log.isErrorEnabled()) log.error("failure sending " + "response; no transport available"); return; } // changed (bela Feb 20 2004): catch exception and return exception try { rsp_buf=Util.objectToByteBuffer(retval); // retval could be an exception, or a real value } catch(Throwable t) { try { rsp_buf=Util.objectToByteBuffer(t); // this call shoudl succeed (all exceptions are serializable) } catch(Throwable tt) { if(log.isErrorEnabled()) log.error("failed sending response: " + "return value (" + retval + ") is not serializable"); return; } } rsp=req.makeReply(); if(rsp_buf != null) rsp.setBuffer(rsp_buf); rsp_hdr=new Header(Header.RSP, hdr.id, false, name); rsp.putHeader(name, rsp_hdr); if(log.isDebugEnabled()) log.debug("sending rsp for " + rsp_hdr.id + " to " + rsp.getDest()); try { if(transport instanceof Protocol) ((Protocol)transport).passDown(new Event(Event.MSG, rsp)); else if(transport instanceof Transport) ((Transport)transport).send(rsp); else if(log.isErrorEnabled()) log.error("transport object has to be either a " + "Transport or a Protocol, however it is a " + transport.getClass()); } catch(Throwable e) { if(log.isErrorEnabled()) log.error(throwableToString(e)); } }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/f4d48c5d12530ffb09ab46034b71d9594b0f1287/RequestCorrelator.java/clean/src/org/jgroups/blocks/RequestCorrelator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 15713, 12, 1079, 1111, 13, 288, 3639, 1033, 3639, 5221, 31, 3639, 1160, 8526, 3639, 12049, 67, 4385, 33, 2011, 31, 3639, 4304, 3639, 7723, 16, 12049, 67, 16587, 31, 3639, 2350,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15713, 12, 1079, 1111, 13, 288, 3639, 1033, 3639, 5221, 31, 3639, 1160, 8526, 3639, 12049, 67, 4385, 33, 2011, 31, 3639, 4304, 3639, 7723, 16, 12049, 67, 16587, 31, 3639, 2350,...
throw new ArgumentError(getRuntime(), args.length, getArity());
throw getRuntime().newArgumentError(args.length, getArity());
public IRubyObject invoke_static(IRubyObject[] args) { if (args.length != getArity()) { throw new ArgumentError(getRuntime(), args.length, getArity()); } Object[] arguments = new Object[args.length]; System.arraycopy(args, 0, arguments, 0, arguments.length); convertArguments(arguments); return invokeWithExceptionHandling(null, arguments); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaMethod.java/buggy/src/org/jruby/javasupport/JavaMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 4356, 67, 3845, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 480, 336, 686, 560, 10756, 288, 5411, 604, 18814, 7675, 2704, 1379, 668,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 4356, 67, 3845, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 1968, 18, 2469, 480, 336, 686, 560, 10756, 288, 5411, 604, 18814, 7675, 2704, 1379, 668,...