rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
public void secondPhaseComplete(long time, boolean foundNodes) { | public void secondPhaseComplete(KUID nodeId, boolean foundNodes, long time) { | public static void testSpoof(int port) throws IOException{ //original DHT System.out.println("here"); SocketAddress sac2 = new InetSocketAddress(port+1); KUID nodeID = KUID.createRandomNodeID(sac2); final DHT dht2 = new DHT(); dht2.bind(sac2,nodeID); Thread t2 = new Thread(dht2, "DHT-1"); t2.start(); dht2.bootstrap(new InetSocketAddress("localhost",port), null); System.out.println("2"); //spoofer final DHT dht3 = new DHT(); dht3.bind(new InetSocketAddress(port+2),nodeID); Thread t3 = new Thread(dht3, "DHT-2"); t3.start(); dht3.bootstrap(new InetSocketAddress("localhost",port), new BootstrapListener() { public void initialPhaseComplete(KUID nodeId, Collection nodes, long time) { } public void secondPhaseComplete(long time, boolean foundNodes) { System.out.println(); System.out.println("1) Sent count: " + dht2.getSentMessagesCount()); System.out.println("1) Recv count: " + dht2.getReceivedMessagesCount()); System.out.println("1) Sent size: " + dht2.getSentMessagesSize()); System.out.println("1) Recv size: " + dht2.getReceivedMessagesSize()); System.out.println(); System.out.println("2) Sent count: " + dht3.getSentMessagesCount()); System.out.println("2) Recv count: " + dht3.getReceivedMessagesCount()); System.out.println("2) Sent size: " + dht3.getSentMessagesSize()); System.out.println("2) Recv size: " + dht3.getReceivedMessagesSize()); } }); System.out.println("3"); } | 5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/275b818812b9ed31b0f3add9b1b78c7042e4df48/NodeIDSpoofTest.java/clean/components/mojito/com/limegroup/gnutella/dht/tests/NodeIDSpoofTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1842,
55,
1631,
792,
12,
474,
1756,
13,
1216,
1860,
95,
3639,
368,
8830,
463,
5062,
3639,
2332,
18,
659,
18,
8222,
2932,
14852,
8863,
3639,
8758,
1887,
20071,
22,
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,
760,
918,
1842,
55,
1631,
792,
12,
474,
1756,
13,
1216,
1860,
95,
3639,
368,
8830,
463,
5062,
3639,
2332,
18,
659,
18,
8222,
2932,
14852,
8863,
3639,
8758,
1887,
20071,
22,
273,
3... |
fListeners.nodeExpanded(event); | fListeners.treeExpanded(event); | public void setCollapsed(TreePath aPath, boolean aCollapsed) { TreeTableModelEvent event = new TreeTableModelEvent(this, aPath); if (aCollapsed) { if (fCollapsed.put(aPath, "x") == null) { if (fListeners != null) { fListeners.nodeCollapsed(event); } } } else { if (fCollapsed.remove(aPath) != null) { if (fListeners != null) { fListeners.nodeExpanded(event); } } } } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/8c0a3f0dc0fd80182185cba30e58932b2539c17a/MessageModel.java/clean/grendel/sources/grendel/ui/MessageModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
28084,
12,
2471,
743,
279,
743,
16,
1250,
279,
28084,
13,
288,
565,
4902,
1388,
1488,
1133,
871,
273,
1377,
394,
4902,
1388,
1488,
1133,
12,
2211,
16,
279,
743,
1769,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
28084,
12,
2471,
743,
279,
743,
16,
1250,
279,
28084,
13,
288,
565,
4902,
1388,
1488,
1133,
871,
273,
1377,
394,
4902,
1388,
1488,
1133,
12,
2211,
16,
279,
743,
1769,
56... |
save |= bumpEntry(entries, entry, childURL, myTargetRevision, true); | save |= bumpEntry(entries, entry, childURL, rootURL, myTargetRevision, true); | private void bumpDirectory(SVNDirectory dir, String url) throws SVNException { SVNEntries entries = dir.getEntries(); boolean save = bumpEntry(entries, entries.getEntry("", true), url, myTargetRevision, false); Map childDirectories = new HashMap(); for (Iterator ents = entries.entries(true); ents.hasNext();) { SVNEntry entry = (SVNEntry) ents.next(); if ("".equals(entry.getName())) { continue; } String childURL = url != null ? SVNPathUtil.append(url, SVNEncodingUtil.uriEncode(entry.getName())) : null; if (entry.getKind() == SVNNodeKind.FILE) { save |= bumpEntry(entries, entry, childURL, myTargetRevision, true); } else if (myIsRecursive && entry.getKind() == SVNNodeKind.DIR) { SVNDirectory childDirectory = dir.getChildDirectory(entry.getName()); if (!entry.isScheduledForAddition() && (childDirectory == null || !childDirectory.isVersioned())) { myWCAccess.handleEvent(SVNEventFactory.createUpdateDeleteEvent(myWCAccess, dir, entry)); entries.deleteEntry(entry.getName()); save = true; } else { // schedule for recursion, map of dir->url childDirectories.put(childDirectory, childURL); } } } if (save) { entries.save(true); } for (Iterator children = childDirectories.keySet().iterator(); children.hasNext();) { SVNDirectory child = (SVNDirectory) children.next(); String childURL = (String) childDirectories.get(child); if (child != null) { bumpDirectory(child, childURL); } else { SVNDebugLog.logInfo("svn: Directory object is null in bump directories method"); } } } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/5acd96c2fcc708cffe9a8eaf01d072d50c6d6457/SVNUpdateEditor.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/wc/SVNUpdateEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
23559,
2853,
12,
23927,
50,
2853,
1577,
16,
514,
880,
13,
1216,
29537,
50,
503,
288,
3639,
29537,
50,
5400,
3222,
273,
1577,
18,
588,
5400,
5621,
3639,
1250,
1923,
273,
23559,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23559,
2853,
12,
23927,
50,
2853,
1577,
16,
514,
880,
13,
1216,
29537,
50,
503,
288,
3639,
29537,
50,
5400,
3222,
273,
1577,
18,
588,
5400,
5621,
3639,
1250,
1923,
273,
23559,
... |
return new ASTElaboratedTypeSpecifier(); | IContainerSymbol currentScopeSymbol = scopeToSymbol(scope); TypeInfo.eType pstType = classKindToTypeInfo(kind); List references = new ArrayList(); IToken lastToken = name.getLastToken(); if( name.length() != 1 ) { ITokenDuple containerSymbolName = name.getSubrange( 0, name.length() - 3 ); currentScopeSymbol = (IContainerSymbol)lookupQualifiedName( currentScopeSymbol, containerSymbolName, references); if( currentScopeSymbol == null ) throw new ASTSemanticException(); } ISymbol checkSymbol = null; try { checkSymbol = currentScopeSymbol.qualifiedLookup(lastToken.getImage()); } catch (ParserSymbolTableException e) { throw new ASTSemanticException(); } if( isForewardDecl ) { if( checkSymbol == null ) { checkSymbol = pst.newDerivableContainerSymbol( lastToken.getImage(), pstType ); checkSymbol.setIsForwardDeclaration( true ); try { currentScopeSymbol.addSymbol( checkSymbol ); } catch (ParserSymbolTableException e1) { throw new ASTSemanticException(); } ASTElaboratedTypeSpecifier elab = new ASTElaboratedTypeSpecifier( checkSymbol, kind, startingOffset, endOffset ); try { attachSymbolExtension( checkSymbol, elab ); } catch (ExtensionException e2) { throw new ASTSemanticException(); } } } return (IASTElaboratedTypeSpecifier)checkSymbol.getASTExtension().getPrimaryDeclaration(); | public IASTElaboratedTypeSpecifier createElaboratedTypeSpecifier( ASTClassKind elaboratedClassKind, String typeName, int startingOffset, int endOffset) { //TODO FIX THIS return new ASTElaboratedTypeSpecifier(); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a94839573b25744b81bcdcbff5014614a92fdd8c/CompleteParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/CompleteParseASTFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
4958,
378,
280,
690,
559,
21416,
752,
4958,
378,
280,
690,
559,
21416,
12,
3639,
9183,
797,
5677,
415,
378,
280,
690,
797,
5677,
16,
3639,
514,
8173,
16,
3639,
509,
502... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
9053,
4958,
378,
280,
690,
559,
21416,
752,
4958,
378,
280,
690,
559,
21416,
12,
3639,
9183,
797,
5677,
415,
378,
280,
690,
797,
5677,
16,
3639,
514,
8173,
16,
3639,
509,
502... |
List list = new ArrayList(); | map2.put("name", providerNameFromPlug); | private void createProviderHierarchie(String providerName) { // get all partner and provider by a new query try { String query = "datatype:management management_request_type:1"; IngridQuery ingridQuery = QueryStringParser.parse(query); IngridHits hits = this.fIBus.search(ingridQuery, 1000, 0, 0, 120000); IngridHit hit = hits.getHits()[0]; ArrayList arrayList = hit.getArrayList("partner"); for (int j = 0, length = arrayList.size(); j < length; j++) { Map partnerMap = (Map) arrayList.get(j); ArrayList providerList = (ArrayList) partnerMap.get("providers"); for (int k = 0, providerLength = providerList.size(); k < providerLength; k++) { Map providerMap = (Map) providerList.get(k); String providerId = (String) providerMap.get("providerid"); if(providerId.equals(providerName)) { this.fHierarchie.clear(); Map map = new HashMap(); map.put("partnerid", partnerMap.get("partnerid")); Map map2 = new HashMap(); map2.put("providerid", providerId); List list = new ArrayList(); list.add(map2); map.put("providers", list); this.fHierarchie.add(map); } } } } catch (Exception e) { e.printStackTrace(); } } | 12891 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12891/d1aa4bb99c44eba5f90bda0f92e5589b6aa4789b/IngridRealm.java/buggy/src/java/de/ingrid/iplug/web/IngridRealm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
2249,
44,
5148,
1385,
12,
780,
26036,
13,
288,
377,
202,
759,
336,
777,
19170,
471,
2893,
635,
279,
394,
843,
202,
202,
698,
288,
1082,
202,
780,
843,
273,
315,
21540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2249,
44,
5148,
1385,
12,
780,
26036,
13,
288,
377,
202,
759,
336,
777,
19170,
471,
2893,
635,
279,
394,
843,
202,
202,
698,
288,
1082,
202,
780,
843,
273,
315,
21540,
... |
attributes.setNonNormalizedValue(attrIndex, fTempString2.toString()); | if (!isSameNormalizedAttr) { attributes.setNonNormalizedValue(attrIndex, fTempString2.toString()); } | protected void scanAttribute(XMLAttributesImpl attributes) throws IOException, XNIException { if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanAttribute()"); // name fEntityScanner.scanQName(fAttributeQName); // equals fEntityScanner.skipSpaces(); if (!fEntityScanner.skipChar('=')) { reportFatalError("EqRequiredInAttribute", new Object[]{fCurrentElement.rawname,fAttributeQName.rawname}); } fEntityScanner.skipSpaces(); // content int attrIndex; if (fBindNamespaces) { attrIndex = attributes.getLength(); attributes.addAttributeNS(fAttributeQName, XMLSymbols.fCDATASymbol, null); } else { int oldLen = attributes.getLength(); attrIndex = attributes.addAttribute(fAttributeQName, XMLSymbols.fCDATASymbol, null); // WFC: Unique Att Spec if (oldLen == attributes.getLength()) { reportFatalError("AttributeNotUnique", new Object[]{fCurrentElement.rawname, fAttributeQName.rawname}); } } //REVISIT: one more case needs to be included: external PE and standalone is no boolean isVC = fHasExternalDTD && !fStandalone; scanAttributeValue(this.fTempString, fTempString2, fAttributeQName.rawname, isVC, fCurrentElement.rawname); String value = fTempString.toString(); attributes.setValue(attrIndex, value); attributes.setNonNormalizedValue(attrIndex, fTempString2.toString()); attributes.setSpecified(attrIndex, true); // record namespace declarations if any. if (fBindNamespaces) { String localpart = fAttributeQName.localpart; String prefix = fAttributeQName.prefix != null ? fAttributeQName.prefix : XMLSymbols.EMPTY_STRING; // when it's of form xmlns="..." or xmlns:prefix="...", // it's a namespace declaration. but prefix:xmlns="..." isn't. if (prefix == XMLSymbols.PREFIX_XMLNS || prefix == XMLSymbols.EMPTY_STRING && localpart == XMLSymbols.PREFIX_XMLNS) { // get the internalized value of this attribute String uri = fSymbolTable.addSymbol(value); // 1. "xmlns" can't be bound to any namespace if (prefix == XMLSymbols.PREFIX_XMLNS && localpart == XMLSymbols.PREFIX_XMLNS) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXMLNS", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } // 2. the namespace for "xmlns" can't be bound to any prefix if (uri == NamespaceContext.XMLNS_URI) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXMLNS", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } // 3. "xml" can't be bound to any other namespace than it's own if (localpart == XMLSymbols.PREFIX_XML) { if (uri != NamespaceContext.XML_URI) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXML", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } // 4. the namespace for "xml" can't be bound to any other prefix else { if (uri ==NamespaceContext.XML_URI) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXML", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } prefix = localpart != XMLSymbols.PREFIX_XMLNS ? localpart : XMLSymbols.EMPTY_STRING; // http://www.w3.org/TR/1999/REC-xml-names-19990114/#dt-prefix // We should only report an error if there is a prefix, // that is, the local part is not "xmlns". -SG if (uri == XMLSymbols.EMPTY_STRING && localpart != XMLSymbols.PREFIX_XMLNS) { fErrorReporter.reportError(XMLMessageFormatter.XMLNS_DOMAIN, "EmptyPrefixedAttName", new Object[]{fAttributeQName}, XMLErrorReporter.SEVERITY_FATAL_ERROR); } // declare prefix in context fNamespaceContext.declarePrefix(prefix, uri.length() != 0 ? uri : null); // bind namespace attribute to a namespace attributes.setURI(attrIndex, fNamespaceContext.getURI(XMLSymbols.PREFIX_XMLNS)); } else { // attempt to bind attribute if (fAttributeQName.prefix != null) { attributes.setURI(attrIndex, fNamespaceContext.getURI(fAttributeQName.prefix)); } } } if (DEBUG_CONTENT_SCANNING) System.out.println("<<< scanAttribute()"); } // scanAttribute(XMLAttributes) | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/c72c2da0a1704fa893f44fc5a33819f7a88fac02/XMLNSDocumentScannerImpl.java/buggy/src/org/apache/xerces/impl/XMLNSDocumentScannerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4135,
1499,
12,
4201,
2498,
2828,
1677,
13,
565,
1216,
1860,
16,
1139,
50,
45,
503,
288,
3639,
309,
261,
9394,
67,
9689,
67,
2312,
11489,
1360,
13,
2332,
18,
659,
18,
8222,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4135,
1499,
12,
4201,
2498,
2828,
1677,
13,
565,
1216,
1860,
16,
1139,
50,
45,
503,
288,
3639,
309,
261,
9394,
67,
9689,
67,
2312,
11489,
1360,
13,
2332,
18,
659,
18,
8222,
... |
coreMock = new CGLIBCoreMock( ConcreteType.class, MOCK_NAME, mockDispatcher ); assertTrue( "proxy should be instance of expected concrete type", coreMock.proxy() instanceof ConcreteType ); } | coreMock = new CGLIBCoreMock(ConcreteType.class, MOCK_NAME, mockDispatcher); assertTrue("proxy should be instance of expected concrete type", coreMock.proxy() instanceof ConcreteType); } | public void testCanMockConcreteType() { coreMock = new CGLIBCoreMock( ConcreteType.class, MOCK_NAME, mockDispatcher ); assertTrue( "proxy should be instance of expected concrete type", coreMock.proxy() instanceof ConcreteType ); } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/CGLIBCoreMockTest.java/clean/jmock/extensions/cglib/src/test/jmock/cglib/CGLIBCoreMockTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2568,
9865,
25845,
559,
1435,
288,
3639,
2922,
9865,
273,
394,
29679,
14484,
4670,
9865,
12,
735,
6883,
559,
18,
1106,
16,
16070,
3507,
67,
1985,
16,
5416,
6681,
11272,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2568,
9865,
25845,
559,
1435,
288,
3639,
2922,
9865,
273,
394,
29679,
14484,
4670,
9865,
12,
735,
6883,
559,
18,
1106,
16,
16070,
3507,
67,
1985,
16,
5416,
6681,
11272,
7... |
return new ThreadContext(Ruby.this); | return mainContext; | protected Object initialValue() { return new ThreadContext(Ruby.this); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/1ceedf02ac15d7325cfcf505ca74f35c5bc4a258/Ruby.java/buggy/org/jruby/Ruby.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
1033,
11837,
1435,
288,
5411,
327,
2774,
1042,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
1033,
11837,
1435,
288,
5411,
327,
2774,
1042,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
throw new ArgumentError(recv.getRuntime(), "wrong number of arguments (0 for 1)"); | throw recv.getRuntime().newArgumentError("wrong number of arguments (0 for 1)"); | public static IRubyObject load(IRubyObject recv, IRubyObject[] args) { try { if (args.length < 1) { throw new ArgumentError(recv.getRuntime(), "wrong number of arguments (0 for 1)"); } if (args.length > 2) { throw new ArgumentError(recv.getRuntime(), "wrong number of arguments (" + args.length + " for 2)"); } IRubyObject in = null; IRubyObject proc = null; switch (args.length) { case 2: proc = args[1]; case 1: in = args[0]; } InputStream rawInput; if (in instanceof RubyIO) { rawInput = ((RubyIO) in).getInStream(); } else if (in.respondsTo("to_str")) { RubyString inString = (RubyString) in.callMethod("to_str"); rawInput = new ByteArrayInputStream(inString.toByteArray()); } else { throw new TypeError(recv.getRuntime(), "instance of IO needed"); } UnmarshalStream input = new UnmarshalStream(recv.getRuntime(), rawInput); return input.unmarshalObject(proc); } catch (IOException ioe) { throw IOError.fromException(recv.getRuntime(), ioe); } } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyMarshal.java/clean/src/org/jruby/RubyMarshal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1262,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
775,
288,
5411,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
7734,
604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1262,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
775,
288,
5411,
309,
261,
1968,
18,
2469,
411,
404,
13,
288,
7734,
604,
... |
LoadXMLAction(JFrame aParent, MyTableModel aModel) | LoadXMLAction(JFrame aParent, EventDetailSink eventSink) | LoadXMLAction(JFrame aParent, MyTableModel aModel) { mParent = aParent; mHandler = new XMLFileHandler(aModel); } | 45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/54e0894a235cf32342eb9ccc6776b3172c67a65c/LoadXMLAction.java/buggy/src/java/org/apache/log4j/chainsaw/LoadXMLAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4444,
4201,
1803,
12,
46,
3219,
279,
3054,
16,
2587,
6109,
11326,
871,
11326,
13,
565,
288,
3639,
312,
3054,
273,
279,
3054,
31,
3639,
312,
1503,
273,
394,
3167,
28942,
12,
69,
1488,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4444,
4201,
1803,
12,
46,
3219,
279,
3054,
16,
2587,
6109,
11326,
871,
11326,
13,
565,
288,
3639,
312,
3054,
273,
279,
3054,
31,
3639,
312,
1503,
273,
394,
3167,
28942,
12,
69,
1488,
17... |
public String jsFunction_small() { | private String jsFunction_small() { | public String jsFunction_small() { return tagify("SMALL", null, null); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeString.java/buggy/js/rhino/org/mozilla/javascript/NativeString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
3828,
2083,
67,
12019,
1435,
288,
3639,
327,
1047,
1164,
2932,
23882,
3113,
446,
16,
446,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
3828,
2083,
67,
12019,
1435,
288,
3639,
327,
1047,
1164,
2932,
23882,
3113,
446,
16,
446,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if (matchingText.equals(pattern)) { | if (matchingText.equals(pattern) || matchingText.equals("integer constant")) { | public List<INodeSubstituteItem> getMatchingItems(String pattern, boolean strictMatching) { List<INodeSubstituteItem> list = new ArrayList<INodeSubstituteItem>(); Iterator<INodeSubstituteItem> iterator = items(); while (iterator.hasNext()) { INodeSubstituteItem entry = iterator.next(); if (entry.canSubstitute(pattern)) { list.add(entry); } } if (strictMatching) { Iterator<INodeSubstituteItem> iterator1 = list.iterator(); while (iterator1.hasNext()) { INodeSubstituteItem substituteItem = iterator1.next(); String matchingText = substituteItem.getMatchingText(pattern); if (matchingText != null) { if (matchingText.equals(pattern)) { continue; } } iterator1.remove(); } } return list; } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/0a7a7a01c636be527827cd159831820ba1d32bda/AbstractNodeSubstituteInfo.java/clean/source/jetbrains/mps/nodeEditor/AbstractNodeSubstituteInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
987,
32,
23184,
1676,
17207,
1180,
34,
336,
9517,
3126,
12,
780,
1936,
16,
1250,
5490,
9517,
13,
288,
565,
987,
32,
23184,
1676,
17207,
1180,
34,
666,
273,
394,
2407,
32,
23184,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
32,
23184,
1676,
17207,
1180,
34,
336,
9517,
3126,
12,
780,
1936,
16,
1250,
5490,
9517,
13,
288,
565,
987,
32,
23184,
1676,
17207,
1180,
34,
666,
273,
394,
2407,
32,
23184,
1... |
_saveButton.setEnabled(true); _compileButton.setEnabled(false); | _saveButton.setEnabled(true); _compileButton.setEnabled(false); | void installNewDocumentListener(DefinitionsDocument d) { d.addDocumentListener(new DocumentListener() { public void changedUpdate(DocumentEvent e) { _saveButton.setEnabled(true); _compileButton.setEnabled(false); } public void insertUpdate(DocumentEvent e) { _saveButton.setEnabled(true); _compileButton.setEnabled(false); } public void removeUpdate(DocumentEvent e) { _saveButton.setEnabled(true); _compileButton.setEnabled(false); } }); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/19f352f86be54a48e35fa3c387c0a98798be1f17/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3799,
1908,
2519,
2223,
12,
7130,
2519,
302,
13,
288,
202,
72,
18,
1289,
2519,
2223,
12,
2704,
4319,
2223,
1435,
288,
202,
565,
1071,
918,
3550,
1891,
12,
2519,
1133,
425,
13,
288,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3799,
1908,
2519,
2223,
12,
7130,
2519,
302,
13,
288,
202,
72,
18,
1289,
2519,
2223,
12,
2704,
4319,
2223,
1435,
288,
202,
565,
1071,
918,
3550,
1891,
12,
2519,
1133,
425,
13,
288,... |
docGenerator = new GenerateHTMLDoc(jSDir, destDir, file.getName()); | docGenerator = new GenerateHTMLDoc(file, destDir); | public GenerateHTMLIndex(String jSDir, String destDir) { if (jSDir == null) { throw new BuildException("jSDir attribute can't be empty"); } if (destDir == null) { throw new BuildException("destDir can't be empty"); } if (!"/".equals(jSDir.substring(jSDir.length() - 1))) { jSDir = jSDir + "/"; } if (!"/".equals(destDir.substring(destDir.length() - 1))) { destDir = destDir + "/"; } file = new File(jSDir); fileList = file.listFiles(); for (int i = 0; i < fileList.length; i++) { if (fileList[i].getName().indexOf(".js") != -1) { v.addElement(fileList[i]); } } try { fos = new FileOutputStream(destDir + "index.htm"); } catch (FileNotFoundException fnfe) { try { file = new File(destDir); file.mkdir(); fos = new FileOutputStream(destDir + "index.htm"); } catch (FileNotFoundException e) { } } try { fos.write(("<html>" + LINE_SEPARATOR).getBytes()); fos.write(("<head>" + LINE_SEPARATOR).getBytes()); fos.write(("<style type='text/css'>" + LINE_SEPARATOR).getBytes()); fos.write((".TableHeadingColor { background: #CCCCFF } /* Dark mauve */" + LINE_SEPARATOR).getBytes()); fos.write((".NavBarCell1 { background-color:#EEEEFF;}/* Light mauve */" + LINE_SEPARATOR).getBytes()); fos.write(("</style>" + LINE_SEPARATOR).getBytes()); fos.write(("<TABLE WIDTH='100%'><TR><TD WIDTH='100%' CLASS='NavBarCell1'><H1>JavaScript Code Documentation</H1></TD></TR></TABLE>" + LINE_SEPARATOR).getBytes()); fos.write(("<title>JavaScript Code Documentation</title>" + LINE_SEPARATOR).getBytes()); fos.write(("</head>" + LINE_SEPARATOR).getBytes()); fos.write(("<body>" + LINE_SEPARATOR).getBytes()); fos.write(("<H2>ndice de files</H2>" + LINE_SEPARATOR).getBytes()); fos.write(("<br>" + LINE_SEPARATOR).getBytes()); fos.write(("<br>" + LINE_SEPARATOR).getBytes()); fos.write(("<TABLE BORDER='1' CELLPADDING='3' CELLSPACING='0' WIDTH='100%'>" + LINE_SEPARATOR).getBytes()); fos.write(("<TR CLASS='TableHeadingColor'>" + LINE_SEPARATOR).getBytes()); fos.write(("<TD ALIGN='left'><FONT SIZE='+2' WIDTH='30%'>" + LINE_SEPARATOR).getBytes()); fos.write(("<B>Nome do file</B></FONT></TD>" + LINE_SEPARATOR).getBytes()); fos.write(("<TD ALIGN='left'><FONT SIZE='+2' WIDTH='70%'>" + LINE_SEPARATOR).getBytes()); fos.write(("<B>Resumo do contedo</B></FONT></TD>" + LINE_SEPARATOR).getBytes()); fos.write(("</TR>" + LINE_SEPARATOR).getBytes()); for (int i = 0; i < v.size(); i++) { file = (File) v.get(i); docGenerator = new GenerateHTMLDoc(jSDir, destDir, file.getName()); } System.out.println("Nmero de files .js: " + v.size()); for (int i = 0; i < v.size(); i++) { System.out.println(file.getName()); file = (File) v.get(i); fos.write(("<TR>" + LINE_SEPARATOR).getBytes()); fos.write(("<TD WIDTH='30%' BGCOLOR='#f3f3f3'><font face='Verdana'><b><a href='" + file.getName().substring(0, file.getName().indexOf(".")) + ".htm" + "'>" + file.getName() + "</a></b></font></TD>" + LINE_SEPARATOR).getBytes()); fos.write(("<TD WIDTH='70%'>" + LINE_SEPARATOR).getBytes()); try { fis = new FileInputStream(jSDir + file.getName()); br = new BufferedReader(new InputStreamReader(fis)); while (br.ready()) { stringReader = br.readLine(); if (null != stringReader && stringReader.indexOf("/**") != -1) { stringReader = br.readLine(); while (null != stringReader && stringReader.indexOf("*/") == -1) { if (stringReader.indexOf("* @") != -1) { if (stringReader.indexOf("summary") != -1) { fos.write((stringReader.substring(stringReader.indexOf("* @summary") + 11) + LINE_SEPARATOR).getBytes()); fos.write("<BR>".getBytes()); } } stringReader = br.readLine(); } } } } catch (FileNotFoundException fnfe) { fnfe.printStackTrace(); } fos.write(("</TD>" + LINE_SEPARATOR).getBytes()); fos.write(("</TR>" + LINE_SEPARATOR).getBytes()); } fos.write(("</TABLE>" + LINE_SEPARATOR).getBytes()); fos.write("</body>".getBytes()); fos.write("</html>".getBytes()); } catch (IOException ioe) { ioe.printStackTrace(); } } | 2719 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2719/126196823e95feaf8cf57c908ccd72f13da8c5a4/GenerateHTMLIndex.java/clean/scratchpad/forrestdoc/src/java/org/apache/forrest/forrestdoc/js/doc/GenerateHTMLIndex.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6654,
4870,
1016,
12,
780,
525,
55,
1621,
16,
514,
26231,
13,
288,
3639,
309,
261,
78,
55,
1621,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
78,
55,
1621,
1566,
848,
1404,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6654,
4870,
1016,
12,
780,
525,
55,
1621,
16,
514,
26231,
13,
288,
3639,
309,
261,
78,
55,
1621,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
78,
55,
1621,
1566,
848,
1404,
5... |
generators.clear(); | holders.clear(); | public synchronized void clear() { generators.clear(); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/bc4b30e179e65afb080e3efad60ab70eb646b593/MessageIdGeneratorFactory.java/clean/src/main/org/jboss/jms/message/MessageIdGeneratorFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3852,
918,
2424,
1435,
282,
288,
1377,
366,
4665,
18,
8507,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
3852,
918,
2424,
1435,
282,
288,
1377,
366,
4665,
18,
8507,
5621,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return; | return; | private void toLDAPModifications() throws LDAPLocalException { int i, index; int fieldIndex = 2; // skip dn, control, and changetype field String attrName, opName; LDAPAttribute attr = null; ArrayList modList = new ArrayList(); if (!(this.rFields.get(this.fNumber-1)).toString(). equalsIgnoreCase("-") ) { throw new LDAPLocalException("com.novell.ldap.ldif_dsml." + "LDIFReader: modify record not ends with '-' in the record" + " starting on line " + this.dnlNumber + " of the file.", LDAPException.LOCAL_ERROR); } // populate the LDAPModification array object for (i=fieldIndex; i<this.fNumber; i++) { // find ':' that separate mod operation and attr name index = IndexOf((StringBuffer)this.rFields.get(i), ':'); if (index == -1) { // ':' not found throw new LDAPLocalException("com.novell.ldap.ldif_dsml." + "LDIFReader: malformed opName:attrName field in the record" + " starting on line " + this.dnlNumber + " of the file.", LDAPException.LOCAL_ERROR); } StringBuffer nextField = (StringBuffer)this.rFields.get(i); opName= nextField.substring(0, index); attrName= nextField.substring(index+1); i++; // point to attrName:attrValue field nextField = (StringBuffer)this.rFields.get(i); // build each LDAPModification object and add it to modList if (nextField.charAt(0)!='-') { // there is at least one attrName:attrValue field for ( ; nextField.charAt(0)!='-'; i++, nextField = (StringBuffer)this.rFields.get(i)) { // index separate attr name and attr value if ((index=IndexOf(nextField, ':')) == -1) { throw new LDAPLocalException("com.novell.ldap." + "ldif_dsml.LDIFReader : no ':' found in attrName:" + "attrValue field in the record starting on line " + this.dnlNumber + " of the file.", LDAPException.LOCAL_ERROR); } else { // compare attr names from opName:attrName // and attrName:attrValue fields String aName = nextField.substring(0, index); if (!aName.equalsIgnoreCase(attrName)) { throw new LDAPLocalException("com.novell.ldap." + "ldif_dsml.LDIFReader : found attribute name '" + aName + "', should be '" + attrName + "' in attrName:attrValue field in the record " + "starting on line " + this.dnlNumber + " of the file.", LDAPException.LOCAL_ERROR); } // create attr and add value to it attr = new LDAPAttribute(attrName); if (nextField.charAt(index+1)==':') { // base64 encoded attribute value attr.addBase64Value(nextField.substring(index+2)); } else if (nextField.charAt(index+1)=='<'){ // file URL attribute value attr.addBase64Value(nextField.substring(index+2)); } else { // string value attr.addValue(nextField.substring(index+1)); } if ( opName.equalsIgnoreCase("add") ) { modList.add( new LDAPModification( LDAPModification.ADD, attr)); } else if ( opName.equalsIgnoreCase("delete") ) { modList.add( new LDAPModification( LDAPModification.DELETE, attr)); } else if ( opName.equalsIgnoreCase("replace") ) { modList.add( new LDAPModification( LDAPModification.REPLACE, attr)); } else { throw new LDAPLocalException("com.novell.ldap." + "ldif_dsml.LDIFReader : Not supported modify " + " request (" + opName + ") specified in " + "record starting on line " + this.dnlNumber + " of the file.", LDAPException.LOCAL_ERROR); } } } } else { // there is no attribute value specified; this could be // true for 'delete' and 'replace' modify operation attr = new LDAPAttribute(attrName); if ( opName.equalsIgnoreCase("delete") ) { modList.add( new LDAPModification( LDAPModification.DELETE, attr)); } else if ( opName.equalsIgnoreCase("replace") ) { modList.add( new LDAPModification( LDAPModification.REPLACE, attr)); } else { throw new LDAPLocalException("com.novell.ldap.ldif_dsml." + "LDIFReader: For '" + opName + "', no value " + "specified for atribute '" + attrName + "' in the record starting on line " + this.dnlNumber + " of the file.", LDAPException.LOCAL_ERROR); } } } this.mods = new LDAPModification[modList.size()]; this.mods = (LDAPModification[])modList.toArray(this.mods); return; } | 9947 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9947/ba066957d1aef78f346873e842d4f157d63ed7d6/LDIFReader.java/buggy/com/novell/ldap/util/LDIFReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
358,
15496,
28340,
1435,
7734,
1216,
11916,
2042,
503,
565,
288,
3639,
509,
3639,
277,
16,
770,
31,
3639,
509,
3639,
31762,
273,
576,
31,
565,
368,
2488,
8800,
16,
3325,
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,
3238,
918,
358,
15496,
28340,
1435,
7734,
1216,
11916,
2042,
503,
565,
288,
3639,
509,
3639,
277,
16,
770,
31,
3639,
509,
3639,
31762,
273,
576,
31,
565,
368,
2488,
8800,
16,
3325,
16,
... |
public void statement() throws RecognitionException { FactTemplateDescr t = null; RuleDescr r = null; QueryDescr q = null; try { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query ) ) // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query ) { // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query ) int alt4=7; switch ( input.LA(1) ) { case 29: int LA4_1 = input.LA(2); if ( (LA4_1==30) ) { alt4=2; } else if ( (LA4_1==ID) ) { alt4=1; } else { NoViableAltException nvae = new NoViableAltException("302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query )", 4, 1, input); throw nvae; } break; case 33: alt4=3; break; case 30: alt4=4; break; case 37: alt4=5; break; case 38: alt4=6; break; case 35: alt4=7; break; default: NoViableAltException nvae = new NoViableAltException("302:2: ( import_statement | function_import_statement | global | function | t= template | r= rule | q= query )", 4, 0, input); throw nvae; } switch (alt4) { case 1 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:302:4: import_statement { pushFollow(FOLLOW_import_statement_in_statement107); import_statement(); _fsp--; } break; case 2 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:303:10: function_import_statement { pushFollow(FOLLOW_function_import_statement_in_statement118); function_import_statement(); _fsp--; } break; case 3 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:304:4: global { pushFollow(FOLLOW_global_in_statement123); global(); _fsp--; } break; case 4 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:305:4: function { pushFollow(FOLLOW_function_in_statement128); function(); _fsp--; } break; case 5 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:306:10: t= template { pushFollow(FOLLOW_template_in_statement141); t=template(); _fsp--; this.packageDescr.addFactTemplate( t ); } break; case 6 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:307:4: r= rule { pushFollow(FOLLOW_rule_in_statement150); r=rule(); _fsp--; this.packageDescr.addRule( r ); } break; case 7 : // D:\\dev\\jbossrules\\trunk\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:308:4: q= query { pushFollow(FOLLOW_query_in_statement160); q=query(); _fsp--; this.packageDescr.addRule( q ); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/6b34eb3854fdc06f31034567ebdf72ff28c6c11a/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3021,
1435,
1216,
9539,
288,
6647,
29057,
2283,
16198,
268,
273,
446,
31,
3639,
6781,
16198,
436,
273,
446,
31,
3639,
2770,
16198,
1043,
273,
446,
31,
3639,
775,
288,
5411,
368... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3021,
1435,
1216,
9539,
288,
6647,
29057,
2283,
16198,
268,
273,
446,
31,
3639,
6781,
16198,
436,
273,
446,
31,
3639,
2770,
16198,
1043,
273,
446,
31,
3639,
775,
288,
5411,
368... | ||
runningOrder[j] = vv; } } while (h != 1); | runningOrder[ j ] = vv; } } while ( h != 1 ); | private void mainSort() { int i, j, ss, sb; int[] runningOrder = new int[256]; int[] copy = new int[256]; boolean[] bigDone = new boolean[256]; int c1, c2; int numQSorted; /* In the various block-sized structures, live data runs from 0 to last+NUM_OVERSHOOT_BYTES inclusive. First, set up the overshoot area for block. */ // if (verbosity >= 4) fprintf ( stderr, " sort initialise ...\n" ); for (i = 0; i < NUM_OVERSHOOT_BYTES; i++) { block[last + i + 2] = block[(i % (last + 1)) + 1]; } for (i = 0; i <= last + NUM_OVERSHOOT_BYTES; i++) { quadrant[i] = 0; } block[0] = (char) (block[last + 1]); if (last < 4000) { /* Use simpleSort(), since the full sorting mechanism has quite a large constant overhead. */ for (i = 0; i <= last; i++) { zptr[i] = i; } firstAttempt = false; workDone = workLimit = 0; simpleSort(0, last, 0); } else { numQSorted = 0; for (i = 0; i <= 255; i++) { bigDone[i] = false; } for (i = 0; i <= 65536; i++) { ftab[i] = 0; } c1 = block[0]; for (i = 0; i <= last; i++) { c2 = block[i + 1]; ftab[(c1 << 8) + c2]++; c1 = c2; } for (i = 1; i <= 65536; i++) { ftab[i] += ftab[i - 1]; } c1 = block[1]; for (i = 0; i < last; i++) { c2 = block[i + 2]; j = (c1 << 8) + c2; c1 = c2; ftab[j]--; zptr[ftab[j]] = i; } j = ((block[last + 1]) << 8) + (block[1]); ftab[j]--; zptr[ftab[j]] = last; /* Now ftab contains the first loc of every small bucket. Calculate the running order, from smallest to largest big bucket. */ for (i = 0; i <= 255; i++) { runningOrder[i] = i; } { int vv; int h = 1; do { h = 3 * h + 1; } while (h <= 256); do { h = h / 3; for (i = h; i <= 255; i++) { vv = runningOrder[i]; j = i; while ((ftab[((runningOrder[j - h]) + 1) << 8] - ftab[(runningOrder[j - h]) << 8]) > (ftab[((vv) + 1) << 8] - ftab[(vv) << 8])) { runningOrder[j] = runningOrder[j - h]; j = j - h; if (j <= (h - 1)) { break; } } runningOrder[j] = vv; } } while (h != 1); } /* The main sorting loop. */ for (i = 0; i <= 255; i++) { /* Process big buckets, starting with the least full. */ ss = runningOrder[i]; /* Complete the big bucket [ss] by quicksorting any unsorted small buckets [ss, j]. Hopefully previous pointer-scanning phases have already completed many of the small buckets [ss, j], so we don't have to sort them at all. */ for (j = 0; j <= 255; j++) { sb = (ss << 8) + j; if (!((ftab[sb] & SETMASK) == SETMASK)) { int lo = ftab[sb] & CLEARMASK; int hi = (ftab[sb + 1] & CLEARMASK) - 1; if (hi > lo) { qSort3(lo, hi, 2); numQSorted += (hi - lo + 1); if (workDone > workLimit && firstAttempt) { return; } } ftab[sb] |= SETMASK; } } /* The ss big bucket is now done. Record this fact, and update the quadrant descriptors. Remember to update quadrants in the overshoot area too, if necessary. The "if (i < 255)" test merely skips this updating for the last bucket processed, since updating for the last bucket is pointless. */ bigDone[ss] = true; if (i < 255) { int bbStart = ftab[ss << 8] & CLEARMASK; int bbSize = (ftab[(ss + 1) << 8] & CLEARMASK) - bbStart; int shifts = 0; while ((bbSize >> shifts) > 65534) { shifts++; } for (j = 0; j < bbSize; j++) { int a2update = zptr[bbStart + j]; int qVal = (j >> shifts); quadrant[a2update] = qVal; if (a2update < NUM_OVERSHOOT_BYTES) { quadrant[a2update + last + 1] = qVal; } } if (!(((bbSize - 1) >> shifts) <= 65535)) { panic(); } } /* Now scan this big bucket so as to synthesise the sorted order for small buckets [t, ss] for all t != ss. */ for (j = 0; j <= 255; j++) { copy[j] = ftab[(j << 8) + ss] & CLEARMASK; } for (j = ftab[ss << 8] & CLEARMASK; j < (ftab[(ss + 1) << 8] & CLEARMASK); j++) { c1 = block[zptr[j]]; if (!bigDone[c1]) { zptr[copy[c1]] = zptr[j] == 0 ? last : zptr[j] - 1; copy[c1]++; } } for (j = 0; j <= 255; j++) { ftab[(j << 8) + ss] |= SETMASK; } } } } | 10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/CBZip2OutputStream.java/clean/src/main/java/org/codehaus/plexus/archiver/bzip2/CBZip2OutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2774,
4416,
1435,
288,
3639,
509,
277,
16,
525,
16,
5202,
16,
2393,
31,
3639,
509,
8526,
3549,
2448,
273,
394,
509,
63,
5034,
15533,
3639,
509,
8526,
1610,
273,
394,
509,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2774,
4416,
1435,
288,
3639,
509,
277,
16,
525,
16,
5202,
16,
2393,
31,
3639,
509,
8526,
3549,
2448,
273,
394,
509,
63,
5034,
15533,
3639,
509,
8526,
1610,
273,
394,
509,
63,... |
newItem.setText(label); | String text = label; if (mnemonic != null) { } newItem.setText(text); | public void fill(Menu parent, int index) { if (command == null) { return; } MenuItem newItem = new MenuItem(parent, SWT.PUSH, index); newItem.setData(this); newItem.setEnabled(isEnabled()); newItem.setText(label); if (icon != null) { LocalResourceManager m = new LocalResourceManager(JFaceResources .getResources()); newItem.setImage(m.createImage(icon)); disposeOldImages(); localResourceManager = m; } newItem.addListener(SWT.Dispose, getItemListener()); newItem.addListener(SWT.Selection, getItemListener()); widget = newItem; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/bfd6eb25a2e56f373b64dbce6d194d946bbcc597/CommandContributionItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/menus/CommandContributionItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
12,
4599,
982,
16,
509,
770,
13,
288,
202,
202,
430,
261,
3076,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
12958,
26536,
273,
394,
25085,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3636,
12,
4599,
982,
16,
509,
770,
13,
288,
202,
202,
430,
261,
3076,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
12958,
26536,
273,
394,
25085,
12,... |
m_configResource.getFile(); | public void afterPropertiesSet() throws Exception { Assert.notNull(m_configResource, "The configurationDir property must be set"); // ensure that this is a file resource since we need to save to it m_configResource.getFile(); if (m_configResource.exists()) { m_settings = PropertiesLoaderUtils.loadProperties(m_configResource); } else { m_settings = new Properties(); } } | 25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/28fcbd1419872458b41d8e660e4d559f834c72b0/DefaultPollerSettings.java/clean/opennms-services/src/main/java/org/opennms/netmgt/poller/remote/support/DefaultPollerSettings.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1839,
2297,
694,
1435,
1216,
1185,
288,
3639,
5452,
18,
902,
2041,
12,
81,
67,
1425,
1420,
16,
315,
1986,
1664,
1621,
1272,
1297,
506,
444,
8863,
3639,
368,
3387,
716,
333,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1839,
2297,
694,
1435,
1216,
1185,
288,
3639,
5452,
18,
902,
2041,
12,
81,
67,
1425,
1420,
16,
315,
1986,
1664,
1621,
1272,
1297,
506,
444,
8863,
3639,
368,
3387,
716,
333,
3... | |
throw new TransitiveArtifactResolutionException( "Error retrieving metadata [" + newArtifact + "] : ", e ); | throw new TransitiveArtifactResolutionException( "Error retrieving metadata [" + newArtifact + "] : ", e ); | private ArtifactResolutionResult collect( Set artifacts, ArtifactRepository localRepository, List remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter ) throws TransitiveArtifactResolutionException { ArtifactResolutionResult result = new ArtifactResolutionResult(); Map resolvedArtifacts = new HashMap(); List queue = new LinkedList(); queue.add( artifacts ); while ( !queue.isEmpty() ) { Set currentArtifacts = (Set) queue.remove( 0 ); for ( Iterator i = currentArtifacts.iterator(); i.hasNext(); ) { Artifact newArtifact = (Artifact) i.next(); String id = newArtifact.getConflictId(); if ( resolvedArtifacts.containsKey( id ) ) { Artifact knownArtifact = (Artifact) resolvedArtifacts.get( id ); String newVersion = newArtifact.getVersion(); String knownVersion = knownArtifact.getVersion(); if ( !newVersion.equals( knownVersion ) ) { addConflict( result, knownArtifact, newArtifact ); } } else { // ---------------------------------------------------------------------- // It's the first time we have encountered this artifact // ---------------------------------------------------------------------- if ( filter != null && !filter.include( newArtifact ) ) { continue; } resolvedArtifacts.put( id, newArtifact ); Set referencedDependencies = null; try { referencedDependencies = source.retrieve( newArtifact, localRepository, remoteRepositories ); } catch ( ArtifactMetadataRetrievalException e ) { throw new TransitiveArtifactResolutionException( "Error retrieving metadata [" + newArtifact + "] : ", e ); } // the pom for given dependency exisit we will add it to the // queue queue.add( referencedDependencies ); } } } // ---------------------------------------------------------------------- // the dependencies list is keyed by groupId+artifactId+type // so it must be 'rekeyed' to the complete id: // groupId+artifactId+type+version // ---------------------------------------------------------------------- Map artifactResult = result.getArtifacts(); for ( Iterator it = resolvedArtifacts.values().iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next(); try { setLocalRepositoryPath( artifact, localRepository ); } catch ( ArtifactHandlerNotFoundException e ) { throw new TransitiveArtifactResolutionException( "Error collecting artifact: ", e ); } artifactResult.put( artifact.getId(), artifact ); } return result; } | 11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/2628261b753a53f56863a5c0150994135148bbbe/DefaultArtifactResolver.java/buggy/maven-artifact/src/main/java/org/apache/maven/artifact/resolver/DefaultArtifactResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14022,
11098,
1253,
3274,
12,
1000,
16259,
16,
14022,
3305,
1191,
3305,
16,
3639,
987,
2632,
18429,
16,
14022,
2277,
1830,
1084,
16,
14022,
1586,
1034,
262,
3639,
1216,
2604,
3720,
75... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14022,
11098,
1253,
3274,
12,
1000,
16259,
16,
14022,
3305,
1191,
3305,
16,
3639,
987,
2632,
18429,
16,
14022,
2277,
1830,
1084,
16,
14022,
1586,
1034,
262,
3639,
1216,
2604,
3720,
75... |
int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * (table.getRowHeight()+table.getRowMargin()); return new Dimension(width, height); | int prefTotalColumnWidth = 0; for (int i = 0; i < table.getColumnCount(); i++) { TableColumn col = table.getColumnModel().getColumn(i); prefTotalColumnWidth += col.getPreferredWidth(); } return new Dimension(prefTotalColumnWidth, getHeight()); | public Dimension getPreferredSize(JComponent comp) { int width = table.getColumnModel().getTotalColumnWidth(); int height = table.getRowCount() * (table.getRowHeight()+table.getRowMargin()); return new Dimension(width, height); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/53983e95556bf4b775130b06570aa2ea08d85628/BasicTableUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
12822,
4193,
1225,
12,
46,
1841,
1161,
13,
282,
288,
565,
509,
1835,
273,
1014,
18,
588,
1494,
1488,
7675,
588,
5269,
1494,
2384,
5621,
565,
509,
2072,
273,
1014,
18,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
12822,
4193,
1225,
12,
46,
1841,
1161,
13,
282,
288,
565,
509,
1835,
273,
1014,
18,
588,
1494,
1488,
7675,
588,
5269,
1494,
2384,
5621,
565,
509,
2072,
273,
1014,
18,
588,
... |
buttons.add(Box.createGlue()); add = new JButton(jEdit.getProperty("options.abbrevs.add")); | add = new RolloverButton(GUIUtilities.loadIcon("Plus.png")); add.setToolTipText(jEdit.getProperty("options.abbrevs.add")); | protected void _init() { setLayout(new BorderLayout()); JPanel panel = new JPanel(new BorderLayout(6,6)); expandOnInput = new JCheckBox(jEdit.getProperty("options.abbrevs" + ".expandOnInput"),Abbrevs.getExpandOnInput()); panel.add(expandOnInput,BorderLayout.NORTH); JPanel panel2 = new JPanel(); panel2.setLayout(new BoxLayout(panel2,BoxLayout.X_AXIS)); panel2.setBorder(new EmptyBorder(0,0,6,0)); panel2.add(Box.createGlue()); JLabel label = new JLabel(jEdit.getProperty("options.abbrevs.set")); label.setBorder(new EmptyBorder(0,0,0,12)); panel2.add(label); Hashtable _modeAbbrevs = Abbrevs.getModeAbbrevs(); modeAbbrevs = new Hashtable(); Mode[] modes = jEdit.getModes(); String[] sets = new String[modes.length + 1]; sets[0] = "global"; for(int i = 0; i < modes.length; i++) { String name = modes[i].getName(); sets[i+1] = name; modeAbbrevs.put(name,new AbbrevsModel((Hashtable)_modeAbbrevs.get(name))); } setsComboBox = new JComboBox(sets); ActionHandler actionHandler = new ActionHandler(); setsComboBox.addActionListener(actionHandler); panel2.add(setsComboBox); panel2.add(Box.createGlue()); panel.add(panel2,BorderLayout.SOUTH); add(BorderLayout.NORTH,panel); globalAbbrevs = new AbbrevsModel(Abbrevs.getGlobalAbbrevs()); abbrevsTable = new JTable(globalAbbrevs); abbrevsTable.getColumnModel().getColumn(1).setCellRenderer( new Renderer()); abbrevsTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); abbrevsTable.getTableHeader().setReorderingAllowed(false); abbrevsTable.getTableHeader().addMouseListener(new HeaderMouseHandler()); abbrevsTable.getSelectionModel().addListSelectionListener( new SelectionHandler()); abbrevsTable.addMouseListener(new TableMouseHandler()); Dimension d = abbrevsTable.getPreferredSize(); d.height = Math.min(d.height,200); JScrollPane scroller = new JScrollPane(abbrevsTable); scroller.setPreferredSize(d); add(BorderLayout.CENTER,scroller); JPanel buttons = new JPanel(); buttons.setLayout(new BoxLayout(buttons,BoxLayout.X_AXIS)); buttons.setBorder(new EmptyBorder(6,0,0,0)); buttons.add(Box.createGlue()); add = new JButton(jEdit.getProperty("options.abbrevs.add")); add.addActionListener(actionHandler); buttons.add(add); buttons.add(Box.createHorizontalStrut(6)); edit = new JButton(jEdit.getProperty("options.abbrevs.edit")); edit.addActionListener(actionHandler); buttons.add(edit); buttons.add(Box.createHorizontalStrut(6)); remove = new JButton(jEdit.getProperty("options.abbrevs.remove")); remove.addActionListener(actionHandler); buttons.add(remove); buttons.add(Box.createGlue()); add(BorderLayout.SOUTH,buttons); updateEnabled(); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/5f34288ccd67fa22f1e587d746ebca6c12fa4323/AbbrevsOptionPane.java/buggy/org/gjt/sp/jedit/options/AbbrevsOptionPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
389,
2738,
1435,
202,
95,
202,
202,
542,
3744,
12,
2704,
30814,
10663,
202,
202,
46,
5537,
6594,
273,
394,
24048,
12,
2704,
30814,
12,
26,
16,
26,
10019,
202,
202,
12320... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
2738,
1435,
202,
95,
202,
202,
542,
3744,
12,
2704,
30814,
10663,
202,
202,
46,
5537,
6594,
273,
394,
24048,
12,
2704,
30814,
12,
26,
16,
26,
10019,
202,
202,
12320... |
if (totalSkeletons.size() != 0) { System.out.println("Total Skeletons" + totalSkeletons); } | public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); UOption.parseArgs(args, options); if (options[HELP1].doesOccur || options[HELP2].doesOccur) { System.out.println(HELP_TEXT); return; } checkSuboptions(options[FIX], allFixOptions); checkSuboptions(options[JOIN_ARGS], allMergeOptions); //String sourceDir = "C:\\ICU4C\\locale\\common\\main\\"; String mergeDir = options[JOIN].value; // Utility.COMMON_DIRECTORY + "main/"; String sourceDir = options[SOURCEDIR].value; // Utility.COMMON_DIRECTORY + "main/"; String targetDir = options[DESTDIR].value; // Utility.GEN_DIRECTORY + "main/"; boolean makeResolved = options[RESOLVE].doesOccur; // Utility.COMMON_DIRECTORY + "main/"; Log.setLog(targetDir + "log.txt"); try { //String[] failureLines = new String[2]; SimpleLineComparator lineComparer = new SimpleLineComparator( //SimpleLineComparator.SKIP_SPACES + SimpleLineComparator.TRIM + SimpleLineComparator.SKIP_EMPTY + SimpleLineComparator.SKIP_CVS_TAGS); Factory cldrFactory = Factory.make(sourceDir, ".*"); if (options[VET_ADD].doesOccur) { VettingAdder va = new VettingAdder(options[VET_ADD].value); va.showFiles(cldrFactory, targetDir); return; } //testMinimize(cldrFactory); //if (true) return; Factory mergeFactory = null; String join_prefix = "", join_postfix = ""; if (options[JOIN].doesOccur) { File temp = new File(mergeDir); mergeDir = temp.getParent() + File.separator; String filename = temp.getName(); join_prefix = join_postfix = ""; int pos = filename.indexOf("*"); if (pos >= 0) { join_prefix = filename.substring(0,pos); join_postfix = filename.substring(pos+1); } mergeFactory = Factory.make(mergeDir, ".*"); } /* Factory cldrFactory = Factory.make(sourceDir, ".*"); Set testSet = cldrFactory.getAvailable(); String[] quicktest = new String[] { "de" //"ar", "dz_BT", // "sv", "en", "de" }; if (quicktest.length > 0) { testSet = new TreeSet(Arrays.asList(quicktest)); } */ Set locales = new TreeSet(cldrFactory.getAvailable()); if (mergeFactory != null) { Set temp = new TreeSet(mergeFactory.getAvailable()); Set locales3 = new TreeSet(); for (Iterator it = temp.iterator(); it.hasNext();) { String locale = (String)it.next(); if (!locale.startsWith(join_prefix) || !locale.endsWith(join_postfix)) continue; locales3.add(locale.substring(join_prefix.length(), locale.length() - join_postfix.length())); } locales.retainAll(locales3); System.out.println("Merging: " + locales3); } new Utility.MatcherFilter(options[MATCH].value).retainAll(locales); for (Iterator it = locales.iterator(); it.hasNext();) { String test = (String) it.next(); //testJavaSemantics(); // TODO parameterize the directory and filter //System.out.println("C:\\ICU4C\\locale\\common\\main\\fr.xml"); CLDRFile k = (CLDRFile) cldrFactory.make(test, makeResolved).cloneAsThawed();// System.out.println(k);// String s1 = "//ldml/segmentations/segmentation[@type=\"LineBreak\"]/variables/variable[@_q=\"0061\"][@id=\"$CB\"] ";// String s2 = "//ldml/segmentations/segmentation[@type=\"LineBreak\"]/variables/variable[@_q=\"003A\"][@id=\"$CB\"]";// System.out.println(k.ldmlComparator.compare(s1, s2)); if (mergeFactory != null) { int mergeOption = k.MERGE_ADD_ALTERNATE; CLDRFile toMergeIn = (CLDRFile) mergeFactory.make(join_prefix + test + join_postfix, false).cloneAsThawed(); if (toMergeIn != null) { if (options[JOIN_ARGS].doesOccur) { if (options[JOIN_ARGS].value.indexOf("r") >= 0) mergeOption = k.MERGE_REPLACE_MY_DRAFT; if (options[JOIN_ARGS].value.indexOf("c") >= 0) toMergeIn.clearComments(); if (options[JOIN_ARGS].value.indexOf("x") >= 0) removePosix(toMergeIn); } if (mergeOption == k.MERGE_ADD_ALTERNATE) toMergeIn.makeDraft(); k.putAll(toMergeIn, mergeOption); } // special fix k.removeComment(" The following are strings that are not found in the locale (currently), but need valid translations for localizing timezones. "); } if (options[FIX].doesOccur) { fix(k, options[FIX].value.toLowerCase(), cldrFactory); } if (options[MINIMIZE].doesOccur) { // TODO, fix identity String parent = CLDRFile.getParent(test); if (parent != null) { CLDRFile toRemove = cldrFactory.make(parent, true); k.removeDuplicates(toRemove, COMMENT_REMOVALS); } } //System.out.println(CLDRFile.getAttributeOrder()); /*if (false) { Map tempComments = k.getXpath_comments(); for (Iterator it2 = tempComments.keySet().iterator(); it2.hasNext();) { String key = (String) it2.next(); String comment = (String) tempComments.get(key); Log.logln("Writing extra comment: " + key); System.out.println(key + "\t comment: " + comment); } }*/ PrintWriter pw = BagFormatter.openUTF8Writer(targetDir, test + ".xml"); String testPath = "//ldml/dates/calendars/calendar[@type=\"persian\"]/months/monthContext[@type=\"format\"]/monthWidth[@type=\"abbreviated\"]/month[@type=\"1\"]"; if (false) { System.out.println("Printing Raw File:"); testPath = "//ldml/dates/calendars/calendar[@type=\"persian\"]/months/monthContext[@type=\"format\"]/monthWidth[@type=\"abbreviated\"]/alias"; System.out.println(k.getStringValue(testPath)); //System.out.println(k.getFullXPath(testPath)); Iterator it4 = k.iterator(); Set s = (Set)CollectionUtilities.addAll(it4, new TreeSet()); System.out.println(k.getStringValue(testPath)); //if (true) return; Set orderedSet = new TreeSet(CLDRFile.ldmlComparator); CollectionUtilities.addAll(k.iterator(), orderedSet); for (Iterator it3 = orderedSet.iterator(); it3.hasNext();) { String path = (String) it3.next(); //System.out.println(path); if (path.equals(testPath)) { System.out.println("huh?"); } String value = k.getStringValue(path); String fullpath = k.getFullXPath(path); System.out.println("\t=\t" + fullpath); System.out.println("\t=\t" + value); } System.out.println("Done Printing Raw File:"); } k.write(pw); pw.println(); pw.close(); Utility.generateBat(sourceDir, test + ".xml", targetDir, test + ".xml", lineComparer); if (totalSkeletons.size() != 0) { System.out.println("Total Skeletons" + totalSkeletons); } /* boolean ok = Utility.areFileIdentical(sourceDir + test + ".xml", targetDir + test + ".xml", failureLines, Utility.TRIM + Utility.SKIP_SPACES); if (!ok) { System.out.println("Found differences at: "); System.out.println("\t" + failureLines[0]); System.out.println("\t" + failureLines[1]); } */ } } finally { Log.close(); System.out.println("Done -- Elapsed time: " + ((System.currentTimeMillis() - startTime)/60000.0) + " minutes"); } } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/057bb5a6c887e593a125484307800253a4dd03ca/CLDRModify.java/clean/tools/java/org/unicode/cldr/tool/CLDRModify.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
202,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
3639,
587,
1895,
18,
2670,
2615,
12,
1968,
16,
702,
1769,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
1185,
288,
202,
202,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
3639,
587,
1895,
18,
2670,
2615,
12,
1968,
16,
702,
1769,
3639... | |
makePathLoadable(path.getParent(), container.getDeclaredFetchedPaths()); | makePathLoadable(map, path.getParent(), container.getDeclaredFetchedPaths()); | private void addDefaultProperties(Path path) { ObjectType type = getType(path); addFetchedPaths(path, type); if (!isSource(path)) { Root root = type.getRoot(); Property prop = getProperty(path); // assume that path.getParent() is keyed ObjectMap container = root.getObjectMap(prop.getContainer()); if (container != null) { makePathLoadable(path.getParent(), container.getDeclaredFetchedPaths()); } } } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/26925610c87ce9964c612185670732829234ccb1/Signature.java/buggy/archive/eng/src/com/redhat/persistence/Signature.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
28297,
2297,
12,
743,
589,
13,
288,
3639,
21338,
618,
273,
3130,
12,
803,
1769,
3639,
527,
30771,
4466,
12,
803,
16,
618,
1769,
3639,
309,
16051,
291,
1830,
12,
803,
3719,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
28297,
2297,
12,
743,
589,
13,
288,
3639,
21338,
618,
273,
3130,
12,
803,
1769,
3639,
527,
30771,
4466,
12,
803,
16,
618,
1769,
3639,
309,
16051,
291,
1830,
12,
803,
3719,
28... |
workbenchWindow = window; | this.site = site; | public OperationHistoryActionHandler(IWorkbenchWindow window, IUndoContext context) { // string will be reset inside action super(""); //$NON-NLS-1$ workbenchWindow = window; undoContext = context; getHistory().addOperationHistoryListener(this); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c5bc2e0c8b2f8ab5abdf74d2c30f8849d1acac3e/OperationHistoryActionHandler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/operations/OperationHistoryActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4189,
5623,
1803,
1503,
12,
45,
2421,
22144,
3829,
2742,
16,
1082,
202,
45,
31224,
1042,
819,
13,
288,
202,
202,
759,
533,
903,
506,
2715,
4832,
1301,
202,
202,
9565,
2932,
88... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4189,
5623,
1803,
1503,
12,
45,
2421,
22144,
3829,
2742,
16,
1082,
202,
45,
31224,
1042,
819,
13,
288,
202,
202,
759,
533,
903,
506,
2715,
4832,
1301,
202,
202,
9565,
2932,
88... |
if (connection.haveMinimumCompatibleVersion("7.2")) { | } else if (connection.haveMinimumCompatibleVersion("7.2")) { | public byte[] getBytes(int columnIndex) throws SQLException { if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); //If the data is already binary then just return it if (binaryCursor) return this_row[columnIndex - 1]; if (connection.haveMinimumCompatibleVersion("7.2")) { //Version 7.2 supports the bytea datatype for byte arrays return PGbytea.toBytes(getString(columnIndex)); } else { //Version 7.1 and earlier supports LargeObjects for byte arrays wasNullFlag = (this_row[columnIndex - 1] == null); // Handle OID's as BLOBS if (!wasNullFlag) { if ( fields[columnIndex - 1].getOID() == 26) { LargeObjectManager lom = connection.getLargeObjectAPI(); LargeObject lob = lom.open(getInt(columnIndex)); byte buf[] = lob.read(lob.size()); lob.close(); return buf; } } } return null; } | 46312 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46312/512a3aef36591386640f34866c1acbe58c20ca6e/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
8425,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1160,
8526,
8425,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1082,
202,
12849,
394,
453,
23116,
29... |
postItemEvent (label, stateChange); | if( selected != index ) { selected = index; postItemEvent (((Choice) awtComponent).getItem( selected ), ItemEvent.SELECTED); } | protected void postChoiceItemEvent (String label, int stateChange) { postItemEvent (label, stateChange); } | 27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/de1def922d61f2c8775ff796242c973408a67856/GtkChoicePeer.java/buggy/libjava/classpath/gnu/java/awt/peer/gtk/GtkChoicePeer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1603,
10538,
1180,
1133,
261,
780,
1433,
16,
509,
919,
3043,
13,
225,
288,
565,
309,
12,
3170,
480,
770,
262,
288,
3170,
273,
770,
31,
1603,
1180,
1133,
261,
12443,
10538,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1603,
10538,
1180,
1133,
261,
780,
1433,
16,
509,
919,
3043,
13,
225,
288,
565,
309,
12,
3170,
480,
770,
262,
288,
3170,
273,
770,
31,
1603,
1180,
1133,
261,
12443,
10538,
13... |
java.sql.Date date) throws ConversionException { | java.sql.Date date) throws SqlException { | public static final int dateToTimestampBytes(byte[] buffer, int offset, java.sql.Date date) throws ConversionException { int year = date.getYear() + 1900; if (year > 9999) { throw new ConversionException("Year exceeds the maximum \"9999\"."); } int month = date.getMonth() + 1; int day = date.getDate(); char[] timestampChars = new char[DateTime.timestampRepresentationLength]; int zeroBase = (int) '0'; timestampChars[0] = (char) (year / 1000 + zeroBase); timestampChars[1] = (char) ((year % 1000) / 100 + zeroBase); timestampChars[2] = (char) ((year % 100) / 10 + zeroBase); timestampChars[3] = (char) (year % 10 + +zeroBase); timestampChars[4] = '-'; timestampChars[5] = (char) (month / 10 + zeroBase); timestampChars[6] = (char) (month % 10 + zeroBase); timestampChars[7] = '-'; timestampChars[8] = (char) (day / 10 + zeroBase); timestampChars[9] = (char) (day % 10 + zeroBase); timestampChars[10] = '-'; timestampChars[11] = '0'; timestampChars[12] = '0'; timestampChars[13] = '.'; timestampChars[14] = '0'; timestampChars[15] = '0'; timestampChars[16] = '.'; timestampChars[17] = '0'; timestampChars[18] = '0'; timestampChars[19] = '.'; timestampChars[20] = '0'; timestampChars[21] = '0'; timestampChars[22] = '0'; timestampChars[23] = '0'; timestampChars[24] = '0'; timestampChars[25] = '0'; byte[] timestampBytes = (new String(timestampChars)).getBytes(); System.arraycopy(timestampBytes, 0, buffer, offset, DateTime.timestampRepresentationLength); return DateTime.timestampRepresentationLength; } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/5d2e2bd29eb5bd4f933f513976a0886c1988c89d/DateTime.java/clean/java/client/org/apache/derby/client/am/DateTime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
509,
1509,
774,
4921,
2160,
12,
7229,
8526,
1613,
16,
4766,
1171,
509,
1384,
16,
4766,
1171,
2252,
18,
4669,
18,
1626,
1509,
13,
1216,
8855,
503,
288,
3639,
509,
3286,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
509,
1509,
774,
4921,
2160,
12,
7229,
8526,
1613,
16,
4766,
1171,
509,
1384,
16,
4766,
1171,
2252,
18,
4669,
18,
1626,
1509,
13,
1216,
8855,
503,
288,
3639,
509,
3286,
2... |
return CWordFinder.findWord(textViewer.getDocument(), offset); | if (textViewer != null) { /* * If the hover offset falls within the selection range return the * region for the whole selection. */ Point selectedRange = textViewer.getSelectedRange(); if (selectedRange.x >= 0 && selectedRange.y > 0 && offset >= selectedRange.x && offset <= selectedRange.x + selectedRange.y) return new Region(selectedRange.x, selectedRange.y); else { return CWordFinder.findWord(textViewer.getDocument(), offset); } } return null; | public IRegion getHoverRegion(ITextViewer textViewer, int offset) { return CWordFinder.findWord(textViewer.getDocument(), offset); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/da21b108846414112f482bc83d071fba5b66087a/AbstractCEditorTextHover.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/c/hover/AbstractCEditorTextHover.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
5165,
7628,
1643,
5165,
12,
1285,
408,
18415,
977,
18415,
16,
509,
1384,
13,
288,
202,
202,
2463,
385,
3944,
8441,
18,
4720,
3944,
12,
955,
18415,
18,
588,
2519,
9334,
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,
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,
467,
5165,
7628,
1643,
5165,
12,
1285,
408,
18415,
977,
18415,
16,
509,
1384,
13,
288,
202,
202,
2463,
385,
3944,
8441,
18,
4720,
3944,
12,
955,
18415,
18,
588,
2519,
9334,
13... |
Menu subMenu= null; | public void fill(Menu parent, int index) { if (widget == null && parent != null) { Menu subMenu= null; int flags = SWT.PUSH; if (action != null) { int style = action.getStyle(); if (style == IAction.AS_CHECK_BOX) flags= SWT.CHECK; else if (style == IAction.AS_RADIO_BUTTON) flags = SWT.RADIO; else if (style == IAction.AS_DROP_DOWN_MENU) { IMenuCreator mc = action.getMenuCreator(); subMenu = mc.getMenu(parent); flags = SWT.CASCADE; } } MenuItem mi = null; if (index >= 0) mi = new MenuItem(parent, flags, index); else mi = new MenuItem(parent, flags); widget = mi; parentWidget = parent; mi.setData(this); mi.addListener(SWT.Arm, listener); mi.addListener(SWT.Dispose, listener); mi.addListener(SWT.Selection, listener); if (action.getHelpListener() != null) mi.addHelpListener(action.getHelpListener()); if (subMenu != null) mi.setMenu(subMenu); update(null); action.addPropertyChangeListener(listener); }} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/07914a591ba156920e72b7747202ad2e35397872/ActionContributionItem.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/action/ActionContributionItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
3636,
12,
4599,
982,
16,
509,
770,
13,
288,
202,
430,
261,
6587,
422,
446,
597,
982,
480,
446,
13,
288,
202,
202,
4599,
720,
4599,
33,
446,
31,
202,
202,
474,
2943,
273,
348,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3636,
12,
4599,
982,
16,
509,
770,
13,
288,
202,
430,
261,
6587,
422,
446,
597,
982,
480,
446,
13,
288,
202,
202,
4599,
720,
4599,
33,
446,
31,
202,
202,
474,
2943,
273,
348,
... | |
ModelList<ReducedToken>.Iterator delFrom, ModelList<ReducedToken>.Iterator delTo) { if (count >0){ int endOffset = -1; try { endOffset = _move(count,delTo, offset); } catch (Exception e) { throw new IllegalArgumentException("Trying to delete" + " past end of file."); } return _deleteRight(offset, endOffset,delFrom, delTo); } else { int startOffset = -1; try { startOffset = _move(count,delFrom, offset); } catch (Exception e) { throw new IllegalArgumentException("Trying to delete" + " past end of file."); } return _deleteRight(startOffset,offset, delFrom, delTo); } } | ModelList<ReducedToken>.Iterator delFrom, ModelList<ReducedToken>.Iterator delTo) { if (count >0) { int endOffset = -1; try { endOffset = _move(count,delTo, offset); } catch (Exception e) { throw new IllegalArgumentException("Trying to delete" + " past end of file."); } return _deleteRight(offset, endOffset,delFrom, delTo); } else { int startOffset = -1; try { startOffset = _move(count,delFrom, offset); } catch (Exception e) { throw new IllegalArgumentException("Trying to delete" + " past end of file."); } return _deleteRight(startOffset,offset, delFrom, delTo); } } | private int _delete(int count, int offset, ModelList<ReducedToken>.Iterator delFrom, ModelList<ReducedToken>.Iterator delTo) { //gaurentees that its possible to delete count characters if (count >0){ int endOffset = -1; try { endOffset = _move(count,delTo, offset); } catch (Exception e) { throw new IllegalArgumentException("Trying to delete" + " past end of file."); } return _deleteRight(offset, endOffset,delFrom, delTo); } else {//(count < 0) int startOffset = -1; try { startOffset = _move(count,delFrom, offset); } catch (Exception e) { throw new IllegalArgumentException("Trying to delete" + " past end of file."); } return _deleteRight(startOffset,offset, delFrom, delTo); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/0d5978f95b9d81515ff8908c4d2b74c1df5a1255/ReducedModelComment.java/clean/drjava/src/edu/rice/cs/drjava/ReducedModelComment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
389,
3733,
12,
474,
1056,
16,
509,
1384,
16,
6862,
6862,
1082,
202,
1488,
682,
32,
16911,
3263,
1345,
18652,
3198,
1464,
1265,
16,
6862,
6862,
1082,
202,
1488,
682,
32,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
389,
3733,
12,
474,
1056,
16,
509,
1384,
16,
6862,
6862,
1082,
202,
1488,
682,
32,
16911,
3263,
1345,
18652,
3198,
1464,
1265,
16,
6862,
6862,
1082,
202,
1488,
682,
32,
... |
properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "0"); | public static Properties getRiProperties(boolean autoDialog) { // TODO collect all system properties // prefixed javax.sip.tck.ri and add them to the local // properties object Properties properties = new Properties(); // IP_ADDRESS is deprecated as of jsip 1.2. // Each listening point associated with a stack has its own IP address. properties.setProperty("javax.sip.STACK_NAME", "RiStack"); // properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "0"); properties.setProperty("gov.nist.javax.sip.TRACE_LEVEL", "0"); properties.setProperty("gov.nist.javax.sip.DEBUG_LOG", "logs/riDebugLog.txt"); properties.setProperty("gov.nist.javax.sip.SERVER_LOG", "logs/riMessageLog.txt"); // JvB: Most TCK tests dont work well with automatic dialog support // enabled // Disable it for the moment properties.setProperty("javax.sip.AUTOMATIC_DIALOG_SUPPORT", autoDialog ? "ON" : "OFF"); // JvB: for testing of ACK to non-2xx properties.setProperty( "gov.nist.javax.sip.PASS_INVITE_NON_2XX_ACK_TO_LISTENER", "true"); return properties; } | 3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/0f8b6f89ad83ac48d73091fd42eb97bb1aaa44e4/TestHarness.java/clean/src/test/tck/TestHarness.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
6183,
4170,
77,
2297,
12,
6494,
3656,
6353,
13,
288,
202,
202,
759,
2660,
3274,
777,
2619,
1790,
202,
202,
759,
12829,
6863,
18,
28477,
18,
88,
363,
18,
566,
471,
527,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
6183,
4170,
77,
2297,
12,
6494,
3656,
6353,
13,
288,
202,
202,
759,
2660,
3274,
777,
2619,
1790,
202,
202,
759,
12829,
6863,
18,
28477,
18,
88,
363,
18,
566,
471,
527,
... | |
if (jj_3R_111()) return true; | if (jj_3R_106()) return true; | final private boolean jj_3R_71() { Token xsp; xsp = jj_scanpos; if (jj_scan_token(59)) { jj_scanpos = xsp; if (jj_3R_111()) return true; } return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/1d8de6b34ea0ddb64fc94b478c0950c0d35de605/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
11212,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
6162,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
11212,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
6162,... |
return new PropertiesFunDef(name, signature, description, syntacticType, returnType, argTypes); | public FunDef resolve(Exp[] args, int[] conversionCount) { final int[] argTypes = new int[]{Category.Member, Category.String}; if (args.length != 2 || args[0].getType() != Category.Member || args[1].getType() != Category.String) { return null; } int returnType; if (args[1] instanceof Literal) { String propertyName = (String) ((Literal) args[1]).getValue(); Hierarchy hierarchy = args[0].getHierarchy(); Level[] levels = hierarchy.getLevels(); Property property = lookupProperty( levels[levels.length - 1], propertyName); if (property == null) { // we'll likely get a runtime error returnType = Category.Value; } else { switch (property.getType()) { case Property.TYPE_BOOLEAN: returnType = Category.Logical; break; case Property.TYPE_NUMERIC: returnType = Category.Numeric; break; case Property.TYPE_STRING: returnType = Category.String; break; default: throw Util.newInternal("Unknown property type " + property.getType()); } } } else { returnType = Category.Value; } return new PropertiesFunDef(name, signature, description, syntacticType, returnType, argTypes); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/be5cbf35035318846261fc9706b0dadd4c54e1a5/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
478,
318,
3262,
2245,
12,
2966,
8526,
833,
16,
509,
8526,
4105,
1380,
13,
288,
9506,
202,
6385,
509,
8526,
30973,
273,
394,
509,
63,
7073,
4457,
18,
4419,
16,
9856,
18,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
478,
318,
3262,
2245,
12,
2966,
8526,
833,
16,
509,
8526,
4105,
1380,
13,
288,
9506,
202,
6385,
509,
8526,
30973,
273,
394,
509,
63,
7073,
4457,
18,
4419,
16,
9856,
18,
780,
... | |
fw.write("\n(proj-root"); | fw.write("\n(proj-root-and-base"); | public void write() throws IOException { FileWriter fw = new FileWriter(_projectFile); // write opening comment line fw.write(";; DrJava project file, written by build " + Version.getBuildTimeString()); fw.write(";; relative files are made relative to: " + _projectFile.getCanonicalPath()); // write the project root if (_projectRoot != null) { fw.write("\n(proj-root");// Utilities.show("Writing project root = " + _projRoot); fw.write("\n" + encodeFile(_projectRoot, " ", true)); fw.write(")"); } else fw.write("\n;; no project root; should never happen"); // write source files if (!_sourceFiles.isEmpty()) { fw.write("\n(source"); for(DocFile df: _sourceFiles) { fw.write("\n" + encodeDocFile(df, " ")); } fw.write(")"); // close the source expression } else fw.write("\n;; no source files"); // write aux files if (!_auxFiles.isEmpty()) { fw.write("\n(auxiliary"); for(DocFile df: _auxFiles) { fw.write("\n" + encodeDocFile(df, " ", false)); } fw.write(")"); // close the auxiliary expression } else fw.write("\n;; no aux files"); // write collapsed paths if (!_collapsedPaths.isEmpty()) { fw.write("\n(collapsed"); for(String s: _collapsedPaths) { fw.write("\n (path " + convertToLiteral(s) + ")"); } fw.write(")"); // close the collapsed expression } else fw.write("\n;; no collapsed branches"); // write classpaths if (!_classPathFiles.isEmpty()) { fw.write("\n(classpaths"); for(File f: _classPathFiles) { fw.write("\n" + encodeFile(f, " ", false)); } fw.write(")"); // close the classpaths expression } else fw.write("\n;; no classpaths files"); // write the build directory if (_buildDir != null && _buildDir.getPath() != "") { fw.write("\n(build-dir"); fw.write("\n" + encodeFile(_buildDir, " ", true)); fw.write(")"); } else fw.write("\n;; no build directory"); // write the working directory if (_workDir != null && _workDir.getPath() != "") { fw.write("\n(work-dir"); fw.write("\n" + encodeFile(_workDir, " ", true)); fw.write(")"); } else fw.write("\n;; no working directory"); // write the main class if (_mainClass != null) { fw.write("\n(main-class"); fw.write("\n" + encodeFile(_mainClass, " ", true)); fw.write(")"); } else fw.write("\n;; no main class"); // write the create jar file if (_createJarFile != null) { fw.write("\n(create-jar-file"); fw.write("\n" + encodeFile(_createJarFile, " ", true)); fw.write(")"); } else fw.write("\n;; no create jar file"); // write the create jar flags if (_createJarFlags != 0) { fw.write("\n(create-jar-flags " + _createJarFlags + ")"); } else fw.write("\n;; no create jar flags"); // write breakpoints if (!_breakpoints.isEmpty()) { fw.write("\n(breakpoints"); for(DebugBreakpointData bp: _breakpoints) { fw.write("\n" + encodeBreakpoint(bp, " ")); } fw.write(")"); // close the breakpoints expression } else fw.write("\n;; no breakpoints"); // write watches if (!_watches.isEmpty()) { fw.write("\n(watches"); for(DebugWatchData w: _watches) { fw.write("\n" + encodeWatch(w, " ")); } fw.write(")"); // close the watches expression } else fw.write("\n;; no watches"); fw.close(); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/94ede5fc3e289a571a76fcd6a91c26510fe57b12/ProjectProfile.java/buggy/drjava/src/edu/rice/cs/drjava/project/ProjectProfile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1045,
1435,
1216,
1860,
288,
565,
24639,
7600,
273,
394,
24639,
24899,
4406,
812,
1769,
3639,
368,
1045,
10890,
2879,
980,
565,
7600,
18,
2626,
2932,
25708,
11473,
5852,
1984,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
1435,
1216,
1860,
288,
565,
24639,
7600,
273,
394,
24639,
24899,
4406,
812,
1769,
3639,
368,
1045,
10890,
2879,
980,
565,
7600,
18,
2626,
2932,
25708,
11473,
5852,
1984,
58... |
aClasspath.append( new Path(aClasspath.getProject(), anOutputDirectoryFile.getPath())); aJavaTask.setClasspath(aClasspath); | if (secpropag) { aJavaTask.createArg().setValue("-secpropag"); } | private void buildJOnASJar(final String inBaseName, final File inSourceJar,final File inDestJar, final Hashtable someFiles,String inPublicId) { org.apache.tools.ant.taskdefs.Java aJavaTask = null; String aGenIcClassName = genicClass; boolean isOldGenIC = false; boolean isTempDirectory = false; File anOutputDirectoryFile = null; // do not call GenIC // only copy file if (noGENIC) { try { FileUtils.newFileUtils().copyFile(inSourceJar, inDestJar); return; } catch (IOException anIOException) { throw new BuildException("Unable to write EJB jar", anIOException); } } // call GenIC try { aJavaTask = (Java) getTask().getProject().createTask("java"); aJavaTask.setTaskName("genic"); if(aGenIcClassName == null) { aGenIcClassName = GENIC_CLASS; } else if( OLD_GENIC_CLASS.equals(aGenIcClassName) ){ isOldGenIC = true; } // ClassName aJavaTask.setClassname(aGenIcClassName); // JVM Args if( jonasroot == null ) { throw new BuildException("Error : set the jonasroot parameter"); } else if ( ! jonasroot.isDirectory() ) { log("jonasroot attribut '" + jonasroot + "' is not a valid directory", Project.MSG_ERR); } aJavaTask.createJvmarg().setValue("-Dinstall.root=" + jonasroot); File aJavaPolicyFile = new File(jonasroot,"config/java.policy"); if( aJavaPolicyFile.exists() ) { aJavaTask.createJvmarg().setValue("-Djava.security.policy=" + aJavaPolicyFile.toString() ); } // Find output directory if( ouputdirectory == null ) { anOutputDirectoryFile = createTempDir(); isTempDirectory = true; log("Use temporary output directory : " + anOutputDirectoryFile, Project.MSG_VERBOSE); } else { anOutputDirectoryFile = ouputdirectory; log("Use temporary specific output directory : " + anOutputDirectoryFile, Project.MSG_VERBOSE); } aJavaTask.createArg().setValue("-d"); aJavaTask.createArg().setFile(anOutputDirectoryFile); // Additionnal args aJavaTask.createArg().setLine(additionalArgs); // KeepGenerated if (keepgenerated) { aJavaTask.createArg().setValue("-keepgenerated"); } // Verbose if( verbose ) { aJavaTask.createArg().setValue("-verbose"); } // -secpropag if( secpropag ) { aJavaTask.createArg().setValue("-secpropag"); } // The compiler if (compiler == null) { // try to use the compiler specified by build.compiler. Right now we are just going // to allow Jikes String aBuildCompiler = getTask().getProject().getProperty("build.compiler"); if ("jikes".equals(aBuildCompiler) ) { aJavaTask.createArg().setValue("-javac"); aJavaTask.createArg().setValue("jikes"); } } else { if( ! "default".equals( compiler ) ) { aJavaTask.createArg().setValue("-javac"); aJavaTask.createArg().setLine(compiler); } } if( ! isOldGenIC ) { // the add in jar features is buggy... aJavaTask.createArg().setValue("-noaddinjar"); } aJavaTask.createArg().setValue(inSourceJar.getPath()); // try to create the classpath for the correct ORB Path aClasspath = getCombinedClasspath(); if( aClasspath == null ) { aClasspath = new Path(getTask().getProject()); } if( orb != null ) { String aOrbJar = new File(jonasroot,"lib/" + orb + "_jonas.jar").toString(); String aConfigDir = new File(jonasroot,"config/").toString(); Path aJOnASOrbPath = new Path(aClasspath.getProject(), aOrbJar + File.pathSeparator + aConfigDir ); aClasspath.append( aJOnASOrbPath ); } else { log("No ORB propertie setup (RMI, JEREMIE, DAVID).", Project.MSG_WARN); } // append the output directory aClasspath.append( new Path(aClasspath.getProject(), anOutputDirectoryFile.getPath())); aJavaTask.setClasspath(aClasspath); aJavaTask.setFork(true); log("Calling " + aGenIcClassName + " for " + inSourceJar.toString(), Project.MSG_VERBOSE); if (aJavaTask.executeJava() != 0) { throw new BuildException("GenIC reported an error"); } // Update the list of files. addAllFiles(anOutputDirectoryFile,"",someFiles); // rewrite the jar with the new files super.writeJar(inBaseName, inDestJar, someFiles, inPublicId); } catch(BuildException aBuildException) { throw aBuildException; } catch (Exception e) { // Have to catch this because of the semantics of calling main() String msg = "Exception while calling " + aGenIcClassName + ". Details: " + e.toString(); throw new BuildException(msg, e); } finally { if( isTempDirectory && anOutputDirectoryFile != null) { dellAllFiles(anOutputDirectoryFile); } else if( cleanWorkDir && anOutputDirectoryFile != null) { dellAllFilesInside(anOutputDirectoryFile); } } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/JonasDeploymentTool.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ejb/JonasDeploymentTool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1361,
46,
1398,
3033,
10813,
12,
6385,
514,
316,
29907,
16,
1171,
9079,
727,
1387,
316,
1830,
10813,
16,
6385,
1387,
316,
9378,
10813,
16,
1171,
9079,
727,
18559,
2690,
2697,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
46,
1398,
3033,
10813,
12,
6385,
514,
316,
29907,
16,
1171,
9079,
727,
1387,
316,
1830,
10813,
16,
6385,
1387,
316,
9378,
10813,
16,
1171,
9079,
727,
18559,
2690,
2697,
1... |
Thread allPacketListener = null; | PacketListener debugListener = null; | void init() throws XMPPException { try { reader = new InputStreamReader(socket.getInputStream(), "UTF-8"); writer = new OutputStreamWriter(socket.getOutputStream(), "UTF-8"); } catch (IOException ioe) { throw new XMPPException("Error establishing connection with server.", ioe); } // If debugging is enabled, we open a window and write out all network traffic. // The method that creates the debug GUI returns a thread that we must start after // the packet reader and writer are created. Thread allPacketListener = null; if (DEBUG_ENABLED) { allPacketListener = createDebug(); } packetWriter = new PacketWriter(this); packetReader = new PacketReader(this); // If debugging is enabled, we should start the thread that will listen for // all packets and then log them. if (DEBUG_ENABLED) { allPacketListener.start(); } // Start the packet writer. This will open a Jabber stream to the server packetWriter.startup(); // Start the packet reader. The startup() method will block until we // get an opening stream packet back from server. packetReader.startup(); // Make note of the fact that we're now connected. connected = true; } | 45655 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45655/8322f022cc37af636f66293d18cb9077ef27b4e1/XMPPConnection.java/buggy/source/org/jivesoftware/smack/XMPPConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1208,
1435,
1216,
23216,
503,
288,
3639,
775,
288,
5411,
2949,
273,
394,
15322,
12,
7814,
18,
588,
4348,
9334,
315,
5159,
17,
28,
8863,
5411,
2633,
273,
394,
24248,
12,
7814,
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,
377,
918,
1208,
1435,
1216,
23216,
503,
288,
3639,
775,
288,
5411,
2949,
273,
394,
15322,
12,
7814,
18,
588,
4348,
9334,
315,
5159,
17,
28,
8863,
5411,
2633,
273,
394,
24248,
12,
7814,
18,
5... |
else if (to == ScriptRuntime.ObjectClass) { | else if (to == ScriptRuntime.ObjectClass || to == ScriptRuntime.SerializableClass || to == ScriptRuntime.ComparableClass) { | public static int getConversionWeight(Object fromObj, Class to) { int fromCode = NativeJavaObject.getJSTypeCode(fromObj); int result = CONVERSION_NONE; switch (fromCode) { case JSTYPE_UNDEFINED: if (to == ScriptRuntime.StringClass || to == ScriptRuntime.ObjectClass) { result = 1; } break; case JSTYPE_NULL: if (!to.isPrimitive()) { result = 1; } break; case JSTYPE_BOOLEAN: // "boolean" is #1 if (to == Boolean.TYPE) { result = 1; } else if (to == ScriptRuntime.BooleanClass) { result = 2; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_NUMBER: if (to.isPrimitive()) { if (to == Double.TYPE) { result = 1; } else if (to != Boolean.TYPE) { result = 1 + NativeJavaObject.getSizeRank(to); } } else { if (to == ScriptRuntime.StringClass) { // native numbers are #1-8 result = 9; } else if (to == ScriptRuntime.ObjectClass) { result = 10; } else if (ScriptRuntime.NumberClass.isAssignableFrom(to)) { // "double" is #1 result = 2; } } break; case JSTYPE_STRING: if (to == ScriptRuntime.StringClass) { result = 1; } else if (to == ScriptRuntime.ObjectClass) { result = 2; } else if (to.isPrimitive() && to != Boolean.TYPE) { if (to == Character.TYPE) { result = 3; } else { result = 4; } } break; case JSTYPE_JAVA_CLASS: if (to == ScriptRuntime.ClassClass) { result = 1; } else if (Context.useJSObject && jsObjectClass != null && jsObjectClass.isAssignableFrom(to)) { result = 2; } else if (to == ScriptRuntime.ObjectClass) { result = 3; } else if (to == ScriptRuntime.StringClass) { result = 4; } break; case JSTYPE_JAVA_OBJECT: case JSTYPE_JAVA_ARRAY: if (to == ScriptRuntime.StringClass) { result = 2; } else if (to.isPrimitive() && to != Boolean.TYPE) { result = (fromCode == JSTYPE_JAVA_ARRAY) ? CONVERSION_NONTRIVIAL : 2 + NativeJavaObject.getSizeRank(to); } else { Object javaObj = fromObj; if (javaObj instanceof Wrapper) { javaObj = ((Wrapper)javaObj).unwrap(); } if (to.isInstance(javaObj)) { result = CONVERSION_NONTRIVIAL; } } break; case JSTYPE_OBJECT: // Other objects takes #1-#3 spots if (Context.useJSObject && jsObjectClass != null && jsObjectClass.isAssignableFrom(to)) { result = 1; } else if (fromObj instanceof NativeArray && to.isArray()) { // This is a native array conversion to a java array // Array conversions are all equal, and preferable to object // and string conversion, per LC3. result = 1; } else if (to == ScriptRuntime.ObjectClass) { result = 2; } else if (to == ScriptRuntime.StringClass) { result = 3; } else if (to.isPrimitive() || to != Boolean.TYPE) { result = 3 + NativeJavaObject.getSizeRank(to); } break; } return result; } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/4e33617219770a00bbcd8fe7b04103c1bd5e4791/NativeJavaObject.java/clean/src/org/mozilla/javascript/NativeJavaObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
16717,
5852,
921,
18,
588,
6479,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
509,
336,
6814,
6544,
12,
921,
628,
2675,
16,
1659,
358,
13,
288,
3639,
509,
628,
1085,
273,
16717,
5852,
921,
18,
588,
6479,
15460,
12,
2080,
2675,
1769,
3639,
509,
563,
273... |
public static String jsFunction_join(Context cx, Scriptable thisObj, Object[] args, Function funObj) | private static String jsFunction_join(Context cx, Scriptable thisObj, Object[] args) | public static String jsFunction_join(Context cx, Scriptable thisObj, Object[] args, Function funObj) { StringBuffer result = new StringBuffer(); String separator; double length = getLengthProperty(thisObj); // if no args, use "," as separator if (args.length < 1) { separator = ","; } else { separator = ScriptRuntime.toString(args[0]); } for (long i=0; i < length; i++) { if (i > 0) result.append(separator); Object temp = getElem(thisObj, i); if (temp == null || temp == Undefined.instance) continue; result.append(ScriptRuntime.toString(temp)); } return result.toString(); } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeArray.java/clean/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3828,
2083,
67,
5701,
12,
1042,
9494,
16,
22780,
15261,
16,
29159,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
514,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
3828,
2083,
67,
5701,
12,
1042,
9494,
16,
22780,
15261,
16,
29159,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
565,
288,
3639,
6674,
563,
273,
394,
6674,
5621,
3639,
514,
... |
public org.quickfix.field.Currency getCurrency() throws FieldNotFound { org.quickfix.field.Currency value = new org.quickfix.field.Currency(); | public quickfix.field.Currency getCurrency() throws FieldNotFound { quickfix.field.Currency value = new quickfix.field.Currency(); | public org.quickfix.field.Currency getCurrency() throws FieldNotFound { org.quickfix.field.Currency value = new org.quickfix.field.Currency(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MassQuote.java/buggy/src/java/src/quickfix/fix42/MassQuote.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
7623,
17910,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
7623,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
762... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
7623,
17910,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
7623,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
762... |
return photoCollection; | if ( photoCollection != null ) { return photoCollection.getOrigCollection(); } return null; | public PhotoCollection getCollection() { return photoCollection; } | 50360 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50360/c7794652371a5124fc2d65417df9043a19bce8b2/PhotoCollectionThumbView.java/buggy/src/photovault/swingui/PhotoCollectionThumbView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26867,
2532,
12075,
1435,
288,
3639,
309,
261,
10701,
2532,
480,
446,
262,
288,
327,
10701,
2532,
18,
588,
4741,
2532,
5621,
289,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
26867,
2532,
12075,
1435,
288,
3639,
309,
261,
10701,
2532,
480,
446,
262,
288,
327,
10701,
2532,
18,
588,
4741,
2532,
5621,
289,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
... |
ctx.print("<input size=50 class='inputbox' "); ctx.print("onblur=\"if (value == '') {value = '" + UNKNOWNCHANGE + "'}\" onfocus=\"if (value == '" + UNKNOWNCHANGE + "') {value =''}\" "); ctx.print("value=\"" + ( (newString!=null) ? newString : UNKNOWNCHANGE ) + "\" name=\"" + fieldsToHtml(fieldName,fieldPath) + SUBNEW + "\">"); | if((mainDraft>0) || (prop!=null)) { ctx.print("<input size=50 class='inputbox' "); ctx.print("onblur=\"if (value == '') {value = '" + UNKNOWNCHANGE + "'}\" onfocus=\"if (value == '" + UNKNOWNCHANGE + "') {value =''}\" "); ctx.print("value=\"" + ( (newString!=null) ? newString : UNKNOWNCHANGE ) + "\" name=\"" + fieldsToHtml(fieldName,fieldPath) + SUBNEW + "\">"); } else { ctx.print("Item is incorrect."); } | public void showNodeList(WebContext ctx, String xpath, NodeSet mySet, NodeSet.NodeSetTexter tx) { final int CODES_PER_PAGE = 80; // was 51 int count = 0; int dispCount = 0; int total = 0; int skip = 0; total = mySet.count(); boolean sortAlpha = ctx.prefBool(PREF_SORTALPHA); Map sortedMap = mySet.getSorted(sortAlpha?tx:new DraftFirstTexter(tx)); String hashName = (xpath != null)?xpath:xOTHER; Hashtable changes = (Hashtable)ctx.getByLocale(hashName); if(tx == null) { tx = new NullTexter(); } // prepare a new hashtable if(changes==null) { changes = new Hashtable(); // ?? TODO: do we need to create a hashtable here? } // NAVIGATION .. calculate skips.. String str = ctx.field("skip"); if((str!=null)&&(str.length()>0)) { skip = new Integer(str).intValue(); } if(skip<=0) { skip = 0; } else { int prevSkip = skip - CODES_PER_PAGE; if(prevSkip<0) { prevSkip = 0; } ctx.println("<a href=\"" + ctx.url() + "&skip=" + new Integer(prevSkip) + "\">" + "Back..." + "</a><br/> "); if(skip>=total) { skip = 0; } } // calculat nextSkip int from = skip+1; int nextSkip = skip + CODES_PER_PAGE; if(nextSkip >= total) { nextSkip = -1; } else { ctx.println("<a href=\"" + ctx.url() + "&skip=" + new Integer(nextSkip) + "\">" + "More..." + "</a> "); } int to = from + CODES_PER_PAGE-1; if(to >= total) { to = total; } // Print navigation ctx.println("Displaying items " + from + " to " + to + " of " + total + "<br/>"); { WebContext nuCtx = new WebContext(ctx); nuCtx.addQuery(PREF_SORTALPHA, !sortAlpha); nuCtx.println("Sorted <a href='" + nuCtx.url() + "'>" + ((sortAlpha)?"Alphabetically":"Draft-first") + "</a><br/>"); } // Form: ctx.println("<form method=POST action='" + ctx.base() + "'>"); ctx.printUrlAsHiddenFields(); ctx.println("<table class='list' border=1>"); if(ctx.session.user != null) { ctx.println("<input type=submit value=Save>"); } ctx.println("<tr>"); ctx.println(" <th class='heading' bgcolor='#DDDDDD' colspan=2>Name<br/><tt>Code</tt></th>"); ctx.println(" <th class='heading' bgcolor='#DDDDDD' colspan=1>Best<br/>"); ctx.printHelpLink("/Best"); ctx.println("</th>"); ctx.println(" <th class='heading' bgcolor='#DDDDDD' colspan=1>Contents</th>"); ctx.println("</tr>"); // process items.. for(Iterator e = sortedMap.values().iterator();e.hasNext();) { NodeSet.NodeSetEntry f = (NodeSet.NodeSetEntry)e.next(); count++; if(skip > 0) { --skip; continue; } dispCount++; if(f.xpath != null) { ctx.println("<tr class='xpath'><td colspan=4>"+ f.xpath + "</td></tr>"); } String type = f.type; String base = ((xpath==null)?f.xpath:type); String main = null; String mainFallback = null; int mainDraft = 0; // count String prop = null; if(f.main != null) { main = LDMLUtilities.getNodeValue(f.main); if(f.mainDraft) { mainDraft = 1; // for now: one draft } } String fieldName = ((xpath!=null)?xpath:f.xpath); String fieldPath = ((xpath!=null)?type:null); int nRows = 1; // the 'new' line (user edited) nRows ++; // 'main' // are we showing a fallback locale in the 'current' slot? if( (f.fallback != null) && // if we have a fallback ( (mainDraft > 0) || (f.main == null) ) ) { mainFallback = f.fallbackLocale; if(mainDraft > 0) { nRows ++; // fallback } }else if (mainDraft > 0) { nRows ++; // for the Draft entry } if(f.proposed != null) { nRows ++; prop = LDMLUtilities.getNodeValue(f.proposed); } // Analyze user input. String checked = null; // What option has the user checked? String newString = null; // What option has the user checked? if(changes != null) { checked = (String)changes.get(base + SUBVETTING); // fetch VETTING data newString = (String)changes.get(base + SUBNEW); // fetch NEW data///*srl*/ ctx.println(":"+base+SUBVETTING + ":"); } if(checked == null) { checked = NOCHANGE; } ctx.println("<tr>"); // 1. name/code ctx.println("<th valign=top align=left class='name' colspan=2 rowspan=" + (nRows-1) + ">" + tx.text(f) + ""); if(f.key != null) { ctx.println("<br/><tt>(" + f.key + ")</tt>"); } ctx.println("</th>"); // Now there are a pair of columns for each of the following. // 2. fallback if(mainFallback != null) { ctx.println("<td align=right class='fallback'>"); ctx.println("from " + "<a href=\"" + ctx.base() + "?x=" + ctx.field("x") + "&_=" + mainFallback + "\">" + new ULocale(mainFallback).getDisplayName(inLocale) + "</a>"); writeRadio(ctx,fieldName,fieldPath,CURRENT,checked); ctx.println("</td>"); ctx.println("<td class='fallback'>"); ctx.println(LDMLUtilities.getNodeValue(f.fallback)); ctx.println("</td>"); } else if((main!=null)&&(mainDraft==0)) { ctx.println("<td align=right class='current'>"); ctx.println("current"); writeRadio(ctx,fieldName,fieldPath,CURRENT,checked); ctx.println("</td>"); ctx.println("<td class='current'>"); ctx.println(main); ctx.println("</td>"); } else /* if(main == null) */ { ctx.println("<td align=right class='missing'>"); ctx.println("<i>current</i>"); writeRadio(ctx,fieldName,fieldPath,CURRENT,checked); ctx.println("</td>"); ctx.println("<td title=\"Data missing - raw code shown.\" class='missing'><tt>"); ctx.println(type); // in typewriter <tt> to show that it is a code. ctx.println("</tt></td>"); } ctx.println("</tr>"); ctx.println("<tr>"); // Draft item if(mainDraft > 0) { ctx.println("<td align=right class='draft'>"); ctx.println("draft"); writeRadio(ctx,fieldName,fieldPath,DRAFT,checked); ctx.println("</td>"); ctx.println("<td class='draft'>"); ctx.println(main); ctx.println("</td>"); ctx.println("</tr>"); ctx.println("<tr>"); } // Proposed item if(prop != null) { ctx.println("<td align=right class='proposed'>"); ctx.println("proposed"); writeRadio(ctx,fieldName,fieldPath,PROPOSED,checked); ctx.println("</td>"); ctx.println("<td class='proposed'>"); ctx.println(prop); ctx.println("</td>"); ctx.println("</tr>"); ctx.println("<tr>"); } //'nochange' and type ctx.println("<th class='type'>"); ctx.println("<tt>" + type + "</tt>"); ctx.println("</th"); ctx.println("<td class='nochange'>"); writeRadio(ctx,fieldName,fieldPath,NOCHANGE,checked); ctx.println("<font size=-2>Don't care</font>"); ctx.println("</td>"); // edit text ctx.println("<td align=right class='new'>"); ctx.println("change"); writeRadio(ctx,fieldName,fieldPath,NEW,checked); ctx.println("</td>"); ctx.println("<td class='new'>"); String change = ""; if(changes != null) { // change = (String)changes.get(type + "//n"); } ctx.print("<input size=50 class='inputbox' "); ctx.print("onblur=\"if (value == '') {value = '" + UNKNOWNCHANGE + "'}\" onfocus=\"if (value == '" + UNKNOWNCHANGE + "') {value =''}\" "); ctx.print("value=\"" + ( (newString!=null) ? newString : UNKNOWNCHANGE ) + "\" name=\"" + fieldsToHtml(fieldName,fieldPath) + SUBNEW + "\">"); ctx.println("</td>"); ctx.println("</tr>"); ctx.println("<tr class='sep'><td class='sep' style='height: 3px; overflow: hidden;' colspan=4 bgcolor=\"#CCCCDD\"></td></tr>"); // ----- if(dispCount >= CODES_PER_PAGE) { break; } } ctx.println("</table>"); if(ctx.session.user != null) { ctx.println("<input type=submit value=Save>"); } ctx.println("</form>"); if(nextSkip >= 0) { ctx.println("<a href=\"" + ctx.url() + "&skip=" + new Integer(nextSkip) + "\">" + "More..." + "</a> "); } } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/5f353ad335dd19d28f3f7b57290fb92bb031c762/SurveyMain.java/clean/tools/java/org/unicode/cldr/web/SurveyMain.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2405,
19914,
12,
4079,
1042,
1103,
16,
514,
6748,
16,
2029,
694,
3399,
694,
16,
2029,
694,
18,
907,
694,
16733,
387,
2229,
13,
288,
3639,
727,
509,
11128,
55,
67,
3194,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2405,
19914,
12,
4079,
1042,
1103,
16,
514,
6748,
16,
2029,
694,
3399,
694,
16,
2029,
694,
18,
907,
694,
16733,
387,
2229,
13,
288,
3639,
727,
509,
11128,
55,
67,
3194,
67,
... |
AST __t739 = _t; AST tmp1280_AST_in = (AST)_t; | AST __t740 = _t; AST tmp1281_AST_in = (AST)_t; | public final void exportstate(AST _t) throws RecognitionException { AST exportstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t736 = _t; AST tmp1279_AST_in = (AST)_t; match(_t,EXPORT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STREAM: { stream_name(_t); _t = _retTree; break; } case EOF: case PERIOD: case DELIMITER: case EXCEPT: case Form_item: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DELIMITER: { AST __t739 = _t; AST tmp1280_AST_in = (AST)_t; match(_t,DELIMITER); _t = _t.getFirstChild(); constant(_t); _t = _retTree; _t = __t739; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case EXCEPT: case Form_item: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { _loop741: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Form_item)) { display_item(_t); _t = _retTree; } else { break _loop741; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EXCEPT: { AST __t743 = _t; AST tmp1281_AST_in = (AST)_t; match(_t,EXCEPT); _t = _t.getFirstChild(); { _loop745: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==Field_ref)) { fld1(_t,CQ.SYMBOL); _t = _retTree; } else { break _loop745; } } while (true); } _t = __t743; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOLOBS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOLOBS: { AST tmp1282_AST_in = (AST)_t; match(_t,NOLOBS); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t736; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3359,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3359,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
3359,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
3359,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... |
if (prefColor != null) { registry.put(id, prefColor); } | private static void installColor( ColorDefinition definition, ITheme theme, IPreferenceStore store) { ColorRegistry registry = theme.getColorRegistry(); String id = definition.getId(); String key = createPreferenceKey(theme, id); RGB prefColor = store != null ? PreferenceConverter.getColor(store, key) : null; RGB defaultColor = null; if (definition.getValue() != null) defaultColor = definition.getValue(); else defaultColor = registry.getRGB(definition.getDefaultsTo()); if (prefColor == null || prefColor == PreferenceConverter.COLOR_DEFAULT_DEFAULT) { prefColor = defaultColor; } if (defaultColor != null && store != null) { PreferenceConverter.setDefault( store, key, defaultColor); } if (prefColor != null) { registry.put(id, prefColor); } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d94edf054bdce936ee21432861f9b30b09bccff1/ThemeElementHelper.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/ThemeElementHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
3799,
2957,
12,
202,
202,
2957,
1852,
2379,
16,
202,
202,
1285,
76,
4698,
5006,
16,
202,
202,
45,
9624,
2257,
1707,
13,
288,
202,
565,
5563,
4243,
4023,
273,
5006,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
3799,
2957,
12,
202,
202,
2957,
1852,
2379,
16,
202,
202,
1285,
76,
4698,
5006,
16,
202,
202,
45,
9624,
2257,
1707,
13,
288,
202,
565,
5563,
4243,
4023,
273,
5006,
... | |
setCurrencySymbol (currency.getSymbol()); | this.currency = currency; intlCurrencySymbol = currency.getCurrencyCode(); currencySymbol = currency.getSymbol(); | public void setCurrency (Currency currency) { setCurrencySymbol (currency.getSymbol()); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/9e32ed4d0b771e0ed9b5a8daf23f7ad9df5afb15/DecimalFormatSymbols.java/buggy/core/src/classpath/java/java/text/DecimalFormatSymbols.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
7623,
261,
7623,
5462,
13,
225,
288,
565,
333,
18,
7095,
273,
5462,
31,
509,
80,
7623,
5335,
273,
5462,
18,
588,
28976,
5621,
5462,
5335,
273,
5462,
18,
588,
5335,
5621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
7623,
261,
7623,
5462,
13,
225,
288,
565,
333,
18,
7095,
273,
5462,
31,
509,
80,
7623,
5335,
273,
5462,
18,
588,
28976,
5621,
5462,
5335,
273,
5462,
18,
588,
5335,
5621,... |
setFileEditor(newEditor); | finally { myLastEvent = null; } | public void run() { if (psiManager.isDisposed()) { return; // project may have been closed } setFileEditor(newEditor); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/38863c3ffbeda1623941375e25d7f7bf85072111/StructureViewWrapperImpl.java/buggy/source/com/intellij/ide/impl/StructureViewWrapperImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
2868,
309,
261,
24275,
1318,
18,
291,
1669,
7423,
10756,
288,
7734,
327,
31,
368,
1984,
2026,
1240,
2118,
4375,
2868,
289,
2868,
3095,
288,
3399,
3024,
1133,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
2868,
309,
261,
24275,
1318,
18,
291,
1669,
7423,
10756,
288,
7734,
327,
31,
368,
1984,
2026,
1240,
2118,
4375,
2868,
289,
2868,
3095,
288,
3399,
3024,
1133,
... |
protected void debug(String str) { | protected void debug(String str) { | protected void debug(String str) { // TODO Auto-generated method stub } | 9764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9764/4b1c0901153e2bf5e27c87d2b4da7dde0b46c4fc/PluginLoaderImpl.java/clean/jadabs/bundles/pluginLoader/src/ch/ethz/jadabs/pluginLoader/PluginLoaderImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
1198,
12,
780,
609,
13,
288,
1377,
368,
2660,
8064,
17,
11168,
707,
7168,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
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,
565,
4750,
918,
1198,
12,
780,
609,
13,
288,
1377,
368,
2660,
8064,
17,
11168,
707,
7168,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
VM.sysWrite("VM_BaselineGCMapIterator getNextReturnAddressOffset = "); VM.sysWrite(mapOffset); VM.sysWrite(".\n"); | VM.sysWrite("VM_BaselineGCMapIterator getNextReturnAddressOffset mapId = "); VM.sysWrite(mapId); VM.sysWrite(".\n"); | VM_Address getNextReturnAddressAddress() { if (mapId >= 0) { if (VM.TraceStkMaps) { VM.sysWrite("VM_BaselineGCMapIterator getNextReturnAddressOffset mapId = "); VM.sysWrite(mapId); VM.sysWrite(".\n"); } return VM_Address.zero(); } mapOffset = maps.getNextJSRReturnAddr(mapOffset); if (VM.TraceStkMaps) { VM.sysWrite("VM_BaselineGCMapIterator getNextReturnAddressOffset = "); VM.sysWrite(mapOffset); VM.sysWrite(".\n"); } return (mapOffset == 0) ? VM_Address.zero() : framePtr.add(mapOffset); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/adc94596e6496781a4e0763b29a52be3daab1a7a/VM_BaselineGCMapIterator.java/buggy/rvm/src/vm/arch/powerPC/compilers/baseline/GCMap/VM_BaselineGCMapIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
8251,
67,
1887,
6927,
990,
1887,
1887,
1435,
288,
4202,
309,
261,
1458,
548,
1545,
374,
13,
288,
202,
282,
309,
261,
7397,
18,
3448,
510,
79,
8903,
13,
288,
202,
4202,
8251,
18,
9499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8251,
67,
1887,
6927,
990,
1887,
1887,
1435,
288,
4202,
309,
261,
1458,
548,
1545,
374,
13,
288,
202,
282,
309,
261,
7397,
18,
3448,
510,
79,
8903,
13,
288,
202,
4202,
8251,
18,
9499,
... |
if (results != null) | if (results != null) { | private DecorationResult internalGetResult(Object element, IDecorationContext context) { Map results = (Map)resultCache.get(context); if (results != null) return (DecorationResult)results.get(element); return null; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/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,
3416,
22226,
1253,
2713,
967,
1253,
12,
921,
930,
16,
1599,
557,
22226,
1042,
819,
13,
288,
202,
202,
863,
1686,
273,
261,
863,
13,
2088,
1649,
18,
588,
12,
2472,
1769,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3416,
22226,
1253,
2713,
967,
1253,
12,
921,
930,
16,
1599,
557,
22226,
1042,
819,
13,
288,
202,
202,
863,
1686,
273,
261,
863,
13,
2088,
1649,
18,
588,
12,
2472,
1769,
202,
... |
return new IncludeLibrary( ); | return new IncludedLibrary( ); | public static IncludeLibrary createIncludeLibrary( ) { return new IncludeLibrary( ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/52e6185e9c5e6224a528b3b882b626f8cc757c6a/StructureFactory.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/StructureFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
12672,
9313,
752,
8752,
9313,
12,
262,
202,
95,
202,
202,
2463,
394,
12672,
9313,
12,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
12672,
9313,
752,
8752,
9313,
12,
262,
202,
95,
202,
202,
2463,
394,
12672,
9313,
12,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
} | } | public Main(String[] args) { LongOpt[] longOpts = new LongOpt[2]; longOpts[0] = new LongOpt("instrumentation", LongOpt.REQUIRED_ARGUMENT, null, 'i'); longOpts[1] = new LongOpt("output", LongOpt.REQUIRED_ARGUMENT, null, 'o'); Getopt g = new Getopt(getClass().getName(), args, ":i:o:", longOpts); int c; File destDir = new File(System.getProperty("user.dir")); while ((c = g.getopt()) != -1) { switch (c) { case 'i': System.out.println("cobertura loading: " + g.getOptarg()); try { merge(loadInstrumentation(new FileInputStream(g .getOptarg()))); } catch (FileNotFoundException ex) { logger.warn(ex); } break; case 'o': destDir = new File(g.getOptarg()); destDir.mkdirs(); break; } } saveInstrumentation(destDir); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/0e9968867b8060fdd72b4fc9c248fcbdc4e96330/Main.java/clean/cobertura/src/net/sourceforge/cobertura/merge/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
12740,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
3708,
6179,
8526,
1525,
5476,
273,
394,
3407,
6179,
63,
22,
15533,
202,
202,
5748,
5476,
63,
20,
65,
273,
394,
3407,
6179,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12740,
12,
780,
8526,
833,
13,
202,
95,
202,
202,
3708,
6179,
8526,
1525,
5476,
273,
394,
3407,
6179,
63,
22,
15533,
202,
202,
5748,
5476,
63,
20,
65,
273,
394,
3407,
6179,
... |
ISelectionProvider selectionProvider = aPart.getSite().getSelectionProvider(); if (selectionProvider != null) { selectionProvider.addSelectionChangedListener(this); selectionChanged(selectionProvider.getSelection()); | ISelectionProvider selectionProvider = aPart.getSite().getSelectionProvider(); if (selectionProvider != null) { selectionProvider.addSelectionChangedListener(this); selectionChanged(selectionProvider.getSelection()); } | protected void registerSelectionListener(IWorkbenchPart aPart) { ISelectionProvider selectionProvider = aPart.getSite().getSelectionProvider(); if (selectionProvider != null) { selectionProvider.addSelectionChangedListener(this); selectionChanged(selectionProvider.getSelection()); }} | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/3113adf073596bfd0c0770703963de0f288cda77/PartPluginAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PartPluginAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
1744,
6233,
2223,
12,
45,
2421,
22144,
1988,
279,
1988,
13,
288,
202,
45,
6233,
2249,
4421,
2249,
273,
279,
1988,
18,
588,
4956,
7675,
588,
6233,
2249,
5621,
202,
430,
261,
10705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
1744,
6233,
2223,
12,
45,
2421,
22144,
1988,
279,
1988,
13,
288,
202,
45,
6233,
2249,
4421,
2249,
273,
279,
1988,
18,
588,
4956,
7675,
588,
6233,
2249,
5621,
202,
430,
261,
10705,
... |
errorManager.setUpImages(iconsRoot); | setUpImage(iconsRoot, MAXIMIZE, MAXIMIZE_KEY); setUpImage(iconsRoot, MINIMIZE, MINIMIZE_KEY); | ProgressManager() { Platform.getJobManager().setProgressProvider(this); createChangeListener(); Platform.getJobManager().addJobChangeListener(this.changeListener); URL iconsRoot = Platform.getPlugin(PlatformUI.PLUGIN_ID).find( new Path(ProgressManager.PROGRESS_FOLDER)); try { setUpImage(iconsRoot, PROGRESS_20, PROGRESS_20_KEY); setUpImage(iconsRoot, PROGRESS_40, PROGRESS_40_KEY); setUpImage(iconsRoot, PROGRESS_60, PROGRESS_60_KEY); setUpImage(iconsRoot, PROGRESS_80, PROGRESS_80_KEY); setUpImage(iconsRoot, PROGRESS_100, PROGRESS_100_KEY); setUpImage(iconsRoot, SLEEPING_JOB, SLEEPING_JOB_KEY); setUpImage(iconsRoot, WAITING_JOB, WAITING_JOB_KEY); setUpImage(iconsRoot, BLOCKED_JOB, BLOCKED_JOB_KEY); setUpImage(iconsRoot, BUSY_OVERLAY, BUSY_OVERLAY_KEY); setUpImage(iconsRoot, MAXIMIZE, MAXIMIZE_KEY); setUpImage(iconsRoot, MINIMIZE, MINIMIZE_KEY); //Let the error manager set up its own icons errorManager.setUpImages(iconsRoot); } catch (MalformedURLException e) { ProgressManagerUtil.logException(e); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/4c26d9ee525c094efb56046cd34150f7de2e4a0c/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
5491,
1318,
1435,
288,
202,
202,
8201,
18,
588,
2278,
1318,
7675,
542,
5491,
2249,
12,
2211,
1769,
202,
202,
2640,
15744,
5621,
202,
202,
8201,
18,
588,
2278,
1318,
7675,
1289,
2278,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5491,
1318,
1435,
288,
202,
202,
8201,
18,
588,
2278,
1318,
7675,
542,
5491,
2249,
12,
2211,
1769,
202,
202,
2640,
15744,
5621,
202,
202,
8201,
18,
588,
2278,
1318,
7675,
1289,
2278,... |
void setListState(boolean state){ fListState= state; | static void setListState(boolean state){ fgListState= state; | void setListState(boolean state){ fListState= state; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/48281fe6b85af16911a2c065b6b9ef38c92aadeb/MockPluginView.java/buggy/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/browsing/MockPluginView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
444,
682,
1119,
12,
6494,
919,
15329,
202,
202,
74,
682,
1119,
33,
919,
31,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
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,
6459,
444,
682,
1119,
12,
6494,
919,
15329,
202,
202,
74,
682,
1119,
33,
919,
31,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
tokfix(); | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261... | |
ucd = UCD.make(); Normalizer nfd = new Normalizer(Normalizer.NFD); Normalizer nfc = new Normalizer(Normalizer.NFC); | static public void test(UCA uca) throws IOException { uca.setAlternate(UCA.NON_IGNORABLE); ucd = UCD.make(); Normalizer nfd = new Normalizer(Normalizer.NFD); Normalizer nfc = new Normalizer(Normalizer.NFC); UCA.UCAContents cc = uca.getContents(UCA.FIXED_CE, null); // nfd instead of null if skipping decomps cc.enableSamples(); Set set = new TreeSet(); while (true) { String x = cc.next(); if (x == null) break; set.add(new Pair(uca.getSortKey(x), x)); } PrintWriter output = null; Iterator it = set.iterator(); byte oldScript = -127; int[] scriptCount = new int[128]; int counter = 0; int lastPrimary = -1; String lastSortKey = "\u0000"; int high = uca.getSortKey("a").charAt(0); int variable = UCA.getPrimary(uca.getVariableHigh()); int columnCount = 0; Utility.copyTextFile("index.html", true, "CollationCharts\\index.html"); Utility.copyTextFile("charts.css", false, "CollationCharts\\charts.css"); Utility.copyTextFile("help.html", true, "CollationCharts\\help.html"); indexFile = Utility.openPrintWriter("CollationCharts\\index_list.html"); Utility.appendFile("index_header.html", true, indexFile); /* indexFile.println("<html><head><meta http-equiv='Content-Type' content='text/html; charset=utf-8'>"); indexFile.println("<title>UCA Default Collation Table</title>"); indexFile.println("<base target='main'>"); indexFile.println("<style><!-- p { font-size: 90% } --></style>"); indexFile.println("</head><body><h2 align='center'>UCA Default Collation Table</h2>"); indexFile.println("<p align='center'><a href = 'help.html'>Help</a>"); */ while (it.hasNext()) { Utility.dot(counter); Pair p = (Pair) it.next(); String sortKey = (String) p.first; String s = (String) p.second; int cp = UTF16.charAt(s,0); byte script = ucd.getScript(cp); // get first non-zero primary int primary = sortKey.charAt(0); if (sortKey.length() < 4) script = -3; else if (primary == 0) script = -2; else if (primary < variable) script = -1; else if (primary < high) script = COMMON_SCRIPT; else if (primary >= UCA.UNSUPPORTED_BASE) script = UNSUPPORTED; if (script == KATAKANA_SCRIPT) script = HIRAGANA_SCRIPT; else if ((script == INHERITED_SCRIPT || script == COMMON_SCRIPT) && oldScript >= 0) script = oldScript; if (script != oldScript // && (script != COMMON_SCRIPT && script != INHERITED_SCRIPT) ) { closeFile(output); output = null; oldScript = script; } if (output == null) { ++scriptCount[script+3]; if (scriptCount[script+3] > 1) { System.out.println("\t\tFAIL: " + scriptCount[script+3] + ", " + getChunkName(script) + ", " + ucd.getCodeAndName(s)); } output = openFile(scriptCount[script+3], script); } boolean firstPrimaryEquals = primary == lastSortKey.charAt(0); int strength = uca.strengthDifference(sortKey, lastSortKey); if (strength < 0) strength = -strength; lastSortKey = sortKey; // find out if this is an expansion: more than one primary weight int primaryCount = 0; for (int i = 0; i < sortKey.length(); ++i) { char w = sortKey.charAt(i); if (w == 0) break; ++ primaryCount; } String breaker = ""; if (columnCount > 10 || !firstPrimaryEquals) { if (!firstPrimaryEquals || script == UNSUPPORTED) breaker = "</tr><tr>"; else breaker = "</tr><tr><td></td>"; // indent 1 cell columnCount = 0; } String classname = primaryCount > 1 ? XCLASSNAME[strength] : CLASSNAME[strength]; output.println(breaker + classname + " title='" + UCA.toString(sortKey) + "'>" + nfc.normalize(s) + "<br><tt>" + Utility.hex(s) //+ "<br>" + script + "</tt></td>"); ++columnCount; } closeFile(output); indexFile.println("<hr><p>Last Modified: " + new Date()); indexFile.println("<br>UCA Version: " + uca.getDataVersion()); indexFile.println("<br>UCD Version: " + ucd.getVersion()); indexFile.println("</p></body></html>"); indexFile.close(); } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/3b30dd9146aa6529c07a6f0f4745caf2c750b816/WriteCharts.java/buggy/tools/unicodetools/com/ibm/text/UCA/WriteCharts.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
918,
1842,
12,
57,
3587,
582,
5353,
13,
1216,
1860,
288,
1850,
582,
5353,
18,
542,
25265,
12,
57,
3587,
18,
3993,
67,
10452,
916,
2782,
1769,
7734,
582,
4315,
273,
587,
10160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
918,
1842,
12,
57,
3587,
582,
5353,
13,
1216,
1860,
288,
1850,
582,
5353,
18,
542,
25265,
12,
57,
3587,
18,
3993,
67,
10452,
916,
2782,
1769,
7734,
582,
4315,
273,
587,
10160... | |
if (dialog.open() == PluginSelectionDialog.OK) { | if (dialog.open() == Window.OK) { | protected void handleOpenDialog() { PluginSelectionDialog dialog = new PluginSelectionDialog(getSection().getShell(), false, false); dialog.create(); if (dialog.open() == PluginSelectionDialog.OK) { IPluginModel model = (IPluginModel) dialog.getFirstResult(); IPlugin plugin = model.getPlugin(); fPluginIdEntry.setValue(plugin.getId()); fPluginMinVersionEntry.setValue(plugin.getVersion()); } } | 8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/3a3538f68d4a9b275b0fde4fc78ba63950250285/FragmentGeneralInfoSection.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/plugin/FragmentGeneralInfoSection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
3678,
6353,
1435,
288,
202,
202,
3773,
6233,
6353,
6176,
273,
394,
6258,
6233,
6353,
12,
588,
5285,
7675,
588,
13220,
9334,
629,
16,
629,
1769,
202,
202,
12730,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
3678,
6353,
1435,
288,
202,
202,
3773,
6233,
6353,
6176,
273,
394,
6258,
6233,
6353,
12,
588,
5285,
7675,
588,
13220,
9334,
629,
16,
629,
1769,
202,
202,
12730,
18,
... |
_t = __t2357; | _t = __t2363; | public final void undostate(AST _t) throws RecognitionException { AST undostate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2351 = _t; AST tmp2197_AST_in = (AST)_t; match(_t,UNDO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BLOCK_LABEL: { AST tmp2198_AST_in = (AST)_t; match(_t,BLOCK_LABEL); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case COMMA: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMMA: { AST tmp2199_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEAVE: { AST __t2355 = _t; AST tmp2200_AST_in = (AST)_t; match(_t,LEAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BLOCK_LABEL: { AST tmp2201_AST_in = (AST)_t; match(_t,BLOCK_LABEL); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2355; _t = _t.getNextSibling(); break; } case NEXT: { AST __t2357 = _t; AST tmp2202_AST_in = (AST)_t; match(_t,NEXT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BLOCK_LABEL: { AST tmp2203_AST_in = (AST)_t; match(_t,BLOCK_LABEL); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2357; _t = _t.getNextSibling(); break; } case RETRY: { AST __t2359 = _t; AST tmp2204_AST_in = (AST)_t; match(_t,RETRY); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case BLOCK_LABEL: { AST tmp2205_AST_in = (AST)_t; match(_t,BLOCK_LABEL); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2359; _t = _t.getNextSibling(); break; } case RETURN: { AST __t2361 = _t; AST tmp2206_AST_in = (AST)_t; match(_t,RETURN); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_2.member(_t.getType()))) { return_options(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t2361; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2351; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
22927,
669,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
22927,
669,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
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,
225,
202,
482,
727,
918,
22927,
669,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
22927,
669,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,... |
super("Undo"); } | super("Undo"); } | public UndoAction() { super("Undo"); } | 47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/410012748e80bb0d59859c62c7bf66beef8f5397/RuleEditor.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/ruleeditor/RuleEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1351,
2896,
1803,
1435,
288,
1082,
202,
9565,
2932,
31224,
8863,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1351,
2896,
1803,
1435,
288,
1082,
202,
9565,
2932,
31224,
8863,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
private void init() { this.setSize(getParent().getClientArea().width, getParent() .getClientArea().height); vListeners = new Vector(); | private void init( ) { this.setSize( getParent( ).getClientArea( ).width, getParent( ).getClientArea( ).height ); vListeners = new Vector( ); | private void init() { this.setSize(getParent().getClientArea().width, getParent() .getClientArea().height); vListeners = new Vector(); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/500b4482b64451f75339ee5037485c3309647704/LabelAttributesComposite.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/LabelAttributesComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
1435,
288,
202,
202,
2211,
18,
542,
1225,
12,
588,
3054,
7675,
588,
1227,
5484,
7675,
2819,
16,
5089,
1435,
9506,
202,
18,
588,
1227,
5484,
7675,
4210,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
1435,
288,
202,
202,
2211,
18,
542,
1225,
12,
588,
3054,
7675,
588,
1227,
5484,
7675,
2819,
16,
5089,
1435,
9506,
202,
18,
588,
1227,
5484,
7675,
4210,
1769,
202,
... |
public Any2OneConnectionImpl() { | public Any2OneConnectionImpl() { | public Any2OneConnectionImpl() { super(); chanToServer = ConnectionServer.FACTORY.createOne2One(new Buffer(1)); chanFromServer = ConnectionServer.FACTORY.createOne2One(new Buffer(1)); chanSynch = ConnectionServer.FACTORY.createAny2One(new Buffer(1)); //create the server object - client object created when accessed server = new AltingConnectionServerImpl(chanToServer.in(), chanToServer.in()); } | 46803 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46803/5e221f7b58d10af50ebfcf3e4baf69c2daa9789c/Any2OneConnectionImpl.java/clean/src/org/jcsp/lang/Any2OneConnectionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5502,
22,
3335,
1952,
2828,
1435,
565,
288,
3639,
2240,
5621,
3639,
3861,
774,
2081,
273,
4050,
2081,
18,
16193,
18,
2640,
3335,
22,
3335,
12,
2704,
3525,
12,
21,
10019,
3639,
3861,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5502,
22,
3335,
1952,
2828,
1435,
565,
288,
3639,
2240,
5621,
3639,
3861,
774,
2081,
273,
4050,
2081,
18,
16193,
18,
2640,
3335,
22,
3335,
12,
2704,
3525,
12,
21,
10019,
3639,
3861,... |
} else if (IS_ARG() && space_seen != 0) { | } else if (isArgState() && space_seen != 0) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261... |
if (!otherAt.getRsvp().equals(at.getRsvp())) { | if (otherAt.hasRsvp() && !otherAt.getRsvp().equals(at.getRsvp())) { | public boolean updateMatchingAttendees(Invite other) throws ServiceException { // Find my ATTENDEE record in the Invite, it must be in our response List attendees = getAttendees(); ArrayList /*ZAttendee */ toAdd = new ArrayList(); boolean modified = false; OUTER: for (Iterator otherIter = other.getAttendees().iterator(); otherIter.hasNext();) { ZAttendee otherAt = (ZAttendee)otherIter.next(); for (Iterator iter = attendees.iterator(); iter.hasNext();) { ZAttendee at = (ZAttendee)(iter.next()); if (otherAt.addressesMatch(at)) { if (!otherAt.getRole().equals(at.getRole())) { at.setRole(otherAt.getRole()); modified = true; } if (!otherAt.getPartStat().equals(at.getPartStat())) { at.setPartStat(otherAt.getPartStat()); modified = true; } if (!otherAt.getRsvp().equals(at.getRsvp())) { at.setRsvp(otherAt.getRsvp()); modified = true; } continue OUTER; } } toAdd.add(otherAt); } if (toAdd.size() > 0) { for (Iterator iter = toAdd.iterator(); iter.hasNext();) { modified = true; ZAttendee add = (ZAttendee)iter.next(); attendees.add(add); } } if (modified) { mAppt.saveMetadata(); Mailbox mbx = mAppt.getMailbox(); if (mbx != null) { mAppt.markItemModified(Change.MODIFIED_INVITE); } return true; } else { return false; } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/7303a5f45cb64b2bb79a53723bb6b79f56e60677/Invite.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/calendar/Invite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1089,
9517,
3075,
275,
323,
281,
12,
22730,
1308,
13,
1216,
16489,
288,
3639,
368,
4163,
3399,
7907,
1157,
1639,
41,
1409,
316,
326,
30981,
16,
518,
1297,
506,
316,
3134,
766,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
9517,
3075,
275,
323,
281,
12,
22730,
1308,
13,
1216,
16489,
288,
3639,
368,
4163,
3399,
7907,
1157,
1639,
41,
1409,
316,
326,
30981,
16,
518,
1297,
506,
316,
3134,
766,... |
public ErrorHandlerWrapper(ErrorHandler errorHandler) { setErrorHandler(errorHandler); } | public ErrorHandlerWrapper() {} | public ErrorHandlerWrapper(ErrorHandler errorHandler) { setErrorHandler(errorHandler); } // <init>(ErrorHandler) | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/5308e75bb25cdec66f898b7bf734e44b44f5db3b/ErrorHandlerWrapper.java/buggy/src/org/apache/xerces/util/ErrorHandlerWrapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26406,
3611,
12,
17729,
17227,
13,
288,
3639,
9967,
1503,
12,
1636,
1503,
1769,
565,
289,
368,
411,
2738,
34,
12,
17729,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26406,
3611,
12,
17729,
17227,
13,
288,
3639,
9967,
1503,
12,
1636,
1503,
1769,
565,
289,
368,
411,
2738,
34,
12,
17729,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
boolean shouldSave = false; | public boolean saveFileAs(FileSaveSelector com) throws IOException { try { final OpenDefinitionsDocument openDoc = this; final File file = com.getFile(); OpenDefinitionsDocument otherDoc = _getOpenDocument(file); boolean shouldSave = false; boolean openInOtherDoc = ((otherDoc != null) && (openDoc != otherDoc)); // Check if file is already open in another document if (openInOtherDoc) shouldSave = com.warnFileOpen(file); // Can't save over an open document // If the file exists, make sure it's ok to overwrite it if ((shouldSave && openInOtherDoc) || (!openInOtherDoc && (!file.exists() || com.verifyOverwrite()))) { // Correct the case of the filename (in Windows) if (! file.getCanonicalFile().getName().equals(file.getName())) file.renameTo(file); // Check for # in the path of the file because if there // is one, then the file cannot be used in the Interactions Pane if (file.getAbsolutePath().indexOf("#") != -1) _notifier.filePathContainsPound(); // have FileOps save the file FileOps.saveFile(new FileOps.DefaultFileSaver(file) { public void saveTo(OutputStream os) throws IOException { DefinitionsDocument doc = getDocument(); try { _editorKit.write(os, doc, 0, doc.getLength()); } catch (BadLocationException docFailed) { throw new UnexpectedException(docFailed); } } }); resetModification(); setFile(file); try { // This calls getDocument().getPackageName() because this may be untitled and this.getPackageName() // returns "" if it's untitled. Right here we are interested in parsing the DefinitionsDocument's text _packageName = getDocument().getPackageName(); } catch(InvalidPackageException e) { _packageName = null; } getDocument().setCachedClassFile(null); checkIfClassFileInSync(); // Utilities.showDebug("ready to fire fileSaved for " + this); _notifier.fileSaved(openDoc); // Make sure this file is on the appropriate classpaths (does nothing in AbstractGlobalModel) addDocToClassPath(this); /* update the navigator */ _documentNavigator.refreshDocument(this, fixPathForNavigator(file.getCanonicalPath())); } return true; } catch (OperationCanceledException oce) { // Thrown by com.getFile() if the user cancels. // We don't save if this happens. return false; } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/aafaf7b848d738e58eee48a6cbc4b800c8027685/AbstractGlobalModel.java/buggy/drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1923,
812,
1463,
12,
812,
4755,
4320,
532,
13,
1216,
1860,
288,
1377,
775,
288,
3639,
727,
3502,
7130,
2519,
1696,
1759,
273,
333,
31,
3639,
727,
1387,
585,
273,
532,
18,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1923,
812,
1463,
12,
812,
4755,
4320,
532,
13,
1216,
1860,
288,
1377,
775,
288,
3639,
727,
3502,
7130,
2519,
1696,
1759,
273,
333,
31,
3639,
727,
1387,
585,
273,
532,
18,
29... | |
"If the first subidentifier has 0 or 1 value the second " + "subidentifier MUST be less then 40."); | Messages.getString("security.9B")); | public static void validateOid(int[] oid) { if (oid == null) { throw new NullPointerException("OID's array is null"); } if (oid.length < 2) { throw new IllegalArgumentException( "OID MUST have at least 2 subidentifiers"); } if (oid[0] > 2) { throw new IllegalArgumentException( "Valid values for first subidentifier are 0, 1 and 2"); } else if (oid[0] != 2 && oid[1] > 39) { throw new IllegalArgumentException( "If the first subidentifier has 0 or 1 value the second " + "subidentifier MUST be less then 40."); } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/c7fdc88348ff6da63262b6309c2810876f42c6d8/ObjectIdentifier.java/clean/modules/security/src/main/java/common/org/apache/harmony/security/utils/ObjectIdentifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1954,
19105,
12,
474,
8526,
7764,
13,
288,
3639,
309,
261,
839,
422,
446,
13,
288,
5411,
604,
394,
10108,
2932,
12945,
1807,
526,
353,
446,
8863,
3639,
289,
3639,
309,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1954,
19105,
12,
474,
8526,
7764,
13,
288,
3639,
309,
261,
839,
422,
446,
13,
288,
5411,
604,
394,
10108,
2932,
12945,
1807,
526,
353,
446,
8863,
3639,
289,
3639,
309,
2... |
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJCheckBoxMenuItem(this); } return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJCheckBoxMenuItem(this); } return accessibleContext; } | public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJCheckBoxMenuItem(this); } // if return accessibleContext; } // getAccessibleContext() | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/14511e3ad21013e92c6399b2bd2ec09a8263e33a/JCheckBoxMenuItem.java/clean/libjava/javax/swing/JCheckBoxMenuItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5016,
1523,
1042,
336,
10451,
1042,
1435,
288,
202,
202,
430,
261,
26037,
1042,
422,
446,
13,
288,
1082,
202,
26037,
1042,
273,
394,
5016,
1523,
46,
19174,
12958,
12,
2211,
1769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5016,
1523,
1042,
336,
10451,
1042,
1435,
288,
202,
202,
430,
261,
26037,
1042,
422,
446,
13,
288,
1082,
202,
26037,
1042,
273,
394,
5016,
1523,
46,
19174,
12958,
12,
2211,
1769... |
public synchronized Object makeRequestSender(Key key, short htl, long uid, PeerNode source, double closestLocation, boolean localOnly, boolean cache) { | public synchronized Object makeRequestSender(Key key, short htl, long uid, PeerNode source, double closestLocation, boolean localOnly, boolean cache, boolean ignoreStore) { | public synchronized Object makeRequestSender(Key key, short htl, long uid, PeerNode source, double closestLocation, boolean localOnly, boolean cache) { Logger.minor(this, "makeRequestSender("+key+","+htl+","+uid+","+source+") on "+portNumber); // In store? KeyBlock chk = null; try { if(key instanceof NodeCHK) chk = chkDatastore.fetch((NodeCHK)key, !cache); else if(key instanceof NodeSSK) { NodeSSK k = (NodeSSK)key; DSAPublicKey pubKey = k.getPubKey(); if(pubKey == null) { pubKey = getKey(k.getPubKeyHash()); Logger.minor(this, "Got pubkey: "+pubKey+" "+(pubKey == null ? "" : pubKey.writeAsField())); try { k.setPubKey(pubKey); } catch (SSKVerifyException e) { Logger.error(this, "Error setting pubkey: "+e, e); } } if(pubKey != null) { Logger.minor(this, "Got pubkey: "+pubKey+" "+pubKey.writeAsField()); chk = sskDatastore.fetch((NodeSSK)key, !cache); } else { Logger.minor(this, "Not found because no pubkey: "+uid); } } else throw new IllegalStateException("Unknown key type: "+key.getClass()); } catch (IOException e) { Logger.error(this, "Error accessing store: "+e, e); } if(chk != null) return chk; if(localOnly) return null; Logger.minor(this, "Not in store locally"); // Transfer coalescing - match key only as HTL irrelevant RequestSender sender = (RequestSender) transferringRequestSenders.get(key); if(sender != null) { Logger.minor(this, "Data already being transferred: "+sender); return sender; } // HTL == 0 => Don't search further if(htl == 0) { Logger.minor(this, "No HTL"); return null; } // Request coalescing KeyHTLPair kh = new KeyHTLPair(key, htl); sender = (RequestSender) requestSenders.get(kh); if(sender != null) { Logger.minor(this, "Found sender: "+sender+" for "+uid); return sender; } sender = new RequestSender(key, null, htl, uid, this, closestLocation, source); requestSenders.put(kh, sender); Logger.minor(this, "Created new sender: "+sender); return sender; } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/87760d0ac57e5e39f75661e91adeb3a9ffcc5dfb/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1033,
23009,
12021,
12,
653,
498,
16,
3025,
366,
6172,
16,
1525,
4555,
16,
10669,
907,
1084,
16,
1645,
9219,
2735,
16,
1250,
1191,
3386,
16,
1250,
1247,
16,
1250,
2305,
2257,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1033,
23009,
12021,
12,
653,
498,
16,
3025,
366,
6172,
16,
1525,
4555,
16,
10669,
907,
1084,
16,
1645,
9219,
2735,
16,
1250,
1191,
3386,
16,
1250,
1247,
16,
1250,
2305,
2257,
... |
byte packetType = tmpBuf[0]; if (packetType!=LOGON && packetType!=QUERY && packetType!=REPLY) { throw new TdsUnknownPacketType(packetType, tmpBuf); } | int len = ntohs( tmpBuf, 2 ) - 8; | private synchronized void getPhysicalPacket() throws TdsException, java.io.IOException { // read the header for (int nread = 0; nread < 8; ) { nread += in.read(tmpBuf, nread, 8 - nread); } if (Logger.isActive()) { String dump = com.internetcds.util.HexDump.hexDump(tmpBuf, 8); String t = (new Timestamp( System.currentTimeMillis())).toString(); Logger.println("Instance " + id + " @ " + t + " recevied header #" + (packetsReceived+1) + "\n" + dump); } byte packetType = tmpBuf[0]; if (packetType!=LOGON && packetType!=QUERY && packetType!=REPLY) { throw new TdsUnknownPacketType(packetType, tmpBuf); } // figure out how many bytes are remaining in this packet. int len = ntohs(tmpBuf, 2) - 8; // Added 2000-06-05 if (len >= inBuffer.length) { inBuffer = new byte[len]; } if (len < 0) { throw new TdsException("Confused by a length of " + len); } // now get the data for (int nread = 0; nread < len; ) { nread += in.read(inBuffer, nread, len - nread); } packetsReceived++; // adjust the bookkeeping info about the incoming buffer inBufferLen = len; inBufferIndex = 0; if (Logger.isActive()) { String dump = com.internetcds.util.HexDump.hexDump(inBuffer, len); String t = (new Timestamp( System.currentTimeMillis())).toString(); Logger.println("Instance " + id + " @ " + t + " recevied data #" + (packetsReceived) + "\n" + dump); } } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/9163505fda1805d652fe97b8bc3eca153c874815/TdsComm.java/buggy/trunk/jtds/src.old/main/com/internetcds/jdbc/tds/TdsComm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
3852,
918,
21735,
7046,
6667,
1435,
1377,
1216,
399,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
282,
288,
1377,
368,
855,
326,
1446,
1377,
364,
261,
474,
290,
896,
273,
374,
31,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
3852,
918,
21735,
7046,
6667,
1435,
1377,
1216,
399,
2377,
503,
16,
2252,
18,
1594,
18,
14106,
282,
288,
1377,
368,
855,
326,
1446,
1377,
364,
261,
474,
290,
896,
273,
374,
31,
29... |
populateReport(logourl, categoryName, reportFormat, monthFormat); | populateReport(logourl, categoryName, reportFormat, monthFormat, startMonth, startDate, startYear); | public void getReportData(String logourl, String categoryName, String reportFormat, String monthFormat) { if (log.isDebugEnabled()) { log.debug("inside getReportData"); log.debug("Category name " + categoryName); log.debug("Report format " + reportFormat); log.debug("logo " + logourl); log.debug("monthFormat "+monthFormat); } populateReport(logourl, categoryName, reportFormat, monthFormat); try { marshalReport(); } catch (Exception e) { if (log.isEnabledFor(Priority.FATAL)) log.fatal("Exception ", e); } } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/5672599f73a363da6e60016509013eb9410ffead/AvailabilityReport.java/buggy/src/report/org/opennms/report/availability/AvailabilityReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
22452,
751,
12,
780,
613,
477,
80,
16,
514,
3150,
461,
16,
514,
2605,
1630,
16,
514,
3138,
1630,
13,
288,
202,
202,
430,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
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,
225,
202,
482,
918,
22452,
751,
12,
780,
613,
477,
80,
16,
514,
3150,
461,
16,
514,
2605,
1630,
16,
514,
3138,
1630,
13,
288,
202,
202,
430,
261,
1330,
18,
291,
2829,
1526,
10756,
288,
541... |
isFetching=false; | public void onFailure(FetchException e, ClientGetter state) { int errorCode = e.getMode(); if(!state.getURI().equals(revocationURI)){ this.cg = state; cg.cancel(); if(errorCode == FetchException.DATA_NOT_FOUND || errorCode == FetchException.ROUTE_NOT_FOUND || errorCode == FetchException.PERMANENT_REDIRECT || errorCode == FetchException.REJECTED_OVERLOAD){ Logger.normal(this, "Rescheduling new request"); maybeUpdate(); } else Logger.error(this, "Canceling fetch : "+ e.getMessage()); }else{ synchronized(this) { if(errorCode == FetchException.DATA_NOT_FOUND){ revocationDNFCounter++; } if(e.isFatal()) this.blow("Permanent error fetching revocation (invalid data inserted?): "+e.toString()); // Start it again if(this.finalCheck) { if(revocationDNFCounter < 3) queueFetchRevocation(1000); else notifyAll(); } else { boolean pause = (revocationDNFCounter == 3); if(pause) revocationDNFCounter = 0; queueFetchRevocation(pause ? 60*60*1000 : 5000); } } } } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/cc7c73fb12ca54a32c3c7216fe27f514ab4867bf/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
291,
30806,
33,
5743,
31,
918,
291,
30806,
33,
5743,
31,
27748,
12,
5005,
503,
291,
30806,
33,
5743,
31,
425,
16,
291,
30806,
33,
5743,
31,
2445,
8461,
291,
30806,
33,
5743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
291,
30806,
33,
5743,
31,
918,
291,
30806,
33,
5743,
31,
27748,
12,
5005,
503,
291,
30806,
33,
5743,
31,
425,
16,
291,
30806,
33,
5743,
31,
2445,
8461,
291,
30806,
33,
5743,
... | |
runtime.defineClass("UnboundMethod", runtime.getClasses().getMethodClass()); | runtime.defineClass("UnboundMethod", runtime.getClass("Method")); | public static RubyClass defineUnboundMethodClass(Ruby runtime) { RubyClass newClass = runtime.defineClass("UnboundMethod", runtime.getClasses().getMethodClass()); CallbackFactory callbackFactory = runtime.callbackFactory(RubyUnboundMethod.class); newClass.defineMethod("[]", callbackFactory.getOptMethod("call")); newClass.defineMethod("bind", callbackFactory.getMethod("bind", IRubyObject.class)); newClass.defineMethod("call", callbackFactory.getOptMethod("call")); newClass.defineMethod("to_proc", callbackFactory.getMethod("to_proc")); newClass.defineMethod("unbind", callbackFactory.getMethod("unbind")); return newClass; } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyUnboundMethod.java/buggy/src/org/jruby/RubyUnboundMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
4426,
984,
3653,
1305,
797,
12,
54,
10340,
3099,
13,
288,
3639,
19817,
797,
394,
797,
273,
1850,
202,
9448,
18,
11255,
797,
2932,
984,
3653,
1305,
3113,
3099,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
4426,
984,
3653,
1305,
797,
12,
54,
10340,
3099,
13,
288,
3639,
19817,
797,
394,
797,
273,
1850,
202,
9448,
18,
11255,
797,
2932,
984,
3653,
1305,
3113,
3099,
18,
... |
if (from != null) { for (i=0 ; i<from.length ; i++) { dests.addElement(new Addressee(from[i], Addressee.TO)); } } if (replyall) { for (int w=0 ; w<2 ; w++) { Address list[] = null; try { list = msg.getRecipients(w == 0 ? Message.RecipientType.TO : Message.RecipientType.CC); } catch (MessagingException e) { } if (list != null) { for (i=0 ; i<list.length ; i++) { dests.addElement(new Addressee(list[i], Addressee.CC)); } } } } Addressee destarray[] = new Addressee[dests.size()]; dests.copyInto(destarray); mAddressBar.getAddressList().setAddresses(destarray); | try { mCompositionPanel.setSubject("Re: " + mextra.simplifiedSubject()); } catch (MessagingException e) { } | public void initializeAsReply(Message msg, boolean replyall) { mCompositionPanel.setReferredMessage(msg); MessageExtra mextra = MessageExtraFactory.Get(msg); int i; Vector dests = new Vector(); Address from[] = null; try { from = msg.getReplyTo(); } catch (MessagingException e) { } if (from == null || from.length == 0) { try { from = msg.getFrom(); } catch (MessagingException e) { } } if (from != null) { for (i=0 ; i<from.length ; i++) { dests.addElement(new Addressee(from[i], Addressee.TO)); } } if (replyall) { for (int w=0 ; w<2 ; w++) { Address list[] = null; try { list = msg.getRecipients(w == 0 ? Message.RecipientType.TO : Message.RecipientType.CC); } catch (MessagingException e) { } if (list != null) { for (i=0 ; i<list.length ; i++) { dests.addElement(new Addressee(list[i], Addressee.CC)); } } } } Addressee destarray[] = new Addressee[dests.size()]; dests.copyInto(destarray); mAddressBar.getAddressList().setAddresses(destarray); try { mCompositionPanel.setSubject("Re: " + mextra.simplifiedSubject()); } catch (MessagingException e) { } // Quote the original text mCompositionPanel.QuoteOriginalMessage(); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/4b8e50f5491644d0517fdb7613cbe73b7859e0b1/Composition.java/buggy/grendel/composition/Composition.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1463,
7817,
12,
1079,
1234,
16,
1250,
4332,
454,
13,
288,
3639,
312,
28940,
5537,
18,
542,
426,
4193,
1079,
12,
3576,
1769,
3639,
2350,
7800,
312,
7763,
273,
2350,
7800,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
1463,
7817,
12,
1079,
1234,
16,
1250,
4332,
454,
13,
288,
3639,
312,
28940,
5537,
18,
542,
426,
4193,
1079,
12,
3576,
1769,
3639,
2350,
7800,
312,
7763,
273,
2350,
7800,
... |
private void layoutComponents() { Container content = getContentPane(); content.removeAll(); content.setLayout(new BorderLayout()); JPanel info = new JPanel(); info.setLayout(new BoxLayout(info, BoxLayout.Y_AXIS)); info.add(m_nameLabel); info.add(new JLabel(" ")); content.add(info, BorderLayout.NORTH); JPanel players = new JPanel(); GridBagLayout layout = new GridBagLayout(); players.setLayout(layout); Insets spacing = new Insets(3,23,0,0); Insets lastSpacing = new Insets(3,23,0,23); GridBagConstraints nameConstraints = new GridBagConstraints(); nameConstraints.anchor = GridBagConstraints.WEST; nameConstraints.gridx = 0; nameConstraints.insets = spacing; GridBagConstraints playerConstraints = new GridBagConstraints(); playerConstraints.anchor = GridBagConstraints.WEST; playerConstraints.gridx = 2; playerConstraints.insets = spacing; GridBagConstraints playConstraints = new GridBagConstraints(); playConstraints.anchor = GridBagConstraints.WEST; playConstraints.gridx = 3; playConstraints.insets = lastSpacing; JLabel nameLabel = new JLabel("Name"); nameLabel.setForeground(Color.black); layout.setConstraints(nameLabel, nameConstraints); players.add(nameLabel); JLabel playerLabel = new JLabel("Played By"); playerLabel.setForeground(Color.black); layout.setConstraints(playerLabel, playerConstraints); players.add(playerLabel); JLabel playedByLabel = new JLabel(" "); layout.setConstraints(playedByLabel, playConstraints); players.add(playedByLabel); Iterator iter = m_playerRows.iterator(); while(iter.hasNext()) { PlayerRow row = (PlayerRow) iter.next(); layout.setConstraints(row.getName(), nameConstraints); players.add(row.getName()); layout.setConstraints(row.getPlayer(), playerConstraints); players.add(row.getPlayer()); layout.setConstraints(row.getPlayerComponent(), playConstraints); players.add(row.getPlayerComponent()); } content.add(players, BorderLayout.CENTER); JPanel lowerPanel = new JPanel(); lowerPanel.setLayout(new BorderLayout()); lowerPanel.add(new JLabel(" "), BorderLayout.NORTH); JPanel buttons = new JPanel(); buttons.add(new JButton(m_cancelAction)); lowerPanel.add(buttons, BorderLayout.CENTER); content.add(lowerPanel, BorderLayout.SOUTH); } | 8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/6d4902f6fb4cc244abe3aaada952f389c483c4fe/ClientStartup.java/buggy/triplea/src/games/strategy/engine/framework/ui/ClientStartup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3511,
7171,
1435,
202,
95,
202,
202,
2170,
913,
273,
5154,
8485,
5621,
9506,
202,
1745,
18,
4479,
1595,
5621,
202,
202,
1745,
18,
542,
3744,
12,
2704,
30814,
10663,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3511,
7171,
1435,
202,
95,
202,
202,
2170,
913,
273,
5154,
8485,
5621,
9506,
202,
1745,
18,
4479,
1595,
5621,
202,
202,
1745,
18,
542,
3744,
12,
2704,
30814,
10663,
202,
... | ||
case 488 : if (DEBUG) { System.out.println("Catchesopt ::="); } | case 489 : if (DEBUG) { System.out.println("Catchesopt ::="); } | protected void consumeRule(int act) { switch ( act ) { case 27 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 41 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 45 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 46 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 47 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 48 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 49 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 50 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 52 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 57 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 58 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 59 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 60 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 66 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 67 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 68 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 83 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 85 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 87 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 88 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 89 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 90 : if (DEBUG) { System.out.println("PackageDeclarationName ::= package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 95 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 96 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 97 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 98 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 101 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 105 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 117 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 118 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 119 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 120 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 122 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 123 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 124 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 126 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 127 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 130 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 134 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 135 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 136 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 143 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 146 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 148 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 151 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 152 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 153 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 154 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 155 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 160 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 161 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 162 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 163 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(); break; case 164 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(); break; case 165 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 166 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 167 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 168 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 169 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 170 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 172 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 173 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 174 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 176 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 177 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 178 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 179 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 180 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 181 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 182 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 183 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 184 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 185 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 186 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 187 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 191 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 192 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 193 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 194 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 195 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 196 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 197 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 198 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 200 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 202 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 205 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 206 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 209 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); } //$NON-NLS-1$ ignoreMethodBody(); break; case 210 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(true); break; case 211 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(false); break; case 218 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 219 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 220 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 221 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 223 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 224 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 225 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 227 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 231 : if (DEBUG) { System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); } //$NON-NLS-1$ ignoreInterfaceDeclaration(); break; case 232 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 233 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 234 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 235 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 236 : if (DEBUG) { System.out.println("PushModifiersForHeader ::="); } //$NON-NLS-1$ consumePushModifiersForHeader(); break; case 237 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 263 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 264 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 265 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 266 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 275 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 276 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 277 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 278 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 279 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 282 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 284 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 285 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 287 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 288 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 289 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 290 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 291 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 292 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 293 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 294 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 295 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 299 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 300 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 301 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 302 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 303 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 304 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 305 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 306 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 307 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 308 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 309 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 310 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 311 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 313 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 315 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 316 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 318 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 319 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 324 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 325 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 326 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 329 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 330 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 331 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 332 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 333 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 334 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 337 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 338 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 339 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 340 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 341 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 342 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 343 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 344 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 345 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 347 : if (DEBUG) { System.out.println("ClassBodySimpleNameopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 349 : if (DEBUG) { System.out.println("EnterAnonymousClassBodySimpleName ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBodySimpleName(); break; case 350 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 352 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 353 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 354 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 355 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 356 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 357 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 358 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 360 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 362 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 363 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 366 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 367 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 368 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 369 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 370 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 371 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 372 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 373 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 374 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 375 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 376 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 377 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 379 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 382 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 383 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 384 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 387 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 388 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 390 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 391 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 393 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 394 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 396 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 397 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 398 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 399 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 400 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 401 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 402 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 403 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 404 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 406 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 407 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 408 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 410 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 411 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 413 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 414 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 415 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 417 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 418 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 419 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 420 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 422 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 424 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 425 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 427 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 429 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 431 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 433 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 435 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 437 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 440 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 442 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 443 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 444 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 445 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 446 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 449 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 450 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 451 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 452 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 453 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 454 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 458 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 463 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 464 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 465 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 466 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 467 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 469 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 471 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 475 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 479 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 480 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 481 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 482 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 484 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 488 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 490 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader EnumBody"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 491 : if (DEBUG) { System.out.println("EnumHeader ::= EnumHeaderName ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 492 : if (DEBUG) { System.out.println("EnumHeaderName ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeaderName(); break; case 493 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 494 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 495 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 496 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 498 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 499 : if (DEBUG) { System.out.println("EnumConstantHeaderName ::= Modifiersopt Identifier"); } //$NON-NLS-1$ consumeEnumConstantHeaderName(); break; case 500 : if (DEBUG) { System.out.println("EnumConstantHeader ::= EnumConstantHeaderName..."); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 501 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ForceNoDiet..."); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 502 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 503 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 504 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 506 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 507 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 509 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 510 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 511 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(false); break; case 512 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Modifiers Type"); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(true); break; case 513 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 514 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 515 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 516 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 517 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 518 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 520 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 522 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 523 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 527 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 528 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 530 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 533 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 534 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 536 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 539 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 540 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 541 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 542 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 543 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 544 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 545 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 547 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 548 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 549 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 550 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 551 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 552 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 553 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 554 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 555 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 556 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 557 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 559 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 561 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 562 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 564 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 565 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 567 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 568 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 569 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 570 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 572 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 573 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 579 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 580 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 583 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 584 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 587 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 588 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 589 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 590 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 591 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 592 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 594 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 595 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 596 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 597 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 599 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 600 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 601 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 602 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 603 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 604 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 606 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 607 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 608 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 609 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 610 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 611 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 612 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 613 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 615 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(OperatorIds.INSTANCEOF); break; case 616 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 618 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 619 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 620 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 621 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 623 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 624 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 626 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 627 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 629 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 630 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 632 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 633 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 635 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 636 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 638 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 639 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 643 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 644 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 645 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 647 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 650 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 651 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationHeader ::= Modifiersopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationHeader() ; break; case 652 : if (DEBUG) { System.out.println("AnnotationTypeMemberHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberHeaderExtendedDims() ; break; case 653 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 656 : if (DEBUG) { System.out.println("DefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyDefaultValue() ; break; case 662 : if (DEBUG) { System.out.println("NormalAnnotation ::= AT Name LPAREN MemberValuePairsopt"); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 663 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 666 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 667 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL MemberValue"); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 669 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 672 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 673 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 674 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 675 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 677 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 678 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AT Name"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 679 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AT Name LPAREN MemberValue..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/836fef68856b7e7f6b208deb388901eeda69de4b/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12732,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12732,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
... |
public ProfileMeta(Repository rep, long id_profile) throws KettleException | public ProfileMeta(String name, String description) | public ProfileMeta(Repository rep, long id_profile) throws KettleException { try { Row r = rep.getProfile(id_profile); if (r!=null) { setID(id_profile); name = r.searchValue("NAME").getString(); description = r.searchValue("DESCRIPTION").getString(); long pid[] = rep.getPermissionIDs(id_profile); // System.out.println("Profile "+name+" has "+pid.length+" permissions."); permissions = new ArrayList(); for (int i=0;i<pid.length;i++) { PermissionMeta pi = new PermissionMeta(rep, pid[i]); //System.out.println("Adding permission #"+i+" : "+pi+", id="+pi.getID()); if (pi.getID()>0) addPermission(pi); } } else { throw new KettleException("Unable to find profile with id="+id_profile); } } catch(KettleDatabaseException dbe) { throw new KettleException("Coudln't create profile with id="+id_profile, dbe); } } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/71513dd52c8cc020508789d1d03e0b43e6f4417a/ProfileMeta.java/buggy/kettle/src/be/ibridge/kettle/repository/ProfileMeta.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11357,
2781,
12,
3305,
2071,
16,
1525,
612,
67,
5040,
13,
202,
202,
15069,
1475,
278,
5929,
503,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
1999,
436,
273,
2071,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11357,
2781,
12,
3305,
2071,
16,
1525,
612,
67,
5040,
13,
202,
202,
15069,
1475,
278,
5929,
503,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
1999,
436,
273,
2071,
18,
5... |
SQLExceptionHandler.throwSQLException(e); throw e; | throw m_stmt.m_conn.wrap(e); | public synchronized boolean isBeforeFirst() throws SQLException { try { return m_rset.isBeforeFirst(); } catch (SQLException e) { SQLExceptionHandler.throwSQLException(e); throw e; // code should never get here, but just in case } } | 12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/880388ec033f6e42a6c6eef522a27eaa680337dd/ResultSet.java/buggy/archive/core-platform/src/com/arsdigita/db/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
353,
4649,
3759,
1435,
1216,
6483,
288,
3639,
775,
288,
5411,
327,
312,
67,
86,
542,
18,
291,
4649,
3759,
5621,
3639,
289,
1044,
261,
23116,
425,
13,
288,
5411,
6483,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1250,
353,
4649,
3759,
1435,
1216,
6483,
288,
3639,
775,
288,
5411,
327,
312,
67,
86,
542,
18,
291,
4649,
3759,
5621,
3639,
289,
1044,
261,
23116,
425,
13,
288,
5411,
6483,
... |
goldenFileName = GOLDEN_FOLDER + goldenFileName; | Reader readerA = null; FileReader readerB = null; boolean same = true; StringBuffer errorText = new StringBuffer( ); | protected boolean compareFile( String goldenFileName ) throws Exception { goldenFileName = GOLDEN_FOLDER + goldenFileName; InputStream streamA = getResourceAStream( goldenFileName ); if ( os == null ) return false; InputStream streamB = new ByteArrayInputStream( os.toByteArray( ) ); InputStreamReader readerA = new InputStreamReader( streamA ); InputStreamReader readerB = new InputStreamReader( streamB ); return compareFile( readerA, readerB ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/1da593c7c141c4747b149d29d4ef36623cc5b5c5/BaseTestCase.java/buggy/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/util/BaseTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
3400,
812,
12,
514,
20465,
275,
4771,
262,
1216,
1185,
202,
95,
202,
202,
75,
1673,
275,
4771,
273,
611,
11846,
1157,
67,
17357,
397,
20465,
275,
4771,
31,
202,
202,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
3400,
812,
12,
514,
20465,
275,
4771,
262,
1216,
1185,
202,
95,
202,
202,
75,
1673,
275,
4771,
273,
611,
11846,
1157,
67,
17357,
397,
20465,
275,
4771,
31,
202,
202,
43... |
addDynamicProperty( new GenericDynamicProperty(HAS_ERRORS_PROPERTY, Boolean.class,new Boolean(false), false) ); addDynamicProperty( new GenericDynamicProperty(ERRORS_PROPERTY, Errors.class,null,false) ); | addDynamicProperty( new WeakGenericDynamicProperty(HAS_ERRORS_PROPERTY, Boolean.class,new Boolean(false), false) ); addDynamicProperty( new WeakGenericDynamicProperty(ERRORS_PROPERTY, Errors.class,null,false) ); | public DomainClassMethods(GrailsApplication application, Class theClass, SessionFactory sessionFactory, ClassLoader classLoader) throws IntrospectionException { super(theClass); // dynamic methods addDynamicMethodInvocation(new SavePersistentMethod(sessionFactory, classLoader,application)); addDynamicMethodInvocation(new DeletePersistentMethod(sessionFactory, classLoader)); addDynamicMethodInvocation(new RefreshPersistentMethod(sessionFactory, classLoader)); addDynamicMethodInvocation(new ValidatePersistentMethod(sessionFactory, classLoader, application )); // static methods addStaticMethodInvocation(new FindAllPersistentMethod(sessionFactory, classLoader)); addStaticMethodInvocation(new FindAllByPersistentMethod(application,sessionFactory, classLoader)); addStaticMethodInvocation(new FindByPersistentMethod(application,sessionFactory, classLoader)); addStaticMethodInvocation(new FindPersistentMethod(sessionFactory, classLoader)); addStaticMethodInvocation(new ListOrderByPersistentMethod(sessionFactory, classLoader)); addStaticMethodInvocation(new ListPersistentMethod(sessionFactory, classLoader)); addStaticMethodInvocation(new FindWherePersistentMethod(sessionFactory, classLoader)); addStaticMethodInvocation(new GetPersistentMethod(application,sessionFactory, classLoader)); addStaticMethodInvocation(new CreateCriteriaPersistentMethod(sessionFactory, classLoader)); // add dynamic properties addDynamicProperty( new SetPropertiesDynamicProperty() ); addDynamicProperty( new ConstraintsDynamicProperty() ); addDynamicProperty( new GenericDynamicProperty(HAS_ERRORS_PROPERTY, Boolean.class,new Boolean(false), false) ); addDynamicProperty( new GenericDynamicProperty(ERRORS_PROPERTY, Errors.class,null,false) ); } | 6460 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6460/b18b6b0c6359a733b665934c6bf5ac6a960ba356/DomainClassMethods.java/buggy/src/persistence/org/codehaus/groovy/grails/metaclass/DomainClassMethods.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6648,
797,
4712,
12,
14571,
14573,
3208,
2521,
16,
1659,
326,
797,
16,
3877,
1733,
1339,
1733,
16,
9403,
11138,
13,
1082,
202,
15069,
3094,
26362,
503,
288,
202,
202,
9565,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6648,
797,
4712,
12,
14571,
14573,
3208,
2521,
16,
1659,
326,
797,
16,
3877,
1733,
1339,
1733,
16,
9403,
11138,
13,
1082,
202,
15069,
3094,
26362,
503,
288,
202,
202,
9565,
12,
... |
final String base = context.getSystemId(); | public void parseContents(final Parser parser) { final Stylesheet context = parser.getCurrentStylesheet(); try { final String systemId = getAttribute("href"); if (context.checkForLoop(systemId)) { final int errno = ErrorMsg.CIRCULAR_INC; final ErrorMsg msg = new ErrorMsg(errno, systemId, this); parser.reportError(Constants.FATAL, msg); return; } SourceLoader loader = context.getSourceLoader(); InputSource input = null; if (loader != null) { final XSLTC xsltc = parser.getXSLTC(); final String base = context.getSystemId(); input = loader.loadSource(base, systemId, xsltc); } else { //System.err.println("current context is "+context.getSystemId()); //System.err.println("new file is "+systemId); input = new InputSource(systemId); } final SyntaxTreeNode root = parser.parse(input); if (root == null) return; final Stylesheet _imported = parser.makeStylesheet(root); if (_imported == null) return; _imported.setSourceLoader(loader); _imported.setSystemId(systemId); _imported.setParentStylesheet(context); // precedence for the including stylesheet final int currPrecedence = parser.getCurrentImportPrecedence(); final int nextPrecedence = parser.getNextImportPrecedence(); _imported.setImportPrecedence(currPrecedence); context.setImportPrecedence(nextPrecedence); parser.setCurrentStylesheet(_imported); _imported.parseContents(parser); final Enumeration elements = _imported.elements(); final Stylesheet topStylesheet = parser.getTopLevelStylesheet(); while (elements.hasMoreElements()) { final Object element = elements.nextElement(); if (element instanceof TopLevelElement) { topStylesheet.addElement((TopLevelElement)element); } } } catch (Exception e) { e.printStackTrace(); } finally { parser.setCurrentStylesheet(context); } } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/5f625f1db6bd5d3d46e94978c4a29198ef8744cd/Import.java/buggy/src/org/apache/xalan/xsltc/compiler/Import.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
6323,
12,
6385,
6783,
2082,
13,
288,
202,
6385,
29483,
2963,
819,
273,
2082,
18,
588,
3935,
24656,
5621,
202,
698,
288,
202,
565,
727,
514,
30083,
273,
4061,
2932,
7547,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
6323,
12,
6385,
6783,
2082,
13,
288,
202,
6385,
29483,
2963,
819,
273,
2082,
18,
588,
3935,
24656,
5621,
202,
698,
288,
202,
565,
727,
514,
30083,
273,
4061,
2932,
7547,
... | |
data.heightHint = 24; | protected Control createContents( Composite parent ) { super.createFieldEditors( ); final Composite innerParent = new Composite( parent, SWT.NONE ); GridLayout layout = new GridLayout( ); layout.marginHeight = 0; layout.marginWidth = 0; innerParent.setLayout( layout ); innerParent.setLayoutData( new GridData( GridData.FILL_BOTH ) ); final Table table = new Table( innerParent, SWT.BORDER | SWT.FULL_SELECTION ); GridData data = new GridData( GridData.FILL_BOTH ); table.setLayoutData( data ); table.setHeaderVisible( true ); table.setLinesVisible( false ); TableLayout tableLayout = new TableLayout( ); table.setLayout( tableLayout ); final TableColumn column1 = new TableColumn( table, SWT.NONE ); column1.setText( Messages.getString( "HighlightsPreferencePage.displayname.Preview" ) ); //$NON-NLS-1$ final TableColumn column2 = new TableColumn( table, SWT.NONE ); column2.setText( Messages.getString( "HighlightsPreferencePage.displayname.Condition" ) ); //$NON-NLS-1$ fTableViewer = new TableViewer( table ); fTableViewer.setLabelProvider( new HighlightLabelProvider( ) ); fTableViewer.setContentProvider( new HighlightContentProvider( ) ); fTableViewer.setSorter( null ); fTableViewer.addSelectionChangedListener( new ISelectionChangedListener( ) { public void selectionChanged( SelectionChangedEvent event ) { updateButtons( ); } } ); fTableViewer.addDoubleClickListener( new IDoubleClickListener( ) { public void doubleClick( DoubleClickEvent event ) { edit( ); } } ); innerParent.addControlListener( new ControlAdapter( ) { // Resize the columns by proportion when the parent control is // resized. public void controlResized( ControlEvent e ) { Rectangle area = innerParent.getClientArea( ); Point preferredSize = table.computeSize( SWT.DEFAULT, SWT.DEFAULT ); int width = area.width - 2 * table.getBorderWidth( ); if ( preferredSize.y > area.height ) { Point vBarSize = table.getVerticalBar( ).getSize( ); width -= vBarSize.x; } Point oldSize = table.getSize( ); if ( oldSize.x > width ) { column1.setWidth( 2 * width / 5 ); column2.setWidth( width - column1.getWidth( ) ); table.setSize( width, area.height ); } else { table.setSize( width, area.height ); column1.setWidth( 2 * width / 5 ); column2.setWidth( width - column1.getWidth( ) ); } } } ); Composite buttons = new Composite( innerParent, SWT.NONE ); buttons.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) ); layout = new GridLayout( ); layout.numColumns = 6; layout.marginHeight = 0; layout.marginWidth = 0; buttons.setLayout( layout ); fAddButton = new Button( buttons, SWT.PUSH ); fAddButton.setText( Messages.getString( "HighlightsPreferencePage.text.Add" ) ); //$NON-NLS-1$ data = new GridData( GridData.HORIZONTAL_ALIGN_END ); data.widthHint = Math.max( fAddButton.computeSize( -1, -1 ).x, 60 ); data.heightHint = 24; fAddButton.setLayoutData( data ); fAddButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { add( ); } } ); fEditButton = new Button( buttons, SWT.PUSH ); fEditButton.setText( Messages.getString( "HighlightsPreferencePage.text.Edit" ) ); //$NON-NLS-1$ data = new GridData( GridData.HORIZONTAL_ALIGN_END ); data.widthHint = Math.max( fEditButton.computeSize( -1, -1 ).x, 60 ); data.heightHint = 24; fEditButton.setLayoutData( data ); fEditButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { edit( ); } } ); fDeleteButton = new Button( buttons, SWT.PUSH ); fDeleteButton.setText( Messages.getString( "HighlightsPreferencePage.text.Delete" ) ); //$NON-NLS-1$ data = new GridData( GridData.HORIZONTAL_ALIGN_END ); data.widthHint = Math.max( fDeleteButton.computeSize( -1, -1 ).x, 60 ); data.heightHint = 24; fDeleteButton.setLayoutData( data ); fDeleteButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { delete( ); } } ); fMoveUpButton = new Button( buttons, SWT.ARROW ); fMoveUpButton.setAlignment( SWT.UP ); data = new GridData( GridData.HORIZONTAL_ALIGN_END ); data.widthHint = 40; data.heightHint = 24; fMoveUpButton.setLayoutData( data ); fMoveUpButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { moveUp( ); } } ); fMoveDownButton = new Button( buttons, SWT.ARROW ); fMoveDownButton.setAlignment( SWT.DOWN ); data = new GridData( GridData.HORIZONTAL_ALIGN_END ); data.widthHint = 40; data.heightHint = 24; fMoveDownButton.setLayoutData( data ); fMoveDownButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { moveDown( ); } } ); fTableViewer.setInput( model ); refreshTableItemView( ); updateButtons( ); Dialog.applyDialogFont( parent ); return innerParent; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e14bc3cd6406b05b2c2c8d7edbc2118f1f7a2473/HighlightsPreferencePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/HighlightsPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
14728,
982,
262,
202,
95,
202,
202,
9565,
18,
2640,
974,
4666,
1383,
12,
11272,
202,
202,
6385,
14728,
3443,
3054,
273,
394,
14728,
12,
982,
16,
348,
858... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8888,
752,
6323,
12,
14728,
982,
262,
202,
95,
202,
202,
9565,
18,
2640,
974,
4666,
1383,
12,
11272,
202,
202,
6385,
14728,
3443,
3054,
273,
394,
14728,
12,
982,
16,
348,
858... | |
_t = __t334; | _t = __t348; | public final Expression constructor(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST constructor_AST_in = (AST)_t; AST e = null; AST attrName = null; AST attrVal = null; AST pcdata = null; AST cdata = null; AST p = null; step= null; PathExpr elementContent= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ELEMENT: { AST __t330 = _t; e = _t==ASTNULL ? null :(AST)_t; match(_t,ELEMENT); _t = _t.getFirstChild(); ElementConstructor c= new ElementConstructor(context, e.getText()); path.add(c); step= c; { _loop336: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==ATTRIBUTE)) { AST __t332 = _t; attrName = _t==ASTNULL ? null :(AST)_t; match(_t,ATTRIBUTE); _t = _t.getFirstChild(); AttributeConstructor attrib= new AttributeConstructor(context, attrName.getText()); c.addAttribute(attrib); { int _cnt335=0; _loop335: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRIBUTE_CONTENT: { attrVal = (AST)_t; match(_t,ATTRIBUTE_CONTENT); _t = _t.getNextSibling(); attrib.addValue(attrVal.getText()); break; } case LCURLY: { AST __t334 = _t; AST tmp69_AST_in = (AST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); PathExpr enclosed= new PathExpr(context); expr(_t,enclosed); _t = _retTree; attrib.addEnclosedExpr(enclosed); _t = __t334; _t = _t.getNextSibling(); break; } default: { if ( _cnt335>=1 ) { break _loop335; } else {throw new NoViableAltException(_t);} } } _cnt335++; } while (true); } _t = __t332; _t = _t.getNextSibling(); } else { break _loop336; } } while (true); } { _loop338: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_1.member(_t.getType()))) { if (elementContent == null) { elementContent= new PathExpr(context); c.setContent(elementContent); } step=constructor(_t,elementContent); _t = _retTree; } else { break _loop338; } } while (true); } _t = __t330; _t = _t.getNextSibling(); break; } case TEXT: { AST __t339 = _t; pcdata = _t==ASTNULL ? null :(AST)_t; match(_t,TEXT); _t = _t.getFirstChild(); TextConstructor text= new TextConstructor(context, pcdata.getText()); path.add(text); step= text; _t = __t339; _t = _t.getNextSibling(); break; } case XML_COMMENT: { AST __t340 = _t; cdata = _t==ASTNULL ? null :(AST)_t; match(_t,XML_COMMENT); _t = _t.getFirstChild(); CommentConstructor comment= new CommentConstructor(context, cdata.getText()); path.add(comment); step= comment; _t = __t340; _t = _t.getNextSibling(); break; } case XML_PI: { AST __t341 = _t; p = _t==ASTNULL ? null :(AST)_t; match(_t,XML_PI); _t = _t.getFirstChild(); PIConstructor pi= new PIConstructor(context, p.getText()); path.add(pi); step= pi; _t = __t341; _t = _t.getNextSibling(); break; } case LCURLY: { AST __t342 = _t; AST tmp70_AST_in = (AST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); EnclosedExpr subexpr= new EnclosedExpr(context); expr(_t,subexpr); _t = _retTree; path.addPath(subexpr); step= subexpr; _t = __t342; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ca3671ce7c752480b17278b434be7f75e3ec7d57/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
3885,
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,
3885,
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... |
} | } | public Member getMemberByUniqueName(String[] uniqueNameParts, boolean failIfNotFound) { return schemaReader.getMemberByUniqueName(uniqueNameParts, failIfNotFound); } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/DelegatingSchemaReader.java/buggy/src/main/mondrian/olap/DelegatingSchemaReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8596,
18925,
858,
6303,
461,
12,
780,
8526,
3089,
461,
4305,
16,
3639,
1250,
2321,
2047,
2768,
13,
565,
288,
202,
202,
2463,
1963,
2514,
18,
588,
4419,
858,
6303,
461,
12,
627... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8596,
18925,
858,
6303,
461,
12,
780,
8526,
3089,
461,
4305,
16,
3639,
1250,
2321,
2047,
2768,
13,
565,
288,
202,
202,
2463,
1963,
2514,
18,
588,
4419,
858,
6303,
461,
12,
627... |
Assert.fail( de.getMessage() ); | fail( de.getMessage() ); | public void testDecodeSearchRequestExtensibleMatch() { Asn1Decoder ldapDecoder = new LdapDecoder(); ByteBuffer stream = ByteBuffer.allocate( 0x65 ); stream.put( new byte[] { 0x30, 0x63, 0x02, 0x01, 0x01, 0x63, 0x5E, // "dc=example,dc=com" 0x04, 0x11, 0x64, 0x63, 0x3D, 0x65, 0x78, 0x61, 0x6D, 0x70, 0x6C, 0x65, 0x2C, 0x64, 0x63, 0x3D, 0x63, 0x6F, 0x6D, 0x0A, 0x01, 0x00, 0x0A, 0x01, 0x02, 0x02, 0x01, 0x02, 0x02, 0x01, 0x03, 0x01, 0x01, (byte)0xFF, (byte)0xA9, 0x23, 0x30, 0x21, (byte)0x81, 0x02, 'c', 'n', (byte)0x82, 0x13, '1', '.', '2', '.', '8', '4', '0', '.', '4', '8', '0', '1', '8', '.', '1', '.', '2', '.', '2', (byte)0x83, 0x03, 'a', 'o', 'k', (byte)0x84, 0x01, (byte)0xFF, 0x30, 0x15, // Attributes 0x04, 0x05, 0x61, 0x74, 0x74, 0x72, 0x30, // attr0 0x04, 0x05, 0x61, 0x74, 0x74, 0x72, 0x31, // attr1 0x04, 0x05, 0x61, 0x74, 0x74, 0x72, 0x32 // attr2 } ); String decodedPdu = StringTools.dumpBytes( stream.array() ); stream.flip(); // Allocate a BindRequest Container IAsn1Container ldapMessageContainer = new LdapMessageContainer(); try { ldapDecoder.decode( stream, ldapMessageContainer ); } catch ( DecoderException de ) { de.printStackTrace(); Assert.fail( de.getMessage() ); } LdapMessage message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage(); SearchRequest sr = message.getSearchRequest(); Assert.assertEquals( 1, message.getMessageId() ); Assert.assertEquals( "dc=example,dc=com", sr.getBaseObject().toString() ); Assert.assertEquals( LdapConstants.SCOPE_BASE_OBJECT, sr.getScope() ); Assert.assertEquals( LdapConstants.DEREF_FINDING_BASE_OBJ, sr.getDerefAliases() ); Assert.assertEquals( 2, sr.getSizeLimit() ); Assert.assertEquals( 3, sr.getTimeLimit() ); Assert.assertEquals( true, sr.isTypesOnly() ); // The attributes Attributes attributes = sr.getAttributes(); for (int i = 0; i < attributes.size(); i++) { Assert.assertNotNull( attributes.get( "attr" + i ) ); } // Check the length Assert.assertEquals(0x65, message.computeLength()); // Check the encoding // We won't check the whole PDU, as it may differs because // attributes may have been reordered try { ByteBuffer bb = message.encode( null ); String encodedPdu = StringTools.dumpBytes( bb.array() ); Assert.assertEquals(encodedPdu.substring( 0, 0x56 ), decodedPdu.substring( 0, 0x56 ) ); } catch ( EncoderException ee ) { ee.printStackTrace(); Assert.fail( ee.getMessage() ); } } | 54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/3561f4cdd29c534a78cee8464a6bc4c88d5b1783/SearchRequestTest.java/buggy/ldap/src/test/java/org/apache/ldap/common/codec/search/SearchRequestTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
6615,
2979,
691,
2482,
773,
1523,
2060,
1435,
565,
288,
3639,
31277,
21,
7975,
8079,
7975,
273,
394,
18053,
7975,
5621,
3639,
7400,
225,
1407,
1377,
273,
7400,
18,
16247,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6615,
2979,
691,
2482,
773,
1523,
2060,
1435,
565,
288,
3639,
31277,
21,
7975,
8079,
7975,
273,
394,
18053,
7975,
5621,
3639,
7400,
225,
1407,
1377,
273,
7400,
18,
16247,
... |
return new Table_lang_prefixes( rs ); | return new Table_images( rs ); | public Object mapOneRow( ResultSet rs ) throws SQLException { return new Table_lang_prefixes( rs ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/1006917dfe63a5d85d047011540205a2b02407a8/DatabaseService.java/clean/server/src/imcode/server/db/DatabaseService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
394,
3555,
67,
7369,
12,
3597,
11272,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
852,
3335,
1999,
12,
10842,
3597,
262,
1216,
6483,
288,
7734,
327,
394,
3555,
67,
7369,
12,
3597,
11272,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Label label = new Label(composite, 0); | Label label = new Label(composite, SWT.NULL); | protected Control createMessageArea(Composite composite) { // create composite // create image Image image = getImage(); if (image != null) { Label label = new Label(composite, 0); image.setBackground(label.getBackground()); label.setImage(image); label.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_CENTER | GridData.VERTICAL_ALIGN_BEGINNING)); } // create message if (message != null) { Label label = new Label(composite, SWT.WRAP); label.setText(message); GridData data = new GridData(GridData.GRAB_HORIZONTAL | //GridData.GRAB_VERTICAL | GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER); data.widthHint = convertHorizontalDLUsToPixels( IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH); ; label.setLayoutData(data); label.setFont(composite.getFont()); } return composite; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/b342c22a9dd5c06c41272daa4376a8d418b3fdac/IconAndMessageDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/IconAndMessageDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
23836,
5484,
12,
9400,
9635,
13,
288,
202,
202,
759,
752,
9635,
202,
202,
759,
752,
1316,
202,
202,
2040,
1316,
273,
10567,
5621,
202,
202,
430,
261,
2730,
480,
446,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
23836,
5484,
12,
9400,
9635,
13,
288,
202,
202,
759,
752,
9635,
202,
202,
759,
752,
1316,
202,
202,
2040,
1316,
273,
10567,
5621,
202,
202,
430,
261,
2730,
480,
446,
13... |
handler=new Thread(thread_group, this, "ConnectionTable.Connection.HandlerThread"); handler.setDaemon(true); handler.start(); | receiverThread=new Thread(thread_group, this, "ConnectionTable.Connection.Receiver [" + getSockAddress() + "]"); receiverThread.setDaemon(true); receiverThread.start(); | void init() { // if(log.isInfoEnabled()) log.info("connection was created to " + peer_addr); if(handler == null || !handler.isAlive()) { // Roland Kurmann 4/7/2003, put in thread_group handler=new Thread(thread_group, this, "ConnectionTable.Connection.HandlerThread"); handler.setDaemon(true); handler.start(); if(log.isTraceEnabled()) log.trace("ConnectionTable.Connection.HandlerThread started"); } } | 47927 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47927/ce5c434df3b6ae12c7aff33805eb4a6d90d425d1/ConnectionTable.java/buggy/src/org/jgroups/blocks/ConnectionTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
918,
1208,
1435,
288,
5411,
368,
309,
12,
1330,
18,
291,
966,
1526,
10756,
613,
18,
1376,
2932,
4071,
1703,
2522,
358,
315,
397,
4261,
67,
4793,
1769,
5411,
309,
12,
4176,
422,
446,
747... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
1435,
288,
5411,
368,
309,
12,
1330,
18,
291,
966,
1526,
10756,
613,
18,
1376,
2932,
4071,
1703,
2522,
358,
315,
397,
4261,
67,
4793,
1769,
5411,
309,
12,
4176,
422,
446,
747... |
if (project == null) return; | if (project == null) { return; } | public void run() { IProject project = getProject(); if (project == null) return; SelProvider selProvider = new SelProvider(); selProvider.projectSelection = new StructuredSelection(project); PropertyDialogAction propAction = new PropertyDialogAction( workbenchWindow.getShell(), selProvider); propAction.run(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/ProjectPropertyDialogAction.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/ProjectPropertyDialogAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
467,
4109,
1984,
273,
11080,
5621,
3639,
309,
261,
4406,
422,
446,
13,
5411,
327,
31,
3639,
4352,
2249,
357,
2249,
273,
394,
4352,
2249,
5621,
3639,
357,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
467,
4109,
1984,
273,
11080,
5621,
3639,
309,
261,
4406,
422,
446,
13,
5411,
327,
31,
3639,
4352,
2249,
357,
2249,
273,
394,
4352,
2249,
5621,
3639,
357,... |
assert !modules.containsKey(clasz): Debug.show(sym); modules.put(clasz, sym); } | private void putSymbol(Symbol sym) { if (putEntry(sym)) { if (debug) System.out.println("put " + sym); if (isLocal(sym)) { putEntry(sym.name); putSymbol(sym.isConstructor() ? sym.constructorClass() : sym.owner()); switch (sym.kind) { case TYPE: if (sym.isViewBounded()) putType(sym.vuBound()); else putType(sym.info()); putType(sym.loBound()); break; case ALIAS: putType(sym.info()); putSymbol(sym.allConstructors()); break; case CLASS: putType(sym.info()); putType(sym.typeOfThis()); putSymbol(sym.allConstructors()); for (Scope.SymbolIterator it = sym.members().iterator(); it.hasNext();) putSymbol(it.next()); break; case VAL: putType(sym.info()); if (sym.isConstructor() && sym == sym.constructorClass().allConstructors()) putSymbol(sym.constructorClass()); else if (sym.isModule()) { Symbol clasz = sym.moduleClass(); putSymbol(sym.moduleClass()); assert !modules.containsKey(clasz): Debug.show(sym); modules.put(clasz, sym); } break; default: throw new ApplicationError(); } } else if (sym.kind != NONE) { putEntry(sym.isModuleClass() || sym.isRoot() ? sym.name.toTermName() : sym.name); if (!sym.owner().isRoot()) putSymbol(sym.owner()); } } } | 32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/3ec2af254866c60389b3fd304c14d1137b9cf4c8/Pickle.java/buggy/sources/scalac/symtab/classfile/Pickle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1378,
5335,
12,
5335,
5382,
13,
288,
202,
430,
261,
458,
1622,
12,
8117,
3719,
288,
202,
565,
309,
261,
4148,
13,
2332,
18,
659,
18,
8222,
2932,
458,
315,
397,
5382,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1378,
5335,
12,
5335,
5382,
13,
288,
202,
430,
261,
458,
1622,
12,
8117,
3719,
288,
202,
565,
309,
261,
4148,
13,
2332,
18,
659,
18,
8222,
2932,
458,
315,
397,
5382,
1769,
... | |
if (rulesListModel.size() != 0) loggingRulesList.setSelectedIndex(0); | protected void createUI(){ I18n i18n = I18n.get(GameLoggerPreferencesPanel.class); int loggingMode = gameLogger.getLoggingMode(); String allGamesLogFile = gameLogger.getLogFileForAll(); Vector loggingRules = gameLogger.getLoggingRules(); logNoneButton = i18n.createRadioButton("logNoGamesRadioButton"); logAllButton = i18n.createRadioButton("logAllGamesRadioButton"); useRulesButton = i18n.createRadioButton("ruleBasedGameLoggingRadioButton"); ButtonGroup modeGroup = new ButtonGroup(); modeGroup.add(logNoneButton); modeGroup.add(logAllButton); modeGroup.add(useRulesButton); logNoneButton.setActionCommand("none"); logAllButton.setActionCommand("all"); useRulesButton.setActionCommand("rules"); final JPanel logAllPanel = new JPanel(); final JPanel useRulesPanel = new JPanel(); ActionListener loggingModeListener = new ActionListener(){ public void actionPerformed(ActionEvent evt){ String actionCommand = evt.getActionCommand(); if ("none".equals(actionCommand)){ setContainerEnabled(logAllPanel, false); setContainerEnabled(useRulesPanel, false); } if ("all".equals(actionCommand)){ setContainerEnabled(logAllPanel, true); setContainerEnabled(useRulesPanel, false); } else if ("rules".equals(actionCommand)){ setContainerEnabled(logAllPanel, false); setContainerEnabled(useRulesPanel, true); } fireStateChanged(); } }; logNoneButton.addActionListener(loggingModeListener); logAllButton.addActionListener(loggingModeListener); useRulesButton.addActionListener(loggingModeListener); switch(loggingMode){ case GameLogger.LOG_NONE: logNoneButton.setSelected(true); break; case GameLogger.LOG_ALL: logAllButton.setSelected(true); break; case GameLogger.USE_RULES: useRulesButton.setSelected(true); break; } allGamesLogFileField = new FixedJTextField(10); allGamesLogFileField.setText(allGamesLogFile); allGamesLogFileField.getDocument().addDocumentListener(changeFiringDocumentListener); JButton browseAllGamesLogFileButton = i18n.createButton("browseLogFileButton"); browseAllGamesLogFileButton.setDefaultCapable(false); browseAllGamesLogFileButton.addActionListener(new PGNFileSelectActionListener(this, allGamesLogFileField)); logAllPanel.setLayout(new BorderLayout(5, 5)); logAllPanel.add(allGamesLogFileField, BorderLayout.CENTER); logAllPanel.add(browseAllGamesLogFileButton, BorderLayout.EAST); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); JPanel logNoneHelpPanel = new JPanel(new BorderLayout(5, 5)); logNoneHelpPanel.add(logNoneButton, BorderLayout.WEST); JPanel logAllHelpPanel = new JPanel(new BorderLayout()); logAllHelpPanel.add(logAllButton, BorderLayout.WEST); logAllHelpPanel.add(logAllPanel, BorderLayout.CENTER); JPanel useRulesHelpPanel = new JPanel(new BorderLayout()); useRulesHelpPanel.add(useRulesButton, BorderLayout.WEST); JPanel modeButtonsPanel = new JPanel(new GridLayout(3, 1, 5, 5)); modeButtonsPanel.add(logNoneHelpPanel); modeButtonsPanel.add(logAllHelpPanel); modeButtonsPanel.add(useRulesHelpPanel); final DefaultListModel rulesListModel = new DefaultListModel(); for (int i = 0; i < loggingRules.size(); i++) rulesListModel.addElement(loggingRules.elementAt(i)); loggingRulesList = new JList(rulesListModel); loggingRulesList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); loggingRulesList.addListSelectionListener(new ListSelectionListener(){ private boolean ignoreSelectionChange = false; public void valueChanged(ListSelectionEvent evt){ if (evt.getValueIsAdjusting()) return; if (ignoreSelectionChange) return; if ((rulesListSelectedIndex != -1) && (rulesListSelectedIndex < rulesListModel.size())){ try{ updateRuleFromUI(rulesListSelectedIndex); } catch (BadChangesException e){ ignoreSelectionChange = true; loggingRulesList.setSelectedIndex(rulesListSelectedIndex); ignoreSelectionChange = false; I18n i18n = I18n.get(GameLoggerPreferencesPanel.class); OptionPanel.error(i18n.getString("badChangesDialog.title"), e.getMessage(), GameLoggerPreferencesPanel.this); if (e.getErrorComponent() != null) e.getErrorComponent().requestFocus(); return; } } rulesListSelectedIndex = loggingRulesList.getSelectedIndex(); try{ ignoreRuleFieldsDocumentChange = true; if (rulesListSelectedIndex == -1){ rulenameField.setText(""); filenameField.setText(""); conditionField.setText(""); } else{ Object selectedItem = loggingRulesList.getSelectedValue(); if (selectedItem instanceof LoggingRule){ LoggingRule selectedRule = (LoggingRule)selectedItem; rulenameField.setText(selectedRule.getName()); filenameField.setText(selectedRule.getFilename()); conditionField.setText(selectedRule.getCondition()); } } } finally{ ignoreRuleFieldsDocumentChange = false; } } }); JScrollPane loggingListRulesScrollPane = new JScrollPane(loggingRulesList); loggingListRulesScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); loggingListRulesScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); loggingListRulesScrollPane.setPreferredSize(new Dimension(80, 80)); JLabel rulesLabel = i18n.createLabel("gameLoggingRulesLabel"); rulesLabel.setLabelFor(loggingRulesList); rulesLabel.setAlignmentX(Component.LEFT_ALIGNMENT); JButton addRuleButton = i18n.createButton("addGameLoggingRuleButton"); addRuleButton.setDefaultCapable(false); addRuleButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ int selectedIndex = loggingRulesList.getSelectedIndex(); if (selectedIndex != -1){ try{ updateRuleFromUI(selectedIndex); } catch (BadChangesException e){ I18n i18n = I18n.get(GameLoggerPreferencesPanel.class); OptionPanel.error(i18n.getString("badChangesDialog.title"), e.getMessage(), GameLoggerPreferencesPanel.this); if (e.getErrorComponent() != null) e.getErrorComponent().requestFocus(); return; } } rulesListModel.addElement(I18n.get(GameLoggerPreferencesPanel.class).getString("initialNewGameLoggingRuleName")); loggingRulesList.setSelectedIndex(rulesListModel.size() - 1); rulenameField.setText(""); filenameField.setText(""); conditionField.setText(""); rulenameField.requestFocus(); } }); JButton deleteRuleButton = i18n.createButton("deleteGameLoggingRuleButton"); deleteRuleButton.setDefaultCapable(false); deleteRuleButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ int selectedIndex = loggingRulesList.getSelectedIndex(); if (selectedIndex != -1){ I18n i18n = I18n.get(GameLoggerPreferencesPanel.class); String ruleName = rulesListModel.getElementAt(selectedIndex).toString(); Object result = i18n.confirm(OptionPanel.OK, "confirmRuleDeletion", GameLoggerPreferencesPanel.this, new Object[]{ruleName}); if (result == OptionPanel.OK){ rulesListModel.removeElementAt(selectedIndex); if (selectedIndex < rulesListModel.size()) loggingRulesList.setSelectedIndex(selectedIndex); else if (rulesListModel.size() != 0) loggingRulesList.setSelectedIndex(selectedIndex - 1); else{ // Needed because of a bug in earlier versions of swing which causes ListSelectionEvents // not to be fired for events when no index is selected. try{ ignoreRuleFieldsDocumentChange = true; rulenameField.setText(""); filenameField.setText(""); conditionField.setText(""); rulesListSelectedIndex = -1; } finally{ ignoreRuleFieldsDocumentChange = false; } } loggingRulesList.setSelectedIndex(-1); fireStateChanged(); } } } }); JPanel buttonHelpPanel = new JPanel(new GridLayout(2, 1, 5, 5)); buttonHelpPanel.add(addRuleButton); buttonHelpPanel.add(deleteRuleButton); buttonHelpPanel.setMaximumSize(buttonHelpPanel.getPreferredSize()); Box buttonsBox = Box.createVerticalBox(); buttonsBox.add(Box.createVerticalGlue()); buttonsBox.add(buttonHelpPanel); buttonsBox.add(Box.createVerticalGlue()); Box listAndButtonsPanel = Box.createHorizontalBox(); listAndButtonsPanel.add(loggingListRulesScrollPane); listAndButtonsPanel.add(Box.createHorizontalStrut(10)); listAndButtonsPanel.add(buttonsBox); listAndButtonsPanel.add(Box.createHorizontalGlue()); JPanel rulesListPanel = new JPanel(new BorderLayout(5, 5)); rulesListPanel.add(rulesLabel, BorderLayout.NORTH); rulesListPanel.add(listAndButtonsPanel, BorderLayout.CENTER); rulenameField = new FixedJTextField(10); filenameField = new FixedJTextField(10); conditionField = new FixedJTextField(20); if (rulesListModel.size() != 0) loggingRulesList.setSelectedIndex(0); rulenameField.getDocument().addDocumentListener(changeFiringDocumentListener); filenameField.getDocument().addDocumentListener(changeFiringDocumentListener); conditionField.getDocument().addDocumentListener(changeFiringDocumentListener); rulenameField.getDocument().addDocumentListener(new DocumentListener(){ public void changedUpdate(DocumentEvent e){updateRulename();} public void insertUpdate(DocumentEvent e){updateRulename();} public void removeUpdate(DocumentEvent e){updateRulename();} private void updateRulename(){ Object selectedItem = loggingRulesList.getSelectedValue(); if (selectedItem instanceof String){ String text = rulenameField.getText(); if (text.length() == 0) rulesListModel.setElementAt(I18n.get(GameLoggerPreferencesPanel.class).getString("initialNewGameLoggingRuleName"), loggingRulesList.getSelectedIndex()); else rulesListModel.setElementAt(text, loggingRulesList.getSelectedIndex()); } else if (selectedItem instanceof LoggingRule){ LoggingRule loggingRule = (LoggingRule)selectedItem; String text = rulenameField.getText(); if ((text != null) && (text.length() != 0)){ // A temporary state when setting text? loggingRule.setName(text); loggingRulesList.repaint(); } } } }); JLabel rulenameLabel = i18n.createLabel("gameLoggingRuleNameLabel"); JLabel filenameLabel = i18n.createLabel("gameLoggingFilenameLabel"); JLabel conditionLabel = i18n.createLabel("gameLoggingConditionLabel"); rulenameLabel.setLabelFor(rulenameField); filenameLabel.setLabelFor(filenameField); conditionLabel.setLabelFor(conditionField); JButton browseLogFileButton = i18n.createButton("browseLogFileButton"); browseLogFileButton.setDefaultCapable(false); browseLogFileButton.addActionListener(new PGNFileSelectActionListener(this, filenameField)); JButton helpConditionButton = i18n.createButton("conditionHelpButton"); helpConditionButton.setDefaultCapable(false); helpConditionButton.setPreferredSize(browseLogFileButton.getPreferredSize()); helpConditionButton.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ I18n i18n = I18n.get(GameLoggerPreferencesPanel.class); i18n.showPlainTextDialog("conditionHelpDialog", GameLoggerPreferencesPanel.this); } }); JPanel rulePropertiesPanel = new JPanel(new GridLayout(3, 1, 5, 5)); Box rulenameBox = Box.createHorizontalBox(); Box filenameBox = Box.createHorizontalBox(); Box conditionBox = Box.createHorizontalBox(); int maxPrefWidth = Math.max(rulenameLabel.getPreferredSize().width, Math.max(filenameLabel.getPreferredSize().width, conditionLabel.getPreferredSize().width)); rulenameLabel.setPreferredSize(new Dimension(maxPrefWidth + 7, 20)); filenameLabel.setPreferredSize(new Dimension(maxPrefWidth + 7, 20)); conditionLabel.setPreferredSize(new Dimension(maxPrefWidth + 7, 20)); rulenameBox.add(rulenameLabel); rulenameBox.add(Box.createHorizontalStrut(5)); rulenameBox.add(rulenameField); rulenameBox.add(Box.createHorizontalStrut(5+browseLogFileButton.getPreferredSize().width)); filenameBox.add(filenameLabel); filenameBox.add(Box.createHorizontalStrut(5)); filenameBox.add(filenameField); filenameBox.add(Box.createHorizontalStrut(5)); filenameBox.add(browseLogFileButton); conditionBox.add(conditionLabel); conditionBox.add(Box.createHorizontalStrut(5)); conditionBox.add(conditionField); conditionBox.add(Box.createHorizontalStrut(5)); conditionBox.add(helpConditionButton); rulePropertiesPanel.add(rulenameBox); rulePropertiesPanel.add(filenameBox); rulePropertiesPanel.add(conditionBox); useRulesPanel.setBorder(new EmptyBorder(5, 16, 0, 0)); useRulesPanel.setLayout(new BorderLayout(5, 20)); useRulesPanel.add(rulesListPanel, BorderLayout.CENTER); useRulesPanel.add(rulePropertiesPanel, BorderLayout.SOUTH); add(modeButtonsPanel, BorderLayout.NORTH); add(useRulesPanel, BorderLayout.CENTER); if (loggingMode == GameLogger.LOG_ALL) setContainerEnabled(useRulesPanel, false); else if (loggingMode == GameLogger.USE_RULES) setContainerEnabled(logAllPanel, false); else{ setContainerEnabled(useRulesPanel, false); setContainerEnabled(logAllPanel, false); } } | 1161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1161/48013fbba113219355095f7b04044d1286ba647a/GameLoggerPreferencesPanel.java/buggy/src/free/jin/gamelogger/GameLoggerPreferencesPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
752,
5370,
1435,
95,
565,
467,
2643,
82,
277,
2643,
82,
273,
467,
2643,
82,
18,
588,
12,
12496,
3328,
12377,
5537,
18,
1106,
1769,
3639,
509,
2907,
2309,
273,
7920,
3328,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
752,
5370,
1435,
95,
565,
467,
2643,
82,
277,
2643,
82,
273,
467,
2643,
82,
18,
588,
12,
12496,
3328,
12377,
5537,
18,
1106,
1769,
3639,
509,
2907,
2309,
273,
7920,
3328,
18,... | |
Container c = designer.getRootWidget(); Point new_point = SwingUtilities.convertPoint(this, p, c); Component new_container = c.getComponentAt(new_point); while (new_container != null && new_container != c && containers.contains(new_container)) { new_point = SwingUtilities.convertPoint(c, new_point, new_container); c = (Container)new_container; new_container = c.getComponentAt(new_point); } p.x = new_point.x; p.y = new_point.y; return c; } | Container c = designer.getRootWidget(); Point new_point = SwingUtilities.convertPoint(this, p, c); Component new_container = c.getComponentAt(new_point); while (new_container != null && new_container != c && containers.contains(new_container)) { new_point = SwingUtilities .convertPoint(c, new_point, new_container); c = (Container) new_container; new_container = c.getComponentAt(new_point); } p.x = new_point.x; p.y = new_point.y; return c; } | protected Container getContainer(Point p) { Container c = designer.getRootWidget(); Point new_point = SwingUtilities.convertPoint(this, p, c); Component new_container = c.getComponentAt(new_point); // find correct container and update p to new coordinates. while (new_container != null && new_container != c && containers.contains(new_container)) { new_point = SwingUtilities.convertPoint(c, new_point, new_container); c = (Container)new_container; new_container = c.getComponentAt(new_point); } p.x = new_point.x; p.y = new_point.y; return c; } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/bab75ebdd98a0bd5024d5811d4e9443431e6c9a2/GlassPane.java/clean/JSynthLib/org/jsynthlib/editorbuilder/GlassPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4039,
9272,
12,
2148,
293,
13,
288,
202,
202,
2170,
276,
273,
8281,
264,
18,
588,
2375,
4609,
5621,
202,
202,
2148,
394,
67,
1153,
273,
26145,
11864,
18,
6283,
2148,
12,
2211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4039,
9272,
12,
2148,
293,
13,
288,
202,
202,
2170,
276,
273,
8281,
264,
18,
588,
2375,
4609,
5621,
202,
202,
2148,
394,
67,
1153,
273,
26145,
11864,
18,
6283,
2148,
12,
2211... |
else { this.status = ProcessStatus.RESET; } | this.status = ProcessStatus.RESET; | protected void reset() { if (this.status == ProcessStatus.STOPPED || this.status == ProcessStatus.COMPLETED) { if (this.runOnce) { throw new UnsupportedOperationException("This process template can only safely execute once; " + "instantiate a new instance per request"); } else { this.status = ProcessStatus.RESET; } } } | 55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/970bcdd60ee0c816ab5b641ca1f14ae19799a842/AbstractElementGenerator.java/buggy/support/src/main/java/org/springframework/core/closure/support/AbstractElementGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2715,
1435,
288,
202,
202,
430,
261,
2211,
18,
2327,
422,
4389,
1482,
18,
17513,
12120,
747,
333,
18,
2327,
422,
4389,
1482,
18,
15795,
40,
13,
288,
1082,
202,
430,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2715,
1435,
288,
202,
202,
430,
261,
2211,
18,
2327,
422,
4389,
1482,
18,
17513,
12120,
747,
333,
18,
2327,
422,
4389,
1482,
18,
15795,
40,
13,
288,
1082,
202,
430,
261,... |
m_counter++; return "MockMailServer-ID-" + m_counter; | return newId(); | public synchronized String getId() { m_counter++; return "MockMailServer-ID-" + m_counter; } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/6989849378482869552fed286d5ab85cdd35900b/MockMailServer.java/clean/trunk/src/test/org/apache/james/test/mock/james/MockMailServer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
514,
2634,
1435,
288,
3639,
312,
67,
7476,
9904,
31,
3639,
327,
315,
9865,
6759,
2081,
17,
734,
10951,
397,
312,
67,
7476,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
514,
2634,
1435,
288,
3639,
312,
67,
7476,
9904,
31,
3639,
327,
315,
9865,
6759,
2081,
17,
734,
10951,
397,
312,
67,
7476,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
dFH ) ); | dFH ), false ); | private final void showLeftValue( IPrimitiveRenderer ipr, Location lo, Label la, boolean bShadow ) { Graphics2D g2d = (Graphics2D) ( (IDeviceRenderer) ipr ).getGraphicsContext( ); double dX = lo.getX( ), dY = lo.getY( ); FontDefinition fd = la.getCaption( ).getFont( ); double dAngleInDegrees = fd.getRotation( ); if ( bShadow ) // UPDATE TO FALSE IF SHADOW COLOR UNDEFINED BUT SHADOW // REQUESTED FOR { bShadow = la.getShadowColor( ) != null; } Color clrText = (Color) _sxs.getColor( la.getCaption( ).getColor( ) ); Color clrBackground = null; if ( la.getBackground( ) != null ) { clrBackground = (Color) _sxs.getColor( (ColorDefinition) la.getBackground( ) ); } final double dAngleInRadians = ( ( -dAngleInDegrees * Math.PI ) / 180.0 ); final double dSineTheta = ( Math.sin( dAngleInRadians ) ); final double dCosTheta = ( Math.cos( dAngleInRadians ) ); final ITextMetrics itm = new SVGTextMetrics( _sxs, la ); final double dFW = itm.getFullWidth( ); final double dH = itm.getHeight( ); final double dD = itm.getDescent( ); final double dFH = itm.getFullHeight( ); double dXOffset = 0, dW = 0; final int iLC = itm.getLineCount( ); final Insets ins = la.getInsets( ) .scaledInstance( _sxs.getDpiResolution( ) / 72d ); SVGTextLayout tl; final HorizontalAlignment ha = la.getCaption( ) .getFont( ) .getAlignment( ) .getHorizontalAlignment( ); final boolean bRightAligned = ha.getValue( ) == HorizontalAlignment.RIGHT; final boolean bCenterAligned = ha.getValue( ) == HorizontalAlignment.CENTER; double dRotateX = ( dX - dFW ); double dRotateY = ( dY + dH / 2 ); dX -= dFW; dY += dH / 2; if ( dAngleInDegrees == 0 ) { double dYHalfOffset = ( dFH + dH ) / 2d; if ( bShadow ) // RENDER THE SHADOW { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dYHalfOffset ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dYHalfOffset ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dYHalfOffset ) + 3, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dYHalfOffset, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SVGTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( dY - dYHalfOffset + ins.getTop( ) + dH * ( i + 1 ) - dD ) ); } // RENDER THE OUTLINE renderOutline( ipr, la.getOutline( ), r2d ); } } // DRAW POSITIVE ANGLE (> 0) else if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { double dDeltaX = dFW - dFW * dCosTheta; double dDeltaY = dFW * dSineTheta + dH / 2; dX += dDeltaX; dY -= dDeltaY; g2d.rotate( dAngleInRadians, dRotateX + dDeltaX, dRotateY - dDeltaY ); if ( bShadow ) { // RENDER THE SHADOW g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dFH ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dFH ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dFH ) + 3, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dFH, dFW, dFH ); // RENDER THE BACKGROUND if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < itm.getLineCount( ); i++ ) { tl = ( (SVGTextMetrics) itm ).getLayout( iLC - i - 1 ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( ( dY - dD ) - ( dH * i ) ) - ins.getBottom( ) ) ); } // RENDER THE OUTLINE renderOutline( ipr, la.getOutline( ), r2d ); } g2d.rotate( -dAngleInRadians, dRotateX + dDeltaX, dRotateY - dDeltaY ); } // DRAW NEGATIVE ANGLE (< 0) else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { double dDeltaX = dFW - dFW * dCosTheta - dH * dSineTheta; double dDeltaY = dFW * dSineTheta + dH / 2 - dH * dCosTheta; dX += dDeltaX; dY -= dDeltaY; g2d.rotate( dAngleInRadians, dRotateX + dDeltaX, dRotateY - dDeltaY ); if ( bShadow ) { // RENDER THE SHADOW g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dH ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dH ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dH ) + 3, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dH, dFW, dFH ); // RENDER THE BACKGROUND FILL if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SVGTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( ( dY - dD ) + ( dH * i ) ) + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } g2d.rotate( -dAngleInRadians, dRotateX + dDeltaX, dRotateY - dDeltaY ); } // VERTICALLY UP else if ( dAngleInDegrees == 90 ) { double dDeltaX = dFW; double dDeltaY = ( dFW - dH ) / 2; dX += dDeltaX; dY += dDeltaY; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dFH ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dFH ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dFH ) + 3, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dFH, dFW, dFH ); // RENDER THE BACKGROUND FILL if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SVGTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( ( dY - dD ) - ( dH * ( iLC - i - 1 ) ) ) + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } g2d.rotate( -dAngleInRadians, dX, dY ); } // VERTICALLY DOWN else if ( dAngleInDegrees == -90 ) { double dDeltaX = dFW - dH; double dDeltaY = ( dFW + dH ) / 2; dX += dDeltaX; dY -= dDeltaY; g2d.rotate( dAngleInRadians, dX, dY ); if ( bShadow ) { g2d.setPaint( new GradientPaint( new Point2D.Double( dX + 3, ( dY - dFH ) + 3 ), (Color) _sxs.getColor( la.getShadowColor( ) ), new Point2D.Double( dX + 3 + dFW, ( dY - dFH ) + 3 + dFH ), (Color) _sxs.getColor( la.getShadowColor( ) .translucent( ) ) ) ); g2d.fill( new Rectangle2D.Double( dX + 3, ( dY - dFH ) + 3, dFW, dFH ) ); } else { final Rectangle2D.Double r2d = new Rectangle2D.Double( dX, dY - dH, dFW, dFH ); // RENDER THE BACKGROUND FILL if ( clrBackground != null ) { g2d.setColor( clrBackground ); g2d.fill( r2d ); } // RENDER THE TEXT g2d.setColor( clrText ); for ( int i = 0; i < iLC; i++ ) { tl = ( (SVGTextMetrics) itm ).getLayout( i ); if ( bRightAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + dFW - dW - ins.getRight( ); } else if ( bCenterAligned ) { dW = tl.getBounds( ).getWidth( ); dXOffset = -ins.getLeft( ) + ( dFW - dW ) / 2; } tl.draw( g2d, (float) ( dX + dXOffset + ins.getLeft( ) ), (float) ( ( ( dY - dD ) + ( dH * i ) ) + ins.getTop( ) ) ); } // RENDER THE OUTLINE/BORDER renderOutline( ipr, la.getOutline( ), r2d ); } g2d.rotate( -dAngleInRadians, dX, dY ); } itm.dispose( ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/7749562ecc2c286d326af2aec79b5aee0e9c20bc/SVGTextRenderer.java/clean/chart/org.eclipse.birt.chart.device.svg/src/org/eclipse/birt/chart/device/svg/SVGTextRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
2405,
3910,
620,
12,
467,
9840,
6747,
277,
683,
16,
7050,
437,
16,
1082,
202,
2224,
7125,
16,
1250,
324,
12957,
262,
202,
95,
202,
202,
17558,
22,
40,
314,
22,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
918,
2405,
3910,
620,
12,
467,
9840,
6747,
277,
683,
16,
7050,
437,
16,
1082,
202,
2224,
7125,
16,
1250,
324,
12957,
262,
202,
95,
202,
202,
17558,
22,
40,
314,
22,
72... |
}); | }; getWindow().addPerspectiveListener(perspectiveListener); | private void hookListeners() { // Listen to workbench page lifecycle methods to enable // and disable the perspective menu items as needed. getWindow().addPageListener(new IPageListener() { public void pageActivated(IWorkbenchPage page) { enableActions(page.getPerspective() != null); } public void pageClosed(IWorkbenchPage page) { IWorkbenchPage pg = getWindow().getActivePage(); enableActions(pg != null && pg.getPerspective() != null); } public void pageOpened(IWorkbenchPage page) { // do nothing } }); getWindow().addPerspectiveListener(new IPerspectiveListener() { public void perspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) { enableActions(true); } public void perspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) { // do nothing } }); prefListener = new Preferences.IPropertyChangeListener() { public void propertyChange(Preferences.PropertyChangeEvent event) { if (event.getProperty().equals(ResourcesPlugin.PREF_AUTO_BUILDING)) { final boolean autoBuild = ResourcesPlugin.getWorkspace().isAutoBuilding(); if (window.getShell() != null && !window.getShell().isDisposed()) { // this property change notification could be from a non-ui thread window.getShell().getDisplay().syncExec(new Runnable() { public void run() { updateBuildActions(autoBuild); } }); } } } }; ResourcesPlugin.getPlugin().getPluginPreferences().addPropertyChangeListener(prefListener); // listener for the "close editors automatically" // preference change propPrefListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(IPreferenceConstants.REUSE_EDITORS_BOOLEAN)) { if (window.getShell() != null && !window.getShell().isDisposed()) { // this property change notification could be from a non-ui thread window.getShell().getDisplay().syncExec(new Runnable() { public void run() { updatePinActionToolbar(); } }); } } } }; /* * In order to ensure that the pin action toolbar sets its size * correctly, the pin action should set its visiblity before we call updatePinActionToolbar(). * * In other words we always want the PinActionContributionItem to be notified before the * WorkbenchActionBuilder. */ WorkbenchPlugin.getDefault().getPreferenceStore().addPropertyChangeListener(propPrefListener); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/5fab247f52602e9d6d0d778abdd2a7eac94731b7/WorkbenchActionBuilder.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
5583,
1435,
288,
202,
202,
759,
13426,
358,
1440,
22144,
1363,
6596,
2590,
358,
4237,
202,
202,
759,
471,
4056,
326,
26651,
3824,
1516,
487,
3577,
18,
202,
202,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3953,
5583,
1435,
288,
202,
202,
759,
13426,
358,
1440,
22144,
1363,
6596,
2590,
358,
4237,
202,
202,
759,
471,
4056,
326,
26651,
3824,
1516,
487,
3577,
18,
202,
202,
588,... |
if (pickMode) gl.glPopName(); | if (pickMode) gl.glPopName(); | public int createTubesOnEdgesAsDL(IndexedLineSet ils, double rad, double alpha, JOGLRenderer jr, int sig, boolean pickMode, boolean useDisplayLists) { GL gl = jr.globalGL; double[] p1 = new double[4], p2 = new double[4]; p1[3] = p2[3] = 1.0; double[][] oneCurve = null; double[][] crossSection = TubeUtility.octagonalCrossSection; if (jr.openGLState.levelOfDetail == 0.0) crossSection = TubeUtility.diamondCrossSection; int n = ils.getNumEdges(); DataList vertices = ils.getVertexAttributes(Attribute.COORDINATES); if (ils.getNumPoints() <= 1) return -1;// JOGLConfiguration.theLog.log(Level.FINE,"Creating tubes for "+ils.getName()); if (tubeDL == null) { tubeDL = new int[3]; } if (tubeDL[sig+1] == 0) { tubeDL[sig+1] = gl.glGenLists(1); gl.glNewList(tubeDL[sig+1], GL.GL_COMPILE); jr.helper.drawFaces(TubeUtility.urTube[sig+1], smoothShading , alpha ); gl.glEndList(); } int nextDL = -1; if (useDisplayLists) { nextDL = gl.glGenLists(1); gl.glNewList(nextDL, GL.GL_COMPILE); } int k, l; DoubleArray da; double[] mat = new double[16]; for (int i = 0; i<n; ++i) { IntArray ia = ils.getEdgeAttributes(Attribute.INDICES).item(i).toIntArray(); DataList edgec = ils.getEdgeAttributes(Attribute.COLORS); int m = ia.size(); if (pickMode) gl.glPushName(i); if (m == 2 || pickMode) { // probably an IndexedFaceSet DoubleArray edgecolor = null; int clength = 3; if (edgec != null) { edgecolor = edgec.item(i).toDoubleArray(); clength = edgecolor.size(); if (clength == 3) gl.glColor3d(edgecolor.getValueAt(0), edgecolor.getValueAt(1), edgecolor.getValueAt(2)); else gl.glColor4d(edgecolor.getValueAt(0), edgecolor.getValueAt(1), edgecolor.getValueAt(2), edgecolor.getValueAt(3)); } for (int j = 0; j<m-1; ++j) { k = ia.getValueAt(j); da = vertices.item(k).toDoubleArray(); l = da.size(); for (int xx=0; xx<l; ++xx) p1[xx] = da.getValueAt(xx); k = ia.getValueAt(j+1); da = vertices.item(k).toDoubleArray(); l = da.size(); for (int xx=0; xx<l; ++xx) p2[xx] = da.getValueAt(xx); SceneGraphComponent cc = TubeUtility.tubeOneEdge(p1, p2, rad, crossSection, sig); if (pickMode) gl.glPushName(j); gl.glPushMatrix(); gl.glMultTransposeMatrixd(cc.getTransformation().getMatrix(mat)); gl.glCallList(tubeDL[sig+1]); gl.glPopMatrix(); if (pickMode) gl.glPopName(); } } else { // the assumption is that this is a genuine IndexedLineSet (not subclass with faces) oneCurve = IndexedLineSetUtility.extractCurve(oneCurve, ils, i); PolygonalTubeFactory ptf = new PolygonalTubeFactory(oneCurve); ptf.setClosed(false); ptf.setCrossSection(crossSection); ptf.setFrameFieldType(tubeStyle); ptf.setSignature(sig); ptf.setRadius(rad); ptf.update(); IndexedFaceSet tube = ptf.getTube(); if (tube != null) { jr.helper.drawFaces(tube, smoothShading, alpha); } } if (pickMode) gl.glPopName(); } if (pickMode) gl.glPopName(); if (useDisplayLists) gl.glEndList(); return nextDL; } | 25476 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25476/b7e7acfd437fcc628868cf9f41c51ae0951c3a88/DefaultLineShader.java/clean/src-jogl/de/jreality/jogl/shader/DefaultLineShader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
752,
56,
23317,
1398,
10697,
1463,
8914,
12,
15034,
1670,
694,
277,
3251,
16,
1645,
6719,
16,
225,
1645,
4190,
16,
804,
51,
11261,
6747,
31928,
16,
509,
3553,
16,
1250,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
752,
56,
23317,
1398,
10697,
1463,
8914,
12,
15034,
1670,
694,
277,
3251,
16,
1645,
6719,
16,
225,
1645,
4190,
16,
804,
51,
11261,
6747,
31928,
16,
509,
3553,
16,
1250,
6... |
this.formatter.lastLocalDeclarationSourceStart = alignment.location.lastLocalDeclarationSourceStart; | public void exitAlignment(Alignment alignment, boolean discardAlignment){ Alignment current = this.currentAlignment; while (current != null){ if (current == alignment) break; current = current.enclosing; } if (current == null) { throw new AbortFormatting("could not find matching alignment: "+alignment); //$NON-NLS-1$ } this.indentationLevel = alignment.location.outputIndentationLevel; if (discardAlignment){ this.currentAlignment = alignment.enclosing; } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/61d2e9bd09460e9985288e8ef72cfc838f3c761c/Scribe.java/clean/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/Scribe.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
84,
440,
933,
76,
291,
18,
12354,
18,
2722,
2042,
6094,
1830,
1685,
273,
8710,
18,
3562,
18,
2722,
2042,
6094,
1830,
1685,
31,
918,
2211,
18,
12354,
18,
2722,
2042,
6094,
1830,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
84,
440,
933,
76,
291,
18,
12354,
18,
2722,
2042,
6094,
1830,
1685,
273,
8710,
18,
3562,
18,
2722,
2042,
6094,
1830,
1685,
31,
918,
2211,
18,
12354,
18,
2722,
2042,
6094,
1830,
168... | |
(IViewModelContext)parent.getElement(), | parent.getVMC(), | public void buildDelta(final IDataModelEvent e, final ViewModelDelta parent, final Done done) { DoneTracker childNodesDoneTracker = new DoneTracker() { public void run() { fExecutor.execute(done); }}; // TODO: Note this is pretty inefficient: for one the below loop could // potentially retrieve the elements for this node several times, but // beyond that it may be possible to optimize this code based on what's // visible in the view. for (final IViewModelSchemaNode childNode : getChildNodes()) { if (childNode.hasDeltaFlags(e)) { // Take the IDataModelContext (DMC) that the event is based on, // and search its ancestors. Look for the DMC class typs that // this schema node is based on. If its found, then only one // IModelDelta needs to be generated for this schema node. // Otherwise, a IModelDelta needs to be created for every // element in this schema node. And for every element from // this node, the child schema node needs to be called. final Done childNodeDone = childNodesDoneTracker.addNoActionDone(); IDataModelContext dmc = DMCs.getAncestorOfType(e.getDMC(), fDMCClassType); if (dmc != null) { childNode.buildDelta( e, parent.addNode(new DataVMC(parent.getVMC(), dmc), IModelDelta.NO_CHANGE), childNodeDone); } else { getElements( (IViewModelContext)parent.getElement(), new GetDataDone<IViewModelContext[]>() { public void run() { if (!getStatus().isOK()) { fExecutor.execute(done); return; } else { // For each element in this schema node, create // a separate IModelDelta, and call the child // schema node with it. final DoneTracker doneTracker = new DoneTracker() { public void run() { fExecutor.execute(childNodeDone); }}; for (IViewModelContext element : getData()) { childNode.buildDelta( e, parent.addNode(element, IModelDelta.NO_CHANGE), doneTracker.addNoActionDone()); } } }}); } } } // Check if there was anything to be done. If not, invoke the client // done. if (childNodesDoneTracker.getDones().isEmpty()) { fExecutor.execute(done); } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a1c17ecdcf0306e5e2c172670651b5a4045adbe0/DataViewModelSchemaNode.java/buggy/plugins/org.eclipse.dd.dsf.ui/src/org/eclipse/dd/dsf/ui/model/DataViewModelSchemaNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1361,
9242,
12,
6385,
467,
26349,
1133,
425,
16,
727,
4441,
1488,
9242,
982,
16,
727,
8677,
2731,
13,
288,
3639,
8677,
8135,
10582,
7387,
8135,
273,
394,
8677,
8135,
1435,
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,
918,
1361,
9242,
12,
6385,
467,
26349,
1133,
425,
16,
727,
4441,
1488,
9242,
982,
16,
727,
8677,
2731,
13,
288,
3639,
8677,
8135,
10582,
7387,
8135,
273,
394,
8677,
8135,
1435,
288,... |
for( i = 0; i <= last; i++ ) { | for( i = 0; i <= last; i++ ) { | private void mainSort() { int i; int j; int ss; int sb; int runningOrder[] = new int[ 256 ]; int copy[] = new int[ 256 ]; boolean bigDone[] = new boolean[ 256 ]; int c1; int c2; int numQSorted; /* * In the various block-sized structures, live data runs * from 0 to last+NUM_OVERSHOOT_BYTES inclusive. First, * set up the overshoot area for block. */ // if (verbosity >= 4) fprintf ( stderr, " sort initialise ...\n" ); for( i = 0; i < NUM_OVERSHOOT_BYTES; i++ ) { block[ last + i + 2 ] = block[ ( i % ( last + 1 ) ) + 1 ]; } for( i = 0; i <= last + NUM_OVERSHOOT_BYTES; i++ ) { quadrant[ i ] = 0; } block[ 0 ] = (char)( block[ last + 1 ] ); if( last < 4000 ) { /* * Use simpleSort(), since the full sorting mechanism * has quite a large constant overhead. */ for( i = 0; i <= last; i++ ) { zptr[ i ] = i; } firstAttempt = false; workDone = workLimit = 0; simpleSort( 0, last, 0 ); } else { numQSorted = 0; for( i = 0; i <= 255; i++ ) { bigDone[ i ] = false; } for( i = 0; i <= 65536; i++ ) { ftab[ i ] = 0; } c1 = block[ 0 ]; for( i = 0; i <= last; i++ ) { c2 = block[ i + 1 ]; ftab[ ( c1 << 8 ) + c2 ]++; c1 = c2; } for( i = 1; i <= 65536; i++ ) { ftab[ i ] += ftab[ i - 1 ]; } c1 = block[ 1 ]; for( i = 0; i < last; i++ ) { c2 = block[ i + 2 ]; j = ( c1 << 8 ) + c2; c1 = c2; ftab[ j ]--; zptr[ ftab[ j ] ] = i; } j = ( ( block[ last + 1 ] ) << 8 ) + ( block[ 1 ] ); ftab[ j ]--; zptr[ ftab[ j ] ] = last; /* * Now ftab contains the first loc of every small bucket. * Calculate the running order, from smallest to largest * big bucket. */ for( i = 0; i <= 255; i++ ) { runningOrder[ i ] = i; } { int vv; int h = 1; do { h = 3 * h + 1; } while( h <= 256 ); do { h = h / 3; for( i = h; i <= 255; i++ ) { vv = runningOrder[ i ]; j = i; while( ( ftab[ ( ( runningOrder[ j - h ] ) + 1 ) << 8 ] - ftab[ ( runningOrder[ j - h ] ) << 8 ] ) > ( ftab[ ( ( vv ) + 1 ) << 8 ] - ftab[ ( vv ) << 8 ] ) ) { runningOrder[ j ] = runningOrder[ j - h ]; j = j - h; if( j <= ( h - 1 ) ) { break; } } runningOrder[ j ] = vv; } } while( h != 1 ); } /* * The main sorting loop. */ for( i = 0; i <= 255; i++ ) { /* * Process big buckets, starting with the least full. */ ss = runningOrder[ i ]; /* * Complete the big bucket [ss] by quicksorting * any unsorted small buckets [ss, j]. Hopefully * previous pointer-scanning phases have already * completed many of the small buckets [ss, j], so * we don't have to sort them at all. */ for( j = 0; j <= 255; j++ ) { sb = ( ss << 8 ) + j; if( !( ( ftab[ sb ] & SETMASK ) == SETMASK ) ) { int lo = ftab[ sb ] & CLEARMASK; int hi = ( ftab[ sb + 1 ] & CLEARMASK ) - 1; if( hi > lo ) { qSort3( lo, hi, 2 ); numQSorted += ( hi - lo + 1 ); if( workDone > workLimit && firstAttempt ) { return; } } ftab[ sb ] |= SETMASK; } } /* * The ss big bucket is now done. Record this fact, * and update the quadrant descriptors. Remember to * update quadrants in the overshoot area too, if * necessary. The "if (i < 255)" test merely skips * this updating for the last bucket processed, since * updating for the last bucket is pointless. */ bigDone[ ss ] = true; if( i < 255 ) { int bbStart = ftab[ ss << 8 ] & CLEARMASK; int bbSize = ( ftab[ ( ss + 1 ) << 8 ] & CLEARMASK ) - bbStart; int shifts = 0; while( ( bbSize >> shifts ) > 65534 ) { shifts++; } for( j = 0; j < bbSize; j++ ) { int a2update = zptr[ bbStart + j ]; int qVal = ( j >> shifts ); quadrant[ a2update ] = qVal; if( a2update < NUM_OVERSHOOT_BYTES ) { quadrant[ a2update + last + 1 ] = qVal; } } if( !( ( ( bbSize - 1 ) >> shifts ) <= 65535 ) ) { panic(); } } /* * Now scan this big bucket so as to synthesise the * sorted order for small buckets [t, ss] for all t != ss. */ for( j = 0; j <= 255; j++ ) { copy[ j ] = ftab[ ( j << 8 ) + ss ] & CLEARMASK; } for( j = ftab[ ss << 8 ] & CLEARMASK; j < ( ftab[ ( ss + 1 ) << 8 ] & CLEARMASK ); j++ ) { c1 = block[ zptr[ j ] ]; if( !bigDone[ c1 ] ) { zptr[ copy[ c1 ] ] = zptr[ j ] == 0 ? last : zptr[ j ] - 1; copy[ c1 ]++; } } for( j = 0; j <= 255; j++ ) { ftab[ ( j << 8 ) + ss ] |= SETMASK; } } } } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/bab9e2d799ee887bc0a404b4acdec0366234eafe/CBZip2OutputStream.java/buggy/proposal/myrmidon/src/java/org/apache/aut/bzip2/CBZip2OutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2774,
4416,
1435,
565,
288,
3639,
509,
277,
31,
3639,
509,
525,
31,
3639,
509,
5202,
31,
3639,
509,
2393,
31,
3639,
509,
3549,
2448,
8526,
273,
394,
509,
63,
8303,
308,
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,
3238,
918,
2774,
4416,
1435,
565,
288,
3639,
509,
277,
31,
3639,
509,
525,
31,
3639,
509,
5202,
31,
3639,
509,
2393,
31,
3639,
509,
3549,
2448,
8526,
273,
394,
509,
63,
8303,
308,
31,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.