rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
myRawRowKeyPaths = new PropertyListSet();
myRawRowKeyPaths = new TreeSet();
public void addRawRowKeyPath(String _rawRowKeyPath, boolean _fireEvents) { if (_fireEvents) { Set oldRawRowKeyPaths = myRawRowKeyPaths; myRawRowKeyPaths = new PropertyListSet(); if (oldRawRowKeyPaths != null) { myRawRowKeyPaths.addAll(oldRawRowKeyPaths); } myRawRowKeyPaths.add(_rawRowKeyPath); firePropertyChange(EOFetchSpecification.RAW_ROW_KEY_PATHS, oldRawRowKeyPaths, myRawRowKeyPaths); } else { myRawRowKeyPaths.add(_rawRowKeyPath); } }
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/8124a2eab3b65cb02a74dc08a8def0fb75ca9f7d/EOFetchSpecification.java/clean/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EOFetchSpecification.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 4809, 1999, 653, 743, 12, 780, 389, 1899, 1999, 653, 743, 16, 1250, 389, 12179, 3783, 13, 288, 565, 309, 261, 67, 12179, 3783, 13, 288, 1377, 1000, 1592, 4809, 1999, 653...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 4809, 1999, 653, 743, 12, 780, 389, 1899, 1999, 653, 743, 16, 1250, 389, 12179, 3783, 13, 288, 565, 309, 261, 67, 12179, 3783, 13, 288, 1377, 1000, 1592, 4809, 1999, 653...
tc.beginCallArgs();
context.beginCallArgs();
private boolean isRescueHandled(RubyException currentException, ListNode exceptionNodes) { if (exceptionNodes == null) { return currentException.isKindOf(runtime.getClass("StandardError")); } ThreadContext tc = getThreadContext(); tc.beginCallArgs(); IRubyObject[] args = null; try { args = setupArgs(runtime, tc, exceptionNodes); } finally { tc.endCallArgs(); } for (int i = 0; i < args.length; i++) { if (! args[i].isKindOf(runtime.getClass("Module"))) { throw runtime.newTypeError("class or module required for rescue clause"); } if (args[i].callMethod("===", currentException).isTrue()) return true; } return false; }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/6e15491217631472c05c6928672f9c7064a978b3/EvaluationState.java/clean/src/org/jruby/evaluator/EvaluationState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 353, 607, 8007, 23186, 12, 54, 10340, 503, 783, 503, 16, 987, 907, 1520, 3205, 13, 288, 3639, 309, 261, 4064, 3205, 422, 446, 13, 288, 5411, 327, 783, 503, 18, 291, 5677, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 607, 8007, 23186, 12, 54, 10340, 503, 783, 503, 16, 987, 907, 1520, 3205, 13, 288, 3639, 309, 261, 4064, 3205, 422, 446, 13, 288, 5411, 327, 783, 503, 18, 291, 5677, ...
return null; }
return null; }
private IEditorReference openExternalEditor(final EditorDescriptor desc, IEditorInput input) throws PartInitException { final CoreException ex[] = new CoreException[1]; final IPathEditorInput pathInput = getPathEditorInput(input); if (pathInput != null) { BusyIndicator.showWhile(getDisplay(), new Runnable() { public void run() { try { if (desc.getLauncher() != null) { // open using launcher Object launcher = WorkbenchPlugin.createExtension( desc.getConfigurationElement(), "launcher"); //$NON-NLS-1$ ((IEditorLauncher) launcher).open(pathInput .getPath()); } else { // open using command ExternalEditor oEditor = new ExternalEditor( pathInput.getPath(), desc); oEditor.open(); } } catch (CoreException e) { ex[0] = e; } } }); } else { throw new PartInitException( NLS.bind(WorkbenchMessages.EditorManager_errorOpeningExternalEditor, desc.getFileName(), desc.getId() )); } if (ex[0] != null) { throw new PartInitException( NLS.bind(WorkbenchMessages.EditorManager_errorOpeningExternalEditor, desc.getFileName(), desc.getId() ), ex[0]); } // we do not have an editor part for external editors return null; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f1c8b0aa355c00a6c82a289c808984de6778bfca/EditorManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 6946, 2404, 1696, 6841, 6946, 12, 6385, 18451, 3187, 3044, 16, 5411, 467, 6946, 1210, 810, 13, 1216, 6393, 2570, 503, 288, 3639, 727, 30015, 431, 8526, 273, 394, 30015, 63, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 467, 6946, 2404, 1696, 6841, 6946, 12, 6385, 18451, 3187, 3044, 16, 5411, 467, 6946, 1210, 810, 13, 1216, 6393, 2570, 503, 288, 3639, 727, 30015, 431, 8526, 273, 394, 30015, 63, 21,...
setProperty( Style.CAN_SHRINK_PROP, Boolean.valueOf( value ) );
setProperty( IStyleModel.CAN_SHRINK_PROP, Boolean.valueOf( value ) );
public void setCanShrink( boolean value ) throws SemanticException { setProperty( Style.CAN_SHRINK_PROP, Boolean.valueOf( value ) ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/StyleHandle.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/StyleHandle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 2568, 28747, 12, 1250, 460, 262, 1216, 24747, 503, 202, 95, 202, 202, 542, 1396, 12, 9767, 18, 39, 1258, 67, 2664, 54, 8476, 67, 15811, 16, 3411, 18, 1132, 951, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 2568, 28747, 12, 1250, 460, 262, 1216, 24747, 503, 202, 95, 202, 202, 542, 1396, 12, 9767, 18, 39, 1258, 67, 2664, 54, 8476, 67, 15811, 16, 3411, 18, 1132, 951, 12...
Unsafe.debug(e.thread.getThreadStateName());
Unsafe.debug(e.thread.getThreadState());
final void dumpWaitingThreads(boolean dumpStack, VmStackReader stackReader) { VmThreadQueueEntry e = allThreadsQueue.first; while (e != null) { if (e.thread.isWaiting()) { Unsafe.debug(e.thread.getName()); Unsafe.debug(" id0x"); Unsafe.debug(e.thread.getId()); Unsafe.debug(" s0x"); Unsafe.debug(e.thread.getThreadStateName()); Unsafe.debug(" p0x"); Unsafe.debug(e.thread.priority); Unsafe.debug(" wf:"); Object wf = e.thread.waitForObject; if (wf == null) { Unsafe.debug("null"); } else { Unsafe.debug(VmMagic.getObjectType(wf).getName()); } Unsafe.debug("\n"); if (dumpStack && (stackReader != null)) { stackReader.debugStackTrace(e.thread); Unsafe.debug("\n"); Unsafe.debug("\n"); } } e = e.next; } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/62994783631e20e868b65c6250b1b0c82dff528a/VmScheduler.java/clean/core/src/core/org/jnode/vm/scheduler/VmScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 918, 4657, 15946, 13233, 12, 6494, 4657, 2624, 16, 776, 81, 2624, 2514, 2110, 2514, 13, 288, 3639, 776, 81, 3830, 26486, 425, 273, 777, 13233, 3183, 18, 3645, 31, 3639, 1323, 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, 727, 918, 4657, 15946, 13233, 12, 6494, 4657, 2624, 16, 776, 81, 2624, 2514, 2110, 2514, 13, 288, 3639, 776, 81, 3830, 26486, 425, 273, 777, 13233, 3183, 18, 3645, 31, 3639, 1323, 261, ...
public GraphicsConfiguration getGraphicsConfiguration() { if (graphicsConfiguration != null) return graphicsConfiguration; if (peer != null) return peer.getGraphicsConfiguration(); return null; }
public GraphicsConfiguration getGraphicsConfiguration() { if (graphicsConfiguration != null) return graphicsConfiguration; if (peer != null) return peer.getGraphicsConfiguration(); return null; }
public GraphicsConfiguration getGraphicsConfiguration() { if (graphicsConfiguration != null) return graphicsConfiguration; if (peer != null) return peer.getGraphicsConfiguration(); return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Window.java/clean/core/src/classpath/java/java/awt/Window.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16830, 1750, 336, 17558, 1750, 1435, 288, 202, 202, 430, 261, 31586, 1750, 480, 446, 13, 1082, 202, 2463, 17313, 1750, 31, 202, 202, 430, 261, 12210, 480, 446, 13, 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, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16830, 1750, 336, 17558, 1750, 1435, 288, 202, 202, 430, 261, 31586, 1750, 480, 446, 13, 1082, 202, 2463, 17313, 1750, 31, 202, 202, 430, 261, 12210, 480, 446, 13, 1082, 202, ...
if (namespace == fNamespaces[i]) {
if (isEqual(namespace, fNamespaces[i])) {
public XSObject itemByName(String namespace, String localName) { if (namespace != null) namespace = namespace.intern(); for (int i = 0; i < fNSNum; i++) { if (namespace == fNamespaces[i]) { XSTypeDefinition type = (XSTypeDefinition)fMaps[i].get(localName); // only return it if it mataches the required type if (type.getTypeCategory() == fType) return type; return null; } } return null; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/7c5a37c9c4706696d90fdc6471cd5608ad682b9d/XSNamedMap4Types.java/clean/src/org/apache/xerces/impl/xs/util/XSNamedMap4Types.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1139, 55, 921, 761, 5911, 12, 780, 1981, 16, 514, 11927, 13, 288, 3639, 309, 261, 4937, 480, 446, 13, 5411, 1981, 273, 1981, 18, 267, 798, 5621, 3639, 364, 261, 474, 277, 273, 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, 1139, 55, 921, 761, 5911, 12, 780, 1981, 16, 514, 11927, 13, 288, 3639, 309, 261, 4937, 480, 446, 13, 5411, 1981, 273, 1981, 18, 267, 798, 5621, 3639, 364, 261, 474, 277, 273, 3...
throw new MessageInvalidException(ProtocolErrorMessage.INVALID_MESSAGE, "PeerRemoved goes from server to client not the other way around", null);
throw new MessageInvalidException(ProtocolErrorMessage.INVALID_MESSAGE, "PeerRemoved goes from server to client not the other way around", null, false);
public void run(FCPConnectionHandler handler, Node node) throws MessageInvalidException { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_MESSAGE, "PeerRemoved goes from server to client not the other way around", null); }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/PeerRemoved.java/buggy/src/freenet/node/fcp/PeerRemoved.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 42, 4258, 1952, 1503, 1838, 16, 2029, 756, 13, 1082, 202, 15069, 2350, 1941, 503, 288, 202, 202, 12849, 394, 2350, 1941, 503, 12, 5752, 14935, 18, 9347, 67, 872...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 42, 4258, 1952, 1503, 1838, 16, 2029, 756, 13, 1082, 202, 15069, 2350, 1941, 503, 288, 202, 202, 12849, 394, 2350, 1941, 503, 12, 5752, 14935, 18, 9347, 67, 872...
SOAPBinding binding = (SOAPBinding)((BindingProvider)port).getBinding(); binding.setMTOMEnabled(true);
SOAPBinding binding = (SOAPBinding)((BindingProvider)port).getBinding (); binding.setMTOMEnabled (true);
public static void main(String[] args){ try { //obtain the service from ServiceFactory ServiceFactory serviceFactory = ServiceFactory.newInstance(); HelloService service = (HelloService)serviceFactory.createService(null, HelloService.class); //get the port Object port = service.getHelloPort(); if(port == null){ System.out.println("TEST FAILURE: Couldnt get port!"); System.exit(-1); } //get the binding and enable mtom SOAPBinding binding = (SOAPBinding)((BindingProvider)port).getBinding(); binding.setMTOMEnabled(true); //test mtom testMtom((Hello)port); //test swaref testSwaref((Hello)port); } catch (Exception ex) { System.out.println("SOAP 1.2 MtomApp FAILED!"); ex.printStackTrace(); } }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/5b8369317fabd5bf16cb9240ee90c70999631da9/MtomApp.java/buggy/jaxws-ri/samples/mtom-soap12/src/mtom_soap12/client/MtomApp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 15329, 3639, 775, 288, 5411, 368, 947, 5977, 326, 1156, 628, 1956, 1733, 5411, 1956, 1733, 1156, 1733, 273, 1956, 1733, 18, 2704, 1442, 5621, 541...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 15329, 3639, 775, 288, 5411, 368, 947, 5977, 326, 1156, 628, 1956, 1733, 5411, 1956, 1733, 1156, 1733, 273, 1956, 1733, 18, 2704, 1442, 5621, 541...
myResult = Spacing.createSpacing(0, 0, 0, true, 0);
myResult = Spacing.createSpacing(0, 0, 0, true, mySettings.KEEP_BLANK_LINES_IN_CODE);
public JavaSpacePropertyProcessor(ASTNode child, final CodeStyleSettings settings) { init(child); mySettings = settings; myImportHelper = new ImportHelper(mySettings); if (myChild1.getPsi().getLanguage() != StdLanguages.JAVA || myChild2.getPsi().getLanguage() != StdLanguages.JAVA) { return; } if (myChild2 != null && mySettings.KEEP_FIRST_COLUMN_COMMENT && ElementType.COMMENT_BIT_SET.contains(myChild2.getElementType())) { myResult = Spacing .createKeepingFirstColumnSpacing(0, Integer.MAX_VALUE, true, 1); } else { if (myParent != null) { myParent.accept(this); if (myResult == null) { final ASTNode prev = getPrevElementType(myChild2); if (prev != null && prev.getElementType() == ElementType.END_OF_LINE_COMMENT) { myResult = Spacing .createSpacing(0, 0, 1, mySettings.KEEP_LINE_BREAKS, mySettings.KEEP_BLANK_LINES_IN_CODE); } else if (!CodeEditUtil.canStickChildrenTogether(myChild1, myChild2)) { myResult = Spacing .createSpacing(1, Integer.MIN_VALUE, 0, mySettings.KEEP_LINE_BREAKS, mySettings.KEEP_BLANK_LINES_IN_CODE); } else if (myChild1.getElementType() == ElementType.C_STYLE_COMMENT){ myResult = null; } else if (!shouldKeepSpace(myParent)){ myResult = Spacing.createSpacing(0, 0, 0, true, 0); } } } } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/dccfa1d3293b3a03f929388601d2b03e2edabf1d/JavaSpacePropertyProcessor.java/clean/source/com/intellij/psi/formatter/java/JavaSpacePropertyProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5110, 3819, 1396, 5164, 12, 9053, 907, 1151, 16, 727, 3356, 2885, 2628, 1947, 13, 288, 565, 1208, 12, 3624, 1769, 565, 3399, 2628, 273, 1947, 31, 565, 3399, 5010, 2276, 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, 5110, 3819, 1396, 5164, 12, 9053, 907, 1151, 16, 727, 3356, 2885, 2628, 1947, 13, 288, 565, 1208, 12, 3624, 1769, 565, 3399, 2628, 273, 1947, 31, 565, 3399, 5010, 2276, 273, 394, ...
if(DEBUG) System.out.println("\n::acceptNode - score: "+score.num()+"::");
public short acceptNode(Node n) { XPathContext xctxt = m_lpi.getXPathContext(); try { xctxt.pushCurrentNode(n); XObject score = execute(xctxt); // System.out.println("::acceptNode - score: "+score.num()+"::"); if (score != NodeTest.SCORE_NONE) { if (m_predicateCount > 0) { countProximityPosition(0); if (!executePredicates(n, xctxt)) return NodeFilter.FILTER_SKIP; } return NodeFilter.FILTER_ACCEPT; } } catch (javax.xml.transform.TransformerException se) { // TODO: Fix this. throw new RuntimeException(se.getMessage()); } finally { xctxt.popCurrentNode(); } return NodeFilter.FILTER_SKIP; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/85fa2bc305091ccf26eacd43d633196437896058/AxesWalker.java/buggy/src/org/apache/xpath/axes/AxesWalker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 12, 9394, 13, 2332, 18, 659, 18, 8222, 31458, 82, 2866, 9436, 907, 300, 4462, 30, 13773, 6355, 18, 2107, 1435, 15, 6877, 2773, 1769, 309, 12, 9394, 13, 2332, 18, 659, 18, 8222, 31458, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 12, 9394, 13, 2332, 18, 659, 18, 8222, 31458, 82, 2866, 9436, 907, 300, 4462, 30, 13773, 6355, 18, 2107, 1435, 15, 6877, 2773, 1769, 309, 12, 9394, 13, 2332, 18, 659, 18, 8222, 31458, ...
((HeapRowLocation)rowloc_array[index]).setFrom(rh);
((HeapRowLocation)rowloc_array[index]).setFrom(pos.current_rh);
protected void setRowLocationArray( RowLocation[] rowloc_array, int index, RecordHandle rh) throws StandardException { if (rowloc_array[index] == null) { rowloc_array[index] = new HeapRowLocation(rh); } else { if (SanityManager.DEBUG) { SanityManager.ASSERT( rowloc_array[index] instanceof HeapRowLocation); } ((HeapRowLocation)rowloc_array[index]).setFrom(rh); } }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/aaea35714b16a9df552eb9d0d624d9404763f92e/HeapScan.java/clean/java/engine/org/apache/derby/impl/store/access/heap/HeapScan.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 1999, 2735, 1076, 12, 565, 6556, 2735, 8526, 282, 1027, 1829, 67, 1126, 16, 565, 509, 2398, 770, 16, 565, 5059, 3259, 565, 6259, 13, 3639, 1216, 8263, 503, 565, 288, 363...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 1999, 2735, 1076, 12, 565, 6556, 2735, 8526, 282, 1027, 1829, 67, 1126, 16, 565, 509, 2398, 770, 16, 565, 5059, 3259, 565, 6259, 13, 3639, 1216, 8263, 503, 565, 288, 363...
if (event.widget == HeapStatus.this) setMark(); else if (event.widget == button) arm(true);
if (event.widget == HeapStatus.this) { setMark(); } else if (event.widget == button) { arm(true); }
public void handleEvent(Event event) { switch (event.type) { case SWT.Dispose: doDispose(); break; case SWT.Resize: Rectangle rect = getClientArea(); button.setBounds(rect.width - imgBounds.width - 1, 1, imgBounds.width, rect.height - 2); break; case SWT.Paint: if (event.widget == HeapStatus.this) { paintComposite(event.gc); } else if (event.widget == button) { paintButton(event.gc); } break; case SWT.MouseUp: if (event.button == 1) { gc(); arm(false); } break; case SWT.MouseDown: if (event.button == 1) { if (event.widget == HeapStatus.this) setMark(); else if (event.widget == button) arm(true); } break; case SWT.MouseExit: arm(false); break; } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/HeapStatus.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/HeapStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1640, 1133, 12, 1133, 871, 13, 288, 7734, 1620, 261, 2575, 18, 723, 13, 288, 7734, 648, 348, 8588, 18, 1669, 4150, 30, 1171, 202, 2896, 1669, 4150, 5621, 10792, 898, 31, 773...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1640, 1133, 12, 1133, 871, 13, 288, 7734, 1620, 261, 2575, 18, 723, 13, 288, 7734, 648, 348, 8588, 18, 1669, 4150, 30, 1171, 202, 2896, 1669, 4150, 5621, 10792, 898, 31, 773...
ctx.setViewCSS((ViewCSS)doc.getDefaultView());
public static Marker convertURIToMarker(String markerURI, SVGElement paintedElement, BridgeContext ctx, CSSStyleDeclaration decl, UnitProcessor.Context uctx){ URIResolver ur = new URIResolver((SVGDocument)paintedElement.getOwnerDocument(), ctx.getDocumentLoader()); Element markerElement = null; try { markerElement = ur.getElement(markerURI); } catch (Exception ex) { throw new IllegalAttributeValueException (Messages.formatMessage("bad.uri", new Object[] {markerURI})); } Bridge bridge = ctx.getBridge(markerElement); if ((bridge == null) || !(bridge instanceof MarkerBridge)){ throw new IllegalAttributeValueException (Messages.formatMessage("marker.reference.illegal", new Object[] {markerElement.getLocalName()})); } MarkerBridge markerBridge = (MarkerBridge)bridge; SVGOMDocument doc = (SVGOMDocument)markerElement.getOwnerDocument(); ViewCSS v = ctx.getViewCSS(); ctx.setViewCSS((ViewCSS)doc.getDefaultView()); Marker marker = markerBridge.buildMarker(ctx, markerElement, paintedElement); ctx.setViewCSS(v); return marker; }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/860473777fa07c8796a45edea559726439a3b9db/CSSUtilities.java/buggy/sources/org/apache/batik/bridge/CSSUtilities.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 14742, 1765, 3098, 774, 7078, 12, 780, 5373, 3098, 16, 4766, 5411, 11281, 1046, 12574, 329, 1046, 16, 4766, 5411, 24219, 1042, 1103, 16, 4766, 5411, 6765, 2885, 6094, 3496, 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, 760, 14742, 1765, 3098, 774, 7078, 12, 780, 5373, 3098, 16, 4766, 5411, 11281, 1046, 12574, 329, 1046, 16, 4766, 5411, 24219, 1042, 1103, 16, 4766, 5411, 6765, 2885, 6094, 3496, 16, ...
case 165: { match(165);
case 167: { match(167);
public final void primaryExpr() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST primaryExpr_AST = null; String varName= null; switch ( LA(1)) { case LT: case XML_COMMENT: case XML_PI: { directConstructor(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case SELF: { contextItemExpr(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case LPAREN: { parenthesizedExpr(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case DOLLAR: { varRef(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { literal(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: boolean synPredMatched270 = false; if (((_tokenSet_12.member(LA(1))))) { int _m270 = mark(); synPredMatched270 = true; inputState.guessing++; try { { { switch ( LA(1)) { case LITERAL_element: { match(LITERAL_element); break; } case LITERAL_attribute: { match(LITERAL_attribute); break; } case LITERAL_text: { match(LITERAL_text); break; } case LITERAL_document: { match(LITERAL_document); break; } case 165: { match(165); break; } case LITERAL_comment: { match(LITERAL_comment); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(LCURLY); } } catch (RecognitionException pe) { synPredMatched270 = false; } rewind(_m270); inputState.guessing--; } if ( synPredMatched270 ) { computedConstructor(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched273 = false; if (((_tokenSet_12.member(LA(1))))) { int _m273 = mark(); synPredMatched273 = true; inputState.guessing++; try { { { switch ( LA(1)) { case LITERAL_element: { match(LITERAL_element); break; } case LITERAL_attribute: { match(LITERAL_attribute); break; } case 165: { match(165); break; } case LITERAL_namespace: { match(LITERAL_namespace); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } qName(); match(LCURLY); } } catch (RecognitionException pe) { synPredMatched273 = false; } rewind(_m273); inputState.guessing--; } if ( synPredMatched273 ) { computedConstructor(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched275 = false; if (((LA(1)==LITERAL_ordered))) { int _m275 = mark(); synPredMatched275 = true; inputState.guessing++; try { { match(LITERAL_ordered); match(LCURLY); } } catch (RecognitionException pe) { synPredMatched275 = false; } rewind(_m275); inputState.guessing--; } if ( synPredMatched275 ) { orderedExpr(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { boolean synPredMatched277 = false; if (((LA(1)==LITERAL_unordered))) { int _m277 = mark(); synPredMatched277 = true; inputState.guessing++; try { { match(LITERAL_unordered); match(LCURLY); } } catch (RecognitionException pe) { synPredMatched277 = false; } rewind(_m277); inputState.guessing--; } if ( synPredMatched277 ) { unorderedExpr(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else if ((_tokenSet_1.member(LA(1)))) { functionCall(); astFactory.addASTChild(currentAST, returnAST); primaryExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } }}}} returnAST = primaryExpr_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/68bb69fc2bc91cbece43dcdf563e1be3ba003e1b/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3354, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 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, 727, 918, 3354, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5...
String metadataPath = local.formatAsFile( metadata.getRepositoryPath() );
File metadataFile = (File) resolved.get( metadata.getRepositoryPath() );
public void resolve( RepositoryMetadata metadata, ArtifactRepository remote, ArtifactRepository local, String remoteId ) throws RepositoryMetadataManagementException { String metadataPath = local.formatAsFile( metadata.getRepositoryPath() ); String realignedPath = metadataPath.replace( File.separatorChar, '/' ); if ( !realignedPath.startsWith( "/" ) ) { realignedPath = "/" + realignedPath; } realignedPath = "/REPOSITORY-INF/" + remoteId + realignedPath; File metadataFile = new File( local.getBasedir(), realignedPath ); if ( remote == null ) { if ( metadataFile.exists() ) { getLogger().warn( "Cannot retrieve repository metadata for: " + metadataPath + ". Using locally cached version instead." ); getLogger().debug( "Error retrieving repository metadata: " + metadataPath + ". Reason: repository is null." ); metadata.setFile( metadataFile ); } else { throw new RepositoryMetadataManagementException( metadata, "Cannot retrieve repository metadata from null repository." ); } } else { try { wagonManager.getRepositoryMetadata( metadata, remote, metadataFile ); metadata.setFile( metadataFile ); } catch ( TransferFailedException e ) { throw new RepositoryMetadataManagementException( metadata, "Failed to download repository metadata.", e ); } catch ( ResourceDoesNotExistException e ) { if ( metadataFile.exists() ) { getLogger().warn( "Cannot find repository metadata for: " + metadataPath + ". Using locally cached version instead." ); getLogger().debug( "Error retrieving repository metadata: " + metadataPath, e ); metadata.setFile( metadataFile ); } else { throw new RepositoryMetadataManagementException( metadata, "Remote repository metadata not found.", e ); } } } }
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/4b53aba3bb6839694970739baeb1918bbf4acec0/DefaultRepositoryMetadataManager.java/buggy/maven-artifact-manager/src/main/java/org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2245, 12, 6281, 2277, 1982, 16, 14022, 3305, 2632, 16, 14022, 3305, 1191, 16, 514, 2632, 548, 262, 3639, 1216, 6281, 2277, 10998, 503, 565, 288, 3639, 1387, 1982, 812, 273, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2245, 12, 6281, 2277, 1982, 16, 14022, 3305, 2632, 16, 14022, 3305, 1191, 16, 514, 2632, 548, 262, 3639, 1216, 6281, 2277, 10998, 503, 565, 288, 3639, 1387, 1982, 812, 273, 261...
cacheObj = (Entry)idMap.get(name); if (cacheObj == null) { cacheObj = new Entry(updateMode, id, name, sobj); idMap.put(idObj, cacheObj); objMap.put(sobj, cacheObj); nameMap.put(name, cacheObj); } else { if (updateMode != UPDATE_NOCHANGE) { cacheObj.updateMode = updateMode; } if (name != null) { cacheObj.name = name; } if (sobj != null) { cacheObj.sobj = sobj; } }
idMap.put(entry.idObj, entry); objMap.put(entry.sobj, entry); nameMap.put(entry.name, entry);
Entry put(int updateMode, long id, String name, Serializable sobj) { Long idObj = new Long(id); Entry cacheObj = null; synchronized (this) { cacheObj = (Entry)idMap.get(name); if (cacheObj == null) { cacheObj = new Entry(updateMode, id, name, sobj); idMap.put(idObj, cacheObj); objMap.put(sobj, cacheObj); nameMap.put(name, cacheObj); } else { // it's possible that the entry is there with no obj if (updateMode != UPDATE_NOCHANGE) { cacheObj.updateMode = updateMode; } if (name != null) { cacheObj.name = name; } if (sobj != null) { cacheObj.sobj = sobj; } } } return cacheObj; }
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/2f23674f4de52df87aaa80740784705fb4dbe973/CachingObjectStoreCache.java/clean/src/com/sun/gi/objectstore/impl/CachingObjectStoreCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3841, 1378, 12, 474, 1089, 2309, 16, 1525, 612, 16, 514, 508, 16, 13687, 1427, 441, 13, 288, 3639, 3407, 612, 2675, 273, 394, 3407, 12, 350, 1769, 3639, 3841, 1247, 2675, 273, 446, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3841, 1378, 12, 474, 1089, 2309, 16, 1525, 612, 16, 514, 508, 16, 13687, 1427, 441, 13, 288, 3639, 3407, 612, 2675, 273, 394, 3407, 12, 350, 1769, 3639, 3841, 1247, 2675, 273, 446, 31, ...
public TA_RetCode HT_PHASOR( int startIdx, int endIdx, double inReal[], MInteger outBegIdx, MInteger outNbElement, double outInPhase[], double outQuadrature[] ){ int outIdx, i; int lookbackTotal, today; double tempReal, tempReal2; double adjustedPrevPeriod, period; int trailingWMAIdx; double periodWMASum, periodWMASub, trailingWMAValue; double smoothedValue; final double a = 0.0962; final double b = 0.5769; double hilbertTempReal; int hilbertIdx; double []detrender_Odd = new double[3]; ; double []detrender_Even = new double[3]; ; double detrender; double prev_detrender_Odd ; double prev_detrender_Even ; double prev_detrender_input_Odd ; double prev_detrender_input_Even ; double []Q1_Odd = new double[3]; ; double []Q1_Even = new double[3]; ; double Q1; double prev_Q1_Odd ; double prev_Q1_Even ; double prev_Q1_input_Odd ; double prev_Q1_input_Even ; double []jI_Odd = new double[3]; ; double []jI_Even = new double[3]; ; double jI; double prev_jI_Odd ; double prev_jI_Even ; double prev_jI_input_Odd ; double prev_jI_input_Even ; double []jQ_Odd = new double[3]; ; double []jQ_Even = new double[3]; ; double jQ; double prev_jQ_Odd ; double prev_jQ_Even ; double prev_jQ_input_Odd ; double prev_jQ_input_Even ; double Q2, I2, prevQ2, prevI2, Re, Im; double I1ForOddPrev2, I1ForOddPrev3; double I1ForEvenPrev2, I1ForEvenPrev3; double rad2Deg; double todayValue; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; rad2Deg = 180.0 / (4.0 * Math.atan (1)); lookbackTotal = 32 + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_HT_PHASOR.ordinal()]) ; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outBegIdx.value = startIdx; trailingWMAIdx = startIdx - lookbackTotal; today = trailingWMAIdx; tempReal = inReal[today++]; periodWMASub = tempReal; periodWMASum = tempReal; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*2.0; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*3.0; trailingWMAValue = 0.0; i = 9; do { tempReal = inReal[today++]; { periodWMASub += tempReal; periodWMASub -= trailingWMAValue; periodWMASum += tempReal*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; } while( --i != 0); hilbertIdx = 0; { detrender_Odd [0] = 0.0; detrender_Odd [1] = 0.0; detrender_Odd [2] = 0.0; detrender_Even [0] = 0.0; detrender_Even [1] = 0.0; detrender_Even [2] = 0.0; detrender = 0.0; prev_detrender_Odd = 0.0; prev_detrender_Even = 0.0; prev_detrender_input_Odd = 0.0; prev_detrender_input_Even = 0.0; } ; { Q1_Odd [0] = 0.0; Q1_Odd [1] = 0.0; Q1_Odd [2] = 0.0; Q1_Even [0] = 0.0; Q1_Even [1] = 0.0; Q1_Even [2] = 0.0; Q1 = 0.0; prev_Q1_Odd = 0.0; prev_Q1_Even = 0.0; prev_Q1_input_Odd = 0.0; prev_Q1_input_Even = 0.0; } ; { jI_Odd [0] = 0.0; jI_Odd [1] = 0.0; jI_Odd [2] = 0.0; jI_Even [0] = 0.0; jI_Even [1] = 0.0; jI_Even [2] = 0.0; jI = 0.0; prev_jI_Odd = 0.0; prev_jI_Even = 0.0; prev_jI_input_Odd = 0.0; prev_jI_input_Even = 0.0; } ; { jQ_Odd [0] = 0.0; jQ_Odd [1] = 0.0; jQ_Odd [2] = 0.0; jQ_Even [0] = 0.0; jQ_Even [1] = 0.0; jQ_Even [2] = 0.0; jQ = 0.0; prev_jQ_Odd = 0.0; prev_jQ_Even = 0.0; prev_jQ_input_Odd = 0.0; prev_jQ_input_Even = 0.0; } ; period = 0.0; outIdx = 0; prevI2 = prevQ2 = 0.0; Re = Im = 0.0; I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; while( today <= endIdx ) { adjustedPrevPeriod = (0.075*period)+0.54; todayValue = inReal[today]; { periodWMASub += todayValue; periodWMASub -= trailingWMAValue; periodWMASum += todayValue*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; if( (today%2) == 0 ) { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Even [hilbertIdx]; detrender_Even [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Even ; prev_detrender_Even = b * prev_detrender_input_Even ; detrender += prev_detrender_Even ; prev_detrender_input_Even = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Even [hilbertIdx]; Q1_Even [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Even ; prev_Q1_Even = b * prev_Q1_input_Even ; Q1 += prev_Q1_Even ; prev_Q1_input_Even = detrender; Q1 *= adjustedPrevPeriod; } ; if( today >= startIdx ) { outQuadrature[outIdx] = Q1; outInPhase[outIdx++] = I1ForEvenPrev3; } { hilbertTempReal = a * I1ForEvenPrev3; jI = -jI_Even [hilbertIdx]; jI_Even [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Even ; prev_jI_Even = b * prev_jI_input_Even ; jI += prev_jI_Even ; prev_jI_input_Even = I1ForEvenPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Even [hilbertIdx]; jQ_Even [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Even ; prev_jQ_Even = b * prev_jQ_input_Even ; jQ += prev_jQ_Even ; prev_jQ_input_Even = Q1; jQ *= adjustedPrevPeriod; } ; if( ++hilbertIdx == 3 ) hilbertIdx = 0; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); I1ForOddPrev3 = I1ForOddPrev2; I1ForOddPrev2 = detrender; } else { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Odd [hilbertIdx]; detrender_Odd [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Odd ; prev_detrender_Odd = b * prev_detrender_input_Odd ; detrender += prev_detrender_Odd ; prev_detrender_input_Odd = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Odd [hilbertIdx]; Q1_Odd [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Odd ; prev_Q1_Odd = b * prev_Q1_input_Odd ; Q1 += prev_Q1_Odd ; prev_Q1_input_Odd = detrender; Q1 *= adjustedPrevPeriod; } ; if( today >= startIdx ) { outQuadrature[outIdx] = Q1; outInPhase[outIdx++] = I1ForOddPrev3; } { hilbertTempReal = a * I1ForOddPrev3; jI = -jI_Odd [hilbertIdx]; jI_Odd [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Odd ; prev_jI_Odd = b * prev_jI_input_Odd ; jI += prev_jI_Odd ; prev_jI_input_Odd = I1ForOddPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Odd [hilbertIdx]; jQ_Odd [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Odd ; prev_jQ_Odd = b * prev_jQ_input_Odd ; jQ += prev_jQ_Odd ; prev_jQ_input_Odd = Q1; jQ *= adjustedPrevPeriod; } ; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); I1ForEvenPrev3 = I1ForEvenPrev2; I1ForEvenPrev2 = detrender; } Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); prevQ2 = Q2; prevI2 = I2; tempReal = period; if( (Im != 0.0) && (Re != 0.0) ) period = 360.0 / ( Math.atan (Im/Re)*rad2Deg); tempReal2 = 1.5*tempReal; if( period > tempReal2) period = tempReal2; tempReal2 = 0.67*tempReal; if( period < tempReal2 ) period = tempReal2; if( period < 6 ) period = 6; else if( period > 50 ) period = 50; period = (0.2*period) + (0.8 * tempReal); today++; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;}
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 9833, 67, 7055, 1085, 5062, 67, 8939, 3033, 916, 12, 474, 1937, 4223, 16, 474, 409, 4223, 16, 9056, 267, 6955, 63, 6487, 49, 4522, 659, 24059, 4223, 16, 49, 4522, 659, 22816, 1046, 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, 1071, 9833, 67, 7055, 1085, 5062, 67, 8939, 3033, 916, 12, 474, 1937, 4223, 16, 474, 409, 4223, 16, 9056, 267, 6955, 63, 6487, 49, 4522, 659, 24059, 4223, 16, 49, 4522, 659, 22816, 1046, 16,...
}
}
void jbInit() throws Exception { // make it non resizable setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); // create sessions panel createSessionsPanel(); // create emulator options panel createEmulatorOptionsPanel(); // create the button options createButtonOptions(); JTabbedPane optionTabs = new JTabbedPane(); optionTabs.addChangeListener(this); optionTabs.addTab(LangTool.getString("ss.labelConnections"),sessionPanel); optionTabs.addTab(LangTool.getString("ss.labelOptions1"),emulOptPanel); // add the panels to our dialog getContentPane().add(optionTabs,BorderLayout.CENTER); getContentPane().add(options, BorderLayout.SOUTH); // pack it and center it on the screen pack(); Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = getSize(); if (frameSize.height > screenSize.height) frameSize.height = screenSize.height; if (frameSize.width > screenSize.width) frameSize.width = screenSize.width; setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); // set default selection value as the first row or default session if (sessions.getRowCount() > 0) { int selInterval = 0; for (int x = 0; x < sessions.getRowCount(); x++) { if (((Boolean)ctm.getValueAt(x,2)).booleanValue()) selInterval = x; } sessions.getSelectionModel().setSelectionInterval(selInterval,selInterval); } // Oh man what a pain in the ass. Had to add a window listener to request // focus of the sessions list. addWindowListener(new WindowAdapter() { public void windowOpened(WindowEvent e) { SwingUtilities.invokeLater(new Runnable() { public void run() { sessions.requestFocus(); } }); } }); // now show the world what we and they can do this.setVisible(true); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d2b23250c95f45ef098e021cba0d970cd4733e3e/Connect.java/buggy/tn5250j/src/org/tn5250j/Connect.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 918, 20515, 2570, 1435, 1216, 1185, 288, 1377, 368, 1221, 518, 1661, 400, 6934, 1377, 444, 607, 6934, 12, 3767, 1769, 1377, 333, 18, 542, 1868, 4605, 2988, 12, 46, 6353, 18, 13498, 23757,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 918, 20515, 2570, 1435, 1216, 1185, 288, 1377, 368, 1221, 518, 1661, 400, 6934, 1377, 444, 607, 6934, 12, 3767, 1769, 1377, 333, 18, 542, 1868, 4605, 2988, 12, 46, 6353, 18, 13498, 23757,...
byte[] mySysex = new byte[p.sysex.length]; System.arraycopy(p.sysex, 0, mySysex, 0, p.sysex.length); PatchEdit.Clipboard = new Patch(mySysex, (p.date.toString()), (p.author.toString()), (p.comment.toString()));
PatchEdit.Clipboard = (Patch) p.clone();
public void CopySelectedPatch() { try { byte[] mySysex = new byte[p.sysex.length]; System.arraycopy(p.sysex, 0, mySysex, 0, p.sysex.length); PatchEdit.Clipboard = new Patch(mySysex, (p.date.toString()), (p.author.toString()), (p.comment.toString())); } catch (Exception e) { } }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/20bc8bc346af6352a17c3800757afb8d86f7ddd5/PatchEditorFrame.java/clean/JSynthLib/core/PatchEditorFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5631, 7416, 7332, 1435, 288, 202, 698, 288, 202, 565, 1160, 8526, 3399, 10876, 20909, 273, 394, 1160, 63, 84, 18, 9009, 20909, 18, 2469, 15533, 202, 565, 2332, 18, 1126, 3530, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5631, 7416, 7332, 1435, 288, 202, 698, 288, 202, 565, 1160, 8526, 3399, 10876, 20909, 273, 394, 1160, 63, 84, 18, 9009, 20909, 18, 2469, 15533, 202, 565, 2332, 18, 1126, 3530, ...
public LatestConflictManager(String name, LatestStrategy strategy) { setName(name); _strategy = strategy;
public LatestConflictManager() {
public LatestConflictManager(String name, LatestStrategy strategy) { setName(name); _strategy = strategy; }
45724 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45724/66e597b4b19e9bf55e2caf2b1ded420fc39d830e/LatestConflictManager.java/buggy/src/java/fr/jayasoft/ivy/conflict/LatestConflictManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 29830, 10732, 1318, 12, 780, 508, 16, 29830, 4525, 6252, 13, 288, 3639, 6788, 12, 529, 1769, 3639, 389, 14914, 273, 6252, 31, 565, 289, 2, 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, 377, 1071, 29830, 10732, 1318, 12, 780, 508, 16, 29830, 4525, 6252, 13, 288, 3639, 6788, 12, 529, 1769, 3639, 389, 14914, 273, 6252, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, ...
public void replaceWhiteSpace(final TextRange textRange, final String whiteSpace) throws IncorrectOperationException { final PomModel model = myProject.getModel(); final TreeAspect aspect = model.getModelAspect(TreeAspect.class); try { model.runTransaction(new PomTransactionBase(SourceTreeToPsiMap.treeElementToPsi(myASTNode)) { public PomModelEvent runInner(){ final FileElement fileElement = getFileElement(myASTNode); final ASTNode leafElement = myASTNode.findLeafElementAt(textRange.getEndOffset()); if (leafElement.getTextRange().getStartOffset() < textRange.getStartOffset()) { new Helper(StdFileTypes.JAVA, myProject).shiftIndentInside(leafElement, whiteSpace.length()); } else { FormatterUtil.replaceWhiteSpace(whiteSpace, leafElement, ElementType.WHITE_SPACE); if (leafElement.textContains('\n') && whiteSpace.indexOf('\n') >= 0) { try { int lastLineIndent = getLastLineIndent(leafElement.getText()); new Helper(StdFileTypes.JAVA, myProject).shiftIndentInside(leafElement, whiteSpace.length() - lastLineIndent); } catch (IOException e) { throw new RuntimeException(e); } } } TreeUtil.clearCaches(fileElement); return null; } private int getLastLineIndent(final String text) throws IOException { final CodeStyleSettings.IndentOptions options = mySettings.JAVA_INDENT_OPTIONS; String lastLine = getLastLine(text); if (lastLine == null) return 0; int result = 0; for (int i = 0; i < lastLine.length(); i++) { if (lastLine.charAt(i) == ' ') result += 1; if (lastLine.charAt(i) == '\t') result += options.TAB_SIZE; return result; } return result; } private String getLastLine(final String text) throws IOException { final LineNumberReader lineNumberReader = new LineNumberReader(new StringReader(text)); String line; String result = null; while ((line = lineNumberReader.readLine()) != null) { result = line; } return result; } private FileElement getFileElement(final ASTNode element) { return (FileElement)SourceTreeToPsiMap.psiElementToTree(SourceTreeToPsiMap.treeElementToPsi(element).getContainingFile()); } }, aspect); } catch (IncorrectOperationException e) { throw e; } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/3d95d940400c3ed698393da0923c6604f21be891/PsiBasedFormattingModel.java/clean/source/com/intellij/psi/formatter/PsiBasedFormattingModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2079, 23108, 12, 6385, 1528, 54, 539, 27830, 2655, 16, 6385, 780, 14739, 3819, 13, 15069, 16268, 10602, 95, 6385, 52, 362, 1488, 2284, 33, 4811, 4109, 18, 588, 1488, 5621, 6385, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2079, 23108, 12, 6385, 1528, 54, 539, 27830, 2655, 16, 6385, 780, 14739, 3819, 13, 15069, 16268, 10602, 95, 6385, 52, 362, 1488, 2284, 33, 4811, 4109, 18, 588, 1488, 5621, 6385, 24...
public void parse() { if( originalType instanceof TemplateTypeSpec ) { ((TemplateTypeSpec)originalType).markTypeDefd(); }// String typeName = ( pack_name.length() > 0 ? pack_name + "." : "" ) + name;// try// {// if( typeName.length() > 0 ) // NameTable.define( typeName , "type" );// else // ;// } // catch ( NameAlreadyDefined nad )// {// Environment.output( 4, nad );// parser.error("Typedef'd name " + typeName + " already defined", token);// } if( originalType instanceof ConstrTypeSpec || originalType instanceof FixedPointType || originalType instanceof SequenceType || originalType instanceof ArrayTypeSpec ) { originalType.parse(); if( originalType.typeName().indexOf( '.' ) < 0 ) { String tName = null; if( originalType instanceof SequenceType || originalType instanceof ArrayTypeSpec ) { tName = originalType.typeName().substring( 0, originalType.typeName().indexOf('[')); } else tName = originalType.typeName(); addImportedName( tName );// imports.put( tName, "" );// imports.put( tName + "Helper", "" ); } } if( originalType instanceof ScopedName ) { originalType = ((ScopedName)originalType).resolvedTypeSpec(); addImportedName( originalType.typeName() );// if( originalType.typeName().indexOf( '.' ) < 0 )// {// imports.put( originalType.typeName(), "" );// imports.put( originalType.typeName() + "Helper", "" );// } } }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/a41a3769d8e9b1a4b91283cf51cef4c72bb9bf12/AliasTypeSpec.java/buggy/src/org/jacorb/idl/AliasTypeSpec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1109, 1435, 3196, 288, 202, 430, 12, 2282, 559, 1276, 5035, 559, 1990, 262, 202, 95, 202, 12443, 2283, 559, 1990, 13, 8830, 559, 2934, 3355, 559, 3262, 72, 5621, 202, 202, 97, 759...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1109, 1435, 3196, 288, 202, 430, 12, 2282, 559, 1276, 5035, 559, 1990, 262, 202, 95, 202, 12443, 2283, 559, 1990, 13, 8830, 559, 2934, 3355, 559, 3262, 72, 5621, 202, 202, 97, 759...
int taskTrackerPort, int numTaskTrackers, String namenode, boolean taskTrackerFirst) throws IOException { this.jobTrackerPort = jobTrackerPort; this.taskTrackerPort = taskTrackerPort; this.numTaskTrackers = numTaskTrackers; this.namenode = namenode; File configDir = new File("build", "minimr"); configDir.mkdirs(); File siteFile = new File(configDir, "hadoop-site.xml"); PrintWriter pw = new PrintWriter(siteFile); pw.print("<?xml version=\"1.0\"?>\n"+ "<?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?>\n"+ "<configuration>\n"+ " <property>\n"+ " <name>mapred.system.dir</name>\n"+ " <value>build/test/mapred/system</value>\n"+ " </property>\n"+ "</configuration>\n"); pw.close(); jobTracker = new JobTrackerRunner(); jobTrackerThread = new Thread(jobTracker); if (!taskTrackerFirst) { jobTrackerThread.start(); } for (int idx = 0; idx < numTaskTrackers; idx++) { TaskTrackerRunner taskTracker = new TaskTrackerRunner(); Thread taskTrackerThread = new Thread(taskTracker); taskTrackerThread.start(); taskTrackerList.add(taskTracker); taskTrackerThreadList.add(taskTrackerThread); } if (taskTrackerFirst) { jobTrackerThread.start(); } waitUntilIdle();
int taskTrackerPort, int numTaskTrackers, String namenode, boolean taskTrackerFirst) throws IOException { this(jobTrackerPort, taskTrackerPort, numTaskTrackers, namenode, taskTrackerFirst, 1);
public MiniMRCluster(int jobTrackerPort, int taskTrackerPort, int numTaskTrackers, String namenode, boolean taskTrackerFirst) throws IOException { this.jobTrackerPort = jobTrackerPort; this.taskTrackerPort = taskTrackerPort; this.numTaskTrackers = numTaskTrackers; this.namenode = namenode; File configDir = new File("build", "minimr"); configDir.mkdirs(); File siteFile = new File(configDir, "hadoop-site.xml"); PrintWriter pw = new PrintWriter(siteFile); pw.print("<?xml version=\"1.0\"?>\n"+ "<?xml-stylesheet type=\"text/xsl\" href=\"configuration.xsl\"?>\n"+ "<configuration>\n"+ " <property>\n"+ " <name>mapred.system.dir</name>\n"+ " <value>build/test/mapred/system</value>\n"+ " </property>\n"+ "</configuration>\n"); pw.close(); jobTracker = new JobTrackerRunner(); jobTrackerThread = new Thread(jobTracker); if (!taskTrackerFirst) { jobTrackerThread.start(); } for (int idx = 0; idx < numTaskTrackers; idx++) { TaskTrackerRunner taskTracker = new TaskTrackerRunner(); Thread taskTrackerThread = new Thread(taskTracker); taskTrackerThread.start(); taskTrackerList.add(taskTracker); taskTrackerThreadList.add(taskTrackerThread); } if (taskTrackerFirst) { jobTrackerThread.start(); } waitUntilIdle(); }
50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/f275441011ba314856e2f75dc39fb3be3c074603/MiniMRCluster.java/buggy/src/test/org/apache/hadoop/mapred/MiniMRCluster.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 27987, 23464, 3629, 12, 474, 1719, 8135, 2617, 16, 5411, 509, 1562, 8135, 2617, 16, 5411, 509, 818, 2174, 4402, 414, 16, 5411, 514, 15135, 20680, 16, 5411, 1250, 1562, 8135, 3759, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 27987, 23464, 3629, 12, 474, 1719, 8135, 2617, 16, 5411, 509, 1562, 8135, 2617, 16, 5411, 509, 818, 2174, 4402, 414, 16, 5411, 514, 15135, 20680, 16, 5411, 1250, 1562, 8135, 3759, 1...
if (next_turn < 0)
if (next_turn <= 0)
protected void execute(Runnable r) { PoolRunner t; synchronized(this) { // if threadQueue_ is empty, we do create a new thread right away if // the more than MAX_NUM_THREADS_PER_PLACE are already created // and not all threads are blocked! // The following numbers I chose are 'magic', // i.e. they seem to work resonably well on my thinkpad. long time_to_wait = 20 + ((threadInPool_ > 50) ? 1000 : (long) Math.pow(1.15, (double) threadInPool_)); long start = -1; long next_turn = time_to_wait; int cc = 0; while ( threadQueue_ == null && threadInPool_ >= Configuration.NUMBER_OF_ACTIVITIES_PER_PLACE) { try { if (start == -1) start = System.currentTimeMillis(); wait(next_turn); } catch (Exception e) { // should not happen assert (false); } next_turn = (start + time_to_wait) - System.currentTimeMillis(); if (next_turn < 0) break; if (++cc > 10) break; // we really can't wait forever! } if (threadQueue_ == null) { threadInPool_ ++; t = new PoolRunner(this); t.setDaemon(false); t.start(); if (Report.should_report("activity", 5)) { Report.report(5, PoolRunner.logString() + "LocalPlace starts " + (t.isDaemon() ? "" : "non") + "daemon thread " + t + "in group " + Thread.currentThread().getThreadGroup() + "."); } } else { t = threadQueue_; threadQueue_ = t.next; } } t.run(r); }
1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/1833153b50df9647364a32acd26b30a3a15109f6/LocalPlace_c.java/clean/x10.runtime/src/x10/runtime/LocalPlace_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1836, 12, 20013, 436, 13, 288, 5411, 8828, 9709, 268, 31, 5411, 3852, 12, 2211, 13, 288, 18701, 368, 309, 2650, 3183, 67, 353, 1008, 16, 732, 741, 752, 279, 394, 2650, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 20013, 436, 13, 288, 5411, 8828, 9709, 268, 31, 5411, 3852, 12, 2211, 13, 288, 18701, 368, 309, 2650, 3183, 67, 353, 1008, 16, 732, 741, 752, 279, 394, 2650, ...
_cnt277++;
_cnt783++;
public final Expression expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST expr_AST_in = (AST)_t; AST t = null; AST varName = null; AST posVar = null; AST letVarName = null; step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_cast: { AST __t259 = _t; AST tmp3_AST_in = (AST)_t; match(_t,LITERAL_cast); _t = _t.getFirstChild(); PathExpr expr= new PathExpr(context); int cardinality= Cardinality.EXACTLY_ONE; step=expr(_t,expr); _t = _retTree; t = (AST)_t; match(_t,ATOMIC_TYPE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUESTION: { AST tmp4_AST_in = (AST)_t; match(_t,QUESTION); _t = _t.getNextSibling(); cardinality= Cardinality.ZERO_OR_ONE; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } QName qn= QName.parse(context, t.getText()); int code= Type.getType(qn); CastExpression castExpr= new CastExpression(context, expr, code, cardinality); path.add(castExpr); step = castExpr; _t = __t259; _t = _t.getNextSibling(); break; } case COMMA: { AST __t261 = _t; AST tmp5_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; SequenceConstructor sc= new SequenceConstructor(context); sc.addExpression(left); sc.addExpression(right); path.add(sc); step = sc; _t = __t261; _t = _t.getNextSibling(); break; } case LITERAL_if: { AST __t262 = _t; AST tmp6_AST_in = (AST)_t; match(_t,LITERAL_if); _t = _t.getFirstChild(); PathExpr testExpr= new PathExpr(context); PathExpr thenExpr= new PathExpr(context); PathExpr elseExpr= new PathExpr(context); step=expr(_t,testExpr); _t = _retTree; step=expr(_t,thenExpr); _t = _retTree; step=expr(_t,elseExpr); _t = _retTree; ConditionalExpression cond= new ConditionalExpression(context, testExpr, thenExpr, elseExpr); path.add(cond); step = cond; _t = __t262; _t = _t.getNextSibling(); break; } case LITERAL_return: { AST __t263 = _t; AST tmp7_AST_in = (AST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(context); PathExpr whereExpr= null; List orderBy= null; { int _cnt278=0; _loop278: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t265 = _t; AST tmp8_AST_in = (AST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt271=0; _loop271: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t267 = _t; varName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t269 = _t; AST tmp9_AST_in = (AST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t269; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case POSITIONAL_VAR: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 113: case 114: case LITERAL_parent: case LITERAL_ancestor: case 117: case 118: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case POSITIONAL_VAR: { posVar = (AST)_t; match(_t,POSITIONAL_VAR); _t = _t.getNextSibling(); clause.posVar= posVar.getText(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 113: case 114: case LITERAL_parent: case LITERAL_ancestor: case 117: case 118: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t267; _t = _t.getNextSibling(); } else { if ( _cnt271>=1 ) { break _loop271; } else {throw new NoViableAltException(_t);} } _cnt271++; } while (true); } _t = __t265; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t272 = _t; AST tmp10_AST_in = (AST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt277=0; _loop277: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t274 = _t; letVarName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t276 = _t; AST tmp11_AST_in = (AST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t276; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 113: case 114: case LITERAL_parent: case LITERAL_ancestor: case 117: case 118: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t274; _t = _t.getNextSibling(); } else { if ( _cnt277>=1 ) { break _loop277; } else {throw new NoViableAltException(_t);} } _cnt277++; } while (true); } _t = __t272; _t = _t.getNextSibling(); break; } default: { if ( _cnt278>=1 ) { break _loop278; } else {throw new NoViableAltException(_t);} } } _cnt278++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { AST tmp12_AST_in = (AST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(context); step=expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case ORDER_BY: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 113: case 114: case LITERAL_parent: case LITERAL_ancestor: case 117: case 118: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ORDER_BY: { AST __t281 = _t; AST tmp13_AST_in = (AST)_t; match(_t,ORDER_BY); _t = _t.getFirstChild(); orderBy= new ArrayList(3); { int _cnt287=0; _loop287: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_0.member(_t.getType()))) { PathExpr orderSpecExpr= new PathExpr(context); step=expr(_t,orderSpecExpr); _t = _retTree; OrderSpec orderSpec= new OrderSpec(orderSpecExpr); int modifiers= 0; orderBy.add(orderSpec); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: case LITERAL_descending: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: { AST tmp14_AST_in = (AST)_t; match(_t,LITERAL_ascending); _t = _t.getNextSibling(); break; } case LITERAL_descending: { AST tmp15_AST_in = (AST)_t; match(_t,LITERAL_descending); _t = _t.getNextSibling(); modifiers= OrderSpec.DESCENDING_ORDER; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case LITERAL_empty: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 113: case 114: case LITERAL_parent: case LITERAL_ancestor: case 117: case 118: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_empty: { AST tmp16_AST_in = (AST)_t; match(_t,LITERAL_empty); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_greatest: { AST tmp17_AST_in = (AST)_t; match(_t,LITERAL_greatest); _t = _t.getNextSibling(); break; } case LITERAL_least: { AST tmp18_AST_in = (AST)_t; match(_t,LITERAL_least); _t = _t.getNextSibling(); modifiers |= OrderSpec.EMPTY_LEAST; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 113: case 114: case LITERAL_parent: case LITERAL_ancestor: case 117: case 118: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } } else { if ( _cnt287>=1 ) { break _loop287; } else {throw new NoViableAltException(_t);} } _cnt287++; } while (true); } _t = __t281; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 113: case 114: case LITERAL_parent: case LITERAL_ancestor: case 117: case 118: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(context); else expr= new LetExpr(context); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (clause.isForClause) ((ForExpr) expr).setPositionalVariable(clause.posVar); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } if (orderBy != null) { OrderSpec orderSpecs[]= new OrderSpec[orderBy.size()]; int k= 0; for (Iterator j= orderBy.iterator(); j.hasNext(); k++) { OrderSpec orderSpec= (OrderSpec) j.next(); orderSpecs[k]= orderSpec; } expr.setOrderSpecs(orderSpecs); } action= expr; } path.add(action); step = action; _t = __t263; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t288 = _t; AST tmp19_AST_in = (AST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t288; _t = _t.getNextSibling(); OpOr or= new OpOr(context); or.add(left); or.add(right); path.addPath(or); step = or; break; } case LITERAL_and: { AST __t289 = _t; AST tmp20_AST_in = (AST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t289; _t = _t.getNextSibling(); OpAnd and= new OpAnd(context); and.add(left); and.add(right); path.addPath(and); step = and; break; } case UNION: { AST __t290 = _t; AST tmp21_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t290; _t = _t.getNextSibling(); Union union= new Union(context, left, right); path.add(union); step = union; break; } case LITERAL_intersect: { AST __t291 = _t; AST tmp22_AST_in = (AST)_t; match(_t,LITERAL_intersect); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t291; _t = _t.getNextSibling(); Intersection intersect = new Intersection(context, left, right); path.add(intersect); step = intersect; break; } case LITERAL_except: { AST __t292 = _t; AST tmp23_AST_in = (AST)_t; match(_t,LITERAL_except); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t292; _t = _t.getNextSibling(); Except intersect = new Except(context, left, right); path.add(intersect); step = intersect; break; } case ABSOLUTE_SLASH: { AST __t293 = _t; AST tmp24_AST_in = (AST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 113: case 114: case LITERAL_parent: case LITERAL_ancestor: case 117: case 118: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { step=expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t293; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t295 = _t; AST tmp25_AST_in = (AST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 113: case 114: case LITERAL_parent: case LITERAL_ancestor: case 117: case 118: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { step=expr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } else step.setPrimaryAxis(Constants.DESCENDANT_SELF_AXIS); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t295; _t = _t.getNextSibling(); break; } case LITERAL_to: { AST __t297 = _t; AST tmp26_AST_in = (AST)_t; match(_t,LITERAL_to); _t = _t.getFirstChild(); PathExpr start= new PathExpr(context); PathExpr end= new PathExpr(context); List args= new ArrayList(2); args.add(start); args.add(end); step=expr(_t,start); _t = _retTree; step=expr(_t,end); _t = _retTree; RangeExpression range= new RangeExpression(context); range.setArguments(args); path.addPath(range); step = range; _t = __t297; _t = _t.getNextSibling(); break; } case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: { step=valueComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case PARENTHESIZED: case FUNCTION: case VARIABLE_REF: case ELEMENT: case TEXT: case STRING_LITERAL: case LCURLY: case XML_COMMENT: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { step=primaryExpr(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case NCNAME: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 113: case 114: case LITERAL_parent: case LITERAL_ancestor: case 117: case 118: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case STAR: case PLUS: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/78bd70965f202738e2ca56dacfd71f5d58c0db69/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2235, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2235, 3...
GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); conf.setLoadExternalPersistenceConfig(false); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx);
GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); conf.setLoadExternalPersistenceConfig(false); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx);
public void testAutowireServiceClasses() throws Exception { GroovyClassLoader gcl = new GroovyClassLoader(); Class s1 = gcl.parseClass("class TestService { def serviceMethod() { 'hello' } }"); Thread.sleep(1000); Class s2 = gcl.parseClass("class AnotherService { TestService testService; def anotherMethod() { testService.serviceMethod() } }"); GrailsApplication app = new DefaultGrailsApplication(new Class[]{s1,s2}, gcl ); MockApplicationContext parent = new MockApplicationContext(); parent.registerMockBean(GrailsApplication.APPLICATION_ID, app); GrailsRuntimeConfigurator conf = new GrailsRuntimeConfigurator(app,parent); conf.setLoadExternalPersistenceConfig(false); GrailsWebApplicationContext ctx = (GrailsWebApplicationContext)conf.configure(new MockServletContext()); assertNotNull(ctx); GroovyObject anotherService = (GroovyObject)ctx.getBean("anotherService"); assertEquals("hello",anotherService.invokeMethod("anotherMethod", null)); }
54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/075145e116446e23fd77adcfc25dab01feb4a27e/GrailsRuntimeConfiguratorTests.java/clean/test/commons/org/codehaus/groovy/grails/commons/spring/GrailsRuntimeConfiguratorTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7150, 543, 577, 1179, 4818, 1435, 1216, 1185, 288, 202, 202, 43, 12859, 7805, 314, 830, 273, 394, 20841, 7805, 5621, 202, 202, 797, 272, 21, 273, 225, 314, 830, 18, 267...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7150, 543, 577, 1179, 4818, 1435, 1216, 1185, 288, 202, 202, 43, 12859, 7805, 314, 830, 273, 394, 20841, 7805, 5621, 202, 202, 797, 272, 21, 273, 225, 314, 830, 18, 267...
options.put(JavaCore.FORMATTER_TAB_CHAR, JavaCore.TAB);
options.put(DefaultCodeFormatterConstants.FORMATTER_TAB_CHAR, JavaCore.TAB);
public void test256() { Hashtable options = new Hashtable(); options.put(DefaultCodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_CONTROL_STATEMENTS, JavaCore.DO_NOT_INSERT); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ANONYMOUS_TYPE_DECLARATION, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_TYPE_DECLARATION, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_METHOD_DECLARATION, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_CONSTRUCTOR_DECLARATION, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK, DefaultCodeFormatterConstants.END_OF_LINE); options.put(DefaultCodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_SWITCH, DefaultCodeFormatterConstants.END_OF_LINE); options.put(JavaCore.FORMATTER_TAB_CHAR, JavaCore.TAB); DefaultCodeFormatterOptions preferences = new DefaultCodeFormatterOptions(options); DefaultCodeFormatter codeFormatter = new DefaultCodeFormatter(preferences); runTest(codeFormatter, "test256", "A.java", CodeFormatter.K_STATEMENTS);//$NON-NLS-1$ //$NON-NLS-2$ }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/a9adab1d13c19ec53df5d462147c7a9d9ca97b01/FormatterRegressionTests.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/formatter/FormatterRegressionTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 5034, 1435, 288, 202, 202, 5582, 14544, 702, 273, 394, 18559, 5621, 202, 202, 2116, 18, 458, 12, 1868, 1085, 5074, 2918, 18, 7254, 2560, 67, 11356, 67, 12917, 67, 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, 1842, 5034, 1435, 288, 202, 202, 5582, 14544, 702, 273, 394, 18559, 5621, 202, 202, 2116, 18, 458, 12, 1868, 1085, 5074, 2918, 18, 7254, 2560, 67, 11356, 67, 12917, 67, 5...
ClassAnnotation primaryClass = bugInstance.getPrimaryClass(); if (primaryClass != null && !AnalysisContext.currentAnalysisContext().isApplicationClass(primaryClass.getClassName())) return;
public final void reportBug(BugInstance bugInstance) { if (!analysisUnderway) { if (FindBugsAnalysisFeatures.isRelaxedMode()) { relaxed = true; } analysisUnderway = true; } if (bugInstance.getPriority() <= priorityThreshold || relaxed) doReportBug(bugInstance); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/ff0eb90fa915641886db59a88b61d300b5a83b8d/AbstractBugReporter.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/AbstractBugReporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 797, 3257, 3354, 797, 273, 7934, 1442, 18, 588, 6793, 797, 5621, 309, 261, 8258, 797, 480, 446, 597, 401, 9418, 1042, 18, 2972, 9418, 1042, 7675, 291, 3208, 797, 12, 8258, 797...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 797, 3257, 3354, 797, 273, 7934, 1442, 18, 588, 6793, 797, 5621, 309, 261, 8258, 797, 480, 446, 597, 401, 9418, 1042, 18, 2972, 9418, 1042, 7675, 291, 3208, 797, 12, 8258, 797...
this.state = STATE_OUTSIDE;
this.state = STATE_OUTSIDE;
public void endTransformingElement(String uri, String name, String raw) throws SAXException, IOException, ProcessingException { if (getLogger().isDebugEnabled()) { getLogger().debug("BEGIN endTransformingElement uri=" + uri + ", name=" + name + ", raw=" + raw); } if ((name.equals(INSERT_ELEMENT) && this.state == STATE_INSERT) || (name.equals(WRITE_ELEMENT) && this.state == STATE_WRITE)) { // get the information from the stack DocumentFragment fragment = null; String tag; String sourceName = null; String path = (this.state == STATE_INSERT ? null : "/"); // source:write's path can be empty String replacePath = null; String reinsert = null; do { tag = (String)this.stack.pop(); if (tag.equals("PATH")) { path = (String)this.stack.pop(); } else if (tag.equals("FILE")) { sourceName = (String)this.stack.pop(); } else if (tag.equals("FRAGMENT")) { fragment = (DocumentFragment)this.stack.pop(); } else if (tag.equals("REPLACE")) { replacePath = (String)this.stack.pop(); } else if (tag.equals("REINSERT")) { reinsert = (String)this.stack.pop(); } } while ( !tag.equals("END") ); final String localSerializer = (String)this.stack.pop(); final boolean overwrite = this.stack.pop().equals("true"); final boolean create = this.stack.pop().equals("true"); this.insertFragment(sourceName, path, fragment, replacePath, create, overwrite, reinsert, localSerializer, name); this.state = STATE_OUTSIDE; // Element: delete } else if (name.equals(DELETE_ELEMENT) && this.state == STATE_DELETE) { String sourceName = null; String tag; do { tag = (String)this.stack.pop(); if (tag.equals("FILE")) { sourceName = (String)this.stack.pop(); } else if (tag.equals("FRAGMENT")) { //Get rid of it this.stack.pop(); } } while ( !tag.equals("END")); this.deleteSource(sourceName); this.state = STATE_OUTSIDE; // Element: file } else if (name.equals(SOURCE_ELEMENT) && this.state == STATE_FILE) { this.state = this.parent_state; this.stack.push(this.endTextRecording()); this.stack.push("FILE"); // Element: path } else if (name.equals(PATH_ELEMENT) && this.state == STATE_PATH) { this.state = this.parent_state; this.stack.push(this.endTextRecording()); this.stack.push("PATH"); // Element: replace } else if (name.equals(REPLACE_ELEMENT) && this.state == STATE_REPLACE) { this.state = this.parent_state; this.stack.push(this.endTextRecording()); this.stack.push("REPLACE"); // Element: fragment } else if (name.equals(FRAGMENT_ELEMENT) && this.state == STATE_FRAGMENT) { this.state = this.parent_state; this.stack.push(this.endRecording()); this.stack.push("FRAGMENT"); // Element: reinsert } else if (name.equals(REINSERT_ELEMENT) && this.state == STATE_REINSERT) { this.state = this.parent_state; this.stack.push(this.endTextRecording()); this.stack.push("REINSERT"); // default } else { super.endTransformingElement(uri, name, raw); } if (getLogger().isDebugEnabled()) { getLogger().debug("END endTransformingElement"); } }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/66db1c62c15a65da2775b5840c24f74681feec24/SourceWritingTransformer.java/clean/src/java/org/apache/cocoon/transformation/SourceWritingTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 4059, 310, 1046, 12, 780, 2003, 16, 514, 508, 16, 514, 1831, 13, 565, 1216, 14366, 16, 1860, 16, 19652, 503, 288, 3639, 309, 261, 588, 3328, 7675, 291, 2829, 1526, 10756...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 679, 4059, 310, 1046, 12, 780, 2003, 16, 514, 508, 16, 514, 1831, 13, 565, 1216, 14366, 16, 1860, 16, 19652, 503, 288, 3639, 309, 261, 588, 3328, 7675, 291, 2829, 1526, 10756...
return "";
return null;
public String getNameFromToken (String n) { for (int i = 0; i < descs.size(); i++) if (((ChunkDesc)descs.elementAt(i)).token.equalsIgnoreCase(n)) return ((ChunkDesc)descs.elementAt(i)).name; return ""; }
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/5cb9ed873d39bbf84019bc2741177de7c9bd7acf/ChunkDescDB.java/clean/modules/jackal/config/org/vrjuggler/jccl/config/ChunkDescDB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1723, 1265, 1345, 261, 780, 290, 13, 288, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 3044, 87, 18, 1467, 5621, 277, 27245, 202, 565, 309, 261, 12443, 5579, 4217, 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, 514, 1723, 1265, 1345, 261, 780, 290, 13, 288, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 3044, 87, 18, 1467, 5621, 277, 27245, 202, 565, 309, 261, 12443, 5579, 4217, 13, ...
q = (Node) q.parent;
public final double removeNode(QSortedTreeNode o) { Node p = (Node) o; double ret = p.value; if (logger.isDebugEnabled()) logger.debug("Value: "+ret); int lastDir = 0; Node q = (Node) p.parent; if (q.child[1] == p) lastDir = 1; int sibdir = 1 - lastDir; Node r = (Node) p.child[1]; if (r == null) { q.child[lastDir] = p.child[0]; if (q.child[lastDir] != null) q.child[lastDir].parent = q; } else { byte color = RED; if (r.child[0] == null) { // Replace p by r r.parent = q; q.child[lastDir] = r; r.child[0] = p.child[0]; if (r.child[0] != null) r.child[0].parent = r; color = p.color; p.color = r.color; r.color = color; // Tree above r needs to be rebalanced q = r; lastDir = 1; } else { // Swap p with its successor node in the tree, // then delete p r = (Node) r.child[0]; while (r.child[0] != null) r = (Node) r.child[0]; Node s = (Node) r.parent; s.child[0] = r.child[1]; if (s.child[0] != null) s.child[0].parent = s; r.child[0] = p.child[0]; r.child[1] = p.child[1]; q.child[lastDir] = r; if (r.child[0] != null) r.child[0].parent = r; r.child[1].parent = r; r.parent = q; color = p.color; p.color = r.color; r.color = color; // Tree above s needs to be rebalanced q = s; lastDir = 0; } } if (p.color == RED) return ret; for (;;) { p = (Node) q.child[lastDir]; if (p != null && p.color == RED) { p.color = BLACK; break; } if (q == root.child[0]) break; int sibDir = 1 - lastDir; Node grandparent = (Node) q.parent; int gLastDir = 0; if (grandparent.child[1] == grandparent) gLastDir = 1; Node sibling = (Node) q.child[sibDir]; if (sibling.color == RED) { sibling.color = BLACK; q.color = RED; /* Example with lastDir == 0 qB qR sB => gB / \ ----> / \ ----> / \ pB sR pB sB qR bB / \ / \ / \ aB bB aB bB pB aB => sB */ if (lastDir == 0) grandparent.child[gLastDir] = q.rotateL(); else grandparent.child[gLastDir] = q.rotateR(); grandparent = sibling; sibling = (Node) q.child[sibDir]; } // Now sibling is black; if its 2 children are also // black, paint it into red and check again from // grandparent. if ((sibling.child[0] == null || ((Node) sibling.child[0]).color == BLACK) && (sibling.child[1] == null || ((Node) sibling.child[1]).color == BLACK)) sibling.color = RED; else { // A sibling's children is red. if (sibling.child[sibDir] == null || ((Node) sibling.child[sibDir]).color == BLACK) { // y is red: rotate at sibling and paint nodes // so that sibling.child[sibDir] is red. Node y = (Node) sibling.child[lastDir]; y.color = BLACK; sibling.color = RED; if (lastDir == 0) q.child[sibDir] = y.rotateR(); else q.child[sibDir] = y.rotateL(); sibling = y; /* Example with lastDir == 0 gB gB gB / \ ---> / \ ---> / \ qR bB qR bB qB bB / \ / \ / \ xB sB xB yR xB yB / \ / \ / \ yR zB T1 sB T1 sR / \ / \ / \ T1 T2 T2 zB T2 zB */ } /* We know that sibling is black, its lastDir child is black and its sibDir child is red. q* qB s* / \ ---> / \ ---> / \ xB sB xB s* qB yB / \ / \ / \ / \ T1 yR T1 yB xB T1 T2 zB / \ / \ T2 zB T2 zB */ sibling.color = q.color; q.color = BLACK; ((Node) sibling.child[sibDir]).color = BLACK; if (lastDir == 0) grandparent.child[gLastDir] = q.rotateR(); else grandparent.child[gLastDir] = q.rotateL(); break; } q = (Node) q.parent; if (q.parent.child[0] == q) lastDir = 0; else lastDir = 1; } return ret; }
46701 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46701/e763ab89771b58f04edb3a9d002ab9593f1a3160/PRedBlackSortedTree.java/buggy/amibe/src/org/jcae/mesh/amibe/util/PRedBlackSortedTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 1645, 1206, 907, 12, 53, 11739, 12513, 320, 13, 202, 95, 202, 202, 907, 293, 273, 261, 907, 13, 320, 31, 202, 202, 9056, 325, 273, 293, 18, 1132, 31, 202, 202, 430, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 1645, 1206, 907, 12, 53, 11739, 12513, 320, 13, 202, 95, 202, 202, 907, 293, 273, 261, 907, 13, 320, 31, 202, 202, 9056, 325, 273, 293, 18, 1132, 31, 202, 202, 430, 2...
StringBuffer buffer = new StringBuffer();;
StringBuffer buffer = new StringBuffer(); int startDepth = parser.getDepth(); int depth = parser.getDepth(); String lastTag = "";
public PacketExtension parseExtension(XmlPullParser parser) throws Exception { XHTMLExtension xhtmlExtension = new XHTMLExtension(); boolean done = false; StringBuffer buffer = new StringBuffer();; while (!done) { int eventType = parser.next(); if (eventType == XmlPullParser.START_TAG) { if (parser.getName().equals("body")) buffer = new StringBuffer(); buffer.append(parser.getText()); } else if (eventType == XmlPullParser.TEXT) { if (buffer != null) buffer.append(parser.getText()); } else if (eventType == XmlPullParser.END_TAG) { if (parser.getName().equals("body")) { buffer.append(parser.getText()); xhtmlExtension.addBody(buffer.toString()); } else if (parser.getName().equals(xhtmlExtension.getElementName())) { done = true; } else buffer.append(parser.getText()); } } return xhtmlExtension; }
45655 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45655/c4168bf3d76a9327fbd61f597c5a4cd95338cdac/XHTMLExtensionProvider.java/clean/source/org/jivesoftware/smackx/provider/XHTMLExtensionProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11114, 3625, 1109, 3625, 12, 4432, 9629, 2678, 2082, 13, 3639, 1216, 1185, 288, 3639, 30551, 3625, 619, 2620, 3625, 273, 394, 30551, 3625, 5621, 3639, 1250, 2731, 273, 629, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11114, 3625, 1109, 3625, 12, 4432, 9629, 2678, 2082, 13, 3639, 1216, 1185, 288, 3639, 30551, 3625, 619, 2620, 3625, 273, 394, 30551, 3625, 5621, 3639, 1250, 2731, 273, 629, 31, 3639, ...
Viewer viewer = TaskListView.getDefault().getViewer(); viewer.setSelection(new StructuredSelection(task)); if (viewer.getSelection().isEmpty() && (hit = MylarTaskListPlugin.getTaskListManager().getQueryHitForHandle( task.getHandleIdentifier())) != null) { viewer.setSelection(new StructuredSelection(hit)); } viewer.refresh();
if (TaskListView.getDefault() != null) { Viewer viewer = TaskListView.getDefault().getViewer(); viewer.setSelection(new StructuredSelection(task)); if (viewer.getSelection().isEmpty() && (hit = MylarTaskListPlugin.getTaskListManager().getQueryHitForHandle( task.getHandleIdentifier())) != null) { viewer.setSelection(new StructuredSelection(hit)); } viewer.refresh(); }
public void partActivated(IWorkbenchPart part) { if (part.equals(MylarTaskEditor.this)) { ITask task = taskEditorInput.getTask(); IQueryHit hit = null; MylarTaskListPlugin.getTaskListManager().getQueryHitForHandle(task.getHandleIdentifier()); Viewer viewer = TaskListView.getDefault().getViewer(); viewer.setSelection(new StructuredSelection(task)); // if no task exists, select the query hit if exists if (viewer.getSelection().isEmpty() && (hit = MylarTaskListPlugin.getTaskListManager().getQueryHitForHandle( task.getHandleIdentifier())) != null) { viewer.setSelection(new StructuredSelection(hit)); } viewer.refresh(); } }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/3e33caec44b8717decf7be5acff0920be035447a/MylarTaskEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/MylarTaskEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1087, 28724, 12, 45, 2421, 22144, 1988, 1087, 13, 288, 1082, 202, 430, 261, 2680, 18, 14963, 12, 12062, 7901, 2174, 6946, 18, 2211, 3719, 288, 6862, 9506, 202, 1285, 835, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1087, 28724, 12, 45, 2421, 22144, 1988, 1087, 13, 288, 1082, 202, 430, 261, 2680, 18, 14963, 12, 12062, 7901, 2174, 6946, 18, 2211, 3719, 288, 6862, 9506, 202, 1285, 835, ...
copyright = tokenizer.nextToken().trim(); webpage = tokenizer.nextToken().trim(); iconUrl = tokenizer.nextToken().trim(); categoryStr = tokenizer.nextToken().trim(); } catch(NoSuchElementException e) {
country = tokens[0]; timezone = tokens[1]; id = tokens[2]; name = tokens[3]; copyright = tokens[4]; webpage = tokens[5]; iconUrl = tokens[6]; categoryStr = tokens[7]; } catch(ArrayIndexOutOfBoundsException e) {
private ChannelList loadChannelListTxt(String fileName) throws PreparationException { ChannelList result = new ChannelList((ChannelGroup)null); File fromFile = new File(mConfigDir, fileName); FileInputStream stream = null; try { stream = new FileInputStream(fromFile); BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); String line; while ((line = reader.readLine()) != null) { if (line.trim().length()==0) { // ignore empty lines continue; } StringTokenizer tokenizer = new StringTokenizer(line, ";"); if (tokenizer.countTokens() < 4) { throw new PreparationException("invalid line in '"+fileName+"': "+line); } String country = tokenizer.nextToken().trim(); String timezone = tokenizer.nextToken().trim(); String id = tokenizer.nextToken().trim(); String name = tokenizer.nextToken().trim(); String copyright=null, webpage=null, iconUrl=null, categoryStr=null; try { copyright = tokenizer.nextToken().trim(); webpage = tokenizer.nextToken().trim(); iconUrl = tokenizer.nextToken().trim(); categoryStr = tokenizer.nextToken().trim(); } catch(NoSuchElementException e) { // ignore, we don't need these feelds } int categories = Channel.CATEGORY_NONE; if (categoryStr != null) { try { categories = Integer.parseInt(categoryStr); }catch(NumberFormatException e) { categories = Channel.CATEGORY_NONE; } } Channel channel = new Channel(null, name, id, TimeZone.getTimeZone(timezone), country, copyright,webpage, null, null, categories); result.addChannel(channel, iconUrl); } } catch (Exception exc) { throw new PreparationException("Loading "+fileName+" failed", exc); } finally { if (stream != null) { try { stream.close(); } catch (IOException exc) {} } } return result; }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/05b5c430db0a3f8ebcec8306c190c06677c3ad44/PrimaryDataManager.java/clean/tvbrowser/src/primarydatamanager/PrimaryDataManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 5307, 682, 1262, 2909, 682, 21811, 12, 780, 3968, 13, 1216, 2962, 20961, 503, 288, 565, 5307, 682, 563, 273, 394, 5307, 682, 12443, 2909, 1114, 13, 2011, 1769, 1850, 1387, 31000, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 5307, 682, 1262, 2909, 682, 21811, 12, 780, 3968, 13, 1216, 2962, 20961, 503, 288, 565, 5307, 682, 563, 273, 394, 5307, 682, 12443, 2909, 1114, 13, 2011, 1769, 1850, 1387, 31000, 27...
getLogger().error(ex.toString());
getLogger().error( "A MessagingException has terminated processing of this Account", ex);
public void targetTriggered(String arg0) { // if we are already fetching then just return if (isFetching()) return; // Enter Fetching State try { setFetching(true); getLogger().info("Fetcher starting fetches"); // if debugging, list the JavaMail property key/value pairs // for this Session if (getLogger().isDebugEnabled()) { getLogger().debug("Session properties:"); Properties properties = getSession().getProperties(); Enumeration e = properties.keys(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); String val = (String) properties.get(key); if (val.length() > 40) { val = val.substring(0, 37) + "..."; } getLogger().debug(key + "=" + val); } } // Update the dynamic accounts, // merge with the static accounts and // sort the accounts so they are in the order // they were entered in config.xml updateDynamicAccounts(); ArrayList mergedAccounts = new ArrayList( getDynamicAccounts().size() + getStaticAccounts().size()); mergedAccounts.addAll(getDynamicAccounts().values()); mergedAccounts.addAll(getStaticAccounts()); Collections.sort(mergedAccounts); StringBuffer logMessage = new StringBuffer(64); logMessage.append("Processing "); logMessage.append(getStaticAccounts().size()); logMessage.append(" static accounts and "); logMessage.append(getDynamicAccounts().size()); logMessage.append(" dynamic accounts."); getLogger().info(logMessage.toString()); // Fetch each account Iterator accounts = mergedAccounts.iterator(); while (accounts.hasNext()) { try { new StoreProcessor((Account) accounts.next(), getSession()) .process(); } catch (MessagingException ex) { getLogger().error(ex.toString()); } } } catch (Exception ex) { getLogger().error(ex.toString()); } finally { getLogger().info("Fetcher completed fetches"); // Exit Fetching State setFetching(false); } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/58beea70c0431723f8eade3e70d01659b3374080/FetchMail.java/buggy/branches/branch_2_1_fcs/src/java/org/apache/james/fetchmail/FetchMail.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1018, 6518, 329, 12, 780, 1501, 20, 13, 565, 288, 3639, 368, 309, 732, 854, 1818, 16191, 1508, 2537, 327, 3639, 309, 261, 291, 30806, 10756, 5411, 327, 31, 3639, 368, 15439, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1018, 6518, 329, 12, 780, 1501, 20, 13, 565, 288, 3639, 368, 309, 732, 854, 1818, 16191, 1508, 2537, 327, 3639, 309, 261, 291, 30806, 10756, 5411, 327, 31, 3639, 368, 15439, ...
km.registerEntireMap((ComponentInputMap) getInputMap(WHEN_IN_FOCUSED_WINDOW));
km.registerEntireMap((ComponentInputMap) getInputMap(WHEN_IN_FOCUSED_WINDOW));
void updateComponentInputMap(ComponentInputMap changed) { // Since you can change a component's input map via // setInputMap, we have to check if <code>changed</code> // is still in our WHEN_IN_FOCUSED_WINDOW map hierarchy InputMap curr = getInputMap(WHEN_IN_FOCUSED_WINDOW); while (curr != null && curr != changed) curr = curr.getParent(); // If curr is null then changed is not in the hierarchy if (curr == null) return; // Now we have to update the keyboard manager's hashtable KeyboardManager km = KeyboardManager.getManager(); // This is a poor strategy, should be improved. We currently // delete all the old bindings for the component and then register // the current bindings. km.clearBindingsForComp(changed.getComponent()); km.registerEntireMap((ComponentInputMap) getInputMap(WHEN_IN_FOCUSED_WINDOW)); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/6c65265845f18dc68cba99ad5b353dd3179e0e2a/JComponent.java/clean/javax/swing/JComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1089, 1841, 1210, 863, 12, 1841, 1210, 863, 3550, 13, 225, 288, 565, 368, 7897, 1846, 848, 2549, 279, 1794, 1807, 810, 852, 3970, 565, 368, 21687, 863, 16, 732, 1240, 358, 866, 309...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1089, 1841, 1210, 863, 12, 1841, 1210, 863, 3550, 13, 225, 288, 565, 368, 7897, 1846, 848, 2549, 279, 1794, 1807, 810, 852, 3970, 565, 368, 21687, 863, 16, 732, 1240, 358, 866, 309...
source.append((char)ts.LP);
sourceAdd((char)ts.LP);
private Object statementHelper(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn = null; // If skipsemi == true, don't add SEMI + EOL to source at the // end of this statment. For compound statements, IF/FOR etc. boolean skipsemi = false; int tt; int lastExprType = 0; // For wellTerminated. 0 to avoid warning. tt = ts.getToken(); switch(tt) { case TokenStream.IF: { skipsemi = true; source.append((char)ts.IF); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object ifTrue = statement(ts, source); Object ifFalse = null; if (ts.matchToken(ts.ELSE)) { source.append((char)ts.RC); source.append((char)ts.ELSE); source.append((char)ts.LC); source.append((char)ts.EOL); ifFalse = statement(ts, source); } source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createIf(cond, ifTrue, ifFalse, lineno); break; } case TokenStream.SWITCH: { skipsemi = true; source.append((char)ts.SWITCH); pn = nf.createSwitch(ts.getLineno()); Object cur_case = null; // to kill warning Object case_statements; mustMatchToken(ts, ts.LP, "msg.no.paren.switch"); source.append((char)ts.LP); nf.addChildToBack(pn, expr(ts, source, false)); mustMatchToken(ts, ts.RP, "msg.no.paren.after.switch"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.switch"); source.append((char)ts.LC); source.append((char)ts.EOL); while ((tt = ts.getToken()) != ts.RC && tt != ts.EOF) { switch(tt) { case TokenStream.CASE: source.append((char)ts.CASE); cur_case = nf.createUnary(ts.CASE, expr(ts, source, false)); source.append((char)ts.COLON); source.append((char)ts.EOL); break; case TokenStream.DEFAULT: cur_case = nf.createLeaf(ts.DEFAULT); source.append((char)ts.DEFAULT); source.append((char)ts.COLON); source.append((char)ts.EOL); // XXX check that there isn't more than one default break; default: reportError(ts, "msg.bad.switch"); break; } mustMatchToken(ts, ts.COLON, "msg.no.colon.case"); case_statements = nf.createLeaf(TokenStream.BLOCK); while ((tt = ts.peekToken()) != ts.RC && tt != ts.CASE && tt != ts.DEFAULT && tt != ts.EOF) { nf.addChildToBack(case_statements, statement(ts, source)); } // assert cur_case nf.addChildToBack(cur_case, case_statements); nf.addChildToBack(pn, cur_case); } source.append((char)ts.RC); source.append((char)ts.EOL); break; } case TokenStream.WHILE: { skipsemi = true; source.append((char)ts.WHILE); int lineno = ts.getLineno(); Object cond = condition(ts, source); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWhile(cond, body, lineno); break; } case TokenStream.DO: { source.append((char)ts.DO); source.append((char)ts.LC); source.append((char)ts.EOL); int lineno = ts.getLineno(); Object body = statement(ts, source); source.append((char)ts.RC); mustMatchToken(ts, ts.WHILE, "msg.no.while.do"); source.append((char)ts.WHILE); Object cond = condition(ts, source); pn = nf.createDoWhile(body, cond, lineno); break; } case TokenStream.FOR: { skipsemi = true; source.append((char)ts.FOR); int lineno = ts.getLineno(); Object init; // Node init is also foo in 'foo in Object' Object cond; // Node cond is also object in 'foo in Object' Object incr = null; // to kill warning Object body; mustMatchToken(ts, ts.LP, "msg.no.paren.for"); source.append((char)ts.LP); tt = ts.peekToken(); if (tt == ts.SEMI) { init = nf.createLeaf(ts.VOID); } else { if (tt == ts.VAR) { // set init to a var list or initial ts.getToken(); // throw away the 'var' token init = variables(ts, source, true); } else { init = expr(ts, source, true); } } tt = ts.peekToken(); if (tt == ts.RELOP && ts.getOp() == ts.IN) { ts.matchToken(ts.RELOP); source.append((char)ts.IN); // 'cond' is the object over which we're iterating cond = expr(ts, source, false); } else { // ordinary for loop mustMatchToken(ts, ts.SEMI, "msg.no.semi.for"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.SEMI) { // no loop condition cond = nf.createLeaf(ts.VOID); } else { cond = expr(ts, source, false); } mustMatchToken(ts, ts.SEMI, "msg.no.semi.for.cond"); source.append((char)ts.SEMI); if (ts.peekToken() == ts.RP) { incr = nf.createLeaf(ts.VOID); } else { incr = expr(ts, source, false); } } mustMatchToken(ts, ts.RP, "msg.no.paren.for.ctrl"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); if (incr == null) { // cond could be null if 'in obj' got eaten by the init node. pn = nf.createForIn(init, cond, body, lineno); } else { pn = nf.createFor(init, cond, incr, body, lineno); } break; } case TokenStream.TRY: { int lineno = ts.getLineno(); Object tryblock; Object catchblocks = null; Object finallyblock = null; skipsemi = true; source.append((char)ts.TRY); source.append((char)ts.LC); source.append((char)ts.EOL); tryblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); catchblocks = nf.createLeaf(TokenStream.BLOCK); boolean sawDefaultCatch = false; int peek = ts.peekToken(); if (peek == ts.CATCH) { while (ts.matchToken(ts.CATCH)) { if (sawDefaultCatch) { reportError(ts, "msg.catch.unreachable"); } source.append((char)ts.CATCH); mustMatchToken(ts, ts.LP, "msg.no.paren.catch"); source.append((char)ts.LP); mustMatchToken(ts, ts.NAME, "msg.bad.catchcond"); String varName = ts.getString(); source.addString(ts.NAME, varName); Object catchCond = null; if (ts.matchToken(ts.IF)) { source.append((char)ts.IF); catchCond = expr(ts, source, false); } else { sawDefaultCatch = true; } mustMatchToken(ts, ts.RP, "msg.bad.catchcond"); source.append((char)ts.RP); mustMatchToken(ts, ts.LC, "msg.no.brace.catchblock"); source.append((char)ts.LC); source.append((char)ts.EOL); nf.addChildToBack(catchblocks, nf.createCatch(varName, catchCond, statements(ts, source), ts.getLineno())); mustMatchToken(ts, ts.RC, "msg.no.brace.after.body"); source.append((char)ts.RC); source.append((char)ts.EOL); } } else if (peek != ts.FINALLY) { mustMatchToken(ts, ts.FINALLY, "msg.try.no.catchfinally"); } if (ts.matchToken(ts.FINALLY)) { source.append((char)ts.FINALLY); source.append((char)ts.LC); source.append((char)ts.EOL); finallyblock = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); } pn = nf.createTryCatchFinally(tryblock, catchblocks, finallyblock, lineno); break; } case TokenStream.THROW: { int lineno = ts.getLineno(); source.append((char)ts.THROW); pn = nf.createThrow(expr(ts, source, false), lineno); if (lineno == ts.getLineno()) wellTerminated(ts, ts.ERROR); break; } case TokenStream.BREAK: { int lineno = ts.getLineno(); source.append((char)ts.BREAK); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createBreak(label, lineno); break; } case TokenStream.CONTINUE: { int lineno = ts.getLineno(); source.append((char)ts.CONTINUE); // matchLabel only matches if there is one String label = matchLabel(ts); if (label != null) { source.addString(ts.NAME, label); } pn = nf.createContinue(label, lineno); break; } case TokenStream.WITH: { skipsemi = true; source.append((char)ts.WITH); int lineno = ts.getLineno(); mustMatchToken(ts, ts.LP, "msg.no.paren.with"); source.append((char)ts.LP); Object obj = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.with"); source.append((char)ts.RP); source.append((char)ts.LC); source.append((char)ts.EOL); Object body = statement(ts, source); source.append((char)ts.RC); source.append((char)ts.EOL); pn = nf.createWith(obj, body, lineno); break; } case TokenStream.VAR: { int lineno = ts.getLineno(); pn = variables(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); break; } case TokenStream.RETURN: { Object retExpr = null; int lineno = 0; source.append((char)ts.RETURN); // bail if we're not in a (toplevel) function if ((ts.flags & ts.TSF_FUNCTION) == 0) reportError(ts, "msg.bad.return"); /* This is ugly, but we don't want to require a semicolon. */ ts.flags |= ts.TSF_REGEXP; tt = ts.peekTokenSameLine(); ts.flags &= ~ts.TSF_REGEXP; if (tt != ts.EOF && tt != ts.EOL && tt != ts.SEMI && tt != ts.RC) { lineno = ts.getLineno(); retExpr = expr(ts, source, false); if (ts.getLineno() == lineno) wellTerminated(ts, ts.ERROR); ts.flags |= ts.TSF_RETURN_EXPR; } else { ts.flags |= ts.TSF_RETURN_VOID; } // XXX ASSERT pn pn = nf.createReturn(retExpr, lineno); break; } case TokenStream.LC: skipsemi = true; pn = statements(ts, source); mustMatchToken(ts, ts.RC, "msg.no.brace.block"); break; case TokenStream.ERROR: // Fall thru, to have a node for error recovery to work on case TokenStream.EOL: case TokenStream.SEMI: pn = nf.createLeaf(ts.VOID); skipsemi = true; break; default: { lastExprType = tt; int tokenno = ts.getTokenno(); ts.ungetToken(tt); int lineno = ts.getLineno(); pn = expr(ts, source, false); if (ts.peekToken() == ts.COLON) { /* check that the last thing the tokenizer returned was a * NAME and that only one token was consumed. */ if (lastExprType != ts.NAME || (ts.getTokenno() != tokenno)) reportError(ts, "msg.bad.label"); ts.getToken(); // eat the COLON /* in the C source, the label is associated with the * statement that follows: * nf.addChildToBack(pn, statement(ts)); */ String name = ts.getString(); pn = nf.createLabel(name, lineno); // depend on decompiling lookahead to guess that that // last name was a label. source.append((char)ts.COLON); source.append((char)ts.EOL); return pn; } if (lastExprType == ts.FUNCTION) nf.setFunctionExpressionStatement(pn); pn = nf.createExprStatement(pn, lineno); /* * Check explicitly against (multi-line) function * statement. * lastExprEndLine is a hack to fix an * automatic semicolon insertion problem with function * expressions; the ts.getLineno() == lineno check was * firing after a function definition even though the * next statement was on a new line, because * speculative getToken calls advanced the line number * even when they didn't succeed. */ if (ts.getLineno() == lineno || (lastExprType == ts.FUNCTION && ts.getLineno() == lastExprEndLine)) { wellTerminated(ts, lastExprType); } break; } } ts.matchToken(ts.SEMI); if (!skipsemi) { source.append((char)ts.SEMI); source.append((char)ts.EOL); } return pn; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/92ccdd736e7a1516e4fb6d1eaf915e7021c8dc95/Parser.java/clean/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3021, 2276, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 273, 446, 31, 3639, 368, 971, 2488, 307, 9197, 422, 638, ...
value = getProperValue(attr.getValue());
value = getProperValue(attr.getValue()).replaceAll("\\$", ".");
private void checkMatch(IPluginAttribute attr, IFile file) { String value = null; Matcher matcher = null; if (fSearchFor == S_FOR_TYPES) { value = attr.getValue(); matcher = getMatcher(value); } if (value == null || (matcher != null && !matcher.matches()) ){ value = getProperValue(attr.getValue()); matcher = getMatcher(value); } if (matcher.matches()) { String group = matcher.group(0); int offset = ((IDocumentAttribute)attr).getValueOffset() + value.indexOf(group) + attr.getValue().indexOf(value); int length = group.length(); fSearchRequestor.reportMatch(new Match(file, Match.UNIT_CHARACTER, offset, length)); } }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/cf890111d2e295c84879813774721a2301aae78f/ClassSearchParticipant.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/search/ClassSearchParticipant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 2060, 12, 45, 3773, 1499, 1604, 16, 467, 812, 585, 13, 288, 202, 202, 780, 460, 273, 446, 31, 202, 202, 6286, 4546, 273, 446, 31, 202, 202, 430, 261, 74, 2979, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2060, 12, 45, 3773, 1499, 1604, 16, 467, 812, 585, 13, 288, 202, 202, 780, 460, 273, 446, 31, 202, 202, 6286, 4546, 273, 446, 31, 202, 202, 430, 261, 74, 2979, ...
resultCache.put(element, cacheResult .createResult());
resultCache .put(element, cacheResult.createResult());
private void createDecorationJob() { decorationJob = new Job(WorkbenchMessages.DecorationScheduler_CalculationJobName) { /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus run(IProgressMonitor monitor) { if(shutdown)//Cancelled on shutdown return Status.CANCEL_STATUS; monitor.beginTask(WorkbenchMessages.DecorationScheduler_CalculatingTask, 100); //will block if there are no resources to be decorated DecorationReference reference; monitor.worked(5); int workCount = 5; while ((reference = nextElement()) != null) { //Count up to 90 to give the appearance of updating if (workCount < 90) { monitor.worked(1); workCount++; } DecorationBuilder cacheResult = new DecorationBuilder(); monitor.subTask(reference.getSubTask()); //$NON-NLS-1$ //Don't decorate if there is already a pending result Object element = reference.getElement(); Object adapted = reference.getAdaptedElement(); boolean elementIsCached = true; DecorationResult adaptedResult = null; //Synchronize on the result lock as we want to //be sure that we do not try and decorate during //label update servicing. elementIsCached = resultCache.containsKey(element); if (elementIsCached) { pendingUpdate.add(element); } if (adapted != null) { adaptedResult = (DecorationResult) resultCache .get(adapted); } if (!elementIsCached) { //Just build for the resource first if (adapted != null) { if (adaptedResult == null) { decoratorManager.getLightweightManager() .getDecorations(adapted, cacheResult, true); if (cacheResult.hasValue()) { adaptedResult = cacheResult.createResult(); } } else { // If we already calculated the decoration // for the adapted element, reuse the result. cacheResult.applyResult(adaptedResult); // Set adaptedResult to null to indicate that // we do not need to cache the result again. adaptedResult = null; } } //Now add in the results for the main object decoratorManager.getLightweightManager() .getDecorations(element, cacheResult, false); //If we should update regardless then put a result // anyways if (cacheResult.hasValue() || reference.shouldForceUpdate()) { //Synchronize on the result lock as we want to //be sure that we do not try and decorate during //label update servicing. //Note: resultCache and pendingUpdate modifications //must be done atomically. if (adaptedResult != null) resultCache.put(adapted, adaptedResult); // Add the decoration even if it's empty in // order to indicate that the decoration is // ready resultCache.put(element, cacheResult .createResult()); //Add an update for only the original element // to //prevent multiple updates and clear the cache. pendingUpdate.add(element); } } // Only notify listeners when we have exhausted the // queue of decoration requests. if (awaitingDecoration.isEmpty()) { decorated(); } } monitor.worked(100 - workCount); monitor.done(); return Status.OK_STATUS; } /* * (non-Javadoc) * * @see org.eclipse.core.runtime.jobs.Job#belongsTo(java.lang.Object) */ public boolean belongsTo(Object family) { return DecoratorManager.FAMILY_DECORATE == family; } /* (non-Javadoc) * @see org.eclipse.core.runtime.jobs.Job#shouldRun() */ public boolean shouldRun() { return PlatformUI.isWorkbenchRunning(); } }; decorationJob.setRule(updateRule); decorationJob.setSystem(true); decorationJob.setPriority(Job.DECORATE); decorationJob.schedule(); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/23e6571ec09a520629294b858536f731d81d10c8/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 7859, 367, 2278, 1435, 288, 202, 202, 11880, 367, 2278, 273, 394, 3956, 12, 2421, 22144, 5058, 18, 7859, 367, 11870, 67, 13989, 29425, 13, 288, 1082, 202, 20308, 9506...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 7859, 367, 2278, 1435, 288, 202, 202, 11880, 367, 2278, 273, 394, 3956, 12, 2421, 22144, 5058, 18, 7859, 367, 11870, 67, 13989, 29425, 13, 288, 1082, 202, 20308, 9506...
private OMElement createEchoOMElement(String text){
private OMElement createEchoOMElement(String text) {
private OMElement createEchoOMElement(String text){ OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace omNs = fac.createOMNamespace("http://localhost/my", "my"); OMElement method = fac.createOMElement("echoOMElement", omNs); OMElement value = fac.createOMElement("myValue", omNs); value.setText(text); method.addChild(value); return method; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/bf48280bb2cc17e59a92ab2d54f54ddd09c486e7/AddressingServiceTest.java/clean/modules/integration/test/org/apache/axis2/addressing/AddressingServiceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 531, 12310, 752, 19704, 51, 12310, 12, 780, 977, 13, 288, 3639, 28839, 1733, 5853, 273, 531, 5535, 3336, 1733, 18, 588, 1872, 1733, 5621, 3639, 28839, 3402, 8068, 10386, 273, 5853, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 531, 12310, 752, 19704, 51, 12310, 12, 780, 977, 13, 288, 3639, 28839, 1733, 5853, 273, 531, 5535, 3336, 1733, 18, 588, 1872, 1733, 5621, 3639, 28839, 3402, 8068, 10386, 273, 5853, ...
if(((IpAddress)src_addr).getIpAddress() != null)
IpAddress tmp=(IpAddress)src_addr; if(tmp.getIpAddress() != null)
public void writeTo(DataOutputStream out) throws IOException { Map.Entry entry; byte leading=0; if(dest_addr != null) { leading+=DEST_SET; if(dest_addr instanceof IpAddress) leading+=IPADDR_DEST; } if(src_addr != null) { leading+=SRC_SET; if(src_addr instanceof IpAddress) { leading+=IPADDR_SRC; if(((IpAddress)src_addr).getIpAddress() == null) { leading+=SRC_HOST_NULL; } } } if(buf != null) leading+=BUF_SET; if(headers != null && headers.size() > 0) leading+=HDRS_SET; // 1. write the leading byte first out.write(leading); // 2. dest_addr if(dest_addr != null) { if(dest_addr instanceof IpAddress) dest_addr.writeTo(out); else Util.writeAddress(dest_addr, out); } // 3. src_addr if(src_addr != null) { if(src_addr instanceof IpAddress) { if(((IpAddress)src_addr).getIpAddress() != null) src_addr.writeTo(out); else { out.writeInt(((IpAddress)src_addr).getPort()); } } else { Util.writeAddress(src_addr, out); } } // 4. buf if(buf != null) { out.writeInt(length); out.write(buf, offset, length); } // 5. headers if(headers != null && headers.size() > 0) { out.writeInt(headers.size()); for(Iterator it=headers.entrySet().iterator(); it.hasNext();) { entry=(Map.Entry)it.next(); out.writeUTF((String)entry.getKey()); writeHeader((Header)entry.getValue(), out); } } }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/6cc151b066a34f8126fbf501ecd2b438fe48b28e/Message.java/clean/src/org/jgroups/Message.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12870, 12, 751, 4632, 596, 13, 1216, 1860, 288, 3639, 1635, 18, 1622, 3639, 1241, 31, 3639, 1160, 7676, 33, 20, 31, 3639, 309, 12, 10488, 67, 4793, 480, 446, 13, 288, 5411, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12870, 12, 751, 4632, 596, 13, 1216, 1860, 288, 3639, 1635, 18, 1622, 3639, 1241, 31, 3639, 1160, 7676, 33, 20, 31, 3639, 309, 12, 10488, 67, 4793, 480, 446, 13, 288, 5411, ...
if (exType != OTHER && frame != null) { frame.onExceptionThrown(cx, ex);
if (exType != OTHER && debuggerFrame != null) { debuggerFrame.onExceptionThrown(cx, ex);
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = theData.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_STACK_SHFT = LOCAL_SHFT + theData.itsMaxLocals; final int STACK_SHFT = TRY_STACK_SHFT + theData.itsMaxTryDepth;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try scopes// stack[STACK_SHFT <= i < STACK_SHFT + theData.itsMaxStack]: stack data// sDbl[TRY_STACK_SHFT <= i < STACK_SHFT]: stack of try block pc, stored as doubles// sDbl[any other i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = theData.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + theData.itsMaxStack) Context.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int tryStackTop = 0; // add TRY_STACK_SHFT to get real index int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (int i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } if (theData.itsFunctionType != 0) { if (fnOrScript.itsClosure != null) { scope = fnOrScript.itsClosure; }else if (!theData.itsUseDynamicScope) { scope = fnOrScript.getParentScope(); } if (theData.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (theData.itsNeedsActivation) { scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { scope = ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, theData.itsFromEvalCode); } if (theData.itsNestedFunctions != null) { if (theData.itsFunctionType != 0 && !theData.itsNeedsActivation) Context.codeBug(); for (int i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope, theData.itsFromEvalCode); } DebugFrame frame = null; if (cx.debugger != null) { frame = cx.debugger.enterFrame(cx, scope, thisObj, args, (DebuggableScript)fnOrScript); } Object result = undefined; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; Loop: while (true) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : stack[TRY_STACK_SHFT + tryStackTop] = scope; sDbl[TRY_STACK_SHFT + tryStackTop] = (double)pc; ++tryStackTop; // Skip starting pc of catch/finally blocks pc += 4; break; case TokenStream.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; } case TokenStream.IFNE : { Object val = stack[stackTop]; boolean valBln; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; } case TokenStream.IFEQ : { boolean valBln; Object val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { double valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; } case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : { int slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; } case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case RETURN_UNDEF_ICODE : result = undefined; break Loop; case END_ICODE: break Loop; case TokenStream.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; } case TokenStream.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; } case TokenStream.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; } case TokenStream.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; } case TokenStream.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; } case TokenStream.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; } case TokenStream.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; } case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; } case TokenStream.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; } case TokenStream.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; } case TokenStream.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; } case TokenStream.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; } case TokenStream.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; } case TokenStream.BINDNAME : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; } case TokenStream.GETBASE : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; } case TokenStream.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; } case TokenStream.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; } case TokenStream.GETPROP : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; } case TokenStream.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; } case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; } case TokenStream.PROPDEC : { String name = (String)stack[stackTop]; --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; } case TokenStream.ELEMINC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; } case TokenStream.ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; } case TokenStream.GETTHIS : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; } case TokenStream.NEWTEMP : { int slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.USETEMP : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; } case TokenStream.CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); String name = strings[getShort(iCode, pc + 3)]; int count = getShort(iCode, pc + 5); Object[] outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; } case TokenStream.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; int count = getShort(iCode, pc + 3); Object[] outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { int i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int count = getShort(iCode, pc + 3); Object[] outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; } case TokenStream.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; } case TokenStream.TYPEOFNAME : { String name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; } case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : { int slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; } case TokenStream.GETVAR : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; } case TokenStream.VARINC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; } case TokenStream.VARDEC : { int slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; } case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : { Object exception = stack[stackTop]; if (exception == DBL_MRK) exception = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(exception); } case TokenStream.JTHROW : { Object exception = stack[stackTop]; // No need to check for DBL_MRK: exception must be Exception --stackTop; if (exception instanceof JavaScriptException) throw (JavaScriptException)exception; else throw (RuntimeException)exception; } case TokenStream.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; } case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : { int slot = (iCode[++pc] & 0xFF); Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; } case TokenStream.ENUMNEXT : { int slot = (iCode[++pc] & 0xFF); Object val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; } case TokenStream.GETPROTO : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; } case TokenStream.GETPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; } case TokenStream.GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; } case TokenStream.SETPROTO : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; } case TokenStream.SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; } case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : { int i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope, theData.itsFromEvalCode); pc += 2; break; } case TokenStream.OBJECT : { int i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; } case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : { int line = getShort(iCode, pc + 1); cx.interpreterLine = line; if (frame != null) { boolean breakpoint = ((iCode[pc] & 0xff) == BREAKPOINT_ICODE); frame.onLineChange(cx, line, breakpoint); } pc += 2; break; } default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object catchObj = ex; // Object seen by script catch for (;;) { if (catchObj instanceof JavaScriptException) { catchObj = ScriptRuntime.unwrapJavaScriptException ((JavaScriptException)catchObj); exType = SCRIPT_THROW; } else if (catchObj instanceof EcmaError) { // an offical ECMA error object, catchObj = ((EcmaError)catchObj).getErrorObject(); exType = ECMA; } else if (catchObj instanceof RuntimeException) { if (catchObj instanceof WrappedException) { Object w = ((WrappedException) catchObj).unwrap(); if (w instanceof Throwable) { catchObj = (Throwable) w; continue; } } catchObj = null; // script can not catch this exType = RUNTIME; } else { // Error instance catchObj = null; // script can not catch this exType = OTHER; } break; } if (exType != OTHER && frame != null) { frame.onExceptionThrown(cx, ex); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script --tryStackTop; int try_pc = (int)sDbl[TRY_STACK_SHFT + tryStackTop]; if (exType == SCRIPT_THROW || exType == ECMA) { // Allow JS to catch only JavaScriptException and // EcmaError int catch_pc = getTarget(iCode, try_pc + 1); if (catch_pc == try_pc) { catch_pc = 0; } if (catch_pc != 0) { // Has catch block rethrow = false; pc = catch_pc; stackTop = STACK_SHFT; stack[stackTop] = catchObj; } } if (rethrow) { int finally_pc = getTarget(iCode, try_pc + 3); if (finally_pc == try_pc + 2) { finally_pc = 0; } if (finally_pc != 0) { // has finally block rethrow = false; pc = finally_pc; stackTop = STACK_SHFT; stack[stackTop] = ex; } } } if (rethrow) { if (frame != null) { frame.onExit(cx, true, ex); } if (theData.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // restore scope at try point scope = (Scriptable)stack[TRY_STACK_SHFT + tryStackTop]; } } if (frame != null) { frame.onExit(cx, false, result); } if (theData.itsNeedsActivation) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/77589e0e41b5c0fa7857c54f0d2354f008b1b295/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 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, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
if ((preferences & PdfWriter.PageLayoutSinglePage) != 0) put(PdfName.PAGELAYOUT, PdfName.SINGLEPAGE); else if ((preferences & PdfWriter.PageLayoutOneColumn) != 0) put(PdfName.PAGELAYOUT, PdfName.ONECOLUMN); else if ((preferences & PdfWriter.PageLayoutTwoColumnLeft) != 0) put(PdfName.PAGELAYOUT, PdfName.TWOCOLUMNLEFT); else if ((preferences & PdfWriter.PageLayoutTwoColumnRight) != 0) put(PdfName.PAGELAYOUT, PdfName.TWOCOLUMNRIGHT); if ((preferences & PdfWriter.PageModeUseNone) != 0) put(PdfName.PAGEMODE, PdfName.USENONE); else if ((preferences & PdfWriter.PageModeUseOutlines) != 0) put(PdfName.PAGEMODE, PdfName.USEOUTLINES); else if ((preferences & PdfWriter.PageModeUseThumbs) != 0) put(PdfName.PAGEMODE, PdfName.USETHUMBS); else if ((preferences & PdfWriter.PageModeFullScreen) != 0) put(PdfName.PAGEMODE, PdfName.FULLSCREEN); if ((preferences & PdfWriter.ViewerPreferencesMask) == 0) return; PdfDictionary vp = new PdfDictionary(); if ((preferences & PdfWriter.HideToolbar) != 0) vp.put(PdfName.HIDETOOLBAR, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.HideMenubar) != 0) vp.put(PdfName.HIDEMENUBAR, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.HideWindowUI) != 0) vp.put(PdfName.HIDEWINDOWUI, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.FitWindow) != 0) vp.put(PdfName.FITWINDOW, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.CenterWindow) != 0) vp.put(PdfName.CENTERWINDOW, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.NonFullScreenPageModeUseNone) != 0) vp.put(PdfName.NONFULLSCREENPAGEMODE, PdfName.USENONE); else if ((preferences & PdfWriter.NonFullScreenPageModeUseOutlines) != 0) vp.put(PdfName.NONFULLSCREENPAGEMODE, PdfName.USEOUTLINES); else if ((preferences & PdfWriter.NonFullScreenPageModeUseThumbs) != 0) vp.put(PdfName.NONFULLSCREENPAGEMODE, PdfName.USETHUMBS); if ((preferences & PdfWriter.DirectionL2R) != 0) vp.put(PdfName.DIRECTION, PdfName.L2R); else if ((preferences & PdfWriter.DirectionR2L) != 0) vp.put(PdfName.DIRECTION, PdfName.R2L); put(PdfName.VIEWERPREFERENCES, vp); }
if ((preferences & PdfWriter.PageLayoutSinglePage) != 0) put(PdfName.PAGELAYOUT, PdfName.SINGLEPAGE); else if ((preferences & PdfWriter.PageLayoutOneColumn) != 0) put(PdfName.PAGELAYOUT, PdfName.ONECOLUMN); else if ((preferences & PdfWriter.PageLayoutTwoColumnLeft) != 0) put(PdfName.PAGELAYOUT, PdfName.TWOCOLUMNLEFT); else if ((preferences & PdfWriter.PageLayoutTwoColumnRight) != 0) put(PdfName.PAGELAYOUT, PdfName.TWOCOLUMNRIGHT); if ((preferences & PdfWriter.PageModeUseNone) != 0) put(PdfName.PAGEMODE, PdfName.USENONE); else if ((preferences & PdfWriter.PageModeUseOutlines) != 0) put(PdfName.PAGEMODE, PdfName.USEOUTLINES); else if ((preferences & PdfWriter.PageModeUseThumbs) != 0) put(PdfName.PAGEMODE, PdfName.USETHUMBS); else if ((preferences & PdfWriter.PageModeFullScreen) != 0) put(PdfName.PAGEMODE, PdfName.FULLSCREEN); if ((preferences & PdfWriter.ViewerPreferencesMask) == 0) return; PdfDictionary vp = new PdfDictionary(); if ((preferences & PdfWriter.HideToolbar) != 0) vp.put(PdfName.HIDETOOLBAR, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.HideMenubar) != 0) vp.put(PdfName.HIDEMENUBAR, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.HideWindowUI) != 0) vp.put(PdfName.HIDEWINDOWUI, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.FitWindow) != 0) vp.put(PdfName.FITWINDOW, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.CenterWindow) != 0) vp.put(PdfName.CENTERWINDOW, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.NonFullScreenPageModeUseNone) != 0) vp.put(PdfName.NONFULLSCREENPAGEMODE, PdfName.USENONE); else if ((preferences & PdfWriter.NonFullScreenPageModeUseOutlines) != 0) vp.put(PdfName.NONFULLSCREENPAGEMODE, PdfName.USEOUTLINES); else if ((preferences & PdfWriter.NonFullScreenPageModeUseThumbs) != 0) vp.put(PdfName.NONFULLSCREENPAGEMODE, PdfName.USETHUMBS); if ((preferences & PdfWriter.DirectionL2R) != 0) vp.put(PdfName.DIRECTION, PdfName.L2R); else if ((preferences & PdfWriter.DirectionR2L) != 0) vp.put(PdfName.DIRECTION, PdfName.R2L); put(PdfName.VIEWERPREFERENCES, vp); }
void setViewerPreferences(int preferences) { if ((preferences & PdfWriter.PageLayoutSinglePage) != 0) put(PdfName.PAGELAYOUT, PdfName.SINGLEPAGE); else if ((preferences & PdfWriter.PageLayoutOneColumn) != 0) put(PdfName.PAGELAYOUT, PdfName.ONECOLUMN); else if ((preferences & PdfWriter.PageLayoutTwoColumnLeft) != 0) put(PdfName.PAGELAYOUT, PdfName.TWOCOLUMNLEFT); else if ((preferences & PdfWriter.PageLayoutTwoColumnRight) != 0) put(PdfName.PAGELAYOUT, PdfName.TWOCOLUMNRIGHT); if ((preferences & PdfWriter.PageModeUseNone) != 0) put(PdfName.PAGEMODE, PdfName.USENONE); else if ((preferences & PdfWriter.PageModeUseOutlines) != 0) put(PdfName.PAGEMODE, PdfName.USEOUTLINES); else if ((preferences & PdfWriter.PageModeUseThumbs) != 0) put(PdfName.PAGEMODE, PdfName.USETHUMBS); else if ((preferences & PdfWriter.PageModeFullScreen) != 0) put(PdfName.PAGEMODE, PdfName.FULLSCREEN); if ((preferences & PdfWriter.ViewerPreferencesMask) == 0) return; PdfDictionary vp = new PdfDictionary(); if ((preferences & PdfWriter.HideToolbar) != 0) vp.put(PdfName.HIDETOOLBAR, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.HideMenubar) != 0) vp.put(PdfName.HIDEMENUBAR, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.HideWindowUI) != 0) vp.put(PdfName.HIDEWINDOWUI, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.FitWindow) != 0) vp.put(PdfName.FITWINDOW, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.CenterWindow) != 0) vp.put(PdfName.CENTERWINDOW, PdfBoolean.PDFTRUE); if ((preferences & PdfWriter.NonFullScreenPageModeUseNone) != 0) vp.put(PdfName.NONFULLSCREENPAGEMODE, PdfName.USENONE); else if ((preferences & PdfWriter.NonFullScreenPageModeUseOutlines) != 0) vp.put(PdfName.NONFULLSCREENPAGEMODE, PdfName.USEOUTLINES); else if ((preferences & PdfWriter.NonFullScreenPageModeUseThumbs) != 0) vp.put(PdfName.NONFULLSCREENPAGEMODE, PdfName.USETHUMBS); if ((preferences & PdfWriter.DirectionL2R) != 0) vp.put(PdfName.DIRECTION, PdfName.L2R); else if ((preferences & PdfWriter.DirectionR2L) != 0) vp.put(PdfName.DIRECTION, PdfName.R2L); put(PdfName.VIEWERPREFERENCES, vp); }
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/6288f051b807f9da0a0f308a00b5851da285b8fb/PdfDocument.java/clean/itext/src/com/lowagie/text/pdf/PdfDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 918, 444, 18415, 12377, 12, 474, 12750, 13, 288, 5411, 309, 14015, 23219, 473, 9989, 2289, 18, 1964, 3744, 14504, 13, 480, 374, 13, 7734, 1378, 12, 18562, 461, 18, 30633, 2247, 5255, 5069...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 444, 18415, 12377, 12, 474, 12750, 13, 288, 5411, 309, 14015, 23219, 473, 9989, 2289, 18, 1964, 3744, 14504, 13, 480, 374, 13, 7734, 1378, 12, 18562, 461, 18, 30633, 2247, 5255, 5069...
Iterator enum = ModelFacade.getAttributes(dm);
Iterator enum = ModelFacade.getAttributes(dm).iterator();
public boolean predicate2(Object dm, Designer dsgr) { if (!(ModelFacade.isAClassifier(dm))) return NO_PROBLEM; Vector namesSeen = new Vector(); Iterator enum = ModelFacade.getAttributes(dm); while (enum.hasNext()) { String name = ModelFacade.getName(enum.next()); if (name == null || name.length() == 0) continue; if (namesSeen.contains(name)) return PROBLEM_FOUND; namesSeen.addElement(name); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/1c3949a435c45d1037f0c64d236ffb10becd08ea/CrAttrNameConflict.java/clean/src_new/org/argouml/uml/cognitive/critics/CrAttrNameConflict.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 5641, 22, 12, 921, 9113, 16, 29703, 264, 302, 1055, 86, 13, 288, 202, 430, 16051, 12, 1488, 12467, 18, 291, 37, 13860, 12, 10956, 20349, 327, 3741, 67, 3373, 38, 26817, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 5641, 22, 12, 921, 9113, 16, 29703, 264, 302, 1055, 86, 13, 288, 202, 430, 16051, 12, 1488, 12467, 18, 291, 37, 13860, 12, 10956, 20349, 327, 3741, 67, 3373, 38, 26817, 31, ...
assertEquals(3, stmt.executeUpdate("DELETE FROM testtimestamp"));
public void testGetTimestamp() { try { Connection con = JDBC2Tests.openDB(); Statement st=con.createStatement(); JDBC2Tests.createTable(con,"ts timestamp"); st.executeUpdate(JDBC2Tests.insert("'1950-02-07 15:00:00'")); // Before you ask why 8:13:00 and not 7:13:00, this is a problem with the // getTimestamp method in this TestCase. It's simple, brain-dead. It // simply doesn't know about summer time. As this date is in June, it's // summer (GMT wise). // // This case needs some work done on it. // st.executeUpdate(JDBC2Tests.insert("'"+getTimestamp(1970,6,2,8,13,0).toString()+"'")); //st.executeUpdate(JDBC2Tests.insert("'1950-02-07'")); // Fall through helper checkTimeTest(con,st); st.close(); JDBC2Tests.closeDB(con); } catch(Exception ex) { assert(ex.getMessage(),false); } } /** * Tests the time methods in PreparedStatement */ public void testSetTimestamp() { try { Connection con = JDBC2Tests.openDB(); Statement st=con.createStatement(); JDBC2Tests.createTable(con,"ts timestamp"); PreparedStatement ps = con.prepareStatement(JDBC2Tests.insert("?")); ps.setTimestamp(1,getTimestamp(1950,2,7,15,0,0)); assert(!ps.execute()); // false as its an update! // Before you ask why 8:13:00 and not 7:13:00, this is a problem with the // getTimestamp method in this TestCase. It's simple, brain-dead. It // simply doesn't know about summer time. As this date is in June, it's // summer (GMT wise). // // This case needs some work done on it. // ps.setTimestamp(1,getTimestamp(1970,6,2,7,13,0)); assert(!ps.execute()); // false as its an update! // Fall through helper checkTimeTest(con,st); ps.close(); st.close(); JDBC2Tests.closeDB(con); } catch(Exception ex) {
45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/b75814aee320ef2b67ad01ba72c266dbbf94db45/TimestampTest.java/clean/src/interfaces/jdbc/org/postgresql/test/jdbc2/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1815, 8867, 12, 23, 16, 3480, 18, 8837, 1891, 2932, 6460, 4571, 1842, 5508, 7923, 1769, 1815, 8867, 12, 23, 16, 3480, 18, 8837, 1891, 2932, 6460, 4571, 1842, 5508, 7923, 1769, 1071, 11231, 886...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1815, 8867, 12, 23, 16, 3480, 18, 8837, 1891, 2932, 6460, 4571, 1842, 5508, 7923, 1769, 1815, 8867, 12, 23, 16, 3480, 18, 8837, 1891, 2932, 6460, 4571, 1842, 5508, 7923, 1769, 1071, 11231, 886...
public org.quickfix.field.AllocAcctIDSource getAllocAcctIDSource() throws FieldNotFound { org.quickfix.field.AllocAcctIDSource value = new org.quickfix.field.AllocAcctIDSource();
public quickfix.field.AllocAcctIDSource getAllocAcctIDSource() throws FieldNotFound { quickfix.field.AllocAcctIDSource value = new quickfix.field.AllocAcctIDSource();
public org.quickfix.field.AllocAcctIDSource getAllocAcctIDSource() throws FieldNotFound { org.quickfix.field.AllocAcctIDSource value = new org.quickfix.field.AllocAcctIDSource(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportAck.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReportAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8763, 9988, 299, 734, 1830, 336, 8763, 9988, 299, 734, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8763, 9988, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8763, 9988, 299, 734, 1830, 336, 8763, 9988, 299, 734, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8763, 9988, ...
Scriptable s = ScriptableObject.getTopLevelScope(funObj);
Scriptable s = ScriptableObject.getTopLevelScope(scope);
void doGlobal(Context cx, Function funObj, int count, RegExpImpl reImpl) throws JavaScriptException { MatchData mdata; Object v; mdata = this; if (arrayobj == null) { Scriptable s = ScriptableObject.getTopLevelScope(funObj); arrayobj = ScriptRuntime.newObject(cx, s, "Array", null); } SubString matchsub = reImpl.lastMatch; String matchstr = matchsub.toString(); arrayobj.put(count, arrayobj, matchstr); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/ea784f12624d5ef9899dfbae006ec438e546253e/RegExpImpl.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 741, 5160, 12, 1042, 9494, 16, 4284, 9831, 2675, 16, 509, 1056, 16, 10679, 2828, 283, 2828, 13, 540, 1216, 11905, 503, 377, 288, 3639, 4639, 751, 312, 892, 31, 3639, 1033, 331, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 741, 5160, 12, 1042, 9494, 16, 4284, 9831, 2675, 16, 509, 1056, 16, 10679, 2828, 283, 2828, 13, 540, 1216, 11905, 503, 377, 288, 3639, 4639, 751, 312, 892, 31, 3639, 1033, 331, 31,...
mainCodegen.generatedClassName,
codegen.mainClassName,
private void visitFunction(OptFunctionNode fn, int functionType) { String fnClassName = fn.getClassName(); cfw.add(ByteCode.NEW, fnClassName); // Call function constructor cfw.add(ByteCode.DUP); cfw.addALoad(variableObjectLocal); cfw.addALoad(contextLocal); // load 'cx' cfw.addInvoke(ByteCode.INVOKESPECIAL, fnClassName, "<init>", "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V"); // Init mainScript field; cfw.add(ByteCode.DUP); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, currentCodegen.generatedClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); cfw.add(ByteCode.PUTFIELD, fnClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); int directTargetIndex = fn.getDirectTargetIndex(); if (directTargetIndex >= 0) { cfw.add(ByteCode.DUP); cfw.add(ByteCode.ALOAD_0); cfw.add(ByteCode.GETFIELD, currentCodegen.generatedClassName, Codegen.MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); cfw.add(ByteCode.SWAP); cfw.add(ByteCode.PUTFIELD, mainCodegen.generatedClassName, Codegen.getDirectTargetFieldName(directTargetIndex), cfw.classNameToSignature(fn.getClassName())); } // Dup function reference for function expressions to have it // on top of the stack when initFunction returns if (functionType != FunctionNode.FUNCTION_STATEMENT) { cfw.add(ByteCode.DUP); } cfw.addPush(functionType); cfw.addALoad(variableObjectLocal); cfw.addALoad(contextLocal); // load 'cx' addOptRuntimeInvoke("initFunction", "(Lorg/mozilla/javascript/NativeFunction;" +"I" +"Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;" +")V"); }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/3c9b84173796cf5a1eb1f786e5ba6af89b66fcab/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 2083, 12, 6179, 2083, 907, 2295, 16, 509, 445, 559, 13, 565, 288, 3639, 514, 2295, 3834, 273, 2295, 18, 588, 3834, 5621, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 2083, 12, 6179, 2083, 907, 2295, 16, 509, 445, 559, 13, 565, 288, 3639, 514, 2295, 3834, 273, 2295, 18, 588, 3834, 5621, 3639, 6080, 91, 18, 1289, 12, 3216, 1085, 18, ...
String routerInfoFile = _context.router().getConfigSetting(Router.PROP_INFO_FILENAME);
String routerInfoFile = getContext().router().getConfigSetting(Router.PROP_INFO_FILENAME);
private void loadRouterInfo() { String routerInfoFile = _context.router().getConfigSetting(Router.PROP_INFO_FILENAME); if (routerInfoFile == null) routerInfoFile = Router.PROP_INFO_FILENAME_DEFAULT; RouterInfo info = null; boolean failedRead = false; String keyFilename = _context.router().getConfigSetting(Router.PROP_KEYS_FILENAME); if (keyFilename == null) keyFilename = Router.PROP_KEYS_FILENAME_DEFAULT; File rif = new File(routerInfoFile); if (rif.exists()) _infoExists = true; File rkf = new File(keyFilename); if (rkf.exists()) _keysExist = true; FileInputStream fis1 = null; FileInputStream fis2 = null; try { if (_infoExists) { fis1 = new FileInputStream(rif); info = new RouterInfo(); info.readBytes(fis1); _log.debug("Reading in routerInfo from " + rif.getAbsolutePath() + " and it has " + info.getAddresses().size() + " addresses"); } if (_keysExist) { fis2 = new FileInputStream(rkf); PrivateKey privkey = new PrivateKey(); privkey.readBytes(fis2); SigningPrivateKey signingPrivKey = new SigningPrivateKey(); signingPrivKey.readBytes(fis2); PublicKey pubkey = new PublicKey(); pubkey.readBytes(fis2); SigningPublicKey signingPubKey = new SigningPublicKey(); signingPubKey.readBytes(fis2); _context.keyManager().setPrivateKey(privkey); _context.keyManager().setSigningPrivateKey(signingPrivKey); _context.keyManager().setPublicKey(pubkey); //info.getIdentity().getPublicKey()); _context.keyManager().setSigningPublicKey(signingPubKey); // info.getIdentity().getSigningPublicKey()); } _us = info; } catch (IOException ioe) { _log.error("Error reading the router info from " + routerInfoFile + " and the keys from " + keyFilename, ioe); _us = null; rif.delete(); rkf.delete(); _infoExists = false; _keysExist = false; } catch (DataFormatException dfe) { _log.error("Corrupt router info or keys at " + routerInfoFile + " / " + keyFilename, dfe); _us = null; rif.delete(); rkf.delete(); _infoExists = false; _keysExist = false; } finally { if (fis1 != null) try { fis1.close(); } catch (IOException ioe) {} if (fis2 != null) try { fis2.close(); } catch (IOException ioe) {} } }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/e737e5c9507ed0d463dc9e45a8f63657f466b177/LoadRouterInfoJob.java/buggy/router/java/src/net/i2p/router/startup/LoadRouterInfoJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 8259, 966, 1435, 288, 3639, 514, 4633, 966, 812, 273, 6474, 7675, 10717, 7675, 588, 809, 5568, 12, 8259, 18, 15811, 67, 5923, 67, 16080, 1769, 3639, 309, 261, 10717, 966,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 8259, 966, 1435, 288, 3639, 514, 4633, 966, 812, 273, 6474, 7675, 10717, 7675, 588, 809, 5568, 12, 8259, 18, 15811, 67, 5923, 67, 16080, 1769, 3639, 309, 261, 10717, 966,...
public JDParameter(Parameter p, JDExecutableMember parent, JClassLoader loader) {
public JDParameter(Parameter p, JDExecutableMember parent, JClassLoader loader) {
public JDParameter(Parameter p, JDExecutableMember parent, JClassLoader loader) { mParameter = p; mParent = parent; mLoader = loader; }
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/3000c319a8bf941ab58f89ab915bab31e3176b73/JDParameter.java/buggy/v2/src/jam/org/apache/xmlbeans/impl/jam/internal/javadoc/JDParameter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 804, 40, 1662, 12, 1662, 293, 16, 1875, 377, 804, 40, 17709, 4419, 982, 16, 1875, 377, 804, 7805, 4088, 13, 288, 565, 312, 1662, 273, 293, 31, 565, 312, 3054, 273, 982, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 804, 40, 1662, 12, 1662, 293, 16, 1875, 377, 804, 40, 17709, 4419, 982, 16, 1875, 377, 804, 7805, 4088, 13, 288, 565, 312, 1662, 273, 293, 31, 565, 312, 3054, 273, 982, 31, 565,...
public void setActiveEditor(IEditorPart part) { super.setActiveEditor(part); ITextEditor textEditor= null; if (part instanceof ITextEditor) textEditor= (ITextEditor) part; ClassFileEditor classFileEditor= null; if (part instanceof ClassFileEditor) classFileEditor= (ClassFileEditor)part; fShowJavaDoc.setAction(getAction(textEditor, "ShowJavaDoc")); //$NON-NLS-1$ fTogglePresentationAction.setEditor(textEditor); /* 1GEYIIA: ITPJUI:WINNT - Hover Toggle not available for classfile editors */ fToggleTextHover.setEditor(textEditor); if (classFileEditor != null) { IActionBars bars= getActionBars(); classFileEditor.fActionGroups.fillActionBars(bars); } //IAction updateAction= getAction(textEditor, "Display"); //$NON-NLS-1$ //if (updateAction instanceof IUpdate) { // ((IUpdate)updateAction).update(); //} //fDisplay.setAction(updateAction); //updateAction= getAction(textEditor, "Inspect"); //$NON-NLS-1$ //if (updateAction instanceof IUpdate) { // ((IUpdate)updateAction).update(); //} //fInspect.setAction(updateAction); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/2811cbdd419287f6edf5c3592d2c25b91b77d96f/ClassFileEditorActionContributor.java/clean/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/ClassFileEditorActionContributor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20669, 6946, 12, 45, 6946, 1988, 1087, 13, 288, 9506, 202, 9565, 18, 542, 3896, 6946, 12, 2680, 1769, 9506, 202, 1285, 408, 6946, 977, 6946, 33, 446, 31, 202, 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, 225, 202, 482, 918, 20669, 6946, 12, 45, 6946, 1988, 1087, 13, 288, 9506, 202, 9565, 18, 542, 3896, 6946, 12, 2680, 1769, 9506, 202, 1285, 408, 6946, 977, 6946, 33, 446, 31, 202, 202, 430, ...
if(ASS)ER.T(false,"InvalidInfoException in StackTyrant",this);
if(AS.S)ER.T(false,"InvalidInfoException in StackTyrant",this);
public void update(Observable o, Object arg) { if ( o == _controlTyrant ) { if( ControlTyrant.STOPPED == _controlTyrant.getState() ) { // fill list // invert the order from the DebugController StackFrameInfo[] stack = null; try { stack = _controlTyrant.getThreadState().getStack(); } catch(InvalidInfoException e) { if(ASS)ER.T(false,"InvalidInfoException in StackTyrant",this); } if(ASS)ER.T(null!=stack,"stack is null!",this); if(ASS)ER.T(0!=stack.length,"stack is empty!",this); if( null != stack ) { _frameArray = new StackFrameInfo[stack.length]; for(int i = 0; i < stack.length; i++) _frameArray[i] = stack[stack.length-(i+1)]; } // set selected and notify _currentFrameIndex = 0; _notifyArrayChanged(); } else { // clear and notify _frameArray = null; setCurrentFrame(0); } } }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/2de73cf99dce60cce549e7757f841284b68d1220/StackTyrant.java/buggy/js/jsdj/classes/com/netscape/jsdebugging/ifcui/StackTyrant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 12, 15279, 320, 16, 1033, 1501, 13, 565, 288, 3639, 309, 261, 320, 422, 389, 7098, 56, 93, 6890, 262, 3639, 288, 5411, 309, 12, 8888, 56, 93, 6890, 18, 17513, 12120, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1089, 12, 15279, 320, 16, 1033, 1501, 13, 565, 288, 3639, 309, 261, 320, 422, 389, 7098, 56, 93, 6890, 262, 3639, 288, 5411, 309, 12, 8888, 56, 93, 6890, 18, 17513, 12120, ...
public double jsFunction_getTimezoneOffset() {
private double jsFunction_getTimezoneOffset() {
public double jsFunction_getTimezoneOffset() { if (this.date != this.date) return this.date; return (this.date - LocalTime(this.date)) / msPerMinute; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/1f40b84b6c54487dd6f26829d1ebda36a7567a38/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 3828, 2083, 67, 588, 17989, 2335, 1435, 288, 3639, 309, 261, 2211, 18, 712, 480, 333, 18, 712, 13, 5411, 327, 333, 18, 712, 31, 3639, 327, 261, 2211, 18, 712, 300, 25515, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1645, 3828, 2083, 67, 588, 17989, 2335, 1435, 288, 3639, 309, 261, 2211, 18, 712, 480, 333, 18, 712, 13, 5411, 327, 333, 18, 712, 31, 3639, 327, 261, 2211, 18, 712, 300, 25515, ...
case 9: if (expandTabs) {
case 9: tabsExpand = false; if (tabsExpand) {
public boolean keyPressed(KeyEvent event) { // don't do things if the textarea isn't editable if (externalEditor) return false; //deselect(); // this is for paren balancing char c = event.getKeyChar(); int code = event.getKeyCode(); //System.out.println(c + " " + code + " " + event); //System.out.println(); if ((event.getModifiers() & KeyEvent.META_MASK) != 0) { //event.consume(); // does nothing return false; } // TODO i don't like these accessors. clean em up later. if (!editor.sketch.current.modified) { if ((code == KeyEvent.VK_BACK_SPACE) || (code == KeyEvent.VK_TAB) || (code == KeyEvent.VK_ENTER) || ((c >= 32) && (c < 128))) { editor.sketch.setModified(); } } switch ((int) c) { case 9: // expand tabs if (expandTabs) { //tc.replaceSelection(tabString); textarea.setSelectedText(tabString); event.consume(); return true; } break; case 10: // auto-indent case 13: if (autoIndent) { char contents[] = textarea.getText().toCharArray(); // this is the previous character // (i.e. when you hit return, it'll be the last character // just before where the newline will be inserted) int origIndex = textarea.getCaretPosition() - 1; // NOTE all this cursing about CRLF stuff is probably moot // NOTE since the switch to JEditTextArea, which seems to use // NOTE only LFs internally (thank god). disabling for 0099. // walk through the array to the current caret position, // and count how many weirdo windows line endings there are, // which would be throwing off the caret position number /* int offset = 0; int realIndex = origIndex; for (int i = 0; i < realIndex-1; i++) { if ((contents[i] == 13) && (contents[i+1] == 10)) { offset++; realIndex++; } } // back up until \r \r\n or \n.. @#($* cross platform //System.out.println(origIndex + " offset = " + offset); origIndex += offset; // ARGH!#(* WINDOWS#@($* */ int spaceCount = calcSpaceCount(origIndex, contents); // now before inserting this many spaces, walk forward from // the caret position, so that the number of spaces aren't // just being duplicated again int index = origIndex + 1; while ((index < contents.length) && (contents[index] == ' ')) { spaceCount--; index++; } // if the last character was a left curly brace, then indent if (origIndex != -1) { if (contents[origIndex] == '{') { spaceCount += tabSize; } } String insertion = "\n" + Editor.EMPTY.substring(0, spaceCount); textarea.setSelectedText(insertion); // mark this event as already handled event.consume(); return true; } break; case '}': if (autoIndent) { // first remove anything that was there (in case this multiple // characters are selected, so that it's not in the way of the // spaces for the auto-indent //System.out.println(textarea.getSelectionStart()); //System.out.println(textarea.getSelectionEnd()); if (textarea.getSelectionStart() != textarea.getSelectionEnd()) { textarea.setSelectedText(""); } // if this brace is the only thing on the line, outdent char contents[] = textarea.getText().toCharArray(); // index to the character to the left of the caret int prevCharIndex = textarea.getCaretPosition() - 1; // backup from the current caret position to the last newline, // checking for anything besides whitespace along the way. // if there's something besides whitespace, exit without // messing any sort of indenting. int index = prevCharIndex; //int spaceCount = 0; boolean finished = false; while ((index != -1) && (!finished)) { if (contents[index] == 10) { finished = true; index++; } else if (contents[index] != ' ') { // don't do anything, this line has other stuff on it return false; } else { index--; } } if (!finished) return false; // brace with no start int lineStartIndex = index; //System.out.println("line starts at " + lineStartIndex); // now that we know things are ok to be indented, walk // backwards to the last { to see how far its line is indented. // this isn't perfect cuz it'll pick up commented areas, // but that's not really a big deal and can be fixed when // this is all given a more complete (proper) solution. index = prevCharIndex; int braceDepth = 1; finished = false; while ((index != -1) && (!finished)) { if (contents[index] == '}') { // aww crap, this means we're one deeper // and will have to find one more extra { braceDepth++; index--; } else if (contents[index] == '{') { braceDepth--; if (braceDepth == 0) { finished = true; } // otherwise just teasing, keep going.. } else { index--; } } // never found a proper brace, be safe and don't do anything if (!finished) return false; // check how many spaces on the line with the matching open brace int pairedSpaceCount = calcSpaceCount(index, contents); //System.out.println(pairedSpaceCount); /* // now walk forward and figure out how many spaces there are while ((index < contents.length) && (index >= 0) && (contents[index++] == ' ')) { spaceCount++; } */ // number of spaces found on this line //int newSpaceCount = Math.max(0, spaceCount - tabSize); // number of spaces on this current line //int spaceCount = calcSpaces(caretIndex, contents); //System.out.println("spaces is " + spaceCount); //String insertion = "\n" + Editor.EMPTY.substring(0, spaceCount); //int differential = newSpaceCount - spaceCount; //System.out.println("diff is " + differential); //int newStart = textarea.getSelectionStart() + differential; //textarea.setSelectionStart(newStart); //textarea.setSelectedText("}"); textarea.setSelectionStart(lineStartIndex); textarea.setSelectedText(Editor.EMPTY.substring(0, pairedSpaceCount)); // mark this event as already handled event.consume(); return true; } break; } return false; }
8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/1c66f675c6b5d3d4c668a831b0befda48819956a/EditorListener.java/buggy/app/EditorListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 498, 24624, 12, 653, 1133, 871, 13, 288, 565, 368, 2727, 1404, 741, 9198, 309, 326, 19691, 5177, 1404, 13754, 565, 309, 261, 9375, 6946, 13, 327, 629, 31, 565, 368, 5489, 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, 282, 1071, 1250, 498, 24624, 12, 653, 1133, 871, 13, 288, 565, 368, 2727, 1404, 741, 9198, 309, 326, 19691, 5177, 1404, 13754, 565, 309, 261, 9375, 6946, 13, 327, 629, 31, 565, 368, 5489, 13...
String collectionName = path.substring(0, p); String docName = path.substring(p + 1); Collection collection = broker.getCollection(collectionName); if (collection == null) {
String collectionName = path.substring(0, p); String docName = path.substring(p + 1); Collection collection = broker.getCollection(collectionName); if (collection == null) {
public boolean removeDocument(java.lang.String sessionId, java.lang.String path) throws java.rmi.RemoteException { Session session = getSession(sessionId); DBBroker broker = null; TransactionManager transact = pool.getTransactionManager(); Txn txn = transact.beginTransaction(); try { broker = pool.get(session.getUser()); //TODO : use dedicated function in XmldbURI int p = path.lastIndexOf("/"); if (p == Constants.STRING_NOT_FOUND || p == path.length() - 1) { transact.abort(txn); throw new EXistException("Illegal document path"); } String collectionName = path.substring(0, p); String docName = path.substring(p + 1); Collection collection = broker.getCollection(collectionName); if (collection == null) { transact.abort(txn); throw new EXistException( "Collection " + collectionName + " not found"); } DocumentImpl doc = collection.getDocument(broker, docName); if(doc == null) throw new EXistException("Document " + docName + " not found"); if(doc.getResourceType() == DocumentImpl.BINARY_FILE) collection.removeBinaryResource(txn, broker, doc); else collection.removeDocument(txn, broker, docName);//?? collection.removeXMLResource(txn, broker, docName); transact.commit(txn); return true; } catch (Exception e) { transact.abort(txn); LOG.debug(e.getMessage(), e); throw new RemoteException(e.getMessage(), e); } finally { pool.release(broker); } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/0909f8eb97be3b101ad96c593d2586e12ad0fd81/AdminSoapBindingImpl.java/clean/src/org/exist/soap/AdminSoapBindingImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1206, 2519, 12, 6290, 18, 4936, 18, 780, 10338, 16, 2252, 18, 4936, 18, 780, 589, 13, 1216, 2252, 18, 8864, 77, 18, 5169, 503, 288, 202, 202, 2157, 1339, 273, 7183, 12, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1206, 2519, 12, 6290, 18, 4936, 18, 780, 10338, 16, 2252, 18, 4936, 18, 780, 589, 13, 1216, 2252, 18, 8864, 77, 18, 5169, 503, 288, 202, 202, 2157, 1339, 273, 7183, 12, 31...
s, i2, s.getSubject() , 1, true, true, true, true, true, true
s, i2, s.getSubject() , 2, true, true, true, true, true, true
public void testGrantPrivs() { PrivHelper.grantPriv( s, i2, s.getSubject() , PRIV); PrivHelper.grantPriv( s, i2, SubjectHelper.SUBJ0 , PRIV); PrivHelper.getPrivs( s, i2, s.getSubject() , 1, true, true, true, true, true, true ); PrivHelper.getPrivs( s, i2, SubjectHelper.SUBJ0 , 1, false, false, false, false, true, false ); PrivHelper.getPrivs( s, i2, SubjectHelper.SUBJ1 , 0, false, false, false, false, false, false ); subjs.add(s.getSubject()); subjs.add(SubjectHelper.SUBJ0); PrivHelper.getSubjsWithPriv(i2, subjs, PRIV); groups.add(i2); PrivHelper.subjInGroups(s, s.getSubject(), groups, PRIV); PrivHelper.subjInGroups(s, SubjectHelper.SUBJ0, groups, PRIV); } // public void testGrantPrivs()
5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/473d91a4aab6bcc7ec60568e2da0e57ed98d0cbb/TestGrouperAccessUPDATE.java/clean/grouper/java/tests/test/edu/internet2/middleware/grouper/TestGrouperAccessUPDATE.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 9021, 15475, 87, 1435, 288, 565, 28274, 2276, 18, 16243, 15475, 12, 272, 16, 277, 22, 16, 225, 272, 18, 588, 6638, 1435, 1377, 269, 10365, 58, 1769, 1850, 28274, 2276, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9021, 15475, 87, 1435, 288, 565, 28274, 2276, 18, 16243, 15475, 12, 272, 16, 277, 22, 16, 225, 272, 18, 588, 6638, 1435, 1377, 269, 10365, 58, 1769, 1850, 28274, 2276, ...
rsi = stadmin.executeQuery(); HashMap<Integer,projectdataBean> adminmap= new HashMap<Integer,projectdataBean>();
stuser.setBoolean(2, true); rsi = stuser.executeQuery(); HashMap<Integer,projectdataBean> adminmap = new HashMap<Integer,projectdataBean>();
public userRightBean getRights(Connection conn, Integer userid) throws SQLException { PreparedStatement stuser = null; stuser = conn.prepareStatement("Select * from projectdata where rootid = (SELECT rootid FROM tfusertoproject WHERE userid = ? AND isadmin =?)"); stuser.setInt(1, userid.intValue()); stuser.setBoolean(2, false); PreparedStatement stadmin = null; stadmin = conn.prepareStatement("SELECT * FROM projectdata WHERE rootid = (SELECT rootid FROM tfusertoproject WHERE userid = ? AND isadmin =?)"); stadmin.setInt(1, userid.intValue()); stadmin.setBoolean(2, true); try { ResultSet rsi = stuser.executeQuery(); projectdataBean re = new projectdataBean(); HashMap<Integer,projectdataBean> pmap= new HashMap<Integer,projectdataBean>(); while(rsi.next()) { re.setRootID(new Integer(rsi.getInt("rootid"))); re.setID(new Integer(rsi.getInt("id"))); re.setVersion(new Integer(rsi.getInt("version"))); re.setUserUseradd(new Boolean(rsi.getBoolean("useruseradd"))); re.setUserUrledit(new Boolean(rsi.getBoolean("userurledit"))); re.setUserCatedit(new Boolean(rsi.getBoolean("usercatedit"))); re.setUserAddurl(new Boolean(rsi.getBoolean("useraddurl"))); re.setUserAddcat(new Boolean(rsi.getBoolean("useraddcat"))); re.setGuestRead(new Boolean(rsi.getBoolean("guestread"))); re.setGuestUrledit(new Boolean(rsi.getBoolean("guesturledit"))); re.setGuestCatedit(new Boolean(rsi.getBoolean("guestcatedit"))); re.setGuestAddurl(new Boolean(rsi.getBoolean("guestaddurl"))); re.setGuestAddcat(new Boolean(rsi.getBoolean("guestaddcat"))); pmap.put(re.getRootID(),re); } rsi = stadmin.executeQuery(); HashMap<Integer,projectdataBean> adminmap= new HashMap<Integer,projectdataBean>(); while(rsi.next()) { re.setRootID(new Integer(rsi.getInt("rootid"))); re.setID(new Integer(rsi.getInt("id"))); re.setVersion(new Integer(rsi.getInt("version"))); re.setUserUseradd(new Boolean(rsi.getBoolean("useruseradd"))); re.setUserUrledit(new Boolean(rsi.getBoolean("userurledit"))); re.setUserCatedit(new Boolean(rsi.getBoolean("usercatedit"))); re.setUserAddurl(new Boolean(rsi.getBoolean("useraddurl"))); re.setUserAddcat(new Boolean(rsi.getBoolean("useraddcat"))); re.setGuestRead(new Boolean(rsi.getBoolean("guestread"))); re.setGuestUrledit(new Boolean(rsi.getBoolean("guesturledit"))); re.setGuestCatedit(new Boolean(rsi.getBoolean("guestcatedit"))); re.setGuestAddurl(new Boolean(rsi.getBoolean("guestaddurl"))); re.setGuestAddcat(new Boolean(rsi.getBoolean("guestaddcat"))); adminmap.put(re.getRootID(),re); } userRightBean rbean = new userRightBean(pmap,adminmap); return(rbean); } catch(SQLException e) { //TODO LoggMessage statt print System.out.println("getRights: "+ e); throw(e); } }
13449 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13449/9d2049d20ebf71a4e0f9478ca7be641c05d3b1df/DBLayerHSQL.java/buggy/server/current/WEB-INF/src/db/teamfound/DBLayerHSQL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 729, 4726, 3381, 4170, 10730, 12, 1952, 1487, 16, 2144, 6709, 13, 1216, 6483, 202, 95, 202, 202, 29325, 384, 1355, 273, 446, 31, 202, 202, 334, 1355, 273, 1487, 18, 9366, 3406...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 729, 4726, 3381, 4170, 10730, 12, 1952, 1487, 16, 2144, 6709, 13, 1216, 6483, 202, 95, 202, 202, 29325, 384, 1355, 273, 446, 31, 202, 202, 334, 1355, 273, 1487, 18, 9366, 3406...
return entry.getMessage() != null ? entry.getMessage() : "";
if (entry.getMessage() != null) return entry.getMessage();
public String getColumnText(Object element, int columnIndex) { LogEntry entry = (LogEntry) element; switch (columnIndex) { case 0: return entry.getMessage() != null ? entry.getMessage() : ""; //$NON-NLS-1$ case 1: return entry.getPluginId() != null ? entry.getPluginId() : ""; //$NON-NLS-1$ case 2: return entry.getDate() != null ? entry.getDate() : ""; //$NON-NLS-1$ } return ""; //$NON-NLS-1$ }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/fc74eff5e2a9bcae655813c433e31e2607563312/LogViewLabelProvider.java/clean/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/logview/LogViewLabelProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 6716, 1528, 12, 921, 930, 16, 509, 14882, 13, 288, 202, 202, 25548, 1241, 273, 261, 25548, 13, 930, 31, 202, 202, 9610, 261, 2827, 1016, 13, 288, 202, 202, 3593, 374, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 6716, 1528, 12, 921, 930, 16, 509, 14882, 13, 288, 202, 202, 25548, 1241, 273, 261, 25548, 13, 930, 31, 202, 202, 9610, 261, 2827, 1016, 13, 288, 202, 202, 3593, 374, 3...
public abstract ITask createTaskFromExistingKey(TaskRepository repository, String id);
public abstract ITask createTaskFromExistingKey(TaskRepository repository, String id, Proxy proxySettings) throws CoreException;
public abstract ITask createTaskFromExistingKey(TaskRepository repository, String id);
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/52c602a8bdd3b62127b9e4f2baa38c62bfdfb0b8/AbstractRepositoryConnector.java/buggy/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8770, 467, 2174, 752, 2174, 1265, 9895, 653, 12, 2174, 3305, 3352, 16, 514, 612, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8770, 467, 2174, 752, 2174, 1265, 9895, 653, 12, 2174, 3305, 3352, 16, 514, 612, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
displayHelp(contextId, point);
displayHelp((String)object, point); return; } Object[] helpContext = null; if (object instanceof IContextComputer) helpContext = ((IContextComputer)object).computeContexts(event); else if (object instanceof Object[]) helpContext = (Object[])object; if (helpContext != null) { Point point = computePopUpLocation(event.widget.getDisplay()); displayHelp(helpContext, point);
public void helpRequested(HelpEvent event) { // get the help context id from the widget String contextId = (String)event.widget.getData(HELP_KEY); if (contextId != null && getHelpSupport() != null) { // determine a location in the upper right corner of the widget Point point = computePopUpLocation(event.widget.getDisplay()); // display the help displayHelp(contextId, point); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9d3584025202ee775f55c6fe5252f412dc0543fa/WorkbenchHelp.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/help/WorkbenchHelp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 2809, 11244, 12, 6696, 1133, 871, 13, 288, 1082, 202, 759, 336, 326, 2809, 819, 612, 628, 326, 3604, 1082, 202, 780, 819, 548, 273, 261, 780, 13, 2575, 18, 6587, 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, 3196, 202, 482, 918, 2809, 11244, 12, 6696, 1133, 871, 13, 288, 1082, 202, 759, 336, 326, 2809, 819, 612, 628, 326, 3604, 1082, 202, 780, 819, 548, 273, 261, 780, 13, 2575, 18, 6587, 18, 5...
super(parentShell);
super(parentShell);
public ChooseWorkspaceDialog(Shell parentShell, ChooseWorkspaceData launchData, boolean suppressAskAgain, boolean centerOnMonitor) { super(parentShell); this.launchData = launchData; this.suppressAskAgain = suppressAskAgain; this.centerOnMonitor = centerOnMonitor; // if there is no parent shell, open the dialog on top of all windows if(parentShell == null) { setShellStyle(getShellStyle() | SWT.ON_TOP); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/61321febe6f02fe7c8a5c623e36c873535f3b112/ChooseWorkspaceDialog.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/ChooseWorkspaceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 25593, 8241, 6353, 12, 13220, 982, 13220, 16, 5411, 25593, 8241, 751, 8037, 751, 16, 1250, 12257, 23663, 23530, 16, 1250, 4617, 1398, 7187, 13, 288, 377, 202, 9565, 12, 2938, 13220, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25593, 8241, 6353, 12, 13220, 982, 13220, 16, 5411, 25593, 8241, 751, 8037, 751, 16, 1250, 12257, 23663, 23530, 16, 1250, 4617, 1398, 7187, 13, 288, 377, 202, 9565, 12, 2938, 13220, ...
public org.quickfix.field.LegSecurityAltIDSource getLegSecurityAltIDSource() throws FieldNotFound { org.quickfix.field.LegSecurityAltIDSource value = new org.quickfix.field.LegSecurityAltIDSource();
public quickfix.field.LegSecurityAltIDSource getLegSecurityAltIDSource() throws FieldNotFound { quickfix.field.LegSecurityAltIDSource value = new quickfix.field.LegSecurityAltIDSource();
public org.quickfix.field.LegSecurityAltIDSource getLegSecurityAltIDSource() throws FieldNotFound { org.quickfix.field.LegSecurityAltIDSource value = new org.quickfix.field.LegSecurityAltIDSource(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MultilegOrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix43/MultilegOrderCancelReplaceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 10655, 734, 1830, 336, 8329, 4368, 10655, 734, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8329, 4368, 10655, 734, 1830, 336, 8329, 4368, 10655, 734, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368...
rs = dbmd.getAttributes(null, null, null, null); assertTrue(checkColumnNames(rs, new String[]{"TYPE_CAT", "TYPE_SCHEM","TYPE_NAME","ATTR_NAME", "DATA_TYPE","ATTR_TYPE_NAME","ATTR_SIZE","DECIMAL_DIGITS","NUM_PREC_RADIX","NULLABLE", "REMARKS","ATTR_DEF","SQL_DATA_TYPE","SQL_DATETIME_SUB","CHAR_OCTET_LENGTH", "ORDINAL_POSITION","IS_NULLABLE","SCOPE_CATALOG","SCOPE_SCHEMA","SCOPE_TABLE","SOURCE_DATA_TYPE"})); assertFalse(rs.next());
public void testResultSets() throws Exception { try { DatabaseMetaData dbmd = con.getMetaData(); ResultSet rs; Statement stmt = con.createStatement(); dropTable("jTDS_META2"); dropTable("jTDS_META"); dropProcedure("jtds_spmeta"); // // Create test data // stmt.execute("CREATE PROC jtds_spmeta @p1 int, @p2 varchar(30) output AS SELECT @p2 = 'test'"); stmt.execute("CREATE TABLE jTDS_META (id int NOT NULL primary key , data nvarchar(255) NULL, ts timestamp)"); stmt.execute("CREATE TABLE jTDS_META2 (id int NOT NULL, data2 varchar(255) NULL "+ ", FOREIGN KEY (id) REFERENCES jTDS_META(id)) "); // rs = dbmd.getAttributes(null, null, null, null); assertTrue(checkColumnNames(rs, new String[]{"TYPE_CAT", "TYPE_SCHEM","TYPE_NAME","ATTR_NAME", "DATA_TYPE","ATTR_TYPE_NAME","ATTR_SIZE","DECIMAL_DIGITS","NUM_PREC_RADIX","NULLABLE", "REMARKS","ATTR_DEF","SQL_DATA_TYPE","SQL_DATETIME_SUB","CHAR_OCTET_LENGTH", "ORDINAL_POSITION","IS_NULLABLE","SCOPE_CATALOG","SCOPE_SCHEMA","SCOPE_TABLE","SOURCE_DATA_TYPE"})); assertFalse(rs.next()); // rs = dbmd.getBestRowIdentifier(null, null, "jTDS_META", DatabaseMetaData.bestRowUnknown, true); assertTrue(checkColumnNames(rs, new String[]{"SCOPE", "COLUMN_NAME", "DATA_TYPE", "TYPE_NAME", "COLUMN_SIZE", "BUFFER_LENGTH", "DECIMAL_DIGITS","PSEUDO_COLUMN"})); assertTrue(rs.next()); assertEquals("id", rs.getString(2)); // rs = dbmd.getCatalogs(); assertTrue(checkColumnNames(rs, new String[]{"TABLE_CAT"})); boolean fail = true; while (rs.next()) { if (rs.getString(1).equalsIgnoreCase("master")) { fail=false; break; } } assertTrue(!fail); // rs = dbmd.getColumnPrivileges(null, null, "jTDS_META", "id"); assertTrue(checkColumnNames(rs, new String[]{"TABLE_CAT","TABLE_SCHEM","TABLE_NAME", "COLUMN_NAME","GRANTOR","GRANTEE","PRIVILEGE","IS_GRANTABLE"})); assertTrue(rs.next()); assertTrue(rs.getString(7).equals("INSERT") || rs.getString(7).equals("UPDATE") || rs.getString(7).equals("DELETE") || rs.getString(7).equals("SELECT")); // rs = dbmd.getColumns(null, null, "jTDS_META", "%"); assertTrue(checkColumnNames(rs, new String[]{"TABLE_CAT", "TABLE_SCHEM", "TABLE_NAME", "COLUMN_NAME", "DATA_TYPE", "TYPE_NAME", "COLUMN_SIZE", "BUFFER_LENGTH", "DECIMAL_DIGITS","NUM_PREC_RADIX", "NULLABLE","REMARKS","COLUMN_DEF", "SQL_DATA_TYPE","SQL_DATETIME_SUB","CHAR_OCTET_LENGTH","ORDINAL_POSITION", "IS_NULLABLE","SCOPE_CATALOG","SCOPE_SCHEMA","SCOPE_TABLE","SOURCE_DATA_TYPE"})); assertTrue(rs.next()); assertEquals("id", rs.getString(4)); assertEquals(java.sql.Types.INTEGER, rs.getInt(5)); assertTrue(rs.next()); assertEquals("data", rs.getString(4)); assertEquals(java.sql.Types.VARCHAR, rs.getInt(5)); // rs = dbmd.getCrossReference(null, null, "jTDS_META", null, null, "jTDS_META2"); assertTrue(checkColumnNames(rs, new String[]{"PKTABLE_CAT", "PKTABLE_SCHEM", "PKTABLE_NAME","PKCOLUMN_NAME", "FKTABLE_CAT", "FKTABLE_SCHEM", "FKTABLE_NAME","FKCOLUMN_NAME", "KEY_SEQ","UPDATE_RULE","DELETE_RULE","FK_NAME","PK_NAME","DEFERRABILITY"})); assertTrue(rs.next()); assertEquals("id", rs.getString(4)); // rs = dbmd.getExportedKeys(null, null, "jTDS_META"); assertTrue(checkColumnNames(rs, new String[]{"PKTABLE_CAT", "PKTABLE_SCHEM", "PKTABLE_NAME","PKCOLUMN_NAME", "FKTABLE_CAT", "FKTABLE_SCHEM", "FKTABLE_NAME","FKCOLUMN_NAME", "KEY_SEQ","UPDATE_RULE","DELETE_RULE","FK_NAME","PK_NAME","DEFERRABILITY"})); assertTrue(rs.next()); assertEquals("id", rs.getString(4)); // rs = dbmd.getImportedKeys(null, null, "jTDS_META2"); assertTrue(checkColumnNames(rs, new String[]{"PKTABLE_CAT", "PKTABLE_SCHEM", "PKTABLE_NAME","PKCOLUMN_NAME", "FKTABLE_CAT", "FKTABLE_SCHEM", "FKTABLE_NAME","FKCOLUMN_NAME", "KEY_SEQ","UPDATE_RULE","DELETE_RULE","FK_NAME","PK_NAME","DEFERRABILITY"})); assertTrue(rs.next()); assertEquals("id", rs.getString(4)); // rs = dbmd.getIndexInfo(null, null, "jTDS_META", false, true); assertTrue(checkColumnNames(rs, new String[]{"TABLE_CAT","TABLE_SCHEM","TABLE_NAME","NON_UNIQUE", "INDEX_QUALIFIER","INDEX_NAME","TYPE","ORDINAL_POSITION", "COLUMN_NAME", "ASC_OR_DESC","CARDINALITY","PAGES","FILTER_CONDITION"})); assertTrue(rs.next()); assertEquals("jTDS_META", rs.getString(3)); // rs = dbmd.getPrimaryKeys(null, null, "jTDS_META"); assertTrue(checkColumnNames(rs, new String[]{"TABLE_CAT","TABLE_SCHEM","TABLE_NAME","COLUMN_NAME","KEY_SEQ", "PK_NAME"})); assertTrue(rs.next()); assertEquals("id", rs.getString(4)); // rs = dbmd.getProcedureColumns(null, null, "jtds_spmeta", "@p1"); assertTrue(checkColumnNames(rs, new String[]{"PROCEDURE_CAT", "PROCEDURE_SCHEM", "PROCEDURE_NAME", "COLUMN_NAME", "COLUMN_TYPE","DATA_TYPE","TYPE_NAME","PRECISION", "LENGTH","SCALE","RADIX","NULLABLE","REMARKS"})); assertTrue(rs.next()); assertEquals("jtds_spmeta", rs.getString(3)); assertEquals("@p1", rs.getString(4)); // rs = dbmd.getProcedures(null, null, "jtds_spmeta%"); assertTrue(checkColumnNames(rs, new String[]{"PROCEDURE_CAT", "PROCEDURE_SCHEM", "PROCEDURE_NAME", "","","","REMARKS","PROCEDURE_TYPE"})); assertTrue(rs.next()); assertEquals("jtds_spmeta", rs.getString(3)); // rs = dbmd.getSchemas(); assertTrue(checkColumnNames(rs, new String[]{"TABLE_SCHEM","TABLE_CATALOG"})); assertTrue(rs.next()); // rs = dbmd.getSuperTables(null, null, "%"); assertTrue(checkColumnNames(rs, new String[]{"TABLE_CAT", "TABLE_SCHEM", "TABLE_NAME","SUPERTABLE_NAME"})); assertFalse(rs.next()); // rs = dbmd.getSuperTypes(null, null, "%"); assertTrue(checkColumnNames(rs, new String[]{"TYPE_CAT", "TYPE_SCHEM", "TYPE_NAME", "SUPERTYPE_CAT", "SUPERTYPE_SCHEM", "SUPERTYPE_NAME"})); assertFalse(rs.next()); // rs = dbmd.getTablePrivileges(null, null, "jTDS_META"); assertTrue(checkColumnNames(rs, new String[]{"TABLE_CAT", "TABLE_SCHEM", "TABLE_NAME", "GRANTOR", "GRANTEE","PRIVILEGE", "IS_GRANTABLE"})); assertTrue(rs.next()); assertTrue(rs.getString(6).equals("INSERT") || rs.getString(6).equals("UPDATE") || rs.getString(6).equals("DELETE") || rs.getString(6).equals("SELECT")); // rs = dbmd.getTables(null, null, "jTDS_META", new String[]{"TABLE"}); assertTrue(checkColumnNames(rs, new String[]{"TABLE_CAT", "TABLE_SCHEM", "TABLE_NAME", "TABLE_TYPE","REMARKS","TYPE_CAT","TYPE_SCHEM","TYPE_NAME", "SELF_REFERENCING_COL_NAME","REF_GENERATION"})); assertTrue(rs.next()); assertEquals("jTDS_META", rs.getString(3)); // rs = dbmd.getTableTypes(); assertTrue(checkColumnNames(rs, new String[]{"TABLE_TYPE"})); assertTrue(rs.next()); assertEquals("SYSTEM TABLE", rs.getString(1)); // rs = dbmd.getTypeInfo(); assertTrue(checkColumnNames(rs, new String[]{"TYPE_NAME","DATA_TYPE","PRECISION","LITERAL_PREFIX", "LITERAL_SUFFIX", "CREATE_PARAMS","NULLABLE","CASE_SENSITIVE","SEARCHABLE", "UNSIGNED_ATTRIBUTE","FIXED_PREC_SCALE","AUTO_INCREMENT","LOCAL_TYPE_NAME", "MINIMUM_SCALE","MAXIMUM_SCALE","SQL_DATA_TYPE","SQL_DATETIME_SUB","NUM_PREC_RADIX"})); while (rs.next()) { if (rs.getString(1).equalsIgnoreCase("nvarchar")) { assertEquals(java.sql.Types.VARCHAR, rs.getInt(2)); } } // rs = dbmd.getUDTs(null, null, "%", null); assertTrue(checkColumnNames(rs, new String[]{"TYPE_CAT", "TYPE_SCHEM", "TYPE_NAME", "CLASS_NAME", "DATA_TYPE","REMARKS","BASE_TYPE"})); assertFalse(rs.next()); // rs = dbmd.getVersionColumns(null, null, "jTDS_META"); assertTrue(checkColumnNames(rs, new String[]{"SCOPE", "COLUMN_NAME","DATA_TYPE","TYPE_NAME", "COLUMN_SIZE","BUFFER_LENGTH","DECIMAL_DIGITS","PSEUDO_COLUMN"})); assertTrue(rs.next()); assertEquals("ts", rs.getString(2)); } finally { dropTable("jTDS_META2"); dropTable("jTDS_META"); dropProcedure("jtds_spmeta"); } }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/feadc930c36b180a3fa2cc423b6474f399f6befc/DatabaseMetaDataTest.java/buggy/trunk/jtds/src/test/net/sourceforge/jtds/test/DatabaseMetaDataTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1253, 2785, 1435, 1216, 1185, 565, 288, 3639, 775, 288, 5411, 5130, 6998, 1319, 1264, 273, 356, 18, 588, 6998, 5621, 5411, 10842, 3597, 31, 5411, 8056, 3480, 273, 356, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1253, 2785, 1435, 1216, 1185, 565, 288, 3639, 775, 288, 5411, 5130, 6998, 1319, 1264, 273, 356, 18, 588, 6998, 5621, 5411, 10842, 3597, 31, 5411, 8056, 3480, 273, 356, 18...
commonParent = PsiTreeUtil.getParentOfType(commonParent, PsiCodeBlock.class);
commonParent = PsiTreeUtil.getParentOfType( commonParent, PsiCodeBlock.class);
public static PsiElement getCommonParent(@NotNull PsiReference[] references) { PsiElement commonParent = null; for (PsiReference reference : references) { final PsiElement referenceElement = reference.getElement(); final PsiElement parent = getParentOfTypes(referenceElement, TYPES); if (parent != null && commonParent != null && !commonParent.equals(parent)) { commonParent = PsiTreeUtil.findCommonParent(commonParent, parent); commonParent = getParentOfTypes(commonParent, TYPES); } else { commonParent = parent; } } // make common parent may only be for-statement if first reference is // the initialization of the for statement or the initialization is empty. if (commonParent instanceof PsiForStatement) { final PsiForStatement forStatement = (PsiForStatement)commonParent; final PsiElement referenceElement = references[0].getElement(); final PsiStatement initialization = forStatement.getInitialization(); if (!(initialization instanceof PsiEmptyStatement)) { if (initialization instanceof PsiExpressionStatement) { final PsiExpressionStatement statement = (PsiExpressionStatement)initialization; final PsiExpression expression = statement.getExpression(); if (expression instanceof PsiAssignmentExpression) { final PsiAssignmentExpression assignmentExpression = (PsiAssignmentExpression)expression; final PsiExpression lExpression = assignmentExpression.getLExpression(); if (!lExpression.equals(referenceElement)) { commonParent = PsiTreeUtil.getParentOfType(commonParent, PsiCodeBlock.class); } } else { commonParent = PsiTreeUtil.getParentOfType(commonParent, PsiCodeBlock.class); } } else { commonParent = PsiTreeUtil.getParentOfType(commonParent, PsiCodeBlock.class); } } } // common parent may not be a switch() statement to avoid narrowing // scope to inside switch branch if (commonParent != null) { final PsiElement parent = commonParent.getParent(); if (parent instanceof PsiSwitchStatement && references.length > 1) { commonParent = PsiTreeUtil.getParentOfType(parent, PsiCodeBlock.class, false); } } return commonParent; }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/8063d30292128e0eeadcb10979ad838b691d95a2/ScopeUtils.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/dataflow/ScopeUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 453, 7722, 1046, 30863, 3054, 26964, 5962, 453, 7722, 2404, 8526, 5351, 13, 565, 288, 3639, 453, 7722, 1046, 2975, 3054, 273, 446, 31, 3639, 364, 261, 52, 7722, 2404, 2114, 294...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 453, 7722, 1046, 30863, 3054, 26964, 5962, 453, 7722, 2404, 8526, 5351, 13, 565, 288, 3639, 453, 7722, 1046, 2975, 3054, 273, 446, 31, 3639, 364, 261, 52, 7722, 2404, 2114, 294...
boolean released = false;
public static void exit() { boolean released = false; Context cx = getCurrentContext(); if (cx == null) { throw new IllegalStateException( "Calling Context.exit without previous Context.enter"); } if (Context.check && cx.enterCount < 1) Kit.codeBug(); --cx.enterCount; if (cx.enterCount == 0) { released = true; setThreadContext(null); } Object[] listeners = contextListeners; if (listeners != null) { for (int i = listeners.length; i-- != 0;) { ((ContextListener)listeners[i]).contextExited(cx); } if (released) { for (int i = listeners.length; i-- != 0;) { ((ContextListener)listeners[i]).contextReleased(cx); } } } }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/00c2ae199eb99b5e7244b27f17d34c3c69c3586b/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2427, 1435, 565, 288, 9079, 1772, 9494, 273, 5175, 1042, 5621, 3639, 309, 261, 71, 92, 422, 446, 13, 288, 5411, 604, 394, 5477, 12, 7734, 315, 19677, 1772, 18, 8593, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2427, 1435, 565, 288, 9079, 1772, 9494, 273, 5175, 1042, 5621, 3639, 309, 261, 71, 92, 422, 446, 13, 288, 5411, 604, 394, 5477, 12, 7734, 315, 19677, 1772, 18, 8593, 288...
List constraint = new LinkedList(); this.internalbuildConstraintList(expr.condition(), declaredConstraint, constraint, false);
ConstraintBuilder constraintBuilder = new ConstraintBuilder(declaredConstraint); List constraint = constraintBuilder.visit(expr);
private List buildConstraintList(DepParameterExpr expr, Constraint declaredConstraint) throws SemanticException { List constraint = new LinkedList(); this.internalbuildConstraintList(expr.condition(), declaredConstraint, constraint, false); return constraint; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/994b2ebb6cb825ec929dd2300d4316ffac9dbcff/X10Caster.java/clean/x10.compiler/src/polyglot/ext/x10/visit/X10Caster.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 987, 1361, 5806, 682, 12, 16316, 1662, 4742, 3065, 16, 10770, 7886, 5806, 13, 1216, 24747, 503, 288, 1082, 202, 682, 4954, 273, 394, 10688, 5621, 1082, 202, 2211, 18, 7236, 35...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 987, 1361, 5806, 682, 12, 16316, 1662, 4742, 3065, 16, 10770, 7886, 5806, 13, 1216, 24747, 503, 288, 1082, 202, 682, 4954, 273, 394, 10688, 5621, 1082, 202, 2211, 18, 7236, 35...
interfaces = null;
userSpecifiedInterfaces = cfg.implementedInterfaces(cfg.className());
protected void emitAllFileHeaders() throws IOException { try { if (cfg.allStatic() || cfg.emitInterface()) { String[] interfaces; if (cfg.emitInterface()) { List userSpecifiedInterfaces = cfg.extendedInterfaces(cfg.className()); interfaces = new String[userSpecifiedInterfaces.size()]; userSpecifiedInterfaces.toArray(interfaces); } else { interfaces = null; } final List/*<String>*/ intfDocs = cfg.javadocForClass(cfg.className()); CodeGenUtils.EmissionCallback docEmitter = new CodeGenUtils.EmissionCallback() { public void emit(PrintWriter w) { for (Iterator iter = intfDocs.iterator(); iter.hasNext(); ) { w.println((String) iter.next()); } } }; CodeGenUtils.emitJavaHeaders( javaWriter, cfg.packageName(), cfg.className(), cfg.allStatic() ? true : false, (String[]) cfg.imports().toArray(new String[] {}), new String[] { "public" }, interfaces, null, docEmitter); } if (!cfg.allStatic() && cfg.emitImpl()) { final List/*<String>*/ implDocs = cfg.javadocForClass(cfg.className()); CodeGenUtils.EmissionCallback docEmitter = new CodeGenUtils.EmissionCallback() { public void emit(PrintWriter w) { for (Iterator iter = implDocs.iterator(); iter.hasNext(); ) { w.println((String) iter.next()); } } }; CodeGenUtils.emitJavaHeaders( javaImplWriter, cfg.implPackageName(), cfg.implClassName(), true, (String[]) cfg.imports().toArray(new String[] {}), new String[] { "public" }, new String[] { cfg.className() }, null, docEmitter); } if (cfg.emitImpl()) { PrintWriter cWriter = cWriter(); emitCHeader(cWriter, cfg.implClassName()); } } catch (Exception e) { throw new RuntimeException( "Error emitting all file headers: cfg.allStatic()=" + cfg.allStatic() + " cfg.emitImpl()=" + cfg.emitImpl() + " cfg.emitInterface()=" + cfg.emitInterface(), e); } }
46278 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46278/0a7c6d77aab5b922f3225ed8ed6076f8ee984ab6/JavaEmitter.java/clean/src/net/java/games/gluegen/JavaEmitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3626, 1595, 812, 3121, 1435, 1216, 1860, 288, 3639, 775, 288, 1850, 309, 261, 7066, 18, 454, 5788, 1435, 747, 2776, 18, 18356, 1358, 10756, 288, 3639, 514, 8526, 7349, 31, 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, 282, 4750, 918, 3626, 1595, 812, 3121, 1435, 1216, 1860, 288, 3639, 775, 288, 1850, 309, 261, 7066, 18, 454, 5788, 1435, 747, 2776, 18, 18356, 1358, 10756, 288, 3639, 514, 8526, 7349, 31, 3639...
public final void writeLock()
public void writeLock()
public final void writeLock() { lock.writeLock(); } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/070c43f8909fab9e7c16966541614cbaefa7c4c7/Buffer.java/buggy/org/gjt/sp/jedit/Buffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 16965, 1435, 202, 95, 202, 202, 739, 18, 2626, 2531, 5621, 202, 97, 368, 9090, 97, 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, 225, 202, 482, 727, 918, 16965, 1435, 202, 95, 202, 202, 739, 18, 2626, 2531, 5621, 202, 97, 368, 9090, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
case CommonarchivePackage.WAR_FILE__DEPLOYMENT_DESCRIPTOR :
case CommonarchivePackage.WAR_FILE__DEPLOYMENT_DESCRIPTOR:
public boolean eIsSet(EStructuralFeature eFeature) { switch (eDerivedStructuralFeatureID(eFeature)) { case CommonarchivePackage.WAR_FILE__URI : return URI_EDEFAULT == null ? uri != null : !URI_EDEFAULT.equals(uri); case CommonarchivePackage.WAR_FILE__LAST_MODIFIED : return isSetLastModified(); case CommonarchivePackage.WAR_FILE__SIZE : return isSetSize(); case CommonarchivePackage.WAR_FILE__DIRECTORY_ENTRY : return isSetDirectoryEntry(); case CommonarchivePackage.WAR_FILE__ORIGINAL_URI : return ORIGINAL_URI_EDEFAULT == null ? originalURI != null : !ORIGINAL_URI_EDEFAULT.equals(originalURI); case CommonarchivePackage.WAR_FILE__LOADING_CONTAINER : return loadingContainer != null; case CommonarchivePackage.WAR_FILE__CONTAINER : return getContainer() != null; case CommonarchivePackage.WAR_FILE__FILES : return files != null && !files.isEmpty(); case CommonarchivePackage.WAR_FILE__TYPES : return types != null && !types.isEmpty(); case CommonarchivePackage.WAR_FILE__DEPLOYMENT_DESCRIPTOR : return deploymentDescriptor != null; } return eDynamicIsSet(eFeature); }
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/ebce0dfcf980c405fd07c019b6f4466152262cb7/WARFileImpl.java/buggy/plugins/org.eclipse.jst.j2ee.core/commonArchive/org/eclipse/jst/j2ee/commonarchivecore/internal/impl/WARFileImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 20372, 12, 41, 14372, 4595, 425, 4595, 13, 288, 202, 202, 9610, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 288, 1082, 202, 3593, 5658, 10686, 2261, 18, 16777, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20372, 12, 41, 14372, 4595, 425, 4595, 13, 288, 202, 202, 9610, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 288, 1082, 202, 3593, 5658, 10686, 2261, 18, 16777, ...
compareTo(Object obj) { return(compareTo((CollationKey)obj)); }
public int compareTo (CollationKey ck) { int max = Math.min (key.length, ck.key.length); for (int i = 0; i < max; ++i) { if (key[i] != ck.key[i]) return key[i] - ck.key[i]; } return key.length - ck.key.length; }
compareTo(Object obj){ return(compareTo((CollationKey)obj));}
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/49e488b8530051383b90b1357fa767c87c9ff7f5/CollationKey.java/clean/core/src/classpath/java/java/text/CollationKey.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9292, 12, 921, 1081, 15329, 225, 327, 12, 9877, 774, 12443, 13535, 367, 653, 13, 2603, 10019, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 9292, 12, 921, 1081, 15329, 225, 327, 12, 9877, 774, 12443, 13535, 367, 653, 13, 2603, 10019, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if(log.isInfoEnabled()) log.info("sending stability msg " + printStabilityDigest(digest));
if(log.isDebugEnabled()) log.debug("sending stability msg " + printStabilityDigest(digest));
void handleStableGossip(Address sender, Digest d) { Address mbr; long highest_seqno, my_highest_seqno; long highest_seen_seqno, my_highest_seen_seqno; if(d == null || sender == null) { if(log.isErrorEnabled()) log.error("digest or sender is null"); return; } if(log.isInfoEnabled()) log.info("received digest " + printStabilityDigest(d) + " from " + sender); if(!heard_from.contains(sender)) { // already received gossip from sender; discard it if(log.isInfoEnabled()) log.info("already received gossip from " + sender); return; } for(int i=0; i < d.size(); i++) { mbr=d.senderAt(i); highest_seqno=d.highSeqnoAt(i); highest_seen_seqno=d.highSeqnoSeenAt(i); if(digest.getIndex(mbr) == -1) { if(log.isInfoEnabled()) log.info("sender " + mbr + " not found in stability vector"); continue; } // compute the minimum of the highest seqnos deliverable (for garbage collection) my_highest_seqno=digest.highSeqnoAt(mbr); if(my_highest_seqno < 0) { if(highest_seqno >= 0) digest.setHighSeqnoAt(mbr, highest_seqno); } else { digest.setHighSeqnoAt(mbr, Math.min(my_highest_seqno, highest_seqno)); } // compute the maximum of the highest seqnos seen (for retransmission of last missing message) my_highest_seen_seqno=digest.highSeqnoSeenAt(mbr); if(my_highest_seen_seqno < 0) { if(highest_seen_seqno >= 0) digest.setHighSeqnoSeenAt(mbr, highest_seen_seqno); } else { digest.setHighSeqnoSeenAt(mbr, Math.max(my_highest_seen_seqno, highest_seen_seqno)); } } heard_from.removeElement(sender); if(heard_from.size() == 0) { if(log.isInfoEnabled()) log.info("sending stability msg " + printStabilityDigest(digest)); sendStabilityMessage(digest.copy()); initialize(); } }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/STABLE.java/clean/src/org/jgroups/protocols/pbcast/STABLE.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1640, 30915, 43, 15616, 12, 1887, 5793, 16, 15864, 302, 13, 288, 3639, 5267, 312, 2848, 31, 3639, 1525, 9742, 67, 5436, 2135, 16, 3399, 67, 8766, 395, 67, 5436, 2135, 31, 3639, 152...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 30915, 43, 15616, 12, 1887, 5793, 16, 15864, 302, 13, 288, 3639, 5267, 312, 2848, 31, 3639, 1525, 9742, 67, 5436, 2135, 16, 3399, 67, 8766, 395, 67, 5436, 2135, 31, 3639, 152...
public org.w3c.dom.Document getW3CDocument(PipelineContext context) {
public org.w3c.dom.Document getW3CDocument(PipelineContext pipelineContext) {
public org.w3c.dom.Document getW3CDocument(PipelineContext context) { DOMWriter writer = new DOMWriter(XMLUtils.createDocument().getClass()); try { return writer.write(getNode(context)); } catch (DocumentException e) { throw new OXFException(e); } }
54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/ad6ae9e47d606903035a2bd13dd0dbbda56be7b9/DOMSerializer.java/clean/src/java/org/orbeon/oxf/processor/DOMSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2358, 18, 91, 23, 71, 18, 9859, 18, 2519, 13876, 23, 39, 2519, 12, 8798, 1042, 5873, 1042, 13, 288, 3639, 4703, 2289, 2633, 273, 394, 4703, 2289, 12, 4201, 1989, 18, 2640, 2519, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2358, 18, 91, 23, 71, 18, 9859, 18, 2519, 13876, 23, 39, 2519, 12, 8798, 1042, 5873, 1042, 13, 288, 3639, 4703, 2289, 2633, 273, 394, 4703, 2289, 12, 4201, 1989, 18, 2640, 2519, ...
hostConfiguration.setHost(uri); if( getProxyHost() != null ) { hostConfiguration.setProxy( getProxyHost(), getProxyPort() ); } client.setHostConfiguration(hostConfiguration);
private synchronized HttpClient getHttpClientFor( final URL url ) { final String key = url.getProtocol() + "://" + url.getHost().toLowerCase(); HttpClient client = ( HttpClient )httpClients_.get( key ); if( client == null ) { client = new HttpClient(); // Disable informational messages from httpclient final Log log = LogFactory.getLog("httpclient.wire"); if( log instanceof SimpleLog ) { ((SimpleLog)log).setLevel( SimpleLog.LOG_LEVEL_WARN ); } // Disable certificate caching within HttpClient client.setState( new HttpState() { public void setCredentials( final String realm, final Credentials credentials ) { } public Credentials getCredentials( final String realm ) { return null; } } ); if( getProxyHost() == null ) { client.startSession( url ); } else { final boolean isSecure = url.getProtocol().equals( "https" ); final String host = url.getHost(); final int port = url.getPort(); client.startSession( host, port, getProxyHost(), getProxyPort(), isSecure ); } // If two clients are part of the same domain then they should share the same // state (ie cookies) final HttpState sharedState = getStateForDomain( url.getHost() ); if( sharedState != null ) { client.setState(sharedState); } httpClients_.put( key, client ); } return client; }
3508 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3508/3af0ea1e2ad7f2503244cc3948695c262a320bc9/HttpWebConnection.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1479, 1750, 18, 542, 2594, 12, 1650, 1769, 309, 12, 18992, 2594, 1435, 480, 446, 262, 288, 1479, 1750, 18, 542, 3886, 12, 18992, 2594, 9334, 18992, 2617, 1435, 11272, 289, 1004, 18, 542, 2594,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1479, 1750, 18, 542, 2594, 12, 1650, 1769, 309, 12, 18992, 2594, 1435, 480, 446, 262, 288, 1479, 1750, 18, 542, 3886, 12, 18992, 2594, 9334, 18992, 2617, 1435, 11272, 289, 1004, 18, 542, 2594,...
for (int j = 0; j < columns.length; j++) { ColumnConstraint[] constraints; Set valueSet = valueSets[j]; if (valueSet == null) { constraints = null; } else { constraints = (ColumnConstraint[]) valueSet.
for (int j = 0; j < columns.length; j++) { ColumnConstraint[] constraints; Set valueSet = valueSets[j]; if (valueSet == null) { constraints = null; } else { constraints = (ColumnConstraint[]) valueSet.
void loadAggregation() { long t1 = System.currentTimeMillis(); AggregationManager aggmgr = AggregationManager.instance(); ColumnConstraint[][] constraintses = new ColumnConstraint[columns.length][]; for (int j = 0; j < columns.length; j++) { ColumnConstraint[] constraints; Set valueSet = valueSets[j]; if (valueSet == null) { constraints = null; } else { constraints = (ColumnConstraint[]) valueSet. toArray(new ColumnConstraint[valueSet.size()]); } constraintses[j] = constraints; } // todo: optimize key sets; drop a constraint if more than x% of // the members are requested; whether we should get just the cells // requested or expand to a n-cube // If the database cannot execute "count(distinct ...)", split the // distinct aggregations out. while (true) { // Scan for a measure based upon a distinct aggregation. RolapStar.Measure distinctMeasure = getFirstDistinctMeasure(measuresList); if (distinctMeasure == null) { break; } final String expr = distinctMeasure.expression.getGenericExpression(); final ArrayList distinctMeasuresList = new ArrayList(); for (int i = 0; i < measuresList.size();) { RolapStar.Measure measure = (RolapStar.Measure) measuresList.get(i); if (measure.aggregator.distinct && measure.expression.getGenericExpression().equals(expr)) { measuresList.remove(i); distinctMeasuresList.add(distinctMeasure); } else { i++; } } RolapStar.Measure[] measures = (RolapStar.Measure[]) distinctMeasuresList.toArray( new RolapStar.Measure[distinctMeasuresList.size()]); aggmgr.loadAggregation(measures, columns, constraintses, pinnedSegments); } final int measureCount = measuresList.size(); if (measureCount > 0) { RolapStar.Measure[] measures = (RolapStar.Measure[]) measuresList.toArray(new RolapStar.Measure[measureCount]); aggmgr.loadAggregation(measures, columns, constraintses, pinnedSegments); } long t2 = System.currentTimeMillis(); if (false) { System.out.println("Batch.loadAggregation " + (t2 - t1)); } }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/FastBatchingCellReader.java/buggy/src/main/mondrian/rolap/FastBatchingCellReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 6459, 1262, 12089, 1435, 288, 1082, 202, 5748, 268, 21, 273, 2332, 18, 2972, 28512, 5621, 1082, 202, 12089, 1318, 10421, 13552, 273, 21100, 1318, 18, 1336, 5621, 1082, 202, 1494, 5806...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 6459, 1262, 12089, 1435, 288, 1082, 202, 5748, 268, 21, 273, 2332, 18, 2972, 28512, 5621, 1082, 202, 12089, 1318, 10421, 13552, 273, 21100, 1318, 18, 1336, 5621, 1082, 202, 1494, 5806...
public void buildUI( Composite composite )
public void buildUI( Composite parent)
public void buildUI( Composite composite ) { }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e813e4939207f9a25da25a7791da1a881207e029/PropertyTabUIAdapter.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/extensions/PropertyTabUIAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1361, 5370, 12, 14728, 9635, 262, 202, 95, 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, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1361, 5370, 12, 14728, 9635, 262, 202, 95, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
if (te == null && !(te instanceof Infantry)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Can only thrash at infantry"); }
if (te == null && !(te instanceof Infantry)) { return new ToHitData( ToHitData.IMPOSSIBLE, "Can only thrash at infantry" ); }
public ToHitData toHit(Game game) { final Entity ae = game.getEntity(getEntityId()); Entity te = null; final Targetable target = game.getTarget(getTargetId(), getTargetType()); if (target.getTargetType() == Targetable.TYPE_ENTITY) { te = (Entity) target; } // arguments legal? if (ae == null || target == null) { throw new IllegalArgumentException("Attacker or target not valid"); } // Non-mechs can't thrash. if (!(ae instanceof Mech)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Only mechs can thrash at infantry"); } // Mech must be prone. if (!ae.isProne()) { return new ToHitData(ToHitData.IMPOSSIBLE, "Only prone mechs can thrash at infantry"); } // Can't thrash against non-infantry if (te == null && !(te instanceof Infantry)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Can only thrash at infantry"); } // Can't thrash against swarming infantry. else if (te != null && Entity.NONE != te.getSwarmTargetId()) { return new ToHitData(ToHitData.IMPOSSIBLE, "Can't thrash at swarming infantry"); } // Check range. if (target.getPosition() == null || ae.getPosition().distance(target.getPosition()) > 0) { return new ToHitData(ToHitData.IMPOSSIBLE, "Target not in same hex"); } // Check terrain. Hex hex = game.board.getHex(ae.getPosition()); if (hex.contains(Terrain.WOODS) || hex.contains(Terrain.ROUGH) || hex.contains(Terrain.RUBBLE) || hex.contains(Terrain.BUILDING)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Not a clear or pavement hex."); } // Can't target woods or a building with a thrash attack. if (target.getTargetType() == Targetable.TYPE_BUILDING || target.getTargetType() == Targetable.TYPE_BLDG_IGNITE || target.getTargetType() == Targetable.TYPE_HEX_CLEAR || target.getTargetType() == Targetable.TYPE_HEX_IGNITE) { return new ToHitData(ToHitData.IMPOSSIBLE, "Invalid attack"); } // The Mech can't have fired a weapon this round. for (int loop = 0; loop < ae.locations(); loop++) { if (ae.weaponFiredFrom(loop)) { return new ToHitData( ToHitData.IMPOSSIBLE, "Weapons fired from " + ae.getLocationName(loop) + " this turn"); } } // Mech must have at least one arm or leg. if (ae.isLocationDestroyed(Mech.LOC_RARM) && ae.isLocationDestroyed(Mech.LOC_LARM) && ae.isLocationDestroyed(Mech.LOC_RLEG) && ae.isLocationDestroyed(Mech.LOC_LLEG)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Mech has no arms or legs to thrash"); } // If the attack isn't impossible, it's automatically successful. return new ToHitData(ToHitData.AUTOMATIC_SUCCESS, "thrash attacks always hit"); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/9c0b4690fd5c365b3d2d2c585dff4ce1c2a762f1/ThrashAttackAction.java/buggy/megamek/src/megamek/common/actions/ThrashAttackAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2974, 13616, 751, 358, 13616, 12, 12496, 7920, 13, 288, 202, 202, 6385, 3887, 14221, 273, 7920, 18, 588, 1943, 12, 588, 18029, 10663, 202, 202, 1943, 6489, 273, 446, 31, 202, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2974, 13616, 751, 358, 13616, 12, 12496, 7920, 13, 288, 202, 202, 6385, 3887, 14221, 273, 7920, 18, 588, 1943, 12, 588, 18029, 10663, 202, 202, 1943, 6489, 273, 446, 31, 202, 202, ...
_t = __t344;
_t = __t69;
public final Expression expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST expr_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST castAST = null; org.exist.xquery.parser.XQueryAST t = null; org.exist.xquery.parser.XQueryAST someVarName = null; org.exist.xquery.parser.XQueryAST everyVarName = null; org.exist.xquery.parser.XQueryAST varName = null; org.exist.xquery.parser.XQueryAST posVar = null; org.exist.xquery.parser.XQueryAST letVarName = null; org.exist.xquery.parser.XQueryAST collURI = null; step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_cast: { AST __t326 = _t; castAST = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_cast); _t = _t.getFirstChild(); PathExpr expr= new PathExpr(context); int cardinality= Cardinality.EXACTLY_ONE; step=expr(_t,expr); _t = _retTree; t = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATOMIC_TYPE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QUESTION: { org.exist.xquery.parser.XQueryAST tmp3_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,QUESTION); _t = _t.getNextSibling(); cardinality= Cardinality.ZERO_OR_ONE; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } QName qn= QName.parse(context, t.getText()); int code= Type.getType(qn); CastExpression castExpr= new CastExpression(context, expr, code, cardinality); castExpr.setASTNode(castAST); path.add(castExpr); step = castExpr; _t = __t326; _t = _t.getNextSibling(); break; } case COMMA: { AST __t328 = _t; org.exist.xquery.parser.XQueryAST tmp4_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,COMMA); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; SequenceConstructor sc= new SequenceConstructor(context); sc.addPath(left); sc.addPath(right); path.addPath(sc); step = sc; _t = __t328; _t = _t.getNextSibling(); break; } case LITERAL_if: { AST __t329 = _t; org.exist.xquery.parser.XQueryAST tmp5_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_if); _t = _t.getFirstChild(); PathExpr testExpr= new PathExpr(context); PathExpr thenExpr= new PathExpr(context); PathExpr elseExpr= new PathExpr(context); step=expr(_t,testExpr); _t = _retTree; step=expr(_t,thenExpr); _t = _retTree; step=expr(_t,elseExpr); _t = _retTree; ConditionalExpression cond= new ConditionalExpression(context, testExpr, thenExpr, elseExpr); path.add(cond); step = cond; _t = __t329; _t = _t.getNextSibling(); break; } case LITERAL_some: { AST __t330 = _t; org.exist.xquery.parser.XQueryAST tmp6_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_some); _t = _t.getFirstChild(); List clauses= new ArrayList(); PathExpr satisfiesExpr = new PathExpr(context); { _loop335: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t332 = _t; someVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence = new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t334 = _t; org.exist.xquery.parser.XQueryAST tmp7_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t334; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= someVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t332; _t = _t.getNextSibling(); } else { break _loop335; } } while (true); } step=expr(_t,satisfiesExpr); _t = _retTree; Expression action = satisfiesExpr; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr = new QuantifiedExpression(context, QuantifiedExpression.SOME); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); satisfiesExpr= null; action= expr; } path.add(action); step = action; _t = __t330; _t = _t.getNextSibling(); break; } case LITERAL_every: { AST __t336 = _t; org.exist.xquery.parser.XQueryAST tmp8_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_every); _t = _t.getFirstChild(); List clauses= new ArrayList(); PathExpr satisfiesExpr = new PathExpr(context); { _loop341: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t338 = _t; everyVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence = new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t340 = _t; org.exist.xquery.parser.XQueryAST tmp9_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t340; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= everyVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t338; _t = _t.getNextSibling(); } else { break _loop341; } } while (true); } step=expr(_t,satisfiesExpr); _t = _retTree; Expression action = satisfiesExpr; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr = new QuantifiedExpression(context, QuantifiedExpression.EVERY); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); satisfiesExpr= null; action= expr; } path.add(action); step = action; _t = __t336; _t = _t.getNextSibling(); break; } case LITERAL_return: { AST __t342 = _t; org.exist.xquery.parser.XQueryAST tmp10_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(context); PathExpr whereExpr= null; List orderBy= null; { int _cnt357=0; _loop357: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t344 = _t; org.exist.xquery.parser.XQueryAST tmp11_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt350=0; _loop350: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t346 = _t; varName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t348 = _t; org.exist.xquery.parser.XQueryAST tmp12_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t348; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case POSITIONAL_VAR: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case POSITIONAL_VAR: { posVar = (org.exist.xquery.parser.XQueryAST)_t; match(_t,POSITIONAL_VAR); _t = _t.getNextSibling(); clause.posVar= posVar.getText(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t346; _t = _t.getNextSibling(); } else { if ( _cnt350>=1 ) { break _loop350; } else {throw new NoViableAltException(_t);} } _cnt350++; } while (true); } _t = __t344; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t351 = _t; org.exist.xquery.parser.XQueryAST tmp13_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt356=0; _loop356: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t353 = _t; letVarName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(context); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t355 = _t; org.exist.xquery.parser.XQueryAST tmp14_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); clause.sequenceType= new SequenceType(); sequenceType(_t,clause.sequenceType); _t = _retTree; _t = __t355; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t353; _t = _t.getNextSibling(); } else { if ( _cnt356>=1 ) { break _loop356; } else {throw new NoViableAltException(_t);} } _cnt356++; } while (true); } _t = __t351; _t = _t.getNextSibling(); break; } default: { if ( _cnt357>=1 ) { break _loop357; } else {throw new NoViableAltException(_t);} } } _cnt357++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { org.exist.xquery.parser.XQueryAST tmp15_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(context); step=expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case ORDER_BY: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ORDER_BY: { AST __t360 = _t; org.exist.xquery.parser.XQueryAST tmp16_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ORDER_BY); _t = _t.getFirstChild(); orderBy= new ArrayList(3); { int _cnt367=0; _loop367: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_0.member(_t.getType()))) { PathExpr orderSpecExpr= new PathExpr(context); step=expr(_t,orderSpecExpr); _t = _retTree; OrderSpec orderSpec= new OrderSpec(context, orderSpecExpr); int modifiers= 0; orderBy.add(orderSpec); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: case LITERAL_descending: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_ascending: { org.exist.xquery.parser.XQueryAST tmp17_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_ascending); _t = _t.getNextSibling(); break; } case LITERAL_descending: { org.exist.xquery.parser.XQueryAST tmp18_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_descending); _t = _t.getNextSibling(); modifiers= OrderSpec.DESCENDING_ORDER; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LITERAL_collation: case LCURLY: case COMMA: case LITERAL_empty: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_empty: { org.exist.xquery.parser.XQueryAST tmp19_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_empty); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_greatest: { org.exist.xquery.parser.XQueryAST tmp20_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_greatest); _t = _t.getNextSibling(); break; } case LITERAL_least: { org.exist.xquery.parser.XQueryAST tmp21_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_least); _t = _t.getNextSibling(); modifiers |= OrderSpec.EMPTY_LEAST; orderSpec.setModifiers(modifiers); break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LITERAL_collation: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_collation: { org.exist.xquery.parser.XQueryAST tmp22_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_collation); _t = _t.getNextSibling(); collURI = (org.exist.xquery.parser.XQueryAST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); orderSpec.setCollation(collURI.getText()); break; } case 3: case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } } else { if ( _cnt367>=1 ) { break _loop367; } else {throw new NoViableAltException(_t);} } _cnt367++; } while (true); } _t = __t360; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(context); else expr= new LetExpr(context); expr.setVariable(clause.varName); expr.setSequenceType(clause.sequenceType); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (clause.isForClause) ((ForExpr) expr).setPositionalVariable(clause.posVar); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } action= expr; } if (orderBy != null) { OrderSpec orderSpecs[]= new OrderSpec[orderBy.size()]; int k= 0; for (Iterator j= orderBy.iterator(); j.hasNext(); k++) { OrderSpec orderSpec= (OrderSpec) j.next(); orderSpecs[k]= orderSpec; } ((BindingExpression)action).setOrderSpecs(orderSpecs); } path.add(action); step = action; _t = __t342; _t = _t.getNextSibling(); break; } case LITERAL_instance: { AST __t368 = _t; org.exist.xquery.parser.XQueryAST tmp23_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_instance); _t = _t.getFirstChild(); PathExpr expr = new PathExpr(context); SequenceType type= new SequenceType(); step=expr(_t,expr); _t = _retTree; sequenceType(_t,type); _t = _retTree; step = new InstanceOfExpression(context, expr, type); path.add(step); _t = __t368; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t369 = _t; org.exist.xquery.parser.XQueryAST tmp24_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t369; _t = _t.getNextSibling(); OpOr or= new OpOr(context); or.addPath(left); or.addPath(right); path.addPath(or); step = or; break; } case LITERAL_and: { AST __t370 = _t; org.exist.xquery.parser.XQueryAST tmp25_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t370; _t = _t.getNextSibling(); OpAnd and= new OpAnd(context); and.addPath(left); and.addPath(right); path.addPath(and); step = and; break; } case UNION: { AST __t371 = _t; org.exist.xquery.parser.XQueryAST tmp26_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t371; _t = _t.getNextSibling(); Union union= new Union(context, left, right); path.add(union); step = union; break; } case LITERAL_intersect: { AST __t372 = _t; org.exist.xquery.parser.XQueryAST tmp27_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_intersect); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t372; _t = _t.getNextSibling(); Intersection intersect = new Intersection(context, left, right); path.add(intersect); step = intersect; break; } case LITERAL_except: { AST __t373 = _t; org.exist.xquery.parser.XQueryAST tmp28_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_except); _t = _t.getFirstChild(); PathExpr left = new PathExpr(context); PathExpr right = new PathExpr(context); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; _t = __t373; _t = _t.getNextSibling(); Except intersect = new Except(context, left, right); path.add(intersect); step = intersect; break; } case ABSOLUTE_SLASH: { AST __t374 = _t; org.exist.xquery.parser.XQueryAST tmp29_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { step=expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t374; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t376 = _t; org.exist.xquery.parser.XQueryAST tmp30_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(context); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { step=expr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } else step.setPrimaryAxis(Constants.DESCENDANT_SELF_AXIS); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t376; _t = _t.getNextSibling(); break; } case LITERAL_to: { AST __t378 = _t; org.exist.xquery.parser.XQueryAST tmp31_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LITERAL_to); _t = _t.getFirstChild(); PathExpr start= new PathExpr(context); PathExpr end= new PathExpr(context); List args= new ArrayList(2); args.add(start); args.add(end); step=expr(_t,start); _t = _retTree; step=expr(_t,end); _t = _retTree; RangeExpression range= new RangeExpression(context); range.setArguments(args); path.addPath(range); step = range; _t = __t378; _t = _t.getNextSibling(); break; } case EQ: case LT: case GT: case NEQ: case GTEQ: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: { step=valueComp(_t,path); _t = _retTree; break; } case BEFORE: case AFTER: case LITERAL_is: case LITERAL_isnot: { step=nodeComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case PARENTHESIZED: case FUNCTION: case VARIABLE_REF: case ELEMENT: case TEXT: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case STRING_LITERAL: case LCURLY: case XML_COMMENT: case XML_PI: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case COMP_DOC_CONSTRUCTOR: { step=primaryExpr(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case ATTRIBUTE_TEST: case NCNAME: case LITERAL_element: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case LITERAL_preceding: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case STAR: case PLUS: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2235, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2235, 3...
return intShl(s);
result = intShl(s); break;
public static byte simplify(OPT_AbstractRegisterPool regpool, OPT_Instruction s) { switch (s.getOpcode()) { //////////////////// // GUARD operations //////////////////// case GUARD_COMBINE_opcode: return guardCombine(s); //////////////////// // TRAP operations //////////////////// case TRAP_IF_opcode: return trapIf(s); case NULL_CHECK_opcode: return nullCheck(s); case INT_ZERO_CHECK_opcode: return intZeroCheck(s); case LONG_ZERO_CHECK_opcode: return longZeroCheck(s); case CHECKCAST_opcode: return checkcast(regpool, s); case CHECKCAST_UNRESOLVED_opcode: return checkcast(regpool, s); case CHECKCAST_NOTNULL_opcode: return checkcastNotNull(s); case INSTANCEOF_opcode: return instanceOf(regpool, s); case INSTANCEOF_NOTNULL_opcode: return instanceOfNotNull(s); case OBJARRAY_STORE_CHECK_opcode: return objarrayStoreCheck(s); case OBJARRAY_STORE_CHECK_NOTNULL_opcode: return objarrayStoreCheckNotNull(s); case MUST_IMPLEMENT_INTERFACE_opcode: return mustImplementInterface(s); //////////////////// // Conditional moves //////////////////// case INT_COND_MOVE_opcode: return intCondMove(s); case LONG_COND_MOVE_opcode: return longCondMove(s); case FLOAT_COND_MOVE_opcode: return floatCondMove(s); case DOUBLE_COND_MOVE_opcode: return doubleCondMove(s); case REF_COND_MOVE_opcode: return refCondMove(s); case GUARD_COND_MOVE_opcode: return guardCondMove(s); //////////////////// // INT ALU operations //////////////////// case BOOLEAN_NOT_opcode: return booleanNot(s); case BOOLEAN_CMP_INT_opcode: return booleanCmpInt(s); case BOOLEAN_CMP_ADDR_opcode: return booleanCmpAddr(s); case INT_ADD_opcode: return intAdd(s); case INT_AND_opcode: return intAnd(s); case INT_DIV_opcode: return intDiv(s); case INT_MUL_opcode: return intMul(regpool, s); case INT_NEG_opcode: return intNeg(s); case INT_NOT_opcode: return intNot(s); case INT_OR_opcode: return intOr(s); case INT_REM_opcode: return intRem(s); case INT_SHL_opcode: return intShl(s); case INT_SHR_opcode: return intShr(s); case INT_SUB_opcode: return intSub(s); case INT_USHR_opcode: return intUshr(s); case INT_XOR_opcode: return intXor(s); //////////////////// // WORD ALU operations //////////////////// case REF_ADD_opcode: return refAdd(s); case REF_AND_opcode: return refAnd(s); case REF_SHL_opcode: return refShl(s); case REF_SHR_opcode: return refShr(s); case REF_NOT_opcode: return refNot(s); case REF_OR_opcode: return refOr(s); case REF_SUB_opcode: return refSub(s); case REF_USHR_opcode: return regUshr(s); case REF_XOR_opcode: return refXor(s); //////////////////// // LONG ALU operations //////////////////// case LONG_ADD_opcode: return longAdd(s); case LONG_AND_opcode: return longAnd(s); case LONG_CMP_opcode: return longCmp(s); case LONG_DIV_opcode: return longDiv(s); case LONG_MUL_opcode: return longMul(s); case LONG_NEG_opcode: return longNeg(s); case LONG_NOT_opcode: return longNot(s); case LONG_OR_opcode: return longOr(s); case LONG_REM_opcode: return longRem(s); case LONG_SHL_opcode: return longShl(s); case LONG_SHR_opcode: return longShr(s); case LONG_SUB_opcode: return longSub(s); case LONG_USHR_opcode: return longUshr(s); case LONG_XOR_opcode: return longXor(s); //////////////////// // FLOAT ALU operations //////////////////// case FLOAT_ADD_opcode: return floatAdd(s); case FLOAT_CMPG_opcode: return floatCmpg(s); case FLOAT_CMPL_opcode: return floatCmpl(s); case FLOAT_DIV_opcode: return floatDiv(s); case FLOAT_MUL_opcode: return floatMul(s); case FLOAT_NEG_opcode: return floatNeg(s); case FLOAT_REM_opcode: return floatRem(s); case FLOAT_SUB_opcode: return floatSub(s); //////////////////// // DOUBLE ALU operations //////////////////// case DOUBLE_ADD_opcode: return doubleAdd(s); case DOUBLE_CMPG_opcode: return doubleCmpg(s); case DOUBLE_CMPL_opcode: return doubleCmpl(s); case DOUBLE_DIV_opcode: return doubleDiv(s); case DOUBLE_MUL_opcode: return doubleMul(s); case DOUBLE_NEG_opcode: return doubleNeg(s); case DOUBLE_REM_opcode: return doubleRem(s); case DOUBLE_SUB_opcode: return doubleSub(s); //////////////////// // CONVERSION operations //////////////////// case DOUBLE_2FLOAT_opcode: return double2Float(s); case DOUBLE_2INT_opcode: return double2Int(s); case DOUBLE_2LONG_opcode: return double2Long(s); case DOUBLE_AS_LONG_BITS_opcode: return doubleAsLongBits(s); case INT_2DOUBLE_opcode: return int2Double(s); case INT_2BYTE_opcode: return int2Byte(s); case INT_2USHORT_opcode: return int2UShort(s); case INT_2FLOAT_opcode: return int2Float(s); case INT_2LONG_opcode: return int2Long(s); case INT_2ADDRSigExt_opcode: return int2AddrSigExt(s); case INT_2ADDRZerExt_opcode: return int2AddrZerExt(s); //-#if RVM_FOR_64_ADDR case LONG_2ADDR_opcode: return long2Addr(s); //-#endif case INT_2SHORT_opcode: return int2Short(s); case INT_BITS_AS_FLOAT_opcode: return intBitsAsFloat(s); case ADDR_2INT_opcode: return addr2Int(s); case ADDR_2LONG_opcode: return addr2Long(s); case FLOAT_2DOUBLE_opcode: return float2Double(s); case FLOAT_2INT_opcode: return float2Int(s); case FLOAT_2LONG_opcode: return float2Long(s); case FLOAT_AS_INT_BITS_opcode: return floatAsIntBits(s); case LONG_2FLOAT_opcode: return long2Float(s); case LONG_2INT_opcode: return long2Int(s); case LONG_2DOUBLE_opcode: return long2Double(s); case LONG_BITS_AS_DOUBLE_opcode: return longBitsAsDouble(s); //////////////////// // Field operations //////////////////// case ARRAYLENGTH_opcode: return arrayLength(s); case BOUNDS_CHECK_opcode: return boundsCheck(s); case CALL_opcode: return call(s); case GETFIELD_opcode: return getField(s); case GET_OBJ_TIB_opcode: return getObjTib(s); case GET_CLASS_TIB_opcode: return getClassTib(s); case GET_TYPE_FROM_TIB_opcode: return getTypeFromTib(s); case GET_ARRAY_ELEMENT_TIB_FROM_TIB_opcode: return getArrayElementTibFromTib(s); case GET_SUPERCLASS_IDS_FROM_TIB_opcode: return getSuperclassIdsFromTib(s); case GET_DOES_IMPLEMENT_FROM_TIB_opcode: return getDoesImplementFromTib(s); case REF_LOAD_opcode: return refLoad(s); default: return UNCHANGED; } }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/582eb14323a5e74a2c99b6035e34aa59e229d896/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 1160, 16499, 12, 15620, 67, 7469, 3996, 2864, 960, 6011, 16, 16456, 67, 11983, 272, 13, 288, 565, 1620, 261, 87, 18, 588, 22808, 10756, 288, 1377, 368, 3517, 759, 1377, 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, 1071, 760, 1160, 16499, 12, 15620, 67, 7469, 3996, 2864, 960, 6011, 16, 16456, 67, 11983, 272, 13, 288, 565, 1620, 261, 87, 18, 588, 22808, 10756, 288, 1377, 368, 3517, 759, 1377, 368, ...
this.previousText = this.text; this.isActive = false;
try { this.validateSyntax(text); } catch (Exception e) { e.printStackTrace(); }
public void run() { while (stopValidation == false) { try { this.isActive = true; boolean ret = this.validateSyntax(); this.previousText = this.text; this.isActive = false; Thread.sleep(PerlEditorPlugin.getDefault().getPreferenceStore().getInt(PerlEditorPlugin.SYNTAX_VALIDATION_INTERVAL_PREFERENCE) * 1000); } catch (Exception e) { e.printStackTrace(); } } this.validationTerminated = true; }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/7e161faad643728a021836d7711fad4100fac392/PerlSyntaxValidationThread.java/buggy/org.epic.perleditor/src/org/epic/perleditor/editors/PerlSyntaxValidationThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 17523, 261, 5681, 4354, 422, 629, 13, 288, 1082, 202, 698, 288, 9506, 202, 2211, 18, 291, 3896, 273, 638, 31, 9506, 202, 6494, 325, 273, 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, 225, 202, 482, 918, 1086, 1435, 288, 202, 202, 17523, 261, 5681, 4354, 422, 629, 13, 288, 1082, 202, 698, 288, 9506, 202, 2211, 18, 291, 3896, 273, 638, 31, 9506, 202, 6494, 325, 273, 333, ...
status = logDown(Level.WARN, "Unexpected exception during SNMP poll of interface " + ipaddr.getHostAddress(), t);
status = logDown(Level.WARN, "Unexpected exception during SNMP poll of interface " + ipaddr.getHostAddress(), t);
public PollStatus poll(MonitoredService svc, Map parameters, org.opennms.netmgt.config.poller.Package pkg) { NetworkInterface iface = svc.getNetInterface(); PollStatus status = PollStatus.unavailable(); InetAddress ipaddr = (InetAddress) iface.getAddress(); // Retrieve this interface's SNMP peer object // SnmpAgentConfig agentConfig = (SnmpAgentConfig) iface.getAttribute(SNMP_AGENTCONFIG_KEY); if (agentConfig == null) throw new RuntimeException("SnmpAgentConfig object not available for interface " + ipaddr); // Get configuration parameters // int timeout = ParameterMap.getKeyedInteger(parameters, "timeout", agentConfig.getTimeout()); int retries = ParameterMap.getKeyedInteger(parameters, "retries", agentConfig.getRetries()); int port = ParameterMap.getKeyedInteger(parameters, "port", DEFAULT_PORT); // set timeout and retries on SNMP peer object // agentConfig.setTimeout(timeout); agentConfig.setRetries(retries); agentConfig.setPort(port); if (log().isDebugEnabled()) log().debug("poll: service= SNMP address= " + agentConfig); // Establish SNMP session with interface // try { if (log().isDebugEnabled()) { log().debug("PercMonitor.poll: SnmpAgentConfig address: " +agentConfig); } SnmpObjId snmpObjectId = new SnmpObjId(PHYSICAL_BASE_OID); // First walk the physical OID Tree and check the returned values Map<SnmpInstId, SnmpValue> results = SnmpUtils.getOidValues(agentConfig, "percPoller", snmpObjectId); if(results.size() == 0) { log().debug("SNMP poll failed: no results, addr=" + ipaddr.getHostAddress() + " oid=" + snmpObjectId); return status; } for (Map.Entry<SnmpInstId, SnmpValue> e : results.entrySet()) { log().debug("poll: SNMPwalk poll succeeded, addr=" + ipaddr.getHostAddress() + " oid=" + snmpObjectId + " instance=" + e.getKey() + " value=" + e.getValue()); // Test each value returned to make sure it doesn't equal 4 // 1=>'ready', // 3=>'online', // 4=>'failed', // 5=>'rebuild', // 6=>'hotspare', // 20=>'nondisk' if (meetsCriteria(e.getValue(), "!=", "4")) { status = PollStatus.available(); } else { status = logDown(Level.DEBUG, "SNMP physical poll failed, addr=" + ipaddr.getHostAddress() + " oid=" + snmpObjectId + " instance=" + e.getKey() + " value=" + e.getValue()); return status; } } // If we get here, that means all of the physical drives returned a value not equal to "4" // Now we need to check logical drives SnmpObjId snmpLogObjectId = new SnmpObjId(LOGICAL_BASE_OID); // Next walk the physical OID Tree and check the returned values Map<SnmpInstId, SnmpValue> lresults = SnmpUtils.getOidValues(agentConfig, "percPoller", snmpLogObjectId); if(lresults.size() == 0) { log().debug("SNMP poll failed: no logical results, addr=" + ipaddr.getHostAddress() + " oid=" + snmpLogObjectId); return status; } for (Map.Entry<SnmpInstId, SnmpValue> e : lresults.entrySet()) { log().debug("poll: SNMPwalk poll succeeded, addr=" + ipaddr.getHostAddress() + " oid=" + snmpLogObjectId + " instance=" + e.getKey() + " value=" + e.getValue()); // Test each value returned to make sure it equals 2 // 0=>'offline', // 1=>'degraded', // 2=>'optimal', // 3=>'initialize', // 4=>'checkconsistency' if (meetsCriteria(e.getValue(), "=", "2")) { status = PollStatus.available(); } else { status = logDown(Level.DEBUG, "SNMP physical poll failed, addr=" + ipaddr.getHostAddress() + " oid=" + snmpLogObjectId + " instance=" + e.getKey() + " value=" + e.getValue()); return status; } } } catch (NumberFormatException e) { status = logDown(Level.ERROR, "Number operator used on a non-number " + e.getMessage()); } catch (IllegalArgumentException e) { status = logDown(Level.ERROR, "Invalid Snmp Criteria: " + e.getMessage()); } catch (Throwable t) { status = logDown(Level.WARN, "Unexpected exception during SNMP poll of interface " + ipaddr.getHostAddress(), t); } return status; }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/575864cf3eaeda9b9d8f9e85053b0b701728866d/PercMonitor.java/clean/opennms-services/src/main/java/org/opennms/netmgt/poller/monitors/PercMonitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19160, 1482, 7672, 12, 11415, 20425, 1179, 7538, 16, 1635, 1472, 16, 2358, 18, 3190, 82, 959, 18, 2758, 81, 4521, 18, 1425, 18, 3915, 749, 18, 2261, 3475, 13, 288, 3639, 21109, 97...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19160, 1482, 7672, 12, 11415, 20425, 1179, 7538, 16, 1635, 1472, 16, 2358, 18, 3190, 82, 959, 18, 2758, 81, 4521, 18, 1425, 18, 3915, 749, 18, 2261, 3475, 13, 288, 3639, 21109, 97...
MylarTasklistPlugin.getDefault().getTaskListExternalizer().readTaskList(tasklist, taskListFile);
MylarTaskListPlugin.getTaskListManager().getTaskListWriter().readTaskList(tasklist, taskListFile);
public ITask getTaskFromDisk(ITask requestedTask) { File taskListFile = new File(MylarPlugin.getDefault().getMylarDataDirectory() + File.separator + MylarTasklistPlugin.DEFAULT_TASK_LIST_FILE); assertTrue(taskListFile.exists()); TaskList tasklist = new TaskList(); MylarTasklistPlugin.getDefault().getTaskListExternalizer().readTaskList(tasklist, taskListFile); return tasklist.getTaskForHandle(requestedTask.getHandleIdentifier(), false); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c66e1abc548299095f0992ffd278426ba0fc3203/PeriodicSaveTest.java/clean/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/PeriodicSaveTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 2174, 11478, 1265, 6247, 12, 1285, 835, 3764, 2174, 13, 288, 202, 202, 812, 1562, 682, 812, 273, 394, 1387, 12, 12062, 7901, 3773, 18, 588, 1868, 7675, 588, 12062, 7901, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 2174, 11478, 1265, 6247, 12, 1285, 835, 3764, 2174, 13, 288, 202, 202, 812, 1562, 682, 812, 273, 394, 1387, 12, 12062, 7901, 3773, 18, 588, 1868, 7675, 588, 12062, 7901, ...
designHandle.includeLibrary( LibA , "LibA" ); designHandle.includeLibrary( LibB , "LibB" ); TextItemHandle textDesignHandle = (TextItemHandle)designHandle.findElement( "text1" ); assertNotNull("Text should not be null", textDesignHandle); textDesignHandle.setProperty( StyleHandle.BACKGROUND_COLOR_PROP , null ); assertEquals( "#0000FF" , textDesignHandle.getStringProperty( "backgroundColor" )); StyleHandle styleDesignHandle = (StyleHandle)designHandle.findStyle( "style1" ); assertNotNull("Style should not be null", styleDesignHandle); styleDesignHandle.drop(); designHandle.saveAs( outputFileName );
designHandle.includeLibrary( LibA, "LibA" ); designHandle.includeLibrary( LibB, "LibB" );
public void testIncludeLibraryRule10( ) throws Exception { String fileName = "DesignIncludeLibraryTest.xml"; openDesign( fileName ); designHandle.includeLibrary( LibA , "LibA" ); designHandle.includeLibrary( LibB , "LibB" ); TextItemHandle textDesignHandle = (TextItemHandle)designHandle.findElement( "text1" ); assertNotNull("Text should not be null", textDesignHandle); //$NON-NLS-1$ textDesignHandle.setProperty( StyleHandle.BACKGROUND_COLOR_PROP , null ); assertEquals( "#0000FF" , textDesignHandle.getStringProperty( "backgroundColor" )); StyleHandle styleDesignHandle = (StyleHandle)designHandle.findStyle( "style1" ); assertNotNull("Style should not be null", styleDesignHandle); styleDesignHandle.drop(); designHandle.saveAs( outputFileName ); TextItemHandle text2DesignHandle = (TextItemHandle)designHandle.findElement( "text1" ); assertNotNull("Text should not be null", text2DesignHandle); assertEquals( null , textDesignHandle.getStringProperty( "backgroundColor" )); }
58644 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58644/bc2117a51472c9631803fa1f26c58ab34da73d07/IncludeLibraryRuleTest.java/clean/plugins/org.eclipse.birt.report.tests.model/src/org/eclipse/birt/report/tests/model/api/IncludeLibraryRuleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 8752, 9313, 2175, 2163, 12, 262, 1216, 1185, 202, 95, 202, 202, 780, 3968, 273, 315, 15478, 8752, 9313, 4709, 18, 2902, 14432, 202, 202, 3190, 15478, 12, 3968, 11272,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 8752, 9313, 2175, 2163, 12, 262, 1216, 1185, 202, 95, 202, 202, 780, 3968, 273, 315, 15478, 8752, 9313, 4709, 18, 2902, 14432, 202, 202, 3190, 15478, 12, 3968, 11272,...
{
{
public ButtonAreaLayout(boolean syncAllWidths, int padding) { this.syncAllWidths = syncAllWidths; this.padding = padding; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicOptionPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicOptionPaneUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12569, 5484, 3744, 12, 6494, 3792, 1595, 22407, 16, 509, 4992, 13, 202, 565, 288, 1377, 333, 18, 8389, 1595, 22407, 273, 3792, 1595, 22407, 31, 1377, 333, 18, 9598, 273, 4992, 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, 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, 12569, 5484, 3744, 12, 6494, 3792, 1595, 22407, 16, 509, 4992, 13, 202, 565, 288, 1377, 333, 18, 8389, 1595, 22407, 273, 3792, 1595, 22407, 31, 1377, 333, 18, 9598, 273, 4992, 31, ...
Type type = obj.getType(getCPG());
Type type = obj.getType(getCPG());
public void visitLDC(LDC obj) { Type type = obj.getType(getCPG()); pushValue(isString(type) ? staticStringTypeInstance : type); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/FindRefComparison.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindRefComparison.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 48, 5528, 12, 48, 5528, 1081, 13, 288, 1082, 202, 559, 618, 273, 1081, 18, 588, 559, 12, 588, 4258, 43, 10663, 1875, 202, 6206, 620, 12, 291, 780, 12, 723, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 48, 5528, 12, 48, 5528, 1081, 13, 288, 1082, 202, 559, 618, 273, 1081, 18, 588, 559, 12, 588, 4258, 43, 10663, 1875, 202, 6206, 620, 12, 291, 780, 12, 723, 13, ...
} else if (line > getBottomIndex()) {
} else if (line > getBottomIndex()) {
boolean showLocation(int x, int line) { int clientAreaWidth = getClientArea().width - leftMargin; int verticalIncrement = getVerticalIncrement(); int horizontalIncrement = clientAreaWidth / 4; boolean scrolled = false; if (x < leftMargin) { // always make 1/4 of a page visible x = Math.max(horizontalScrollOffset * -1, x - horizontalIncrement); scrolled = scrollHorizontalBar(x); } else if (x >= clientAreaWidth) { // always make 1/4 of a page visible x = Math.min(lineCache.getWidth() - horizontalScrollOffset, x + horizontalIncrement); scrolled = scrollHorizontalBar(x - clientAreaWidth); } if (line < topIndex) { scrolled = setVerticalScrollOffset(line * verticalIncrement, true); } else if (line > getBottomIndex()) { scrolled = setVerticalScrollOffset((line + 1) * verticalIncrement - getClientArea().height, true); } return scrolled;}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/7117cfb48f0c539f4f0ecc632631104a7c1fa380/StyledText2.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1250, 2405, 2735, 12, 474, 619, 16, 509, 980, 13, 288, 202, 474, 1004, 5484, 2384, 273, 7635, 5484, 7675, 2819, 300, 2002, 9524, 31, 202, 474, 9768, 10798, 273, 336, 15704, 10798, 5621, 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, 1250, 2405, 2735, 12, 474, 619, 16, 509, 980, 13, 288, 202, 474, 1004, 5484, 2384, 273, 7635, 5484, 7675, 2819, 300, 2002, 9524, 31, 202, 474, 9768, 10798, 273, 336, 15704, 10798, 5621, 202, ...
473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473,
473, 0, 473, 473, 473, 473, 0, 473, 473, 473,
private static final short[] yyTable2() { return new short[] { 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 0, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 85, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 476, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 79, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 87, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 0, 472, 476, 476, 476, 472, 472, 0, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 0, 0, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 0, 472, 472, 472, 472, 472, 0, 472, 476, 472, 476, 472, 476, 476, 476, 476, 476, 476, 476, 472, 476, 476, 472, 472, 472, 472, 472, 472, 473, 473, 473, 0, 473, 278, 278, 278, 473, 473, 0, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 0, 0, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 0, 473, 473, 473, 473, 473, 0, 473, 278, 473, 278, 473, 278, 278, 278, 278, 278, 278, 278, 473, 278, 492, 473, 473, 473, 473, 473, 473, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 77, 0, 0, 77, 0, 0, 75, 0, 0, 75, 0, 0, 0, 6, 0, 0, 0, 0, 350, 0, 77, 0, 0, 0, 0, 0, 75, 0, 350, 0, 0, 6, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 476, 0, 0, 0, 0, 0, 280, 0, 0, 350, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 0, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 0, 492, 0, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 494, 0, 251, 251, 251, 251, 251, 251, 251, 251, 494, 251, 251, 251, 251, 0, 0, 251, 251, 251, 0, 0, 0, 6, 6, 6, 0, 77, 476, 6, 6, 492, 6, 75, 0, 0, 0, 0, 492, 251, 0, 494, 251, 0, 251, 251, 251, 0, 251, 0, 251, 0, 251, 0, 0, 0, 0, 0, 494, 494, 251, 0, 0, 251, 251, 251, 251, 251, 251, 350, 350, 350, 0, 0, 350, 350, 350, 0, 350, 476, 0, 0, 0, 0, 0, 280, 476, 350, 350, 350, 0, 472, 280, 494, 0, 0, 0, 350, 350, 0, 350, 350, 350, 350, 350, 0, 0, 77, 8, 0, 476, 0, 0, 75, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 494, 0, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 492, 0, 350, 350, 350, 0, 0, 350, 8, 0, 492, 0, 0, 350, 0, 350, 0, 350, 0, 350, 350, 350, 350, 350, 350, 350, 8, 350, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 492, 0, 0, 492, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 8, 492, 0, 0, 0, 0, 0, 7, 0, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 494, 494, 0, 492, 494, 494, 494, 0, 494, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 494, 423, 0, 0, 423, 0, 0, 0, 494, 494, 0, 494, 494, 494, 494, 494, 0, 0, 423, 423, 0, 82, 0, 423, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 0, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 423, 0, 0, 8, 8, 8, 0, 0, 0, 8, 8, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 273, 0, 0, 0, 492, 492, 492, 0, 0, 492, 492, 492, 0, 492, 273, 273, 0, 89, 0, 273, 0, 0, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 492, 492, 492, 492, 492, 0, 0, 0, 0, 7, 7, 7, 273, 0, 273, 7, 7, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 273, 0, 492, 0, 0, 0, 0, 0, 492, 0, 492, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 0, 492, 492, 423, 423, 423, 0, 0, 423, 423, 423, 0, 423, 0, 0, 0, 0, 40, 0, 0, 0, 0, 423, 423, 0, 0, 0, 40, 0, 0, 0, 423, 423, 0, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 40, 40, 423, 423, 423, 0, 424, 423, 0, 0, 0, 0, 0, 423, 0, 423, 0, 423, 32, 423, 423, 423, 423, 423, 423, 423, 0, 423, 32, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 34, 273, 273, 273, 0, 0, 273, 273, 273, 0, 273, 0, 0, 0, 0, 0, 0, 0, 0, 32, 273, 273, 261, 0, 0, 0, 0, 40, 0, 273, 273, 34, 273, 273, 273, 273, 273, 32, 0, 0, 0, 0, 0, 279, 0, 0, 0, 0, 0, 34, 0, 0, 0, 279, 0, 0, 0, 0, 0, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 0, 0, 273, 273, 273, 0, 0, 273, 0, 0, 0, 279, 0, 273, 279, 273, 0, 273, 0, 273, 273, 273, 273, 273, 273, 273, 0, 273, 279, 279, 32, 88, 0, 279, 0, 0, 0, 0, 0, 0, 0, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 279, 0, 0, 0, 0, 0, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 40, 40, 0, 279, 40, 40, 40, 0, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 280, 0, 0, 280, 0, 0, 0, 0, 40, 40, 0, 40, 40, 40, 40, 40, 0, 280, 280, 0, 83, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 0, 280, 0, 0, 0, 32, 32, 32, 0, 0, 0, 32, 32, 0, 32, 0, 0, 34, 34, 34, 0, 0, 373, 34, 34, 0, 34, 0, 0, 0, 0, 0, 373, 280, 0, 0, 32, 32, 32, 32, 32, 0, 0, 0, 0, 0, 0, 0, 34, 34, 34, 34, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 0, 0, 373, 0, 0, 0, 279, 279, 279, 0, 0, 279, 279, 279, 0, 279, 373, 373, 0, 0, 0, 373, 0, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 0, 0, 373, 0, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 0, 0, 279, 279, 279, 373, 0, 279, 0, 0, 0, 0, 0, 279, 0, 279, 0, 279, 0, 279, 279, 279, 279, 279, 279, 279, 0, 279, 280, 280, 280, 0, 0, 280, 280, 280, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 280, 280, 280, 280, 280, 0, 0, 0, 0, 0, 0, 182, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 0, 0, 0, 0, 0, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 0, 0, 280, 280, 280, 0, 0, 280, 0, 0, 0, 182, 0, 280, 182, 280, 0, 280, 0, 280, 280, 280, 280, 280, 280, 280, 14, 280, 182, 182, 0, 0, 0, 182, 0, 0, 14, 0, 0, 0, 0, 0, 373, 373, 373, 0, 0, 373, 373, 373, 0, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 182, 0, 0, 0, 14, 0, 0, 373, 373, 0, 373, 373, 373, 373, 373, 0, 0, 0, 0, 0, 0, 216, 14, 0, 0, 0, 0, 0, 0, 0, 0, 216, 182, 0, 0, 0, 0, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 0, 0, 373, 373, 373, 0, 0, 373, 0, 0, 0, 216, 0, 373, 216, 373, 0, 373, 0, 373, 373, 373, 373, 373, 373, 373, 0, 373, 216, 216, 0, 0, 0, 216, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 322, 0, 216, 0, 0, 0, 0, 0, 0, 290, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 0, 0, 290, 0, 0, 0, 182, 182, 182, 0, 0, 182, 182, 182, 0, 182, 290, 290, 0, 0, 0, 290, 0, 0, 0, 182, 182, 0, 0, 0, 0, 0, 0, 0, 182, 182, 0, 182, 182, 182, 182, 182, 0, 0, 0, 0, 0, 0, 0, 290, 0, 290, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 14, 14, 0, 0, 0, 14, 14, 0, 14, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 290, 0, 182, 0, 0, 0, 0, 0, 182, 0, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 0, 0, 286, 0, 0, 0, 216, 216, 216, 0, 0, 216, 216, 216, 0, 216, 286, 286, 0, 0, 0, 286, 0, 0, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 216, 216, 216, 216, 216, 0, 0, 0, 0, 0, 0, 0, 286, 0, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 322, 216, 216, 0, 0, 216, 216, 322, 286, 0, 216, 0, 0, 0, 0, 0, 216, 0, 216, 0, 216, 0, 216, 216, 216, 216, 216, 216, 216, 0, 216, 290, 290, 290, 0, 0, 290, 290, 290, 0, 290, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 290, 290, 290, 290, 290, 0, 0, 0, 0, 0, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 0, 0, 0, 0, 0, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 0, 0, 290, 290, 290, 0, 0, 290, 0, 0, 0, 183, 0, 290, 183, 290, 0, 290, 0, 290, 290, 290, 290, 290, 290, 290, 0, 290, 183, 183, 0, 0, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 0, 0, 286, 286, 286, 0, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 183, 0, 0, 0, 0, 0, 0, 286, 286, 0, 286, 286, 286, 286, 286, 0, 0, 0, 0, 0, 0, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 183, 0, 0, 0, 0, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 0, 0, 286, 0, 0, 0, 410, 0, 286, 410, 286, 0, 286, 0, 286, 286, 286, 286, 286, 286, 286, 0, 286, 410, 410, 0, 0, 0, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 0, 410, 0, 0, 0, 0, 0, 0, 411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 411, 0, 0, 411, 0, 0, 0, 183, 183, 183, 0, 0, 183, 183, 183, 0, 183, 411, 411, 0, 0, 0, 411, 0, 0, 0, 183, 183, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 183, 183, 183, 183, 183, 0, 0, 0, 0, 0, 0, 0, 411, 0, 411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 318, 411, 0, 183, 0, 0, 0, 0, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 318, 0, 0, 318, 0, 0, 0, 410, 410, 410, 0, 0, 410, 410, 410, 0, 410, 318, 318, 0, 0, 0, 318, 0, 0, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 410, 410, 410, 410, 410, 0, 0, 0, 0, 0, 0, 0, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 0, 0, 410, 410, 410, 318, 0, 410, 0, 0, 0, 0, 0, 410, 0, 410, 0, 410, 0, 410, 410, 410, 410, 410, 410, 410, 0, 410, 411, 411, 411, 0, 0, 411, 411, 411, 0, 411, 0, 0, 0, 0, 319, 0, 0, 0, 0, 411, 411, 0, 0, 0, 319, 0, 0, 0, 411, 411, 0, 411, 411, 411, 411, 411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 319, 0, 0, 319, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 319, 319, 411, 411, 411, 319, 0, 411, 0, 0, 0, 0, 0, 411, 0, 411, 0, 411, 0, 411, 411, 411, 411, 411, 411, 411, 0, 411, 0, 0, 0, 0, 0, 319, 0, 0, 0, 0, 0, 0, 0, 0, 318, 318, 318, 0, 0, 318, 318, 318, 0, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 318, 0, 0, 0, 0, 0, 319, 0, 0, 318, 318, 0, 318, 318, 318, 318, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 0, 0, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 0, 0, 318, 318, 318, 0, 0, 318, 0, 0, 0, 0, 0, 0, 52, 318, 283, 318, 0, 318, 318, 318, 318, 318, 318, 318, 283, 318, 0, 0, 0, 52, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 0, 0, 283, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 283, 283, 0, 0, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 319, 0, 0, 319, 319, 319, 52, 319, 0, 0, 0, 0, 0, 0, 0, 283, 0, 319, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 0, 319, 319, 319, 319, 319, 0, 0, 0, 0, 0, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 283, 193, 0, 0, 0, 0, 0, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 0, 0, 319, 319, 319, 0, 0, 319, 0, 0, 0, 193, 0, 0, 193, 319, 0, 319, 0, 319, 319, 319, 319, 319, 319, 319, 0, 319, 193, 193, 0, 0, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 0, 0, 0, 0, 0, 0, 0, 189, 0, 52, 52, 52, 0, 0, 52, 52, 52, 189, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 52, 0, 193, 0, 0, 0, 0, 0, 52, 52, 0, 52, 52, 52, 52, 52, 0, 0, 0, 189, 0, 0, 189, 283, 283, 283, 0, 0, 283, 283, 283, 0, 283, 0, 0, 0, 189, 189, 0, 0, 0, 189, 283, 0, 0, 0, 0, 0, 0, 0, 0, 283, 283, 0, 283, 283, 283, 283, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 0, 0, 283, 283, 283, 0, 0, 283, 189, 0, 0, 0, 0, 0, 0, 283, 0, 283, 0, 283, 283, 283, 283, 283, 283, 283, 0, 283, 0, 0, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 263, 0, 172, 0, 193, 193, 193, 0, 0, 193, 193, 193, 172, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 0, 0, 0, 0, 0, 0, 263, 193, 193, 262, 193, 193, 193, 193, 193, 0, 0, 0, 172, 0, 0, 217, 0, 263, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 0, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 0, 193, 193, 0, 0, 193, 193, 0, 0, 0, 193, 0, 0, 0, 0, 0, 193, 0, 193, 0, 193, 0, 193, 193, 193, 193, 193, 193, 193, 0, 193, 0, 189, 189, 189, 0, 0, 189, 189, 189, 0, 189, 263, 0, 0, 0, 186, 0, 0, 0, 0, 189, 189, 0, 172, 0, 186, 0, 0, 0, 189, 189, 0, 189, 189, 189, 189, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 186, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 0, 189, 189, 186, 186, 189, 189, 0, 186, 0, 189, 0, 0, 0, 0, 0, 189, 0, 189, 0, 189, 0, 189, 189, 189, 189, 189, 189, 189, 0, 189, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 0, 0, 0, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 263, 263, 263, 0, 0, 263, 263, 263, 188, 263, 0, 188, 172, 172, 172, 0, 0, 0, 172, 172, 0, 172, 0, 0, 0, 188, 188, 0, 0, 0, 188, 263, 263, 263, 263, 263, 0, 0, 0, 0, 172, 172, 0, 172, 172, 172, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 263, 0, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 187, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 187, 0, 0, 187, 0, 0, 0, 186, 186, 186, 0, 0, 186, 186, 186, 0, 186, 187, 187, 0, 0, 0, 187, 0, 0, 0, 186, 186, 0, 0, 0, 0, 0, 0, 0, 186, 186, 0, 186, 186, 186, 186, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 0, 186, 186, 0, 0, 186, 186, 0, 187, 0, 186, 190, 0, 0, 0, 0, 186, 0, 186, 0, 186, 190, 186, 186, 186, 186, 186, 186, 186, 0, 186, 188, 188, 188, 0, 0, 188, 188, 188, 0, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 190, 0, 0, 190, 0, 0, 0, 188, 188, 0, 188, 188, 188, 188, 188, 0, 0, 190, 190, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 0, 188, 188, 0, 190, 188, 188, 0, 0, 0, 188, 0, 0, 0, 0, 0, 188, 0, 188, 0, 188, 0, 188, 188, 188, 188, 188, 188, 188, 0, 188, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 187, 187, 187, 0, 0, 187, 187, 187, 0, 187, 0, 0, 0, 0, 191, 0, 0, 0, 0, 187, 187, 0, 0, 0, 191, 0, 0, 0, 187, 187, 0, 187, 187, 187, 187, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 0, 0, 191, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 0, 187, 187, 191, 191, 187, 187, 0, 191, 0, 187, 0, 0, 0, 0, 0, 187, 0, 187, 0, 187, 0, 187, 187, 187, 187, 187, 187, 187, 0, 187, 0, 0, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 0, 0, 0, 190, 190, 190, 0, 0, 190, 190, 190, 0, 190, 0, 191, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 0, 0, 0, 0, 423, 190, 190, 74, 190, 190, 190, 190, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 0, 82, 0, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 0, 190, 190, 0, 0, 190, 190, 0, 423, 0, 190, 0, 0, 0, 0, 0, 190, 0, 190, 0, 190, 0, 190, 190, 190, 190, 190, 190, 190, 0, 190, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 81, 0, 0, 0, 191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 273, 0, 89, 0, 273, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 191, 191, 0, 0, 191, 191, 0, 273, 42, 191, 0, 0, 0, 0, 0, 191, 0, 191, 42, 191, 0, 191, 191, 191, 191, 191, 191, 191, 0, 191, 423, 423, 423, 0, 0, 0, 423, 423, 0, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 423, 423, 423, 423, 423, 42, 42, 0, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 0, 0, 423, 423, 423, 0, 424, 0, 279, 0, 0, 80, 0, 0, 0, 423, 0, 423, 0, 423, 423, 423, 423, 423, 423, 423, 279, 423, 88, 0, 279, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 0, 0, 0, 273, 273, 0, 273, 0, }; }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 225, 1059, 9036, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 5411, 374, 16, 225, 1059, 9036, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565...
public String paren_chunk() throws RecognitionException { String text; Token any=null; String c = null; text = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:525:17: ( ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:525:17: ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:525:17: ( options {greedy=false; } : '(' c= paren_chunk ')' | any= . )* loop45: do { int alt45=3; switch ( input.LA(1) ) { case EOL: alt45=3; break; case 22: alt45=3; break; case 20: alt45=1; break; case ID: case INT: 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 14: case 15: case 16: case 17: case 18: case 19: case 21: case 23: case 24: case 25: case 26: case 27: 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 54: alt45=2; break; } switch (alt45) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:526:25: '(' c= paren_chunk ')' { match(input,20,FOLLOW_20_in_paren_chunk1810); following.push(FOLLOW_paren_chunk_in_paren_chunk1814); c=paren_chunk(); following.pop(); match(input,22,FOLLOW_22_in_paren_chunk1816); System.err.println( "chunk [" + c + "]" ); if ( c == null ) { c = ""; } if ( text == null ) { text = "( " + c + " )"; } else { text = text + " ( " + c + " )"; } } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:538:19: any= . { any=(Token)input.LT(1); matchAny(input); System.err.println( "any [" + any.getText() + "]" ); if ( text == null ) { text = any.getText(); } else { text = text + " " + any.getText(); } } break; default : break loop45; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/138d9a6805db25e18a7f8c70bebca33cce7b95e5/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 22146, 67, 6551, 1435, 1216, 9539, 288, 6647, 514, 977, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 276, 273, 446, 31, 540, 202, 202, 955, 273, 446, 31, 540, 202, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 22146, 67, 6551, 1435, 1216, 9539, 288, 6647, 514, 977, 31, 3639, 3155, 1281, 33, 2011, 31, 3639, 514, 276, 273, 446, 31, 540, 202, 202, 955, 273, 446, 31, 540, 202, 3639, ...
PsiExpression rExpr = PsiUtil.deparenthesizeExpression(expression.getLOperand()); PsiExpression lExpr = PsiUtil.deparenthesizeExpression(expression.getROperand());
PsiExpression rExpr = deparenthesizeExpression(expression.getLOperand()); PsiExpression lExpr = deparenthesizeExpression(expression.getROperand());
public void visitBinaryExpression(PsiBinaryExpression expression) { PsiExpression rExpr = PsiUtil.deparenthesizeExpression(expression.getLOperand()); PsiExpression lExpr = PsiUtil.deparenthesizeExpression(expression.getROperand()); if (rExpr != null && lExpr != null) { final IElementType binaryToken = expression.getOperationSign().getTokenType(); processBinaryExpressionOperand(lExpr, rExpr, binaryToken); processBinaryExpressionOperand(rExpr, lExpr, binaryToken); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/ea1703cca909d7d0980a4e6e17e8aa9ed0afa895/RedundantCastUtil.java/clean/inspections/impl/com/intellij/codeInspection/redundantCast/RedundantCastUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 5905, 2300, 12, 52, 7722, 5905, 2300, 2652, 13, 288, 1377, 453, 7722, 2300, 436, 4742, 273, 453, 7722, 1304, 18, 323, 13012, 7915, 554, 2300, 12, 8692, 18, 588, 1502, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 5905, 2300, 12, 52, 7722, 5905, 2300, 2652, 13, 288, 1377, 453, 7722, 2300, 436, 4742, 273, 453, 7722, 1304, 18, 323, 13012, 7915, 554, 2300, 12, 8692, 18, 588, 1502, 4...
if (LogWriter.needsLogging) { sipStack.logMessage("handleEvent " + sipEvent + "currentTransaction = " + transaction + "this.sipListener = " + this.sipListener + "sipEvent.source = " + sipEvent.getSource()); sipStack.logStackTrace(); }
if (sipStack.isLoggingEnabled()) { sipStack.getLogWriter().logDebug( "handleEvent " + sipEvent + "currentTransaction = " + transaction + "this.sipListener = " + this.sipListener + "sipEvent.source = " + sipEvent.getSource()); if (sipEvent instanceof RequestEvent) { Dialog dialog = ((RequestEvent) sipEvent).getDialog(); sipStack.getLogWriter().logDebug("Dialog = " + dialog); } else if (sipEvent instanceof ResponseEvent) { Dialog dialog = ((ResponseEvent) sipEvent).getDialog(); sipStack.getLogWriter().logDebug("Dialog = " + dialog); } sipStack.getLogWriter().logStackTrace(); }
public void handleEvent(EventObject sipEvent, SIPTransaction transaction) { if (LogWriter.needsLogging) { sipStack.logMessage("handleEvent " + sipEvent + "currentTransaction = " + transaction + "this.sipListener = " + this.sipListener + "sipEvent.source = " + sipEvent.getSource()); sipStack.logStackTrace(); } EventWrapper eventWrapper = new EventWrapper(); eventWrapper.sipEvent = sipEvent; eventWrapper.transaction = transaction; if (transaction != null) transaction.setEventPending(); if (!sipStack.reEntrantListener) { // Run the event in the context of a single thread. this.eventScanner.addEvent(eventWrapper); } else { // just call the delivery method this.eventScanner.deliverEvent(eventWrapper); } }
7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/SipProviderImpl.java/clean/trunk/src/gov/nist/javax/sip/SipProviderImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1640, 1133, 12, 1133, 921, 10341, 1133, 16, 348, 2579, 3342, 2492, 13, 288, 3639, 309, 261, 1343, 2289, 18, 20600, 7735, 13, 288, 5411, 10341, 2624, 18, 1330, 1079, 2932, 4110,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1133, 12, 1133, 921, 10341, 1133, 16, 348, 2579, 3342, 2492, 13, 288, 3639, 309, 261, 1343, 2289, 18, 20600, 7735, 13, 288, 5411, 10341, 2624, 18, 1330, 1079, 2932, 4110,...
public void processPacket(Packet packet) { addSentPacketToTable(dateFormatter, packet);
public void processPacket(final Packet packet) { SwingUtilities.invokeLater(new Runnable() { public void run() { addSentPacketToTable(dateFormatter, packet); } });
private void createDebug() { // We'll arrange the UI into six tabs. The first tab contains all data, the second // client generated XML, the third server generated XML, the fourth allows to send // ad-hoc messages and the fifth contains connection information. tabbedPane = new JTabbedPane(); // Add the All Packets, Sent, Received and Interpreted panels addBasicPanels(); // Add the panel to send ad-hoc messages addAdhocPacketPanel(); // Add the connection information panel addInformationPanel(); // Create a thread that will listen for all incoming packets and write them to // the GUI. This is what we call "interpreted" packet data, since it's the packet // data as Smack sees it and not as it's coming in as raw XML. packetReaderListener = new PacketListener() { SimpleDateFormat dateFormatter = new SimpleDateFormat("hh:mm:ss aaa"); public void processPacket(Packet packet) { addReadPacketToTable(dateFormatter, packet); } }; // Create a thread that will listen for all outgoing packets and write them to // the GUI. packetWriterListener = new PacketListener() { SimpleDateFormat dateFormatter = new SimpleDateFormat("hh:mm:ss aaa"); public void processPacket(Packet packet) { addSentPacketToTable(dateFormatter, packet); } }; // Create a thread that will listen for any connection closed event connListener = new ConnectionListener() { public void connectionClosed() { statusField.setValue("Closed"); EnhancedDebuggerWindow.connectionClosed(EnhancedDebugger.this); } public void connectionClosedOnError(Exception e) { statusField.setValue("Closed due to an exception"); EnhancedDebuggerWindow.connectionClosedOnError(EnhancedDebugger.this, e); } }; }
966 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/966/a43b8a1cdb5f3b07a0a1df0570681125d1cc1725/EnhancedDebugger.java/clean/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 2829, 1435, 288, 3639, 368, 1660, 5614, 2454, 726, 326, 6484, 1368, 5050, 10920, 18, 1021, 1122, 3246, 1914, 777, 501, 16, 326, 2205, 3639, 368, 1004, 4374, 3167, 16, 326,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 752, 2829, 1435, 288, 3639, 368, 1660, 5614, 2454, 726, 326, 6484, 1368, 5050, 10920, 18, 1021, 1122, 3246, 1914, 777, 501, 16, 326, 2205, 3639, 368, 1004, 4374, 3167, 16, 326,...
String key = selTemplate.getPicturePath( );
String key = selTemplate.getPictureName( );
public void handleEvent( Event event ) { // change description/image selectedIndex = templateList.getSelectionIndex( ); description.setText( ( (Template) templates.get( selectedIndex ) ).getTemplateDescription( ) ); // we need to relayout if the new text has different number of lines previewPane.layout( ); Template selTemplate = (Template) templates.get( selectedIndex ); String key = selTemplate.getPicturePath( ); Object img = null; if ( key == null || "".equals( key.trim( ) ) ) //$NON-NLS-1$ { previewCanvas.setVisible( false ); previewThumbnail.setVisible( true ); Control[] children = previewThumbnail.getChildren( ); for ( int i = 0; i < children.length; i++ ) { children[i].dispose( ); } ReportGraphicsViewComposite thumbnail = new ReportGraphicsViewComposite( previewThumbnail, SWT.NULL, ( (Template) templates.get( selectedIndex ) ).getReportDesignHandle( ) ); previewThumbnail.layout( ); } else { key = convertFileName2Absolute(selTemplate.isPredefined(),key); img = imageMap.get( key ); if ( img == null ) { img = ReportPlugin.getImage( key ); imageMap.put( key, img ); } previewCanvas.setVisible( true ); previewThumbnail.setVisible( false ); previewCanvas.clear( ); previewCanvas.loadImage( ( (Image) img ) ); previewCanvas.showOriginal( ); } chkBox.setEnabled( !( ( (Template) templates.get( selectedIndex ) ).getCheatSheetId( ) .equals( "" ) || ( (Template) templates.get( selectedIndex ) ).getCheatSheetId( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) ) ); //$NON-NLS-1$ }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/38871cc6d6150f7be0054964b778c1692031fc19/WizardTemplateChoicePage.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardTemplateChoicePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1640, 1133, 12, 2587, 871, 262, 202, 202, 95, 1082, 202, 759, 2549, 2477, 19, 2730, 1082, 202, 8109, 1016, 273, 1542, 682, 18, 588, 6233, 1016, 12, 11272, 1082, 202, 338...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1640, 1133, 12, 2587, 871, 262, 202, 202, 95, 1082, 202, 759, 2549, 2477, 19, 2730, 1082, 202, 8109, 1016, 273, 1542, 682, 18, 588, 6233, 1016, 12, 11272, 1082, 202, 338...
if (_translet == null) { ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_TRANSLET_ERR);
if (!_isIdentity) { if (_translet == null) { ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_TRANSLET_ERR); throw new TransformerException(err.toString()); } transferOutputProperties(_translet); } final TransletOutputHandler toHandler = getOutputHandler(result); if (toHandler == null) { ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_HANDLER_ERR);
public void transform(Source source, Result result) throws TransformerException { if (_translet == null) { ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_TRANSLET_ERR); throw new TransformerException(err.toString()); } // Pass output properties to the translet setOutputProperties(_translet, _properties); if (!_oldOutputSystem) { final TransletOutputHandler toHandler = getOutputHandler(result); if (toHandler == null) { ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_HANDLER_ERR); throw new TransformerException(err.toString()); } if (_uriResolver != null) { _translet.setDOMCache(this); } transform(source, toHandler, _encoding); if (result instanceof DOMResult) { ((DOMResult)result).setNode(_tohFactory.getNode()); } } else { _handler = getOldOutputHandler(result); if (_handler == null) { ErrorMsg err = new ErrorMsg(ErrorMsg.JAXP_NO_HANDLER_ERR); throw new TransformerException(err.toString()); } if (_uriResolver != null) { _translet.setDOMCache(this); } // Run the transformation transform(source, (ContentHandler)_handler, _encoding); // If a DOMResult, then we must set the DOM Tree so it can // be retrieved later if (result instanceof DOMResult) { ((DOMResult)result).setNode(((SAX2DOM)_handler).getDOM()); } } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/2bfb51c430ebe38d3d6f8580540b8d496da801d3/TransformerImpl.java/buggy/src/org/apache/xalan/xsltc/trax/TransformerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2510, 12, 1830, 1084, 16, 3438, 563, 13, 202, 15069, 21684, 377, 288, 202, 430, 261, 67, 2338, 1810, 422, 446, 13, 288, 202, 565, 1068, 3332, 393, 273, 394, 1068, 3332, 12, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2510, 12, 1830, 1084, 16, 3438, 563, 13, 202, 15069, 21684, 377, 288, 202, 430, 261, 67, 2338, 1810, 422, 446, 13, 288, 202, 565, 1068, 3332, 393, 273, 394, 1068, 3332, 12, ...
ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j]; }
ITypeHierarchy typeHierarchy = type.newSupertypeHierarchy(null); IType[] types = typeHierarchy.getAllSuperclasses(type); for (int i = 0; i < types.length; i++) { methods = types[i].getMethods(); for (int j = 0; j < methods.length; j++) { if (fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j];
IMethod fuzzyFindMethodInTypeHierarchy(IType type) throws JavaModelException { IMethod[] methods= type.getMethods(); for(int i= 0; i < methods.length; i++) { if(fMethodName.equals(methods[i].getElementName()) && methods[i].exists()) { return methods[i]; } } ITypeHierarchy typeHierarchy= type.newSupertypeHierarchy(null); IType[] types= typeHierarchy.getAllSuperclasses(type); for (int i= 0; i < types.length; i++) { methods= types[i].getMethods(); for(int j= 0; j < methods.length; j++) { if(fMethodName.equals(methods[j].getElementName()) && methods[j].exists()) { return methods[j]; } } } return null; }
52545 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52545/939c2626f5ef7c6550d3a506ac6dd14b7667f498/OpenTestAction.java/clean/src/main/org/testng/eclipse/ui/OpenTestAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 467, 1305, 21315, 3125, 1305, 382, 559, 12074, 12, 45, 559, 618, 13, 1216, 5110, 1488, 503, 288, 565, 467, 1305, 8526, 2590, 33, 618, 18, 588, 4712, 5621, 565, 364, 12, 474, 277, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 467, 1305, 21315, 3125, 1305, 382, 559, 12074, 12, 45, 559, 618, 13, 1216, 5110, 1488, 503, 288, 565, 467, 1305, 8526, 2590, 33, 618, 18, 588, 4712, 5621, 565, 364, 12, 474, 277, 33, ...
if (myDistributor == null) { if (logger != null && logger.isInfoEnabled()) logger.info( "ABA Cache clearer dropping received changes cause"+ " Distributor is null -- assuming Blackboard is stopping"); thread = null; return; } myDistributor.invokeABAChangeLPs(changes); changes.clear(); } }
if (myDistributor == null) { if (logger != null && logger.isInfoEnabled()) logger.info( "ABA Cache clearer dropping received changes cause"+ " Distributor is null -- assuming Blackboard is stopping"); thread = null; return; } myDistributor.invokeABAChangeLPs(changes); changes.clear(); reschedule(); }
public void run() { Set changes = new HashSet(); while (true) { synchronized (this) { if (changedCommunities.size() == 0) { // See if some change notifications appear try { wait(waitForSomeCommChanges); } catch (InterruptedException ie) { } } if (changedCommunities.size() == 0) { // Still no change notifications. Done with this thread thread = null; return; } // OK. Had some change notifications. // Wait a little to get any others try { Thread.sleep(waitForNewCommChangeNotifications); } catch (InterruptedException ie) { } changes.addAll(changedCommunities); changedCommunities.clear(); } // end of synch block if (myDistributor == null) { // Blackboard was stopped? if (logger != null && logger.isInfoEnabled()) logger.info( "ABA Cache clearer dropping received changes cause"+ " Distributor is null -- assuming Blackboard is stopping"); thread = null; return; } // Process the community changes myDistributor.invokeABAChangeLPs(changes); changes.clear(); } // end of while loop } // end of run method
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/353c145c23c83d0da14e92c270774591afcdb11c/Blackboard.java/clean/core/src/org/cougaar/core/blackboard/Blackboard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 1000, 3478, 273, 394, 6847, 5621, 1377, 1323, 261, 3767, 13, 288, 3639, 3852, 261, 2211, 13, 288, 1850, 309, 261, 6703, 12136, 318, 1961, 18, 1467, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 1377, 1000, 3478, 273, 394, 6847, 5621, 1377, 1323, 261, 3767, 13, 288, 3639, 3852, 261, 2211, 13, 288, 1850, 309, 261, 6703, 12136, 318, 1961, 18, 1467, 1435,...
case 157: case 158:
case 159: case 160:
public final void functionCall() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST functionCall_AST = null; org.exist.xquery.parser.XQueryAST q_AST = null; Token l = null; org.exist.xquery.parser.XQueryAST l_AST = null; org.exist.xquery.parser.XQueryAST params_AST = null; String fnName= null; fnName=qName(); q_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); l = LT(1); l_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(l); match(LPAREN); if ( inputState.guessing==0 ) { functionCall_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; functionCall_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(FUNCTION,fnName); currentAST.root = functionCall_AST; currentAST.child = functionCall_AST!=null &&functionCall_AST.getFirstChild()!=null ? functionCall_AST.getFirstChild() : functionCall_AST; currentAST.advanceChildToEnd(); } { switch ( LA(1)) { case LPAREN: case NCNAME: case LITERAL_xquery: case LITERAL_version: case LITERAL_module: case LITERAL_namespace: case STRING_LITERAL: case LITERAL_import: case LITERAL_declare: case LITERAL_default: case LITERAL_xmlspace: case LITERAL_ordering: case LITERAL_construction: case LITERAL_function: case LITERAL_variable: case LITERAL_encoding: case LITERAL_collation: case LITERAL_element: case LITERAL_preserve: case LITERAL_strip: case LITERAL_ordered: case LITERAL_unordered: case DOLLAR: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case STAR: case PLUS: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_order: case LITERAL_by: case LITERAL_typeswitch: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_of: case LITERAL_cast: case LT: case LITERAL_is: case LITERAL_isnot: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 139: case 140: case LITERAL_document: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 152: case 153: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 157: case 158: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_collection: case LITERAL_preceding: { functionParameters(); params_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); if ( inputState.guessing==0 ) { functionCall_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; functionCall_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(FUNCTION,fnName)).add(params_AST)); currentAST.root = functionCall_AST; currentAST.child = functionCall_AST!=null &&functionCall_AST.getFirstChild()!=null ? functionCall_AST.getFirstChild() : functionCall_AST; currentAST.advanceChildToEnd(); } break; } case RPAREN: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } if ( inputState.guessing==0 ) { functionCall_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; functionCall_AST.copyLexInfo(q_AST); } match(RPAREN); functionCall_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = functionCall_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 445, 1477, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 445, 1477, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 56...
Metadata metadata = new Metadata(splitfileAlgorithm, dataURIs, checkURIs, clientMetadata, dataLength, compressionCodec);
Metadata metadata = new Metadata(splitfileAlgorithm, dataURIs, checkURIs, segmentSize, checkSegmentSize, clientMetadata, dataLength, compressionCodec);
private FreenetURI waitForCompletion() throws InserterException { tracker.setFinishOnEmpty(); synchronized(this) { while(!finishedInserting) { try { wait(10*1000); } catch (InterruptedException e) { // Ignore } } } // Create the manifest (even if we failed, so that the key is visible) FreenetURI[] dataURIs = getDataURIs(); FreenetURI[] checkURIs = getCheckURIs(); boolean missingURIs = anyNulls(dataURIs) || anyNulls(checkURIs); if(missingURIs && fatalErrors == 0 && failed == 0) throw new IllegalStateException(); FreenetURI uri = null; if(!missingURIs) { Metadata metadata = new Metadata(splitfileAlgorithm, dataURIs, checkURIs, clientMetadata, dataLength, compressionCodec); Bucket mbucket; try { mbucket = BucketTools.makeImmutableBucket(ctx.bf, metadata.writeToByteArray()); } catch (IOException e) { throw new InserterException(InserterException.BUCKET_ERROR); } if(inserter == null) inserter = new FileInserter(ctx); InsertBlock mblock = new InsertBlock(mbucket, clientMetadata, FreenetURI.EMPTY_CHK_URI); // FIXME probably should uncomment below so it doesn't get inserted at all? // FIXME this is a hack for small network support... but we will need that IRL... hmmm uri = inserter.run(mblock, true, getCHKOnly/* || (fatalErrors > 0 || failed > 0)*/); } // Did we succeed? if(fatalErrors > 0) { throw new InserterException(InserterException.FATAL_ERRORS_IN_BLOCKS, tracker.getAccumulatedFatalErrorCodes()); } if(failed > 0) { throw new InserterException(InserterException.TOO_MANY_RETRIES_IN_BLOCKS, tracker.getAccumulatedNonFatalErrorCodes()); } return uri; }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/923f3296489fa89e5c0d76399b6de451cd594133/SplitInserter.java/clean/src/freenet/client/SplitInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 478, 2842, 278, 3098, 10712, 11238, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 16543, 18, 542, 11641, 1398, 1921, 5621, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 17523...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 478, 2842, 278, 3098, 10712, 11238, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 16543, 18, 542, 11641, 1398, 1921, 5621, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 17523...
if (!client.doYesNoDialog(title, body)) {
ConfirmDialog response = client.doYesNoBotherDialog(title, body); if ( !response.getShowAgain() ) { Settings.nagForNoAction = false; Settings.save(); } if ( !response.getAnswer() ) {
private void ready() { if (attacks.isEmpty() && Settings.nagForNoAction) { // comfirm this action String title = "Don't fire?"; String body = "This unit has not fired any weapons.\n\n" + "Are you really done?\n"; if (!client.doYesNoDialog(title, body)) { return; } } // stop further input (hopefully) disableButtons(); // remove temporary attacks from game & board removeTempAttacks(); // send out attacks client.sendAttackData(cen, attacks); // clear queue attacks.removeAllElements(); // Clear the menu bar. client.getMenuBar().setEntity( null ); // close aimed shot display, if any ash.closeDialog(); ash.lockLocation(false); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/61e853d016fe68e681583058c747ce6d1834e848/FiringDisplay.java/clean/megamek/src/megamek/client/ui/AWT/FiringDisplay.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5695, 1435, 288, 3639, 309, 261, 4558, 22098, 18, 291, 1921, 1435, 597, 8709, 18, 27132, 1290, 2279, 1803, 13, 288, 5411, 368, 532, 74, 3985, 333, 1301, 5411, 514, 2077, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5695, 1435, 288, 3639, 309, 261, 4558, 22098, 18, 291, 1921, 1435, 597, 8709, 18, 27132, 1290, 2279, 1803, 13, 288, 5411, 368, 532, 74, 3985, 333, 1301, 5411, 514, 2077, 273, ...
public BugzillaQueryPageParser(IProgressMonitor monitor) throws LoginException { this.monitor = monitor; // get the servers url urlString = BugzillaPlugin.getDefault().getServerName() + "/query.cgi"; // if we are dealing with 2.18 we need to use the folowing in the // query string to get the right search page if(BugzillaPlugin.getDefault().isServerCompatability218()){ urlString += "?format=advanced"; } // use the user name and password if we have it if(BugzillaPreferencePage.getUserName() != null && !BugzillaPreferencePage.getUserName().equals("") && BugzillaPreferencePage.getPassword() != null && !BugzillaPreferencePage.getPassword().equals("")) { try { // if we are dealing with 2.18 we already have the ? from before so we need // an & instead. If other version, still add ? if(BugzillaPlugin.getDefault().isServerCompatability218()) urlString+="&"; else urlString+="?"; urlString += "GoAheadAndLogIn=1&Bugzilla_login=" + URLEncoder.encode(BugzillaPreferencePage.getUserName(), "UTF-8") + "&Bugzilla_password=" + URLEncoder.encode(BugzillaPreferencePage.getPassword(), "UTF-8"); } catch (UnsupportedEncodingException e) { /* * Do nothing. Every implementation of the Java platform is required * to support the standard charset "UTF-8" */ } } successful = false; // try to get the new options from the page parseDocument(); if (!successful) { if (exception instanceof MalformedURLException) { MessageDialog.openError(null, "Unsupported Protocol", "The server that was specified for Bugzilla is not supported by your JVM.\nPlease make sure that you are using a JDK that supports SSL."); } else { // if there was a problem with the operation, display an error message ErrorDialog.openError( null, "Incomplete operation", "Bugzilla could not complete the the update.", new Status( IStatus.ERROR, IBugzillaConstants.PLUGIN_ID, IStatus.OK, exception.getMessage(), exception)); } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/832f772c9bfbe1db8eeb7662bd96232584598cee/BugzillaQueryPageParser.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/bugzilla/core/search/BugzillaQueryPageParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 15990, 1138, 1964, 2678, 12, 45, 5491, 7187, 6438, 13, 225, 1216, 11744, 503, 202, 95, 202, 202, 2211, 18, 10259, 273, 6438, 31, 10402, 202, 202, 759, 336, 326, 7084, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 16907, 15990, 1138, 1964, 2678, 12, 45, 5491, 7187, 6438, 13, 225, 1216, 11744, 503, 202, 95, 202, 202, 2211, 18, 10259, 273, 6438, 31, 10402, 202, 202, 759, 336, 326, 7084, 8...
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID();
public quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { quickfix.field.TradingSessionID value = new quickfix.field.TradingSessionID();
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteCancel.java/clean/src/java/src/quickfix/fix43/QuoteCancel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, 336, 1609, 7459, 2157, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1609, 7459, 2157, 734, 336, 1609, 7459, 2157, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 1609, 7459, 2157, 734, ...