rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null)
MenuBarPeer myPeer = (MenuBarPeer) getPeer (); if (myPeer != null)
setHelpMenu(Menu menu){ if (helpMenu != null) { helpMenu.removeNotify (); helpMenu.parent = null; } helpMenu = menu; if (menu.parent != null) menu.parent.remove (menu); menu.parent = this; MenuBarPeer peer = (MenuBarPeer) getPeer (); if (peer != null) { menu.addNotify(); peer.addHelpMenu (menu); }}
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/5806c07c3eeedb0f4f92b9fbacf30c0f55915c25/MenuBar.java/buggy/core/src/classpath/java/java/awt/MenuBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 444, 6696, 4599, 12, 4599, 3824, 15329, 225, 309, 261, 5201, 4599, 480, 446, 13, 565, 288, 1377, 2809, 4599, 18, 4479, 9168, 261, 1769, 1377, 2809, 4599, 18, 2938, 273, 446, 31, 565, 289, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 444, 6696, 4599, 12, 4599, 3824, 15329, 225, 309, 261, 5201, 4599, 480, 446, 13, 565, 288, 1377, 2809, 4599, 18, 4479, 9168, 261, 1769, 1377, 2809, 4599, 18, 2938, 273, 446, 31, 565, 289, 22...
public org.quickfix.field.Account getAccount() throws FieldNotFound { org.quickfix.field.Account value = new org.quickfix.field.Account();
public quickfix.field.Account getAccount() throws FieldNotFound { quickfix.field.Account value = new quickfix.field.Account();
public org.quickfix.field.Account getAccount() throws FieldNotFound { org.quickfix.field.Account value = new org.quickfix.field.Account(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralReport.java/buggy/src/java/src/quickfix/fix44/CollateralReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 3032, 23393, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 3032, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 303...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 3032, 23393, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 3032, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 303...
if (findAction != null) findAction.removePropertyChangeListener(findActionListener);
if (findAction != null) { findAction.removePropertyChangeListener(findActionListener); }
public void setFindAction(IAction action) { if (findAction == action) return; if (findAction != null) findAction.removePropertyChangeListener(findActionListener); findAction = action; if (findAction != null) findAction.addPropertyChangeListener(findActionListener); cellFindAction.updateEnabledState(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/CellEditorActionHandler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/CellEditorActionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3125, 1803, 12, 45, 1803, 1301, 13, 288, 3639, 309, 261, 4720, 1803, 422, 1301, 13, 5411, 327, 31, 3639, 309, 261, 4720, 1803, 480, 446, 13, 5411, 1104, 1803, 18, 4479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 3125, 1803, 12, 45, 1803, 1301, 13, 288, 3639, 309, 261, 4720, 1803, 422, 1301, 13, 5411, 327, 31, 3639, 309, 261, 4720, 1803, 480, 446, 13, 5411, 1104, 1803, 18, 4479, ...
RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx));
getRuntime().newFixnum(getValue().charAt(idx));
public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx)); } else if (args[0] instanceof RubyRegexp) { return RubyRegexp.regexpValue(args[0]).search(this, 0) >= 0 ? RubyRegexp.last_match(getRuntime().getBackref()) : getRuntime().getNil(); } else if (args[0] instanceof RubyString) { return getValue().indexOf(stringValue(args[0]).getValue()) != -1 ? args[0] : getRuntime().getNil(); } else if (args[0] instanceof RubyRange) { long[] begLen = ((RubyRange) args[0]).getBeginLength(getValue().length(), true, false); return begLen == null ? getRuntime().getNil() : substr((int) begLen[0], (int) begLen[1]); } int idx = (int) RubyNumeric.num2long(args[0]); if (idx < 0) { idx += getValue().length(); } return idx < 0 || idx >= getValue().length() ? getRuntime().getNil() : RubyFixnum.newFixnum(getRuntime(), getValue().charAt(idx)); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 854, 74, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 565, 309, 261, 1893, 1379, 1380, 12, 1968, 16, 404, 16, 576, 13, 422, 576, 13, 288, 202, 3639, 327...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 854, 74, 12, 7937, 10340, 921, 8526, 833, 13, 288, 202, 565, 309, 261, 1893, 1379, 1380, 12, 1968, 16, 404, 16, 576, 13, 422, 576, 13, 288, 202, 3639, 327...
public BTree(Database db, int rootPointer) { this(db, rootPointer, 8);
public BTree(Database db, int rootPointer, IBTreeComparator cmp) { this(db, rootPointer, 8, cmp);
public BTree(Database db, int rootPointer) { this(db, rootPointer, 8); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d54cf4d243d6aeda192e76f691fe9cf9a3ee7c50/BTree.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/db/BTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 605, 2471, 12, 4254, 1319, 16, 509, 1365, 4926, 13, 288, 202, 202, 2211, 12, 1966, 16, 1365, 4926, 16, 1725, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 605, 2471, 12, 4254, 1319, 16, 509, 1365, 4926, 13, 288, 202, 202, 2211, 12, 1966, 16, 1365, 4926, 16, 1725, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, ...
private void getOrCreateServiceLocator() { if (System.getSecurityManager() == null) { System.setSecurityManager(new java.rmi.RMISecurityManager()); } if (multicastLocator) { // For multicast LookupDiscovery discover = null; try { System.out.println(">> Start LookupDiscovery ..."); discover = new LookupDiscovery(LookupDiscovery.ALL_GROUPS); System.out.println(">> Stop LookupDiscovery ..."); } catch(Exception e) { System.err.println(e.toString()); e.printStackTrace(); System.exit(1); } discover.addDiscoveryListener(this); // stay around long enough to receive replies try { System.out.println(">> Start waiting Thread ..."); Thread.currentThread().sleep(MAX_WAIT); if (this.registrar == null) { createServiceLocator(); } System.out.println(">> Stop waiting Thread ..."); } catch(java.lang.InterruptedException e) { // do nothing } } else { // For unicast on `host` System.out.println("Lookup : jini://"+host); try { lookup = new LookupLocator("jini://"+host); System.out.println("Lookup.getRegistrar() on "+host); this.registrar = lookup.getRegistrar(); } catch(java.net.MalformedURLException e) { System.err.println("Lookup failed: " + e.getMessage()); e.printStackTrace(); } catch (java.io.IOException e) { System.err.println("Registrar search failed: " + e.getMessage()); if (MAX_RETRY-- > 0) { createServiceLocator(); getOrCreateServiceLocator(); } else { System.out.println("\nCannot run a ServiceLocator : Have you launched the rmid deamon on "+host); System.exit(2); } } catch (java.lang.ClassNotFoundException e) { System.err.println("Registrar search failed: " + e.toString()); e.printStackTrace(); } System.out.println("Registrar found on "+host); // Just for test displayServices(); } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/587595d3d238a839759fc80780989cf7b46a7398/ServiceLocatorHelper.java/clean/src/org/objectweb/proactive/core/jini/ServiceLocatorHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 588, 17717, 1179, 5786, 1435, 95, 430, 12, 3163, 18, 588, 4368, 1318, 1435, 631, 2011, 15329, 3163, 18, 542, 4368, 1318, 12, 2704, 6290, 18, 8864, 77, 18, 54, 7492, 4368, 1318, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 588, 17717, 1179, 5786, 1435, 95, 430, 12, 3163, 18, 588, 4368, 1318, 1435, 631, 2011, 15329, 3163, 18, 542, 4368, 1318, 12, 2704, 6290, 18, 8864, 77, 18, 54, 7492, 4368, 1318, 1...
if ( e.getSource( ).equals( cmpDropDown ) || e.getSource( ).equals( srTransparency ) )
if ( isPopupControl( e.getSource( ) ) )
public void focusLost( FocusEvent e ) { if ( e.getSource( ).equals( cmpDropDown ) || e.getSource( ).equals( srTransparency ) ) { // Condition added to handle behavior under Linux Control cTmp = Display.getCurrent( ).getCursorControl( ); if ( cTmp != null ) { if ( cTmp.equals( btnGradient ) || cTmp.equals( btnCustom ) || cTmp.equals( btnReset ) || cTmp.equals( btnAuto ) || cTmp.equals( btnImage ) || ( e.getSource( ).equals( cmpDropDown ) && cTmp.equals( srTransparency ) ) ) { return; } if ( cTmp.equals( cnvSelection ) || cTmp.equals( btnDown ) ) { bJustFocusLost = true; } } cmpDropDown.getShell( ).dispose( ); return; } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/8cc82cc45cfffb78afa9d75c1f95bbef888b491e/FillChooserComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FillChooserComposite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7155, 19024, 12, 478, 4560, 1133, 425, 262, 202, 95, 202, 202, 430, 261, 425, 18, 588, 1830, 12, 262, 18, 14963, 12, 9411, 7544, 4164, 262, 9506, 202, 20081, 425, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 7155, 19024, 12, 478, 4560, 1133, 425, 262, 202, 95, 202, 202, 430, 261, 425, 18, 588, 1830, 12, 262, 18, 14963, 12, 9411, 7544, 4164, 262, 9506, 202, 20081, 425, 18, 5...
if( runLength > 0 )
if( runLength > 0 ) {
public void close() throws IOException { if( closed ) return; if( runLength > 0 ) writeRun(); currentChar = -1; endBlock(); endCompression(); closed = true; super.close(); bsStream.close(); }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/8ce1de2178a0422105fa437c327b49fb5637ff28/CBZip2OutputStream.java/buggy/proposal/myrmidon/src/java/org/apache/aut/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1746, 1435, 3639, 1216, 1860, 565, 288, 3639, 309, 12, 4375, 262, 5411, 327, 31, 3639, 309, 12, 1086, 1782, 405, 374, 262, 288, 5411, 1045, 1997, 5621, 3639, 29445, 273, 300, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1746, 1435, 3639, 1216, 1860, 565, 288, 3639, 309, 12, 4375, 262, 5411, 327, 31, 3639, 309, 12, 1086, 1782, 405, 374, 262, 288, 5411, 1045, 1997, 5621, 3639, 29445, 273, 300, ...
swingInvokeLater(enterAction);
callback.enterInterrupt(frame, threadTitle, alertMessage);
void interrupted(Context cx, final StackFrame frame, Throwable scriptException) { boolean eventThreadFlag = SwingUtilities.isEventDispatchThread(); ContextData contextData = frame.contextData(); contextData.eventThreadFlag = eventThreadFlag; int line = frame.getLineNumber(); String url = frame.getUrl(); synchronized (swingMonitor) { if (eventThreadFlag) { dispatcherIsWaiting++; if (nonDispatcherWaiting) { // Another thread is stopped in the debugger // process events until it resumes and we // can enter while (nonDispatcherWaiting) { try { dispatchNextAwtEvent(); if (this.returnValue == EXIT) { return; } swingMonitor.wait(1); } catch (InterruptedException exc) { return; } } } } else { while (isInterrupted || dispatcherIsWaiting > 0) { try { swingMonitor.wait(); } catch (InterruptedException exc) { return; } } nonDispatcherWaiting = true; } isInterrupted = true; currentContextData = contextData; } do { int frameCount = contextData.frameCount(); this.frameIndex = frameCount -1; final String threadTitle = Thread.currentThread().toString(); final String alertMessage; if (scriptException == null) { alertMessage = null; } else { alertMessage = scriptException.toString(); } Runnable enterAction = new Runnable() { public void run() { debugGui.enterInterrupt(frame, threadTitle, alertMessage); } }; int returnValue = -1; if (!eventThreadFlag) { synchronized (monitor) { if (insideInterruptLoop) Kit.codeBug(); this.insideInterruptLoop = true; this.evalRequest = null; this.returnValue = -1; swingInvokeLater(enterAction); try { for (;;) { try { monitor.wait(); } catch (InterruptedException exc) { Thread.currentThread().interrupt(); break; } if (evalRequest != null) { this.evalResult = null; try { evalResult = do_eval(cx, evalFrame, evalRequest); } finally { evalRequest = null; evalFrame = null; monitor.notify(); } continue; } if (this.returnValue != -1) { returnValue = this.returnValue; break; } } } finally { insideInterruptLoop = false; } } } else { this.returnValue = -1; enterAction.run(); while (this.returnValue == -1) { try { dispatchNextAwtEvent(); } catch (InterruptedException exc) { } } returnValue = this.returnValue; } switch (returnValue) { case STEP_OVER: contextData.breakNextLine = true; contextData.stopAtFrameDepth = contextData.frameCount(); break; case STEP_INTO: contextData.breakNextLine = true; contextData.stopAtFrameDepth = -1; break; case STEP_OUT: if (contextData.frameCount() > 1) { contextData.breakNextLine = true; contextData.stopAtFrameDepth = contextData.frameCount() -1; } break; } } while (false); synchronized (swingMonitor) { currentContextData = null; isInterrupted = false; if (eventThreadFlag) { dispatcherIsWaiting--; } else { nonDispatcherWaiting = false; } swingMonitor.notifyAll(); } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/cd63019db8934f1894ee55cbfaf64f9d200839a3/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 15711, 12, 1042, 9494, 16, 727, 7283, 3219, 2623, 16, 4206, 2728, 503, 13, 565, 288, 3639, 1250, 871, 3830, 4678, 273, 26145, 11864, 18, 291, 1133, 5325, 3830, 5621, 3639, 1772, 751,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15711, 12, 1042, 9494, 16, 727, 7283, 3219, 2623, 16, 4206, 2728, 503, 13, 565, 288, 3639, 1250, 871, 3830, 4678, 273, 26145, 11864, 18, 291, 1133, 5325, 3830, 5621, 3639, 1772, 751,...
try
try
final void setBooleanField(Object obj, boolean val) { try { field.setBoolean(obj, val); } catch(IllegalAccessException x) { throw new InternalError(x.getMessage()); } }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/7175146abf61d5302002eac9791f35b481c4eb26/ObjectStreamField.java/clean/libraries/javalib/java/io/ObjectStreamField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 918, 444, 5507, 974, 12, 921, 1081, 16, 1250, 1244, 13, 225, 288, 1377, 775, 1377, 288, 202, 225, 652, 18, 542, 5507, 12, 2603, 16, 1244, 1769, 1377, 289, 1377, 1044, 12, 12195, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 444, 5507, 974, 12, 921, 1081, 16, 1250, 1244, 13, 225, 288, 1377, 775, 1377, 288, 202, 225, 652, 18, 542, 5507, 12, 2603, 16, 1244, 1769, 1377, 289, 1377, 1044, 12, 12195, ...
StringUtils.printException(e);
StringUtil.printException(e);
private void writeGamePage(String game, String name, int gameNumber) throws Exception { File file = getGameFile(gameNumber); PrintStream out = new PrintStream(new FileOutputStream(file)); String title = "Game " + (gameNumber + 1) + " (" + name + ")"; startHtml(out, title); startInfo(out, title); writeInfoBasics(out); writeHtmlRow(out, "Game Index", gameNumber); writeHtmlRow(out, "File", getGameLink(file, gameNumber, false)); try { InputStream in = new FileInputStream(new File(game)); SgfReader reader = new SgfReader(in, game, null, 0); GameInformation info = reader.getGameTree().getGameInformation(); String playerBlack = info.m_playerBlack; if (playerBlack == null) playerBlack = "?"; String playerWhite = info.m_playerWhite; if (playerWhite == null) playerWhite = "?"; String result = info.m_result; if (result == null) result = "?"; writeHtmlRow(out, "Black", playerBlack); writeHtmlRow(out, "White", playerWhite); writeHtmlRow(out, "Result", result); in.close(); } catch (Exception e) { StringUtils.printException(e); } endInfo(out); out.print("<table border=\"0\">\n"); for (int i = 0; i < m_commands.size(); ++i) { CommandStatistics commandStatistics = getCommandStatistics(i); if (commandStatistics.getCount() > 0 && ! commandStatistics.m_isBeginCommand) { generatePlot(i, commandStatistics.m_format, gameNumber, game); out.print("<tr><td align=\"center\">" + getCommandLink(i) + "<br><img src=\"" + getPlotFile(gameNumber, i).getName() + "\"></td></tr>\n"); } } out.print("</table>\n" + "<hr>\n"); Table table = TableUtils.select(m_table, "File", game); out.print("<table class=\"smalltable\">\n" + "<thead><tr>"); for (int i = 1; i < table.getNumberColumns(); ++i) { String command = table.getColumnTitle(i); if (! TableUtils.allEmpty(table, command)) out.print("<th>" + command + "</th>"); } out.print("</tr></thead>\n"); for (int i = 0; i < table.getNumberRows(); ++i) { out.print("<tr>"); for (int j = 1; j < table.getNumberColumns(); ++j) { String command = table.getColumnTitle(j); if (TableUtils.allEmpty(table, command)) continue; String value = table.get(command, i); if (value == null) value = ""; out.print("<td>" + value + "</td>"); } out.print("</tr>\n"); } out.print("</table>\n"); finishHtml(out); out.close(); }
2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/1f50ffb219183ddaf94720a4aba453e11f412425/Analyze.java/buggy/src/net/sf/gogui/gtpstatistics/Analyze.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 12496, 1964, 12, 780, 7920, 16, 514, 508, 16, 509, 7920, 1854, 13, 3639, 1216, 1185, 565, 288, 3639, 1387, 585, 273, 7162, 339, 812, 12, 13957, 1854, 1769, 3639, 21677, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 12496, 1964, 12, 780, 7920, 16, 514, 508, 16, 509, 7920, 1854, 13, 3639, 1216, 1185, 565, 288, 3639, 1387, 585, 273, 7162, 339, 812, 12, 13957, 1854, 1769, 3639, 21677, ...
page.printlnAhref(ref(sym), ROOT_FRAME_NAME, sym.fullNameString());
page.printlnAhref(ref(sym), ROOT_FRAME, sym.fullNameString());
protected void createContainerIndexPage(Tree tree) { Symbol sym = tree.symbol(); String title = Location.getName(sym); createPrinters(sym, packageSummaryPage(sym)); page.printHeader(ATTRS_META, getGenerator()); page.printOpenBody(); String[] titles = new String[]{ "Objects", "Traits", "Classes" }; if (sym.isRoot()) { Tree[][] members = ScalaSearch.getSortedPackageMemberList(tree); for (int i = 0; i < titles.length; i++) addTreeTable(members[i], "All " + titles[i], true); } else { page.printlnOTag("table", ATTRS_NAVIGATION).indent(); page.printlnOTag("tr").indent(); page.printlnOTag("td", ATTRS_NAVIGATION_LINKS).indent(); page.printlnAhref(ref(sym), ROOT_FRAME_NAME, sym.fullNameString()); page.printlnCTag("td"); page.printlnCTag("tr"); page.printlnCTag("table"); page.printlnSTag("p"); Tree[][] members = members(tree); for (int i = 0; i < titles.length; i++) addTreeTable(members[i + 2], titles[i], false); } if (validate) addValidationBar(); page.printFootpage(); closePrinters(); }
48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/8f126982806efc1c68ac717c7fd9dba70d85e787/HTMLGenerator.java/buggy/sources/scala/tools/scaladoc/HTMLGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 2170, 1016, 1964, 12, 2471, 2151, 13, 288, 3639, 8565, 5382, 273, 2151, 18, 7175, 5621, 202, 780, 2077, 273, 7050, 18, 17994, 12, 8117, 1769, 3639, 752, 12149, 87, 12, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 2170, 1016, 1964, 12, 2471, 2151, 13, 288, 3639, 8565, 5382, 273, 2151, 18, 7175, 5621, 202, 780, 2077, 273, 7050, 18, 17994, 12, 8117, 1769, 3639, 752, 12149, 87, 12, 8...
if (msgs != null) msgs.dispatch();
if (msgs != null) msgs.dispatch();
public void setOutline(LineAttributes newOutline) { if (newOutline != outline) { NotificationChain msgs = null; if (outline != null) msgs = ((InternalEObject)outline).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.CLIENT_AREA__OUTLINE, null, msgs); if (newOutline != null) msgs = ((InternalEObject)newOutline).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - LayoutPackage.CLIENT_AREA__OUTLINE, null, msgs); msgs = basicSetOutline(newOutline, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, LayoutPackage.CLIENT_AREA__OUTLINE, newOutline, newOutline)); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ClientAreaImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/layout/impl/ClientAreaImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 21805, 12, 1670, 2498, 394, 21805, 13, 565, 288, 3639, 309, 261, 2704, 21805, 480, 16363, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 25134, 480, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 21805, 12, 1670, 2498, 394, 21805, 13, 565, 288, 3639, 309, 261, 2704, 21805, 480, 16363, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 25134, 480, 446, ...
mouseEventTarget.dispatchEvent (exited); mouseEventTarget = null;
lastComponentEntered.dispatchEvent (exited); lastComponentEntered = null;
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = SwingUtilities.convertPoint(nativeContainer, x, y, candidate); // If the event lands inside candidate, we have a hit. if (candidate.contains(cp.x, cp.y)) { // If candidate has children, we refine the hit. if (candidate instanceof Container && ((Container)candidate).getComponentCount() > 0) candidate = SwingUtilities.getDeepestComponentAt(candidate, cp.x, cp.y); break; } } // If candidate isn't showing or doesn't contain point, we back out a level. candidate = candidate.getParent(); } if (candidate == null) { // We either lost, or never had, a candidate; acquire from our native. candidate = SwingUtilities.getDeepestComponentAt(nativeContainer, x, y); } // If our candidate is new, inform the old target we're leaving. if (mouseEventTarget != null && mouseEventTarget.isShowing() && mouseEventTarget != candidate) { Point tp = SwingUtilities.convertPoint(nativeContainer, x, y, mouseEventTarget); MouseEvent exited = new MouseEvent (mouseEventTarget, MouseEvent.MOUSE_EXITED, me.getWhen (), me.getModifiers (), tp.x, tp.y, me.getClickCount (), me.isPopupTrigger (), me.getButton ()); mouseEventTarget.dispatchEvent (exited); mouseEventTarget = null; } // If we have a candidate, maybe enter it. if (candidate != null) { if (candidate.isLightweight() && candidate.isShowing() && candidate != nativeContainer && candidate != mouseEventTarget) { mouseEventTarget = candidate; Point cp = SwingUtilities.convertPoint(nativeContainer, x, y, candidate); MouseEvent entered = new MouseEvent (mouseEventTarget, MouseEvent.MOUSE_ENTERED, me.getWhen (), me.getModifiers (), cp.x, cp.y, me.getClickCount (), me.isPopupTrigger (), me.getButton ()); mouseEventTarget.dispatchEvent (entered); } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/Container.java/clean/core/src/classpath/java/java/awt/Container.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 10533, 1841, 1290, 9186, 1133, 12, 9186, 1133, 1791, 13, 225, 288, 565, 509, 619, 273, 1791, 18, 588, 60, 261, 1769, 565, 509, 677, 273, 1791, 18, 588, 61, 261, 1769, 565, 5435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 10533, 1841, 1290, 9186, 1133, 12, 9186, 1133, 1791, 13, 225, 288, 565, 509, 619, 273, 1791, 18, 588, 60, 261, 1769, 565, 509, 677, 273, 1791, 18, 588, 61, 261, 1769, 565, 5435, ...
else if ((b & 0xF) == 0xF0)
else if ((b & 0xF0) == 0xE0)
public int read (char[] outbuffer, int outpos, int outlength) { int origpos = outpos; for (;;) { if (outpos >= outlength) break; if (inpos >= inlength) break; int b = inbuffer[inpos++]; if (b >= 0) outbuffer[outpos++] = (char) b; else { if ((b & 0xC0) == 0x80) // Continuation byte { partial = (partial << 6) | (b & 0x3F); --partial_bytes_expected; if (partial_bytes_expected == 1) { if (partial > (0xFFFF>>6)) { // The next continuation byte will cause the result // to exceed 0xFFFF, so we must use a surrogate pair. // The "Unicode scalar value" (see D28 in section 3.7 // of the Unicode Standard 2.0) is defined as: // value == (hi-0xD800)*0x400+(lo-0xDC00)+0x10000, // where (hi, lo) is the Unicode surrogate pair. // After reading the first three bytes, we have: // partial == (value >> 6). // Substituting and simplifying, we get: // partial == (hi-0xD800)*0x10+((lo-0xDC00)>>6)+0x400. // The definition lo>=0xDC00 && lo<=0xDFFF implies // that (lo-0xDC00)>>6 is in the range 0..15. // Hence we can infer (partial-0x400)>>4 == (hi-0xDB00) // and we can emit the high-surrogate without waiting // for the final byte: outbuffer[outpos++] = (char) (0xDA00+(partial>>4)); // Now we want to set it up so that when we read // the final byte on the next iteration, we will // get the low-surrogate without special handling. // I.e. we want: // lo == (next_partial << 6) | (next & 0x3F) // where next is the next input byte and next_partial // is the value of partial at the end of this // iteration. This implies: next_partial == lo >> 6. // We can simplify the previous: // partial == (hi-0xD800)*0x10+((lo-0xDC00)>>6)+0x400, // to: partial == (hi-0xD800)*0x10+(lo>>6)+0x90. // Inserting the values of hi and next_partial, // and simplifying, we get: partial == // ( (partial-0x400)&~0xF) + next_partial + 0x90. // Solving for next_partial, we get: // next_partial = partial+0x400-0x90-(partial&~0xF): // or: next_partial = (partial&0xF) + 0x370. Hence: partial = (partial & 0xF) + 0x370; } } else if (partial_bytes_expected == 0) { outbuffer[outpos++] = (char) partial; partial = 0; partial_bytes_expected = 0; } } else // prefix byte { if ((b & 0xE) == 0xC0) { partial = b & 0x1F; partial_bytes_expected = 1; } else if ((b & 0xF) == 0xF0) { partial = b & 0xF; partial_bytes_expected = 2; } else { partial = b & 7; partial_bytes_expected = 3; } } } } return outpos - origpos; }
13625 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13625/f7fdfabb16bac8562669335a5d1ca582fb97ede7/Input_UTF8.java/buggy/libjava/gnu/gcj/convert/Input_UTF8.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 855, 261, 3001, 8526, 596, 4106, 16, 509, 596, 917, 16, 509, 596, 2469, 13, 225, 288, 565, 509, 1647, 917, 273, 596, 917, 31, 565, 364, 261, 25708, 13, 1377, 288, 202, 430,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 855, 261, 3001, 8526, 596, 4106, 16, 509, 596, 917, 16, 509, 596, 2469, 13, 225, 288, 565, 509, 1647, 917, 273, 596, 917, 31, 565, 364, 261, 25708, 13, 1377, 288, 202, 430,...
transactionManager.rollback(); } catch (Throwable e) { } default: try { System.out.println("###############################################################################3 transaction rollback"); transactionManager.rollback(); } catch (Throwable e) { }
if (transactionManager.getStatus() == Status.STATUS_MARKED_ROLLBACK) { System.out.println(" rollback status");
public void test(final String _userName, final HttpServletRequest _httpRequest, ServletResponse _response, FilterChain _chain) throws IOException, ServletException {System.out.println("############################################################################### logged in start="+Thread.currentThread().getId());Context context = null;try { transactionManager.begin(); Person person = (_userName == null ? null : Person.get(_userName)); context = new Context(transactionManager.getTransaction(), person, _httpRequest.getLocale()); Context.setThreadContext(context);} catch (SystemException e) { throw new ServletException(e);} catch (NotSupportedException e) { throw new ServletException(e);} catch (Exception e) {e.printStackTrace();}// TODO: is a open sql connection in the context returned automatically? try {boolean ok = false;try { _chain.doFilter(_httpRequest, _response); ok = true;} finally { switch (transactionManager.getStatus()) { case Status.STATUS_ACTIVE: if (ok) {System.out.println("###############################################################################1 transaction commit"); transactionManager.commit(); break; } // if not ok, rollback! case Status.STATUS_MARKED_ROLLBACK: try {System.out.println("###############################################################################2 transaction rollback"); transactionManager.rollback(); } catch (Throwable e) { } default: try {System.out.println("###############################################################################3 transaction rollback"); transactionManager.rollback(); } catch (Throwable e) { }// TODO: throw of Exception is not a good idea... if an exception is thrown in the try code, this exception is overwritten!// throw new ServletException("transaction in undefined status"); }} } catch (IOException e) {// TODO: log of exception!System.out.println("############################################################################### SercurityFilter-Exception:");e.printStackTrace(); throw e; } catch (ServletException e) {// TODO: log of exception!System.out.println("############################################################################### SercurityFilter-Exception:");e.printStackTrace(); throw e; } catch (Throwable e) {// TODO: log of exception!System.out.println("############################################################################### SercurityFilter-Exception:");e.printStackTrace(); throw new ServletException(e); } finally { context.close(); }System.out.println("############################################################################### logged in end="+Thread.currentThread().getId()); }
50266 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50266/263b292a01b33247cad97022c0ffd9d7a516d1ab/SecurityFilter.java/buggy/webapp/src/main/java/org/efaps/servlet/SecurityFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 12, 6385, 514, 389, 1355, 461, 16, 727, 9984, 389, 2505, 691, 16, 7971, 1064, 389, 2740, 16, 4008, 3893, 389, 5639, 13, 1216, 1860, 16, 16517, 225, 288, 3163, 18, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 12, 6385, 514, 389, 1355, 461, 16, 727, 9984, 389, 2505, 691, 16, 7971, 1064, 389, 2740, 16, 4008, 3893, 389, 5639, 13, 1216, 1860, 16, 16517, 225, 288, 3163, 18, 659, ...
box.add(ok); box.add(Box.createHorizontalStrut(6));
panel.add(ok); panel.add(Box.createHorizontalStrut(6));
public SelectLineRange(View view) { super(view,jEdit.getProperty("selectlinerange.title"),true); this.view = view; JPanel content = new JPanel(new BorderLayout()); content.setBorder(new EmptyBorder(12,6,12,9)); setContentPane(content); JLabel label = new JLabel(jEdit.getProperty( "selectlinerange.caption")); label.setBorder(new EmptyBorder(0,6,3,0)); content.add(BorderLayout.NORTH,label); JPanel panel = createFieldPanel(); content.add(BorderLayout.CENTER,panel); Box box = new Box(BoxLayout.X_AXIS); box.add(Box.createGlue()); ok = new JButton(jEdit.getProperty("common.ok")); ok.addActionListener(this); getRootPane().setDefaultButton(ok); box.add(ok); box.add(Box.createHorizontalStrut(6)); cancel = new JButton(jEdit.getProperty("common.cancel")); cancel.addActionListener(this); box.add(cancel); box.add(Box.createGlue()); content.add(box,BorderLayout.SOUTH); GUIUtilities.requestFocus(this,startField); pack(); setLocationRelativeTo(view); show(); }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/5f1ade6245a86c556d08b078eb07bcab6fee82c4/SelectLineRange.java/buggy/org/gjt/sp/jedit/gui/SelectLineRange.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6766, 1670, 2655, 12, 1767, 1476, 13, 202, 95, 202, 202, 9565, 12, 1945, 16, 78, 4666, 18, 588, 1396, 2932, 4025, 7511, 264, 726, 18, 2649, 6, 3631, 3767, 1769, 202, 202, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6766, 1670, 2655, 12, 1767, 1476, 13, 202, 95, 202, 202, 9565, 12, 1945, 16, 78, 4666, 18, 588, 1396, 2932, 4025, 7511, 264, 726, 18, 2649, 6, 3631, 3767, 1769, 202, 202, 22...
if(w != null) {
if (w != null) {
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if(cmd.equals("Cancel")) { setVisible(false); value = null; } else if(cmd.equals("Select")) { value = (String)list.getSelectedValue(); setVisible(false); JInternalFrame w = (JInternalFrame)fileWindows.get(value); if(w != null) { try { w.show(); w.setSelected(true); } catch(Exception exc) { } } } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5b760bc86060749267746b7d77c0c8da1d3b9c1d/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 12, 4172, 18, 14963, 2932, 6691, 6, 3719, 288, 5411, 16697, 12, 5743, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 12, 4172, 18, 14963, 2932, 6691, 6, 3719, 288, 5411, 16697, 12, 5743, 17...
long systemTime = SystemTime.currentTimeMillis(); SystemTime.setTimeSource(new MockSystemTimeSource(systemTime)); SessionID sessionID = new SessionID(FixVersions.BEGINSTRING_FIX42, "SENDER", "TARGET"); ByteArrayOutputStream data = new ByteArrayOutputStream(); SessionSettings sessionSettings = new SessionSettings(); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_EVENTS, true); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_INCOMING, true); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_OUTGOING, true); ScreenLogFactory factory = new ScreenLogFactory(sessionSettings); ScreenLog log = (ScreenLog)factory.create(sessionID); log.setOut(new PrintStream(data)); log.onIncoming("TEST"); assertLoggedMessage(data, systemTime, "incoming"); log.onOutgoing("TEST"); assertLoggedMessage(data, systemTime, "outgoing"); log.onEvent("TEST"); assertLoggedMessage(data, systemTime, "event");
doScreenLogTest(true);
public void testScreenLog() { long systemTime = SystemTime.currentTimeMillis(); SystemTime.setTimeSource(new MockSystemTimeSource(systemTime)); SessionID sessionID = new SessionID(FixVersions.BEGINSTRING_FIX42, "SENDER", "TARGET"); ByteArrayOutputStream data = new ByteArrayOutputStream(); SessionSettings sessionSettings = new SessionSettings(); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_EVENTS, true); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_INCOMING, true); sessionSettings.setBool(sessionID, ScreenLogFactory.SETTING_LOG_OUTGOING, true); ScreenLogFactory factory = new ScreenLogFactory(sessionSettings); ScreenLog log = (ScreenLog)factory.create(sessionID); log.setOut(new PrintStream(data)); log.onIncoming("TEST"); assertLoggedMessage(data, systemTime, "incoming"); log.onOutgoing("TEST"); assertLoggedMessage(data, systemTime, "outgoing"); log.onEvent("TEST"); assertLoggedMessage(data, systemTime, "event"); }
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/5c48bba93c58027c3d8a5adb1e3dc6442b774284/ScreenLogTest.java/buggy/test/quickfix/ScreenLogTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7956, 1343, 1435, 288, 3639, 1525, 2619, 950, 273, 2332, 950, 18, 2972, 28512, 5621, 3639, 2332, 950, 18, 542, 950, 1830, 12, 2704, 7867, 3163, 950, 1830, 12, 4299, 950, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7956, 1343, 1435, 288, 3639, 1525, 2619, 950, 273, 2332, 950, 18, 2972, 28512, 5621, 3639, 2332, 950, 18, 542, 950, 1830, 12, 2704, 7867, 3163, 950, 1830, 12, 4299, 950, ...
TBSCertList.RevokedCertificate rcert =
TBSCertList.RevokedCertificate rcert =
private void retirieveEntries() { entriesRetrieved = true; List rcerts = tbsCertList.getRevokedCertificates(); if (rcerts == null) { return; } entriesSize = rcerts.size(); entries = new ArrayList(entriesSize); X500Principal rcertIssuer = null; // means that issuer is a CRL issuer for (int i=0; i<entriesSize; i++) { TBSCertList.RevokedCertificate rcert = (TBSCertList.RevokedCertificate) rcerts.get(i); X500Principal iss = rcert.getIssuer(); if (iss != null) { rcertIssuer = iss; isIndirectCRL = true; nonIndirectEntriesSize = i; } entries.add(new X509CRLEntryImpl(rcert, rcertIssuer)); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/180facb87904dc1d11e15aa4a4af5f111fd0db87/X509CRLImpl.java/clean/modules/security/src/main/java/common/org/apache/harmony/security/provider/cert/X509CRLImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 325, 481, 21271, 5400, 1435, 288, 3639, 3222, 3848, 2155, 273, 638, 31, 3639, 987, 4519, 1051, 87, 273, 268, 2038, 5461, 682, 18, 588, 10070, 14276, 14133, 5621, 3639, 309, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 325, 481, 21271, 5400, 1435, 288, 3639, 3222, 3848, 2155, 273, 638, 31, 3639, 987, 4519, 1051, 87, 273, 268, 2038, 5461, 682, 18, 588, 10070, 14276, 14133, 5621, 3639, 309, 261...
public org.quickfix.field.DueToRelated getDueToRelated() throws FieldNotFound { org.quickfix.field.DueToRelated value = new org.quickfix.field.DueToRelated();
public quickfix.field.DueToRelated getDueToRelated() throws FieldNotFound { quickfix.field.DueToRelated value = new quickfix.field.DueToRelated();
public org.quickfix.field.DueToRelated getDueToRelated() throws FieldNotFound { org.quickfix.field.DueToRelated value = new org.quickfix.field.DueToRelated(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatus.java/clean/src/java/src/quickfix/fix44/SecurityStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 30023, 774, 8017, 2343, 344, 774, 8017, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 30023, 774, 8017, 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, 30023, 774, 8017, 2343, 344, 774, 8017, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 30023, 774, 8017, 460, 273, 394, ...
} else if (entry.isExpired()) { auMap.remove(getAuKey(au)); logger.debug3("Removing expired " + activityCodeToString(entry.activity) +
} else if (curAuActivity.isExpired()) { logger.debug3("Removing expired " + activityCodeToString(curAuActivity.activity) +
int getAuActivity(ArchivalUnit au) { ActivityEntry entry = (ActivityEntry)auMap.get(getAuKey(au)); if (entry==null) { return NO_ACTIVITY; } else if (entry.isExpired()) { auMap.remove(getAuKey(au)); logger.debug3("Removing expired " + activityCodeToString(entry.activity) + " on AU '" + au.getName() + "'"); return NO_ACTIVITY; } else { return entry.activity; } }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/ad5c67194126954517d4bb9b23485040a1026b5d/ActivityRegulator.java/buggy/src/org/lockss/daemon/ActivityRegulator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 509, 4506, 89, 6193, 12, 12269, 5162, 2802, 20309, 13, 288, 565, 9621, 1622, 1241, 273, 261, 6193, 1622, 13, 8377, 863, 18, 588, 12, 588, 37, 89, 653, 12, 8377, 10019, 565, 309, 261, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 509, 4506, 89, 6193, 12, 12269, 5162, 2802, 20309, 13, 288, 565, 9621, 1622, 1241, 273, 261, 6193, 1622, 13, 8377, 863, 18, 588, 12, 588, 37, 89, 653, 12, 8377, 10019, 565, 309, 261, ...
} else {
} else {
void handleNamePoll(PollState pollState, PollTally results, NodeState nodeState) { logger.debug2("handling name poll results " + results); if (results.didWinPoll()) { // if agree if (results.isMyPoll()) { // if poll is mine try { logger.debug2("won name poll, calling content poll on subnodes."); callContentPollsOnSubNodes(nodeState, results); pollState.status = PollState.WON; } catch (IOException e) { logger.error("IO error scheduling content polls.", e); pollState.status = PollState.ERR_IO; } } else { logger.debug2("won name poll, setting state to WON"); pollState.status = PollState.WON; } } else { // if disagree logger.debug2("lost name poll, collecting repair info."); String baseUrl = nodeState.getCachedUrlSet().getUrl(); pollState.status = PollState.REPAIRING; Iterator masterIt = results.getCorrectEntries(); Iterator localIt = results.getLocalEntries(); Set localSet = createUrlSetFromCusIterator(localIt); ArchivalUnit au = nodeState.getCachedUrlSet().getArchivalUnit(); // iterate through master list while (masterIt.hasNext()) { String url = (String)masterIt.next(); // compare against my list if (localSet.contains(url)) { // removing from the set to leave only files for deletion localSet.remove(url); } else { // if not found locally, fetch logger.debug2("marking missing node for repair: " + url); CachedUrlSet newCus = au.makeCachedUrlSet(baseUrl + url, null, null); markNodeForRepair(newCus, results); } } localIt = localSet.iterator(); while (localIt.hasNext()) { // for extra items - deletion String url = (String)localIt.next(); logger.debug2("deleting node: " + url); try { CachedUrlSet oldCus = au.makeCachedUrlSet(baseUrl + url, null, null); deleteNode(oldCus); //set crawl status to DELETED NodeState oldState = getNodeState(oldCus); oldState.getCrawlState().type = CrawlState.NODE_DELETED; } catch (Exception e) { logger.error("Couldn't delete node.", e); // the treewalk will fix this eventually } } pollState.status = PollState.REPAIRED; } }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/168079e4e755b21d2ce52d9877d093ce11ba645c/NodeManagerImpl.java/buggy/src/org/lockss/state/NodeManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1640, 461, 19085, 12, 19085, 1119, 7672, 1119, 16, 19160, 56, 1230, 1686, 16, 17311, 2029, 1119, 756, 1119, 13, 288, 565, 1194, 18, 4148, 22, 2932, 26822, 508, 7672, 1686, 315, 397, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1640, 461, 19085, 12, 19085, 1119, 7672, 1119, 16, 19160, 56, 1230, 1686, 16, 17311, 2029, 1119, 756, 1119, 13, 288, 565, 1194, 18, 4148, 22, 2932, 26822, 508, 7672, 1686, 315, 397, ...
PeerNode[] peerNodes = node.getDarknetConnections();
PeerNodeStatus[] peerNodeStatuses = node.getPeerNodeStatuses();
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } final boolean advancedEnabled = node.getToadletContainer().isAdvancedDarknetEnabled(); /* gather connection statistics */ PeerNode[] peerNodes = node.getDarknetConnections(); Arrays.sort(peerNodes, new Comparator() { public int compare(Object first, Object second) { PeerNode firstNode = (PeerNode) first; PeerNode secondNode = (PeerNode) second; int statusDifference = firstNode.getPeerNodeStatus() - secondNode.getPeerNodeStatus(); if (statusDifference != 0) { return statusDifference; } return firstNode.getName().compareTo(secondNode.getName()); } }); /* copy peer node statuses for consistent display. */ int[] peerNodeStatuses = new int[peerNodes.length]; for (int peerIndex = 0, peerCount = peerNodes.length; peerIndex < peerCount; peerIndex++) { peerNodeStatuses[peerIndex] = peerNodes[peerIndex].getPeerNodeStatus(); } int numberOfConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISABLED); int numberOfBursting = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_BURSTING); int numberOfListening = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTENING); int numberOfListenOnly = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTEN_ONLY); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfBursting + numberOfListening + numberOfListenOnly; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + "/" + numberOfRoutingBackedOff + "/" + numberOfTooNew + "/" + numberOfTooOld + "/" + numberOfNotConnected + ")"; } else { titleCountString = String.valueOf(numberOfSimpleConnected); } HTMLNode pageNode = ctx.getPageMaker().getPageNode(titleCountString + " Darknet Peers of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); // FIXME! We need some nice images long now = System.currentTimeMillis(); contentNode.addChild(node.alerts.createSummary()); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = node.getNetworkSizeEstimate(0); DecimalFormat fix4 = new DecimalFormat("0.0000"); double missRoutingDistance = node.missRoutingDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedoffPercent = node.backedoffPercent.currentValue(); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); // BEGIN OVERVIEW TABLE HTMLNode overviewTable = contentNode.addChild("table", "class", "column"); HTMLNode overviewTableRow = overviewTable.addChild("tr"); HTMLNode nextTableCell = overviewTableRow.addChild("td", "class", "first"); /* node status overview box */ if(advancedEnabled) { HTMLNode overviewInfobox = nextTableCell.addChild("div", "class", "infobox"); overviewInfobox.addChild("div", "class", "infobox-header", "Node status overview"); HTMLNode overviewInfoboxContent = overviewInfobox.addChild("div", "class", "infobox-content"); HTMLNode overviewList = overviewInfoboxContent.addChild("ul"); overviewList.addChild("li", "bwlimitDelayTime:\u00a0" + bwlimitDelayTime + "ms"); overviewList.addChild("li", "nodeAveragePingTime:\u00a0" + nodeAveragePingTime + "ms"); overviewList.addChild("li", "networkSizeEstimate:\u00a0" + networkSizeEstimate + "\u00a0nodes"); overviewList.addChild("li", "nodeUptime:\u00a0" + nodeUptimeString); overviewList.addChild("li", "missRoutingDistance:\u00a0" + fix4.format(missRoutingDistance)); overviewList.addChild("li", "backedoffPercent:\u00a0" + fix1.format(backedoffPercent)); nextTableCell = overviewTableRow.addChild("td"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); HTMLNode activityInfobox = nextTableCell.addChild("div", "class", "infobox"); activityInfobox.addChild("div", "class", "infobox-header", "Current activity"); HTMLNode activityInfoboxContent = activityInfobox.addChild("div", "class", "infobox-content"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { activityInfoboxContent.addChild("#", "Your node is not processing any requests right now."); } else { HTMLNode activityList = activityInfoboxContent.addChild("ul", "id", "activity"); if (numInserts > 0) { activityList.addChild("li", "Inserts:\u00a0" + numInserts); } if (numRequests > 0) { activityList.addChild("li", "Requests:\u00a0" + numRequests); } if (numTransferringRequests > 0) { activityList.addChild("li", "Transferring\u00a0Requests:\u00a0" + numTransferringRequests); } if (advancedEnabled) { if (numARKFetchers > 0) { activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers); } } } nextTableCell = advancedEnabled ? overviewTableRow.addChild("td") : overviewTableRow.addChild("td", "class", "last"); // Peer statistics box HTMLNode peerStatsInfobox = nextTableCell.addChild("div", "class", "infobox"); peerStatsInfobox.addChild("div", "class", "infobox-header", "Peer statistics"); HTMLNode peerStatsContent = peerStatsInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerStatsList = peerStatsContent.addChild("ul"); if (numberOfConnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_connected", "Connected:\u00a0" + numberOfConnected); } if (numberOfRoutingBackedOff > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_backedoff", (advancedEnabled ? "Backed off" : "Busy") + ":\u00a0" + numberOfRoutingBackedOff); } if (numberOfTooNew > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_too_new", "Too new:\u00a0" + numberOfTooNew); } if (numberOfTooOld > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_too_old", "Too old:\u00a0" + numberOfTooOld); } if (numberOfDisconnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_disconnected", "Disconnected:\u00a0" + numberOfDisconnected); } if (numberOfNeverConnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Never Connected:\u00a0" + numberOfNeverConnected); } if (numberOfDisabled > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Disabled:\u00a0" + numberOfDisabled); /* TODO */ } if (numberOfBursting > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Bursting:\u00a0" + numberOfBursting); /* TODO */ } if (numberOfListening > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listening:\u00a0" + numberOfListening); /* TODO */ } if (numberOfListenOnly > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listen Only:\u00a0" + numberOfListenOnly); /* TODO */ } // Peer routing backoff reason box if(advancedEnabled) { nextTableCell = overviewTableRow.addChild("td", "class", "last"); HTMLNode backoffReasonInfobox = nextTableCell.addChild("div", "class", "infobox"); backoffReasonInfobox.addChild("div", "class", "infobox-header", "Peer backoff reasons"); HTMLNode backoffReasonContent = backoffReasonInfobox.addChild("div", "class", "infobox-content"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { backoffReasonContent.addChild("#", "Good, your node is not backed off from any peers!"); } else { HTMLNode reasonList = backoffReasonContent.addChild("ul"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { reasonList.addChild("li", routingBackoffReasons[i] + '\u00a0' + reasonCount); } } } } // END OVERVIEW TABLE // BEGIN PEER TABLE HTMLNode peerTableInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); HTMLNode peerTableInfoboxHeader = peerTableInfobox.addChild("div", "class", "infobox-header"); peerTableInfoboxHeader.addChild("#", "My peers"); if (advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { peerTableInfoboxHeader.addChild("#", " "); peerTableInfoboxHeader.addChild("a", "href", "displaymessagetypes.html", "(more detailed)"); } } HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content"); if (peerNodes.length == 0) { peerTableInfoboxContent.addChild("#", "Freenet can not work as you have not added any peers so far. Please go to the "); peerTableInfoboxContent.addChild("a", "href", "/", "node homepage"); peerTableInfoboxContent.addChild("#", " and read the top infobox to see how it is done."); } else { HTMLNode peerForm = peerTableInfoboxContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", node.formPassword }); HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections"); HTMLNode peerTableHeaderRow = peerTable.addChild("tr"); peerTableHeaderRow.addChild("th"); peerTableHeaderRow.addChild("th", "Status"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Click on the nodename link to send N2NTM", "border-bottom: 1px dotted; cursor: help;" }, "Name"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Address:Port", "border-bottom: 1px dotted; cursor: help;" }, "Address"); } peerTableHeaderRow.addChild("th", "Version"); if (advancedEnabled) { peerTableHeaderRow.addChild("th", "Location"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Temporarily disconnected. Other node busy? Wait time(s) remaining/total", "border-bottom: 1px dotted; cursor: help;" }, "Backoff"); } peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "How long since the node connected or was last seen", "border-bottom: 1px dotted; cursor: help;" }, "Connected\u00a0/\u00a0Idle"); for (int peerIndex = 0, peerCount = peerNodes.length; peerIndex < peerCount; peerIndex++) { PeerNode peerNode = peerNodes[peerIndex]; HTMLNode peerRow = peerTable.addChild("tr"); // check box column peerRow.addChild("td", "class", "peer-marker").addChild("input", new String[] { "type", "name" }, new String[] { "checkbox", "node_" + peerNode.hashCode() }); // status column String statusString = peerNode.getPeerNodeStatusString(); if (!advancedEnabled && (peerNode.getPeerNodeStatus() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } peerRow.addChild("td", "class", "peer-status").addChild("span", "class", peerNode.getPeerNodeStatusCSSClassName(), statusString + (peerNode.isFetchingARK() ? "*" : "")); // name column if (peerNode.isConnected() && (Integer.parseInt(peerNode.getSimpleVersion()) > 476)) { peerRow.addChild("td", "class", "peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" + peerNode.hashCode(), peerNode.getName()); } else { peerRow.addChild("td", "class", "peer-name").addChild("#", peerNode.getName()); } // address column if (advancedEnabled) { String pingTime = ""; if (peerNode.isConnected()) { pingTime = " (" + String.valueOf((int) peerNode.averagePingTime()) + "ms)"; } peerRow.addChild("td", "class", "peer-address").addChild("#", ((peerNode.getDetectedPeer() != null) ? (peerNode.getDetectedPeer().toString()) : ("(unknown address)")) + pingTime); } // version column if (peerNode.publicReverseInvalidVersion()) { peerRow.addChild("td", "class", "peer-version").addChild("span", "class", "peer_too_new", advancedEnabled ? peerNode.getVersion() : peerNode.getSimpleVersion()); } else { peerRow.addChild("td", "class", "peer-version").addChild("#", advancedEnabled ? peerNode.getVersion() : peerNode.getSimpleVersion()); } // location column if (advancedEnabled) { peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNode.getLocation().getValue())); } // backoff column if (advancedEnabled) { HTMLNode backoffCell = peerRow.addChild("td", "class", "peer-backoff"); backoffCell.addChild("#", fix1.format(peerNode.backedOffPercent.currentValue())); int backoff = (int) (Math.max(peerNode.getRoutingBackedOffUntil() - now, 0)); // Don't list the backoff as zero before it's actually zero if ((backoff > 0) && (backoff < 1000)) { backoff = 1000; } backoffCell.addChild("#", " " + String.valueOf(backoff / 1000) + "/" + String.valueOf(peerNode.getRoutingBackoffLength() / 1000)); backoffCell.addChild("#", (peerNode.getLastBackoffReason() == null) ? "" : ("/" + (peerNode.getLastBackoffReason()))); } // idle column long idle = peerNode.timeLastRoutable(); if(peerNode.isRoutable()) { idle = peerNode.timeLastConnectionCompleted(); } else if(peerNodeStatuses[peerIndex] == Node.PEER_NODE_STATUS_NEVER_CONNECTED) { idle = peerNode.getPeerAddedTime(); } peerRow.addChild("td", "class", "peer-idle", idleToString(now, idle)); if (path.endsWith("displaymessagetypes.html")) { HTMLNode messageCountRow = peerTable.addChild("tr", "class", "message-status"); messageCountRow.addChild("td", "colspan", "2"); HTMLNode messageCountCell = messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 6 : 3)); HTMLNode messageCountTable = messageCountCell.addChild("table", "class", "message-count"); HTMLNode countHeaderRow = messageCountTable.addChild("tr"); countHeaderRow.addChild("th", "Message"); countHeaderRow.addChild("th", "Incoming"); countHeaderRow.addChild("th", "Outgoing"); List messageNames = new ArrayList(); Map messageCounts = new HashMap(); for (Iterator incomingMessages = peerNode.getLocalNodeReceivedMessagesFromStatistic().keySet().iterator(); incomingMessages.hasNext(); ) { String messageName = (String) incomingMessages.next(); messageNames.add(messageName); Long messageCount = (Long) peerNode.getLocalNodeReceivedMessagesFromStatistic().get(messageName); messageCounts.put(messageName, new Long[] { messageCount, new Long(0) }); } for (Iterator outgoingMessages = peerNode.getLocalNodeSentMessagesToStatistic().keySet().iterator(); outgoingMessages.hasNext(); ) { String messageName = (String) outgoingMessages.next(); if (!messageNames.contains(messageName)) { messageNames.add(messageName); } Long messageCount = (Long) peerNode.getLocalNodeSentMessagesToStatistic().get(messageName); Long[] existingCounts = (Long[]) messageCounts.get(messageName); if (existingCounts == null) { messageCounts.put(messageName, new Long[] { new Long(0), messageCount }); } else { existingCounts[1] = messageCount; } } Collections.sort(messageNames, new Comparator() { public int compare(Object first, Object second) { return ((String) first).compareToIgnoreCase((String) second); } }); for (Iterator messageNamesIterator = messageNames.iterator(); messageNamesIterator.hasNext(); ) { String messageName = (String) messageNamesIterator.next(); Long[] messageCount = (Long[]) messageCounts.get(messageName); HTMLNode messageRow = messageCountTable.addChild("tr"); messageRow.addChild("td", messageName); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[0])); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[1])); } } } if(!advancedEnabled) { peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "remove", "Remove selected peers" }); } else { HTMLNode actionSelect = peerForm.addChild("select", "name", "action"); actionSelect.addChild("option", "value", "", "-- Select action --"); actionSelect.addChild("option", "value", "enable", "Enable selected peers"); actionSelect.addChild("option", "value", "disable", "Disable selected peers"); actionSelect.addChild("option", "value", "set_burst_only", "On selected peers, set BurstOnly"); actionSelect.addChild("option", "value", "clear_burst_only", "On selected peers, clear BurstOnly"); actionSelect.addChild("option", "value", "set_listen_only", "On selected peers, set ListenOnly"); actionSelect.addChild("option", "value", "clear_listen_only", "On selected peers, clear ListenOnly"); actionSelect.addChild("option", "value", "", "-- -- --"); actionSelect.addChild("option", "value", "remove", "Remove selected peers"); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "submit", "Go" }); } } // END PEER TABLE // BEGIN PEER ADDITION BOX HTMLNode peerAdditionInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); peerAdditionInfobox.addChild("div", "class", "infobox-header", "Add another peer"); HTMLNode peerAdditionContent = peerAdditionInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerAdditionForm = peerAdditionContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", node.formPassword }); peerAdditionForm.addChild("#", "Paste the reference here:"); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("textarea", new String[] { "id", "name", "rows", "cols" }, new String[] { "reftext", "ref", "8", "74" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter the URL of the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "refurl", "text", "url" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Choose the file containing the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "reffile", "file", "reffile" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "add", "Add" }); // our reference HTMLNode referenceInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); referenceInfobox.addChild("div", "class", "infobox-header").addChild("a", "href", "myref.txt", "My reference"); referenceInfobox.addChild("div", "class", "infobox-content").addChild("pre", "id", "reference", node.exportPublicFieldSet().toString()); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/8894de616e17a43e740747a9eb17956bab9b3b3d/DarknetConnectionsToadlet.java/clean/src/freenet/clients/http/DarknetConnectionsToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 589, 273, 2003, 18, ...
log("not copying resources - weird outjar: " + path);
this.logger.info("not copying resources - weird outjar: " + path);
String[] makeCommand() { ArrayList result = new ArrayList(); if (0 < ignored.size()) { for (Iterator iter = ignored.iterator(); iter.hasNext();) { log("ignored: " + iter.next(), Project.MSG_INFO); } } // when copying resources, use temp jar for class output // then copy temp jar contents and resources to output jar if ((null != outjar) && !outjarFixedup) { if (copyInjars || copyInpath || (null != sourceRootCopyFilter) || (null != inpathDirCopyFilter)) { String path = outjar.getAbsolutePath(); int len = FileUtil.zipSuffixLength(path); if (len < 1) { log("not copying resources - weird outjar: " + path); } else { path = path.substring(0, path.length()-len) + ".tmp.jar"; tmpOutjar = new File(path); } } if (null == tmpOutjar) { cmd.addFlagged("-outjar", outjar.getAbsolutePath()); } else { cmd.addFlagged("-outjar", tmpOutjar.getAbsolutePath()); } outjarFixedup = true; } result.addAll(cmd.extractArguments()); addListArgs(result); String[] command = (String[]) result.toArray(new String[0]); if (null != commandEditor) { command = commandEditor.editCommand(command); } else if (null != COMMAND_EDITOR) { command = COMMAND_EDITOR.editCommand(command); } return command; }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/e0d6f5412b278639a1cc889eda1d8fba041d50ba/AjcTask.java/buggy/taskdefs/src/org/aspectj/tools/ant/taskdefs/AjcTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 8526, 1221, 2189, 1435, 288, 3639, 2407, 563, 273, 394, 2407, 5621, 3639, 309, 261, 20, 411, 5455, 18, 1467, 10756, 288, 5411, 364, 261, 3198, 1400, 273, 5455, 18, 9838, 5621, 1400, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 8526, 1221, 2189, 1435, 288, 3639, 2407, 563, 273, 394, 2407, 5621, 3639, 309, 261, 20, 411, 5455, 18, 1467, 10756, 288, 5411, 364, 261, 3198, 1400, 273, 5455, 18, 9838, 5621, 1400, ...
return position(new ClobImpl(_connection, searchStr), start);
if (searchStr == null) { throw new SQLException( Messages.get("error.clob.searchnull"), "HY009"); } try { byte[] pattern = searchStr.getBytes("UTF-16LE"); int pos = blobBuffer.position(pattern, (start - 1) * 2 + 1); return (pos < 0) ? pos : (pos - 1) / 2 + 1; } catch (UnsupportedEncodingException e) { throw new IllegalStateException( "UTF-16LE encoding is not supported."); }
public long position(String searchStr, long start) throws SQLException { return position(new ClobImpl(_connection, searchStr), start); }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/69711793b75f81a2eda69e99d5f3167edb53541a/ClobImpl.java/clean/src/main/net/sourceforge/jtds/jdbc/ClobImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 1754, 12, 780, 1623, 1585, 16, 1525, 787, 13, 1216, 6483, 288, 3639, 309, 261, 3072, 1585, 422, 446, 13, 288, 604, 394, 6483, 12, 4838, 18, 588, 2932, 1636, 18, 71, 1295, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1525, 1754, 12, 780, 1623, 1585, 16, 1525, 787, 13, 1216, 6483, 288, 3639, 309, 261, 3072, 1585, 422, 446, 13, 288, 604, 394, 6483, 12, 4838, 18, 588, 2932, 1636, 18, 71, 1295, ...
String targetID = info.getDefaultTarget().getParent().getId(); IManagedBuilderMakefileGenerator generator = ManagedBuildManager.getMakefileGenerator(targetID);
IManagedBuilderMakefileGenerator generator = ManagedBuildManager.getBuildfileGenerator(info.getDefaultConfiguration());
protected void clean(IProgressMonitor monitor) throws CoreException { referencedProjects = getProject().getReferencedProjects(); outputTrace(getProject().getName(), "Clean build requested"); //$NON-NLS-1$ IManagedBuildInfo info = ManagedBuildManager.getBuildInfo(getProject()); if (info == null) { outputError(getProject().getName(), "Build information was not found"); //$NON-NLS-1$ return; } IPath buildDirPath = getProject().getLocation().append(info.getConfigurationName()); IWorkspace workspace = CCorePlugin.getWorkspace(); IContainer buildDir = workspace.getRoot().getContainerForLocation(buildDirPath); if (buildDir == null || !buildDir.isAccessible()){ outputError(buildDir.getName(), "Could not delete the build directory"); //$NON-NLS-1$ return; } String status; try { // try the brute force approach first status = ManagedMakeMessages.getFormattedString("ManagedMakeBuilder.message.clean.deleting.output", buildDir.getName()); //$NON-NLS-1$ monitor.subTask(status); workspace.delete(new IResource[]{buildDir}, true, monitor); } catch (CoreException e) { // Create a makefile generator for the build status = ManagedMakeMessages.getFormattedString("ManagedMakeBuilder.message.clean.build.clean", buildDir.getName()); //$NON-NLS-1$ monitor.subTask(status); String targetID = info.getDefaultTarget().getParent().getId(); IManagedBuilderMakefileGenerator generator = ManagedBuildManager.getMakefileGenerator(targetID); generator.initialize(getProject(), info, monitor); cleanBuild(info, generator, monitor); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/18b49394c46cbbecf041078a70e83e4975d004a7/GeneratedMakefileBuilder.java/buggy/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/GeneratedMakefileBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2721, 12, 45, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 20883, 15298, 273, 11080, 7675, 588, 22344, 15298, 5621, 202, 202, 2844, 3448, 12, 588, 4109, 7675, 17994, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 2721, 12, 45, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 20883, 15298, 273, 11080, 7675, 588, 22344, 15298, 5621, 202, 202, 2844, 3448, 12, 588, 4109, 7675, 17994, ...
return myLabelConstrains;
return myLabelConstraints;
public String getLabelLocation() { return myLabelConstrains; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/572397b06553c194c77473436eedd931af343014/LabeledComponent.java/clean/ui/openapi/com/intellij/openapi/ui/LabeledComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 11237, 2735, 1435, 288, 565, 327, 3399, 2224, 4878, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 11237, 2735, 1435, 288, 565, 327, 3399, 2224, 4878, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void setFeature(String name,
void setFeature(String name,
public void setFeature(String name, boolean state) throws XmlPullParserException;
3949 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3949/59c14117040d926cddf8716a98e1c6be890e11ee/XmlPullParser.java/clean/src/java/api/org/xmlpull/v1/XmlPullParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 28669, 12, 780, 508, 16, 21821, 1250, 919, 13, 1216, 5714, 9629, 25746, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 28669, 12, 780, 508, 16, 21821, 1250, 919, 13, 1216, 5714, 9629, 25746, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
public PostMethod postFormData(String formUrl, NameValuePair[] formData) throws LoginException, IOException {
private PostMethod postFormData(String formUrl, NameValuePair[] formData) throws LoginException, IOException {
public PostMethod postFormData(String formUrl, NameValuePair[] formData) throws LoginException, IOException { WebClientUtil.setupHttpClient(httpClient, proxy, repositoryUrl.toString(), htAuthUser, htAuthPass); if (!authenticated && hasAuthenticationCredentials()) { authenticate(); } PostMethod postMethod = new PostMethod(WebClientUtil.getRequestPath(repositoryUrl.toString()+formUrl)); postMethod.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=" + characterEncoding); httpClient.getHttpConnectionManager().getParams().setSoTimeout(CONNECT_TIMEOUT); httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(CONNECT_TIMEOUT); postMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, retryHandler); postMethod.setRequestBody(formData); postMethod.setDoAuthentication(true); // httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(CONNECT_TIMEOUT); int status = httpClient.executeMethod(postMethod); if (status == HttpStatus.SC_OK) { return postMethod; } else { MylarStatusHandler.log("Post failed: " + HttpStatus.getStatusText(status), this); throw new IOException("Communication error occurred during upload. \n\n" + HttpStatus.getStatusText(status)); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/fbe43a9128c6ba2a3b395c0e7149cae5ed8327c8/BugzillaClient.java/clean/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5616, 1305, 1603, 30079, 12, 780, 646, 1489, 16, 1770, 20337, 8526, 14224, 13, 1216, 11744, 503, 16, 1860, 288, 202, 202, 4079, 1227, 1304, 18, 8401, 11895, 12, 2505, 1227, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5616, 1305, 1603, 30079, 12, 780, 646, 1489, 16, 1770, 20337, 8526, 14224, 13, 1216, 11744, 503, 16, 1860, 288, 202, 202, 4079, 1227, 1304, 18, 8401, 11895, 12, 2505, 1227, 16, ...
BugzillaTask newTask = new BugzillaTask(AbstractRepositoryTask.getHandle(repository.getUrl().toExternalForm(),
BugzillaTask newTask = new BugzillaTask(AbstractRepositoryTask.getHandle(repository.getUrl(),
public boolean performFinish() { super.performFinish(); String bugIdString = this.getId(); int bugId = -1; boolean validId = false; try { if (bugIdString != null) { bugId = Integer.parseInt(bugIdString); validId = true; } } catch (NumberFormatException nfe) { // ignore } if (!validId) { MessageDialog.openError(null, IBugzillaConstants.TITLE_MESSAGE_DIALOG, "Could not create bug id, no valid id"); return false; } BugzillaTask newTask = new BugzillaTask(AbstractRepositoryTask.getHandle(repository.getUrl().toExternalForm(), bugId), "<bugzilla info>", true); Object selectedObject = null; if (TaskListView.getDefault() != null) selectedObject = ((IStructuredSelection) TaskListView.getDefault().getViewer().getSelection()) .getFirstElement();// AbstractRepositoryClient repositoryClient = MylarTaskListPlugin.getRepositoryManager().getRepositoryClient(BugzillaPlugin.REPOSITORY_KIND);// if (repositoryClient != null) { MylarTaskListPlugin.getTaskListManager().getTaskList().addTaskToArchive(newTask);// repositoryClient.addTaskToArchive(newTask);// } if (selectedObject instanceof TaskCategory) { MylarTaskListPlugin.getTaskListManager().moveToCategory(((TaskCategory) selectedObject), newTask); } else { MylarTaskListPlugin.getTaskListManager().moveToRoot(newTask); } AbstractRepositoryConnector client = MylarTaskListPlugin.getRepositoryManager().getRepositoryConnector(BugzillaPlugin.REPOSITORY_KIND);// client.addTaskToArchive(newTask); TaskListUiUtil.openEditor(newTask); if (!newTask.isDownloaded()) { client.synchronize(newTask, true, null); } return true; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/b86455249adfd805375ab5ef4f49dc4b9506e0d2/NewBugzillaReportWizard.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/NewBugzillaReportWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 1435, 288, 202, 202, 9565, 18, 16092, 11641, 5621, 202, 202, 780, 7934, 548, 780, 273, 333, 18, 26321, 5621, 202, 202, 474, 7934, 548, 273, 300, 21, 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, 482, 1250, 3073, 11641, 1435, 288, 202, 202, 9565, 18, 16092, 11641, 5621, 202, 202, 780, 7934, 548, 780, 273, 333, 18, 26321, 5621, 202, 202, 474, 7934, 548, 273, 300, 21, 31, 202...
System.out.println ("Done.");
logger.info ("Done.");
public Vector query (String aSearchString) { Vector retVecVec = new Vector(); //return vector of vectors. // try { //open a connection to the LDAP server System.out.println ("Opening server " + mReadableName); ICardSource Four11AddressBook = getCardSource(); //create the query ITerm query = new TermEqual (new AC_Attribute ("sn", aSearchString)); String[] attributes = {"givenName", "sn", "cn", "o", "mail", "telephoneNumber", "city"}; //query the LDAP server. System.out.println ("Send query" + query); ICardSet cardSet = Four11AddressBook.getCardSet (query, attributes); //Sort the list. String[] sortOrder = {"sn", "cn"}; cardSet.sort (sortOrder); //hack. I've put the for loop in a try block to catch the exception //thrown when cardEnum.hasMoreElements() incorrectly returns true. try { //enumerate thru the cards. for (Enumeration cardEnum = cardSet.getEnumeration(); cardEnum.hasMoreElements(); ) { System.out.println ("got card"); //get the addres card ICard card = (ICard) cardEnum.nextElement(); //get the attributes for this card IAttributeSet attrSet = card.getAttributeSet (); //create a simple vector to hold the attributes values for this card. Vector thisRow = new Vector(6); String commonName = ""; String organization = ""; String mail = ""; String phone = ""; String city = ""; String nickName = ""; // enumerate thru the card attributes. for (Enumeration attEnum = attrSet.getEnumeration(); attEnum.hasMoreElements(); ) { IAttribute attr = (IAttribute) attEnum.nextElement(); String attrName = attr.getName(); if (attrName.equals ("cn")) { commonName = attr.getValue(); } else if (attrName.equals ("o")) { organization = attr.getValue(); } else if (attrName.equals ("mail")) { mail = attr.getValue(); } else if (attrName.equals ("telephoneNumber")) { phone = attr.getValue(); } else if (attrName.equals ("city")) { city = attr.getValue(); } } //create this row for the table. thisRow.addElement (commonName); thisRow.addElement (mail); thisRow.addElement (organization); thisRow.addElement (phone); thisRow.addElement (city); thisRow.addElement (nickName); //add this row to the table retVecVec.addElement (thisRow); } } catch (Exception e) { } // } // catch( LDAPException e ) { // System.out.println( "Error: " + e.toString() ); // } System.out.println ("Done."); return retVecVec; }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/23223271c91f0c5c3960447f887d1bdf068d137a/AddressBook.java/clean/grendel/sources/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5589, 282, 843, 261, 780, 279, 2979, 780, 13, 288, 4202, 5589, 325, 12991, 12991, 273, 394, 5589, 5621, 282, 368, 2463, 3806, 434, 10046, 18, 4202, 368, 2868, 775, 288, 4202, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 843, 261, 780, 279, 2979, 780, 13, 288, 4202, 5589, 325, 12991, 12991, 273, 394, 5589, 5621, 282, 368, 2463, 3806, 434, 10046, 18, 4202, 368, 2868, 775, 288, 4202, 368, ...
public static synchronized HashMap doQuery(Context c, String querystring) throws IOException { querystring = checkEmptyQuery( querystring ); querystring = workAroundLuceneBug( querystring ); querystring = stripHandles( querystring ); ArrayList resultlist= new ArrayList(); ArrayList itemlist = new ArrayList(); ArrayList commlist = new ArrayList(); ArrayList colllist = new ArrayList(); HashMap metahash = new HashMap(); // initial results are empty metahash.put(ALL, resultlist); metahash.put(ITEM, itemlist ); metahash.put(COLLECTION,colllist ); metahash.put(COMMUNITY, commlist ); try { IndexSearcher searcher = new IndexSearcher( ConfigurationManager.getProperty("search.dir")); QueryParser qp = new QueryParser("default", new DSAnalyzer()); Query myquery = qp.parse(querystring); Hits hits = searcher.search(myquery); for (int i = 0; i < hits.length(); i++) { Document d = hits.doc(i); String handletext = d.get("handle"); String handletype = d.get("type"); resultlist.add(handletext); if (handletype.equals(ITEM)) { itemlist.add(handletext); } else if (handletype.equals(COLLECTION)) { colllist.add(handletext); } else if (handletype.equals(COMMUNITY)) { commlist.add(handletext); break; } } // close the IndexSearcher - and all its filehandles searcher.close(); // store all of the different types of hits in the hash metahash.put(ALL, resultlist); metahash.put(ITEM, itemlist ); metahash.put(COLLECTION,colllist ); metahash.put(COMMUNITY, commlist ); } catch (NumberFormatException e) { // a bad parse means that there are no results // doing nothing with the exception gets you // throw new SQLException( "Error parsing search results: " + e ); // ?? quit? } catch (ParseException e) { // a parse exception - log and return null results log.warn(LogManager.getHeader(c, "Lucene Parse Exception", "" + e)); } return metahash; }
52457 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52457/8f858d84dc2fcea79f7852722d5a8a3ed610ba7d/DSQuery.java/clean/dspace/src/org/dspace/search/DSQuery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 5642, 2102, 15666, 8658, 2896, 1138, 12, 1042, 71, 16, 780, 2271, 1080, 13, 15069, 14106, 95, 2271, 1080, 33, 1893, 1921, 1138, 12, 2271, 1080, 1769, 2271, 1080, 33, 1252, 30022, 19763, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5642, 2102, 15666, 8658, 2896, 1138, 12, 1042, 71, 16, 780, 2271, 1080, 13, 15069, 14106, 95, 2271, 1080, 33, 1893, 1921, 1138, 12, 2271, 1080, 1769, 2271, 1080, 33, 1252, 30022, 19763, ...
protected Sequence doQuery( User user, DBBroker broker, String xpath, DocumentSet docs, NodeSet contextSet, String baseURI) throws Exception {
protected Sequence doQuery(User user, DBBroker broker, String xpath, DocumentSet docs, NodeSet contextSet, Hashtable parameters) throws Exception {
protected Sequence doQuery( User user, DBBroker broker, String xpath, DocumentSet docs, NodeSet contextSet, String baseURI) throws Exception { if (docs == null) docs = broker.getAllDocuments(new DocumentSet()); XQueryContext context = new XQueryContext(broker); context.setBaseURI(baseURI); context.setStaticallyKnownDocuments(docs); LOG.debug("query = " + xpath); XPathLexer2 lexer = new XPathLexer2(new StringReader(xpath)); XPathParser2 parser = new XPathParser2(lexer, false); XPathTreeParser2 treeParser = new XPathTreeParser2(context); parser.xpath(); if (parser.foundErrors()) { throw new EXistException(parser.getErrorMessage()); } AST ast = parser.getAST(); LOG.debug("generated AST: " + ast.toStringTree()); PathExpr expr = new PathExpr(context); treeParser.xpath(ast, expr); if (treeParser.foundErrors()) { throw new EXistException(treeParser.getErrorMessage()); } LOG.info("compiled: " + expr.pprint()); long start = System.currentTimeMillis(); Sequence result = expr.eval(contextSet, null); LOG.info("query took " + (System.currentTimeMillis() - start) + "ms."); return result; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/96a020d1e295b0656cc0cf89c67a713d91bb61ad/RpcConnection.java/clean/src/org/exist/xmlrpc/RpcConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8370, 741, 1138, 12, 202, 202, 1299, 729, 16, 202, 202, 2290, 11194, 8625, 16, 202, 202, 780, 6748, 16, 202, 202, 2519, 694, 3270, 16, 202, 202, 907, 694, 819, 694, 16, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 8370, 741, 1138, 12, 202, 202, 1299, 729, 16, 202, 202, 2290, 11194, 8625, 16, 202, 202, 780, 6748, 16, 202, 202, 2519, 694, 3270, 16, 202, 202, 907, 694, 819, 694, 16, 202...
public static boolean isFloated(CascadedStyle style) {
public static boolean isFloated(CalculatedStyle style) {
public static boolean isFloated(CascadedStyle style) { if (style == null) { return false; } IdentValue floatVal = style.getIdent(CSSName.FLOAT); return floatVal != null && (floatVal == IdentValue.LEFT || floatVal == IdentValue.RIGHT); }
53937 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53937/c96efe21dd32b0a4f0420c8495d49144792cbc9d/ContentUtil.java/buggy/src/java/org/xhtmlrenderer/layout/content/ContentUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 17646, 383, 690, 12, 4844, 690, 2885, 2154, 13, 288, 3639, 309, 261, 4060, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 13128, 620, 1431, 3053, 273, 2154, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 17646, 383, 690, 12, 4844, 690, 2885, 2154, 13, 288, 3639, 309, 261, 4060, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 13128, 620, 1431, 3053, 273, 2154, 18...
if (nodeQualifier.equals(event.getChild().name())) getStorePreferences().removePreferenceChangeListener(preferencesListener);
public void removed(NodeChangeEvent event) { if (nodeQualifier.equals(event.getChild().name())) getStorePreferences().removePreferenceChangeListener(preferencesListener); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ee8d14907e1e77c4d065379865d4c3cfe3696bf1/ScopedPreferenceStore.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/preferences/ScopedPreferenceStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3723, 12, 907, 20930, 871, 13, 288, 9506, 202, 430, 261, 2159, 16185, 18, 14963, 12, 2575, 18, 588, 1763, 7675, 529, 1435, 3719, 6862, 202, 588, 2257, 12377, 7675, 4479, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1875, 202, 482, 918, 3723, 12, 907, 20930, 871, 13, 288, 9506, 202, 430, 261, 2159, 16185, 18, 14963, 12, 2575, 18, 588, 1763, 7675, 529, 1435, 3719, 6862, 202, 588, 2257, 12377, 7675, 4479, ...
final CompilationUnit unit = processorEnv.getAstCompilationUnit(file); assert unit != null : "cannot locate compilation unit for " + file.getName(); final IProblem[] problems = unit.getProblems();
final CompilationUnit domUnit = processorEnv.getAstCompilationUnit(file); assert domUnit != null : "cannot locate compilation unit for " + file.getName(); final IProblem[] problems = domUnit.getProblems();
private static void addFileWithMissingTypeError( final IFile file, final List<IFile> filesWithMissingType, final List<char[]> sourceForFilesWithMissingType, final ProcessorEnvImpl processorEnv) { if( processorEnv.getPhase() != Phase.BUILD ) return; final CompilationUnit unit = processorEnv.getAstCompilationUnit(file); assert unit != null : "cannot locate compilation unit for " + file.getName(); //$NON-NLS-1$ final IProblem[] problems = unit.getProblems(); if(problems == null) return; for( IProblem problem : problems ){ if( problem.getID() == IProblem.UndefinedType ){ filesWithMissingType.add(file); final char[] src = processorEnv.getSourceForFile(file); assert src != null : "cannot locate source for file " + file.getName(); //$NON-NLS-1$ sourceForFilesWithMissingType.add(src); } } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/dbb59802bd05ea277b4706afb85d6b75d5bdff2a/APTDispatchRunnable.java/buggy/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/APTDispatchRunnable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 18671, 1190, 4841, 19030, 12, 1082, 202, 6385, 467, 812, 585, 16, 1875, 202, 6385, 987, 32, 45, 812, 34, 1390, 1190, 4841, 559, 16, 1082, 202, 6385, 987, 32, 3001, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 18671, 1190, 4841, 19030, 12, 1082, 202, 6385, 467, 812, 585, 16, 1875, 202, 6385, 987, 32, 45, 812, 34, 1390, 1190, 4841, 559, 16, 1082, 202, 6385, 987, 32, 3001, ...
public String normalizeByOid( String oid, String value ) throws NamingException { AttributeType type = registry.lookup( oid ); return ( String ) type.getEquality().getNormalizer().normalize( value ); }
10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/32497190bb2c84cb6794fae32fb09de7e56fd94e/NormalizationService.java/buggy/core/src/main/java/org/apache/ldap/server/normalization/NormalizationService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 780, 12237, 858, 19105, 12, 780, 839, 16, 780, 1132, 13, 15069, 24102, 503, 95, 1499, 18488, 5872, 33, 9893, 18, 8664, 12, 839, 1769, 2463, 12, 780, 13, 723, 18, 588, 20273, 7675, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 780, 12237, 858, 19105, 12, 780, 839, 16, 780, 1132, 13, 15069, 24102, 503, 95, 1499, 18488, 5872, 33, 9893, 18, 8664, 12, 839, 1769, 2463, 12, 780, 13, 723, 18, 588, 20273, 7675, 588,...
return "__s" + num;
return "__s" + prefix + num;
public static String varName(int num) { return "__s" + num; }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/7d2d49c128479ce10bed9c5265d0f02658fd6d41/TempVarGen.java/clean/streams/src/streamit/frontend/nodes/TempVarGen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 13722, 12, 474, 818, 13, 565, 288, 3639, 327, 10425, 87, 6, 397, 1633, 397, 818, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 13722, 12, 474, 818, 13, 565, 288, 3639, 327, 10425, 87, 6, 397, 1633, 397, 818, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public String getCommandNonAdhoc(PrefabGraphType type, GraphResourceType resourceType, HttpServletRequest request, HttpServletResponse response) throws ServletException { String report = request.getParameter("report"); String[] rrds = request.getParameterValues("rrd"); String propertiesFile = request.getParameter("props"); String start = request.getParameter("start"); String end = request.getParameter("end");// if (report == null || rrds == null || start == null || end == null// || resourceTypeName == null) {// return null;// } String[] requiredParameters = { "report", "rrd", "props", "start", "end", }; if (report == null) { throw new MissingParameterException("report", requiredParameters); } if (rrds == null) { throw new MissingParameterException("rrd", requiredParameters); } if (start == null) { throw new MissingParameterException("start", requiredParameters); } if (end == null) { throw new MissingParameterException("end", requiredParameters); } for (int i = 0; i < rrds.length; i++) { if (!RrdFileConstants.isValidRRDName(rrds[i])) { log("Illegal RRD filename: " + rrds[i]); throw new IllegalArgumentException("Illegal RRD filename: " + rrds[i]); } } return createPrefabCommand(request, resourceType, type.getReportMap(), type.getCommandPrefix(), type.getRrdDirectory(), report, rrds, propertiesFile, start, end); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/729bdfaf2b755461a4892c88e10f3288db9650a6/RRDGraphServlet.java/buggy/opennms-webapp/src/main/java/org/opennms/web/graph/RRDGraphServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 12856, 3989, 1871, 76, 504, 12, 23218, 378, 4137, 559, 618, 16, 225, 5601, 15631, 14110, 16, 225, 9984, 590, 16, 225, 12446, 766, 13, 565, 1216, 16517, 288, 282, 514, 2605, 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, 514, 12856, 3989, 1871, 76, 504, 12, 23218, 378, 4137, 559, 618, 16, 225, 5601, 15631, 14110, 16, 225, 9984, 590, 16, 225, 12446, 766, 13, 565, 1216, 16517, 288, 282, 514, 2605, 2...
node = node.getNextSibling();
String type = null; if (isType(TYPE, node)) { type = typeName(node); node = node.getNextSibling(); }
protected Parameter parameter(AST paramNode) { List annotations = new ArrayList(); AST node = paramNode.getFirstChild(); int modifiers = 0; if (isType(MODIFIERS, node)) { modifiers = modifiers(node, annotations, modifiers); node = node.getNextSibling(); } assertNodeType(TYPE, node); String type = typeName(node); node = node.getNextSibling(); String name = identifier(node); Expression defaultValue = null; node = node.getNextSibling(); if (node != null) { defaultValue = expression(node); } Parameter parameter = new Parameter(type, name, defaultValue); // TODO //configureAST(parameter,paramNode); //parameter.addAnnotations(annotations); return parameter; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/27ca66a55dec7811f36d95ccfb985a5840b4f422/AntlrParserPlugin.java/buggy/src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 5498, 1569, 12, 9053, 579, 907, 13, 288, 3639, 987, 5617, 273, 394, 2407, 5621, 3639, 9183, 756, 273, 579, 907, 18, 588, 3759, 1763, 5621, 3639, 509, 10429, 273, 374, 31, 3639, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5498, 1569, 12, 9053, 579, 907, 13, 288, 3639, 987, 5617, 273, 394, 2407, 5621, 3639, 9183, 756, 273, 579, 907, 18, 588, 3759, 1763, 5621, 3639, 509, 10429, 273, 374, 31, 3639, 30...
CommandStack cs = getViewer().getEditDomain().getCommandStack();
protected void handleDrop() { updateTargetRequest(); updateTargetEditPart(); if (getTargetEditPart() != null) { Command command = getCommand(); if (command != null && command.canExecute()) { getViewer().getEditDomain().getCommandStack().execute(command); final Object model = getCreateRequest().getNewObject(); if ((model != null) && (model instanceof AbstractAsset) && !(model instanceof MetaNode)) { AssetConfigurationDialog dlg = new AssetConfigurationDialog(getViewer().getControl().getShell(), (AbstractAsset)model); CommandStack cs = getViewer().getEditDomain().getCommandStack(); if (dlg.open() == Dialog.CANCEL && cs.canUndo() && cs.getUndoCommand() == command) { cs.undo(); } } } else { getCurrentEvent().detail = DND.DROP_NONE; } } else { getCurrentEvent().detail = DND.DROP_NONE; } selectAddedObject(); }
9773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9773/3af303c8ac34b44ec7480c6cf1acf82d79db038e/KoboldTemplateTransferDropTargetListener.java/clean/kobold/src/kobold.client.plam/src/kobold/client/plam/editor/KoboldTemplateTransferDropTargetListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 7544, 1435, 565, 288, 377, 202, 2725, 2326, 691, 5621, 377, 202, 2725, 2326, 4666, 1988, 5621, 377, 202, 377, 202, 430, 261, 588, 2326, 4666, 1988, 1435, 480, 446, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 7544, 1435, 565, 288, 377, 202, 2725, 2326, 691, 5621, 377, 202, 2725, 2326, 4666, 1988, 5621, 377, 202, 377, 202, 430, 261, 588, 2326, 4666, 1988, 1435, 480, 446, 13, ...
uri = new URI(baseURI, uri).toString(); }
uri = new URI(uri).toString(); }
public String getBaseURI() { if (needsSyncData()) { synchronizeData(); } String baseURI = this.ownerNode.getBaseURI(); if (attributes != null) { Attr attrNode = (Attr)attributes.getNamedItem("xml:base"); if (attrNode != null) { String uri = attrNode.getNodeValue(); if (uri.length() != 0 ) {// attribute value is always empty string try { uri = new URI(baseURI, uri).toString(); } catch (org.apache.xerces.util.URI.MalformedURIException e){ // REVISIT: what should happen in this case? return null; } return uri; } } } return baseURI; }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/826daae563a44d2b9c6c6b7d18904b390fd8fe0c/ElementImpl.java/clean/src/org/apache/xerces/dom/ElementImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8297, 3098, 1435, 288, 3639, 309, 261, 20600, 4047, 751, 10756, 288, 5411, 16978, 751, 5621, 3639, 289, 3639, 514, 1026, 3098, 273, 333, 18, 8443, 907, 18, 588, 2171, 3098, 562...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8297, 3098, 1435, 288, 3639, 309, 261, 20600, 4047, 751, 10756, 288, 5411, 16978, 751, 5621, 3639, 289, 3639, 514, 1026, 3098, 273, 333, 18, 8443, 907, 18, 588, 2171, 3098, 562...
sp.printHTML("Exception getting bids list: " +e+"<br>"); return ;
sp.printHTML("Exception getting bids list: " + e + "<br>"); return;
private void listBids(Integer itemId) { Enumeration bidList=null; ItemHome iHome; QueryHome qHome = null; Query q; BidHome bidHome; Bid bid; Item item; float price; String name; // Connecting to Query Home thru JNDI try { qHome = (QueryHome)PortableRemoteObject.narrow(initialContext.lookup("QueryHome"), QueryHome.class); } catch (Exception e) { sp.printHTML("Cannot lookup Query: " +e+"<br>"); return ; } // Get the list of the user's last bids try { q = qHome.create(); bidList = q.getItemBidHistory(itemId).elements(); } catch (Exception e) { sp.printHTML("Exception getting bids list: " +e+"<br>"); return ; } if ((bidList == null) || (!bidList.hasMoreElements())) { sp.printHTML("<h3>There is no bid corresponding to this item.</h3><br>"); return ; } // Lookup bid home interface try { bidHome = (BidHome)PortableRemoteObject.narrow(initialContext.lookup("BidHome"), BidHome.class); } catch (Exception e) { sp.printHTML("Cannot lookup Bid: " +e+"<br>"); return ; } sp.printBidHistoryHeader(); while (bidList.hasMoreElements()) { // Get the bids try { bid = bidHome.findByPrimaryKey((BidPK)bidList.nextElement()); } catch (Exception e) { sp.printHTML("Exception getting bid: " + e +"<br>"); sp.printHTMLfooter(); return; } sp.printBidHistory(bid); } sp.printBidHistoryFooter(); }
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/ViewBidHistory.java/clean/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/ViewBidHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 666, 38, 2232, 12, 4522, 18424, 13, 282, 288, 565, 13864, 9949, 682, 33, 2011, 31, 565, 4342, 8684, 277, 8684, 31, 565, 2770, 8684, 282, 1043, 8684, 273, 446, 31, 565, 2770, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 666, 38, 2232, 12, 4522, 18424, 13, 282, 288, 565, 13864, 9949, 682, 33, 2011, 31, 565, 4342, 8684, 277, 8684, 31, 565, 2770, 8684, 282, 1043, 8684, 273, 446, 31, 565, 2770, ...
if (nextLine.contains("]]>") && !nextLine.contains("<![CDATA")) { endOfCode = line.lastIndexOf("]]>"); logger.log(Level.FINE, "CDATA section complete at index: " + endOfCode); break;
cdataEnd = nextLine.lastIndexOf("]]>"); if (isInCDataSection && cdataEnd != -1) { cdataStart = nextLine.lastIndexOf("<![CDATA"); isInCDataSection = !(cdataEnd > cdataStart); } else if (!isInCDataSection) { cdataStart = nextLine.lastIndexOf("<![CDATA"); isInCDataSection = (cdataStart > cdataEnd);
public final WellFormedEventPacket read() throws EventReaderException { logger.entering(this.getClass().getName(), "read"); WellFormedEventPacket eventPacket = null; boolean cdatafragment = false; int lineNumber = 0; String line = null; String code = null; try { line = this.reader.readLine(); if (line == null) { logger.log(Level.INFO, "The read line is null. Assuming end of file."); if (this.sendEndEvent) { String eventStr = "<microActivity><system><type>termination</type></system></microActivity>"; eventPacket = ECGWriter.createValidEventPacket("msdt.system.xsd", this.dateOfLastEvent, eventStr); this.sendEndEvent = false; } else { this.module.deactivate(); } logger.exiting(this.getClass().getName(), "read", null); return eventPacket; } if (line.contains("<![CDATA") && !line.contains("]]>")) { cdatafragment = true; int beginOfCode = line.indexOf("<![CDATA"); logger.log(Level.FINE, "Begin of a CDATA section at index: " + beginOfCode); int endOfCode = 0; String nextLine; while ((nextLine = this.reader.readLine()) != null && this.run) { line += NEW_LINE_CHAR + nextLine; lineNumber++; // There may be many consequtive CDATA sections if (nextLine.contains("]]>") && !nextLine.contains("<![CDATA")) { endOfCode = line.lastIndexOf("]]>"); logger.log(Level.FINE, "CDATA section complete at index: " + endOfCode); break; } } if (endOfCode <= beginOfCode) { logger.log(Level.WARNING, "Error while reading line " + lineNumber + ":"); logger.log(Level.WARNING, "This line does not contain a valid CDATA section."); cdatafragment = false; return null; } code = line.substring(beginOfCode, endOfCode); String preCode = line.substring(0, beginOfCode); String postCode = line.substring(endOfCode, line.length()); line = preCode + CODE_REPLACEMENT + postCode; } int timeIndex = line.indexOf('#'); int datatypeIndex = line.indexOf('#', timeIndex+1); // Get the timestamp String. String timeStampString = line.substring(0, timeIndex); // Check if the timestamp String is well formed. if (timeStampString == null || timeStampString.equals("")) { logger .log(Level.WARNING, "Error while reading timeStamp in line " + lineNumber + ":"); logger.log(Level.WARNING, "The timeStamp is empty."); return null; } // Get the SensorDataType String. String sensorDataTypeString = line.substring(timeIndex+1, datatypeIndex); // Check if the SensorDataType String is well formed. if (sensorDataTypeString == null || sensorDataTypeString.equals("")) { logger.log(Level.WARNING, "Error while reading SensorDataType in line " + lineNumber + ":"); logger.log(Level.WARNING, "The SensorDataType is empty."); return null; } // Get the argList String. String argListString = line.substring(datatypeIndex+1); // Check if the argList String is well formed. if (argListString == null || argListString.equals("")) { logger.log(Level.WARNING, "Error while reading argList in line " + lineNumber + ":"); logger.log(Level.WARNING, "The argList is empty."); return null; } // Try to parse the timestamp String into a Date object. Date timeStamp = null; try { timeStamp = new SimpleDateFormat( WellFormedEventPacket.DATE_FORMAT_PATTERN) .parse(timeStampString); } catch (ParseException e) { logger .log(Level.WARNING, "Error while reading timeStamp in line " + lineNumber + ":"); logger.log(Level.WARNING, "The timeStamp is invalid."); logger.log(Level.WARNING, e.getMessage()); return null; } String[] argListStringArray = new String[3]; int firstSemi = argListString.indexOf(';'); int secondSemi = argListString.indexOf(';', firstSemi+1); int thirdSemi = argListString.indexOf(';', secondSemi+1); // ignore first (argListString.substring(0, firstSemi)); argListStringArray[0] = argListString.substring(firstSemi+1, secondSemi); argListStringArray[1] = argListString.substring(secondSemi+1, thirdSemi); argListStringArray[2] = argListString.substring(thirdSemi+1); if (cdatafragment) { if (code == null || code.equals("")) { logger.log(Level.WARNING, "Error while reading line " + lineNumber + ":"); logger.log(Level.WARNING, "This line does not contain a valid CDATA section replacement."); cdatafragment = false; return null; } String withCodeReplacement = argListStringArray[argListStringArray.length - 1]; if (!withCodeReplacement.contains(CODE_REPLACEMENT)) { logger.log(Level.WARNING, "Error while reading line " + lineNumber + ":"); logger.log(Level.WARNING, "This line does not contain a valid CDATA section replacement."); cdatafragment = false; return null; } String withCode = withCodeReplacement.replace(CODE_REPLACEMENT, code); argListStringArray[argListStringArray.length - 1] = withCode; } // Create a List object from the Array now containing the // argList String entries. List argList = Arrays.asList(argListStringArray); // Try to create an EventPacket object from the line's data. try { eventPacket = new WellFormedEventPacket(timeStamp, sensorDataTypeString, argList); } catch (IllegalEventParameterException e) { logger.log(Level.WARNING, "Error while generating event from line " + lineNumber + ":"); logger.log(Level.WARNING, e.getMessage()); return null; } if (this.mode != ReadMode.BURST) { logger.log(Level.FINER, "Process real time mode."); // If this was the first line, then no previous // timestamp // has been stored. if (this.dateOfLastEvent != null) { // Get the time delta of the last event and // the current // event. long eventDelta = eventPacket.getTimeStamp().getTime() - this.dateOfLastEvent.getTime(); logger.log(Level.FINER, " event delta: " + eventDelta); // Get the current Date Date currentDate = new Date(); // Get the delta of the time when the last // event was // parsed and now long realDelta = currentDate.getTime() - this.relativeDate.getTime(); logger.log(Level.FINER, " real Delta " + realDelta); // Get the delta in real realtime and compare // it to the // event time delta. while (realDelta < eventDelta && this.mode != ReadMode.BURST && this.run) { logger.log(Level.FINER, " Need to wait"); try { // Wait some time and retry until the // time has // ellapsed. Thread.sleep(TIME_SPAN); logger.log(Level.FINER, " Waiting finished"); currentDate = new Date(); realDelta = currentDate.getTime() - this.relativeDate.getTime(); logger.log(Level.FINER, " new real Delta " + realDelta); } catch (InterruptedException e) { // No problem if and interruption // occures... } } logger.log(Level.FINER, " Do not need to wait"); } } else { logger.log(Level.FINER, "Process burst mode."); } // Store the timestamp of the current event for the // next loop. this.dateOfLastEvent = eventPacket.getTimeStamp(); // Store the timestamp for the next loop. this.relativeDate = new Date(); } catch (IOException e) { throw new EventReaderException(e.getMessage()); } return eventPacket; }
239 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/239/3dc41d385ad82ef12b7f9a52471724a156b94983/FileReaderThread.java/buggy/modules/ECG_FileSystemSourceModule/src/org/electrocodeogram/module/source/implementation/FileReaderThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 678, 1165, 1204, 329, 1133, 6667, 855, 1435, 1216, 2587, 2514, 503, 288, 3639, 1194, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 896, 8863, 3639, 678, 1165, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 678, 1165, 1204, 329, 1133, 6667, 855, 1435, 1216, 2587, 2514, 503, 288, 3639, 1194, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 896, 8863, 3639, 678, 1165, ...
new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 5, input);
new NoViableAltException("353:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 5, input);
public QueryDescr query() throws RecognitionException { QueryDescr query; Token loc=null; String queryName = null; query = null; try { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:338:17: ( opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:338:17: opt_eol loc= 'query' queryName= word opt_eol ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) 'end' opt_eol { following.push(FOLLOW_opt_eol_in_query473); opt_eol(); following.pop(); loc=(Token)input.LT(1); match(input,26,FOLLOW_26_in_query479); following.push(FOLLOW_word_in_query483); queryName=word(); following.pop(); following.push(FOLLOW_opt_eol_in_query485); opt_eol(); following.pop(); query = new QueryDescr( queryName, null ); query.setLocation( loc.getLine(), loc.getCharPositionInLine() ); AndDescr lhs = new AndDescr(); query.setLhs( lhs ); lhs.setLocation( loc.getLine(), loc.getCharPositionInLine() ); // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] ) int alt15=2; switch ( input.LA(1) ) { case 21: int LA15_1 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 1, input); throw nvae; } break; case EOL: int LA15_2 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 2, input); throw nvae; } break; case 27: int LA15_3 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 3, input); throw nvae; } break; case 54: int LA15_4 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 4, input); throw nvae; } break; case 55: int LA15_5 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 5, input); throw nvae; } break; case 56: int LA15_6 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 6, input); throw nvae; } break; case ID: int LA15_7 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 7, input); throw nvae; } break; case 15: int LA15_8 = input.LA(2); if ( expander != null ) { alt15=1; } else if ( true ) { alt15=2; } else { NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 8, input); throw nvae; } break; case INT: case BOOL: case STRING: case FLOAT: case MISC: case WS: case SH_STYLE_SINGLE_LINE_COMMENT: case C_STYLE_SINGLE_LINE_COMMENT: case MULTI_LINE_COMMENT: case 16: case 17: case 18: case 19: case 20: case 22: case 23: case 24: case 25: case 26: case 28: case 29: case 30: case 31: case 32: case 33: case 34: case 35: case 36: case 37: case 38: case 39: case 40: case 41: case 42: case 43: case 44: case 45: case 46: case 47: case 48: case 49: case 50: case 51: case 52: case 53: case 57: alt15=1; break; default: NoViableAltException nvae = new NoViableAltException("346:17: ({...}? expander_lhs_block[lhs] | normal_lhs_block[lhs] )", 15, 0, input); throw nvae; } switch (alt15) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:347:25: {...}? expander_lhs_block[lhs] { if ( !( expander != null ) ) { throw new FailedPredicateException(input, "query", " expander != null "); } following.push(FOLLOW_expander_lhs_block_in_query501); expander_lhs_block(lhs); following.pop(); } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:348:27: normal_lhs_block[lhs] { following.push(FOLLOW_normal_lhs_block_in_query509); normal_lhs_block(lhs); following.pop(); } break; } match(input,27,FOLLOW_27_in_query524); following.push(FOLLOW_opt_eol_in_query526); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return query; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/ca87e40b5754cd366785b207f8cd109258275f53/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2770, 16198, 843, 1435, 1216, 9539, 288, 6647, 2770, 16198, 843, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 514, 843, 461, 273, 446, 31, 540, 202, 202, 2271, 273, 446, 31, 540, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2770, 16198, 843, 1435, 1216, 9539, 288, 6647, 2770, 16198, 843, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 514, 843, 461, 273, 446, 31, 540, 202, 202, 2271, 273, 446, 31, 540, 202...
for ( int i = 0 ; i < length ; ++i ) {
for (int i = 0; i < length; ++i) {
protected void printEscaped( String source ) throws IOException { int length = source.length(); for ( int i = 0 ; i < length ; ++i ) { int ch = source.charAt(i); if (!XMLChar.isValid(ch)) { if (++i <length) { surrogates(ch, source.charAt(i)); } else { fatalError("The character '"+(char)ch+"' is an invalid XML character"); } continue; } printXMLChar(ch, false); } }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/54f4239946b55ff27db7627ac6740aff4949f966/XMLSerializer.java/clean/src/org/apache/xml/serialize/XMLSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1172, 17208, 12, 514, 1084, 262, 1216, 1860, 288, 3639, 509, 769, 273, 1084, 18, 2469, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 965, 77, 13, 288, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1172, 17208, 12, 514, 1084, 262, 1216, 1860, 288, 3639, 509, 769, 273, 1084, 18, 2469, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 769, 31, 965, 77, 13, 288, 54...
private IProgressMonitor getUIProgressMonitor(final String jobName) { return new IProgressMonitor() { IProgressMonitor internalMonitor; /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#beginTask(java.lang.String, * int) */ public void beginTask(String name, int totalWork) { if (name == null || name.length() == 0) getInternalMonitor().beginTask(jobName, totalWork); else getInternalMonitor().beginTask(name, totalWork); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#done() */ public void done() { getInternalMonitor().done(); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#internalWorked(double) */ public void internalWorked(double work) { getInternalMonitor().internalWorked(work); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#isCanceled() */ public boolean isCanceled() { return getInternalMonitor().isCanceled(); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#setCanceled(boolean) */ public void setCanceled(boolean value) { getInternalMonitor().setCanceled(value); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#setTaskName(java.lang.String) */ public void setTaskName(String name) { getInternalMonitor().setTaskName(name); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#subTask(java.lang.String) */ public void subTask(String name) { getInternalMonitor().subTask(name); } /* * (non-Javadoc) @see org.eclipse.core.runtime.IProgressMonitor#worked(int) */ public void worked(int work) { getInternalMonitor().worked(work); } /** * Get the monitor that is being wrapped. This is called lazily as * we will not be able to get the monitor for the workbench outside * of the UI Thread and so we will have to wait until the monitor * is accessed. * * Return a NullProgressMonitor if the one from the workbench * cannot be found. * * @return IProgressMonitor */ private IProgressMonitor getInternalMonitor() { if (internalMonitor == null) { IStatusLineManager manager = getStatusLineManager(); if (manager == null) internalMonitor = new NullProgressMonitor(); else internalMonitor = manager.getProgressMonitor(); } return internalMonitor; } }; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/dbe27565dfaf5a01ee200188f00a3b4c6b654ea2/WorkbenchMonitorProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/WorkbenchMonitorProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 45, 5491, 7187, 588, 5370, 5491, 7187, 12, 6385, 780, 4688, 461, 15329, 202, 202, 2463, 2704, 45, 5491, 7187, 1435, 95, 1082, 202, 45, 5491, 7187, 7236, 7187, 31, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 45, 5491, 7187, 588, 5370, 5491, 7187, 12, 6385, 780, 4688, 461, 15329, 202, 202, 2463, 2704, 45, 5491, 7187, 1435, 95, 1082, 202, 45, 5491, 7187, 7236, 7187, 31, 1082, 202, ...
if (name.equals("char")) {
else if (name.equals("char")) {
public static String getTypeDescription(String name) { // lets avoid class loading // return getType(name).getDescriptor(); if (name == null) { return "Ljava/lang/Object;"; } if (name.equals("void")) { return "V"; } String prefix = ""; if (name.endsWith("[]")) { prefix = "["; name = name.substring(0, name.length() - 2); } if (name.equals("int")) { return prefix + "I"; } if (name.equals("long")) { return prefix + "J"; } if (name.equals("short")) { return prefix + "S"; } if (name.equals("float")) { return prefix + "F"; } if (name.equals("double")) { return prefix + "D"; } if (name.equals("byte")) { return prefix + "B"; } if (name.equals("char")) { return prefix + "C"; } if (name.equals("boolean")) { return prefix + "Z"; } return prefix + "L" + name.replace('.', '/') + ";"; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/814fb33f88a5439206c1388cd1e97339afb2000a/BytecodeHelper.java/buggy/src/main/org/codehaus/groovy/classgen/BytecodeHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 3130, 3291, 12, 780, 508, 13, 288, 3639, 368, 14557, 4543, 667, 7153, 3639, 368, 327, 3130, 12, 529, 2934, 588, 3187, 5621, 3639, 309, 261, 529, 422, 446, 13, 288, 5411,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 3130, 3291, 12, 780, 508, 13, 288, 3639, 368, 14557, 4543, 667, 7153, 3639, 368, 327, 3130, 12, 529, 2934, 588, 3187, 5621, 3639, 309, 261, 529, 422, 446, 13, 288, 5411,...
return true; }
return true; }
public boolean isSingleton() { return true; }
54717 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54717/60533ff5234b3216373cf01e1a073a61f565b554/OsgiServiceProxyFactoryBean.java/clean/spring-osgi-core/src/main/java/org/springframework/osgi/service/OsgiServiceProxyFactoryBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 11604, 12551, 1435, 288, 3639, 327, 638, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 11604, 12551, 1435, 288, 3639, 327, 638, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
throw new NotCompilableException("Node not supported: " + iVisited.toString());
lineNumber(iVisited); loadSelf(); mv.visitLdcInsn(iVisited.getName()); mv.visitFieldInsn(Opcodes.GETSTATIC, "org/jruby/runtime/builtin/IRubyObject", "NULL_ARRAY", "[Lorg/jruby/runtime/builtin/IRubyObject;"); mv.visitFieldInsn(Opcodes.GETSTATIC, "org/jruby/runtime/CallType", "FUNCTIONAL", "Lorg/jruby/runtime/CallType;"); invokeIRubyObject("callMethod", "(Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/CallType;)Lorg/jruby/runtime/builtin/IRubyObject;"); return null;
public Instruction visitVCallNode(VCallNode iVisited) { throw new NotCompilableException("Node not supported: " + iVisited.toString()); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/1a9bdcaf49f77f5c15fe4d5f69d5815c92686aca/InstructionCompiler2.java/clean/src/org/jruby/ast/executable/InstructionCompiler2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24605, 3757, 58, 1477, 907, 12, 58, 1477, 907, 277, 30019, 13, 288, 3639, 13629, 12, 77, 30019, 1769, 1262, 10084, 5621, 225, 7701, 18, 11658, 48, 7201, 11796, 12, 77, 30019, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 24605, 3757, 58, 1477, 907, 12, 58, 1477, 907, 277, 30019, 13, 288, 3639, 13629, 12, 77, 30019, 1769, 1262, 10084, 5621, 225, 7701, 18, 11658, 48, 7201, 11796, 12, 77, 30019, 18, ...
} else { noex = Constants.NOEX_PUBLIC;
public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = ruby.getRubyClass(); if (rubyClass == null) { throw new TypeError(ruby, "No class to add method."); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); ICallable method = rubyClass.searchMethod(iVisited.getName()); // RubyObject origin = body.getOrigin(); // if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } // } int noex; if (ruby.isScope(Constants.SCOPE_PRIVATE) || iVisited.getName().equals("initialize")) { noex = Constants.NOEX_PRIVATE; } else if (ruby.isScope(Constants.SCOPE_PROTECTED)) { noex = Constants.NOEX_PROTECTED; } else if (rubyClass == ruby.getClasses().getObjectClass()) { noex = iVisited.getNoex(); } else { noex = Constants.NOEX_PUBLIC; } if (method != null && method.getImplementationClass() == rubyClass && (method.getNoex() & Constants.NOEX_UNDEF) != 0) { noex |= Constants.NOEX_UNDEF; } // FIXME Create new method store class. // ScopeNode body = copyNodeScope((ScopeNode)iVisited.getBodyNode(), ruby.getNamespace()); DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), ruby.getNamespace()); rubyClass.addMethod(iVisited.getName(), newMethod, noex); if (ruby.getCurrentMethodScope() == Constants.SCOPE_MODFUNC) { rubyClass.getSingletonClass().addMethod(iVisited.getName(), newMethod, Constants.NOEX_PUBLIC); rubyClass.callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); } if (rubyClass.isSingleton()) { rubyClass.getInstanceVariable("__attached__").callMethod("singleton_method_added", builtins.toSymbol(iVisited.getName())); } else { rubyClass.callMethod("method_added", builtins.toSymbol(iVisited.getName())); } }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/f05423516c2d1bfe54c4363eedb9654f7cfb6898/EvaluateVisitor.java/buggy/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 22155, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 22155, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 1...
boolean isSupported(PeriodType type) { switch (iFieldType) {
boolean isSupported(PeriodType type, int field) { switch (field) {
boolean isSupported(PeriodType type) { switch (iFieldType) { default: return false; case 1: return type.years().isSupported(); case 2: return type.months().isSupported(); case 3: return type.weeks().isSupported(); case 4: return type.days().isSupported(); case 5: return type.hours().isSupported(); case 6: return type.minutes().isSupported(); case 7: return type.seconds().isSupported(); case 8: return type.millis().isSupported(); case 9: // drop through case 10: return type.seconds().isSupported() || type.millis().isSupported(); } }
52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/5fd28fcd3425461dfcff1800753513f94807f652/PeriodFormatterBuilder.java/clean/JodaTime/src/java/org/joda/time/format/PeriodFormatterBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1250, 25946, 12, 5027, 559, 618, 13, 288, 5411, 1620, 261, 77, 13715, 13, 288, 5411, 805, 30, 7734, 327, 629, 31, 5411, 648, 404, 30, 7734, 327, 618, 18, 29391, 7675, 291, 7223, 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, 540, 1250, 25946, 12, 5027, 559, 618, 13, 288, 5411, 1620, 261, 77, 13715, 13, 288, 5411, 805, 30, 7734, 327, 629, 31, 5411, 648, 404, 30, 7734, 327, 618, 18, 29391, 7675, 291, 7223, 5621, ...
if (className.indexOf('/') >= 0) className = className.replace('/','.'); if (signature.indexOf('/') >= 0) signature = signature.replace('/','.');
if (className.indexOf('.') >= 0) { dottedCountClass++; } else if (className.indexOf('/') >= 0) { slashCountClass++; className = className.replace('/','.'); assert false; } if (signature.indexOf('.') >= 0) { signature = signature.replace('.','/'); dottedCountSignature++; assert false; } else if (signature.indexOf('/') >= 0) slashCountSignature++;
protected AbstractClassMember(String className, String name, String signature, int accessFlags) { if (className.indexOf('/') >= 0) className = className.replace('/','.'); if (signature.indexOf('/') >= 0) signature = signature.replace('/','.'); this.className = className; this.name = name; this.signature = signature; this.accessFlags = accessFlags; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/818e3a70d28562876123e58e355714b862253e2a/AbstractClassMember.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/AbstractClassMember.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 4115, 797, 4419, 12, 780, 2658, 16, 514, 508, 16, 514, 3372, 16, 509, 2006, 5094, 13, 288, 202, 202, 430, 261, 12434, 18, 31806, 2668, 2473, 13, 1545, 374, 13, 2658, 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, 225, 202, 1117, 4115, 797, 4419, 12, 780, 2658, 16, 514, 508, 16, 514, 3372, 16, 509, 2006, 5094, 13, 288, 202, 202, 430, 261, 12434, 18, 31806, 2668, 2473, 13, 1545, 374, 13, 2658, 273, 2...
MutablePicoContainer tempContainer = new DefaultPicoContainer(requestContainer); tempContainer.registerComponentImplementation(actionClass); result = (Action) tempContainer.getComponentInstance(actionClass);
result = (Action) createComponentInstance(requestContainer, actionClass);
protected Action instantiateAction(Class actionClass) { PicoContainer requestContainer = getParentContainer(); Action result = (Action) requestContainer.getComponentInstance(actionClass); if (result == null) { // The action wasn't registered. Do it ad-hoc here. MutablePicoContainer tempContainer = new DefaultPicoContainer(requestContainer); tempContainer.registerComponentImplementation(actionClass); result = (Action) tempContainer.getComponentInstance(actionClass); } return result; }
14418 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14418/3f07e12293ad24ff91a16700b1a99ab61a8e373f/PicoActionFactory.java/clean/nanowar/src/java/org/nanocontainer/nanowar/webwork/PicoActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4382, 10275, 1803, 12, 797, 1301, 797, 13, 288, 3639, 453, 10764, 2170, 590, 2170, 273, 5089, 2170, 5621, 3639, 4382, 563, 273, 261, 1803, 13, 590, 2170, 18, 588, 1841, 1442, 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, 4382, 10275, 1803, 12, 797, 1301, 797, 13, 288, 3639, 453, 10764, 2170, 590, 2170, 273, 5089, 2170, 5621, 3639, 4382, 563, 273, 261, 1803, 13, 590, 2170, 18, 588, 1841, 1442, 12, ...
dateSelected(dialogResponse == DateSelectionDialog.CANCEL, newCalendar);
dateSelected(dialogResponse == Window.CANCEL, newCalendar);
private void initialize() { GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; gridLayout.horizontalSpacing = 0; gridLayout.verticalSpacing = 0; gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; gridLayout.makeColumnsEqualWidth = false; this.setLayout(gridLayout); setSize(new org.eclipse.swt.graphics.Point(120, 19)); simpleDateFormat.applyPattern("MM/dd/yy h:mm aa"); dateText = new Text(this, SWT.NONE); GridData dateTextGridData = new org.eclipse.swt.layout.GridData(); dateTextGridData.widthHint = 95; dateText.setLayoutData(dateTextGridData); dateText.setText(initialText); dateText.addFocusListener(new FocusListener() {// DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(currentDate)); Calendar calendar = Calendar.getInstance(); public void focusGained(FocusEvent e) { } public void focusLost(FocusEvent e) { Date reminderDate; try { reminderDate = simpleDateFormat.parse(dateText.getText()); calendar.setTime(reminderDate); date = calendar; updateDateText(); } catch (ParseException e1) { updateDateText(); } } }); pickButton = new Button(this, SWT.ARROW | SWT.DOWN); GridData pickButtonGridData = new org.eclipse.swt.layout.GridData(); pickButtonGridData.horizontalAlignment = org.eclipse.swt.layout.GridData.END; pickButton.setLayoutData(pickButtonGridData); pickButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent arg0) { Calendar newCalendar = GregorianCalendar.getInstance(); if(date != null) { newCalendar.setTime(date.getTime()); } Shell shell = null; if (PlatformUI.getWorkbench().getActiveWorkbenchWindow() != null) { shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); } else { shell = new Shell(PlatformUI.getWorkbench().getDisplay()); } DateSelectionDialog dialog = new DateSelectionDialog(shell, newCalendar, DatePicker.TITLE_DIALOG); pickButton.setEnabled(false); dateText.setEnabled(false); int dialogResponse = dialog.open(); newCalendar.setTime(dialog.getDate()); dateSelected(dialogResponse == DateSelectionDialog.CANCEL, newCalendar); // Display display = Display.getCurrent();// showDatePicker((display.getCursorLocation().x), (display.getCursorLocation().y)); } public void widgetDefaultSelected(SelectionEvent arg0) { } }); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/3795dbf159ca461ff46554eebd5d2ae042adc3f0/DatePicker.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/DatePicker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4046, 1435, 288, 1082, 202, 6313, 3744, 3068, 3744, 273, 394, 7145, 3744, 5621, 202, 202, 5222, 3744, 18, 2107, 3380, 273, 576, 31, 202, 202, 5222, 3744, 18, 18396, 18006,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 1435, 288, 1082, 202, 6313, 3744, 3068, 3744, 273, 394, 7145, 3744, 5621, 202, 202, 5222, 3744, 18, 2107, 3380, 273, 576, 31, 202, 202, 5222, 3744, 18, 18396, 18006,...
int count = (int)srcFile.length(); byte indata[] = new byte[count]; try { FileInputStream inStream = new FileInputStream(srcFile); inStream.read(indata); inStream.close(); } catch (IOException e) { throw new BuildException(e);
int count = (int)srcFile.length(); byte indata[] = new byte[count]; try { FileInputStream inStream = new FileInputStream(srcFile); inStream.read(indata); inStream.close(); } catch (IOException e) { throw new BuildException(e); } int cr = 0; int lf = 0; int tab = 0; for (int k=0; k<count; k++) { byte c = indata[k]; if (c == '\r') cr++; if (c == '\n') lf++; if (c == '\t') tab++; } boolean eof = ((count>0) && (indata[count-1] == 0x1A)); project.log(srcFile + ": size=" + count + " cr=" + cr + " lf=" + lf + " tab=" + tab + " eof=" + eof, "fixcrlf", project.MSG_VERBOSE); int outsize = count; if (addcr != 0) outsize-=cr; if (addcr == +1) outsize+=lf; if (addtab == -1) outsize+=tab*7; if (ctrlz == +1) outsize+=1; byte outdata[] = new byte[outsize]; int o = 0; int line = o; int col = 0; for (int k=0; k<count; k++) { switch (indata[k]) { case ' ': if (addtab == 0) outdata[o++]=(byte)' '; col++; break; case '\t': if (addtab == 0) { outdata[o++]=(byte)'\t'; col++; } else { col = (col|7)+1; } break; case '\r': if (addcr == 0) { outdata[o++]=(byte)'\r'; col++; } break; case '\n': if (addcr == +1) outdata[o++]=(byte)'\r'; outdata[o++]=(byte)'\n'; line=o; col=0; break; default: if (addtab>0 && o+1<line+col) { int diff=o-line; while ((diff|7)<col) { outdata[o++]=(byte)'\t'; line-=7-(diff&7); diff=o-line; }; }; while (o<line+col) outdata[o++]=(byte)' '; outdata[o++]=indata[k]; col++;
public void execute() throws BuildException { // first off, make sure that we've got a srcdir and destdir if (srcDir == null) { throw new BuildException("srcdir attribute must be set!"); } if (!srcDir.exists()) { throw new BuildException("srcdir does not exist!"); } if (!srcDir.isDirectory()) { throw new BuildException("srcdir is not a directory!"); } if (destDir != null) { if (!destDir.exists()) { throw new BuildException("destdir does not exist!"); } if (!destDir.isDirectory()) { throw new BuildException("destdir is not a directory!"); } } // log options used project.log("options:" + " cr=" + (addcr==-1 ? "add" : addcr==0 ? "asis" : "remove") + " tab=" + (addtab==-1 ? "add" : addtab==0 ? "asis" : "remove") + " eof=" + (ctrlz==-1 ? "add" : ctrlz==0 ? "asis" : "remove"), "fixcrlf", project.MSG_VERBOSE); DirectoryScanner ds = super.getDirectoryScanner(srcDir); String[] files = ds.getIncludedFiles(); try { for (int i = 0; i < files.length; i++) { File srcFile = new File(srcDir, files[i]); // read the contents of the file int count = (int)srcFile.length(); byte indata[] = new byte[count]; try { FileInputStream inStream = new FileInputStream(srcFile); inStream.read(indata); inStream.close(); } catch (IOException e) { throw new BuildException(e); } // count the number of cr, lf, and tab characters int cr = 0; int lf = 0; int tab = 0; for (int k=0; k<count; k++) { byte c = indata[k]; if (c == '\r') cr++; if (c == '\n') lf++; if (c == '\t') tab++; } // check for trailing eof boolean eof = ((count>0) && (indata[count-1] == 0x1A)); // log stats (before fixes) project.log(srcFile + ": size=" + count + " cr=" + cr + " lf=" + lf + " tab=" + tab + " eof=" + eof, "fixcrlf", project.MSG_VERBOSE); // determine the output buffer size (slightly pessimisticly) int outsize = count; if (addcr != 0) outsize-=cr; if (addcr == +1) outsize+=lf; if (addtab == -1) outsize+=tab*7; if (ctrlz == +1) outsize+=1; // copy the data byte outdata[] = new byte[outsize]; int o = 0; // output offset int line = o; // beginning of line int col = 0; // desired column for (int k=0; k<count; k++) { switch (indata[k]) { case ' ': // advance column if (addtab == 0) outdata[o++]=(byte)' '; col++; break; case '\t': if (addtab == 0) { // treat like any other character outdata[o++]=(byte)'\t'; col++; } else { // advance column to next tab stop col = (col|7)+1; } break; case '\r': if (addcr == 0) { // treat like any other character outdata[o++]=(byte)'\r'; col++; } break; case '\n': // start a new line (optional CR followed by LF) if (addcr == +1) outdata[o++]=(byte)'\r'; outdata[o++]=(byte)'\n'; line=o; col=0; break; default: // add tabs if two or more spaces are required if (addtab>0 && o+1<line+col) { // determine logical column int diff=o-line; // add tabs until this column would be passed // note: the start of line is adjusted to match while ((diff|7)<col) { outdata[o++]=(byte)'\t'; line-=7-(diff&7); diff=o-line; }; }; // space out to desired column while (o<line+col) outdata[o++]=(byte)' '; // append desired character outdata[o++]=indata[k]; col++; } } // add or remove an eof character as required if (ctrlz == +1) { if (outdata[o-1]!=0x1A) outdata[o++]=0x1A; } else if (ctrlz == -1) { if (o>2 && outdata[o-1]==0x0A && outdata[o-2]==0x1A) o--; if (o>1 && outdata[o-1]==0x1A) o--; } // output the data try { File destFile = srcFile; if (destDir != null) destFile = new File(destDir, files[i]); FileOutputStream outStream = new FileOutputStream(destFile); outStream.write(outdata,0,o); outStream.close(); } catch (IOException e) { throw new BuildException(e); } } /* end for */ } catch (Exception e) { e.printStackTrace(); throw new BuildException(e); } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/8d02bfc707ffeb41a31153bba6adbccebb06106b/FixCRLF.java/buggy/src/main/org/apache/tools/ant/taskdefs/FixCRLF.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 1216, 18463, 288, 3639, 368, 1122, 3397, 16, 1221, 3071, 716, 732, 8081, 2363, 279, 1705, 1214, 471, 1570, 1214, 3639, 309, 261, 4816, 1621, 422, 446, 13, 288, 5411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 1216, 18463, 288, 3639, 368, 1122, 3397, 16, 1221, 3071, 716, 732, 8081, 2363, 279, 1705, 1214, 471, 1570, 1214, 3639, 309, 261, 4816, 1621, 422, 446, 13, 288, 5411...
else { System.out.println("Bad Item"); }
public void populateAdditions(List additions) { additions.clear(); IConfigurationElement[] items = additionElement.getChildren(); for (int i = 0; i < items.length; i++) { String itemType = items[i].getName(); IContributionItem newItem = null; System.out.println("Item: " + getId(items[i])); //$NON-NLS-1$ if (IWorkbenchRegistryConstants.TAG_ITEM.equals(itemType)) { if (isDynamic(items[i])) { } else newItem = createItemAdditionContribution(items[i]); } else if (IWorkbenchRegistryConstants.TAG_WIDGET.equals(itemType)) { newItem = createWidgetAdditionContribution(items[i]); } else if (IWorkbenchRegistryConstants.TAG_SEPARATOR.equals(itemType)) { newItem = createSeparatorAdditionContribution(items[i]); } else if (IWorkbenchRegistryConstants.TAG_MENU.equals(itemType)) { newItem = createMenuAdditionContribution(items[i]); // Menus are special...we have to add any sub menu // items into their own cache // -ALL- contibuted menus must have an id so create one // if necessary String menuId = getId(items[i]); MenuLocationURI uri = new MenuLocationURI("menu:" + menuId); //$NON-NLS-1$ List subMenuCache = menuSvc.getAdditionsForURI(uri); MenuAdditionCacheEntry subMenuEntry = new MenuAdditionCacheEntry(items[i], menuSvc); // Add the 'original' definition to the start of the list subMenuCache.add(0, subMenuEntry); } // Cache the relationship between the ICI and the // registry element used to back it if (newItem != null) { additions.add(newItem); iciToConfigElementMap.put(newItem, items[i]); } else { System.out.println("Bad Item"); //$NON-NLS-1$ } } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/19dff4e9a21ba46aea8989c210f8a32a6a5c3bbb/MenuAdditionCacheEntry.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuAdditionCacheEntry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6490, 986, 5029, 12, 682, 26260, 13, 288, 202, 202, 1289, 5029, 18, 8507, 5621, 9506, 202, 45, 1750, 1046, 8526, 1516, 273, 2719, 1046, 18, 588, 4212, 5621, 202, 202, 188...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6490, 986, 5029, 12, 682, 26260, 13, 288, 202, 202, 1289, 5029, 18, 8507, 5621, 9506, 202, 45, 1750, 1046, 8526, 1516, 273, 2719, 1046, 18, 588, 4212, 5621, 202, 202, 188...
httpResponse.setField("Expires", "-1");
hackRemoveLastModifiedSince(httpRequest); setNoCacheHeaders(httpResponse);
public void handle(String pathInContext, String pathParams, HttpRequest httpRequest, HttpResponse httpResponse) throws HttpException, IOException { httpResponse.setField("Expires", "-1"); // never cached. if (pathInContext.equals("/core/SeleneseRunner.html") && SeleniumServer.isProxyInjectionMode()) { pathInContext = pathInContext.replaceFirst("/core/SeleneseRunner.html", "/core/InjectedSeleneseRunner.html"); } super.handle(pathInContext, pathParams, httpRequest, httpResponse); }
4718 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4718/61381e5d1c23596093bdc86ca7142ed4024d2516/StaticContentHandler.java/buggy/server-coreless/src/main/java/org/openqa/selenium/server/StaticContentHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 12, 780, 589, 29334, 16, 514, 17756, 16, 14069, 12189, 16, 9476, 15001, 13, 1216, 23190, 16, 1860, 288, 3639, 11769, 3288, 14747, 9673, 12, 2505, 691, 1769, 444, 2279, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 12, 780, 589, 29334, 16, 514, 17756, 16, 14069, 12189, 16, 9476, 15001, 13, 1216, 23190, 16, 1860, 288, 3639, 11769, 3288, 14747, 9673, 12, 2505, 691, 1769, 444, 2279, 16...
String outgoingMailServer = i.next().toString (); StringBuffer logMessageBuffer = new StringBuffer(256) .append("Attempting delivery of ") .append(mail.getName()) .append(" to host ") .append(outgoingMailServer) .append(" to addresses ") .append(Arrays.asList(addr)); log(logMessageBuffer.toString()); URLName urlname = new URLName("smtp: Properties props = session.getProperties(); if (mail.getSender() == null) { props.put("mail.smtp.from", "<>"); } else { String sender = mail.getSender().toString(); props.put("mail.smtp.from", sender); } Transport transport = null;
transport = session.getTransport(urlname);
private boolean deliver(MailImpl mail, Session session) { try { if (isDebug) { log("Attempting to deliver " + mail.getName()); } MimeMessage message = mail.getMessage(); //Create an array of the recipients as InternetAddress objects Collection recipients = mail.getRecipients(); InternetAddress addr[] = new InternetAddress[recipients.size()]; int j = 0; for (Iterator i = recipients.iterator(); i.hasNext(); j++) { MailAddress rcpt = (MailAddress)i.next(); addr[j] = rcpt.toInternetAddress(); } //Figure out which servers to try to send to. This collection // will hold all the possible target servers Collection targetServers = null; if (gatewayServer == null) { MailAddress rcpt = (MailAddress) recipients.iterator().next(); String host = rcpt.getHost(); //Lookup the possible targets targetServers = getMailetContext().getMailServers(host); if (targetServers.size() == 0) { log("No mail server found for: " + host); StringBuffer exceptionBuffer = new StringBuffer(128) .append("There are no DNS entries for the hostname ") .append(host) .append(". I cannot determine where to send this message."); return failMessage(mail, new MessagingException(exceptionBuffer.toString()), false); } } else { targetServers = new Vector(); targetServers.add(gatewayServer); } MessagingException lastError = null; if (addr.length > 0) { Iterator i = targetServers.iterator(); while ( i.hasNext()) { try { String outgoingMailServer = i.next().toString (); StringBuffer logMessageBuffer = new StringBuffer(256) .append("Attempting delivery of ") .append(mail.getName()) .append(" to host ") .append(outgoingMailServer) .append(" to addresses ") .append(Arrays.asList(addr)); log(logMessageBuffer.toString()); URLName urlname = new URLName("smtp://" + outgoingMailServer); Properties props = session.getProperties(); if (mail.getSender() == null) { props.put("mail.smtp.from", "<>"); } else { String sender = mail.getSender().toString(); props.put("mail.smtp.from", sender); } //Many of these properties are only in later JavaMail versions //"mail.smtp.ehlo" //default true //"mail.smtp.auth" //default false //"mail.smtp.dsn.ret" //default to nothing... appended as RET= after MAIL FROM line. //"mail.smtp.dsn.notify" //default to nothing...appended as NOTIFY= after RCPT TO line. Transport transport = null; try { transport = session.getTransport(urlname); try { transport.connect(); } catch (MessagingException me) { // Any error on connect should cause the mailet to attempt // to connect to the next SMTP server associated with this MX record, // assuming the number of retries hasn't been exceeded. if (failMessage(mail, me, false)) { return true; } else { continue; } } transport.sendMessage(message, addr); } finally { if (transport != null) { transport.close(); transport = null; } } logMessageBuffer = new StringBuffer(256) .append("Mail (") .append(mail.getName()) .append(") sent successfully to ") .append(outgoingMailServer); log(logMessageBuffer.toString()); return true; } catch (MessagingException me) { //MessagingException are horribly difficult to figure out what actually happened. StringBuffer exceptionBuffer = new StringBuffer(256) .append("Exception delivering message (") .append(mail.getName()) .append(") - ") .append(me.getMessage()); log(exceptionBuffer.toString()); if ((me.getNextException() != null) && (me.getNextException() instanceof java.io.IOException)) { //This is more than likely a temporary failure // If it's an IO exception with no nested exception, it's probably // some socket or weird I/O related problem. lastError = me; continue; } // This was not a connection or I/O error particular to one // SMTP server of an MX set. Instead, it is almost certainly // a protocol level error. In this case we assume that this // is an error we'd encounter with any of the SMTP servers // associated with this MX record, and we pass the exception // to the code in the outer block that determines its severity. throw me; } } // end while //If we encountered an exception while looping through, send the last exception we got if (lastError != null) { throw lastError; } } else { log("No recipients specified... not sure how this could have happened."); } } catch (SendFailedException sfe) { //Would like to log all the types of email addresses if (sfe.getValidSentAddresses() != null) { Address[] validSent = sfe.getValidSentAddresses(); Collection recipients = mail.getRecipients(); //Remove these addresses for the recipients for (int i = 0; i < validSent.length; i++) { try { MailAddress addr = new MailAddress(validSent[i].toString()); recipients.remove(addr); } catch (ParseException pe) { //ignore once debugging done pe.printStackTrace(); } } } // The rest of the recipients failed for one reason or another. // let failMessage handle it -- 5xx codes are permanent, others temporary. /* * SendFailedException actually handles this for us. For * example, if you send a message that has multiple invalid * addresses, you'll get a top-level SendFailedException * that that has the valid, valid-unsent, and invalid * address lists, with all of the server response messages * will be contained within the nested exceptions. [Note: * the content of the nested exceptions is implementation * dependent.] * * For an immediate fix, we will simply go one level down. * THIS IS ONLY TEMPORARY. * * Proposal: * * By the time we get here, we've removed the valid sent * addresses from the message (see the code right above). * * sfe.getInvalidAddresses() should be considered permanent. * sfe.getValidUnsentAddresses() should be considered temporary. * * JavaMail v1.3 properly populates those collections based * upon the 4xx and 5xx response codes. * * failMessage could re-spool for ValidUnsetAddresses, and * bounce InvalidAddresses. * */ //Assume it is a permanent exception, or prove ourselves otherwise boolean permanent = true; switch (sfe.getMessage().charAt(0)) { case '4': permanent = false; break; case '5': permanent = true; break; default: Exception nested = sfe.getNextException(); if (nested != null) { permanent = ('5' == nested.getMessage().charAt(0)); } } return failMessage(mail, sfe, permanent); } catch (MessagingException ex) { // We should do a better job checking this... if the failure is a general // connect exception, this is less descriptive than more specific SMTP command // failure... have to lookup and see what are the various Exception // possibilities //Unable to deliver message after numerous tries... fail accordingly return failMessage(mail, ex, ('5' == ex.getMessage().charAt(0))); } return true; }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/893dd84963d60dc5cf9a4eed55163e419562028a/RemoteDelivery.java/buggy/branches/branch_2_1_fcs/src/java/org/apache/james/transport/mailets/RemoteDelivery.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 11795, 12, 6759, 2828, 4791, 16, 3877, 1339, 13, 288, 3639, 775, 288, 5411, 309, 261, 291, 2829, 13, 288, 7734, 613, 2932, 23089, 358, 11795, 315, 397, 4791, 18, 17994, 10663,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 11795, 12, 6759, 2828, 4791, 16, 3877, 1339, 13, 288, 3639, 775, 288, 5411, 309, 261, 291, 2829, 13, 288, 7734, 613, 2932, 23089, 358, 11795, 315, 397, 4791, 18, 17994, 10663,...
player.pickMarker());
selectedMarkerId);
public static void main(String [] args) { JFrame frame = new JFrame("testing SplitLegion"); int scale = Scale.get(); frame.setSize(new Dimension(80 * scale, 80 * scale)); frame.pack(); frame.setVisible(true); Game game = new Game(); game.initBoard(); MasterHex hex = game.getBoard().getHexByLabel("130"); game.addPlayer("Test"); Player player = game.getPlayer(0); player.setTower(1); player.setColor("Red"); player.initMarkersAvailable(); String selectedMarkerId = player.selectMarkerId("Rd01"); Legion legion = Legion.getStartingLegion(selectedMarkerId, hex.getLabel(), player.getName(), game); player.addLegion(legion); Marker marker = new Marker(4 * scale, selectedMarkerId, frame, game); legion.setMarker(marker); String retval = SplitLegion.splitLegion(frame, legion, player.pickMarker()); System.out.println(retval); System.exit(0); }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/86902f81e383916ddb285ab20096b96c43d25f36/SplitLegion.java/clean/Colossus/SplitLegion.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 5378, 833, 13, 565, 288, 3639, 804, 3219, 2623, 273, 394, 804, 3219, 2932, 3813, 310, 5385, 8329, 285, 8863, 3639, 509, 3159, 273, 12591, 18, 588, 5621, 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, 760, 918, 2774, 12, 780, 5378, 833, 13, 565, 288, 3639, 804, 3219, 2623, 273, 394, 804, 3219, 2932, 3813, 310, 5385, 8329, 285, 8863, 3639, 509, 3159, 273, 12591, 18, 588, 5621, 3...
Modification modification = new Modification();
Modification modification = new Modification("buildstatus");
public List getModifications(Date lastBuild, Date unused) { List modifications = new ArrayList(); File logDirectory = new File(logDir); final String filename = Log.formatLogFileName(lastBuild); try { File[] newLogs = logDirectory.listFiles(new FilenameFilter() { public boolean accept(File dir, String name) { if (name.compareTo(filename) > 0 && Log.wasSuccessfulBuild(name)) { return true; } return false; } }); Modification mostRecent = null; for (int i = 0; i < newLogs.length; i++) { Modification modification = new Modification(); String name = newLogs[i].getName(); modification.modifiedTime = Log.parseDateFromLogFileName(name); modification.userName = "CruiseControl"; modification.comment = "New build"; modification.revision = Log.parseLabelFromLogFileName(name); modification.folderName = ""; modification.fileName = name; modification.type = "add"; if (mostRecent == null || modification.modifiedTime.after(mostRecent.modifiedTime)) { mostRecent = modification; } modifications.add(modification); } // This makes information about the most recent modification // available to Ant tasks if (mostRecent != null) { properties.put(MOST_RECENT_LOGFILE_KEY, mostRecent.fileName); properties.put(MOST_RECENT_LOGTIME_KEY, Project.getFormatedTime(mostRecent.modifiedTime)); properties.put(MOST_RECENT_LOGLABEL_KEY, mostRecent.revision); } } catch (Exception e) { LOG.error("Error checking for modifications", e); } return modifications; }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/6c388b514a0547682989734ceba9679338747a3a/BuildStatus.java/buggy/main/src/net/sourceforge/cruisecontrol/sourcecontrols/BuildStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 336, 28340, 12, 1626, 1142, 3116, 16, 2167, 10197, 13, 288, 3639, 987, 17953, 273, 394, 2407, 5621, 3639, 1387, 613, 2853, 273, 394, 1387, 12, 1330, 1621, 1769, 3639, 727, 514,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 336, 28340, 12, 1626, 1142, 3116, 16, 2167, 10197, 13, 288, 3639, 987, 17953, 273, 394, 2407, 5621, 3639, 1387, 613, 2853, 273, 394, 1387, 12, 1330, 1621, 1769, 3639, 727, 514,...
gl.glBindTexture(GL.GL_TEXTURE_2D, dynamicTextureIDs[CA_TEXTURE_FORCE_TARGET]);
dynamicTextures[CA_TEXTURE_FORCE_TARGET].bind();
private void doSingleTimeStep(GL gl) { int temp; // Swap texture source & target indices & pointers // 0 = start from initial loaded texture // 1/2 = flip flop back and forth between targets & sources switch (flipState) { case 0: texHeightInput = dynamicTextureIDs[CA_TEXTURE_HEIGHT_SOURCE]; // initial height map. texHeightOutput = dynamicTextureIDs[CA_TEXTURE_HEIGHT_TARGET]; // next height map. texVelocityInput = dynamicTextureIDs[CA_TEXTURE_VELOCITY_SOURCE]; // initial velocity. texVelocityOutput = dynamicTextureIDs[CA_TEXTURE_VELOCITY_TARGET]; // next velocity. // Clear initial velocity texture to 0x80 == gray gl.glClearColor(0.5f, 0.5f, 0.5f, 1.0f); gl.glClear(GL.GL_COLOR_BUFFER_BIT); // Now we need to copy the resulting pixels into the intermediate force field texture gl.glActiveTexture(GL.GL_TEXTURE0); gl.glBindTexture(GL.GL_TEXTURE_2D, texVelocityInput); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); break; case 1: temp = texHeightInput; texHeightInput = texHeightOutput; texHeightOutput = temp; temp = texVelocityInput; texVelocityInput = texVelocityOutput; texVelocityOutput = temp; break; case 2: temp = texHeightInput; texHeightInput = texHeightOutput; texHeightOutput = temp; temp = texVelocityInput; texVelocityInput = texVelocityOutput; texVelocityOutput = temp; break; } // even if wireframe mode, render to texture as solid gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL); ///////////////////////////////////////////////////////////// // Render first 3 components of force from three neighbors // Offsets selected are 1 center texel for center height // and 3 of the 4 nearest neighbors. Texture selected // is same for all stages as we're turning height difference // of nearest neightbor texels into a force value. gl.glCallList(displayListIDs[CA_FRAGMENT_PROGRAM_NEIGHBOR_FORCE_CALC_1]); // set current source texture for stage 0 texture for (int i = 0; i < 4; i++) { gl.glActiveTexture(GL.GL_TEXTURE0 + i); gl.glBindTexture(GL.GL_TEXTURE_2D, texHeightInput); gl.glEnable(GL.GL_TEXTURE_2D); } int wrapMode = wrap ? GL.GL_REPEAT : GL.GL_CLAMP_TO_EDGE; gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, wrapMode); gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, wrapMode); // disable blending gl.glDisable(GL.GL_BLEND); // render using offset 1 (type 1 -- center + 3 of 4 nearest neighbors). gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, CV_UV_OFFSET_TO_USE, 1, 0, 0, 0); // bind the vertex program to be used for this step and the next one. gl.glBindProgramARB(GL.GL_VERTEX_PROGRAM_ARB, vertexProgramID); gl.glEnable(GL.GL_VERTEX_PROGRAM_ARB); // render a screen quad. with texture coords doing difference of nearby texels for force calc. gl.glCallList(displayListIDs[CA_DRAW_SCREEN_QUAD]); gl.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB); // Now we need to copy the resulting pixels into the intermediate force field texture gl.glActiveTexture(GL.GL_TEXTURE2); gl.glBindTexture(GL.GL_TEXTURE_2D, dynamicTextureIDs[CA_TEXTURE_FORCE_INTERMEDIATE]); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); //////////////////////////////////////////////////////////////// // Now add in last component of force for the 4th neighbor // that we didn't have enough texture lookups to do in the // first pass gl.glCallList(displayListIDs[CA_FRAGMENT_PROGRAM_NEIGHBOR_FORCE_CALC_2]); // Cannot use additive blending as the force contribution might // be negative and would have to subtract from the dest. // We must instead use an additional texture as target and read // the previous partial 3-neighbor result into the pixel shader // for possible subtraction // Alphablend must be false //; t0 = center (same as last phase) //; t1 = 2nd axis final point (same as last phase) //; t2 = previous partial result texture sampled at center (result of last phase copied to texture) //; t3 = not used (disable now) gl.glTexParameterf(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, wrapMode); gl.glTexParameterf(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, wrapMode); gl.glActiveTexture(GL.GL_TEXTURE3); gl.glDisable(GL.GL_TEXTURE_2D); // vertex program already bound. // render using offset 2 (type 2 -- final nearest neighbor plus center of previous result). gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, CV_UV_OFFSET_TO_USE, 2, 0, 0, 0); // render a screen quad gl.glCallList(displayListIDs[CA_DRAW_SCREEN_QUAD]); gl.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB); // Now we need to copy the resulting pixels into the intermediate force field texture gl.glActiveTexture(GL.GL_TEXTURE1); gl.glBindTexture(GL.GL_TEXTURE_2D, dynamicTextureIDs[CA_TEXTURE_FORCE_TARGET]); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); ///////////////////////////////////////////////////////////////// // Apply the force with a scale factor to reduce it's magnitude. // Add this to the current texture representing the water height. gl.glCallList(displayListIDs[CA_FRAGMENT_PROGRAM_APPLY_FORCE]); // use offsets of zero gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, CV_UV_OFFSET_TO_USE, 0, 0, 0, 0); // bind the vertex program to be used for this step and the next one. gl.glActiveTexture(GL.GL_TEXTURE0); gl.glBindTexture(GL.GL_TEXTURE_2D, texVelocityInput); gl.glActiveTexture(GL.GL_TEXTURE1); gl.glBindTexture(GL.GL_TEXTURE_2D, dynamicTextureIDs[CA_TEXTURE_FORCE_TARGET]); gl.glActiveTexture(GL.GL_TEXTURE2); gl.glDisable(GL.GL_TEXTURE_2D); gl.glActiveTexture(GL.GL_TEXTURE3); gl.glDisable(GL.GL_TEXTURE_2D); // Draw the quad to add in force. gl.glCallList(displayListIDs[CA_DRAW_SCREEN_QUAD]); gl.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB); /////////////////////////////////////////////////////////////////// // With velocity texture selected, render new excitation droplets // at random freq. float randomFrequency = (float) Math.random(); if (dropletFrequency > randomFrequency) { // a drop falls - decide where Droplet drop = new Droplet(2 * ((float)Math.random() - 0.5f), 2 * ((float)Math.random() - 0.5f), 0.02f + 0.1f * ((float)Math.random())); addDroplet(drop); } // Now draw the droplets: if (!droplets.isEmpty()) { drawDroplets(gl); droplets.clear(); } // Now we need to copy the resulting pixels into the velocity texture gl.glActiveTexture(GL.GL_TEXTURE1); gl.glBindTexture(GL.GL_TEXTURE_2D, texVelocityOutput); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); ////////////////////////////////////////////////////////////////////// // Apply velocity to position gl.glCallList(displayListIDs[CA_FRAGMENT_PROGRAM_APPLY_VELOCITY]); gl.glEnable(GL.GL_VERTEX_PROGRAM_ARB); gl.glActiveTexture(GL.GL_TEXTURE0); gl.glBindTexture(GL.GL_TEXTURE_2D, texHeightInput); gl.glActiveTexture(GL.GL_TEXTURE1); // velocity output already bound gl.glEnable(GL.GL_TEXTURE_2D); // use offsets of zero gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, CV_UV_OFFSET_TO_USE, 0, 0, 0, 0); // Draw the quad to add in force. gl.glCallList(displayListIDs[CA_DRAW_SCREEN_QUAD]); gl.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB); // Now we need to copy the resulting pixels into the input height texture gl.glActiveTexture(GL.GL_TEXTURE0); gl.glBindTexture(GL.GL_TEXTURE_2D, texHeightInput); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); /////////////////////////////////////////////////////////////////// // blur positions to smooth noise & generaly dampen things // degree of blur is controlled by magnitude of 4 neighbor texel // offsets with bilinear on for (int i = 1; i < 4; i++) { gl.glActiveTexture(GL.GL_TEXTURE0 + i); gl.glBindTexture(GL.GL_TEXTURE_2D, texHeightInput); gl.glEnable(GL.GL_TEXTURE_2D); } // use offsets of 3 gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, CV_UV_OFFSET_TO_USE, 3, 0, 0, 0); gl.glCallList(displayListIDs[CA_FRAGMENT_PROGRAM_EQ_WEIGHT_COMBINE]); gl.glCallList(displayListIDs[CA_DRAW_SCREEN_QUAD]); gl.glDisable(GL.GL_FRAGMENT_PROGRAM_ARB); // Draw the logo in the water. if (applyInteriorBoundaries) { gl.glDisable(GL.GL_VERTEX_PROGRAM_ARB); drawInteriorBoundaryObjects(gl); } // Now we need to copy the resulting pixels into the velocity texture gl.glActiveTexture(GL.GL_TEXTURE0); gl.glBindTexture(GL.GL_TEXTURE_2D, texHeightOutput); // use CopyTexSubImage for speed (even though we copy all of it) since we pre-allocated the texture gl.glCopyTexSubImage2D(GL.GL_TEXTURE_2D, 0, 0, 0, 0, 0, initialMapDimensions[0], initialMapDimensions[1]); /////////////////////////////////////////////////////////////////// // If selected, create a normal map from the height if (createNormalMap) { createNormalMap(gl); } /////////////////////////////////////////////////////////// // Flip the state variable for the next round of rendering switch (flipState) { case 0: flipState = 1; break; case 1: flipState = 2; break; case 2: flipState = 1; break; } }
8999 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8999/2e32df6eb0181d50f002e0dfe055572b60088428/Water.java/buggy/src/demos/proceduralTexturePhysics/Water.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 741, 5281, 950, 4160, 12, 11261, 5118, 13, 288, 565, 509, 1906, 31, 565, 368, 12738, 11428, 1084, 473, 1018, 4295, 473, 13857, 565, 368, 225, 374, 273, 787, 628, 2172, 4203, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 5281, 950, 4160, 12, 11261, 5118, 13, 288, 565, 509, 1906, 31, 565, 368, 12738, 11428, 1084, 473, 1018, 4295, 473, 13857, 565, 368, 225, 374, 273, 787, 628, 2172, 4203, ...
public void begin( InterpretationContext ec, String localName, Attributes attributes) { //LogLog.debug("in NestComponentIA begin method"); // get the action data object pushed in isApplicable() method call ImplicitActionData actionData = (ImplicitActionData) actionDataStack.peek(); String className = attributes.getValue(CLASS_ATTRIBUTE); // perform variable name substitution className = ec.subst(className); if (OptionHelper.isEmpty(className)) { actionData.inError = true; String errMsg = "No class name attribute in <" + localName + ">"; addError(errMsg); return; } try { //getLogger().debug( // "About to instantiate component <{}> of type [{}]", localName, // className); // FIXME: Loading classes should be governed by config file rules. actionData.nestedComponent = Loader.loadClass(className).newInstance(); // pass along the repository if(actionData.nestedComponent instanceof ContextAware) { ((ContextAware) actionData.nestedComponent).setContext(this.context); } //getLogger().debug( addInfo("Pushing component <"+localName+"> on top of the object stack."); ec.pushObject(actionData.nestedComponent); } catch (Exception oops) { actionData.inError = true; String msg = "Could not create component <" + localName + "> of type ["+className+"]"; addError(msg, oops); } }
46578 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46578/445c93509c33d1cf431a1f997c92db98d3b8fd69/NestedComponentIA.java/clean/logback-core/src/main/java/ch/qos/logback/core/joran/action/NestedComponentIA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2376, 12, 565, 5294, 15089, 367, 1042, 6557, 16, 514, 11927, 16, 9055, 1677, 13, 288, 565, 368, 1343, 1343, 18, 4148, 2932, 267, 423, 395, 1841, 15188, 2376, 707, 8863, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2376, 12, 565, 5294, 15089, 367, 1042, 6557, 16, 514, 11927, 16, 9055, 1677, 13, 288, 565, 368, 1343, 1343, 18, 4148, 2932, 267, 423, 395, 1841, 15188, 2376, 707, 8863, 565, ...
openPerspMode = IPreferenceConstants.OPM_ACTIVE_PAGE; }
openPerspMode = IPreferenceConstants.OPM_ACTIVE_PAGE; }
public void widgetSelected(SelectionEvent e) { openPerspMode = IPreferenceConstants.OPM_ACTIVE_PAGE; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/746367859d59773cbeff2310599d50ef5545f979/PerspectivesPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/PerspectivesPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 1696, 14781, 84, 2309, 273, 467, 9624, 2918, 18, 3665, 49, 67, 13301, 67, 11219, 31, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 1696, 14781, 84, 2309, 273, 467, 9624, 2918, 18, 3665, 49, 67, 13301, 67, 11219, 31, 5411, 289, 2, -100, -100, -100, -100, -1...
throws TransformerException { System.err.println("FATAL: "+e.getMessageAndLocation());
throws TransformerException { System.err.println("FATAL: " + e.getMessageAndLocation());
public void fatalError(TransformerException e) throws TransformerException { System.err.println("FATAL: "+e.getMessageAndLocation()); Throwable wrapped = e.getException(); if (wrapped != null) System.err.println(" : "+wrapped.getMessage()); throw(e); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/ee5f7629a90e982a1395486f1cb4e74a3269d07f/TransformerImpl.java/buggy/src/org/apache/xalan/xsltc/trax/TransformerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10081, 668, 12, 8319, 503, 425, 13, 202, 15069, 21684, 288, 202, 3163, 18, 370, 18, 8222, 2932, 29891, 30, 13773, 73, 18, 24906, 1876, 2735, 10663, 202, 15155, 5805, 273, 425, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10081, 668, 12, 8319, 503, 425, 13, 202, 15069, 21684, 288, 202, 3163, 18, 370, 18, 8222, 2932, 29891, 30, 13773, 73, 18, 24906, 1876, 2735, 10663, 202, 15155, 5805, 273, 425, ...
private Chart getConvertedChart( Chart currentChart, String sNewSubType, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); if ( ( currentChart instanceof ChartWithAxes ) ) { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithoutAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); if ( !currentChart.getType( ).equals( LineChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( BarChart.TYPE_LITERAL ) && !currentChart.getType( ).equals( AreaChart.TYPE_LITERAL ) ) { currentChart.setSampleData( getConvertedSampleData( helperModel.getSampleData( ) ) ); } currentChart.setScript( helperModel.getScript( ) ); if ( helperModel.isSetSeriesThickness( ) ) { currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); } else { currentChart.setSeriesThickness( 15 ); } currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getGridColumnCount( ) > 0 ) { currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); } else { currentChart.setGridColumnCount( 1 ); } // Copy series definitions from old chart ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .add( ( (Axis) ( (ChartWithAxes) helperModel ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ); Vector vOSD = new Vector( ); EList axesOrthogonal = ( (Axis) ( (ChartWithAxes) helperModel ).getAxes( ) .get( 0 ) ).getAssociatedAxes( ); for ( int i = 0; i < axesOrthogonal.size( ); i++ ) { EList osd = ( (Axis) axesOrthogonal.get( i ) ).getSeriesDefinitions( ); for ( int j = 0; j < osd.size( ); j++ ) { SeriesDefinition sd = (SeriesDefinition) osd.get( j ); Series series = sd.getDesignTimeSeries( ); sd.getSeries( ).clear( ); sd.getSeries( ).add( getConvertedSeries( series ) ); vOSD.add( sd ); } } ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ).clear( ); ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ).addAll( vOSD ); // Set the legend item type t Categories to have the chart behave as // expected by default. currentChart.getLegend( ) .setItemType( LegendItemType.CATEGORIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); } else if ( currentChart instanceof ChartWithoutAxes ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) { currentChart.setSubType( sNewSubType ); if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } if ( !currentChart.isSetSeriesThickness( ) ) { currentChart.setSeriesThickness( 15 ); } } else { // Create a new instance of the correct type and set initial // properties currentChart = ChartWithoutAxesImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setSeriesThickness( helperModel.getSeriesThickness( ) ); currentChart.setUnits( helperModel.getUnits( ) ); // Clear existing series definitions ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .clear( ); // Copy series definitions ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .addAll( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) ); // Update the series EList seriesdefinitions = ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ); Series series; for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series ); // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } currentChart.getLegend( ) .setItemType( LegendItemType.CATEGORIES_LITERAL ); currentChart.getTitle( ).getLabel( ).getCaption( ).setValue( CHART_TITLE ); } } else { return null; } return currentChart; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/afaae2e20ac670dea4214a8e9c6bcef7f6f44e06/PieChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/PieChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 780, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, 273, 261, 7984, 13, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14804, 336, 22063, 7984, 12, 14804, 783, 7984, 16, 514, 272, 1908, 30511, 16, 1082, 202, 780, 272, 1908, 8611, 262, 202, 95, 202, 202, 7984, 4222, 1488, 273, 261, 7984, 13, 5...
limit = type + 4;
limit = type + 4;
ArcIterator(Arc2D a, AffineTransform xform) { this.xform = xform; x = a.getX(); y = a.getY(); w = a.getWidth(); h = a.getHeight(); start = a.getAngleStart() * (Math.PI / 180); extent = a.getAngleExtent() * (Math.PI / 180); type = a.type; double e = extent < 0 ? -extent : extent; if (w < 0 || h < 0) limit = -1; else if (e == 0) limit = type; else if (e <= Math.PI / 2.0) limit = type + 1; else if (e <= Math.PI) limit = type + 2; else if (e <= 3.0 * (Math.PI / 2.0)) limit = type + 3; else limit = type + 4; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b20d0a695843e575c328a55000265cb08be3480d/Arc2D.java/buggy/libraries/javalib/java/awt/geom/Arc2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 24881, 3198, 12, 14598, 22, 40, 279, 16, 23906, 558, 4059, 619, 687, 13, 565, 288, 1377, 333, 18, 92, 687, 273, 619, 687, 31, 1377, 619, 273, 279, 18, 588, 60, 5621, 1377, 677, 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, 24881, 3198, 12, 14598, 22, 40, 279, 16, 23906, 558, 4059, 619, 687, 13, 565, 288, 1377, 333, 18, 92, 687, 273, 619, 687, 31, 1377, 619, 273, 279, 18, 588, 60, 5621, 1377, 677, 273, ...
private String tr(RubyString search, RubyString replace, boolean squeeze) { String srchSpec = search.getValue();
private String tr(IRubyObject search, IRubyObject replace, boolean squeeze) { String srchSpec = search.convertToString().getValue();
private String tr(RubyString search, RubyString replace, boolean squeeze) { String srchSpec = search.getValue(); String srch = expandTemplate(srchSpec, true); if (srchSpec.startsWith("^")) { StringBuffer sbuf = new StringBuffer(256); for (int i = 0; i < 256; i++) { char c = (char) i; if (srch.indexOf(c) == -1) { sbuf.append(c); } } srch = sbuf.toString(); } String repl = expandTemplate(replace.getValue(), false); int strLen = getValue().length(); if (strLen == 0 || srch.length() == 0) { return getValue(); } int repLen = repl.length(); StringBuffer sbuf = new StringBuffer(strLen); int last = -1; for (int i = 0; i < strLen; i++) { char cs = getValue().charAt(i); int pos = srch.indexOf(cs); if (pos == -1) { sbuf.append(cs); last = -1; } else if (repLen > 0) { char cr = repl.charAt(Math.min(pos, repLen - 1)); if (squeeze && cr == last) { continue; } sbuf.append(cr); last = cr; } } return sbuf.toString(); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 433, 12, 54, 10340, 780, 1623, 16, 19817, 780, 1453, 16, 1250, 17173, 13, 288, 202, 202, 780, 9133, 343, 1990, 273, 1623, 18, 24805, 5621, 202, 202, 780, 9133, 343, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 433, 12, 54, 10340, 780, 1623, 16, 19817, 780, 1453, 16, 1250, 17173, 13, 288, 202, 202, 780, 9133, 343, 1990, 273, 1623, 18, 24805, 5621, 202, 202, 780, 9133, 343, 273,...
if (hilliness > 1000) { hilliness = 1000;
if (hilliness > 99) { hilliness = 99;
public void validateMapGenParameters() { if (hilliness < 0) { hilliness = 0; } if (hilliness > 1000) { hilliness = 1000; } if (range < 0 ) { range = 0; } if (minWaterSpots < 0) { minWaterSpots = 0; } if (maxWaterSpots < minWaterSpots) { maxWaterSpots = minWaterSpots; } if (minWaterSize < 0) { minWaterSize = 0; } if (maxWaterSize < minWaterSize) { maxWaterSize = minWaterSize; } if (probDeep < 0) { probDeep = 0; } if (probDeep > 100) { probDeep = 100; } if (minForestSpots < 0) { minForestSpots = 0; } if (maxForestSpots < minForestSpots) { maxForestSpots = minForestSpots; } if (minForestSize < 0) { minForestSize = 0; } if (maxForestSize < minForestSize) { maxForestSize = minForestSize; } if (probHeavy < 0) { probHeavy = 0; } if (probHeavy > 100) { probHeavy = 100; } if (minRoughSpots < 0) { minRoughSpots = 0; } if (maxRoughSpots < minRoughSpots) { maxRoughSpots = minRoughSpots; } if (minRoughSize < 0) { minRoughSize = 0; } if (maxRoughSize < minRoughSize) { maxRoughSize = minRoughSize; } if (minSwampSpots < 0) { minSwampSpots = 0; } if (maxSwampSpots < minSwampSpots) { maxSwampSpots = minSwampSpots; } if (minSwampSize < 0) { minSwampSize = 0; } if (maxSwampSize < minSwampSize) { maxSwampSize = minSwampSize; } if (probRoad < 0) { probRoad = 0; } if (probRoad > 100) { probRoad = 100; } if (probInvert < 0) { probInvert = 0; } if (probInvert > 100) { probInvert = 100; } if (probRiver < 0) { probRiver = 0; } if (probRiver > 100) { probRiver = 100; } if (probCrater < 0) { probCrater = 0; } if (probCrater > 100) { probCrater = 100; } if (minRadius < 0) { minRadius = 0; } if (maxRadius < minRadius) { maxRadius = minRadius; } if (minCraters < 0 ) { minCraters = 0; } if (maxCraters < minCraters) { maxCraters = minCraters; } if (algorithmToUse < 0) { algorithmToUse = 0; } if (algorithmToUse > 2) { algorithmToUse = 2; } } /* validateMapGenParameters */
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/a63109655931e71b9b5a873a31af0d6a779aa4a0/MapSettings.java/buggy/megamek/src/megamek/common/MapSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1954, 863, 7642, 2402, 1435, 288, 565, 309, 261, 76, 737, 6336, 411, 374, 13, 288, 3639, 366, 737, 6336, 273, 374, 31, 565, 289, 565, 309, 261, 76, 737, 6336, 405, 4336, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1954, 863, 7642, 2402, 1435, 288, 565, 309, 261, 76, 737, 6336, 411, 374, 13, 288, 3639, 366, 737, 6336, 273, 374, 31, 565, 289, 565, 309, 261, 76, 737, 6336, 405, 4336, 13...
if (networkInterfaces == null) networkInterfaces = getRealNetworkInterfaces ();
Vector networkInterfaces = getRealNetworkInterfaces ();
public static Enumeration getNetworkInterfaces () throws SocketException { if (networkInterfaces == null) networkInterfaces = getRealNetworkInterfaces (); Enumeration tmp = networkInterfaces.elements (); if (tmp.hasMoreElements ()) return tmp; return null; }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/9457d1e514cd0c7531df656d96bba3557ced520c/NetworkInterface.java/clean/libjava/java/net/NetworkInterface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 13864, 28263, 10273, 1832, 565, 1216, 8758, 503, 225, 288, 565, 309, 261, 5185, 10273, 422, 446, 13, 1377, 2483, 10273, 273, 12361, 3906, 10273, 261, 1769, 565, 13864, 1853, 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, 282, 1071, 760, 13864, 28263, 10273, 1832, 565, 1216, 8758, 503, 225, 288, 565, 309, 261, 5185, 10273, 422, 446, 13, 1377, 2483, 10273, 273, 12361, 3906, 10273, 261, 1769, 565, 13864, 1853, 273,...
public void mTokens() throws RecognitionException { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:10: ( T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | T58 | T59 | T60 | T61 | MISC | WS | EOL | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT ) int alt16=58; alt16 = dfa16.predict(input); if (failed) return ; switch (alt16) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:10: T15 { mT15(); if (failed) return ; } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:14: T16 { mT16(); if (failed) return ; } break; case 3 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:18: T17 { mT17(); if (failed) return ; } break; case 4 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:22: T18 { mT18(); if (failed) return ; } break; case 5 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:26: T19 { mT19(); if (failed) return ; } break; case 6 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:30: T20 { mT20(); if (failed) return ; } break; case 7 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:34: T21 { mT21(); if (failed) return ; } break; case 8 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:38: T22 { mT22(); if (failed) return ; } break; case 9 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:42: T23 { mT23(); if (failed) return ; } break; case 10 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:46: T24 { mT24(); if (failed) return ; } break; case 11 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:50: T25 { mT25(); if (failed) return ; } break; case 12 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:54: T26 { mT26(); if (failed) return ; } break; case 13 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:58: T27 { mT27(); if (failed) return ; } break; case 14 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:62: T28 { mT28(); if (failed) return ; } break; case 15 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:66: T29 { mT29(); if (failed) return ; } break; case 16 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:70: T30 { mT30(); if (failed) return ; } break; case 17 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:74: T31 { mT31(); if (failed) return ; } break; case 18 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:78: T32 { mT32(); if (failed) return ; } break; case 19 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:82: T33 { mT33(); if (failed) return ; } break; case 20 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:86: T34 { mT34(); if (failed) return ; } break; case 21 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:90: T35 { mT35(); if (failed) return ; } break; case 22 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:94: T36 { mT36(); if (failed) return ; } break; case 23 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:98: T37 { mT37(); if (failed) return ; } break; case 24 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:102: T38 { mT38(); if (failed) return ; } break; case 25 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:106: T39 { mT39(); if (failed) return ; } break; case 26 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:110: T40 { mT40(); if (failed) return ; } break; case 27 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:114: T41 { mT41(); if (failed) return ; } break; case 28 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:118: T42 { mT42(); if (failed) return ; } break; case 29 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:122: T43 { mT43(); if (failed) return ; } break; case 30 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:126: T44 { mT44(); if (failed) return ; } break; case 31 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:130: T45 { mT45(); if (failed) return ; } break; case 32 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:134: T46 { mT46(); if (failed) return ; } break; case 33 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:138: T47 { mT47(); if (failed) return ; } break; case 34 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:142: T48 { mT48(); if (failed) return ; } break; case 35 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:146: T49 { mT49(); if (failed) return ; } break; case 36 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:150: T50 { mT50(); if (failed) return ; } break; case 37 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:154: T51 { mT51(); if (failed) return ; } break; case 38 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:158: T52 { mT52(); if (failed) return ; } break; case 39 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:162: T53 { mT53(); if (failed) return ; } break; case 40 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:166: T54 { mT54(); if (failed) return ; } break; case 41 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:170: T55 { mT55(); if (failed) return ; } break; case 42 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:174: T56 { mT56(); if (failed) return ; } break; case 43 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:178: T57 { mT57(); if (failed) return ; } break; case 44 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:182: T58 { mT58(); if (failed) return ; } break; case 45 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:186: T59 { mT59(); if (failed) return ; } break; case 46 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:190: T60 { mT60(); if (failed) return ; } break; case 47 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:194: T61 { mT61(); if (failed) return ; } break; case 48 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:198: MISC { mMISC(); if (failed) return ; } break; case 49 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:203: WS { mWS(); if (failed) return ; } break; case 50 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:206: EOL { mEOL(); if (failed) return ; } break; case 51 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:210: INT { mINT(); if (failed) return ; } break; case 52 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:214: FLOAT { mFLOAT(); if (failed) return ; } break; case 53 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:220: STRING { mSTRING(); if (failed) return ; } break; case 54 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:227: BOOL { mBOOL(); if (failed) return ; } break; case 55 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:232: ID { mID(); if (failed) return ; } break; case 56 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:235: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 57 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:264: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 58 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1:292: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/cb210a30853642e270a3bba6ce570409f6046852/RuleParserLexer.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5157, 1435, 1216, 9539, 288, 3639, 368, 342, 8712, 19, 81, 1354, 69, 292, 19, 13582, 19, 10649, 8464, 17, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, ...
System.out.println("Usage: MondrianFoodMartLoader [-verbose] [-tables] [-data] [-indexes] [-populationQueries]" +
System.out.println("Usage: MondrianFoodMartLoader [-tables] [-data] [-indexes] [-populationQueries]" +
public void usage() { System.out.println("Usage: MondrianFoodMartLoader [-verbose] [-tables] [-data] [-indexes] [-populationQueries]" + "-jdbcDrivers=<jdbcDriver> " + "-outputJdbcURL=<jdbcURL> [-outputJdbcUser=user] [-outputJdbcPassword=password]" + "[-outputJdbcBatchSize=<batch size>] " + "| " + "[-outputDirectory=<directory name>] " + "[" + " [-inputJdbcURL=<jdbcURL> [-inputJdbcUser=user] [-inputJdbcPassword=password]]" + " | " + " [-inputfile=<file name>]" + "]"); System.out.println(""); System.out.println(" <jdbcURL> JDBC connect string for DB"); System.out.println(" [user] JDBC user name for DB"); System.out.println(" [password] JDBC password for user for DB"); System.out.println(" If no source DB parameters are given, assumes data comes from file"); System.out.println(" [file name] file containing test data - INSERT statements in MySQL format"); System.out.println(" If no input file name or input JDBC parameters are given, assume insert statements come from demo/FoodMartCreateData.zip file"); System.out.println(" [outputDirectory] Where FoodMartCreateTables.sql, FoodMartCreateData.sql and FoodMartCreateIndexes.sql will be created"); System.out.println(" <batch size> size of JDBC batch updates - default to 50 inserts"); System.out.println(" <jdbcDrivers> Comma-separated list of JDBC drivers."); System.out.println(" They must be on the classpath."); System.out.println(" -verbose Verbose mode."); System.out.println(" -tables If specified, drop and create the tables."); System.out.println(" -data If specified, load the data."); System.out.println(" -indexes If specified, drop and create the tables."); System.out.println(" -populationQueries If specified, run the data loading queries. Runs by default if -data is specified."); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/fb2c3676710865fd954e58e04ef53f8b10bd8d52/MondrianFoodMartLoader.java/clean/testsrc/main/mondrian/test/loader/MondrianFoodMartLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4084, 1435, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 5357, 30, 490, 1434, 566, 304, 42, 4773, 49, 485, 2886, 23059, 9373, 65, 23059, 892, 65, 23059, 11265, 65, 23059, 23555, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4084, 1435, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 5357, 30, 490, 1434, 566, 304, 42, 4773, 49, 485, 2886, 23059, 9373, 65, 23059, 892, 65, 23059, 11265, 65, 23059, 23555, ...
if (themeColorRegistry != null)
if (themeColorRegistry != null) {
public ColorRegistry getColorRegistry() { if (themeColorRegistry != null) return themeColorRegistry; return WorkbenchThemeManager.getInstance() .getDefaultThemeColorRegistry(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/Theme.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/Theme.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5563, 4243, 15672, 4243, 1435, 288, 202, 202, 430, 261, 7997, 2957, 4243, 480, 446, 13, 1082, 202, 2463, 5006, 2957, 4243, 31, 202, 202, 2463, 4147, 22144, 8335, 1318, 18, 588, 1442...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5563, 4243, 15672, 4243, 1435, 288, 202, 202, 430, 261, 7997, 2957, 4243, 480, 446, 13, 1082, 202, 2463, 5006, 2957, 4243, 31, 202, 202, 2463, 4147, 22144, 8335, 1318, 18, 588, 1442...
pushFollow(FOLLOW_lhs_and_in_lhs_or2778);
pushFollow(FOLLOW_lhs_and_in_lhs_or2760);
public BaseDescr lhs_or() throws RecognitionException { BaseDescr d = null; BaseDescr left = null; BaseDescr right = null; d = null; OrDescr or = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1178:3: (left= lhs_and ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )* ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1178:3: left= lhs_and ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )* { pushFollow(FOLLOW_lhs_and_in_lhs_or2759); left=lhs_and(); _fsp--; if (failed) return d; if ( backtracking==0 ) { d = left; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1179:3: ( ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and )* loop42: do { int alt42=2; int LA42_0 = input.LA(1); if ( ((LA42_0>=53 && LA42_0<=54)) ) { alt42=1; } switch (alt42) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1179:5: ( ('or'|'||') lhs_and )=> ('or'|'||')right= lhs_and { if ( (input.LA(1)>=53 && input.LA(1)<=54) ) { input.consume(); errorRecovery=false;failed=false; } else { if (backtracking>0) {failed=true; return d;} MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_or2768); throw mse; } pushFollow(FOLLOW_lhs_and_in_lhs_or2778); right=lhs_and(); _fsp--; if (failed) return d; if ( backtracking==0 ) { if ( or == null ) { or = new OrDescr(); or.addDescr( left ); d = or; } or.addDescr( right ); } } break; default : break loop42; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/afea9f80e7c11e7b76df18f232d3b5ca5ad21e72/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3360, 16198, 8499, 67, 280, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 2002, 273, 446, 31, 3639, 3360, 16198, 2145, 273, 446, 31, 1171, 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, 377, 1071, 3360, 16198, 8499, 67, 280, 1435, 1216, 9539, 288, 6647, 3360, 16198, 302, 273, 446, 31, 3639, 3360, 16198, 2002, 273, 446, 31, 3639, 3360, 16198, 2145, 273, 446, 31, 1171, 202, 202...
sheet.refresh(); editor.refresh();
revalidate(); repaint();
public void addNormalEditor(PropertySheet sheet, ConfigElement elm, Object value, PropertyDefinition prop_def, String label, int row, int list_num) { PropertyEditorPanel editor = new PropertyEditorPanel(value, prop_def, elm, list_num, sheet.getColor()); ((TableLayout)sheet.getLayout()).insertRow(row, TableLayout.PREFERRED); // Add both columns to this row. TableLayoutConstraints c = new TableLayoutConstraints(1, row, 1, row, TableLayout.FULL, TableLayout.FULL); sheet.add(editor, c); sheet.add(new JLabel(label), "0," + Integer.toString(row) + ",F,F"); addDeleteButton(sheet, elm, prop_def, value, row); //We must refresh things in the following order: // 1) This control. // 2) All contained containers recursively. sheet.refresh(); editor.refresh(); }
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/83ec27c8c32995f2b6128b170ad2836749c83e72/PropertySheetFactory.java/buggy/modules/jackal/editors/org/vrjuggler/jccl/editors/PropertySheetFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 527, 5506, 6946, 12, 1396, 8229, 6202, 16, 1903, 1046, 12531, 16, 1033, 460, 16, 4766, 4276, 1852, 2270, 67, 536, 16, 514, 1433, 16, 509, 1027, 16, 509, 666, 67, 2107, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 527, 5506, 6946, 12, 1396, 8229, 6202, 16, 1903, 1046, 12531, 16, 1033, 460, 16, 4766, 4276, 1852, 2270, 67, 536, 16, 514, 1433, 16, 509, 1027, 16, 509, 666, 67, 2107, 13, ...
componentClassAsStream = ClassLoader.getSystemClassLoader().getResourceAsStream(componentName + ".class");
componentClassAsStream = ClassLoader.getSystemClassLoader().getResourceAsStream( componentName + ".class" );
private static ClassInfo createClassInfoFromStream(final String name, final ClassLoader loader, boolean lazyAttributes) { final String className = name.replace('.', '/'); // to handle primitive type we need to know the array dimension if (name.indexOf('/') < 0) { // it might be one // gets its non array component type and the dimension int dimension = 0; for (int i = className.indexOf('['); i > 0; i = className.indexOf('[', i+1)) { dimension++; } String unidimComponentName = className; if (dimension > 0) { int unidimComponentTypeIndex = className.indexOf('['); unidimComponentName = className.substring(0, unidimComponentTypeIndex); } Class primitiveClass = AsmClassInfo.getPrimitiveClass(unidimComponentName); if (primitiveClass != null && primitiveClass.isPrimitive()) { if (dimension == 0) { return JavaClassInfo.getClassInfo(primitiveClass); } else { Class arrayClass = Array.newInstance(primitiveClass, new int[dimension]).getClass(); return JavaClassInfo.getClassInfo(arrayClass); } } } // for non primitive, we need to chain component type ala java.lang.reflect // to support multi. dim. arrays int componentTypeIndex = className.lastIndexOf('['); String componentName = className; boolean isArray = false; if (componentTypeIndex > 0) { componentName = className.substring(0, componentTypeIndex); isArray = true; } ClassInfo componentInfo = null; // is component yet another array ie this name is a multi dim array ? if (componentName.indexOf('[') > 0) { componentInfo = getClassInfo(componentName, loader); } else { InputStream componentClassAsStream = null; if (loader != null) { componentClassAsStream = loader.getResourceAsStream(componentName + ".class"); } else { // boot class loader, fall back to system classloader that will see it anyway componentClassAsStream = ClassLoader.getSystemClassLoader().getResourceAsStream(componentName + ".class"); } if (componentClassAsStream == null) { // might be more than one dimension if (componentName.indexOf('[') > 0) { return getClassInfo(componentName, loader); } System.out.println( "AW::WARNING - could not load class [" + componentName + "] as a resource in loader [" + loader + "]" ); componentInfo = new ClassInfo.NullClassInfo(); } try { componentInfo = AsmClassInfo.getClassInfo(componentClassAsStream, loader, lazyAttributes); } finally { try { componentClassAsStream.close(); } catch (Exception e) { ; } } } if (!isArray) { return componentInfo; } else { return AsmClassInfo.getArrayClassInfo(className, loader, componentInfo); } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/ddd965be4dbba0d956f2bbc3a923a154b2b70fdd/AsmClassInfo.java/buggy/aspectwerkz4/src/main/org/codehaus/aspectwerkz/reflect/impl/asm/AsmClassInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 19010, 752, 19455, 1265, 1228, 12, 6385, 514, 508, 16, 4766, 15604, 727, 9403, 4088, 16, 4766, 15604, 1250, 7962, 2498, 13, 288, 3639, 727, 514, 2658, 273, 508, 18, 2079, 2668,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 19010, 752, 19455, 1265, 1228, 12, 6385, 514, 508, 16, 4766, 15604, 727, 9403, 4088, 16, 4766, 15604, 1250, 7962, 2498, 13, 288, 3639, 727, 514, 2658, 273, 508, 18, 2079, 2668,...
addKeyword( TokenNames.REGISTER.toUpperCase(), TokenTypes.REGISTER); addKeyword(TokenNames.ACK.toUpperCase(), TokenTypes.ACK); addKeyword( TokenNames.OPTIONS.toUpperCase(), TokenTypes.OPTIONS); addKeyword(TokenNames.BYE.toUpperCase(), TokenTypes.BYE); addKeyword(TokenNames.INVITE.toUpperCase(), TokenTypes.INVITE);
addKeyword(TokenNames.REGISTER,TokenTypes.REGISTER); addKeyword(TokenNames.ACK, TokenTypes.ACK); addKeyword(TokenNames.OPTIONS,TokenTypes.OPTIONS); addKeyword(TokenNames.BYE, TokenTypes.BYE); addKeyword(TokenNames.INVITE, TokenTypes.INVITE);
public void selectLexer(String lexerName) { synchronized( lexerTables ) { // Synchronization Bug fix by Robert Rosen. currentLexer = (Hashtable) lexerTables.get(lexerName); this.currentLexerName = lexerName; if (currentLexer == null) { addLexer(lexerName); if (lexerName.equals("method_keywordLexer")) { addKeyword( TokenNames.REGISTER.toUpperCase(), TokenTypes.REGISTER); addKeyword(TokenNames.ACK.toUpperCase(), TokenTypes.ACK); addKeyword( TokenNames.OPTIONS.toUpperCase(), TokenTypes.OPTIONS); addKeyword(TokenNames.BYE.toUpperCase(), TokenTypes.BYE); addKeyword(TokenNames.INVITE.toUpperCase(), TokenTypes.INVITE); addKeyword(TokenNames.SIP.toUpperCase(), TokenTypes.SIP); addKeyword(TokenNames.SUBSCRIBE.toUpperCase(),TokenTypes.SUBSCRIBE); addKeyword(TokenNames.NOTIFY.toUpperCase(), TokenTypes.NOTIFY); addKeyword(TokenNames.MESSAGE.toUpperCase(),TokenTypes.MESSAGE); // JvB: added to support RFC3903 addKeyword(TokenNames.PUBLISH.toUpperCase(), TokenTypes.PUBLISH); } else if (lexerName.equals("command_keywordLexer")) { addKeyword( ErrorInfoHeader.NAME.toUpperCase(), TokenTypes.ERROR_INFO); addKeyword( AllowEventsHeader.NAME.toUpperCase(), TokenTypes.ALLOW_EVENTS); addKeyword( AuthenticationInfoHeader.NAME.toUpperCase(), TokenTypes.AUTHENTICATION_INFO); addKeyword(EventHeader.NAME.toUpperCase(), TokenTypes.EVENT); addKeyword( MinExpiresHeader.NAME.toUpperCase(), TokenTypes.MIN_EXPIRES); addKeyword(RSeqHeader.NAME.toUpperCase(), TokenTypes.RSEQ); addKeyword(RAckHeader.NAME.toUpperCase(), TokenTypes.RACK); addKeyword(ReasonHeader.NAME.toUpperCase(), TokenTypes.REASON); addKeyword( ReplyToHeader.NAME.toUpperCase(), TokenTypes.REPLY_TO); addKeyword( SubscriptionStateHeader.NAME.toUpperCase(), TokenTypes.SUBSCRIPTION_STATE); addKeyword( TimeStampHeader.NAME.toUpperCase(), TokenTypes.TIMESTAMP); addKeyword( InReplyToHeader.NAME.toUpperCase(), TokenTypes.IN_REPLY_TO); addKeyword( MimeVersionHeader.NAME.toUpperCase(), TokenTypes.MIME_VERSION); addKeyword( AlertInfoHeader.NAME.toUpperCase(), TokenTypes.ALERT_INFO); addKeyword(FromHeader.NAME.toUpperCase(), TokenTypes.FROM); addKeyword(ToHeader.NAME.toUpperCase(), TokenTypes.TO); addKeyword( ReferToHeader.NAME.toUpperCase(), TokenTypes.REFER_TO); addKeyword(ViaHeader.NAME.toUpperCase(), TokenTypes.VIA); addKeyword( UserAgentHeader.NAME.toUpperCase(), TokenTypes.USER_AGENT); addKeyword(ServerHeader.NAME.toUpperCase(), TokenTypes.SERVER); addKeyword( AcceptEncodingHeader.NAME.toUpperCase(), TokenTypes.ACCEPT_ENCODING); addKeyword(AcceptHeader.NAME.toUpperCase(), TokenTypes.ACCEPT); addKeyword(AllowHeader.NAME.toUpperCase(), TokenTypes.ALLOW); addKeyword(RouteHeader.NAME.toUpperCase(), TokenTypes.ROUTE); addKeyword( AuthorizationHeader.NAME.toUpperCase(), TokenTypes.AUTHORIZATION); addKeyword( ProxyAuthorizationHeader.NAME.toUpperCase(), TokenTypes.PROXY_AUTHORIZATION); addKeyword( RetryAfterHeader.NAME.toUpperCase(), TokenTypes.RETRY_AFTER); addKeyword( ProxyRequireHeader.NAME.toUpperCase(), TokenTypes.PROXY_REQUIRE); addKeyword( ContentLanguageHeader.NAME.toUpperCase(), TokenTypes.CONTENT_LANGUAGE); addKeyword( UnsupportedHeader.NAME.toUpperCase(), TokenTypes.UNSUPPORTED); addKeyword( SupportedHeader.NAME.toUpperCase(), TokenTypes.SUPPORTED); addKeyword( WarningHeader.NAME.toUpperCase(), TokenTypes.WARNING); addKeyword( MaxForwardsHeader.NAME.toUpperCase(), TokenTypes.MAX_FORWARDS); addKeyword(DateHeader.NAME.toUpperCase(), TokenTypes.DATE); addKeyword( PriorityHeader.NAME.toUpperCase(), TokenTypes.PRIORITY); addKeyword( ProxyAuthenticateHeader.NAME.toUpperCase(), TokenTypes.PROXY_AUTHENTICATE); addKeyword( ContentEncodingHeader.NAME.toUpperCase(), TokenTypes.CONTENT_ENCODING); addKeyword( ContentLengthHeader.NAME.toUpperCase(), TokenTypes.CONTENT_LENGTH); addKeyword( SubjectHeader.NAME.toUpperCase(), TokenTypes.SUBJECT); addKeyword( ContentTypeHeader.NAME.toUpperCase(), TokenTypes.CONTENT_TYPE); addKeyword( ContactHeader.NAME.toUpperCase(), TokenTypes.CONTACT); addKeyword(CallIdHeader.NAME.toUpperCase(), TokenTypes.CALL_ID); addKeyword( RequireHeader.NAME.toUpperCase(), TokenTypes.REQUIRE); addKeyword( ExpiresHeader.NAME.toUpperCase(), TokenTypes.EXPIRES); addKeyword( RecordRouteHeader.NAME.toUpperCase(), TokenTypes.RECORD_ROUTE); addKeyword( OrganizationHeader.NAME.toUpperCase(), TokenTypes.ORGANIZATION); addKeyword(CSeqHeader.NAME.toUpperCase(), TokenTypes.CSEQ); addKeyword( AcceptLanguageHeader.NAME.toUpperCase(), TokenTypes.ACCEPT_LANGUAGE); addKeyword( WWWAuthenticateHeader.NAME.toUpperCase(), TokenTypes.WWW_AUTHENTICATE); addKeyword( CallInfoHeader.NAME.toUpperCase(), TokenTypes.CALL_INFO); addKeyword( ContentDispositionHeader.NAME.toUpperCase(), TokenTypes.CONTENT_DISPOSITION); // And now the dreaded short forms.... addKeyword(TokenNames.K.toUpperCase(), TokenTypes.SUPPORTED); addKeyword(TokenNames.C.toUpperCase(), TokenTypes.CONTENT_TYPE); addKeyword( TokenNames.E.toUpperCase(), TokenTypes.CONTENT_ENCODING); addKeyword(TokenNames.F.toUpperCase(), TokenTypes.FROM); addKeyword(TokenNames.I.toUpperCase(), TokenTypes.CALL_ID); addKeyword(TokenNames.M.toUpperCase(), TokenTypes.CONTACT); addKeyword( TokenNames.L.toUpperCase(), TokenTypes.CONTENT_LENGTH); addKeyword(TokenNames.S.toUpperCase(), TokenTypes.SUBJECT); addKeyword(TokenNames.T.toUpperCase(), TokenTypes.TO); addKeyword(TokenNames.U.toUpperCase(), TokenTypes.ALLOW_EVENTS); // JvB: added addKeyword(TokenNames.V.toUpperCase(), TokenTypes.VIA); addKeyword(TokenNames.R.toUpperCase(), TokenTypes.REFER_TO); addKeyword(TokenNames.O.toUpperCase(), TokenTypes.EVENT); // Bug fix by Mario Mantak // JvB: added to support RFC3903 addKeyword(SIPETagHeader.NAME.toUpperCase(), TokenTypes.SIP_ETAG); addKeyword(SIPIfMatchHeader.NAME.toUpperCase(), TokenTypes.SIP_IF_MATCH); // IMS Headers addKeyword(PathHeader.NAME.toUpperCase(), TokenTypes.PATH); addKeyword(ServiceRouteHeader.NAME.toUpperCase(), TokenTypes.SERVICE_ROUTE); addKeyword(AssertedIdentityHeader.NAME.toUpperCase(), TokenTypes.P_ASSERTED_IDENTITY); addKeyword(PreferredIdentityHeader.NAME.toUpperCase(), TokenTypes.P_PREFERRED_IDENTITY); // issued by jmf addKeyword(CalledPartyIDHeader.NAME.toUpperCase(), TokenTypes.P_CALLED_PARTY_ID); addKeyword(AssociatedURIHeader.NAME.toUpperCase(), TokenTypes.P_ASSOCIATED_URI); addKeyword(VisitedNetworkIDHeader.NAME.toUpperCase(), TokenTypes.P_VISITED_NETWORK_ID); addKeyword(ChargingFunctionAddressesHeader.NAME.toUpperCase(), TokenTypes.P_CHARGING_FUNCTION_ADDRESSES); addKeyword(ChargingVectorHeader.NAME.toUpperCase(), TokenTypes.P_VECTOR_CHARGING); addKeyword(AccessNetworkInfoHeader.NAME.toUpperCase(), TokenTypes.P_ACCESS_NETWORK_INFO); addKeyword(MediaAuthorizationHeader.NAME.toUpperCase(), TokenTypes.P_MEDIA_AUTHORIZATION); } else if (lexerName.equals("status_lineLexer")) { addKeyword(TokenNames.SIP.toUpperCase(), TokenTypes.SIP); } else if (lexerName.equals("request_lineLexer")) { addKeyword(TokenNames.SIP.toUpperCase(), TokenTypes.SIP); } else if (lexerName.equals("sip_urlLexer")) { addKeyword(TokenNames.TEL.toUpperCase(), TokenTypes.TEL); addKeyword(TokenNames.SIP.toUpperCase(), TokenTypes.SIP); } } } }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/03dca67285f3f95348b33eceb3358da9431826b5/Lexer.java/buggy/trunk/src/gov/nist/javax/sip/parser/Lexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2027, 13356, 12, 780, 8512, 461, 13, 288, 202, 377, 3852, 12, 8512, 6905, 262, 288, 202, 202, 759, 26535, 1588, 16907, 2917, 635, 534, 83, 25925, 534, 8918, 18, 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, 918, 2027, 13356, 12, 780, 8512, 461, 13, 288, 202, 377, 3852, 12, 8512, 6905, 262, 288, 202, 202, 759, 26535, 1588, 16907, 2917, 635, 534, 83, 25925, 534, 8918, 18, 202, 202,...
static String getDefaultXArgs(String[] oldArgs) { boolean bInit = false; // If the old args has an -init somewhere, make sure // we don't use the restart default xargs for(int i = 0; i < oldArgs.length; i++) { if("-init".equals(oldArgs[i])) { bInit = true; } } String fwDirStr = System.getProperty(FWDIR_PROP, FWDIR_DEFAULT); File fwDir = new File(fwDirStr); File xargsFile = null; // avoid getParentFile since some profiles don't have this String defDirStr = (new File(fwDir.getAbsolutePath())).getParent(); File defDir = defDirStr != null ? new File(defDirStr) : null; println("fwDir="+ fwDir, 2); println("defDir="+ defDir, 2); println("bInit=" + bInit, 2); // ..and select appropiate xargs file if(defDir != null) { topDir = defDir + File.separator; try { String osName = Alias.unifyOsName(System.getProperty("os.name")); File f = new File(defDir, "init_" + osName + ".xargs"); if(f.exists()) { defaultXArgsInit = f.getName(); println("found OS specific xargs=" + defaultXArgsInit, 1); } } catch (Exception ignored) { // No OS specific xargs found } if(!bInit && (fwDir.exists() && fwDir.isDirectory())) { println("found fwdir at " + fwDir.getAbsolutePath(), 1); xargsFile = new File(defDir, defaultXArgsStart); if(xargsFile.exists()) { println("\n" + "Default restart xargs file: " + xargsFile + "\n" + "To reinitialize, remove the " + fwDir.toString() + " directory\n", 5); } else { File xargsFile2 = new File(defDir, defaultXArgsInit); println("No restart xargs file " + xargsFile + ", trying " + xargsFile2 + " instead.", 0); xargsFile = xargsFile2; } } else { println("no fwdir at " + fwDir.getAbsolutePath(), 1); xargsFile = new File(defDir, defaultXArgsInit); if(xargsFile.exists()) { println("\n" + "Default init xargs file: " + xargsFile + "\n", 5); } else { xargsFile = new File(defDir, defaultXArgsInit2); if(xargsFile.exists()) { println("\n" + "Deafult secondary init xargs file: " + xargsFile + "\n", 5); } } } } else { // No parent dir to fwdir } return xargsFile != null ? xargsFile.getAbsolutePath() : null; }
13251 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13251/17ae88b3f7b2b6dd3c0f3c451b2a40ec7c30404f/Main.java/buggy/osgi/framework/src/org/knopflerfish/framework/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 514, 4829, 60, 2615, 12, 780, 8526, 1592, 2615, 13, 288, 565, 1250, 324, 2570, 273, 629, 31, 565, 368, 971, 326, 1592, 833, 711, 392, 300, 2738, 22234, 16, 1221, 3071, 565, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 514, 4829, 60, 2615, 12, 780, 8526, 1592, 2615, 13, 288, 565, 1250, 324, 2570, 273, 629, 31, 565, 368, 971, 326, 1592, 833, 711, 392, 300, 2738, 22234, 16, 1221, 3071, 565, 368, ...
+ "{vowel})u>{ypsilon};" + "u<{vowel}){ypsilon};" + "{vowel})\u00fa>{ypsilon+};" + "\u00fa<{vowel}){ypsilon+};" + "{vowel})\u00fc>{ypsilon\u00a8};" + "\u00fc<{vowel}){ypsilon\u00a8};"
+ "u <> ({vowel}){ypsilon};" + "\u00fa <> ({vowel}){ypsilon+};" + "\u00fc <> ({vowel}){ypsilon_diaeresis};"
public Object[][] getContents() { return new Object[][] { { "Rule", "" // ============================================== // Modern Greek Transliteration Rules // // This transliterates modern Greek characters, but using rules // that are traditional for Ancient Greek, and // thus more resemble Greek words that have become part // of English. It differs from the official Greek // transliteration, which is more phonetic (since // most modern Greek vowels, for example, have // degenerated simply to sound like "ee"). // // There are only a few tricky parts. // 1. eta and omega don't map directly to Latin vowels, // so we use a macron on e and o, and some // other combinations if they are accented. // 2. The accented, diaeresis i and y are substituted too. // 3. Some letters use digraphs, like "ph". While typical, // they need some special handling. // 4. A gamma before a gamma or a few other letters is // transliterated as an "n", as in "Anglo" // 5. An ypsilon after a vowel is a "u", as in // "Mouseio". Otherwise it is a "y" as in "Physikon" // 6. The construction of the rules is made simpler by making sure // that most rules for lowercase letters exactly correspond to the // rules for uppercase letters, *except* for the case of the letters // in the rule itself. That way, after modifying the uppercase rules, // you can just copy, paste, and "set to lowercase" to get // the rules for lowercase letters! // ============================================== // ============================================== // Variables, used to make the rules more comprehensible // and for conditionals. // ============================================== // Latin Letters + "E-MACRON=\u0112;" + "e-macron=\u0113;" + "O-MACRON=\u014C;" + "o-macron=\u014D;" + "Y-UMLAUT=\u0178;" + "y-umlaut=\u00FF;" /* // with real accents. + "E-MACRON-ACUTE=\u0112\u0301;" + "e-macron-acute=\u0113\u0301;" + "O-MACRON-ACUTE=\u014C\u0301;" + "o-macron-acute=\u014D\u0301;" + "y-umlaut-acute=\u00FF\u0301;" + "\u00ef-acute=\u00ef\u0301;" + "\u00fc-acute=\u00fc\u0301;" //*/ // single letter equivalents + "E-MACRON-ACUTE=\u00CA;" + "e-macron-acute=\u00EA;" + "O-MACRON-ACUTE=\u00D4;" + "o-macron-acute=\u00F4;" + "y-umlaut-acute=\u0177;" + "\u00ef-acute=\u00EE;" + "\u00fc-acute=\u00FB;" // Greek Letters + "ALPHA=\u0391;" + "BETA=\u0392;" + "GAMMA=\u0393;" + "DELTA=\u0394;" + "EPSILON=\u0395;" + "ZETA=\u0396;" + "ETA=\u0397;" + "THETA=\u0398;" + "IOTA=\u0399;" + "KAPPA=\u039A;" + "LAMBDA=\u039B;" + "MU=\u039C;" + "NU=\u039D;" + "XI=\u039E;" + "OMICRON=\u039F;" + "PI=\u03A0;" + "RHO=\u03A1;" + "SIGMA=\u03A3;" + "TAU=\u03A4;" + "YPSILON=\u03A5;" + "PHI=\u03A6;" + "CHI=\u03A7;" + "PSI=\u03A8;" + "OMEGA=\u03A9;" + "ALPHA+=\u0386;" + "EPSILON+=\u0388;" + "ETA+=\u0389;" + "IOTA+=\u038A;" + "OMICRON+=\u038C;" + "YPSILON+=\u038E;" + "OMEGA+=\u038F;" + "IOTA\u00a8=\u03AA;" + "YPSILON\u00a8=\u03AB;" + "alpha=\u03B1;" + "beta=\u03B2;" + "gamma=\u03B3;" + "delta=\u03B4;" + "epsilon=\u03B5;" + "zeta=\u03B6;" + "eta=\u03B7;" + "theta=\u03B8;" + "iota=\u03B9;" + "kappa=\u03BA;" + "lambda=\u03BB;" + "mu=\u03BC;" + "nu=\u03BD;" + "xi=\u03BE;" + "omicron=\u03BF;" + "pi=\u03C0;" + "rho=\u03C1;" + "sigma=\u03C3;" + "tau=\u03C4;" + "ypsilon=\u03C5;" + "phi=\u03C6;" + "chi=\u03C7;" + "psi=\u03C8;" + "omega=\u03C9;" //forms + "alpha+=\u03AC;" + "epsilon+=\u03AD;" + "eta+=\u03AE;" + "iota+=\u03AF;" + "omicron+=\u03CC;" + "ypsilon+=\u03CD;" + "omega+=\u03CE;" + "iota\u00a8=\u03CA;" + "ypsilon\u00a8=\u03CB;" + "iota\u00a8+=\u0390;" + "ypsilon\u00a8+=\u03B0;" + "sigma+=\u03C2;" // Variables for conditional mappings // Use lowercase for all variable names, to allow cut/paste below. + "letter=[[:Lu:][:Ll:]];" + "lower=[[:Ll:]];" + "vowel=[aeiouAEIOU" + "{ALPHA}{EPSILON}{ETA}{IOTA}{OMICRON}{YPSILON}{OMEGA}" + "{ALPHA+}{EPSILON+}{ETA+}{IOTA+}{OMICRON+}{YPSILON+}{OMEGA+}" + "{IOTA\u00a8}{YPSILON\u00a8}" + "{alpha}{epsilon}{eta}{iota}{omicron}{ypsilon}{omega}" + "{alpha+}{epsilon+}{eta+}{iota+}{omicron+}{ypsilon+}{omega+}" + "{iota\u00a8}{ypsilon\u00a8}" + "{iota\u00a8+}{ypsilon\u00a8+}" + "];" + "n-gamma=[GKXCgkxc];" + "gamma-n=[{GAMMA}{KAPPA}{CHI}{XI}{gamma}{kappa}{chi}{xi}];" + "pp=[Pp];" // ============================================== // Rules // ============================================== // The following are special titlecases, and should // not be copied when duplicating the lowercase // ============================================== + "Th<{THETA}({lower};" + "Ph<{PHI}({lower};" + "Ch<{CHI}({lower};" //masked: + "Ps<{PHI}({lower};" // Because there is no uppercase forms for final sigma, // we had to move all the sigma rules up here. // insert ' to preserve round trip, for double letters // don't need to do this for the digraphs with h, // since it is not created when mapping back from greek + "''S<{pp}){SIGMA};" // for PS + "''s<{pp}){sigma};" // for ps + "''s<{pp}){sigma+};" // for ps + "S({letter}>{SIGMA};" + "S<{SIGMA};" + "s({letter}>{sigma};" + "s<{sigma};" + "s<>{sigma+};" // because there are no uppercase forms, had to move these up too. + "i\"`>{iota\u00a8+};" + "y\"`>{ypsilon\u00a8+};" + "{\u00ef-acute}<>{iota\u00a8+};" + "{vowel}){\u00fc-acute}>{ypsilon\u00a8+};" + "{\u00fc-acute}<{vowel}){ypsilon\u00a8+};" + "{y-umlaut-acute}<>{ypsilon\u00a8+};" // ============================================== // Uppercase Forms. // To make lowercase forms, just copy and lowercase below // ============================================== // Typing variants, in case the keyboard doesn't have accents + "A`>{ALPHA+};" + "E`>{EPSILON+};" + "EE`>{ETA+};" + "EE>{ETA};" + "I`>{IOTA+};" + "O`>{OMICRON+};" + "OO`>{OMEGA+};" + "OO>{OMEGA};" + "I\">{IOTA\u00a8};" + "Y\">{YPSILON\u00a8};" // Basic Letters + "A<>{ALPHA};" + "\u00c1<>{ALPHA+};" + "B<>{BETA};" + "N){n-gamma}>{GAMMA};" + "N<{GAMMA}({gamma-n};" + "G<>{GAMMA};" + "D<>{DELTA};" + "E<>{EPSILON};" + "\u00c9<>{EPSILON+};" + "Z<>{ZETA};" + "{E-MACRON-ACUTE}<>{ETA+};" + "{E-MACRON}<>{ETA};" + "TH<>{THETA};" + "I<>{IOTA};" + "\u00cd<>{IOTA+};" + "\u00cf<>{IOTA\u00a8};" + "K<>{KAPPA};" + "L<>{LAMBDA};" + "M<>{MU};" + "N<>{NU};" + "X<>{XI};" + "O<>{OMICRON};" + "\u00d3>{OMICRON+};" + "\u00d3<{OMEGA+};" + "PH<>{PHI};" // needs ordering before P + "PS<>{PSI};" // needs ordering before P + "P<>{PI};" + "R<>{RHO};" + "T<>{TAU};" + "{vowel})U>{YPSILON};" + "U<{vowel}){YPSILON};" + "{vowel})\u00da>{YPSILON+};" + "\u00da<{vowel}){YPSILON+};" + "{vowel})\u00dc>{YPSILON\u00a8};" + "\u00dc<{vowel}){YPSILON\u00a8};" + "Y<>{YPSILON};" + "\u00dd<>{YPSILON+};" + "{Y-UMLAUT}<>{YPSILON\u00a8};" + "CH<>{CHI};" + "{O-MACRON-ACUTE}>{OMEGA+};" + "{O-MACRON-ACUTE}<{OMICRON+};" + "{O-MACRON}<>{OMEGA};" // Extra English Letters. Mapped for completeness + "C(I>{SIGMA};" + "C(E>{SIGMA};" + "C(Y>{SIGMA};" + "C>{KAPPA};" + "F>{PHI};" + "H>{CHI};" + "J>{IOTA};" + "Q>{KAPPA};" + "V>{YPSILON};" + "W>{YPSILON};" // ============================================== // Lowercase Forms. Just copy above and lowercase // ============================================== // typing variants, in case the keyboard doesn't have accents + "a`>{alpha+};" + "e`>{epsilon+};" + "ee`>{eta+};" + "ee>{eta};" + "i`>{iota+};" + "o`>{omicron+};" + "oo`>{omega+};" + "oo>{omega};" + "i\">{iota\u00a8};" + "y\">{ypsilon\u00a8};" // basic letters + "a<>{alpha};" + "\u00e1<>{alpha+};" + "b<>{beta};" + "n){n-gamma}>{gamma};" + "n<{gamma}({gamma-n};" + "g<>{gamma};" + "d<>{delta};" + "e<>{epsilon};" + "\u00e9<>{epsilon+};" + "z<>{zeta};" + "{e-macron-acute}<>{eta+};" + "{e-macron}<>{eta};" + "th<>{theta};" + "i<>{iota};" + "\u00ed<>{iota+};" + "\u00ef<>{iota\u00a8};" + "k<>{kappa};" + "l<>{lambda};" + "m<>{mu};" + "n<>{nu};" + "x<>{xi};" + "o<>{omicron};" + "\u00f3>{omicron+};" + "\u00f3<{omega+};" + "ph<>{phi};" // needs ordering before p + "ps<>{psi};" // needs ordering before p + "p<>{pi};" + "r<>{rho};" + "t<>{tau};" + "{vowel})u>{ypsilon};" + "u<{vowel}){ypsilon};" + "{vowel})\u00fa>{ypsilon+};" + "\u00fa<{vowel}){ypsilon+};" + "{vowel})\u00fc>{ypsilon\u00a8};" + "\u00fc<{vowel}){ypsilon\u00a8};" + "y<>{ypsilon};" + "\u00fd<>{ypsilon+};" + "{y-umlaut}<>{ypsilon\u00a8};" + "ch<>{chi};" + "{o-macron-acute}>{omega+};" + "{o-macron-acute}<{omicron+};" + "{o-macron}<>{omega};" // extra english letters. mapped for completeness + "c(i>{sigma};" + "c(e>{sigma};" + "c(y>{sigma};" + "c>{kappa};" + "f>{phi};" + "h>{chi};" + "j>{iota};" + "q>{kappa};" + "v>{ypsilon};" + "w>{ypsilon};" // ==================================== // Normal final rule: remove ' // ==================================== + "''>;" } }; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/dd2712bf8b5962dd9a9c4346de209d08c7f56635/TransliterationRule$Latin$Greek.java/clean/icu4j/src/com/ibm/text/resources/TransliterationRule$Latin$Greek.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 63, 6362, 65, 15015, 1435, 288, 3639, 327, 394, 1033, 63, 6362, 65, 288, 5411, 288, 315, 2175, 3113, 1408, 7734, 368, 422, 4428, 14468, 7734, 368, 3431, 8865, 611, 992, 79, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 63, 6362, 65, 15015, 1435, 288, 3639, 327, 394, 1033, 63, 6362, 65, 288, 5411, 288, 315, 2175, 3113, 1408, 7734, 368, 422, 4428, 14468, 7734, 368, 3431, 8865, 611, 992, 79, ...
int sproc_AddExistingDocToMenu( int meta_id, int existing_meta_id, int doc_menu_no ) {
public int sproc_AddExistingDocToMenu( int meta_id, int existing_meta_id, int doc_menu_no ) {
int sproc_AddExistingDocToMenu( int meta_id, int existing_meta_id, int doc_menu_no ) { // test if this is the first child String sqlLinksCount = "select count(*) from childs where meta_id = ? and menu_sort = ? "; Object[] paramValuesLinksCount = new Object[]{new Integer( meta_id ), new Integer( doc_menu_no )}; ArrayList countResult = sqlProcessor.executeQuery( sqlLinksCount, paramValuesLinksCount, new ResultProcessor() { public Object mapOneRow( ResultSet rs ) throws SQLException { return new Integer( rs.getInt( 1 ) ); } } ); Integer countItem = (Integer)countResult.get( 0 ); int manualSortOrder = 500; if( countItem.intValue() > 0 ) {// update manual_sort_order String sqlSortOrder = "select max(manual_sort_order) from childs where meta_id = ? and menu_sort = ?"; Object[] paramValuesSortOrder = new Object[]{new Integer( meta_id ), new Integer( doc_menu_no )}; ArrayList sortOrderResult = sqlProcessor.executeQuery( sqlSortOrder, paramValuesSortOrder, new ResultProcessor() { public Object mapOneRow( ResultSet rs ) throws SQLException { return new Integer( rs.getInt( 1 ) ); } } ); manualSortOrder = ((Integer)sortOrderResult.get( 0 )).intValue() + 10; } //- test if child already exist in this menu. If not, then we will add the child to the menu. String sqlThisLinksCount = "select count(*) from childs where meta_id = ? and to_meta_id = ? and menu_sort = ?"; Object[] paramValuesThisLinksCount = new Object[]{new Integer( meta_id ), new Integer( existing_meta_id ), new Integer( doc_menu_no )}; ArrayList queryResult = sqlProcessor.executeQuery( sqlThisLinksCount, paramValuesThisLinksCount, new ResultProcessor() { public Object mapOneRow( ResultSet rs ) throws SQLException { return new Integer( rs.getInt( 1 ) ); } } ); Integer thisCountItem = (Integer)queryResult.get( 0 ); int rowCount = 0; if( thisCountItem.intValue() == 0 ) { String sql = "insert into childs( meta_id, to_meta_id, menu_sort, manual_sort_order) values( ?, ?, ?, ? )"; Object[] paramValues = new Object[]{new Integer( meta_id ), new Integer( existing_meta_id ), new Integer( doc_menu_no ), new Integer( manualSortOrder )}; rowCount = sqlProcessor.executeUpdate( sql, paramValues ); sql = "UPDATE meta SET date_modified = ? WHERE meta_id = ?"; paramValues = new Object[]{new Timestamp( new java.util.Date().getTime() ), new Integer( meta_id )}; rowCount += sqlProcessor.executeUpdate( sql, paramValues ); } return rowCount; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/907682463dda6719b69cb62bcf11e1c0a21731d0/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 272, 9381, 67, 986, 9895, 1759, 774, 4599, 12, 509, 2191, 67, 350, 16, 509, 2062, 67, 3901, 67, 350, 16, 509, 997, 67, 5414, 67, 2135, 262, 288, 3639, 368, 1842, 309, 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, 377, 1071, 509, 272, 9381, 67, 986, 9895, 1759, 774, 4599, 12, 509, 2191, 67, 350, 16, 509, 2062, 67, 3901, 67, 350, 16, 509, 997, 67, 5414, 67, 2135, 262, 288, 3639, 368, 1842, 309, 333, ...
tgtItem.addAttribute(new Attribute("failType", sb.toString()));
protected void setBioEntityMap(Item srcItem, Item tgtItem) throws ObjectStoreException { StringBuffer sb = new StringBuffer(); ReferenceList failTypes = new ReferenceList(); failTypes = srcItem.getCollection("failTypes"); if (failTypes != null) { for (Iterator l = srcItem.getCollection("failTypes").getRefIds().iterator(); l.hasNext();) { Item ontoItem = ItemHelper.convert(srcItemReader.getItemById((String) l.next())); sb.append(ontoItem.getAttribute("value").getValue() + " "); } tgtItem.addAttribute(new Attribute("failType", sb.toString())); } Reference controlType = new Reference(); controlType = srcItem.getReference("controlType"); boolean controlFlg = false; if (controlType != null) { Item controlItem = ItemHelper.convert(srcItemReader.getItemById( (String) srcItem.getReference("controlType").getRefId())); if (controlItem.getAttribute("value").getValue().equals("control_buffer")) { controlFlg = true; } } ReferenceList featureReporterMaps = srcItem.getCollection("featureReporterMaps"); ReferenceList immobilizedChar = srcItem.getCollection("immobilizedCharacteristics"); sb = new StringBuffer(); String identifier = null; if (immobilizedChar == null) { if (failTypes != null) { //throw new IllegalArgumentException( LOG.info("Reporter (" + srcItem.getIdentifier() + ") does not have immobilizedCharacteristics because it fails"); } else if (controlFlg) { LOG.info("Reporter (" + srcItem.getIdentifier() + ") does not have immobilizedCharacteristics because" + " it is a control_buffer"); } else { throw new IllegalArgumentException("Reporter (" + srcItem.getIdentifier() + ") does not have immobilizedCharacteristics"); } } else if (!isSingleElementCollection(immobilizedChar)) { throw new IllegalArgumentException("Reporter (" + srcItem.getIdentifier() + ") have more than one immobilizedCharacteristics"); } else { //create bioEntity2IdentifierMap //identifier = reporter: name for CDNAClone, Vector //identifier = reporter: controlType;name;descriptions for genomic_dna identifier = (String) immobilizedChar.getRefIds().get(0); if (tgtItem.getClassName().equals(tgtNs + "NuclearDNA")) { sb = new StringBuffer(); if (srcItem.hasReference("controlType")) { Item controlItem = ItemHelper.convert(srcItemReader.getItemById( (String) srcItem.getReference("controlType").getRefId())); if (controlItem.hasAttribute("value")) { sb.append(controlItem.getAttribute("value").getValue() + ";"); } } if (srcItem.hasAttribute("name")) { sb.append(srcItem.getAttribute("name").getValue() + ";"); } if (srcItem.hasCollection("descriptions")) { for (Iterator k = srcItem.getCollection("descriptions").getRefIds().iterator(); k.hasNext();) { Item description = ItemHelper.convert(srcItemReader.getItemById( (String) k.next())); if (description.hasAttribute("text")) { sb.append(description.getAttribute("text").getValue() + ";"); } } } if (sb.length() > 1) { bioEntity2IdentifierMap.put(identifier, sb.substring(0, sb.length() - 1)); } } else { sb = new StringBuffer(); if (srcItem.hasAttribute("name")) { sb.append(srcItem.getAttribute("name").getValue()); bioEntity2IdentifierMap.put(identifier, sb.toString()); } } //create bioEntity2FeatureMap sb = new StringBuffer(); if (featureReporterMaps != null) { for (Iterator i = featureReporterMaps.getRefIds().iterator(); i.hasNext(); ) { //FeatureReporterMap //desc2 Item frm = ItemHelper.convert(srcItemReader.getItemById((String) i.next())); if (frm.hasCollection("featureInformationSources")) { Iterator j = frm.getCollection("featureInformationSources"). getRefIds().iterator(); //can't prefetch from FeatureReporterMap get featureInformationSources while (j.hasNext()) { Item fis = ItemHelper.convert(srcItemReader.getItemById( (String) j.next())); if (fis.hasReference("feature")) { sb.append(fis.getReference("feature").getRefId() + " "); } } } } //identifier = (String) immobilizedChar.getRefIds().get(0); tgtItem.addReference(new Reference("material", identifier)); if (sb.length() > 1) { bioEntity2Feature.put(identifier, sb.substring(0, sb.length() - 1)); } LOG.debug("bioEntity2Feature" + bioEntity2Feature.toString()); } } }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/92aeb406bb739a7c747d04e7114f03bfdde0afcd/MageDataTranslator.java/clean/flymine/model/mage/src/java/org/flymine/dataconversion/MageDataTranslator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 15268, 1594, 1943, 863, 12, 1180, 1705, 1180, 16, 4342, 11680, 1180, 13, 3639, 1216, 1033, 21151, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 6268, 682, 2321, 2016, 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, 15268, 1594, 1943, 863, 12, 1180, 1705, 1180, 16, 4342, 11680, 1180, 13, 3639, 1216, 1033, 21151, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 6268, 682, 2321, 2016, 273, ...
ExceptionHandler.openErrorMessageBox( Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Title" ), Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Message" ) );
ExceptionHandler.openErrorMessageBox( Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Title" ), Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Message" ) );
public void widgetSelected( SelectionEvent event ) { FileDialog fileChooser = new FileDialog( getShell( ), SWT.OPEN ); fileChooser.setText( Messages.getString( "ImageBuilder.Chooser.Title" ) ); //$NON-NLS-1$ fileChooser.setFilterExtensions( IMAGE_FILEFILTERS ); try { String fullPath = fileChooser.open( ); if ( fullPath != null ) { String fileName = fileChooser.getFileName( ); if ( fileName != null ) { if ( embeddedImageList.indexOf( fileName ) != -1 ) { ExceptionHandler.openMessageBox( DLG_TITLE_IMPORT_FAIL, DLG_ERROR_MSG_FILE_EXISTS, SWT.ICON_WARNING ); return; } if ( checkExtensions( fileName ) == false ) { ExceptionHandler.openErrorMessageBox( Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Title" ), Messages.getString( "EmbeddedImagesNodeProvider.FileNameError.Message" ) ); return; } previewCanvas.loadImage( ImageManager.getInstance( ).loadImage( fullPath ) ); BirtImageLoader imageLoader = new BirtImageLoader( ); EmbeddedImage image = imageLoader.save( getModuleHandle( ), fullPath, fileName ); embeddedImageList.add( image.getName( ) ); embeddedImageList.select( embeddedImageList.indexOf( image.getName( ) ) ); updateButtons( ); } } } catch ( Throwable e ) { preview( ); if ( e instanceof OutOfMemoryError ) { e = GUIException.createGUIException( ReportPlugin.REPORT_UI, e ); } ExceptionHandler.handle( e, DLG_TITLE_LOADING_FAIL, DLG_ERROR_MSG_LOADING_FAIL ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/f06fb5699fc635c9c62b83fb721c2da353cf68a6/ImageBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ImageBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 871, 262, 1082, 202, 95, 9506, 202, 812, 6353, 585, 17324, 273, 394, 1387, 6353, 12, 7932, 1165, 12, 262, 16, 348, 8588, 18, 11437, 11272, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 871, 262, 1082, 202, 95, 9506, 202, 812, 6353, 585, 17324, 273, 394, 1387, 6353, 12, 7932, 1165, 12, 262, 16, 348, 8588, 18, 11437, 11272, 9...
String roleId = roleElements[i].getAttribute(ID_ATTRIBUTE);
String roleId = roleElements[j].getAttribute(ID_ATTRIBUTE);
public void setup(Request request) throws AccessControlException { SourceResolver resolver = null; Source source = null; try { resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE); Publication publication = PublicationFactory.getPublication(resolver, request); source = resolver.resolveURI( "context:///" + Publication.PUBLICATION_PREFIX_URI + "/" + publication.getId() + CONFIGURATION_FILE); Document document = DocumentHelper.readDocument(source.getInputStream()); assert document.getDocumentElement().getLocalName().equals(USECASES_ELEMENT); NamespaceHelper helper = new NamespaceHelper( AccessController.NAMESPACE, AccessController.DEFAULT_PREFIX, document); Element[] usecaseElements = helper.getChildren(document.getDocumentElement(), USECASE_ELEMENT); for (int i = 0; i < usecaseElements.length; i++) { String usecaseId = usecaseElements[i].getAttribute(ID_ATTRIBUTE); getLogger().debug("Found usecase [" + usecaseId + "]"); Element[] roleElements = helper.getChildren(usecaseElements[i], ROLE_ELEMENT); Set roleIds = new HashSet(); for (int j = 0; j < roleElements.length; j++) { String roleId = roleElements[i].getAttribute(ID_ATTRIBUTE); roleIds.add(roleId); getLogger().debug("Adding role [" + roleId + "]"); } usecaseToRoles.put(usecaseId, roleIds); } } catch (Exception e) { throw new AccessControlException("Building usecase role configuration failed: ", e); } finally { if (resolver != null) { if (source != null) { resolver.release(source); } manager.release(resolver); } } roles = PolicyAuthorizer.getRoles(request); }
45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/3617b88801f72d6ac3d56e01a2bd2862670206aa/UsecaseAuthorizer.java/clean/src/java/org/apache/lenya/cms/ac2/usecase/UsecaseAuthorizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3875, 12, 691, 590, 13, 1216, 24349, 503, 288, 3639, 4998, 4301, 5039, 273, 446, 31, 3639, 4998, 1084, 273, 446, 31, 3639, 775, 288, 5411, 5039, 273, 261, 1830, 4301, 13, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3875, 12, 691, 590, 13, 1216, 24349, 503, 288, 3639, 4998, 4301, 5039, 273, 446, 31, 3639, 4998, 1084, 273, 446, 31, 3639, 775, 288, 5411, 5039, 273, 261, 1830, 4301, 13, 330...
if (logger.isInfoEnabled()) { String peerUrl = ProActive.getActiveObjectNodeUrl(peer); logger.info("Acquaintance " + peerUrl + " " + result + " added"); }
String peerUrl = ProActive.getActiveObjectNodeUrl(peer); logger.info("Acquaintance " + peerUrl + " " + result + " added");
public void add(P2PService peer) { if (!this.groupOfAcquaintances.contains(peer)) { boolean result = this.groupOfAcquaintances.add(peer); if (logger.isInfoEnabled()) { String peerUrl = ProActive.getActiveObjectNodeUrl(peer); logger.info("Acquaintance " + peerUrl + " " + result + " added"); } } }
14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/1279458d52679339839158611daec34b4baf800a/P2PAcquaintanceManager.java/clean/src/org/objectweb/proactive/p2p/service/P2PAcquaintanceManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 52, 22, 52, 1179, 4261, 13, 288, 3639, 309, 16051, 2211, 18, 1655, 951, 9988, 372, 1598, 6872, 18, 12298, 12, 12210, 3719, 288, 5411, 1250, 563, 273, 333, 18, 1655, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 52, 22, 52, 1179, 4261, 13, 288, 3639, 309, 16051, 2211, 18, 1655, 951, 9988, 372, 1598, 6872, 18, 12298, 12, 12210, 3719, 288, 5411, 1250, 563, 273, 333, 18, 1655, ...
} else {
} else {
private void generation () throws Exception { int i,j=0; double best_fit = -Double.MAX_VALUE; int old_count = 0; int count; GABitSet [] newPop = new GABitSet [m_popSize]; int parent1,parent2; /** first ensure that the population best is propogated into the new generation */ for (i=0;i<m_popSize;i++) { if (m_population[i].getFitness() > best_fit) { j = i; best_fit = m_population[i].getFitness(); old_count = countFeatures(m_population[i].getChromosome()); } else if (Utils.eq(m_population[i].getFitness(), best_fit)) { count = countFeatures(m_population[i].getChromosome()); if (count < old_count) { j = i; best_fit = m_population[i].getFitness(); old_count = count; } } } newPop[0] = (GABitSet)(m_population[j].clone()); newPop[1] = newPop[0]; for (j=2;j<m_popSize;j+=2) { parent1 = select(); parent2 = select(); newPop[j] = (GABitSet)(m_population[parent1].clone()); newPop[j+1] = (GABitSet)(m_population[parent2].clone()); // if parents are equal mutate one bit if (parent1 == parent2) { int r; if (m_hasClass) { while ((r = (Math.abs(m_random.nextInt()) % m_numAttribs)) == m_classIndex); } else { r = m_random.nextInt() % m_numAttribs; } if (newPop[j].get(r)) { newPop[j].clear(r); } else { newPop[j].set(r); } } else { // crossover double r = m_random.nextDouble(); if (r < m_pCrossover) { // cross point int cp = Math.abs(m_random.nextInt()); cp %= (m_numAttribs-2); cp ++; for (i=0;i<cp;i++) { if (m_population[parent1].get(i)) { newPop[j+1].set(i); } else { newPop[j+1].clear(i); } if (m_population[parent2].get(i)) { newPop[j].set(i); } else { newPop[j].clear(i); } } } // mutate for (int k=0;k<2;k++) { for (i=0;i<m_numAttribs;i++) { r = m_random.nextDouble(); if (r < m_pMutation) { if (m_hasClass && (i == m_classIndex)) { // ignore class attribute } else { if (newPop[j+k].get(i)) { newPop[j+k].clear(i); } else { newPop[j+k].set(i); } } } } } } } m_population = newPop; }
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/ab381beaa32cfbad24cb73364489a607927d5ab3/GeneticSearch.java/clean/trunk/weka/attributeSelection/GeneticSearch.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 9377, 1832, 1216, 1185, 288, 565, 509, 277, 16, 78, 33, 20, 31, 565, 1645, 3796, 67, 7216, 273, 300, 5265, 18, 6694, 67, 4051, 31, 565, 509, 1592, 67, 1883, 273, 374, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 9377, 1832, 1216, 1185, 288, 565, 509, 277, 16, 78, 33, 20, 31, 565, 1645, 3796, 67, 7216, 273, 300, 5265, 18, 6694, 67, 4051, 31, 565, 509, 1592, 67, 1883, 273, 374, 31, ...
setRequiredElements( artifact, VALID, VALID, VALID ); MockRepositoryQueryLayer queryLayer = new MockRepositoryQueryLayer(); queryLayer.addReturnValue( ARTIFACT_FOUND );
Dependency dependency = createDependency( VALID_GROUP_ID, VALID_ARTIFACT_ID, "[" ); model.addDependency( dependency );
public void testValidArtifactWithInvalidDependencyVersion() { MockArtifactFactory artifactFactory = new MockArtifactFactory(); processor.setArtifactFactory( artifactFactory ); setRequiredElements( artifact, VALID, VALID, VALID ); MockRepositoryQueryLayer queryLayer = new MockRepositoryQueryLayer(); queryLayer.addReturnValue( ARTIFACT_FOUND ); Dependency dependency = new Dependency(); setRequiredElements( dependency, VALID, VALID, null ); model.addDependency( dependency ); queryLayer.addReturnValue( ARTIFACT_FOUND ); processor.setRepositoryQueryLayer( queryLayer ); processor.processArtifact( model, artifact, reporter, null ); assertEquals( 1, reporter.getNumSuccesses() ); assertEquals( 1, reporter.getNumFailures() ); assertEquals( 0, reporter.getNumWarnings() ); Iterator failures = reporter.getArtifactFailureIterator(); ArtifactResult result = (ArtifactResult) failures.next(); assertEquals( ArtifactReporter.EMPTY_DEPENDENCY_VERSION, result.getReason() ); }
28441 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28441/63c171e2eb136117115bc2f964d92c8a30480d6e/ArtifactReportProcessorTest.java/clean/archiva-reports-standard/src/test/java/org/apache/maven/archiva/reporting/ArtifactReportProcessorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1556, 7581, 1190, 1941, 7787, 1444, 1435, 565, 288, 3639, 7867, 7581, 1733, 6462, 1733, 273, 394, 7867, 7581, 1733, 5621, 3639, 6659, 18, 542, 7581, 1733, 12, 6462, 1733, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1556, 7581, 1190, 1941, 7787, 1444, 1435, 565, 288, 3639, 7867, 7581, 1733, 6462, 1733, 273, 394, 7867, 7581, 1733, 5621, 3639, 6659, 18, 542, 7581, 1733, 12, 6462, 1733, ...
return gre.getMessage(); }
return t.getMessage(); }
public String getMessage() { return gre.getMessage(); }
52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/a1cfacbb56e963e9c5c30b98fb844509dee7e0b1/GrailsWrappedRuntimeException.java/buggy/src/web/org/codehaus/groovy/grails/web/errors/GrailsWrappedRuntimeException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 2381, 1435, 288, 202, 202, 2463, 5174, 18, 24906, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 225, 202, 482, 514, 2381, 1435, 288, 202, 202, 2463, 5174, 18, 24906, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
return new Float( (float) ( (Long) obj ).longValue() );
return new Float( ( (Double) obj ).floatValue() );
public Object convert( Object obj, String param ) { return new Float( (float) ( (Long) obj ).longValue() ); }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/fdcc53ee639bb83ad76562252bd0f3ff894b19a6/Types.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/mapping/loader/Types.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 1765, 12, 1033, 1081, 16, 514, 579, 262, 288, 7734, 327, 394, 5450, 12, 261, 261, 5265, 13, 1081, 262, 18, 5659, 620, 1435, 11272, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 1765, 12, 1033, 1081, 16, 514, 579, 262, 288, 7734, 327, 394, 5450, 12, 261, 261, 5265, 13, 1081, 262, 18, 5659, 620, 1435, 11272, 5411, 289, 2, -100, -100, -100, -100, -10...
if (handler.accept(paths[i]))
if (handler.accept(path))
public static void showRunScriptDialog(View view) { String[] paths = GUIUtilities.showVFSFileDialog(view, null,JFileChooser.OPEN_DIALOG,true); if(paths != null) { Buffer buffer = view.getBuffer(); try { buffer.beginCompoundEdit(); for(int i = 0; i < paths.length; i++) { Handler handler; for (int j = 0; j < macroHandlers.size(); j++) { handler = (Handler)macroHandlers.get(j); if (handler.accept(paths[i])) { Macro macro = handler.createMacro(paths[i],paths[i]); macro.invoke(view); break; } } } } finally { buffer.endCompoundEdit(); } } } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/f8ddd6d374551e583aee81e82f15420593374c30/Macros.java/clean/org/gjt/sp/jedit/Macros.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2405, 1997, 3651, 6353, 12, 1767, 1476, 13, 202, 95, 202, 202, 780, 8526, 2953, 273, 10978, 11864, 18, 4500, 58, 4931, 812, 6353, 12, 1945, 16, 1082, 202, 2011, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2405, 1997, 3651, 6353, 12, 1767, 1476, 13, 202, 95, 202, 202, 780, 8526, 2953, 273, 10978, 11864, 18, 4500, 58, 4931, 812, 6353, 12, 1945, 16, 1082, 202, 2011, 16, ...
String compVar = this.getComponentIDVar(request);
String compVar = this.getComponentIDVar(event.getActionRequest());
public void actionPerformed(GridSphereEvent event) { super.actionPerformed(event); ActionRequest request = event.getActionRequest(); String id = request.getPortletSession(true).getId(); // remove cached output cacheService.removeCached(this.getComponentID() + portletClass + id); //frame = null; PortletComponentEvent titleBarEvent = event.getLastRenderEvent(); if ((titleBarEvent != null) && (titleBarEvent instanceof PortletTitleBarEvent)) { PortletTitleBarEvent tbEvt = (PortletTitleBarEvent) titleBarEvent; if (tbEvt.hasWindowStateAction()) { WindowState state = tbEvt.getState(); System.err.println("it's a titlebar event! ws = " + state.toString()); PortletFrameEventImpl frameEvent = null; if (state.equals(WindowState.MINIMIZED)) { renderPortlet = false; frameEvent = new PortletFrameEventImpl(this, request, PortletFrameEvent.FrameAction.FRAME_MINIMIZED, COMPONENT_ID); } else if (state.equals(new WindowState("RESIZING"))) { renderPortlet = true; frameEvent = new PortletFrameEventImpl(this, request, PortletFrameEvent.FrameAction.FRAME_RESTORED, COMPONENT_ID); frameEvent.setOriginalWidth(originalWidth); } else if (state.equals(WindowState.MAXIMIZED)) { renderPortlet = true; frameEvent = new PortletFrameEventImpl(this, request, PortletFrameEvent.FrameAction.FRAME_MAXIMIZED, COMPONENT_ID); } else if (state.equals(new WindowState("CLOSE"))) { renderPortlet = true; isClosing = true; // check for portlet closing action if (event.hasAction()) { if (event.getAction().getName().equals(FRAME_CLOSE_OK_ACTION)) { isClosing = false; frameEvent = new PortletFrameEventImpl(this, request, PortletFrameEvent.FrameAction.FRAME_CLOSED, COMPONENT_ID); request.setAttribute(SportletProperties.INIT_PAGE, "true"); } if (event.getAction().getName().equals(FRAME_CLOSE_CANCEL_ACTION)) { isClosing = false; } } } Iterator it = listeners.iterator(); PortletComponent comp; while (it.hasNext()) { comp = (PortletComponent) it.next(); event.addNewRenderEvent(frameEvent); comp.actionPerformed(event); } } } else { // now perform actionPerformed on Portlet if it has an action titleBar.actionPerformed(event); String compVar = this.getComponentIDVar(request); request.setAttribute(compVar, componentIDStr); request.setAttribute(SportletProperties.PORTLET_WINDOW_ID, windowId); ActionResponse res = event.getActionResponse(); request.setAttribute(SportletProperties.PORTLETID, portletClass); // Override if user is a guest Principal principal = request.getUserPrincipal(); // String userName = ""; try { if (principal == null) { res.setPortletMode(PortletMode.VIEW); //userName = "guest"; } else { PortletMode mode = titleBar.getPortletMode(); res.setPortletMode(mode); // userName = principal.getName(); } } catch (PortletModeException e) { System.err.println("unsupported mode "); } titleBar.setPortletMode(request.getPortletMode()); //System.err.println("in PortletFrame action invoked for " + portletClass); if (event.hasAction() && (!event.getAction().getName().equals(FRAME_CLOSE_OK_ACTION)) && (!event.getAction().getName().equals(FRAME_CLOSE_CANCEL_ACTION))) { DefaultPortletAction action = event.getAction(); renderParams.clear(); onlyRender = false; String pid = (String)request.getAttribute(SportletProperties.PORTLETID); try { portletInvoker.actionPerformed(pid, action, event.getHttpServletRequest(), event.getHttpServletResponse()); } catch (Exception e) { log.error("An error occured performing action on: " + pid, e); // catch it and keep processing } // see if mode has been set PortletMode mymode = (PortletMode)request.getAttribute(SportletProperties.PORTLET_MODE); //PortletMode mymode = new PortletMode(mymodeStr); if (mymode != null) { //System.err.println("setting title mode to " + mymode); titleBar.setPortletMode(mymode); } // see if state has been set PortletFrameEventImpl frameEvent = null; WindowState mystate = (WindowState)request.getAttribute(SportletProperties.PORTLET_WINDOW); if (mystate != null) { //System.err.println("setting title state to " + mystate); titleBar.setWindowState(mystate); if (mystate.equals(WindowState.MINIMIZED)) { renderPortlet = false; } else if ((mystate.equals(new WindowState("RESIZING"))) || (mystate.equals(WindowState.NORMAL))) { renderPortlet = true; frameEvent = new PortletFrameEventImpl(this, request, PortletFrameEvent.FrameAction.FRAME_RESTORED, COMPONENT_ID); frameEvent.setOriginalWidth(originalWidth); } else if (mystate.equals(WindowState.MAXIMIZED)) { renderPortlet = true; frameEvent = new PortletFrameEventImpl(this, request, PortletFrameEvent.FrameAction.FRAME_MAXIMIZED, COMPONENT_ID); } Iterator it = listeners.iterator(); PortletComponent comp; while (it.hasNext()) { comp = (PortletComponent) it.next(); event.addNewRenderEvent(frameEvent); comp.actionPerformed(event); } } } // see if render params are set from actionResponse Map tmpParams = (Map)request.getAttribute(SportletProperties.RENDER_PARAM_PREFIX + portletClass + "_" + componentIDStr); if (tmpParams != null) renderParams = tmpParams; addRenderParams(request); Iterator it = listeners.iterator(); PortletComponent comp; while (it.hasNext()) { comp = (PortletComponent) it.next(); event.addNewRenderEvent(titleBarEvent); comp.actionPerformed(event); } } }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/c84378b0427b5a69f02da86b2b4250e2ca1104ff/PortletFrame.java/clean/src/org/gridsphere/layout/PortletFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 6313, 22747, 1133, 871, 13, 288, 3639, 2240, 18, 1128, 13889, 12, 2575, 1769, 3639, 4382, 691, 590, 273, 871, 18, 588, 1803, 691, 5621, 3639, 514, 612, 273, 590, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 6313, 22747, 1133, 871, 13, 288, 3639, 2240, 18, 1128, 13889, 12, 2575, 1769, 3639, 4382, 691, 590, 273, 871, 18, 588, 1803, 691, 5621, 3639, 514, 612, 273, 590, 1...
if (descriptions.length > 0) description = descriptions[0].getValue();
if (descriptions.length > 0) { description = descriptions[0].getValue(); }
private FontDefinition readFont(IConfigurationElement element) { String name = element.getAttribute(IWorkbenchRegistryConstants.ATT_LABEL); String id = element.getAttribute(IWorkbenchRegistryConstants.ATT_ID); String defaultMapping = element.getAttribute(IWorkbenchRegistryConstants.ATT_DEFAULTS_TO); String value = getPlatformSpecificFontValue(element .getChildren(IWorkbenchRegistryConstants.TAG_FONTVALUE)); if (value == null) { value = element.getAttribute(IWorkbenchRegistryConstants.ATT_VALUE); } if (value != null && defaultMapping != null) { logError(element, RESOURCE_BUNDLE.getString("Fonts.badDefault")); //$NON-NLS-1$ return null; } String categoryId = element.getAttribute(IWorkbenchRegistryConstants.ATT_CATEGORY_ID); boolean isEditable = true; String isEditableString = element.getAttribute(IWorkbenchRegistryConstants.ATT_IS_EDITABLE); if (isEditableString != null) { isEditable = Boolean.valueOf(isEditableString).booleanValue(); } String description = null; IConfigurationElement[] descriptions = element .getChildren(IWorkbenchRegistryConstants.TAG_DESCRIPTION); if (descriptions.length > 0) description = descriptions[0].getValue(); return new FontDefinition(name, id, defaultMapping, value, categoryId, isEditable, description); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ThemeRegistryReader.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ThemeRegistryReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 10063, 1852, 855, 5711, 12, 45, 1750, 1046, 930, 13, 288, 3639, 514, 508, 273, 930, 18, 588, 1499, 12, 45, 2421, 22144, 4243, 2918, 18, 789, 56, 67, 13545, 1769, 3639, 514, 612, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10063, 1852, 855, 5711, 12, 45, 1750, 1046, 930, 13, 288, 3639, 514, 508, 273, 930, 18, 588, 1499, 12, 45, 2421, 22144, 4243, 2918, 18, 789, 56, 67, 13545, 1769, 3639, 514, 612, ...
final IElementType tokenType = sign.getTokenType();
public void visitBinaryExpression(PsiBinaryExpression expression){ super.visitBinaryExpression(expression); if(!WellFormednessUtils.isWellFormed(expression)){ return; } final PsiJavaToken sign = expression.getOperationSign(); final PsiExpression rhs = expression.getROperand(); if(rhs == null){ return; } final PsiType rhsType = rhs.getType(); if(rhsType == null){ return; } if(!rhsType.equals(PsiType.BOOLEAN) && !"java.lang.Boolean".equals(rhsType.getCanonicalText())){ return; } final PsiExpression lhs = expression.getLOperand(); final PsiType lhsType = lhs.getType(); if(lhsType == null){ return; } if(!lhsType.equals(PsiType.BOOLEAN) && !"java.lang.Boolean".equals(lhsType.getCanonicalText())){ return; } final IElementType tokenType = sign.getTokenType(); final boolean isPointless; if(tokenType.equals(JavaTokenType.EQEQ) || tokenType.equals(JavaTokenType.NE)){ isPointless = equalityExpressionIsPointless(lhs, rhs); } else if(tokenType.equals(JavaTokenType.ANDAND) || tokenType.equals(JavaTokenType.AND)){ isPointless = andExpressionIsPointless(lhs, rhs); } else if(tokenType.equals(JavaTokenType.OROR) || tokenType.equals(JavaTokenType.OR)){ isPointless = orExpressionIsPointless(lhs, rhs); } else if(tokenType.equals(JavaTokenType.XOR)){ isPointless = xorExpressionIsPointless(lhs, rhs); } else{ isPointless = false; } if(!isPointless){ return; } registerError(expression); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/PointlessBooleanExpressionInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/verbose/PointlessBooleanExpressionInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 3757, 5905, 2300, 12, 52, 7722, 5905, 2300, 2652, 15329, 5411, 2240, 18, 11658, 5905, 2300, 12, 8692, 1769, 5411, 309, 12, 5, 59, 1165, 1204, 329, 4496, 1989, 18, 291, 59, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 5905, 2300, 12, 52, 7722, 5905, 2300, 2652, 15329, 5411, 2240, 18, 11658, 5905, 2300, 12, 8692, 1769, 5411, 309, 12, 5, 59, 1165, 1204, 329, 4496, 1989, 18, 291, 59, 11...
public StringBuffer describeTo(StringBuffer buffer) { return buffer.append("fails the test and reports \"" + errorMessage + "\""); }
public StringBuffer describeTo( StringBuffer buffer ) { return buffer.append("fails the test and reports \"" + errorMessage + "\""); }
public StringBuffer describeTo(StringBuffer buffer) { return buffer.append("fails the test and reports \"" + errorMessage + "\""); }
57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/TestFailureStub.java/buggy/jmock/core/src/org/jmock/core/stub/TestFailureStub.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6674, 6401, 774, 12, 780, 1892, 1613, 13, 288, 3639, 327, 1613, 18, 6923, 2932, 6870, 87, 326, 1842, 471, 10557, 11843, 397, 9324, 397, 11143, 1769, 565, 289, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6674, 6401, 774, 12, 780, 1892, 1613, 13, 288, 3639, 327, 1613, 18, 6923, 2932, 6870, 87, 326, 1842, 471, 10557, 11843, 397, 9324, 397, 11143, 1769, 565, 289, 2, -100, -100, -100, ...
return getCodeBlockInternalIndent(child, myChildrenIndent + 1);
return getCodeBlockInternalIndent(myChildrenIndent + 1);
private Indent calcCurrentIndent(final ASTNode child, final int state) { if (child.getElementType() == ElementType.RBRACE) { return Formatter.getInstance().getNoneIndent(); } if (state == BEFORE_FIRST) return Formatter.getInstance().getNoneIndent(); if (child.getElementType() == ElementType.SWITCH_LABEL_STATEMENT) { return getCodeBlockInternalIndent(child, myChildrenIndent); } if (state == AFTER_CASE_LABEL) { if (child.getElementType() == ElementType.BLOCK_STATEMENT) { return getCodeBlockInternalIndent(child, myChildrenIndent); } else { return getCodeBlockInternalIndent(child, myChildrenIndent + 1); } } if (state == BEFORE_LBRACE) { if (child.getElementType() == ElementType.LBRACE) { return Formatter.getInstance().getNoneIndent(); } else { return Formatter.getInstance().createContinuationIndent(); } } else { if (child.getElementType() == ElementType.RBRACE) { return Formatter.getInstance().getNoneIndent(); } else { return getCodeBlockInternalIndent(child, 1); } } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/01d0399a9a26330ee345b494508bc877fe9a1e5c/CodeBlockBlock.java/clean/source/com/intellij/psi/formatter/java/CodeBlockBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 28653, 7029, 3935, 7790, 12, 6385, 9183, 907, 1151, 16, 727, 509, 919, 13, 288, 565, 309, 261, 3624, 18, 588, 17481, 1435, 422, 3010, 559, 18, 19437, 9254, 13, 288, 1377, 327, 149...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28653, 7029, 3935, 7790, 12, 6385, 9183, 907, 1151, 16, 727, 509, 919, 13, 288, 565, 309, 261, 3624, 18, 588, 17481, 1435, 422, 3010, 559, 18, 19437, 9254, 13, 288, 1377, 327, 149...
if (isSubType(tree.getType(), pt)) return tree;
if (isSubType(tree.getType(), pt)) { if (tree.getType().symbol() == definitions.ARRAY_CLASS) { if (pt.symbol() != definitions.ARRAY_CLASS) { Symbol symbol = primitives.AS__ARRAY; return coerce(gen.mkApply__(gen.Select(tree, symbol)), pt); } } return tree; }
private Tree coerce(Tree tree, Type pt) { if (isSubType(tree.getType(), pt)) return tree; if (isUnboxedType(tree.getType())) { if (!isUnboxedType(pt)) return coerce(box(tree), pt); } else if (isUnboxedType(pt)) { if (tree.type.symbol() == definitions.ARRAY_CLASS || isUnboxedSimpleType(pt)) return unbox(tree, pt); } return gen.mkAsInstanceOf(tree, pt); }
48012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48012/b072c8ee42744f253f157e94f4f3e0a6d0ac46cb/Erasure.java/clean/sources/scalac/transformer/Erasure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4902, 12270, 12, 2471, 2151, 16, 1412, 5818, 13, 288, 3639, 309, 261, 291, 30511, 12, 3413, 18, 588, 559, 9334, 5818, 3719, 288, 309, 261, 3413, 18, 588, 559, 7675, 7175, 1435, 42...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4902, 12270, 12, 2471, 2151, 16, 1412, 5818, 13, 288, 3639, 309, 261, 291, 30511, 12, 3413, 18, 588, 559, 9334, 5818, 3719, 288, 309, 261, 3413, 18, 588, 559, 7675, 7175, 1435, 42...
throw new Error(MSG_);
throw new Error(MSG00_);
public float getFloat(int d0) { throw new Error(MSG_); }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/5a0529452cd853cdb32f8d6095fa785ffa646314/MemoryBlock.java/buggy/x10.runtime/src/x10/base/MemoryBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 28276, 12, 474, 302, 20, 13, 288, 3639, 604, 394, 1068, 12, 11210, 713, 67, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1431, 28276, 12, 474, 302, 20, 13, 288, 3639, 604, 394, 1068, 12, 11210, 713, 67, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
WeightedGraph<String,DirectedEdge<String>> g = new WeightedPseudograph<String,DirectedEdge<String>>();
WeightedGraph<String,DefaultEdge> g = new WeightedPseudograph<String,DefaultEdge>();
private WeightedGraph<String,DirectedEdge<String>> create() { WeightedGraph<String,DirectedEdge<String>> g = new WeightedPseudograph<String,DirectedEdge<String>>(); g.addVertex(V1); g.addVertex(V2); g.addVertex(V3); g.addVertex(V4); m_e1 = GraphHelper.addEdge(g, V1, V2, 1); m_e2 = GraphHelper.addEdge(g, V2, V3, 2); m_e3 = GraphHelper.addEdge(g, V3, V1, 4); m_e4 = GraphHelper.addEdge(g, V3, V4, 10); m_u = GraphHelper.addEdge(g, V3, V3, 5); return g; }
47032 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47032/c3e5aa9fad3b9e0927939b2a916ae5049377758b/DijkstraShortestPathAlgorithmTest.java/clean/testsrc/org/jgrapht/experimental/alg/DijkstraShortestPathAlgorithmTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15437, 329, 4137, 32, 780, 16, 5368, 329, 6098, 32, 780, 9778, 752, 1435, 565, 288, 3639, 15437, 329, 4137, 32, 780, 16, 5368, 329, 6098, 32, 780, 9778, 5411, 314, 273, 394, 15437...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15437, 329, 4137, 32, 780, 16, 5368, 329, 6098, 32, 780, 9778, 752, 1435, 565, 288, 3639, 15437, 329, 4137, 32, 780, 16, 5368, 329, 6098, 32, 780, 9778, 5411, 314, 273, 394, 15437...
if(parent != null && !parent.exists())
if((parent != null) && !parent.exists())
private void checkFile(File f) throws InvalidConfigValueException { if(f.isDirectory()) throw new InvalidConfigValueException("Invalid filename for downloads list: is a directory"); if(f.isFile() && !(f.canRead() && f.canWrite())) throw new InvalidConfigValueException("File exists but cannot be read"); File parent = f.getParentFile(); if(parent != null && !parent.exists()) throw new InvalidConfigValueException("Parent directory does not exist"); if(!f.exists()) { try { if(!((f.createNewFile() || f.exists()) && (f.canRead() && f.canWrite()))) throw new InvalidConfigValueException("File does not exist, cannot create it and/or cannot read/write it"); } catch (IOException e) { throw new InvalidConfigValueException("File does not exist and cannot be created"); } } }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/FCPServer.java/buggy/src/freenet/node/fcp/FCPServer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 812, 12, 812, 284, 13, 1216, 1962, 809, 9738, 288, 202, 202, 430, 12, 74, 18, 291, 2853, 10756, 1875, 202, 12849, 394, 1962, 809, 9738, 2932, 1941, 1544, 364, 23011...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 812, 12, 812, 284, 13, 1216, 1962, 809, 9738, 288, 202, 202, 430, 12, 74, 18, 291, 2853, 10756, 1875, 202, 12849, 394, 1962, 809, 9738, 2932, 1941, 1544, 364, 23011...
a = pel&0xff000000;
a = pel>>>24;
private void specialProcessColumn(Raster src, WritableRaster dest){ final int w = src.getWidth(); final int h = src.getHeight(); // Access the integer buffer for each image. DataBufferInt dstDB = (DataBufferInt)dest.getDataBuffer(); // Offset defines where in the stack the real data begin final int dstOff = dstDB.getOffset(); // Stride is the distance between two consecutive column elements, // in the one-dimention dataBuffer final int dstScanStride = ((SinglePixelPackedSampleModel)dest.getSampleModel()).getScanlineStride(); // Access the pixel value array final int destPixels[] = dstDB.getBankData()[0]; // The pointer of src and dest indicating where the pixel values are int dp, cp; // Declaration for the circular buffer's implementation // These are the circular buffers' head pointer and // the index pointers // bufferHead points to the leftmost element in the circular buffer int bufferHead; int maxIndexA; int maxIndexR; int maxIndexG; int maxIndexB; // Temp variables int pel, currentPixel, lastPixel; int a,r,g,b; int a1,r1,g1,b1; // Here all the pixels share the same // max/min value if (h<=radiusY){ for (int j=0; j<w; j++){ dp = dstOff + j; cp = dstOff + j; pel = destPixels[cp]; cp += dstScanStride; a = pel&0xff000000; r = pel&0xff0000; g = pel&0xff00; b = pel&0xff; for (int k=1; k<h; k++){ currentPixel = destPixels[cp]; cp += dstScanStride; a1 = currentPixel&0xff000000; r1 = currentPixel&0xff0000; g1 = currentPixel&0xff00; b1 = currentPixel&0xff; if (isBetter(a1, a, doDilation)){ a = a1; } if (isBetter(r1, r, doDilation)){ r = r1; } if (isBetter(g1, g, doDilation)){ g = g1; } if (isBetter(b1, b, doDilation)){ b = b1; } } for (int k=0; k<h; k++){ destPixels[dp] = (a & 0xff000000) | (r & 0xff0000) | (g & 0xff00) | (b & 0xff); dp += dstScanStride; } // return to the first pixel of the next column } } // When radiusY < h <= 2*radiusY else { // The height of the circular buffer is h final int [] bufferA = new int [h]; final int [] bufferR = new int [h]; final int [] bufferG = new int [h]; final int [] bufferB = new int [h]; for (int j=0; j<w; j++){ // initialization of pointers, indice // at the head of each column dp = dstOff + j; cp = dstOff + j; bufferHead = 0; maxIndexA = 0; maxIndexR = 0; maxIndexG = 0; maxIndexB = 0; pel = destPixels[cp]; cp += dstScanStride; a = pel&0xff000000; r = pel&0xff0000; g = pel&0xff00; b = pel&0xff; bufferA[0] = a; bufferR[0] = r; bufferG[0] = g; bufferB[0] = b; for (int k=1; k<=radiusY; k++){ currentPixel = destPixels[cp]; cp += dstScanStride; a1 = currentPixel&0xff000000; r1 = currentPixel&0xff0000; g1 = currentPixel&0xff00; b1 = currentPixel&0xff; bufferA[k] = a1; bufferR[k] = r1; bufferG[k] = g1; bufferB[k] = b1; if (isBetter(a1, a, doDilation)){ a = a1; maxIndexA = k; } if (isBetter(r1, r, doDilation)){ r = r1; maxIndexR = k; } if (isBetter(g1, g, doDilation)){ g = g1; maxIndexG = k; } if (isBetter(b1, b, doDilation)){ b = b1; maxIndexB = k; } } // fill the first pixel of each column destPixels[dp] = (a & 0xff000000) | (r & 0xff0000) | (g & 0xff00) | (b & 0xff); dp += dstScanStride; // // 1 <= i <= h-1-radiusY : The upper margin of each column. // for (int i=1; i<=h-radiusY-1; i++){ lastPixel = destPixels[cp]; cp += dstScanStride; // here is the Alpha channel a = bufferA[maxIndexA]; a1 = lastPixel&0xff000000; bufferA[i+radiusY] = a1; if (isBetter(a1, a, doDilation)){ a = a1; maxIndexA = i+radiusY; } // now we deal with the Red channel r = bufferR[maxIndexR]; r1 = lastPixel&0xff0000; bufferR[i+radiusY] = r1; if (isBetter(r1, r, doDilation)){ r = r1; maxIndexR = i+radiusY; } // now we deal with the Green channel g = bufferG[maxIndexG]; g1 = lastPixel&0xff00; bufferG[i+radiusY] = g1; if (isBetter(g1, g, doDilation)){ g = g1; maxIndexG = i+radiusY; } // now we deal with the Blue channel b = bufferB[maxIndexB]; b1 = lastPixel&0xff; bufferB[i+radiusY] = b1; if (isBetter(b1, b, doDilation)){ b = b1; maxIndexB = i+radiusY; } // now we have gone through the four channels and // updated the index array. then we'll pack the // new max/min value according to each channel's // max/min vlue destPixels[dp] = (a & 0xff000000) | (r & 0xff0000) | (g & 0xff00) | (b & 0xff); dp += dstScanStride; } // Now is the inner body of the column // when radiusY < h <= 2*radiusY for (int i = h-radiusY; i<= radiusY; i++){ destPixels[dp] = destPixels[dp-dstScanStride]; dp += dstScanStride; } // The circular buffer is full now for (int i = radiusY+1; i<h; i++){ if (maxIndexA == bufferHead){ a = bufferA[bufferHead+1]; maxIndexA = bufferHead+1; for (int m= bufferHead+2; m< h; m++){ a1 = bufferA[m]; if (isBetter(a1, a, doDilation)){ a = a1; maxIndexA = m; } } } else { a = bufferA[maxIndexA]; } if (maxIndexR == bufferHead){ r = bufferR[bufferHead+1]; maxIndexR = bufferHead+1; for (int m= bufferHead+2; m< h; m++){ r1 = bufferR[m]; if (isBetter(r1, r, doDilation)){ r = r1; maxIndexR = m; } } } else { r = bufferR[maxIndexR]; } if (maxIndexG == bufferHead){ g = bufferG[bufferHead+1]; maxIndexG = bufferHead+1; for (int m= bufferHead+2; m< h; m++){ g1 = bufferG[m]; if (isBetter(g1, g, doDilation)){ g = g1; maxIndexG = m; } } } // we can reuse the previous max/min value else { g = bufferG[maxIndexG]; } if (maxIndexB == bufferHead){ b = bufferB[bufferHead+1]; maxIndexB = bufferHead+1; for (int m= bufferHead+2; m< h; m++){ b1 = bufferB[m]; if (isBetter(b1, b, doDilation)){ b = b1; maxIndexB = m; } } } // we can reuse the previous max/min value else { b = bufferB[maxIndexB]; } // discard the leftmost element bufferHead++; destPixels[dp] = (a & 0xff000000) | (r & 0xff0000) | (g & 0xff00) | (b & 0xff); dp += dstScanStride; } // return to the first pixel of the next column } } // when radiusY < h <= 2*radiusY }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/e45418ff988b32fc3dc0dd7124bab98c7ce86166/MorphologyOp.java/clean/sources/org/apache/batik/refimpl/gvt/filter/MorphologyOp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4582, 2227, 1494, 12, 18637, 1705, 16, 14505, 18637, 1570, 15329, 3639, 727, 509, 341, 273, 1705, 18, 588, 2384, 5621, 3639, 727, 509, 366, 273, 1705, 18, 588, 2686, 5621, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4582, 2227, 1494, 12, 18637, 1705, 16, 14505, 18637, 1570, 15329, 3639, 727, 509, 341, 273, 1705, 18, 588, 2384, 5621, 3639, 727, 509, 366, 273, 1705, 18, 588, 2686, 5621, 3639...