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
else { return "images/" + name + ".gif"; }
basename.append(name); return Chit.getImagePath(basename.toString());
public String getImageName(boolean inverted) { if (inverted) { return "images/i_" + name + ".gif"; } else { return "images/" + name + ".gif"; } }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/884d1fcdef6181ef8f62b2e4521803fe3af9e582/Creature.java/clean/Colossus/Creature.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 10567, 461, 12, 6494, 18150, 13, 565, 288, 3639, 309, 261, 267, 25631, 13, 3639, 288, 5411, 327, 315, 7369, 19, 77, 9548, 397, 508, 397, 3552, 13905, 14432, 3639, 289, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 10567, 461, 12, 6494, 18150, 13, 565, 288, 3639, 309, 261, 267, 25631, 13, 3639, 288, 5411, 327, 315, 7369, 19, 77, 9548, 397, 508, 397, 3552, 13905, 14432, 3639, 289, 3639, ...
sourceCode = ERXExtensions.replaceStringByStringInString("\n\n", "<br>", sourceCode);
sourceCode = ERXStringUtilities.replaceStringByStringInString("\n\n", "<br>", sourceCode);
public String sourceCode() { if(sourceCode != null) return sourceCode; StringWriter writer = new StringWriter(); try { Decompiler decompiler = new Decompiler(); decompiler.setClassPath(cp); decompiler.decompile(classInfo().getName(), writer, null); } catch (IOException ex) { log.error(ex.toString()); } catch (jode.AssertError ex) { log.error(ex.toString()); return ex.toString() + " occurred. \n\n" + "Please check if you have all necessary jar and class files \n" + "added to ClassPaths property in the Localizable.strings file."; } sourceCode = writer.toString(); try { Class JavaCCtoHTML = Class.forName("JavaCCtoHTML"); NSSelector prettyString = new NSSelector("prettyString", new Class [] {String.class}); prettyString.invoke(JavaCCtoHTML, sourceCode); // sourceCode = JavaCCtoHTML.prettyString(sourceCode); } catch (Exception ex) { log.error(ex); } sourceCode = ERXExtensions.replaceStringByStringInString("\n\n", "<br>", sourceCode); return sourceCode; }
50512 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50512/fa84e1b88199fbf613e9662051f0c3d4df949124/Jode.java/buggy/Experimental/DevStudio/Sources/ag/kcmedia/Jode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 20260, 1435, 288, 5411, 309, 12, 3168, 1085, 480, 446, 13, 7734, 327, 20260, 31, 5411, 17436, 2633, 273, 394, 17436, 5621, 5411, 775, 288, 7734, 3416, 20667, 2895, 443, 9576, 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, 540, 1071, 514, 20260, 1435, 288, 5411, 309, 12, 3168, 1085, 480, 446, 13, 7734, 327, 20260, 31, 5411, 17436, 2633, 273, 394, 17436, 5621, 5411, 775, 288, 7734, 3416, 20667, 2895, 443, 9576, 2...
return invokeSimpleCommand (CREATE + ' ' + quote (UTF7imap.encode (mailbox)));
return invokeSimpleCommand(CREATE + ' ' + quote(UTF7imap.encode(mailbox)));
public boolean create (String mailbox) throws IOException { return invokeSimpleCommand (CREATE + ' ' + quote (UTF7imap.encode (mailbox))); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/32651f721fa7044d71e84f6431a1ca18d965af13/IMAPConnection.java/buggy/libraries/javalib/gnu/inet/imap/IMAPConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 752, 261, 780, 14187, 13, 565, 1216, 1860, 225, 288, 565, 327, 4356, 5784, 2189, 12, 9344, 397, 296, 296, 397, 3862, 12, 5159, 27, 12161, 18, 3015, 12, 4408, 2147, 3719, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 752, 261, 780, 14187, 13, 565, 1216, 1860, 225, 288, 565, 327, 4356, 5784, 2189, 12, 9344, 397, 296, 296, 397, 3862, 12, 5159, 27, 12161, 18, 3015, 12, 4408, 2147, 3719, 176...
offScreenImageGC.fillRectangle( 0, 0, loader.logicalScreenWidth, loader.logicalScreenHeight);
offScreenImageGC.fillRectangle(0, 0, loader.logicalScreenWidth, loader.logicalScreenHeight);
void animateLoop(IProgressMonitor monitor) { // Create an off-screen image to draw on, and a GC to draw with. // Both are disposed after the animation. if (items.size() == 0) return; if (!PlatformUI.isWorkbenchRunning()) return; AnimationItem[] animationItems = getAnimationItems(); Display display = PlatformUI.getWorkbench().getDisplay(); ImageData[] imageDataArray = getImageData(); ImageData imageData = imageDataArray[0]; Image image = ProgressManager.getInstance().getImage(imageData); int imageDataIndex = 0; ImageLoader loader = getLoader(); if (display.isDisposed()) { monitor.setCanceled(true); setAnimated(false); return; } Image offScreenImage = new Image(display, loader.logicalScreenWidth, loader.logicalScreenHeight); GC offScreenImageGC = new GC(offScreenImage); try { // Fill the off-screen image with the background color of the canvas. offScreenImageGC.setBackground(background); offScreenImageGC.fillRectangle( 0, 0, loader.logicalScreenWidth, loader.logicalScreenHeight); // Draw the current image onto the off-screen image. offScreenImageGC.drawImage( image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); if (loader.repeatCount > 0) { while (isAnimated() && !monitor.isCanceled()) { if (display.isDisposed()) { monitor.setCanceled(true); continue; } if (imageData.disposalMethod == SWT.DM_FILL_BACKGROUND) { // Fill with the background color before drawing. Color bgColor = null; int backgroundPixel = loader.backgroundPixel; if (backgroundPixel != -1) { // Fill with the background color. RGB backgroundRGB = imageData.palette.getRGB(backgroundPixel); bgColor = new Color(null, backgroundRGB); } try { offScreenImageGC.setBackground(bgColor != null ? bgColor : background); offScreenImageGC.fillRectangle( imageData.x, imageData.y, imageData.width, imageData.height); } finally { if (bgColor != null) bgColor.dispose(); } } else if (imageData.disposalMethod == SWT.DM_FILL_PREVIOUS) { // Restore the previous image before drawing. offScreenImageGC.drawImage( image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); } // Get the next image data. imageDataIndex = (imageDataIndex + 1) % imageDataArray.length; imageData = imageDataArray[imageDataIndex]; image.dispose(); image = new Image(display, imageData); // Draw the new image data. offScreenImageGC.drawImage( image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); boolean refreshItems = false; for (int i = 0; i < animationItems.length; i++) { AnimationItem item = animationItems[i]; if (item.imageCanvasGC.isDisposed()) { refreshItems = true; continue; } else { // Draw the off-screen image to the screen. item.imageCanvasGC.drawImage(offScreenImage, 0, 0); } } if (refreshItems) animationItems = getAnimationItems(); // Sleep for the specified delay time before drawing again. try { Thread.sleep(visibleDelay(imageData.delayTime * 10)); } catch (InterruptedException e) { //If it is interrupted end quietly } } } } finally { image.dispose(); offScreenImage.dispose(); offScreenImageGC.dispose(); animationDone(); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/a23a2f7d8af51ae4aaa0ae21daaa81f092725969/AnimationManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 14671, 6452, 12, 45, 5491, 7187, 6438, 13, 288, 202, 202, 759, 1788, 392, 3397, 17, 9252, 1316, 358, 3724, 603, 16, 471, 279, 15085, 358, 3724, 598, 18, 202, 202, 759, 19118,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 14671, 6452, 12, 45, 5491, 7187, 6438, 13, 288, 202, 202, 759, 1788, 392, 3397, 17, 9252, 1316, 358, 3724, 603, 16, 471, 279, 15085, 358, 3724, 598, 18, 202, 202, 759, 19118,...
if(!player.equals(object))
RPEntity entity=(RPEntity)object; if(!player.equals(entity))
public void onAction(RPWorld world, StendhalRPRuleProcessor rules, Player player, RPAction action) { Log4J.startMethod(logger,"attack"); if(action.has("target")) { int targetObject=action.getInt("target"); StendhalRPZone zone=(StendhalRPZone)world.getRPZone(player.getID()); RPObject.ID targetid=new RPObject.ID(targetObject, zone.getID()); if(zone.has(targetid)) { RPObject object=zone.get(targetid); // Enabled PVP if(object instanceof RPEntity /*&& !(object instanceof Player)*/) // Disabled Player { if(!player.equals(object)) { player.attack((RPEntity)object); world.modify(player); } } } } Log4J.finishMethod(logger,"attack"); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/dafcdd7c75196017bb87fb18aba3462c9ed2f2bc/Attack.java/clean/src/games/stendhal/server/actions/Attack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 603, 1803, 12, 54, 52, 18071, 9117, 16, 934, 409, 22314, 54, 52, 2175, 5164, 2931, 16, 19185, 7291, 16, 534, 52, 1803, 1301, 13, 565, 288, 565, 1827, 24, 46, 18, 1937, 1305...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 603, 1803, 12, 54, 52, 18071, 9117, 16, 934, 409, 22314, 54, 52, 2175, 5164, 2931, 16, 19185, 7291, 16, 534, 52, 1803, 1301, 13, 565, 288, 565, 1827, 24, 46, 18, 1937, 1305...
Context context = checkContext();
Context context = getContext();
private void removeBindingInternal(String name, boolean serviceBinding) { try { if (name == null) { throw new NullPointerException("The name must not be null"); } Context context = checkContext(); try { context.removeBinding(getInternalName(name, serviceBinding)); } catch (NameNotBoundException e) { throw new NameNotBoundException( "Name '" + name + "' is not bound"); } if (logger.isLoggable(Level.FINEST)) { logger.log( Level.FINEST, "{0} name:{1} returns", serviceBinding ? "removeServiceBinding" : "removeBinding", name); } } catch (RuntimeException e) { if (logger.isLoggable(Level.FINEST)) { logger.logThrow( Level.FINEST, "{0} name:{1} throws", e, serviceBinding ? "removeServiceBinding" : "removeBinding", name); } throw e; } }
55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/51014428559746a71eea60ff89c4bc5babf778c1/DataServiceImpl.java/clean/src/server/j2se/com/sun/sgs/impl/service/data/DataServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1206, 5250, 3061, 12, 780, 508, 16, 1250, 1156, 5250, 13, 288, 202, 698, 288, 202, 565, 309, 261, 529, 422, 446, 13, 288, 202, 202, 12849, 394, 10108, 2932, 1986, 508, 1297, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 5250, 3061, 12, 780, 508, 16, 1250, 1156, 5250, 13, 288, 202, 698, 288, 202, 565, 309, 261, 529, 422, 446, 13, 288, 202, 202, 12849, 394, 10108, 2932, 1986, 508, 1297, ...
args[0] = new RubyFixnum(ruby, 18000000); nineTeenSeventy = RubyTime.s_at(ruby, RubyTime.s_new(ruby, rubyTime), args);
args[0] = new RubyFixnum(ruby, 18000000); nineTeenSeventy = RubyTime.s_at(ruby, rubyTime, args);
public void setUp() { ruby = new Ruby(); ruby.init(); rubyTime = ruby.getClasses().getTimeClass(); RubyObject[] args = new RubyObject[1]; args[0] = new RubyFixnum(ruby, 18000000); nineTeenSeventy = RubyTime.s_at(ruby, RubyTime.s_new(ruby, rubyTime), args); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/4e4bb40b2eb2d38881d15ca8ef7cda4c34323793/TestRubyTime.java/clean/org/jruby/test/TestRubyTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 288, 3639, 22155, 273, 394, 19817, 5621, 3639, 22155, 18, 2738, 5621, 3639, 22155, 950, 273, 22155, 18, 588, 4818, 7675, 588, 950, 797, 5621, 3639, 19817, 921, 8526,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 24292, 1435, 288, 3639, 22155, 273, 394, 19817, 5621, 3639, 22155, 18, 2738, 5621, 3639, 22155, 950, 273, 22155, 18, 588, 4818, 7675, 588, 950, 797, 5621, 3639, 19817, 921, 8526,...
void startExternalEntity (String name, String systemId, boolean stackOnly)
void startExternalEntity(String name, String systemId, boolean stackOnly)
void startExternalEntity (String name, String systemId, boolean stackOnly) throws SAXException { // The following warning was deleted because the application has the // option of not setting systemId. Sun's JAXP or Xerces seems to // ignore this case. /* if (systemId == null) warn ("URI was not reported to parser for entity " + name); */ if (!stackOnly) // spliced [dtd] needs startEntity lexicalHandler.startEntity (name); entityStack.push (systemId); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/24330cfb4cc445da21a71a819ce54efe764fab6e/SAXDriver.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/SAXDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 787, 6841, 1943, 261, 780, 508, 16, 514, 30083, 16, 377, 202, 6494, 2110, 3386, 13, 565, 1216, 14366, 565, 288, 202, 759, 1021, 3751, 3436, 1703, 4282, 2724, 326, 2521, 711, 326, 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, 918, 787, 6841, 1943, 261, 780, 508, 16, 514, 30083, 16, 377, 202, 6494, 2110, 3386, 13, 565, 1216, 14366, 565, 288, 202, 759, 1021, 3751, 3436, 1703, 4282, 2724, 326, 2521, 711, 326, 2...
enterDTD(); printText( "<!ELEMENT " + name + " " + model + ">" ); if ( _format.getIndenting() ) breakLine();
_printer.enterDTD(); _printer.printText( "<!ELEMENT " ); _printer.printText( name ); _printer.printText( ' ' ); _printer.printText( model ); _printer.printText( '>' ); if ( _indenting ) _printer.breakLine();
public void elementDecl( String name, String model ) { enterDTD(); printText( "<!ELEMENT " + name + " " + model + ">" ); if ( _format.getIndenting() ) breakLine(); }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1e1ce544975980cfc9bc8941ab7c8166d350c04d/BaseMarkupSerializer.java/buggy/src/org/apache/xml/serialize/BaseMarkupSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 930, 3456, 12, 514, 508, 16, 514, 938, 262, 565, 288, 3639, 6103, 25728, 5621, 3639, 1172, 1528, 12, 3532, 5, 10976, 315, 397, 508, 397, 315, 315, 397, 938, 397, 14675, 11272...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 930, 3456, 12, 514, 508, 16, 514, 938, 262, 565, 288, 3639, 6103, 25728, 5621, 3639, 1172, 1528, 12, 3532, 5, 10976, 315, 397, 508, 397, 315, 315, 397, 938, 397, 14675, 11272...
currentElement = addProblemToTagName(originalElement, originalElement, localizedMessage, result, warning);
addProblemToTagName(originalElement, originalElement, localizedMessage, result, warning);
public void processError(final SAXParseException e, final boolean warning) { try { ApplicationManager.getApplication().runReadAction(new Runnable() { public void run() { if (document.getLineCount() <= e.getLineNumber() || e.getLineNumber() <= 0) { return; } int offset = Math.max(0, document.getLineStartOffset(e.getLineNumber() - 1) + e.getColumnNumber() - 2); PsiElement currentElement = PsiDocumentManager.getInstance(project).getPsiFile(document).findElementAt(offset); PsiElement originalElement = currentElement; final String elementText = currentElement.getText(); if (elementText.equals("</")) { currentElement = currentElement.getNextSibling(); } else if (elementText.equals(">") || elementText.equals("=")) { currentElement = currentElement.getPrevSibling(); } // Cannot find the declaration of element String localizedMessage = e.getLocalizedMessage(); localizedMessage = localizedMessage.substring(localizedMessage.indexOf(':') + 1).trim(); if (localizedMessage.startsWith("Cannot find the declaration of element") || localizedMessage.startsWith("Element") || localizedMessage.startsWith("Document root element") || localizedMessage.startsWith("The content of element type") ) { currentElement = addProblemToTagName(currentElement, originalElement, localizedMessage, result, warning); //return; } else if (localizedMessage.startsWith("Value ")) { currentElement = addProblemToTagName(currentElement, originalElement, localizedMessage, result, warning); return; } else if (localizedMessage.startsWith("Attribute ")) { currentElement = PsiTreeUtil.getParentOfType(currentElement,XmlAttribute.class,false); final int messagePrefixLength = "Attribute ".length(); if (currentElement==null && localizedMessage.charAt(messagePrefixLength) == '"') { // extract the attribute name from message and get it from tag! final int nextQuoteIndex = localizedMessage.indexOf('"', messagePrefixLength + 1); String attrName = (nextQuoteIndex!=-1)?localizedMessage.substring(messagePrefixLength + 1, nextQuoteIndex):null; XmlTag parent = PsiTreeUtil.getParentOfType(originalElement,XmlTag.class); currentElement = parent.getAttribute(attrName,null); if (currentElement!=null) { currentElement = SourceTreeToPsiMap.treeElementToPsi( XmlChildRole.ATTRIBUTE_NAME_FINDER.findChild( (CompositeElement)SourceTreeToPsiMap.psiElementToTree(currentElement) ) ); } } if (currentElement!=null) { assertValidElement(currentElement, originalElement,localizedMessage); result.add(HighlightInfo.createHighlightInfo(warning ? HighlightInfoType.WARNING : HighlightInfoType.ERROR, currentElement, localizedMessage)); } else { currentElement = addProblemToTagName(originalElement, originalElement, localizedMessage, result, warning); } return; } else { currentElement = PsiTreeUtil.getParentOfType(currentElement,XmlTag.class,false); assertValidElement(currentElement, originalElement,localizedMessage); if (currentElement!=null) { result.add(HighlightInfo.createHighlightInfo(warning ? HighlightInfoType.WARNING : HighlightInfoType.ERROR, currentElement, localizedMessage)); } } } }); } catch (Exception ex) { if (ex instanceof ProcessCanceledException) throw (ProcessCanceledException)ex; LOG.error(ex); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/7dccf60fe8f4b78338aa286c7a85820f15eca535/XmlHighlightVisitor.java/buggy/source/com/intellij/codeInsight/daemon/impl/analysis/XmlHighlightVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1207, 668, 12, 6385, 10168, 13047, 425, 16, 727, 1250, 3436, 13, 288, 3639, 775, 288, 1850, 4257, 1318, 18, 588, 3208, 7675, 2681, 1994, 1803, 12, 2704, 10254, 1435, 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, 4202, 1071, 918, 1207, 668, 12, 6385, 10168, 13047, 425, 16, 727, 1250, 3436, 13, 288, 3639, 775, 288, 1850, 4257, 1318, 18, 588, 3208, 7675, 2681, 1994, 1803, 12, 2704, 10254, 1435, 288, 5411...
nameSegment = IDEWorkbenchMessages.format(IDEWorkbenchMessages.getString("CopyProjectAction.copyNameTwoArgs"), new Object[] {new Integer(counter), projectName});
nameSegment = IDEWorkbenchMessages.format("CopyProjectAction.copyNameTwoArgs", new Object[] {new Integer(counter), projectName});
private String getCopyNameFor(String projectName) { IWorkspace workspace = getProject().getWorkspace(); if (!workspace.getRoot().getProject(projectName).exists()) return projectName; int counter = 1; while (true) { String nameSegment; if (counter > 1) { nameSegment = IDEWorkbenchMessages.format(IDEWorkbenchMessages.getString("CopyProjectAction.copyNameTwoArgs"), new Object[] {new Integer(counter), projectName}); //$NON-NLS-1$ } else { nameSegment = IDEWorkbenchMessages.format(IDEWorkbenchMessages.getString("CopyProjectAction.copyNameOneArg"), new Object[] {projectName}); //$NON-NLS-1$ } if (!workspace.getRoot().getProject(nameSegment).exists()) return nameSegment; counter++; }}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/4672157734ba718a959e36cc099cb45df96a6220/ProjectLocationSelectionDialog.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/ProjectLocationSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 514, 1927, 1101, 461, 1290, 12, 780, 17234, 13, 288, 202, 45, 8241, 6003, 273, 11080, 7675, 588, 8241, 5621, 202, 430, 16051, 14915, 18, 588, 2375, 7675, 588, 4109, 12, 4406, 461, 2934, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 514, 1927, 1101, 461, 1290, 12, 780, 17234, 13, 288, 202, 45, 8241, 6003, 273, 11080, 7675, 588, 8241, 5621, 202, 430, 16051, 14915, 18, 588, 2375, 7675, 588, 4109, 12, 4406, 461, 2934, ...
public void createControl(Composite parent) { FormToolkit toolkit = new FormToolkit(parent.getDisplay()); Composite composite = toolkit.createComposite(parent); setControl(composite); composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); composite.setLayout(new GridLayout(3, false)); toolkit.createLabel(composite, "File"); filePath = new Text(composite, SWT.LEFT); //toolkit.createText(composite, ""); filePath.setEditable(false); filePath.setLayoutData(new GridData(SWT.FILL, SWT.DEFAULT, true, false, 2, 1)); toolkit.createLabel(composite, "Description"); attachmentDesc = toolkit.createText(composite, ""); attachmentDesc.setLayoutData(new GridData(SWT.FILL, SWT.DEFAULT, true, false, 2, 1)); toolkit.createLabel(composite, "Comment"); attachmentComment = toolkit.createText(composite, ""); attachmentComment.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1)); toolkit.createLabel(composite, "Content Type"); final Combo contentTypeList = new Combo(composite, SWT.DROP_DOWN | SWT.READ_ONLY); final Button isPatchButton = toolkit.createButton(composite, "Patch", SWT.CHECK); final HashMap<String, Integer> contentTypeIndices = new HashMap<String, Integer>(); Iterator<String> iter = contentTypes.iterator(); int i = 0; while (iter.hasNext()) { String next = iter.next(); contentTypeList.add(next); contentTypeIndices.put(next, new Integer(i)); i++; } /* Update attachment on select content type */ contentTypeList.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { // ignore } public void widgetSelected(SelectionEvent e) { attachment.setContentType(contentTypeList.getItem(contentTypeList.getSelectionIndex())); } }); contentTypeList.select(0); attachment.setContentType(contentTypeList.getItem(0)); final NewAttachmentPage thisPage = this; /* * Attachment file name listener, update the local attachment * accordingly */ filePath.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { // Determine type by extension int index = filePath.getText().lastIndexOf("."); if (index > 0 && index < filePath.getText().length()) { String ext = filePath.getText().substring(index + 1); String type = extensions2Types.get(ext.toLowerCase()); if (type != null) { contentTypeList.select(contentTypeIndices.get(type)); attachment.setContentType(type); } } // check page completenes if ("".equals(attachmentDesc.getText())) { thisPage.setErrorMessage("Description required"); } else { if (!"".equals(filePath.getText())) { thisPage.setPageComplete(true); thisPage.setErrorMessage(null); } } } }); /* Listener for isPatch */ isPatchButton.addSelectionListener(new SelectionListener() { private int lastSelected; public void widgetDefaultSelected(SelectionEvent e) { // ignore } public void widgetSelected(SelectionEvent e) { attachment.setPatch(isPatchButton.getSelection()); if (isPatchButton.getSelection()) { lastSelected = contentTypeList.getSelectionIndex(); contentTypeList.select(0); contentTypeList.setEnabled(false); } else { contentTypeList.setEnabled(true); contentTypeList.select(lastSelected); } } }); attachmentDesc.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { if ("".equals(attachmentDesc.getText())) { thisPage.setErrorMessage("Description required"); } else { if (!"".equals(filePath.getText())) { thisPage.setPageComplete(true); thisPage.setErrorMessage(null); } } } }); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/71c21875189b4335e7f22a2dca89070e4c872710/NewAttachmentPage.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/wizards/NewAttachmentPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 9506, 202, 1204, 6364, 8691, 5226, 8691, 273, 394, 2748, 6364, 8691, 12, 2938, 18, 588, 4236, 10663, 9506, 202, 9400, 9635, 273, 5226, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9400, 982, 13, 288, 9506, 202, 1204, 6364, 8691, 5226, 8691, 273, 394, 2748, 6364, 8691, 12, 2938, 18, 588, 4236, 10663, 9506, 202, 9400, 9635, 273, 5226, ...
if (logger.isDebugEnabled()) { logger.debug("Some peers to remove from group"); }
logger.debug("Some peers to remove from group");
public void runActivity(Body body) { Service service = new Service(body); while (body.isActive()) { try { if (this.groupOfAcquaintances.size() > 0) { // Register the local P2P service in all exportAcquaintances if (logger.isDebugEnabled()) { logger.debug("Sending heart-beat"); } this.acquaintances.heartBeat(); if (logger.isDebugEnabled()) { logger.debug("Heart-beat sent"); } // How many peers ? if (this.groupOfAcquaintances.size() < NOA) { // Looking for new peers if (logger.isDebugEnabled()) { logger.debug("NOA is " + NOA + " - Size of P2PAcquaintanceManager is " + this.groupOfAcquaintances.size()); } // Sending exploring message this.acquaintances.exploring(TTL, null, this.localService); if (logger.isDebugEnabled()) { logger.debug("Explorating message sent"); } } } // Waiting TTU & serving requests if (logger.isDebugEnabled()) { logger.debug("Waiting for " + TTU + "ms"); } long endTime = System.currentTimeMillis() + TTU; service.blockingServeOldest(TTU); while (System.currentTimeMillis() < endTime) { service.blockingServeOldest(endTime - System.currentTimeMillis()); } if (logger.isDebugEnabled()) { logger.debug("End waiting"); } } catch (ExceptionList e) { // Removing bad peers if (logger.isDebugEnabled()) { logger.debug("Some peers to remove from group"); } Iterator it = e.iterator(); while (it.hasNext()) { // Remove bad peers ExceptionInGroup ex = (ExceptionInGroup) it.next(); Object peer = ex.getObject(); this.groupOfAcquaintances.remove(peer); if (logger.isInfoEnabled()) { logger.info("Peer removed"); } } } } }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/1279458d52679339839158611daec34b4baf800a/P2PAcquaintanceManager.java/buggy/src/org/objectweb/proactive/p2p/service/P2PAcquaintanceManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 6193, 12, 2250, 1417, 13, 288, 3639, 1956, 1156, 273, 394, 1956, 12, 3432, 1769, 3639, 1323, 261, 3432, 18, 291, 3896, 10756, 288, 5411, 775, 288, 7734, 309, 261, 2211, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 6193, 12, 2250, 1417, 13, 288, 3639, 1956, 1156, 273, 394, 1956, 12, 3432, 1769, 3639, 1323, 261, 3432, 18, 291, 3896, 10756, 288, 5411, 775, 288, 7734, 309, 261, 2211, ...
if (false && result != null) {
if (result != null) {
private GrammarGraph parseRuleName(RuleName initialRuleName) throws GrammarException { debugPrintln("parseRuleName: " + initialRuleName.toString()); GrammarGraph result = (GrammarGraph) ruleNameStack.get(initialRuleName .getRuleName()); // TODO: tail-recursion broken // temporarily disable this check // this check was also matching NULL rules which was causing bad grammars // to be generated in rules that used the NULL production. Obviously, this // has to be thought out a bit more, so in the mean time, we'll disable this // check (which disables the support for tail end recursion). if (false && result != null) { // its a recursive call //System.out.println("Found on rulestack: " + initialRuleName.getRuleName() + " " + result); return result; } else { result = new GrammarGraph(); ruleNameStack.put(initialRuleName.getRuleName(), result); } RuleName ruleName = ruleGrammar.resolve(initialRuleName); if (ruleName == RuleName.NULL) { result.getStartNode().add(result.getEndNode(), 0.0f); } else if (ruleName == RuleName.VOID) { // no connection for void } else { if (ruleName == null) { throw new GrammarException("Can't resolve " + initialRuleName + " g " + initialRuleName.getFullGrammarName()); } RuleGrammar rg = recognizer.getRuleGrammar(ruleName .getFullGrammarName()); if (rg == null) { throw new GrammarException("Can't resolve grammar name " + ruleName.getFullGrammarName()); } Rule rule = rg.getRule(ruleName.getSimpleRuleName()); if (rule == null) { throw new GrammarException("Can't resolve rule: " + ruleName.getRuleName()); } GrammarGraph ruleResult = parseRule(rule); result.getStartNode().add(ruleResult.getStartNode(), 0.0f); ruleResult.getEndNode().add(result.getEndNode(), 0.0f); ruleNameStack.remove(ruleName.getRuleName()); } return result; }
48839 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48839/68972ae1fafdd81f0825764fd70560cc31b0fceb/JSGFGrammar.java/clean/sphinx4/edu/cmu/sphinx/jsapi/JSGFGrammar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 27809, 4137, 1109, 27907, 12, 27907, 2172, 27907, 13, 5411, 1216, 27809, 503, 288, 3639, 1198, 5108, 2370, 2932, 2670, 27907, 30, 315, 397, 2172, 27907, 18, 10492, 10663, 3639, 27809, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27809, 4137, 1109, 27907, 12, 27907, 2172, 27907, 13, 5411, 1216, 27809, 503, 288, 3639, 1198, 5108, 2370, 2932, 2670, 27907, 30, 315, 397, 2172, 27907, 18, 10492, 10663, 3639, 27809, ...
sb.append(")");
sb.append(')');
public String createInExpr(String expr, ColumnConstraint[] constraints) { if (constraints.length == 1) { final ColumnConstraint constraint = constraints[0]; Object key = constraint.getValue(); if (key != RolapUtil.sqlNullValue) { return expr + " = " + quoteValue(key); } } int notNullCount = 0; StringBuffer sb = new StringBuffer(expr); sb.append(" in ("); for (int i = 0; i < constraints.length; i++) { final ColumnConstraint constraint = constraints[i]; Object key = constraint.getValue(); if (key == RolapUtil.sqlNullValue) { continue; } if (notNullCount > 0) { sb.append(", "); } ++notNullCount; sb.append(quoteValue(key)); } sb.append(")"); if (notNullCount < constraints.length) { // There was at least one null. switch (notNullCount) { case 0: // Special case -- there were no values besides null. // Return, for example, "x is null". return expr + " is null"; case 1: // Special case -- one not-null value, and null, for // example "(x is null or x = 1)". return "(" + expr + " = " + quoteValue(constraints[0].getValue()) + " or " + expr + " is null)"; default: // Nulls and values, for example, // "(x in (1, 2) or x IS NULL)". return "(" + sb.toString() + " or " + expr + "is null)"; } } else { // No nulls. Return, for example, "x in (1, 2, 3)". return sb.toString(); } }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/0cc18052c959f8014f772086b193e28d7a6dd66a/RolapStar.java/clean/src/main/mondrian/rolap/RolapStar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 752, 382, 4742, 12, 780, 3065, 16, 4753, 5806, 8526, 6237, 13, 288, 5411, 309, 261, 11967, 18, 2469, 422, 404, 13, 288, 7734, 727, 4753, 5806, 4954, 273, 6237, 63, 20, 15533,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 514, 752, 382, 4742, 12, 780, 3065, 16, 4753, 5806, 8526, 6237, 13, 288, 5411, 309, 261, 11967, 18, 2469, 422, 404, 13, 288, 7734, 727, 4753, 5806, 4954, 273, 6237, 63, 20, 15533,...
tableEmitter.start( tableObj ); accessColumns( tableEmitter, table ); accessHeader( ); tableEmitter.startBody( ); setUpDropProperties( table ); if ( isRowAvailable )
finally
public void execute( ReportItemDesign item, IReportEmitter emitter ) { super.execute( item, emitter ); ITableEmitter tableEmitter = emitter.getTableEmitter( ); if ( tableEmitter == null ) { return; } this.emitter = emitter; table = (TableItemDesign) item; logger.log( Level.FINE,"start table item" ); //$NON-NLS-1$ //execute the on start script context.execute( table.getOnStart( ) ); TableContent tableObj = (TableContent)ContentFactory.createTableContent( table, context.getContentObject( ) ); context.pushContentObject( tableObj ); tableObj.setCaption( getLocalizedString( table.getCaptionKey( ), table .getCaption( ) ) ); setStyles( tableObj, item ); setVisibility( item, tableObj ); String bookmarkStr = evalBookmark( item ); if ( bookmarkStr != null ) tableObj.setBookmarkValue( bookmarkStr ); logger.log( Level.FINE, "start get table data" ); //$NON-NLS-1$ rs = openResultSet( table ); logger.log( Level.FINE, "end get table data" ); //$NON-NLS-1$ boolean isRowAvailable = false; if ( rs != null ) { isRowAvailable = rs.next( ); } tableEmitter.start( tableObj ); accessColumns( tableEmitter, table ); //access table header accessHeader( ); //data driving report tableEmitter.startBody( ); setUpDropProperties( table ); if ( isRowAvailable ) { context.execute( table.getOnRow( ) ); this.accessGroup( 0 ); } //access table footer accessSummary( ); tableEmitter.endBody( ); tableEmitter.end( ); closeResultSet( rs ); logger.log( Level.FINE, "end table item" ); //$NON-NLS-1$ //execute the on finish script context.execute( table.getOnFinish( ) ); context.popContentObject( ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/46b3013f64d73accec44cdf5a1a0af7dcd5513b7/TableItemExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/TableItemExecutor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 4820, 13476, 11520, 262, 202, 95, 202, 202, 9565, 18, 8837, 12, 761, 16, 11520, 11272, 202, 202, 1285, 429, 13476, 1014, 13476, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 8706, 1180, 15478, 761, 16, 467, 4820, 13476, 11520, 262, 202, 95, 202, 202, 9565, 18, 8837, 12, 761, 16, 11520, 11272, 202, 202, 1285, 429, 13476, 1014, 13476, ...
public String paramString() { return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString()); }
paramString() { return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString()); }
public String paramString() { return (",isTearOff=" + isTearOff + ",isHelpMenu=" + isHelpMenu + super.paramString()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 579, 780, 1435, 288, 202, 202, 2463, 261, 3113, 291, 56, 2091, 7210, 1546, 397, 353, 56, 2091, 7210, 397, 3104, 291, 6696, 4599, 1546, 397, 353, 6696, 4599, 397, 2240, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 579, 780, 1435, 288, 202, 202, 2463, 261, 3113, 291, 56, 2091, 7210, 1546, 397, 353, 56, 2091, 7210, 397, 3104, 291, 6696, 4599, 1546, 397, 353, 6696, 4599, 397, 2240, 18...
frameBody = new FrameBodyUnsupported(file, frameSize);
frameBody = new FrameBodyUnsupported(byteBuffer, frameSize);
protected AbstractID3v2FrameBody readBody(String identifier, RandomAccessFile file, int frameSize) throws InvalidFrameException, IOException { /* Use reflection to map id to frame body, which makes things much easier * to keep things up to date,although slight performance hit. */ logger.finest("Creating framebody:start"); AbstractID3v2FrameBody frameBody = null; try { Class c = Class.forName("org.jaudiotagger.tag.id3.framebody.FrameBody" + identifier); Class[] constructorParameterTypes = {((Class) Class.forName("java.io.RandomAccessFile")), Integer.TYPE }; Object[] constructorParameterValues = {file, new Integer(frameSize) }; Constructor construct = c.getConstructor(constructorParameterTypes); frameBody = (AbstractID3v2FrameBody) (construct.newInstance(constructorParameterValues)); } //No class defind for this frame type,use FrameUnsupported catch (ClassNotFoundException cex) { logger.info("Identifier not recognised:" + identifier + " using FrameBodyUnsupported"); frameBody = new FrameBodyUnsupported(file, frameSize); } //An error has occurred during frame instantiation find out real exception and then throw frame away if invalid catch (InvocationTargetException ite) { ite.getCause().printStackTrace(); logger.severe("invocation target exception:"+ite.getCause().getMessage()); throw new InvalidFrameException(ite.getCause().getMessage()); } //No Method should not happen catch (NoSuchMethodException sme) { logger.severe("no such method:"+sme.getMessage()); throw new RuntimeException(sme.getMessage()); } //Instantiate Interfrace/Abstract should not happen catch (InstantiationException ie) { logger.severe("instantiation exception:"+ie.getMessage()); throw new RuntimeException(ie.getMessage()); } //Private Constructor shouild not happen catch (IllegalAccessException iae) { logger.severe("illegal access exception :"+iae.getMessage()); throw new RuntimeException(iae.getMessage()); } logger.finest("Created framebody:end" + frameBody.getIdentifier()); return frameBody; }
40452 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40452/8e6062659057068b4b85fb7b41c567e179db6f7c/AbstractID3v2Frame.java/buggy/src/org/jaudiotagger/tag/id3/AbstractID3v2Frame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4115, 734, 23, 90, 22, 3219, 2250, 855, 2250, 12, 780, 2756, 16, 8072, 26933, 585, 16, 509, 2623, 1225, 13, 3639, 1216, 1962, 3219, 503, 16, 1860, 565, 288, 3639, 1748, 2672, 5463...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4115, 734, 23, 90, 22, 3219, 2250, 855, 2250, 12, 780, 2756, 16, 8072, 26933, 585, 16, 509, 2623, 1225, 13, 3639, 1216, 1962, 3219, 503, 16, 1860, 565, 288, 3639, 1748, 2672, 5463...
char[] buf = new char[size];
byte[] buf = new byte[size];
public String getContent() throws IOException { ZipFile zipfile = null; try { zipfile = repository.getZipFile(); ZipEntry entry = zipfile.getEntry(entryName); if (entry == null) { throw new IOException("Zip resource " + this + " does not exist"); } InputStreamReader in = new InputStreamReader(zipfile.getInputStream(entry)); int size = (int) entry.getSize(); char[] buf = new char[size]; int read = 0; while (read < size) { int r = in.read(buf, read, size-read); if (r == -1) break; read += r; } in.close(); return new String(buf); } finally { zipfile.close(); } }
3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/1336e51ba065f1f5d4d790656b30ec798ec3ce31/ZipResource.java/buggy/src/helma/framework/repository/ZipResource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 5154, 1435, 1216, 1860, 288, 3639, 18364, 18823, 273, 446, 31, 3639, 775, 288, 5411, 18823, 273, 3352, 18, 588, 29394, 5621, 5411, 23652, 1241, 273, 18823, 18, 588, 1622, 12, 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, 377, 1071, 514, 5154, 1435, 1216, 1860, 288, 3639, 18364, 18823, 273, 446, 31, 3639, 775, 288, 5411, 18823, 273, 3352, 18, 588, 29394, 5621, 5411, 23652, 1241, 273, 18823, 18, 588, 1622, 12, 4...
private void computeGlyphLogicalBounds() { int c = gv.getNumGlyphs(); glyphLogicalBounds = new Rectangle2D.Double[c]; Rectangle2D.Double lbox = null; for (int i=0; i<c; ++i) { GlyphMetrics gm = gv.getGlyphMetrics(i); Rectangle2D gbounds2d = gm.getBounds2D(); Point2D gpos = gv.getGlyphPosition(i); lbox = new Rectangle2D.Double( gpos.getX()+gbounds2d.getX(), gpos.getY()+gbounds2d.getY(), gbounds2d.getWidth(), gbounds2d.getHeight()); //System.out.println("GLB["+i+"]="+lbox); glyphLogicalBounds[i] = lbox; } for (int i=0; i<c; ++i) { int begin = i; int end = begin; Point2D gpos = gv.getGlyphPosition(begin); // calculate a "run" over the same y nominal position, // over which the glyphs have positive 'x' advances. // (means that RTL "runs" are not yet supported, sorry) float y = (float) gpos.getY(); float x = (float) gpos.getX(); lbox = (Rectangle2D.Double) glyphLogicalBounds[begin]; float miny = (float) lbox.getY(); float maxy = (float) (lbox.getY() + lbox.getHeight()); float epsilon = (float) lbox.getHeight()/8f; float currY = y; float currX = x; while (end<c) { lbox = (Rectangle2D.Double) glyphLogicalBounds[end]; currY = (float) gv.getGlyphPosition(end).getY(); currX = (float) gv.getGlyphPosition(end).getX(); if ((currX < x) || (Math.abs(currY - y) > epsilon)) { break; } miny = Math.min((float) lbox.getY(), miny); float h = (float) (lbox.getY() + lbox.getHeight()); maxy = Math.max(h, maxy); ++end; } i = (end > begin) ? end-1 : end; Rectangle2D.Double lboxPrev = null; float prevx = 0f; for (int n=begin; n<end; ++n) { // extend the vertical bbox for this run lbox = (Rectangle2D.Double) glyphLogicalBounds[n]; x = (float) lbox.getX(); // adjust left bounds if not first in run if (lboxPrev != null) { x = (float) (x + (prevx+lboxPrev.getWidth()))/2f; glyphLogicalBounds[n-1] = new Rectangle2D.Double( (double) prevx, lboxPrev.getY(), (double) (x - prevx), lboxPrev.getHeight()); //System.out.println("Setting glb["+(n-1)+"]="+ // glyphLogicalBounds[n-1]); } lbox = new Rectangle2D.Double( (double) x, (double) miny, Math.max(0d, lbox.getWidth()+(lbox.getX() - x)), (double) (maxy - miny)); lboxPrev = lbox; prevx = x; glyphLogicalBounds[n] = lbox; } } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/53cdbea418666ebb910c6f217e648b1581a19135/GlyphLayout.java/buggy/sources/org/apache/batik/gvt/text/GlyphLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 9200, 15141, 17955, 5694, 1435, 95, 474, 71, 33, 75, 90, 18, 588, 2578, 25399, 5621, 19426, 17955, 5694, 33, 2704, 19463, 22, 40, 18, 5265, 63, 71, 15533, 19463, 22, 40, 18, 3244...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 9200, 15141, 17955, 5694, 1435, 95, 474, 71, 33, 75, 90, 18, 588, 2578, 25399, 5621, 19426, 17955, 5694, 33, 2704, 19463, 22, 40, 18, 5265, 63, 71, 15533, 19463, 22, 40, 18, 3244...
}
}*/
public static FSA determ(FSA aut) { FSA dfaResult = new FSA(); /* erstelle die Zustandsmenge des Automaten */ Set<Integer> tempSet; IntegerSet stateSet; stateSet = new IntegerSet(); tempSet = aut.getStates(); for ( Iterator<Integer> it = tempSet.iterator(); it.hasNext(); ) { stateSet.insert(it.next()); } // Potenzmenge davon berechnen Vector<IntegerSet> statePowerSet; System.out.println("hole pset"); statePowerSet = stateSet.getPowerset(); // aktuelle teilmenge der Potenzmenge Vector<Integer> currentSet; IntegerSet currentIntSet; // eingabealphabet Vector<Character> alpha; Character currChar; alpha = aut.getAlphabet(); // aktuelle Transitionsliste LinkedList<Transition> transList; Transition currTrans; // der neue Zustand (==Zustandsmenge) im neuen Automaten IntegerSet destSet; int stateId; // der aktuell untersuchte (alte) Zustand int cc = 0; // nimm einen Zustand des neuen Automaten her... (also eine Teilmenge der Potmenge) for ( Iterator<IntegerSet> psIt = statePowerSet.iterator(); psIt.hasNext();) { currentIntSet = psIt.next(); // (TODO?) IntegerSet implementiert (noch) nicht Iterator currentSet = currentIntSet.pureElements(); // eine spezielle Teilmenge der Potenzmenge, nmlich die leere // Menge, wird gesondert behandelt, sie dient gewissermaen // als Fangzustand if (currentSet.isEmpty()) { // fge fr alle Buchstaben die Transitionen ein die beim // Zustand verbleibt stateId = statePowerSet.indexOf(currentIntSet); for ( Iterator<Character> alphaIt = alpha.iterator(); alphaIt.hasNext(); ) { dfaResult.addTransition(stateId,stateId, alphaIt.next()); } } // identifiziere die einelementige Menge die den alten Startzustand enthlt // Annahme ist natrlich das es sich um DFAs handelt, die nur einen Startzustand // haben drfen if (currentIntSet.cardinality()==1 && aut.isStartState(currentIntSet.getFirst())) { dfaResult.setStartFlag(statePowerSet.indexOf(currentIntSet), true); } // durchlaufe fr diesen Zustand alle Buchstaben des Eingabealphabets for ( Iterator<Character> alphaIt = alpha.iterator(); alphaIt.hasNext(); ) { currChar = alphaIt.next(); // lege eine neue (zunchst) leere Menge an, hier kommen // alle Zustnde hinein die von stateId mit currChar aus erreichbar sind destSet = new IntegerSet(); // durchlaufe die aktuelle Menge (=Zustand) .... for ( Iterator<Integer> setIt = currentSet.iterator(); setIt.hasNext(); ) { stateId = setIt.next(); // besorge alle Transitionen dieses (alten) Zustands aus dem // alten Automaten transList = aut.getStateTransitions(stateId); if (transList==null) continue; // betrachte nun die ausgehenden Transition dieses ZUstands im alten Aut. for ( Iterator<Transition> transIt = transList.iterator(); transIt.hasNext(); ) { currTrans = transIt.next(); // gab es im alten Automaten eine Transition von stateId mit currChar // irgendwo anders hin, fge den jeweiligen Zielzustand in die // neue Zielzustandsmenge ein if (currTrans.getChar() == currChar && currTrans.getStartState()==stateId) { destSet.insert(currTrans.getEndState()); } } // ber den Index im Vector der Potenzmenge werden die einzelnen // Menge eindeutig identifiziert, hier wird die endgltige Transition eingefgt } dfaResult.addTransition(statePowerSet.indexOf(currentIntSet), statePowerSet.indexOf(destSet), currChar); } } // abschlieend bestimmen wir nun noch die neuen Endzustnde des Automaten // dazu nehmen wir die ursprngliche Endzustandsmenge und schneiden mit // jedem Element der Potenzmenge, ist der Schnitt nicht leer, ist der // entsprechende Zustand (==Menge) ein endzustand im neuen Automat // einfach gesagt, jede Zustandsmenge des Potenzautomaten die // den einen alten Endzustand enthlt ist Endzustand. IntegerSet oldFinalSet = aut.getFinalSet(); for ( Iterator<IntegerSet> it = statePowerSet.iterator(); it.hasNext(); ) { currentIntSet = it.next(); currentIntSet.intersect(oldFinalSet); if (!currentIntSet.isEmpty()) { dfaResult.setFinalFlag(statePowerSet.indexOf(currentIntSet), true); } } // erzeuge die noch nicht vorhandenen Pixelpositionen der Zustnde dfaResult = generatePositions(dfaResult); // TODO // die Determinisierung erzeugt viel redundanten / anderweitigen // Unsinn (= sinnlose Zustnde und Transitionen) // eine nachgelagerte Minimierung wre sinnvoll return dfaResult; }
11750 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11750/35e13208b16268a0f434f143f6528b07c453708d/FSAAlgo.java/clean/src/algo/FSAAlgo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 478, 5233, 302, 847, 81, 12, 4931, 37, 2059, 13, 288, 3639, 478, 5233, 23074, 1253, 273, 394, 478, 5233, 5621, 7734, 1748, 6445, 334, 292, 298, 10387, 2285, 641, 464, 4808, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 478, 5233, 302, 847, 81, 12, 4931, 37, 2059, 13, 288, 3639, 478, 5233, 23074, 1253, 273, 394, 478, 5233, 5621, 7734, 1748, 6445, 334, 292, 298, 10387, 2285, 641, 464, 4808, 2...
private void initComponents() { registerComponent(_ctl.getRenderBox(), "Main", ViewInterface.MAIN_PANEL); registerComponent(_ctl.getViewFactory().getHelpPane(), "Help", ViewInterface.MAIN_PANEL); update(); }
11096 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11096/599a6228d11dd4ce44702ee5d89e589994e5c3d3/NGUI.java/buggy/trunk/src/nv2d/ui/NGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 2738, 7171, 1435, 95, 202, 202, 4861, 1841, 24899, 12930, 18, 588, 3420, 3514, 9334, 6, 6376, 3113, 1767, 1358, 18, 19803, 67, 30819, 2247, 1769, 202, 202, 4861, 1841, 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, 225, 202, 1152, 6459, 2738, 7171, 1435, 95, 202, 202, 4861, 1841, 24899, 12930, 18, 588, 3420, 3514, 9334, 6, 6376, 3113, 1767, 1358, 18, 19803, 67, 30819, 2247, 1769, 202, 202, 4861, 1841, 24...
GUIUtilities.requestFocus(newView,newView.getTextArea());
public static View newView(View view, Buffer buffer) { if(view != null) { view.showWaitCursor(); view.getEditPane().saveCaretInfo(); } View newView = new View(buffer,null); // Do this crap here so that the view is created // and added to the list before it is shown // (for the sake of plugins that add stuff to views) newView.pack(); // newView.setSize(view.getSize()) creates incorrectly // sized views, for some reason... if(view != null) { GUIUtilities.saveGeometry(view,"view"); view.hideWaitCursor(); } GUIUtilities.loadGeometry(newView,"view"); addViewToList(newView); EditBus.send(new ViewUpdate(newView,ViewUpdate.CREATED)); GUIUtilities.requestFocus(newView,newView.getTextArea()); newView.show(); // show tip of the day if(newView == viewsFirst) { // Don't show the welcome message if jEdit was started // with the -nosettings switch if(settingsDirectory != null && getBooleanProperty("firstTime")) new HelpViewer(); else if(jEdit.getBooleanProperty("tip.show")) new TipOfTheDay(newView); setBooleanProperty("firstTime",false); } return newView; } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/89a0ca9b77b4d35610d70626e89dc3d27d2d1b39/jEdit.java/clean/org/gjt/sp/jedit/jEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 4441, 394, 1767, 12, 1767, 1476, 16, 3525, 1613, 13, 202, 95, 202, 202, 430, 12, 1945, 480, 446, 13, 202, 202, 95, 1082, 202, 1945, 18, 4500, 5480, 6688, 5621, 1082, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 4441, 394, 1767, 12, 1767, 1476, 16, 3525, 1613, 13, 202, 95, 202, 202, 430, 12, 1945, 480, 446, 13, 202, 202, 95, 1082, 202, 1945, 18, 4500, 5480, 6688, 5621, 1082, 20...
for (int i = 0; i < selected.size(); i++) { PluginList.Plugin plugin = (PluginList.Plugin)selected.get(i); plugin.checkIfInstalled(); }
roster.performOperationsInAWTThread(window);
public void actionPerformed(ActionEvent evt) { boolean downloadSource = jEdit.getBooleanProperty( "plugin-manager.downloadSource"); boolean installUser = true; Roster roster = new Roster(); String installDirectory; if(installUser) { installDirectory = MiscUtilities.constructPath( jEdit.getSettingsDirectory(),"jars"); } else { installDirectory = MiscUtilities.constructPath( jEdit.getJEditHome(),"jars"); } int length = pluginModel.getRowCount(); LinkedList selected = new LinkedList(); for (int i = 0; i < length; i++) { Entry entry = pluginModel.getEntry(i); if (entry.install.booleanValue()) { entry.plugin.install(roster,installDirectory,downloadSource); selected.add(entry.plugin); } } if(roster.isEmpty()) return; new PluginManagerProgress(window,"install",roster); for (int i = 0; i < selected.size(); i++) { PluginList.Plugin plugin = (PluginList.Plugin)selected.get(i); plugin.checkIfInstalled(); } pluginModel.update(); }
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/b923059c8829e79298e41ce7e4a83f970c79d84c/InstallPanel.java/clean/org/gjt/sp/jedit/pluginmgr/InstallPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 202, 202, 95, 1082, 202, 6494, 4224, 1830, 273, 525, 4666, 18, 588, 5507, 1396, 12, 9506, 202, 6, 4094, 17, 4181, 18, 7813, 1830, 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, 3196, 202, 482, 918, 26100, 12, 1803, 1133, 6324, 13, 202, 202, 95, 1082, 202, 6494, 4224, 1830, 273, 525, 4666, 18, 588, 5507, 1396, 12, 9506, 202, 6, 4094, 17, 4181, 18, 7813, 1830, 8863, ...
FSVolume getNextVolume(long blockSize) throws IOException {
synchronized FSVolume getNextVolume(long blockSize) throws IOException {
FSVolume getNextVolume(long blockSize) throws IOException { int startVolume = curVolume; while (true) { FSVolume volume = volumes[curVolume]; curVolume = (curVolume + 1) % volumes.length; if (volume.getAvailable() >= blockSize) { return volume; } if (curVolume == startVolume) { throw new DiskOutOfSpaceException("Insufficient space for an additional block"); } } }
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/8f39b3b0e7898bbe2894075812d44127b727497f/FSDataset.java/buggy/src/java/org/apache/hadoop/dfs/FSDataset.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 3852, 9247, 4545, 6927, 4545, 12, 5748, 13766, 13, 1216, 1860, 288, 3639, 509, 787, 4545, 273, 662, 4545, 31, 3639, 1323, 261, 3767, 13, 288, 1850, 9247, 4545, 3940, 273, 11364, 63, 1397...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 3852, 9247, 4545, 6927, 4545, 12, 5748, 13766, 13, 1216, 1860, 288, 3639, 509, 787, 4545, 273, 662, 4545, 31, 3639, 1323, 261, 3767, 13, 288, 1850, 9247, 4545, 3940, 273, 11364, 63, 1397...
StringBuffer source) {
String source) {
public void handleCompilationDone(Context cx, DebuggableScript fnOrScript, StringBuffer source) { String sourceName = fnOrScript.getSourceName(); if (sourceName == null) { sourceName = "<stdin>"; } if (sourceName.endsWith("(eval)")) { String origSourceName = sourceName.substring(0, sourceName.length() - 6); Vector v = (Vector)sourceNames.get(origSourceName); if (v != null) { SourceEntry prev = (SourceEntry)v.get(v.size() - 1); source = prev.source; SourceEntry entry = new SourceEntry(source, fnOrScript); v.addElement(entry); return; } } Vector v = (Vector) sourceNames.get(sourceName); if (v == null) { v = new Vector(); sourceNames.put(sourceName, v); } SourceEntry entry = new SourceEntry(source, fnOrScript); v.addElement(entry); if (fnOrScript.getScriptable() instanceof NativeFunction) { NativeFunction f = (NativeFunction)fnOrScript.getScriptable(); String name = f.getFunctionName(); if (name.length() > 0 && !name.equals("anonymous")) { functionMap.put(name, entry); } } loadedFile(sourceName, source.toString()); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/fe448dc961d62e375854f73e6d52bad9cef2beea/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 19184, 7387, 12, 1042, 9494, 16, 4015, 8455, 3651, 2295, 1162, 3651, 16, 4766, 1377, 514, 1084, 13, 288, 3639, 514, 28337, 273, 2295, 1162, 3651, 18, 588, 1830, 461, 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, 1640, 19184, 7387, 12, 1042, 9494, 16, 4015, 8455, 3651, 2295, 1162, 3651, 16, 4766, 1377, 514, 1084, 13, 288, 3639, 514, 28337, 273, 2295, 1162, 3651, 18, 588, 1830, 461, 5621...
public _If(_CompositeContext parent, int startOffset, int endOffset, boolean taken) { super(parent, startOffset, endOffset); this.taken = taken; }
public _If(_CompositeContext parent, int startOffset, int endOffset, boolean taken) { super(parent, startOffset, endOffset); this.taken = taken; }
public _If(_CompositeContext parent, int startOffset, int endOffset, boolean taken) { super(parent, startOffset, endOffset); this.taken = taken; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/33390e2e03dc3a1dd0c3bedcc27e52231c6a907e/LocationMap.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/LocationMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 389, 2047, 24899, 9400, 1042, 982, 16, 509, 18245, 16, 509, 25507, 16, 1250, 9830, 13, 288, 540, 2240, 12, 2938, 16, 18245, 16, 25507, 1769, 540, 333, 18, 29113, 273, 9830, 31, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 389, 2047, 24899, 9400, 1042, 982, 16, 509, 18245, 16, 509, 25507, 16, 1250, 9830, 13, 288, 540, 2240, 12, 2938, 16, 18245, 16, 25507, 1769, 540, 333, 18, 29113, 273, 9830, 31, 1...
code.Emit(OpCodes.Callvirt, (MethodInfo)method);
code.Emit(virtualCall ? OpCodes.Callvirt : OpCodes.Call, (MethodInfo)method);
Item invokeMethod(Symbol fun, Tree[] args, MSILType resType) { //log("invokeMethod: " + dumpSym(fun)); MethodBase method = tc.getMethod(fun); assert method != null : "Coudn't resolve method: " + dumpSym(fun); //log("\tmethod found: " + method); Item res = null; if (method.IsStatic) { ParameterInfo[] params = method.GetParameters(); if (becomesStatic(fun)) { assert params.length == args.length + 1; ParameterInfo[] newParams = new ParameterInfo[params.length - 1]; for (int i = 0; i < newParams.length; i++) newParams[i] = params[i + 1]; params = newParams; } loadArgs(args, params); code.Emit(OpCodes.Call, (MethodInfo)method); res = returnsVoid(method) ? items.VoidItem() : items.StackItem(resType); } else if (method.IsConstructor) { // used only for calls to super constructor emitThis(); loadArgs(args, method.GetParameters()); code.Emit(OpCodes.Call, (ConstructorInfo)method); res = items.VoidItem(); } else { loadArgs(args, method.GetParameters()); if (enableTailCalls && lastStatement && method == currentMethod) code.Emit(OpCodes.Tailcall); code.Emit(OpCodes.Callvirt, (MethodInfo)method); res = returnsVoid(method) ? items.VoidItem() : items.StackItem(resType); } return check(res); }
10130 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10130/1277abded4626962f01ac900bc8ac7860db80d29/GenMSIL.java/buggy/sources/scalac/backend/msil/GenMSIL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4342, 27632, 12, 5335, 9831, 16, 4902, 8526, 833, 16, 490, 2320, 48, 559, 400, 559, 13, 288, 202, 759, 1330, 2932, 14407, 1305, 30, 315, 397, 4657, 11901, 12, 12125, 10019, 202, 1305, 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, 4342, 27632, 12, 5335, 9831, 16, 4902, 8526, 833, 16, 490, 2320, 48, 559, 400, 559, 13, 288, 202, 759, 1330, 2932, 14407, 1305, 30, 315, 397, 4657, 11901, 12, 12125, 10019, 202, 1305, 2...
final Iterator tableIterator = it0;
final Iterator tableIt = tableSet.tailSet(partialTable).iterator();
public Iterator completeTableName(String partialTable) { SQLSession session = henplus.getSession(); if (session == null) return null; final SortedSet tableSet = getTableSet(session); Iterator it0 = tableSet.tailSet(partialTable).iterator(); if (!it0.hasNext()) { // test uppercase, then: partialTable = partialTable.toUpperCase(); //System.err.println("test upper case: " + partialTable); it0 = tableSet.tailSet(partialTable).iterator(); } final Iterator tableIterator = it0; final String tablePattern = partialTable; return new Iterator() { String current = null; public boolean hasNext() { if (tableIterator.hasNext()) { current = (String) tableIterator.next(); if (current.startsWith(tablePattern)) return true; } return false; } public Object next() { return current; } public void remove() { throw new UnsupportedOperationException("no!"); } }; }
9659 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9659/af5cbfe86175673fed25dab40df470288219a513/ListUserObjectsCommand.java/clean/src/henplus/commands/ListUserObjectsCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4498, 3912, 7147, 12, 780, 4702, 1388, 13, 288, 202, 3997, 2157, 1339, 273, 366, 275, 10103, 18, 588, 2157, 5621, 202, 430, 261, 3184, 422, 446, 13, 327, 446, 31, 202, 6385, 22123...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4498, 3912, 7147, 12, 780, 4702, 1388, 13, 288, 202, 3997, 2157, 1339, 273, 366, 275, 10103, 18, 588, 2157, 5621, 202, 430, 261, 3184, 422, 446, 13, 327, 446, 31, 202, 6385, 22123...
protected String toExternalForm(URL url) { StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH); sb.append("file:");
protected String toExternalForm (URL url) { StringBuffer sb = new StringBuffer (PlatformHelper.INITIAL_MAX_PATH); sb.append ("file:"); String prefix = url.getHost();
protected String toExternalForm(URL url) { StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH); sb.append("file:"); String prefix = url.getHost(); if (prefix != null && prefix.length() > 0) { sb.append(prefix); int port = url.getPort(); if (port > 0) { sb.append(':'); sb.append(port); } } String file = url.getFile(); if (file != null) sb.append(file); else sb.append('/'); String anchor = url.getRef(); if (anchor != null) { sb.append('#'); sb.append(anchor); } return sb.toString(); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/Handler.java/clean/core/src/classpath/gnu/gnu/java/net/protocol/file/Handler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 358, 6841, 1204, 12, 1785, 880, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 8201, 2276, 18, 28497, 67, 6694, 67, 4211, 1769, 202, 202, 18366, 18, 6923, 2932,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 358, 6841, 1204, 12, 1785, 880, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 8201, 2276, 18, 28497, 67, 6694, 67, 4211, 1769, 202, 202, 18366, 18, 6923, 2932,...
public void setColorModel( ColorModel model ) { }
public void setColorModel(ColorModel model) { }
public void setColorModel( ColorModel model ) { // Ignore. }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/f1a2e8bd347e294e5391728379b76d4500a7093d/ImageEncoder.java/clean/freehep-graphicsio/src/main/java/org/freehep/graphicsio/gif/ImageEncoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 16207, 1488, 12, 5563, 1488, 938, 262, 282, 288, 1377, 368, 8049, 18, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 16207, 1488, 12, 5563, 1488, 938, 262, 282, 288, 1377, 368, 8049, 18, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
public BuildingBlock(InputStream is) { rawData = new Vector(); this.readInputStream(is);
public BuildingBlock() { rawData = new Vector<String>();
public BuildingBlock(InputStream is) { rawData = new Vector(); this.readInputStream(is); }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/146b09124def37ab63c0bb3069d6ef9e2de68334/BuildingBlock.java/buggy/megamek/src/megamek/common/util/BuildingBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3998, 310, 1768, 12, 4348, 353, 13, 288, 3639, 16503, 273, 394, 5589, 5621, 3639, 333, 18, 896, 4348, 12, 291, 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, 3998, 310, 1768, 12, 4348, 353, 13, 288, 3639, 16503, 273, 394, 5589, 5621, 3639, 333, 18, 896, 4348, 12, 291, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -...
Vector resources = m_driverManager.getBackupDriver().readBackupProjectResources(dbc, res.getInt("TAG_ID"));
Vector resources = m_driverManager.getBackupDriver().readBackupProjectResources(dbc, res.getInt("PUBLISH_TAG"));
public Vector readBackupProjects(CmsDbContext dbc) throws CmsException { Vector projects = new Vector(); ResultSet res = null; PreparedStatement stmt = null; Connection conn = null; try { // create the statement conn = m_sqlManager.getConnection(dbc); stmt = m_sqlManager.getPreparedStatement(conn, "C_ORACLE_PROJECTS_READLAST_BACKUP"); stmt.setInt(1, 300); res = stmt.executeQuery(); while (res.next()) { Vector resources = m_driverManager.getBackupDriver().readBackupProjectResources(dbc, res.getInt("TAG_ID")); projects.addElement( new CmsBackupProject( res.getInt("PUBLISH_TAG"), res.getInt("PROJECT_ID"), res.getString("PROJECT_NAME"), res.getString("PROJECT_DESCRIPTION"), res.getInt("TASK_ID"), new CmsUUID(res.getString("USER_ID")), new CmsUUID(res.getString("GROUP_ID")), new CmsUUID(res.getString("MANAGERGROUP_ID")), res.getLong("DATE_CREATED"), res.getInt("PROJECT_TYPE"), CmsDbUtil.getTimestamp(res, "PROJECT_PUBLISHDATE"), new CmsUUID(res.getString("PROJECT_PUBLISHED_BY")), res.getString("PROJECT_PUBLISHED_BY_NAME"), res.getString("USER_NAME"), res.getString("GROUP_NAME"), res.getString("MANAGERGROUP_NAME"), resources)); } } catch (SQLException exc) { throw m_sqlManager.getCmsException(this, "readBackupProjects", CmsException.C_SQL_ERROR, exc, false); } finally { m_sqlManager.closeAll(dbc, conn, stmt, res); } return (projects); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/1627bce1afaec65911eba03c6de2bb51e9cec8aa/CmsBackupDriver.java/clean/src/org/opencms/db/oracle/CmsBackupDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5589, 855, 6248, 15298, 12, 4747, 4331, 1042, 9881, 13, 1216, 11228, 288, 3639, 5589, 10137, 273, 394, 5589, 5621, 3639, 10842, 400, 273, 446, 31, 3639, 16913, 3480, 273, 446, 31, 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, 5589, 855, 6248, 15298, 12, 4747, 4331, 1042, 9881, 13, 1216, 11228, 288, 3639, 5589, 10137, 273, 394, 5589, 5621, 3639, 10842, 400, 273, 446, 31, 3639, 16913, 3480, 273, 446, 31, 3...
_textpane = new JTextPane(){
_textpane = new JTextPane() {
public RecentDocFrame(MainFrame f){ super(); _frame = f; _current = 0; _label = new JLabel("..."){ // Enable anti-aliased text by overriding paintComponent. protected void paintComponent(Graphics g) { if (CodeStatus.DEVELOPMENT) { if (_antiAliasText && g instanceof Graphics2D) { Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); } } super.paintComponent(g); } }; _panel = new JPanel(); _scroller = new JScrollPane(); _textpane = new JTextPane(){ // Enable anti-aliased text by overriding paintComponent. protected void paintComponent(Graphics g) { if (CodeStatus.DEVELOPMENT) { if (_antiAliasText && g instanceof Graphics2D) { Graphics2D g2d = (Graphics2D)g; g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON); } } super.paintComponent(g); } }; _textpane.setText("..."); _scroller.getViewport().add(_textpane); _scroller.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER); _scroller.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); _scroller.setMaximumSize(new Dimension(300,200)); _panel.setLayout(new BorderLayout()); _panel.add(_label, BorderLayout.NORTH); _panel.add(_scroller, BorderLayout.SOUTH); getContentPane().add(_panel); pack(); updateFontColor(); _showSource = DrJava.getConfig().getSetting(OptionConstants.SHOW_SOURCE_WHEN_SWITCHING); DrJava.getConfig().addOptionListener(OptionConstants.DEFINITIONS_BACKGROUND_COLOR, _colorListener); DrJava.getConfig().addOptionListener(OptionConstants.DEFINITIONS_NORMAL_COLOR, _colorListener); DrJava.getConfig().addOptionListener(OptionConstants.FONT_MAIN, _fontListener); DrJava.getConfig().addOptionListener(OptionConstants.TEXT_ANTIALIAS, _antialiasListener); DrJava.getConfig().addOptionListener(OptionConstants.SHOW_SOURCE_WHEN_SWITCHING, _showSourceListener); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/35da9b77b7d75aca3d6277e27e3ba3dc86f3eaa9/RecentDocFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/RecentDocFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 868, 2998, 1759, 3219, 12, 6376, 3219, 284, 15329, 565, 2240, 5621, 565, 389, 3789, 273, 284, 31, 565, 389, 2972, 273, 374, 31, 565, 389, 1925, 273, 394, 21403, 2932, 7070, 15329, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 868, 2998, 1759, 3219, 12, 6376, 3219, 284, 15329, 565, 2240, 5621, 565, 389, 3789, 273, 284, 31, 565, 389, 2972, 273, 374, 31, 565, 389, 1925, 273, 394, 21403, 2932, 7070, 15329, ...
IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) {
IMethod method = type.getMethod(fMethodName, new String[0]); if ((method != null) && method.exists()) {
IMethod findMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod method= type.getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { method= types[i].getMethod(fMethodName, new String[0]); if (method != null && method.exists()) { return method; } } return null; }
54672 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54672/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 467, 1305, 1104, 1305, 382, 559, 12074, 12, 45, 559, 618, 13, 1216, 5110, 1488, 503, 288, 565, 467, 1305, 707, 33, 618, 18, 588, 1305, 12, 74, 11666, 16, 394, 514, 63, 20, 19226, 377,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 467, 1305, 1104, 1305, 382, 559, 12074, 12, 45, 559, 618, 13, 1216, 5110, 1488, 503, 288, 565, 467, 1305, 707, 33, 618, 18, 588, 1305, 12, 74, 11666, 16, 394, 514, 63, 20, 19226, 377,...
public void moveMessage(FolderInfo targetFolder, boolean expunge) throws MessagingException { try { folderInfo.copyMessages(new MessageInfo[] { this }, targetFolder); } catch (MessagingException me) { MessagingException returnValue = new MessagingException (Pooka.getProperty("error.Message.CopyErrorMessage", "Error: could not copy messages to folder: ") + targetFolder.toString() +"\n", me); returnValue.initCause(me); throw returnValue; } try { remove(expunge); } catch (MessagingException me) { MessagingException returnValue = new MessagingException(Pooka.getProperty("error.Message.RemoveErrorMessage", "Error: could not remove messages from folder: ") + targetFolder.toString() +"\n", me); returnValue.initCause(me); throw returnValue; } }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/ad1d7a526540019e033079228544b3a802a556d3/MessageInfo.java/buggy/src/net/suberic/pooka/MessageInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3635, 1079, 12, 3899, 966, 1018, 3899, 16, 1250, 1329, 25561, 13, 1216, 23794, 503, 288, 565, 775, 288, 1377, 3009, 966, 18, 3530, 5058, 12, 2704, 2350, 966, 8526, 288, 333, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3635, 1079, 12, 3899, 966, 1018, 3899, 16, 1250, 1329, 25561, 13, 1216, 23794, 503, 288, 565, 775, 288, 1377, 3009, 966, 18, 3530, 5058, 12, 2704, 2350, 966, 8526, 288, 333, ...
yaccValue = stringToken.toString(); return Token.tSTRING; }
yaccValue = stringToken.toString(); return Token.tSTRING; }
private int parseSingleQuotedString(int closeQuote, int openQuote) { ISourcePosition position = support.getPosition(); int c; int nest = 0; // int strstart = ruby.getSourceLine(); StringBuffer stringToken = new StringBuffer(); while ((c = nextc()) != closeQuote || nest > 0) { if (c == -1) { // ruby.setSourceLine(strstart); errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } if (c == '\\') { c = nextc(); switch (c) { case '\n' : continue; case '\\' : c = '\\'; break; default : // fall through if (c == closeQuote || (openQuote != 0 && c == openQuote)) { stringToken.append((char) c); continue; } stringToken.append('\\'); } } if (openQuote != 0) { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } stringToken.append((char) c); } lexState = LexState.EXPR_END; yaccValue = stringToken.toString(); return Token.tSTRING; }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/clean/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1109, 5281, 15919, 780, 12, 474, 1746, 10257, 16, 509, 1696, 10257, 13, 288, 202, 202, 45, 1830, 2555, 1754, 273, 2865, 18, 588, 2555, 5621, 202, 202, 474, 276, 31, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1109, 5281, 15919, 780, 12, 474, 1746, 10257, 16, 509, 1696, 10257, 13, 288, 202, 202, 45, 1830, 2555, 1754, 273, 2865, 18, 588, 2555, 5621, 202, 202, 474, 276, 31, 202,...
if (secondByte < 0x40 || secondByte >=0x7f && secondByte <= 0xa0 || secondByte == 0xff) {
if (secondByte < 0x40 || secondByte == 0x007f || secondByte == 0x00ff || sjis && secondByte >= 0x00fd) {
boolean nextChar(iteratedChar it) { it.index = it.nextIndex; it.error = false; int firstByte = 0; int secondByte = 0; buildChar: { firstByte = it.charValue = it.nextByte(); if (firstByte < 0) { // Ran off the end of the input data it.done = true; break buildChar; } if (firstByte <= 0x80) { // single byte char break buildChar; } secondByte = it.nextByte(); it.charValue = (it.charValue << 8) | secondByte; if (secondByte < 0x40 || secondByte >=0x7f && secondByte <= 0xa0 || secondByte == 0xff) { it.error = true; } } return (it.done == false); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/017be20909d4280d037f343c6a31268fee6b0413/BIG5Tool.java/buggy/icu4j/src/com/ibm/icu/dev/tool/charsetdet/mbcs/BIG5Tool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 21865, 12, 2165, 690, 2156, 518, 13, 288, 3639, 518, 18, 1615, 273, 518, 18, 4285, 1016, 31, 3639, 518, 18, 1636, 273, 629, 31, 3639, 509, 1122, 3216, 225, 273, 374, 31, 3639, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1250, 21865, 12, 2165, 690, 2156, 518, 13, 288, 3639, 518, 18, 1615, 273, 518, 18, 4285, 1016, 31, 3639, 518, 18, 1636, 273, 629, 31, 3639, 509, 1122, 3216, 225, 273, 374, 31, 3639, 5...
if (peekToken(0) == Token.COLON) {
if (peekToken() == Token.COLON) {
private Node primaryExpr() throws IOException, ParserException { Node pn; int ttFlagged = nextFlaggedToken(TokenStream.TSF_REGEXP); int tt = ttFlagged & CLEAR_TI_MASK; switch(tt) { case Token.FUNCTION: return function(FunctionNode.FUNCTION_EXPRESSION); case Token.LB: { ObjArray elems = new ObjArray(); int skipCount = 0; decompiler.addToken(Token.LB); boolean after_lb_or_comma = true; for (;;) { tt = peekToken(TokenStream.TSF_REGEXP); if (tt == Token.COMMA) { consumeToken(); decompiler.addToken(Token.COMMA); if (!after_lb_or_comma) { after_lb_or_comma = true; } else { elems.add(null); ++skipCount; } } else if (tt == Token.RB) { consumeToken(); decompiler.addToken(Token.RB); break; } else { if (!after_lb_or_comma) { reportError("msg.no.bracket.arg"); } elems.add(assignExpr(false)); after_lb_or_comma = false; } } return nf.createArrayLiteral(elems, skipCount); } case Token.LC: { ObjArray elems = new ObjArray(); decompiler.addToken(Token.LC); if (!matchToken(Token.RC, 0)) { boolean first = true; commaloop: do { Object property; if (!first) decompiler.addToken(Token.COMMA); else first = false; tt = peekToken(0); switch(tt) { case Token.NAME: case Token.STRING: consumeToken(); // map NAMEs to STRINGs in object literal context // but tell the decompiler the proper type String s = ts.getString(); if (tt == Token.NAME) { decompiler.addName(s); } else { decompiler.addString(s); } property = ScriptRuntime.getIndexObject(s); break; case Token.NUMBER: consumeToken(); double n = ts.getNumber(); decompiler.addNumber(n); property = ScriptRuntime.getIndexObject(n); break; case Token.RC: // trailing comma is OK. break commaloop; default: reportError("msg.bad.prop"); break commaloop; } mustMatchToken(Token.COLON, "msg.no.colon.prop"); // OBJLIT is used as ':' in object literal for // decompilation to solve spacing ambiguity. decompiler.addToken(Token.OBJECTLIT); elems.add(property); elems.add(assignExpr(false)); } while (matchToken(Token.COMMA, 0)); mustMatchToken(Token.RC, "msg.no.brace.prop"); } decompiler.addToken(Token.RC); return nf.createObjectLiteral(elems); } case Token.LP: /* Brendan's IR-jsparse.c makes a new node tagged with * TOK_LP here... I'm not sure I understand why. Isn't * the grouping already implicit in the structure of the * parse tree? also TOK_LP is already overloaded (I * think) in the C IR as 'function call.' */ decompiler.addToken(Token.LP); pn = expr(false); decompiler.addToken(Token.RP); mustMatchToken(Token.RP, "msg.no.paren"); return pn; case Token.XMLATTR: mustHaveXML(); decompiler.addToken(Token.XMLATTR); pn = attributeIdentifier(); return nf.createXMLPrimary(pn); case Token.NAME: { String name = ts.getString(); if ((ttFlagged & TI_CHECK_LABEL) != 0) { if (peekToken(0) == Token.COLON) { // Do not consume colon, it is used as unwind indicator // to return to statementHelper. // XXX Better way? return nf.createLabel(ts.getLineno()); } } decompiler.addName(name); if (compilerEnv.isXmlAvailable()) { pn = nameOrQualifiedName(name, true); } else { pn = nf.createName(name); } return pn; } case Token.NUMBER: { double n = ts.getNumber(); decompiler.addNumber(n); return nf.createNumber(n); } case Token.STRING: { String s = ts.getString(); decompiler.addString(s); return nf.createString(s); } case Token.REGEXP: { String flags = ts.regExpFlags; ts.regExpFlags = null; String re = ts.getString(); decompiler.addRegexp(re, flags); int index = currentScriptOrFn.addRegexp(re, flags); return nf.createRegExp(index); } case Token.NULL: case Token.THIS: case Token.FALSE: case Token.TRUE: decompiler.addToken(tt); return nf.createLeaf(tt); case Token.RESERVED: reportError("msg.reserved.id"); break; case Token.ERROR: /* the scanner or one of its subroutines reported the error. */ break; case Token.EOF: reportError("msg.unexpected.eof"); break; default: reportError("msg.syntax"); break; } return null; // should never reach here }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/eea0a0a79d27ae62fc3c9a3f98c2f0a02adaf2c4/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 3354, 4742, 1435, 3639, 1216, 1860, 16, 27990, 565, 288, 3639, 2029, 11059, 31, 3639, 509, 3574, 4678, 2423, 273, 1024, 4678, 2423, 1345, 12, 1345, 1228, 18, 8047, 42, 67, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 3354, 4742, 1435, 3639, 1216, 1860, 16, 27990, 565, 288, 3639, 2029, 11059, 31, 3639, 509, 3574, 4678, 2423, 273, 1024, 4678, 2423, 1345, 12, 1345, 1228, 18, 8047, 42, 67, 282...
for (int i = 0; i < buf.length && i < len; i++) { StringBuffer temp = new StringBuffer(Integer.toHexString(buf[i])); while (temp.length() < 2) { temp.insert(0, '0'); } temp = new StringBuffer(temp.substring(temp.length() - 2)); out.append(temp.toString()); } return out.toString();
return buf.toString();
public static String toString(byte buf[], int len) { if (buf == null) buf = EMPTY_BUFFER; StringBuffer out = new StringBuffer(); if (len > buf.length) { for (int i = 0; i < len - buf.length; i++) out.append("00"); } for (int i = 0; i < buf.length && i < len; i++) { StringBuffer temp = new StringBuffer(Integer.toHexString(buf[i])); while (temp.length() < 2) { temp.insert(0, '0'); } temp = new StringBuffer(temp.substring(temp.length() - 2)); out.append(temp.toString()); } return out.toString(); }
3808 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3808/01979c08b3f3349252f807ba4b1336dc3270cbed/DataHelper.java/buggy/core/java/src/net/i2p/data/DataHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1762, 12, 7229, 1681, 63, 6487, 509, 562, 13, 288, 3639, 309, 261, 4385, 422, 446, 13, 1681, 273, 8984, 67, 11302, 31, 3639, 6674, 596, 273, 394, 6674, 5621, 3639, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1762, 12, 7229, 1681, 63, 6487, 509, 562, 13, 288, 3639, 309, 261, 4385, 422, 446, 13, 1681, 273, 8984, 67, 11302, 31, 3639, 6674, 596, 273, 394, 6674, 5621, 3639, 309, ...
project.log("Defined targets: "+currentTargets ,Project.MSG_VERBOSE);
public void onStartElement(String uri, String tag, String qname, Attributes attrs, AntXmlContext context) throws SAXParseException { String name = null; String depends = ""; String ifCond = null; String unlessCond = null; String id = null; String description = null; for (int i = 0; i < attrs.getLength(); i++) { String key = attrs.getQName(i); String value = attrs.getValue(i); if (key.equals("name")) { name = value; if( "".equals( name ) ) throw new BuildException("name attribute must not be empty"); } else if (key.equals("depends")) { depends = value; } else if (key.equals("if")) { ifCond = value; } else if (key.equals("unless")) { unlessCond = value; } else if (key.equals("id")) { id = value; } else if (key.equals("description")) { description = value; } else { throw new SAXParseException("Unexpected attribute \"" + key + "\"", context.locator); } } if (name == null) { throw new SAXParseException("target element appears without a name attribute", context.locator); } Project project=context.project; target = new Target(); // No need - it'll be handled explicitly // target.addDependency( "" ); target.setName(name); target.setIf(ifCond); target.setUnless(unlessCond); target.setDescription(description); // START IMPORT CHANGE XXX Move to Import task int timesRedefined = 0; Hashtable currentTargets = project.getTargets(); project.log("Defined targets: "+currentTargets ,Project.MSG_VERBOSE); //currently tracks only one level of super. if(currentTargets.containsKey(name)){ timesRedefined++; } if(timesRedefined>0){ project.log("Redefining target named: \""+name+"\"" ,Project.MSG_VERBOSE); //Adding old target as a new target with super.super[timesRedefined].super.name Target oldTarget = (Target) currentTargets.get(name); project.log("Current oldTarget named "+name+" is "+oldTarget.toString() ,Project.MSG_VERBOSE); String superTargetName = ""; for(int i=0; i < timesRedefined; i++){ superTargetName += "super."; } superTargetName = superTargetName + name; oldTarget.setName(superTargetName); project.addTarget(superTargetName, oldTarget); } // if the target is redefined, it redefines it, otherwise just adds it project.addOrReplaceTarget(name, target); project.log("targets are now: "+currentTargets.toString() ,Project.MSG_VERBOSE); // END IMPORT CHANGE // context.project.addTarget(name, target); if (id != null && !id.equals("")) { context.project.addReference(id, target); } // take care of dependencies if (depends.length() > 0) { target.setDepends(depends); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/ff72515acb7178d78d46acacb8c70e91ca8fdfec/ProjectHelperImpl2.java/clean/proposal/sandbox/embed/ProjectHelperImpl2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 603, 1685, 1046, 12, 780, 2003, 16, 514, 1047, 16, 514, 12621, 16, 4766, 282, 9055, 3422, 16, 4766, 282, 18830, 4432, 1042, 819, 13, 5411, 1216, 10168, 13047, 3639, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 603, 1685, 1046, 12, 780, 2003, 16, 514, 1047, 16, 514, 12621, 16, 4766, 282, 9055, 3422, 16, 4766, 282, 18830, 4432, 1042, 819, 13, 5411, 1216, 10168, 13047, 3639, 288, 5411, ...
{ }
{ return false; }
public boolean supportsStoredProcedures() throws SQLException { // XXX-Not Implemented }
52628 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52628/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6146, 18005, 626, 23382, 1435, 1216, 6483, 202, 95, 202, 202, 759, 11329, 17, 1248, 18788, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6146, 18005, 626, 23382, 1435, 1216, 6483, 202, 95, 202, 202, 759, 11329, 17, 1248, 18788, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
curNode.setTransmissionDelay(receiveDelay); switch (nodeType) { case SerialNode.SMINI: int numSet = 0; for (int j=0;j<47;j++) { if ( curNode.isSearchLightBit(j) ) { if(!firstSearchlight[j]) { curNode.clear2LeadSearchLight(j); j ++; } else { j ++; } } } for (int i=0;i<47;i++) { if ( firstSearchlight[i] ) { if ( !curNode.isSearchLightBit(i) ) { curNode.set2LeadSearchLight(i); } numSet ++; } } if (numSet != num2LSearchLights) { log.error("Inconsistent numbers of 2-lead searchlights. numSet = "+ Integer.toString(numSet)+", num2LSearchLights = "+ Integer.toString(num2LSearchLights) ); } break; case SerialNode.USIC_SUSIC: curNode.setNumBitsPerCard(bitsPerCard); int numInput = 0; int numOutput = 0; for (int i=0;i<64;i++) { if ( "No Card".equals(cardType[i]) ) { curNode.setCardTypeByAddress(i,SerialNode.NO_CARD); } else if ( "Input Card".equals(cardType[i]) ) { curNode.setCardTypeByAddress(i,SerialNode.INPUT_CARD); numInput ++; } else if ( "Output Card".equals(cardType[i]) ) { curNode.setCardTypeByAddress(i,SerialNode.OUTPUT_CARD); numOutput ++; } else { log.error("Unexpected card type - "+cardType[i]); } } if ( numCards != (numOutput+numInput) ) { log.error("Inconsistent numbers of cards - setNodeParameters."); } break; default: log.error("Unexpected node type in setNodeParameters- "+ Integer.toString(nodeType)); break; }
curNode.setNodeType(nodeType);
void setNodeParameters() { // receive delay is common for all node types curNode.setTransmissionDelay(receiveDelay); // continue in a node specific way switch (nodeType) { case SerialNode.SMINI: // Note: most parameters are set by default on creation int numSet = 0; // Configure 2-lead oscillating searchlights - first clear unneeded searchlights for (int j=0;j<47;j++) { if ( curNode.isSearchLightBit(j) ) { if(!firstSearchlight[j]) { // this is the first bit of a deleted searchlight - clear it curNode.clear2LeadSearchLight(j); // skip over the second bit of the cleared searchlight j ++; } else { // this is the first bit of a kept searchlight - skip second bit j ++; } } } // Add needed searchlights that are not already configured for (int i=0;i<47;i++) { if ( firstSearchlight[i] ) { if ( !curNode.isSearchLightBit(i) ) { // this is the first bit of an added searchlight curNode.set2LeadSearchLight(i); } numSet ++; } } // consistency check if (numSet != num2LSearchLights) { log.error("Inconsistent numbers of 2-lead searchlights. numSet = "+ Integer.toString(numSet)+", num2LSearchLights = "+ Integer.toString(num2LSearchLights) ); } break; case SerialNode.USIC_SUSIC: // set number of bits per card curNode.setNumBitsPerCard(bitsPerCard); // configure the input/output cards int numInput = 0; int numOutput = 0; for (int i=0;i<64;i++) { if ( "No Card".equals(cardType[i]) ) { curNode.setCardTypeByAddress(i,SerialNode.NO_CARD); } else if ( "Input Card".equals(cardType[i]) ) { curNode.setCardTypeByAddress(i,SerialNode.INPUT_CARD); numInput ++; } else if ( "Output Card".equals(cardType[i]) ) { curNode.setCardTypeByAddress(i,SerialNode.OUTPUT_CARD); numOutput ++; } else { log.error("Unexpected card type - "+cardType[i]); } } // consistency check if ( numCards != (numOutput+numInput) ) { log.error("Inconsistent numbers of cards - setNodeParameters."); } break;// here add code for other node types default: log.error("Unexpected node type in setNodeParameters- "+ Integer.toString(nodeType)); break; } // Cause reinitialization of this Node to reflect these parameters SerialTrafficController.instance().initializeSerialNode(curNode); }
213 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/213/99b7b22315da47b053cf505fb1c152029f792f09/NodeConfigFrame.java/clean/jmri/jmrix/oaktree/nodeconfig/NodeConfigFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 26250, 2402, 1435, 288, 3639, 368, 6798, 4624, 353, 2975, 364, 777, 756, 1953, 3639, 662, 907, 18, 542, 1429, 3951, 6763, 12, 18149, 6763, 1769, 3639, 368, 1324, 316, 279, 756, 2923,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 26250, 2402, 1435, 288, 3639, 368, 6798, 4624, 353, 2975, 364, 777, 756, 1953, 3639, 662, 907, 18, 542, 1429, 3951, 6763, 12, 18149, 6763, 1769, 3639, 368, 1324, 316, 279, 756, 2923,...
List examsEnrolled = student.getExamsEnrolled();
List examsStudentRooms = examStudentRoomDAO.readBy(student); Iterator iter = examsStudentRooms.iterator(); List examsEnrolled = new ArrayList();
public Object run(String username) { List examsToEnroll = new ArrayList(); List infoExamsEnrolled = new ArrayList(); List infoExamsToEnroll = new ArrayList(); List studentExamDistribution = new ArrayList(); try { ISuportePersistente sp = SuportePersistenteOJB.getInstance(); IPersistentExamStudentRoom examStudentRoomDAO = sp.getIPersistentExamStudentRoom(); IStudent student = (IStudent) sp.getIPersistentStudent().readByUsername(username); if (student != null) { List examsEnrolled = student.getExamsEnrolled(); Iterator examsEnrolledIterator = examsEnrolled.iterator(); while (examsEnrolledIterator.hasNext()) { IExam exam = (IExam) examsEnrolledIterator.next(); InfoExam infoExam = Cloner.copyIExam2InfoExam(exam); infoExam.setInfoExecutionCourse( Cloner.copyIExecutionCourse2InfoExecutionCourse( (IDisciplinaExecucao) exam .getAssociatedExecutionCourses() .get( 0))); infoExamsEnrolled.add(infoExam); if (!isInDate(exam)) { //closedEnrollmentExams.add(infoExam); IExamStudentRoom examStudentRoom = examStudentRoomDAO.readBy(exam, student); InfoExamStudentRoom infoExamStudentRoom = null; if (examStudentRoom != null) { infoExamStudentRoom = Cloner.copyIExamStudentRoom2InfoExamStudentRoom(examStudentRoom); } else { infoExamStudentRoom = new InfoExamStudentRoom(); infoExamStudentRoom.setInfoRoom(null); infoExamStudentRoom.setInfoStudent(null); infoExamStudentRoom.setInfoExam(infoExam); } studentExamDistribution.add(infoExamStudentRoom); } } List attends = sp.getIFrequentaPersistente().readByStudentId( student.getNumber()); Iterator examsToEnrollIterator = attends.iterator(); while (examsToEnrollIterator.hasNext()) { examsToEnroll.addAll( ((IFrequenta) examsToEnrollIterator.next()) .getDisciplinaExecucao() .getAssociatedExams()); } CollectionUtils.filter( examsToEnroll, new ExamsNotEnrolledPredicate(examsEnrolled)); Iterator iter3 = examsToEnroll.iterator(); while (iter3.hasNext()) { IExam exam = (IExam) iter3.next(); if (isInDate(exam)) { InfoExam infoExam = Cloner.copyIExam2InfoExam(exam); infoExam.setInfoExecutionCourse( Cloner.copyIExecutionCourse2InfoExecutionCourse( (IDisciplinaExecucao) exam .getAssociatedExecutionCourses() .get( 0))); infoExamsToEnroll.add(infoExam); } } } } catch (ExcepcaoPersistencia e) { e.printStackTrace(); } InfoStudentSiteExams component = new InfoStudentSiteExams(infoExamsToEnroll, infoExamsEnrolled); component.setStudentDistributions(studentExamDistribution); SiteView siteView = new SiteView(component); return siteView; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/6bd98419947839f0ffcb3dcdac9f191f6ae89ad6/ReadExamsByStudent.java/clean/src/ServidorAplicacao/Servico/student/ReadExamsByStudent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 1086, 12, 780, 2718, 13, 288, 202, 202, 682, 19707, 11634, 664, 2693, 273, 394, 2407, 5621, 202, 202, 682, 1123, 424, 301, 87, 664, 25054, 273, 394, 2407, 5621, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 1086, 12, 780, 2718, 13, 288, 202, 202, 682, 19707, 11634, 664, 2693, 273, 394, 2407, 5621, 202, 202, 682, 1123, 424, 301, 87, 664, 25054, 273, 394, 2407, 5621, 202, 202...
selectedValueModel.addValueChangeListener(new ValueChangeListener() {
selectedValueModel.addValueChangeListener(new ValueChangeListener() {
private void subscribe() { selectedValueModel.addValueChangeListener(new ValueChangeListener() { public void valueChanged() { if (selectedValueModel.getValue() != null) { if (!updating) { list.setSelectedValue(selectedValueModel.getValue(), true); } } else { list.clearSelection(); } } }); }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/1ca92818155f3e0a4aed29e15c396b3c749e2b10/SwingFormModel.java/buggy/src/org/springframework/richclient/forms/SwingFormModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 9129, 1435, 288, 5411, 3170, 620, 1488, 18, 1289, 620, 15744, 12, 2704, 1445, 15744, 1435, 288, 7734, 1071, 918, 460, 5033, 1435, 288, 10792, 309, 261, 8109, 620, 1488, 18, 248...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 918, 9129, 1435, 288, 5411, 3170, 620, 1488, 18, 1289, 620, 15744, 12, 2704, 1445, 15744, 1435, 288, 7734, 1071, 918, 460, 5033, 1435, 288, 10792, 309, 261, 8109, 620, 1488, 18, 248...
setSize(getSize()); treeView.setSize(getSize()); repaint(); }
setSize(getSize()); treeView.setSize(getSize()); validate(); repaint(); }
public void setViewTreeOnly() { this.remove(splitPane); this.remove(articleView); this.add(treeView); setSize(getSize()); treeView.setSize(getSize()); repaint(); }
6364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6364/6dcf1d364cd4be32a91c22982cf06a088b62c499/JreepadView.java/clean/jreepad/JreepadView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 19923, 2471, 3386, 1435, 225, 288, 282, 333, 18, 4479, 12, 4939, 8485, 1769, 1377, 333, 18, 4479, 12, 11480, 1767, 1769, 1377, 333, 18, 1289, 12, 3413, 1767, 1769, 1377, 19106,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 19923, 2471, 3386, 1435, 225, 288, 282, 333, 18, 4479, 12, 4939, 8485, 1769, 1377, 333, 18, 4479, 12, 11480, 1767, 1769, 1377, 333, 18, 1289, 12, 3413, 1767, 1769, 1377, 19106,...
AST tmp2377_AST_in = (AST)_t;
AST tmp2381_AST_in = (AST)_t;
public final void sqlupdatestate(AST _t) throws RecognitionException { AST sqlupdatestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2402 = _t; AST tmp2372_AST_in = (AST)_t; match(_t,UPDATE); _t = _t.getFirstChild(); AST tmp2373_AST_in = (AST)_t; match(_t,RECORD_NAME); _t = _t.getNextSibling(); AST tmp2374_AST_in = (AST)_t; match(_t,SET); _t = _t.getNextSibling(); sqlupdate_equal(_t); _t = _retTree; { _loop2404: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp2375_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); sqlupdate_equal(_t); _t = _retTree; } else { break _loop2404; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case WHERE: { AST __t2406 = _t; AST tmp2376_AST_in = (AST)_t; match(_t,WHERE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_14.member(_t.getType()))) { sqlexpression(_t); _t = _retTree; } else if ((_t.getType()==CURRENT)) { AST tmp2377_AST_in = (AST)_t; match(_t,CURRENT); _t = _t.getNextSibling(); AST tmp2378_AST_in = (AST)_t; match(_t,OF); _t = _t.getNextSibling(); AST tmp2379_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); } else { throw new NoViableAltException(_t); } } _t = __t2406; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2402; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1847, 416, 3404, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1847, 416, 3404, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1847, 416, 3404, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1847, 416, 3404, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560...
metaData = new ResultMetaData( resultIter.getResultMetaData(), selectedColumns );
metaData = new ResultMetaData( helper, this.selectedColumns );
public IResultMetaData getResultMetaData( ) throws BirtException { if( metaData == null ) { metaData = new ResultMetaData( resultIter.getResultMetaData(), selectedColumns ); } return metaData; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5e3641fb4b1af6c18cbfa174a0f7563ffa9c1ed/DataIterator.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/DataIterator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1253, 6998, 8601, 6998, 12, 262, 1216, 605, 2714, 503, 202, 95, 202, 202, 430, 12, 11651, 422, 446, 262, 202, 202, 95, 1082, 202, 3901, 751, 273, 394, 3438, 6998, 12, 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, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1253, 6998, 8601, 6998, 12, 262, 1216, 605, 2714, 503, 202, 95, 202, 202, 430, 12, 11651, 422, 446, 262, 202, 202, 95, 1082, 202, 3901, 751, 273, 394, 3438, 6998, 12, 4...
0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200,
0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 173, 0, 0, 0, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 286, 287, 199, 288, 0, 0, 0, 0, 0, 0, 160, 161, 0, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 175, 0, 176, 177, 178, 179, 180, 181, 182, 183, 184, 0, 185, 0, 186,
private static final short[] yyTable4() { return new short[] { 54, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 56, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 47, 39, 40, 41, 42, 41, 0, 43, 44, 45, 0, 0, 0, 0, 0, 41, 0, 47, 47, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 41, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 0, 0, 0, 0, 41, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 54, 54, 0, 0, 54, 54, 54, 0, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 54, 41, 0, 0, 0, 0, 0, 0, 54, 54, 0, 54, 54, 54, 54, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 56, 0, 0, 56, 56, 56, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 56, 56, 56, 56, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 0, 0, 41, 41, 41, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 41, 41, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 619, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 231, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 414, 49, 50, 0, 231, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 611, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 615, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 611, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 804, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 808, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 812, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 867, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 869, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 881, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 251, 251, 251, 0, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 0, 251, 251, 251, 0, 251, 0, 251, 0, 251, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 268, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 526, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 526, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 593, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 643, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 769, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 798, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 483, 483, 483, 0, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 483, 483, 0, 0, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 213, 213, 213, 0, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 213, 213, 0, 0, 213, 213, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 0, 213, 213, 213, 0, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 753, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 349, 0, 48, 49, 50, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 174, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 286, 287, 199, 288, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, }; }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 22431, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11201, 16, 282, 10213, 16, 282...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 24, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 22431, 16, 282, 5342, 16, 282, 4200, 16, 282, 9035, 16, 282, 11201, 16, 282, 10213, 16, 282...
this.output.addRef(encodeTypeEntry(new char[][]{parmDecl.getNameCharArray()}, VAR, ICSearchConstants.DECLARATIONS));
this.output.addRef(encodeTypeEntry(new char[][]{parmDecl.getNameCharArray()}, VAR, ICSearchConstants.DECLARATIONS),indexFlag);
public void addFunctionDeclaration(IASTFunction function){ this.output.addRef(encodeEntry(function.getFullyQualifiedNameCharArrays(),FUNCTION_DECL,FUNCTION_DECL_LENGTH)); Iterator i=function.getParameters(); while (i.hasNext()){ Object parm = i.next(); if (parm instanceof IASTParameterDeclaration){ IASTParameterDeclaration parmDecl = (IASTParameterDeclaration) parm; this.output.addRef(encodeTypeEntry(new char[][]{parmDecl.getNameCharArray()}, VAR, ICSearchConstants.DECLARATIONS)); } } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/2473fc9bad9772bea7e830611534fa1d7df713b5/AbstractIndexer.java/buggy/core/org.eclipse.cdt.core/index/org/eclipse/cdt/internal/core/search/indexing/AbstractIndexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 2083, 6094, 12, 45, 9053, 2083, 445, 15329, 202, 202, 2211, 18, 2844, 18, 1289, 1957, 12, 3015, 1622, 12, 915, 18, 588, 16999, 12345, 2156, 12726, 9334, 7788, 67, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 2083, 6094, 12, 45, 9053, 2083, 445, 15329, 202, 202, 2211, 18, 2844, 18, 1289, 1957, 12, 3015, 1622, 12, 915, 18, 588, 16999, 12345, 2156, 12726, 9334, 7788, 67, 23...
private void init(String name) {
private void init(final String name) {
private void init(String name) { if (name == null) { _qName = null; _localName = null; _package = null; } else { _qName = name; _localName = name; int idx = -1; if ((idx = name.lastIndexOf('.')) > 0) { _package = name.substring(0, idx); _localName = name.substring(idx+1); } } } //-- init
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/34c708e3c0e8dd4b42534f5834f9a280e0c9968b/JTypeName.java/buggy/castor/trunk/src/main/java/org/exolab/javasource/JTypeName.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 12, 6385, 514, 508, 13, 288, 9079, 309, 261, 529, 422, 446, 13, 288, 5411, 389, 85, 461, 377, 273, 446, 31, 5411, 389, 3729, 461, 273, 446, 31, 5411, 389, 5610, 282, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 12, 6385, 514, 508, 13, 288, 9079, 309, 261, 529, 422, 446, 13, 288, 5411, 389, 85, 461, 377, 273, 446, 31, 5411, 389, 3729, 461, 273, 446, 31, 5411, 389, 5610, 282, ...
} else if (object instanceof char[]) {
} if (object instanceof char[]) {
private String getStringValue(Object object) throws SQLException { if (object instanceof byte[]) { // FIXME Encoding? return new String((byte[]) object); } else if (object instanceof char[]) { return new String((char[]) object); } else if (object instanceof Clob) { Clob clob = (Clob) object; StringBuffer buffer = new StringBuffer(); InputStream is = clob.getAsciiStream(); try { byte[] bytes = new byte[BUFFER_SIZE]; int n; while ((n = is.read(bytes)) > -1) { buffer.append(new String(bytes, 0, n, this.clobEncoding)); } } catch (IOException e) { throw new SQLException("Error reading stream from CLOB"); } return buffer.toString(); } else if (object != null) { return object.toString(); } return ""; }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/b94a45c078a782527cce3ca2a17a044e1fd91fdd/SQLTransformer.java/buggy/blocks/cocoon-databases/cocoon-databases-impl/src/main/java/org/apache/cocoon/transformation/SQLTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 514, 27509, 12, 921, 733, 13, 1216, 6483, 288, 5411, 309, 261, 1612, 1276, 1160, 63, 5717, 288, 7734, 368, 9852, 13400, 35, 7734, 327, 394, 514, 12443, 7229, 63, 5717, 733, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 514, 27509, 12, 921, 733, 13, 1216, 6483, 288, 5411, 309, 261, 1612, 1276, 1160, 63, 5717, 288, 7734, 368, 9852, 13400, 35, 7734, 327, 394, 514, 12443, 7229, 63, 5717, 733, 1769, ...
public static Object newInstance(String nameOfClass, Object[] constructorParameters, String nameOfProxy, Object[] proxyParameters) throws ClassNotFoundException, ClassNotReifiableException, InvalidProxyClassException, ConstructionOfProxyObjectFailedException, ConstructionOfReifiedObjectFailedException { try { return newInstance(nameOfClass, nameOfClass, constructorParameters, nameOfProxy, proxyParameters); } catch (ReifiedCastException e) { throw new InternalException(e);
public static Object newInstance(String nameOfClass, Object[] constructorParameters, String nameOfProxy, Object[] proxyParameters) throws ClassNotFoundException, ClassNotReifiableException, InvalidProxyClassException, ConstructionOfProxyObjectFailedException, ConstructionOfReifiedObjectFailedException { try { return newInstance(nameOfClass, nameOfClass, constructorParameters, nameOfProxy, proxyParameters); } catch (ReifiedCastException e) { throw new InternalException(e); }
public static Object newInstance(String nameOfClass, Object[] constructorParameters, String nameOfProxy, Object[] proxyParameters) throws ClassNotFoundException, ClassNotReifiableException, InvalidProxyClassException, ConstructionOfProxyObjectFailedException, ConstructionOfReifiedObjectFailedException { try { return newInstance(nameOfClass, nameOfClass, constructorParameters, nameOfProxy, proxyParameters); } catch (ReifiedCastException e) { throw new InternalException(e); } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/5e6860c26fe200ecc080f3ddc3de5b5afad88243/MOP.java/clean/src/org/objectweb/proactive/core/mop/MOP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 5984, 12, 780, 508, 951, 797, 16, 1033, 8526, 3885, 2402, 16, 514, 508, 951, 3886, 16, 1033, 8526, 2889, 2402, 13, 565, 1216, 1377, 10403, 16, 1377, 1659, 1248, 426, 84...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1033, 5984, 12, 780, 508, 951, 797, 16, 1033, 8526, 3885, 2402, 16, 514, 508, 951, 3886, 16, 1033, 8526, 2889, 2402, 13, 565, 1216, 1377, 10403, 16, 1377, 1659, 1248, 426, 84...
out = new FileOutputStream(to); int length = (int) from.length();
int length = in.available();
private static void cp(File from, File to, int truncateSize) throws IOException { FileInputStream in = null; FileOutputStream out = null; try { out = new FileOutputStream(to); int length = (int) from.length(); if (truncateSize > length) length = 0; else length -= truncateSize; if (length > 0) { if (length > CP_BUF_SIZE) { length = CP_BUF_SIZE; } in = new FileInputStream(from); byte buffer[] = new byte[length]; int size = 0; int count; while ((count = in.read(buffer, 0, length)) > 0) { if ((size + count) >= length) count = length - size; out.write(buffer, 0, count); size += count; } in.close(); in = null; } out.close(); out = null; } catch (IOException e) { // close open streams if (out != null) { try { out.close(); } catch (IOException ee) { } } if (in != null) { try { in.close(); } catch (IOException ee) { } } throw e; } }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/c2c12fd69d66a2cec3fd5b01bd960b39fc7d312e/ReliableFile.java/buggy/bundles/org.eclipse.osgi/defaultAdaptor/src/org/eclipse/osgi/framework/internal/reliablefile/ReliableFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 3283, 12, 812, 628, 16, 1387, 358, 16, 509, 10310, 1225, 13, 1216, 1860, 288, 202, 202, 812, 4348, 316, 273, 446, 31, 202, 202, 812, 4632, 596, 273, 446, 31, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 3283, 12, 812, 628, 16, 1387, 358, 16, 509, 10310, 1225, 13, 1216, 1860, 288, 202, 202, 812, 4348, 316, 273, 446, 31, 202, 202, 812, 4632, 596, 273, 446, 31, 202,...
char[] c = newOrder.toCharArray(); c[indexZ] = 'T'; c[indexT] = 'Z'; newOrder = new String(c); int s = sizeT;
char[] ch = newOrder.toCharArray(); ch[indexZ] = 'T'; ch[indexT] = 'Z'; newOrder = new String(ch); int sz = sizeT;
public AxisGuesser(FilePattern fp, String dimOrder, int sizeZ, int sizeT, int sizeC, boolean isCertain) { this.fp = fp; this.dimOrder = dimOrder; newOrder = dimOrder; String[] prefixes = fp.getPrefixes(); BigInteger[] first = fp.getFirst(); BigInteger[] last = fp.getLast(); BigInteger[] step = fp.getStep(); int[] count = fp.getCount(); axes = new int[count.length]; boolean foundZ = false, foundT = false, foundC = false; // -- 1) fill in "known" axes based on known patterns and conventions -- for (int i=0; i<axes.length; i++) { String p = prefixes[i]; // strip trailing digits and divider characters char[] c = p.toCharArray(); int l = c.length - 1; while (l >= 0 && (c[l] >= '0' && c[l] <= '9' || c[l] == ' ' || c[l] == '-' || c[l] == '_' || c[l] == '.')) { l--; } // useful prefix segment consists of trailing alphanumeric characters int f = l; while (f >= 0 && (c[f] >= 'A' && c[f] <= 'Z' || c[f] >= 'a' && c[f] <= 'z')) { f--; } p = p.substring(f + 1, l + 1); boolean isZ = false, isT = false, isC = false; // check against known Z prefixes for (int j=0; j<Z.length; j++) { if (p.equals(Z[j])) { axes[i] = Z_AXIS; foundZ = true; break; } } if (axes[i] != UNKNOWN_AXIS) continue; // check against known T prefixes for (int j=0; j<T.length; j++) { if (p.equals(T[j])) { axes[i] = T_AXIS; foundT = true; break; } } if (axes[i] != UNKNOWN_AXIS) continue; // check against known C prefixes for (int j=0; j<C.length; j++) { if (p.equals(C[j])) { axes[i] = C_AXIS; foundC = true; break; } } if (axes[i] != UNKNOWN_AXIS) continue; // check special case: <2-3> (Bio-Rad PIC) if (first[i].equals(TWO) && last[i].equals(THREE) && step[i].equals(BigInteger.ONE)) { axes[i] = C_AXIS; foundC = true; break; } } // -- 2) check for special cases where dimension order should be swapped -- if (!isCertain) { // only switch if dimension order is uncertain if (foundZ && !foundT && sizeZ > 1 && sizeT == 1 || foundT && !foundZ && sizeT > 1 && sizeZ == 1) { // swap Z and T dimensions int indexZ = newOrder.indexOf('Z'); int indexT = newOrder.indexOf('T'); char[] c = newOrder.toCharArray(); c[indexZ] = 'T'; c[indexT] = 'Z'; newOrder = new String(c); int s = sizeT; sizeT = sizeZ; sizeZ = s; } } // -- 3) fill in remaining axis types -- boolean canBeZ = !foundZ && sizeZ == 1; boolean canBeT = !foundT && sizeT == 1; for (int i=0; i<axes.length; i++) { if (axes[i] != UNKNOWN_AXIS) continue; if (canBeZ) { axes[i] = Z_AXIS; canBeZ = false; } else if (canBeT) { axes[i] = T_AXIS; canBeT = false; } else axes[i] = C_AXIS; } }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/9c503fe1cca941d62dcff89f169337333ddecc52/AxisGuesser.java/clean/loci/formats/AxisGuesser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 15509, 15977, 264, 12, 812, 3234, 4253, 16, 514, 2464, 2448, 16, 565, 509, 963, 62, 16, 509, 963, 56, 16, 509, 963, 39, 16, 1250, 353, 5461, 530, 13, 225, 288, 565, 333, 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, 282, 1071, 15509, 15977, 264, 12, 812, 3234, 4253, 16, 514, 2464, 2448, 16, 565, 509, 963, 62, 16, 509, 963, 56, 16, 509, 963, 39, 16, 1250, 353, 5461, 530, 13, 225, 288, 565, 333, 18, 7...
Graphics2D g2d = bi.createGraphics();
Graphics2D g2d = ((BufferedImage)bi).createGraphics();
public void run() { // Load the BufferedImage BufferedImage bi = load(); if (bi == null) { // Something wrong, We Couldn't load the image, // display a 'broken' image, place-holder... bi = new BufferedImage(100, 100, BufferedImage.TYPE_INT_ARGB); Graphics2D g2d = bi.createGraphics(); g2d.setColor(new Color(255,255,255,190)); g2d.fillRect(0, 0, 100, 100); g2d.setColor(Color.black); g2d.drawRect(2, 2, 96, 96); g2d.drawString("Broken Image", 6, 50); g2d.dispose(); } // Store the result in the RasterRable, and wake up // anyone who is waiting for our image.. synchronized (this) { src = RenderedImageCachableRed.wrap(bi); this.notifyAll(); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/9cf6b3d8962bbe40506332d3338563db82798d68/RasterRable.java/buggy/sources/org/apache/batik/ext/awt/image/renderable/RasterRable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 368, 4444, 326, 12362, 5411, 12362, 10054, 273, 1262, 5621, 5411, 309, 261, 13266, 422, 446, 13, 288, 7734, 368, 29116, 7194, 16, 1660, 14312, 82, 1404, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 5411, 368, 4444, 326, 12362, 5411, 12362, 10054, 273, 1262, 5621, 5411, 309, 261, 13266, 422, 446, 13, 288, 7734, 368, 29116, 7194, 16, 1660, 14312, 82, 1404, ...
public org.quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { org.quickfix.field.UnderlyingCurrency value = new org.quickfix.field.UnderlyingCurrency();
public quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { quickfix.field.UnderlyingCurrency value = new quickfix.field.UnderlyingCurrency();
public org.quickfix.field.UnderlyingCurrency getUnderlyingCurrency() throws FieldNotFound { org.quickfix.field.UnderlyingCurrency value = new org.quickfix.field.UnderlyingCurrency(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AssignmentReport.java/buggy/src/java/src/quickfix/fix44/AssignmentReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 7623, 10833, 765, 6291, 7623, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 7623, 460, 273, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 7623, 10833, 765, 6291, 7623, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 7623, 460, 273, 394...
cbce = new ComboBoxCellEditor(_fuzzSources);
dce = new DefaultCellEditor(new JComboBox(_fuzzSources));
private void configureTables() { _headerTableModel = new HeaderTableModel(); headerTable.setModel(_headerTableModel); _parameterTableModel = new ParameterTableModel(); paramTable.setModel(_parameterTableModel); DefaultComboBoxModel paramTypes = new DefaultComboBoxModel(Parameter.getParameterLocations()); ComboBoxCellEditor cbce = new ComboBoxCellEditor(paramTypes); TableColumn col = paramTable.getColumnModel().getColumn(0); col.setCellEditor(cbce); col.setCellRenderer(cbce); _fuzzSources = new DefaultComboBoxModel(_fuzzFactory.getSourceDescriptions()); _fuzzSources.insertElementAt("", 0); cbce = new ComboBoxCellEditor(_fuzzSources); col = paramTable.getColumnModel().getColumn(5); col.setCellEditor(cbce); col.setCellRenderer(cbce); paramTable.setRowHeight((int)cbce.getComponent().getPreferredSize().getHeight()); }
31053 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31053/6db137330f99fed3ae440ea47133664c440d8902/FuzzerPanel.java/clean/src/org/owasp/webscarab/plugin/fuzz/swing/FuzzerPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5068, 6905, 1435, 288, 3639, 389, 3374, 1388, 1488, 273, 394, 4304, 1388, 1488, 5621, 3639, 1446, 1388, 18, 542, 1488, 24899, 3374, 1388, 1488, 1769, 7734, 389, 6775, 1388, 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, 377, 3238, 918, 5068, 6905, 1435, 288, 3639, 389, 3374, 1388, 1488, 273, 394, 4304, 1388, 1488, 5621, 3639, 1446, 1388, 18, 542, 1488, 24899, 3374, 1388, 1488, 1769, 7734, 389, 6775, 1388, 1488,...
break;
return;
public void plotPoint(TimePoint newPoint) { int timeLineSize = getNumberOfTimePoints(); Attributes insideIntervals = new Attributes(); for (int i = 0; i < timeLineSize; i++) { TimePoint currentPoint = getTimeLinePosition(i); if (newPoint.isAtSameTime(currentPoint)) { if (insideIntervals.contains(newPoint.getPointAttributes())) { // the interval is open and we're going to close it right away pointClosesInterval(insideIntervals, newPoint, i); // TODO verificar isto! - apaguei, em principio e' redundante // currentPoint.getPointAttributes().removeAttributes(newPoint.getPointAttributes().getAttributes()); // // remove the newPoint attributes from the current point currentPoint.getPointAttributes().addAttributes( newPoint.getPointAttributes().getAttributes()); // since the time is the same we will not add the new point but use the current } else { // the interval is not open, let's create it pointOpensInterval(insideIntervals, newPoint, i); insideIntervals.addAttributes(currentPoint.getIntervalAttributes().getAttributes()); currentPoint.getPointAttributes().addAttributes( newPoint.getPointAttributes().getAttributes()); // since the time is the same we will not add the new point but use the current } break; } else if (newPoint.isBefore(currentPoint)) { addPoint(i, newPoint); // adds the point in this position and shifts the current point to the next position // (i+1) se attrib ponto do novo ponto estao em intervalos abertos => intervalo vai-se // fechar if (insideIntervals.contains(newPoint.getPointAttributes())) { // inserted point only has 1 attribute pointClosesInterval(insideIntervals, newPoint, i); } else { // novo intervalo pointOpensInterval(insideIntervals, newPoint, i); } break; // get off the for loop } else { // is after caso em q o intervalo ja esta' aberto faz o update do atributo no ponto for (AttributeType attribute : currentPoint.getPointAttributes().getAttributes()) { if (insideIntervals.contains(attribute)) { newPoint.getIntervalAttributes().removeAttribute(attribute); // removes the current point attribute to new point interval attributes insideIntervals.removeAttribute(attribute); } else { newPoint.getIntervalAttributes().addAttribute(attribute); // adds the current point attribute to new point interval attributes insideIntervals.addAttribute(attribute); } } } } }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/35e2e5141e7372433f69994f110cd499cad95c28/Timeline.java/clean/src/net/sourceforge/fenixedu/domain/assiduousness/util/Timeline.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3207, 2148, 12, 950, 2148, 394, 2148, 13, 288, 3639, 509, 813, 1670, 1225, 273, 14981, 950, 5636, 5621, 3639, 9055, 4832, 24224, 273, 394, 9055, 5621, 3639, 364, 261, 474, 277,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3207, 2148, 12, 950, 2148, 394, 2148, 13, 288, 3639, 509, 813, 1670, 1225, 273, 14981, 950, 5636, 5621, 3639, 9055, 4832, 24224, 273, 394, 9055, 5621, 3639, 364, 261, 474, 277,...
public static void stripWhitespace( Context c, Node node, Element containing_block ) { String white_space = c.css.getStringProperty( containing_block, "white-space" ); // if doing preformatted whitespace if ( white_space != null && white_space.equals( "pre" ) ) { return; } if ( node == null ) { return; } if ( node.getNodeType() != node.TEXT_NODE ) { return; } String text = node.getNodeValue(); //text = text.trim(); /* * if(text.indexOf("\n") > 0) { * u.p("before text = " + text); * StringBuffer sb = new StringBuffer(); * int m = 0; * int n = 0; * while((n = text.indexOf("\n",m)) > 0) { * String span = text.substring(m,n); * u.p("span = " + span); * sb.append(span); * // add a space to replace the \n * sb.append(" "); * m = n+1; * } * sb.append(text.substring(m)); * text = sb.toString(); * u.p("after text = " + text); * } */ // spaces at the start of the string -> nothing text = text.replaceAll( "^\\s+", "" ); // spaces at the start of lines -> "" //text = text.replaceAll("\n(\\s*)",""); // all \n -> a single space text = text.replaceAll( "\n", " " ); // all extra spaces -> single space text = text.replaceAll( "\\s+", " " ); // add one space to the end //text = text+" "; //u.p(text); node.setNodeValue( text ); }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/631ee187cba274ce571d6a7e5b800c58f77b1142/TextUtil.java/buggy/src/java/org/xhtmlrenderer/layout/TextUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 6459, 6406, 9431, 12, 1042, 71, 16, 50, 369, 20680, 16, 1046, 1213, 3280, 67, 2629, 15329, 780, 14739, 67, 2981, 33, 71, 18, 5212, 18, 588, 780, 1396, 12, 1213, 3280, 67, 2629, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 6459, 6406, 9431, 12, 1042, 71, 16, 50, 369, 20680, 16, 1046, 1213, 3280, 67, 2629, 15329, 780, 14739, 67, 2981, 33, 71, 18, 5212, 18, 588, 780, 1396, 12, 1213, 3280, 67, 2629, ...
Log.logln(SHOW_ALL, "Parsing: " + fullFileName);
Log.logln(LOG_PROGRESS, "Parsing: " + fullFileName);
public static CLDRFile makeFromFile(String fullFileName, String localeName, boolean includeDraft) { File f = new File(fullFileName); try { fullFileName = f.getCanonicalPath(); if (DEBUG_LOGGING) { System.out.println("Parsing: " + fullFileName); Log.logln(SHOW_ALL, "Parsing: " + fullFileName); } FileInputStream fis = new FileInputStream(f); CLDRFile result = make(fullFileName, localeName, fis, includeDraft); fis.close(); return result; } catch (IOException e) { e.printStackTrace(); throw (IllegalArgumentException)new IllegalArgumentException("Can't read " + fullFileName).initCause(e); } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/2de7a3aa226ade8a236bedbedb9d88137ed9cba0/CLDRFile.java/clean/tools/java/org/unicode/cldr/util/CLDRFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 14934, 6331, 812, 1221, 13087, 12, 780, 1983, 4771, 16, 514, 2573, 461, 16, 1250, 2341, 12714, 13, 288, 3639, 1387, 284, 273, 394, 1387, 12, 2854, 4771, 1769, 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, 760, 14934, 6331, 812, 1221, 13087, 12, 780, 1983, 4771, 16, 514, 2573, 461, 16, 1250, 2341, 12714, 13, 288, 3639, 1387, 284, 273, 394, 1387, 12, 2854, 4771, 1769, 3639, 775, 288, ...
if (progressRect == null)
if (progressRect == null) {
private void printInitializationData() { String progressRect = null; String messageRect = null; String foregroundColor = null; IProduct product = Platform.getProduct(); if (product != null) { progressRect = product .getProperty(IProductConstants.STARTUP_PROGRESS_RECT); messageRect = product .getProperty(IProductConstants.STARTUP_MESSAGE_RECT); foregroundColor = product .getProperty(IProductConstants.STARTUP_FOREGROUND_COLOR); } if (progressRect == null) progressRect = "10,10,300,15"; //$NON-NLS-1$ if (messageRect == null) messageRect = "10,35,300,15"; //$NON-NLS-1$ int foregroundColorInteger; try { foregroundColorInteger = Integer.parseInt(foregroundColor, 16); } catch (Exception ex) { foregroundColorInteger = 13817855; // D2D7FF=white } printer.println("foreground=" + foregroundColorInteger); //$NON-NLS-1$ printer.println("messageRect=" + messageRect); //$NON-NLS-1$ printer.println("progressRect=" + progressRect); //$NON-NLS-1$ printer.println("maximum=" + totalWork); //$NON-NLS-1$ printer.flush(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/StartupProgressMonitor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/StartupProgressMonitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1172, 17701, 751, 1435, 288, 202, 202, 780, 4007, 6120, 273, 446, 31, 202, 202, 780, 883, 6120, 273, 446, 31, 202, 202, 780, 16231, 2957, 273, 446, 31, 202, 202, 45, 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, 225, 202, 1152, 918, 1172, 17701, 751, 1435, 288, 202, 202, 780, 4007, 6120, 273, 446, 31, 202, 202, 780, 883, 6120, 273, 446, 31, 202, 202, 780, 16231, 2957, 273, 446, 31, 202, 202, 45, 4...
public void allowParallelOperation() { _allowParallelOperation = true; }
public void allowParallelOperation() { _allowParallelOperation = true; if (Boolean.valueOf(_context.getProperty(PROP_LOAD_TEST, "false")).booleanValue()) { LoadTestManager t = new LoadTestManager(_context); addJob(t.getTestJob()); } }
public void allowParallelOperation() { _allowParallelOperation = true; }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/7d64ecb6282bcae92cb3d240d252c81a1704047c/JobQueue.java/buggy/router/java/src/net/i2p/router/JobQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1699, 13056, 2988, 1435, 288, 389, 5965, 13056, 2988, 273, 638, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1699, 13056, 2988, 1435, 288, 389, 5965, 13056, 2988, 273, 638, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if(CryptoDebug.crldebug)
if(log.isDebugEnabled())
private void updateCRLEntryInCertCache(X509CRLEntry crlentry,String Issuerdn) { if(CryptoDebug.crldebug) { log.debug("crl enty in updateCRLEntryInCertCache is :"+crlentry.toString()); } BigInteger bigint=crlentry.getSerialNumber(); boolean hasextensions=crlentry.hasExtensions(); String actualIssuerDN=null; String subjectDN=null; Set oidset=null; String oid=null; byte[] issuerbytes=null; CRLKey crlkey=null; if(hasextensions) { oidset= crlentry.getNonCriticalExtensionOIDs(); if(!oidset.isEmpty()) { Iterator iter=oidset.iterator(); if(iter.hasNext()) { oid=(String)iter.next(); if(CryptoDebug.crldebug) log.debug(" Got oid for non critical extension in updateCRLEntryInCertCache is :"+oid); } if(oid!=null) { issuerbytes=crlentry.getExtensionValue(oid); if(issuerbytes==null) { log.debug(" Got issuerbytes as null for oid :" +oid ); } try { if(CryptoDebug.crldebug) log.debug(" going to get extension class in CRL Caches updateCRLEntryInCertCache :"); Class class1 = OIDMap.getClass(new ObjectIdentifier(oid)); if(class1 == null) { if(CryptoDebug.crldebug) log.debug(" Class was null in CRL Caches updateCRLEntryInCertCache :"); return; } Class aclass[] = { java.lang.Boolean.class, java.lang.Object.class }; Constructor constructor = class1.getConstructor(aclass); DerInputStream dis=new DerInputStream(issuerbytes); DerValue val=dis.getDerValue(); byte[] byted=val.getOctetString(); byte abyte0[] =byted; int i = abyte0.length; Object obj = Array.newInstance(Byte.TYPE, i); for(int j = 0; j < i; j++) Array.setByte(obj, j, abyte0[j]); Object aobj[] = { new Boolean(false), obj }; CertificateIssuerExtension ciext=new CertificateIssuerExtension( new Boolean(false),obj); CertAttrSet certattrset = (CertAttrSet)constructor.newInstance(aobj); if(certattrset instanceof CertificateIssuerExtension) { GeneralNames gn=(GeneralNames) certattrset.get(CertificateIssuerExtension.ISSUERNAME); if(CryptoDebug.crldebug) log.debug(" gneral names are in CRL Caches updateCRLEntryInCertCache :"+gn.toString()); if(gn.size()==1){ GeneralName name=(GeneralName)gn.elementAt(0); if(name.getType()==4) { if(CryptoDebug.crldebug) log.debug("got actual data from extension in CRL Caches updateCRLEntryInCertCache :"+name.toString()); actualIssuerDN=name.toString(); } else log.debug("Error !!!! not x500 name "); } } else { log.debug("Warning !!!!!! not instance of CertificateIssuerExtension"); } } catch(InvocationTargetException invocationtargetexception) { //throw new CRLException(invocationtargetexception.getTargetException().getMessage()); invocationtargetexception.printStackTrace(); } catch(Exception exception) { //throw new CRLException(exception.toString()); exception.printStackTrace(); } } } else { if(CryptoDebug.crldebug) log.debug("Error in getting extensions for crlentry :"+crlentry.toString()); } } else { actualIssuerDN=Issuerdn; } crlkey=new CRLKey(bigint,actualIssuerDN); if(CryptoDebug.crldebug) { log.debug("Going to look for key in CRL Caches updateCRLEntryInCertCache :"+crlkey.toString()); log.debug(" cache contains in CRL Caches updateCRLEntryInCertCache:"); //keystore.certCache.printbigIntCache(); log.debug(""); log.debug(""); log.debug(""); } subjectDN=keystore.certCache.getDN(crlkey); if(subjectDN==null) { return; } if(CryptoDebug.crldebug) log.debug(" Got the dn for the revoked cert in CRL Caches updateCRLEntryInCertCache :"+subjectDN); keystore.certCache.revokeStatus(bigint,actualIssuerDN,subjectDN); }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/82e73339ab5dce90ccc6c7ffce718723a5b52ef2/CRLCache.java/buggy/securityservices/src/org/cougaar/core/security/crypto/CRLCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1089, 29524, 1622, 382, 5461, 1649, 12, 60, 5995, 29524, 1622, 18789, 4099, 16, 780, 23959, 5176, 13, 225, 288, 565, 309, 12, 1330, 18, 291, 2829, 1526, 10756, 288, 1377, 613, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 29524, 1622, 382, 5461, 1649, 12, 60, 5995, 29524, 1622, 18789, 4099, 16, 780, 23959, 5176, 13, 225, 288, 565, 309, 12, 1330, 18, 291, 2829, 1526, 10756, 288, 1377, 613, ...
}
}
public static String getSettingsDirectory() { return settingsDirectory; }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/b9738181fd39b892d5d7eee50449258111a26b08/jEdit.java/clean/org/gjt/sp/jedit/jEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 18283, 2853, 1435, 202, 95, 202, 202, 2463, 1947, 2853, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 18283, 2853, 1435, 202, 95, 202, 202, 2463, 1947, 2853, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
log.info(LogManager.getHeader(context,
if ((!ldap_enabled)||(netid==null)||(netid.trim().equals(""))) { log.info(LogManager.getHeader(context,
private void processEnterEmail(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { String email = request.getParameter("email").toLowerCase().trim(); EPerson eperson = EPerson.findByEmail(context, email); try { if (registering) { // If an already-active user is trying to register, inform them // so if ((eperson != null) && eperson.canLogIn()) { log.info(LogManager.getHeader(context, "already_registered", "email=" + email)); JSPManager.showJSP(request, response, "/register/already-registered.jsp"); } else { // Find out from site authenticator whether this email can // self-register boolean canRegister = Authenticate.getSiteAuth() .canSelfRegister(context, request, email); if (canRegister) { // OK to register. Send token. log.info(LogManager.getHeader(context, "sendtoken_register", "email=" + email)); AccountManager.sendRegistrationInfo(context, email); JSPManager.showJSP(request, response, "/register/registration-sent.jsp"); // Context needs completing to write registration data context.complete(); } else { JSPManager.showJSP(request, response, "/register/cannot-register.jsp"); } } } else { if (eperson == null) { // Invalid email address log.info(LogManager.getHeader(context, "unknown_email", "email=" + email)); request.setAttribute("retry", new Boolean(true)); JSPManager.showJSP(request, response, "/register/forgot-password.jsp"); } else if (!eperson.canLogIn()) { // Can't give new password to inactive user log.info(LogManager.getHeader(context, "unregistered_forgot_password", "email=" + email)); JSPManager.showJSP(request, response, "/register/inactive-account.jsp"); } else if (eperson.getRequireCertificate() && !registering) { // User that requires certificate can't get password log.info(LogManager.getHeader(context, "certificate_user_forgot_password", "email=" + email)); JSPManager.showJSP(request, response, "/error/require-certificate.jsp"); } else { // OK to send forgot pw token. log.info(LogManager.getHeader(context, "sendtoken_forgotpw", "email=" + email)); AccountManager.sendForgotPasswordInfo(context, email); JSPManager.showJSP(request, response, "/register/password-token-sent.jsp"); // Context needs completing to write registration data context.complete(); } } } catch (AddressException ae) { // Malformed e-mail address log.info(LogManager.getHeader(context, "bad_email", "email=" + email)); request.setAttribute("retry", new Boolean(true)); if (registering) { JSPManager.showJSP(request, response, "/register/new-user.jsp"); } else { JSPManager.showJSP(request, response, "/register/forgot-password.jsp"); } } catch (MessagingException me) { // Some other mailing error log.info(LogManager.getHeader(context, "error_emailing", "email=" + email), me); JSPManager.showInternalError(request, response); } }
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/a7b957e70e83ad3ff55ae5a4a75694921654db1d/RegisterServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/RegisterServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 10237, 4134, 12, 1042, 819, 16, 9984, 590, 16, 5411, 12446, 766, 13, 1216, 16517, 16, 1860, 16, 5411, 6483, 16, 23859, 503, 565, 288, 3639, 514, 2699, 273, 590, 18, 588...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 10237, 4134, 12, 1042, 819, 16, 9984, 590, 16, 5411, 12446, 766, 13, 1216, 16517, 16, 1860, 16, 5411, 6483, 16, 23859, 503, 565, 288, 3639, 514, 2699, 273, 590, 18, 588...
public BugInstance addField(String className, String fieldName, String fieldSig) { addField(new FieldAnnotation(className, fieldName, fieldSig));
public BugInstance addField(String className, String fieldName, String fieldSig, boolean isStatic) { addField(new FieldAnnotation(className, fieldName, fieldSig, isStatic));
public BugInstance addField(String className, String fieldName, String fieldSig) { addField(new FieldAnnotation(className, fieldName, fieldSig)); return this; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/44b2eb910f5b73d6fc592b91ce36f4e292e2e19e/BugInstance.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/BugInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 1442, 11742, 12, 780, 2658, 16, 514, 4289, 16, 514, 652, 8267, 13, 288, 202, 202, 1289, 974, 12, 2704, 2286, 3257, 12, 12434, 16, 4289, 16, 652, 8267, 10019, 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, 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, 16907, 1442, 11742, 12, 780, 2658, 16, 514, 4289, 16, 514, 652, 8267, 13, 288, 202, 202, 1289, 974, 12, 2704, 2286, 3257, 12, 12434, 16, 4289, 16, 652, 8267, 10019, 202, 202, ...
public void copyResourceToProject(CmsProject project, CmsProject onlineProject, CmsResource resource) throws CmsException { // get the parent resource in the offline project int id=C_UNKNOWN_ID; try { CmsResource parent=readResource(project,resource.getParent()); id=parent.getResourceId(); } catch (CmsException e) { } resource.setState(C_STATE_UNCHANGED); resource.setParentId(id); createResource(project,onlineProject,resource); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/5613ac099f00e51889bc452d1f44a6f187a6b81f/CmsDbAccess.java/buggy/src/com/opencms/file/genericSql/CmsDbAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 225, 918, 225, 1610, 1420, 774, 4109, 12, 4747, 4109, 225, 1984, 16, 28524, 2868, 2149, 4109, 225, 12365, 4109, 16, 28524, 2868, 7630, 225, 1058, 13, 28524, 2868, 1216, 225, 11228, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 6647, 1071, 225, 918, 225, 1610, 1420, 774, 4109, 12, 4747, 4109, 225, 1984, 16, 28524, 2868, 2149, 4109, 225, 12365, 4109, 16, 28524, 2868, 7630, 225, 1058, 13, 28524, 2868, 1216, 225, 11228, ...
if (layer == null && Main.main.getMapFrame() == null) { JOptionPane.showMessageDialog(Main.main, "Nothing to export. Get some data first.");
if (layer == null && Main.map == null) { JOptionPane.showMessageDialog(Main.parent, "Nothing to export. Get some data first.");
public void actionPerformed(ActionEvent e) { if (layer == null && Main.main.getMapFrame() == null) { JOptionPane.showMessageDialog(Main.main, "Nothing to export. Get some data first."); return; } JFileChooser fc = createAndOpenFileChooser(false, false); if (fc == null) return; File file = fc.getSelectedFile(); if (file == null) return; String fn = file.getPath(); if (fn.indexOf('.') == -1) { fn += ".gpx"; file = new File(fn); } // open the dialog asking for options JPanel p = new JPanel(new GridBagLayout()); p.add(new JLabel("gps track description"), GBC.eol()); JTextArea desc = new JTextArea(3,40); desc.setWrapStyleWord(true); desc.setLineWrap(true); p.add(new JScrollPane(desc), GBC.eop().fill(GBC.BOTH)); JCheckBox author = new JCheckBox("Add author information", Main.pref.getBoolean("lastAddAuthor", true)); author.setSelected(true); p.add(author, GBC.eol()); JLabel nameLabel = new JLabel("Real name"); p.add(nameLabel, GBC.std().insets(10,0,5,0)); JTextField authorName = new JTextField(Main.pref.get("lastAuthorName")); p.add(authorName, GBC.eol().fill(GBC.HORIZONTAL)); JLabel emailLabel = new JLabel("Email"); p.add(emailLabel, GBC.std().insets(10,0,5,0)); JTextField email = new JTextField(Main.pref.get("osm-server.username")); p.add(email, GBC.eol().fill(GBC.HORIZONTAL)); JLabel copyrightLabel = new JLabel("Copyright (URL)"); p.add(copyrightLabel, GBC.std().insets(10,0,5,0)); JTextField copyright = new JTextField(); p.add(copyright, GBC.std().fill(GBC.HORIZONTAL)); JButton predefined = new JButton("Predefined"); p.add(predefined, GBC.eol().insets(5,0,0,0)); JLabel copyrightYearLabel = new JLabel("Copyright year"); p.add(copyrightYearLabel, GBC.std().insets(10,0,5,5)); JTextField copyrightYear = new JTextField(""); p.add(copyrightYear, GBC.eol().fill(GBC.HORIZONTAL)); JLabel warning = new JLabel("<html><font size='-2'>&nbsp;</html"); p.add(warning, GBC.eol().fill(GBC.HORIZONTAL).insets(15,0,0,0)); addDependencies(author, authorName, email, copyright, predefined, copyrightYear, nameLabel, emailLabel, copyrightLabel, copyrightYearLabel, warning); p.add(new JLabel("Keywords"), GBC.eol()); JTextField keywords = new JTextField(); p.add(keywords, GBC.eop().fill(GBC.HORIZONTAL)); int answer = JOptionPane.showConfirmDialog(Main.main, p, "Export options", JOptionPane.OK_CANCEL_OPTION); if (answer != JOptionPane.OK_OPTION) return; Main.pref.put("lastAddAuthor", author.isSelected()); if (authorName.getText().length() != 0) Main.pref.put("lastAuthorName", authorName.getText()); if (copyright.getText().length() != 0) Main.pref.put("lastCopyright", copyright.getText()); try { Layer layer = this.layer == null ? Main.main.getMapFrame().mapView.editLayer() : this.layer; FileWriter out = new FileWriter(file); GpxWriter w = new GpxWriter(out, layer.name, desc.getText(), authorName.getText(), email.getText(), copyright.getText(), copyrightYear.getText(), keywords.getText()); if (layer instanceof RawGpsDataLayer) w.output(((RawGpsDataLayer)layer).data); else w.output(Main.ds); out.close(); } catch (IOException x) { x.printStackTrace(); JOptionPane.showMessageDialog(Main.main, "Error while exporting "+fn+":\n"+x.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); } }
2204 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2204/65d8ba1e1c7192a02b1c996304587a81a85155f1/GpxExportAction.java/clean/src/org/openstreetmap/josm/actions/GpxExportAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 430, 261, 6363, 422, 446, 597, 12740, 18, 5254, 18, 588, 863, 3219, 1435, 422, 446, 13, 288, 1082, 202, 46, 1895, 8485, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 202, 202, 430, 261, 6363, 422, 446, 597, 12740, 18, 5254, 18, 588, 863, 3219, 1435, 422, 446, 13, 288, 1082, 202, 46, 1895, 8485, 1...
String[] strings = NutchConf.get().getStrings("plugin.folders"); if (strings == null || strings.length == 0) fail("no plugin directory setuped..");
String[] strings = NutchConf.get().getStrings("plugin.folders"); if (strings == null || strings.length == 0) fail("no plugin directory setuped..");
private String getPluginFolder() { String[] strings = NutchConf.get().getStrings("plugin.folders"); if (strings == null || strings.length == 0) fail("no plugin directory setuped.."); String name = strings[0]; return PluginManifestParser.getPluginFolder(name).toString(); }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/6154a5b267bdd33616cb8e8453840821319d816c/TestPluginSystem.java/clean/src/test/org/apache/nutch/plugin/TestPluginSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 514, 16319, 3899, 1435, 288, 565, 514, 8526, 2064, 273, 423, 322, 343, 3976, 18, 588, 7675, 588, 7957, 2932, 4094, 18, 16064, 8863, 565, 309, 261, 10219, 422, 446, 747, 2064, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 514, 16319, 3899, 1435, 288, 565, 514, 8526, 2064, 273, 423, 322, 343, 3976, 18, 588, 7675, 588, 7957, 2932, 4094, 18, 16064, 8863, 565, 309, 261, 10219, 422, 446, 747, 2064, 18, ...
if (borderColor3 != null) borderColor3.dispose();
if (borderColor3 != null) { borderColor3.dispose(); }
private void onDispose() { /* * Usually when an item is disposed, destroyItem will change the size of the items array, * reset the bounds of all the tabs and manage the widget associated with the tab. * Since the whole folder is being disposed, this is not necessary. For speed * the inDispose flag is used to skip over this part of the item dispose. */ inDispose = true; int length = items.length; for (int i = 0; i < length; i++) { if (items[i] != null) { items[i].dispose(); } } // clean up resources if (tip != null && !tip.isDisposed()) { tip.dispose(); tip = null; label = null; } if (arrowLeftImage != null) arrowLeftImage.dispose(); arrowLeftImage = null; if (arrowRightImage != null) arrowRightImage.dispose(); arrowRightImage = null; if (closeImage != null) closeImage.dispose(); closeImage = null; gradientColors = null; gradientPercents = null; backgroundImage = null; if (borderColor1 != null) borderColor1.dispose(); borderColor1 = null; if (borderColor2 != null) borderColor2.dispose(); borderColor2 = null; if (borderColor3 != null) borderColor3.dispose(); borderColor3 = null; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3a23c3b9bac4db696a0452560047155775a707b7/CTabFolder.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/r21/widgets/CTabFolder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 603, 1669, 4150, 1435, 288, 3639, 1748, 540, 380, 29785, 1347, 392, 761, 353, 1015, 7423, 16, 5546, 1180, 903, 2549, 326, 963, 434, 326, 1516, 526, 16, 1850, 380, 2715, 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, 603, 1669, 4150, 1435, 288, 3639, 1748, 540, 380, 29785, 1347, 392, 761, 353, 1015, 7423, 16, 5546, 1180, 903, 2549, 326, 963, 434, 326, 1516, 526, 16, 1850, 380, 2715, 326, ...
if(updateJob == null) return; removedListeners.add(listener);
if(updatesPending()) removedListeners.add(listener);
void listenerRemoved(ILabelProviderListener listener) { if(updateJob == null) return; removedListeners.add(listener); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d206262120eb7dcd408223890a1e2ccc6c4b1431/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2991, 10026, 12, 45, 2224, 2249, 2223, 2991, 13, 288, 202, 202, 430, 12, 2725, 2278, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 14923, 5583, 18, 1289, 12, 12757, 1769, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2991, 10026, 12, 45, 2224, 2249, 2223, 2991, 13, 288, 202, 202, 430, 12, 2725, 2278, 422, 446, 13, 1082, 202, 2463, 31, 202, 202, 14923, 5583, 18, 1289, 12, 12757, 1769, 1082...
public org.quickfix.field.UnderlyingStateOrProvinceOfIssue getUnderlyingStateOrProvinceOfIssue() throws FieldNotFound { org.quickfix.field.UnderlyingStateOrProvinceOfIssue value = new org.quickfix.field.UnderlyingStateOrProvinceOfIssue();
public quickfix.field.UnderlyingStateOrProvinceOfIssue getUnderlyingStateOrProvinceOfIssue() throws FieldNotFound { quickfix.field.UnderlyingStateOrProvinceOfIssue value = new quickfix.field.UnderlyingStateOrProvinceOfIssue();
public org.quickfix.field.UnderlyingStateOrProvinceOfIssue getUnderlyingStateOrProvinceOfIssue() throws FieldNotFound { org.quickfix.field.UnderlyingStateOrProvinceOfIssue value = new org.quickfix.field.UnderlyingStateOrProvinceOfIssue(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/News.java/clean/src/java/src/quickfix/fix44/News.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 1119, 1162, 626, 90, 2410, 951, 12956, 10833, 765, 6291, 1119, 1162, 626, 90, 2410, 951, 12956, 1435, 1216, 2286, 2768, 225, 288, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 1119, 1162, 626, 90, 2410, 951, 12956, 10833, 765, 6291, 1119, 1162, 626, 90, 2410, 951, 12956, 1435, 1216, 2286, 2768, 225, 288, 23...
while (isAnimated()) {
while (isAnimated() && !monitor.isCanceled()) {
private void animateLoop() { // Create an off-screen image to draw on, and a GC to draw with. // Both are disposed after the animation. Display display = imageCanvas.getDisplay(); ImageData[] imageDataArray = getImageData(); ImageData imageData = imageDataArray[0]; Image image = getImage(imageData); int imageDataIndex = 0; final Color[] backgrounds = new Color[1]; Image offScreenImage = new Image( display, loader.logicalScreenWidth, loader.logicalScreenHeight); GC offScreenImageGC = new GC(offScreenImage); try { // Use syncExec to get the background color of the imageCanvas. display.syncExec(new Runnable() { public void run() { if (imageCanvas.isDisposed()) return; backgrounds[0] = imageCanvas.getBackground(); } }); // Fill the off-screen image with the background color of the canvas. offScreenImageGC.setBackground(backgrounds[0]); offScreenImageGC.fillRectangle( 0, 0, loader.logicalScreenWidth, loader.logicalScreenHeight); // Draw the current image onto the off-screen image. offScreenImageGC.drawImage( image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); if (loader.repeatCount > 0) { while (isAnimated()) { if (getControl().isDisposed()) return; if (imageData.disposalMethod == SWT.DM_FILL_BACKGROUND) { // Fill with the background color before drawing. Color bgColor = null; int backgroundPixel = loader.backgroundPixel; if (backgroundPixel != -1) { // Fill with the background color. RGB backgroundRGB = imageData.palette.getRGB(backgroundPixel); bgColor = new Color(null, backgroundRGB); } try { offScreenImageGC.setBackground( bgColor != null ? bgColor : backgrounds[0]); offScreenImageGC.fillRectangle( imageData.x, imageData.y, imageData.width, imageData.height); } finally { if (bgColor != null) bgColor.dispose(); } } else if ( imageData.disposalMethod == SWT.DM_FILL_PREVIOUS) { // Restore the previous image before drawing. offScreenImageGC.drawImage( image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); } // Get the next image data. imageDataIndex = (imageDataIndex + 1) % imageDataArray.length; imageData = imageDataArray[imageDataIndex]; image.dispose(); image = new Image(display, imageData); // Draw the new image data. offScreenImageGC.drawImage( image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); // Draw the off-screen image to the screen. imageCanvasGC.drawImage(offScreenImage, 0, 0); // Sleep for the specified delay time before drawing again. try { Thread.sleep(visibleDelay(imageData.delayTime * 10)); } catch (InterruptedException e) { } } } } finally { offScreenImage.dispose(); offScreenImageGC.dispose(); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b0a4040f9b785bfd5070f6490e4010c802365496/AnimatedCanvas.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/AnimatedCanvas.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 14671, 6452, 1435, 288, 202, 202, 759, 1788, 392, 3397, 17, 9252, 1316, 358, 3724, 603, 16, 471, 279, 15085, 358, 3724, 598, 18, 202, 202, 759, 19118, 854, 1015, 7423, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14671, 6452, 1435, 288, 202, 202, 759, 1788, 392, 3397, 17, 9252, 1316, 358, 3724, 603, 16, 471, 279, 15085, 358, 3724, 598, 18, 202, 202, 759, 19118, 854, 1015, 7423, 1...
public final void testNarrow() throws Exception { final Map narrowMap = new HashMap(); narrowMap.put("Hello", HelloHomeImpl.class.getConstructor(null)); PortableRemoteObjectDelegateMock.setNarrowMap(narrowMap); final PortableRemoteObjectDelegateMock delegate = new PortableRemoteObjectDelegateMock(); final HelloHome helloHome = (HelloHome)delegate.narrow("Hello", HelloHome.class); assertNotNull(helloHome); final Hello hello = helloHome.create(); assertEquals("Hello World!", hello.getHelloWorld()); try { delegate.narrow("Hello", FooHome.class); fail("Should have thrown."); } catch (ClassCastException e) { assertNull(e.getCause()); } try { delegate.narrow("Hello", HelloHomeImpl.class); fail("Should have thrown."); } catch (ClassCastException e) { assertTrue(e.getCause() instanceof IllegalArgumentException); } narrowMap.put("Hello", HelloHomeImpl.class.getConstructor(new Class[] { String.class })); try { delegate.narrow("Hello", HelloHome.class); fail("Should have thrown."); } catch (ClassCastException e) { assertTrue(e.getCause() instanceof IllegalArgumentException); } assertNull(delegate.narrow("foo", HelloHome.class)); narrowMap.put("Hello", String.class.getConstructor(null)); try { delegate.narrow("Hello", HelloHome.class); fail("Should have thrown."); } catch (ClassCastException e) { assertNull(e.getCause()); } }
9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/1b7e949e44b9acfb06d6f2c36480e9defe9c6d49/PortableRemoteObjectDelegateMockTest.java/clean/trunk/java/ejb/src/test/org/nanocontainer/ejb/rmi/test/PortableRemoteObjectDelegateMockTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6385, 6459, 3813, 11936, 1435, 15069, 503, 95, 6385, 863, 82, 7815, 863, 33, 2704, 8658, 5621, 82, 7815, 863, 18, 458, 2932, 18601, 3113, 18601, 8684, 2828, 18, 1106, 18, 588, 6293, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6385, 6459, 3813, 11936, 1435, 15069, 503, 95, 6385, 863, 82, 7815, 863, 33, 2704, 8658, 5621, 82, 7815, 863, 18, 458, 2932, 18601, 3113, 18601, 8684, 2828, 18, 1106, 18, 588, 6293, 12, ...
public void testValidationMessages() { TestDefaultFormModel fm = new TestDefaultFormModel(new TestBean()); ValidationResultsModel r = fm.getValidationResults(); TestValidator v = new TestValidator(); fm.setValidator(v); ValueModel vm = fm.getValueModel("simpleProperty"); assertEquals(1, v.count); assertEquals(0, r.getMessageCount()); v.results = getValidationResults("message1"); vm.setValue("1"); assertEquals(2, v.count); assertEquals(1, r.getMessageCount()); assertEquals("message1", ((ValidationMessage)r.getMessages().iterator().next()).getMessage()); v.results = getValidationResults("message2"); vm.setValue("2"); assertEquals(3, v.count); assertEquals(1, r.getMessageCount()); assertEquals("message2", ((ValidationMessage)r.getMessages().iterator().next()).getMessage()); // this will cause a binding exception vm.setValue(new Object()); assertEquals(3, v.count); assertEquals(2, r.getMessageCount()); assertEquals("message2", ((ValidationMessage)r.getMessages().iterator().next()).getMessage()); // this will clear the binding exception vm.setValue("3"); assertEquals(4, v.count); assertEquals(1, r.getMessageCount()); assertEquals("message2", ((ValidationMessage)r.getMessages().iterator().next()).getMessage()); fm.validate(); assertEquals(5, v.count); assertEquals(1, r.getMessageCount()); assertEquals("message2", ((ValidationMessage)r.getMessages().iterator().next()).getMessage()); }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/38bb7f410ba228144b9421488a3d67a24fe6e3ab/DefaultFormModelTests.java/buggy/test/org/springframework/binding/form/support/DefaultFormModelTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4354, 5058, 1435, 288, 3639, 7766, 1868, 1204, 1488, 10940, 273, 394, 7766, 1868, 1204, 1488, 12, 2704, 7766, 3381, 10663, 3639, 5684, 3447, 1488, 436, 273, 10940, 18, 588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4354, 5058, 1435, 288, 3639, 7766, 1868, 1204, 1488, 10940, 273, 394, 7766, 1868, 1204, 1488, 12, 2704, 7766, 3381, 10663, 3639, 5684, 3447, 1488, 436, 273, 10940, 18, 588,...
os.vendorVersion = os.version.substring(ix);
os.vendorVersion = os.version.substring(ix+1);
public static synchronized OperatingSystem getInstance() { if (instance == null) { OperatingSystem os = new OperatingSystem(); Properties props = System.getProperties(); os.name = props.getProperty("os.name"); os.vendorName = os.name; os.version = props.getProperty("os.version"); os.arch = props.getProperty("os.arch"); os.patchLevel = props.getProperty("sun.os.patch.level"); os.dataModel = props.getProperty("sun.arch.data.model"); os.cpuEndian = props.getProperty("sun.cpu.endian"); if (os.name.equals(NAME_LINUX)) { os.type = TYPE_LINUX; os.getLinuxInfo(); } else if (os.name.indexOf("Windows") > -1) { os.type = TYPE_WIN32; os.vendor = "Microsoft"; if (os.name.endsWith("XP")) { os.vendorVersion = "XP"; } else if (os.name.indexOf("2003") != -1) { os.vendorVersion = "2003"; } else if (os.name.indexOf("2000") != -1) { os.vendorVersion = "2000"; } else if (os.name.indexOf("NT") != -1) { os.vendorVersion = "NT"; } os.name = "Win32"; if (os.vendorVersion.equals("XP")) { os.vendorCodeName = "Whistler"; } else if (os.vendorVersion.equals("2003")) { os.vendorCodeName = "Whistler Server"; } } else if (os.name.equals("SunOS")) { os.type = TYPE_SOLARIS; os.vendor = "Sun Microsystems"; int ix = os.version.indexOf("."); //5.8 == solaris 8, etc. os.vendorVersion = os.version.substring(ix); os.name = NAME_SOLARIS; } else if (os.name.equals("HP-UX")) { os.type = TYPE_HPUX; os.name = NAME_HPUX; os.vendor = "Hewlett-Packard"; if (os.version.indexOf(".11.") != -1) { os.vendorVersion = "11"; } } else if (os.name.equals(NAME_OSF1)) { os.type = TYPE_OSF1; //HP acquired DEC os.vendor = "Hewlett-Packard"; } else if (os.name.equals(NAME_AIX)) { os.type = TYPE_AIX; os.vendor = "IBM"; } else if (os.name.equals("Mac OS X")) { os.type = TYPE_MACOSX; os.name = NAME_MACOSX; os.vendor = "Apple"; if (os.version.equals("10.4")) { os.vendorCodeName = "Tiger"; } else if (os.version.equals("10.3")) { os.vendorCodeName = "Panther"; } } else if (os.name.equals(NAME_FREEBSD)) { os.type = TYPE_FREEBSD; os.vendor = NAME_FREEBSD; } else { os.vendor = "Unknown"; } if (os.vendorVersion == null) { os.vendorVersion = os.version; } instance = os; } return instance; }
46647 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46647/6debd2feface1265a12494661d0f75dfc0fe74b3/OperatingSystem.java/buggy/bindings/java/src/net/hyperic/sigar/OperatingSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3852, 7692, 24811, 3694, 1435, 288, 3639, 309, 261, 1336, 422, 446, 13, 288, 5411, 7692, 24811, 1140, 273, 394, 7692, 24811, 5621, 5411, 6183, 3458, 273, 2332, 18, 588, 2297, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 3852, 7692, 24811, 3694, 1435, 288, 3639, 309, 261, 1336, 422, 446, 13, 288, 5411, 7692, 24811, 1140, 273, 394, 7692, 24811, 5621, 5411, 6183, 3458, 273, 2332, 18, 588, 2297, 5...
public Capability(IConfigurationElement configElement, CapabilityRegistryReader reader) throws WorkbenchException { super(); boolean missingAttribute = false; String attr_id = configElement.getAttribute(ATT_ID); String attr_nature = configElement.getAttribute(ATT_NATURE_ID); if (attr_id == null) { // @issue ref to internal generic workbench method reader.logMissingAttribute(configElement, ATT_ID); missingAttribute = true; } if (attr_nature == null) { // @issue ref to internal generic workbench method reader.logMissingAttribute(configElement, ATT_NATURE_ID); missingAttribute = true; } if (configElement.getAttribute(ATT_INSTALL_WIZARD) == null) { // @issue ref to internal generic workbench method reader.logMissingAttribute(configElement, ATT_INSTALL_WIZARD); missingAttribute = true; } if (missingAttribute) throw new WorkbenchException("Capability missing required attributes."); //$NON-NLS-1$ id = attr_id; natureId = attr_nature; element = configElement; natureDescriptor = ResourcesPlugin.getWorkspace().getNatureDescriptor(natureId); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/0fa35df3b822ccc8ca5e89821fdb912a9a5695b5/Capability.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/registry/Capability.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 17035, 12, 45, 1750, 1046, 1425, 1046, 16, 17035, 4243, 2514, 10530, 13, 202, 202, 15069, 2421, 22144, 503, 202, 95, 202, 202, 9565, 5621, 9506, 202, 6494, 7337, 1499, 33, 5743,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 17035, 12, 45, 1750, 1046, 1425, 1046, 16, 17035, 4243, 2514, 10530, 13, 202, 202, 15069, 2421, 22144, 503, 202, 95, 202, 202, 9565, 5621, 9506, 202, 6494, 7337, 1499, 33, 5743,...
m_ruleContext = new RuleContext(); RuleSetFactory ruleSetFactory = new RuleSetFactory(); Iterator ruleSets = null;
protected ResultsViewer(PMDViewer pmdViewer, DirectoryTable directoryTable) { super(); setDoubleBuffered(true); setEditorKit(new HTMLEditorKit()); setEditable(false); m_pmdViewer = pmdViewer; m_directoryTable = directoryTable; m_pmd = new PMD(); m_ruleContext = new RuleContext(); RuleSetFactory ruleSetFactory = new RuleSetFactory(); Iterator ruleSets = null; m_ruleSet = new RuleSet(); try { ruleSets = ruleSetFactory.getRegisteredRuleSets(); } catch (RuleSetNotFoundException exception) { String message = "Could not get registered rule sets."; MessageDialog.show(m_pmdViewer, message, exception); } if (ruleSets.hasNext() == false) { String message = "There are no rule sets."; MessageDialog.show(m_pmdViewer, message); } while (ruleSets.hasNext()) { m_ruleSet.addRuleSet((RuleSet) ruleSets.next()); } directoryTable.getSelectionModel().addListSelectionListener(this); }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/9968b1d1ff3747dfab84e6a3b34a8c126efdcd8d/ResultsViewer.java/clean/pmd/src/net/sourceforge/pmd/swingui/ResultsViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 10351, 18415, 12, 52, 6188, 18415, 293, 1264, 18415, 16, 8930, 1388, 1867, 1388, 13, 565, 288, 3639, 2240, 5621, 3639, 444, 5265, 17947, 12, 3767, 1769, 3639, 444, 6946, 14102, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 10351, 18415, 12, 52, 6188, 18415, 293, 1264, 18415, 16, 8930, 1388, 1867, 1388, 13, 565, 288, 3639, 2240, 5621, 3639, 444, 5265, 17947, 12, 3767, 1769, 3639, 444, 6946, 14102, 12, ...
public void registerMethodName(String name, MatchBuilder builder) {
public void registerMethodName( String name, MatchBuilder builder ) {
public void registerMethodName(String name, MatchBuilder builder) { registerMethodName.setActual(name); registerMethodNameBuilder.setActual(builder); }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/MockBuilderIdentityTable.java/clean/jmock/core/src/test/jmock/builder/testsupport/MockBuilderIdentityTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1744, 11666, 12, 780, 508, 16, 4639, 1263, 2089, 13, 288, 202, 202, 4861, 11666, 18, 542, 11266, 12, 529, 1769, 202, 202, 4861, 11666, 1263, 18, 542, 11266, 12, 9574, 176...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1744, 11666, 12, 780, 508, 16, 4639, 1263, 2089, 13, 288, 202, 202, 4861, 11666, 18, 542, 11266, 12, 529, 1769, 202, 202, 4861, 11666, 1263, 18, 542, 11266, 12, 9574, 176...
match(input,17,FOLLOW_17_in_word2607);
match(input,17,FOLLOW_17_in_word2610);
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; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/297a1e0ef2967d8b4f7be9c022102a5a56e97489/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 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, ...
public static Test suite() { OpenCmsTestProperties.initialize(org.opencms.test.AllTests.TEST_PROPERTIES_PATH); TestSuite suite = new TestSuite(); suite.setName(TestProperty.class.getName()); suite.addTest(new TestProperty("testSharedPropertyIssue1")); suite.addTest(new TestProperty("testPropertyLists")); suite.addTest(new TestProperty("testWriteProperty")); suite.addTest(new TestProperty("testWriteProperties")); suite.addTest(new TestProperty("testRemoveProperty")); suite.addTest(new TestProperty("testRemoveProperties")); suite.addTest(new TestProperty("testCreateProperty")); suite.addTest(new TestProperty("testCreateProperties")); suite.addTest(new TestProperty("testWritePropertyOnFolder")); suite.addTest(new TestProperty("testDefaultPropertyCreation")); suite.addTest(new TestProperty("testCaseSensitiveProperties")); suite.addTest(new TestProperty("testReadResourcesWithProperty")); TestSetup wrapper = new TestSetup(suite) { protected void setUp() { setupOpenCms("simpletest", "/sites/default/"); } protected void tearDown() { removeOpenCms(); } }; return wrapper; }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/e3e4b0be764515d423638848b48279a47678c2a0/TestProperty.java/clean/test/org/opencms/file/TestProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 7766, 11371, 1435, 288, 3639, 10319, 4709, 2297, 18, 11160, 12, 3341, 18, 556, 14645, 18, 3813, 18, 1595, 14650, 18, 16961, 67, 17421, 67, 4211, 1769, 7734, 7766, 13587, 11371, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7766, 11371, 1435, 288, 3639, 10319, 4709, 2297, 18, 11160, 12, 3341, 18, 556, 14645, 18, 3813, 18, 1595, 14650, 18, 16961, 67, 17421, 67, 4211, 1769, 7734, 7766, 13587, 11371, ...
+ uuids[pos - 1] + ": " + e.toString());
+ uuids[pos + 1] + ": " + e.toString());
protected void fetchNext() { // reset next = null; while (next == null && pos < uuids.length) { try { next = (NodeImpl) itemMgr.getItem(new NodeId(uuids[pos++])); } catch (RepositoryException e) { log.error("Exception retrieving Node with UUID: " + uuids[pos - 1] + ": " + e.toString()); // try next } } }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/961ea23cb1d9303285f2797578d357991cd13359/NodeIteratorImpl.java/buggy/core/src/java/org/apache/jackrabbit/core/query/lucene/NodeIteratorImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 2158, 2134, 1435, 288, 3639, 368, 2715, 3639, 1024, 273, 446, 31, 3639, 1323, 261, 4285, 422, 446, 597, 949, 411, 26938, 18, 2469, 13, 288, 5411, 775, 288, 7734, 1024, 273, 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, 4750, 918, 2158, 2134, 1435, 288, 3639, 368, 2715, 3639, 1024, 273, 446, 31, 3639, 1323, 261, 4285, 422, 446, 597, 949, 411, 26938, 18, 2469, 13, 288, 5411, 775, 288, 7734, 1024, 273, 2...
return true; }
return true; }
public boolean supports(Class type) { return true; }
55385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55385/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 6146, 12, 797, 618, 13, 288, 1082, 202, 2463, 638, 31, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 6146, 12, 797, 618, 13, 288, 1082, 202, 2463, 638, 31, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
return null;
Message message = getMessage(); if (message == null) { return null; } else { return message.session; }
public Session getSession() { // TODO Review how to get this, if possible return null; }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/cf483c82aa3d52c5c424ab8cd6deae6c55e62928/MessageContext.java/buggy/specs/javamail/src/java/javax/mail/MessageContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3877, 7183, 1435, 288, 3639, 368, 2660, 21354, 3661, 358, 336, 333, 16, 309, 3323, 4202, 2350, 883, 273, 2381, 5621, 309, 261, 2150, 422, 446, 13, 288, 327, 446, 31, 289, 469, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3877, 7183, 1435, 288, 3639, 368, 2660, 21354, 3661, 358, 336, 333, 16, 309, 3323, 4202, 2350, 883, 273, 2381, 5621, 309, 261, 2150, 422, 446, 13, 288, 327, 446, 31, 289, 469, 288...
if(string == null) string = "";
if(string == null) { string = ""; }
private void initializeListeners() { canvas.addPaintListener(new PaintListener() { /* * (non-Javadoc) * * @see org.eclipse.swt.events.PaintListener#paintControl(org.eclipse.swt.events.PaintEvent) */ public void paintControl(PaintEvent event) { GC gc = event.gc; ILabelProvider labelProvider = (ILabelProvider) getLabelProvider(); int itemCount = Math.min(displayedItems.length, numShowItems); int yOffset = 0; if (numShowItems == 1) {//If there is a single item try to center it Rectangle clientArea = canvas.getParent().getClientArea(); int size = clientArea.height; yOffset = size - (fontMetrics.getHeight()); yOffset = yOffset / 2; } for (int i = 0; i < itemCount; i++) { String string = labelProvider.getText(displayedItems[i]); if(string == null) string = "";//$NON-NLS-1$ gc.drawString(string, 2, yOffset + (i * fontMetrics.getHeight()), true); } } }); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ProgressCanvasViewer.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressCanvasViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4046, 5583, 1435, 288, 3639, 5953, 18, 1289, 12699, 2223, 12, 2704, 30001, 2223, 1435, 288, 5411, 1748, 2398, 380, 261, 5836, 17, 24060, 13, 2398, 380, 2868, 380, 632, 5946, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4046, 5583, 1435, 288, 3639, 5953, 18, 1289, 12699, 2223, 12, 2704, 30001, 2223, 1435, 288, 5411, 1748, 2398, 380, 261, 5836, 17, 24060, 13, 2398, 380, 2868, 380, 632, 5946, 23...
RefactoringStatus result= performRefactoring(ref); assertEquals("precondition was supposed to pass", null, result);
RefactoringStatus preconditionResult= ref.checkPreconditions(new NullProgressMonitor()); if (preconditionResult.isOK()) preconditionResult= null; assertEquals("precondition was supposed to pass", null, preconditionResult);
private void passHelper(int startLine, int startColumn, int endLine, int endColumn, String newName, boolean declareStatic, boolean declareFinal, int initializeIn, int accessModifier) throws Exception{ ICompilationUnit cu= createCUfromTestFile(getPackageP(), true, true); ISourceRange selection= TextRangeUtil.getSelection(cu, startLine, startColumn, endLine, endColumn); PromoteTempToFieldRefactoring ref= getRefactoringObject(selection, cu, newName, declareStatic, declareFinal, initializeIn, accessModifier); RefactoringStatus result= performRefactoring(ref); assertEquals("precondition was supposed to pass", null, result); IPackageFragment pack= (IPackageFragment)cu.getParent(); String newCuName= getSimpleTestFileName(true, true); ICompilationUnit newcu= pack.getCompilationUnit(newCuName); assertTrue(newCuName + " does not exist", newcu.exists()); assertEquals("incorrect changes", getFileContents(getTestFileName(true, false)), newcu.getSource()); //AbstractCUTestCase.compareSource(newcu.getSource(), getFileContents(getTestFileName(true, false))); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/1c5421602939d1cc547a8c7d29effc51d531a9ce/PromoteTempToFieldTests.java/clean/org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/PromoteTempToFieldTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1342, 2276, 12, 474, 24636, 16, 509, 787, 1494, 16, 509, 31763, 16, 509, 679, 1494, 16, 15106, 225, 514, 13253, 16, 6862, 1082, 225, 1250, 14196, 5788, 16, 6862, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1342, 2276, 12, 474, 24636, 16, 509, 787, 1494, 16, 509, 31763, 16, 509, 679, 1494, 16, 15106, 225, 514, 13253, 16, 6862, 1082, 225, 1250, 14196, 5788, 16, 6862, 1082, 2...
if ((b[0] != 0xFE || b[1] != 0xFF) && (b[0] != 0xFF || b[1] != 0xFE)) {
int b0 = b[0] & 0xFF; int b1 = b[1] & 0xFF; if ((b0 != 0xFE || b1 != 0xFF) && (b0 != 0xFF || b1 != 0xFE)) {
protected void consumeBOM(InputStream stream, String encoding) throws IOException { if (stream == null || encoding == null) return; byte[] b = new byte[3]; int count = 0; stream.mark(3); encoding = encoding.toUpperCase(Locale.ENGLISH); if (encoding.equals("UTF-8")) { count = stream.read(b, 0, 3); if (count == 3) { if (b[0] != 0xEF || b[1] != 0xBB || b[2] != 0xBF) { // First three bytes are not BOM, so reset. stream.reset(); } } else { stream.reset(); } } else if (encoding.startsWith("UTF-16")) { count = stream.read(b, 0, 2); if (count == 2) { if ((b[0] != 0xFE || b[1] != 0xFF) && (b[0] != 0xFF || b[1] != 0xFE)) { // First two bytes are not BOM, so reset. stream.reset(); } } else { stream.reset(); } } // We could do UTF-32, but since the getEncodingName() doesn't support that // we won't support it here. // To implement UTF-32, look for: 00 00 FE FF for big-endian // or FF FE 00 00 for little-endian }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/25d087d7f94b7ae98d32c4ac4ff0991bd8bd96cf/XIncludeTextReader.java/clean/src/org/apache/xerces/xinclude/XIncludeTextReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 7865, 38, 1872, 12, 4348, 1407, 16, 514, 2688, 13, 3639, 1216, 1860, 288, 3639, 309, 261, 3256, 422, 446, 747, 2688, 422, 446, 13, 5411, 327, 31, 3639, 1160, 8526, 324, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 7865, 38, 1872, 12, 4348, 1407, 16, 514, 2688, 13, 3639, 1216, 1860, 288, 3639, 309, 261, 3256, 422, 446, 747, 2688, 422, 446, 13, 5411, 327, 31, 3639, 1160, 8526, 324, 273, ...
excludeNames,
discouragedNames, forbiddenNames,
private void findVariableNames(char[] name, TypeReference type , char[][] excludeNames, int kind, int modifiers){ if(type != null && type.resolvedType != null && type.resolvedType.problemId() == ProblemReasons.NoError){ TypeBinding tb = type.resolvedType; findVariableName( name, tb.leafComponentType().qualifiedPackageName(), tb.leafComponentType().qualifiedSourceName(), tb.leafComponentType().sourceName(), tb, excludeNames, type.dimensions(), kind, modifiers); }/* else { char[][] typeName = type.getTypeName(); findVariableName( name, NoChar, CharOperation.concatWith(typeName, '.'), typeName[typeName.length - 1], excludeNames, type.dimensions()); }*/ }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/a49b0379fae683770f815e7e32d76b4ebea892ec/CompletionEngine.java/clean/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1104, 3092, 1557, 12, 3001, 8526, 508, 16, 31717, 618, 269, 1149, 63, 6362, 65, 19169, 477, 11349, 1557, 16, 17987, 1557, 16, 509, 3846, 16, 509, 10429, 15329, 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, 1152, 918, 1104, 3092, 1557, 12, 3001, 8526, 508, 16, 31717, 618, 269, 1149, 63, 6362, 65, 19169, 477, 11349, 1557, 16, 17987, 1557, 16, 509, 3846, 16, 509, 10429, 15329, 202, 202, ...
Object target = ProjectBrowser.TheInstance.getTarget();
Object target = ProjectBrowser.getInstance().getTarget();
public UMLDiagram createDiagram(Object handle) { if (!ModelFacade.isANamespace(handle)) { cat.error("No namespace as argument"); cat.error(handle); throw new IllegalArgumentException( "The argument " + handle + "is not a namespace."); } MNamespace ns = (MNamespace)handle; MCollaboration c = null; Object target = ProjectBrowser.TheInstance.getTarget(); if (target instanceof MOperation) { c = UmlFactory.getFactory().getCollaborations().buildCollaboration( ns); c.setRepresentedOperation((MOperation)target); } else if (target instanceof MClassifier) { c = UmlFactory.getFactory().getCollaborations().buildCollaboration( ns); c.setRepresentedClassifier((MClassifier)target); } else if (target instanceof MModel) { c = UmlFactory.getFactory().getCollaborations().buildCollaboration( (MModel)target); } else if (target instanceof MInteraction) { c = ((MInteraction)target).getContext(); } else if (target instanceof UMLSequenceDiagram) { Object o = ((UMLSequenceDiagram)target).getOwner(); if (o instanceof MCollaboration) { //preventing backward compat problems c = (MCollaboration)o; } } else if (target instanceof MCollaboration) { c = (MCollaboration)target; } else { c = UmlFactory.getFactory().getCollaborations().buildCollaboration( ns); } UMLSequenceDiagram d = new UMLSequenceDiagram(c); return d; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/1ebb17ac06205415cc8d51f57abdfb1e5ec54d76/ActionSequenceDiagram.java/buggy/src_new/org/argouml/uml/ui/ActionSequenceDiagram.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 1495, 14058, 1940, 752, 14058, 1940, 12, 921, 1640, 13, 288, 3639, 309, 16051, 1488, 12467, 18, 291, 1258, 753, 909, 12, 4110, 3719, 288, 5411, 6573, 18, 1636, 2932, 2279, 1981...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 587, 1495, 14058, 1940, 752, 14058, 1940, 12, 921, 1640, 13, 288, 3639, 309, 16051, 1488, 12467, 18, 291, 1258, 753, 909, 12, 4110, 3719, 288, 5411, 6573, 18, 1636, 2932, 2279, 1981...
final DefaultConfiguration checkConfig = createCheckConfig(LeftCurlyCheck.class); checkConfig.addAttribute("option", LeftCurlyOption.NL.toString());
mCheckConfig.addAttribute("option", LeftCurlyOption.NL.toString());
public void testNL() throws Exception { final DefaultConfiguration checkConfig = createCheckConfig(LeftCurlyCheck.class); checkConfig.addAttribute("option", LeftCurlyOption.NL.toString()); final String[] expected = { "49:14: '{' should be on a new line.", "53:14: '{' should be on a new line.", "58:18: '{' should be on a new line.", "62:18: '{' should be on a new line.", "67:12: '{' should be on a new line.", "72:18: '{' should be on a new line.", }; verify(checkConfig, getPath("InputScopeInnerInterfaces.java"), expected); }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/78e9ce870170ca3ef88fd78f8e0af0681c958eb3/LeftCurlyCheckTest.java/clean/src/tests/com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyCheckTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 24924, 1435, 3639, 1216, 1185, 565, 288, 3639, 727, 2989, 1750, 866, 809, 273, 5411, 752, 1564, 809, 12, 3910, 30043, 1564, 18, 1106, 1769, 3639, 866, 809, 18, 1289, 1499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 24924, 1435, 3639, 1216, 1185, 565, 288, 3639, 727, 2989, 1750, 866, 809, 273, 5411, 752, 1564, 809, 12, 3910, 30043, 1564, 18, 1106, 1769, 3639, 866, 809, 18, 1289, 1499...
director.showObjectCreation(of, h);
director.showObjectCreation(of, h);
public ObjectFrame createNewInstance(ClassInfo ci, Highlight h) { ObjectFrame of = new ObjectFrame("-1", ci.getName(), ci.getFieldNumber()); //director: create object director.showObjectCreation(of, h); //director: create variables and initialize them Hashtable fields = ci.getFields(); for (Enumeration keyEnum = fields.keys(); keyEnum.hasMoreElements();) { String name = (String) keyEnum.nextElement(); String info = (String) fields.get(name); StringTokenizer st = new StringTokenizer(info, Code.DELIM); String mods = st.nextToken(); String type = st.nextToken(); String value = ""; if (st.hasMoreTokens()) { value = st.nextToken(); } if (!Modifier.isStatic(Integer.parseInt(mods)) && name.indexOf("$") < 0) { Variable var = director.declareObjectVariable(of, name, type, null); } /* if (!value.equals(Code.UNKNOWN)) { Value casted = null; Value val = null; if (ECodeUtilities.isPrimitive(type)) { casted = new Value(value, type); val = new Value(value, type); director.introduceLiteral(val); } else { if (value.equals("null")) { casted = new Reference(); val = new Reference(); director.introduceLiteral(val); } else { //This should be done differently! //This does not work here if some things //are not changed when the initial values of //each field in the class are collected in DJ. Instance inst = (Instance) instances.get( ECodeUtilities.getHashCode(value)); if (inst != null) { casted = new Reference(inst); val = new Reference(inst); } else { casted = new Reference(); val = new Reference(); director.introduceLiteral(val); } } casted.setActor(var.getActor().getValue()); } director.animateAssignment(var, val, casted, null, null); } */ } return of; }
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/096731785d17e1df37c952495005acf2800e13b7/Interpreter.java/buggy/src/jeliot/mcode/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3219, 15291, 1442, 12, 19455, 9039, 16, 31386, 366, 13, 288, 202, 202, 921, 3219, 434, 273, 394, 1033, 3219, 2932, 17, 21, 3113, 9039, 18, 17994, 9334, 9039, 18, 588, 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, 482, 1033, 3219, 15291, 1442, 12, 19455, 9039, 16, 31386, 366, 13, 288, 202, 202, 921, 3219, 434, 273, 394, 1033, 3219, 2932, 17, 21, 3113, 9039, 18, 17994, 9334, 9039, 18, 588, 97...
return (_nodeLists[index] != null) ? _nodeLists[index] : (_nodeLists[index] = new DTMAxisIterNodeList(this,
int nodeID = makeNodeIdentity(index); if (nodeID < 0) { return null; } else if (nodeID < _nodeLists.length) { return (_nodeLists[nodeID] != null) ? _nodeLists[nodeID] : (_nodeLists[nodeID] = new DTMAxisIterNodeList(this,
public NodeList makeNodeList(int index) { if (_nodeLists == null) { _nodeLists = new NodeList[_namesSize]; } return (_nodeLists[index] != null) ? _nodeLists[index] : (_nodeLists[index] = new DTMAxisIterNodeList(this, new SingletonIterator(index))); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/1f9f2f6c53dd12414f83bbcc39f6be44d00807d4/SAXImpl.java/clean/src/org/apache/xalan/xsltc/dom/SAXImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16781, 1221, 19914, 12, 474, 770, 13, 288, 3639, 309, 261, 67, 2159, 7432, 422, 446, 13, 288, 5411, 389, 2159, 7432, 273, 394, 16781, 63, 67, 1973, 1225, 15533, 3639, 289, 3639, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16781, 1221, 19914, 12, 474, 770, 13, 288, 3639, 309, 261, 67, 2159, 7432, 422, 446, 13, 288, 5411, 389, 2159, 7432, 273, 394, 16781, 63, 67, 1973, 1225, 15533, 3639, 289, 3639, 3...
public static boolean setImage(Image im, Component c) { boolean b = true; MediaTracker mt = new MediaTracker(c); mt.addImage(im, 0); try { mt.waitForID(0); } catch (InterruptedException e) { System.out.println("Error while image loading."); //$NON-NLS-1$ b = false; } if (mt.isErrorID(0)) { System.out.println("Could Not load Image."); //$NON-NLS-1$ b = false; } return b; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/3e2c07c4b3a334f50ff43404d895908863bcff1e/PMUtil.java/buggy/megamek/src/megamek/client/ui/swing/widget/PMUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 6494, 542, 2040, 12, 2040, 381, 16, 1841, 71, 15329, 6494, 70, 33, 3767, 31, 5419, 8135, 1010, 33, 2704, 5419, 8135, 12, 71, 1769, 1010, 18, 1289, 2040, 12, 381, 16, 20, 1769, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3845, 6494, 542, 2040, 12, 2040, 381, 16, 1841, 71, 15329, 6494, 70, 33, 3767, 31, 5419, 8135, 1010, 33, 2704, 5419, 8135, 12, 71, 1769, 1010, 18, 1289, 2040, 12, 381, 16, 20, 1769, ...
return null;
return _parameterName;
public String getName() { // TODO implement this function return null; }
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/6a74720f63251983ff6d4844b5e3e58dc53a1f39/Parameter.java/buggy/src/java-common/org/xins/common/spec/Parameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 514, 1723, 1435, 288, 5411, 368, 2660, 2348, 333, 445, 377, 327, 389, 6775, 461, 31, 282, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 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, 565, 1071, 514, 1723, 1435, 288, 5411, 368, 2660, 2348, 333, 445, 377, 327, 389, 6775, 461, 31, 282, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
final public ByteBuffer putShort (short value) { // FIXME: this handles big endian only put ((byte) ((((int) value) & 0xff00) >> 8)); put ((byte) (((int) value) & 0x00ff)); return this; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/8e2b4977fae8ee9492e65363b6439bde6376b518/DirectByteBufferImpl.java/buggy/java/nio/DirectByteBufferImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 7400, 1378, 4897, 261, 6620, 460, 13, 225, 288, 565, 368, 9852, 30, 333, 7372, 5446, 14759, 1338, 565, 1378, 14015, 7229, 13, 261, 12443, 12, 474, 13, 460, 13, 473, 374, 5297...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 7400, 1378, 4897, 261, 6620, 460, 13, 225, 288, 565, 368, 9852, 30, 333, 7372, 5446, 14759, 1338, 565, 1378, 14015, 7229, 13, 261, 12443, 12, 474, 13, 460, 13, 473, 374, 5297...
_allOffenders = null;
allOffenders = null;
protected void recomputeAllOffenders() { _allOffenders = null; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/7c633bc976398bc2decb9e6ece5942983af4c921/ToDoList.java/clean/src_new/org/argouml/cognitive/ToDoList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 30067, 1595, 7210, 10130, 1435, 288, 3639, 777, 7210, 10130, 273, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 30067, 1595, 7210, 10130, 1435, 288, 3639, 777, 7210, 10130, 273, 446, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
_doc = DocumentBuilderFactory.newInstance(). newDocumentBuilder().newDocument();
_doc = ((DocumentBuilder) _threadDocumentBuilderFactory.get()).newDocument();
Node exportDom ( ) throws Exception { // TODO - add an options which specifies a Document with which // to create the fragment _doc = DocumentBuilderFactory.newInstance(). newDocumentBuilder().newDocument(); Node result; if (_createDoc) { result = _currentNode = _doc; } else { DocumentFragment frag = _doc.createDocumentFragment(); result = _currentNode = frag; } while ( process() ) ; return result; }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/8dfef03744bcebfc9c73417b5624b3291a61e7b1/Saver.java/clean/v2/src/xmlstore/org/apache/xmlbeans/impl/store/Saver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 2029, 3359, 8832, 261, 262, 5411, 1216, 1185, 3639, 288, 5411, 368, 2660, 300, 527, 392, 702, 1492, 11470, 279, 4319, 598, 1492, 5411, 368, 358, 752, 326, 5481, 5411, 389, 2434, 273, 7734...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 2029, 3359, 8832, 261, 262, 5411, 1216, 1185, 3639, 288, 5411, 368, 2660, 300, 527, 392, 702, 1492, 11470, 279, 4319, 598, 1492, 5411, 368, 358, 752, 326, 5481, 5411, 389, 2434, 273, 7734...
setFirstChild(new DomText(getPage(), newValue));
final DomText newText = new DomText(getPage(), newValue); if (oldText_ == null) { appendChild(newText); } else { oldText_.replace(newText); }
public final void setText( final String newValue ) { oldText_ = (DomText)getFirstChild(); setFirstChild(new DomText(getPage(), newValue)); getPage().executeOnChangeHandlerIfAppropriate(this); }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/a96df24d98583162ff75369ad27fdc5da60b0e2b/HtmlTextArea.java/buggy/htmlunit/src/java/com/gargoylesoftware/htmlunit/html/HtmlTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 7883, 12, 727, 514, 6129, 262, 288, 3639, 1592, 1528, 67, 273, 261, 8832, 1528, 13, 588, 3759, 1763, 5621, 3639, 727, 12965, 1528, 394, 1528, 273, 394, 12965, 1528, 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, 727, 918, 7883, 12, 727, 514, 6129, 262, 288, 3639, 1592, 1528, 67, 273, 261, 8832, 1528, 13, 588, 3759, 1763, 5621, 3639, 727, 12965, 1528, 394, 1528, 273, 394, 12965, 1528, 12, ...
switch ( eDerivedStructuralFeatureID( featureID, baseClass ) )
switch (eDerivedStructuralFeatureID(featureID, baseClass))
public NotificationChain eInverseRemove( InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs ) { if ( featureID >= 0 ) { switch ( eDerivedStructuralFeatureID( featureID, baseClass ) ) { case LayoutPackage.LABEL_BLOCK__CHILDREN : return ( (InternalEList) getChildren( ) ).basicRemove( otherEnd, msgs ); case LayoutPackage.LABEL_BLOCK__BOUNDS : return basicSetBounds( null, msgs ); case LayoutPackage.LABEL_BLOCK__INSETS : return basicSetInsets( null, msgs ); case LayoutPackage.LABEL_BLOCK__MIN_SIZE : return basicSetMinSize( null, msgs ); case LayoutPackage.LABEL_BLOCK__OUTLINE : return basicSetOutline( null, msgs ); case LayoutPackage.LABEL_BLOCK__BACKGROUND : return basicSetBackground( null, msgs ); case LayoutPackage.LABEL_BLOCK__TRIGGERS : return ( (InternalEList) getTriggers( ) ).basicRemove( otherEnd, msgs ); case LayoutPackage.LABEL_BLOCK__LABEL : return basicSetLabel( null, msgs ); default : return eDynamicInverseRemove( otherEnd, featureID, baseClass, msgs ); } } return eBasicSetContainer( null, featureID, msgs ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bdab78403751f288b76844a99f50b999c34fb491/LabelBlockImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/LabelBlockImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 27050, 425, 16376, 3288, 12, 3186, 8029, 1308, 1638, 16, 1082, 202, 474, 6966, 16, 1659, 23955, 16, 27050, 8733, 262, 202, 95, 202, 202, 430, 261, 6966, 1545, 374, 262, 202, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 27050, 425, 16376, 3288, 12, 3186, 8029, 1308, 1638, 16, 1082, 202, 474, 6966, 16, 1659, 23955, 16, 27050, 8733, 262, 202, 95, 202, 202, 430, 261, 6966, 1545, 374, 262, 202, 2...