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 |
|---|---|---|---|---|---|---|
if (hasTaskInfo()) return getTaskInfo().getDisplayStringWithoutTask(); | TaskInfo info = getTaskInfo(); if (info != null) return info.getDisplayStringWithoutTask(); | String getCondensedDisplayString() { if (hasTaskInfo()) return getTaskInfo().getDisplayStringWithoutTask(); return getJob().getName(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/62f626e493ebbff4af9a760b2cd50482eff1a597/JobInfo.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
514,
336,
12441,
28003,
4236,
780,
1435,
288,
3639,
309,
261,
5332,
2174,
966,
10756,
5411,
327,
11478,
966,
7675,
588,
4236,
780,
8073,
2174,
5621,
3639,
327,
13024,
7675,
17994,
5621,
565... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
336,
12441,
28003,
4236,
780,
1435,
288,
3639,
309,
261,
5332,
2174,
966,
10756,
5411,
327,
11478,
966,
7675,
588,
4236,
780,
8073,
2174,
5621,
3639,
327,
13024,
7675,
17994,
5621,
565... |
ImageDescriptor imageDescriptor = perspective.getImageDescriptor(); if (imageDescriptor != null) { image = imageDescriptor.createImage(); } else { image = WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_ETOOL_DEF_PERSPECTIVE) .createImage(); } | createImage(); | public void fill(ToolBar parent, int index) { if (toolItem == null && parent != null && !parent.isDisposed()) { if (index >= 0) toolItem = new ToolItem(parent, SWT.CHECK, index); else toolItem = new ToolItem(parent, SWT.CHECK); if (image == null || image.isDisposed()) { ImageDescriptor imageDescriptor = perspective.getImageDescriptor(); if (imageDescriptor != null) { image = imageDescriptor.createImage(); } else { image = WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_ETOOL_DEF_PERSPECTIVE) .createImage(); } } toolItem.setImage(image); toolItem.setToolTipText(WorkbenchMessages.format( "PerspectiveBarContributionItem.toolTip", //$NON-NLS-1$ new Object[] { perspective.getLabel()})); toolItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { select(); } }); toolItem.setData(this); //TODO review need for this update(); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/07b0705542a3d52889a392ff1532a494bdb75fdd/PerspectiveBarContributionItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveBarContributionItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3636,
12,
6364,
5190,
982,
16,
509,
770,
13,
288,
3639,
309,
261,
6738,
1180,
422,
446,
597,
982,
480,
446,
597,
401,
2938,
18,
291,
1669,
7423,
10756,
288,
5411,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3636,
12,
6364,
5190,
982,
16,
509,
770,
13,
288,
3639,
309,
261,
6738,
1180,
422,
446,
597,
982,
480,
446,
597,
401,
2938,
18,
291,
1669,
7423,
10756,
288,
5411,
309,
261,
... |
ReteooWorkingMemory workingMemory) { | InternalWorkingMemory workingMemory) { | public void retractTuple(ReteTuple leftTuple, PropagationContext context, ReteooWorkingMemory workingMemory) { final BetaMemory memory = (BetaMemory) workingMemory.getNodeMemory( this ); memory.remove( workingMemory, leftTuple ); final Map matches = leftTuple.getTupleMatches(); if ( !matches.isEmpty() ) { for ( final Iterator it = matches.values().iterator(); it.hasNext(); ) { final TupleMatch tupleMatch = (TupleMatch) it.next(); propagateRetractTuple( tupleMatch, context, workingMemory ); workingMemory.getFactHandleFactory().destroyFactHandle( tupleMatch.getObjectMatches().getFactHandle() ); } } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/f8e669f7d23ddc7d371af6f1eede91324ed01f36/FromNode.java/buggy/drools-core/src/main/java/org/drools/reteoo/FromNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
283,
1575,
9038,
12,
7055,
73,
9038,
2002,
9038,
16,
11794,
1186,
9095,
367,
1042,
819,
16,
11794,
3186,
14836,
6031,
5960,
6031,
13,
288,
3639,
727,
16393,
6031,
3778,
273,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
283,
1575,
9038,
12,
7055,
73,
9038,
2002,
9038,
16,
11794,
1186,
9095,
367,
1042,
819,
16,
11794,
3186,
14836,
6031,
5960,
6031,
13,
288,
3639,
727,
16393,
6031,
3778,
273,
26... |
reserved = 0; committed = 0; | this.pageBudget = pageBudget; | public void reset() { lock(); reserved = 0; committed = 0; unlock(); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/ee7f4d807b4ceb99a99b97ba7fa8a9c40ac55510/MemoryResource.java/buggy/rvm/src/vm/memoryManagers/JMTk/utility/MemoryResource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2715,
1435,
288,
565,
2176,
5621,
565,
8735,
273,
374,
31,
565,
16015,
273,
374,
31,
565,
7186,
5621,
225,
289,
2,
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,
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,
282,
1071,
918,
2715,
1435,
288,
565,
2176,
5621,
565,
8735,
273,
374,
31,
565,
16015,
273,
374,
31,
565,
7186,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
key = KeyStroke.getKeyStroke(KeyEvent.VK_O, KeyEvent.CTRL_MASK); inputMap.put(key, ZOOM_OUT_ACTION); | key = KeyStroke.getKeyStroke(KeyEvent.VK_O, KeyEvent.CTRL_MASK); inputMap.put(key, ZOOM_OUT_ACTION); | protected void installKeyboardActions() { InputMap inputMap = getInputMap(JComponent.WHEN_FOCUSED); KeyStroke key; key = KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, 0); inputMap.put(key, SCROLL_RIGHT_ACTION); key = KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, 0); inputMap.put(key, SCROLL_LEFT_ACTION); key = KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0); inputMap.put(key, SCROLL_UP_ACTION); key = KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0); inputMap.put(key, SCROLL_DOWN_ACTION); key = KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, KeyEvent.SHIFT_MASK); inputMap.put(key, FAST_SCROLL_RIGHT_ACTION); key = KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, KeyEvent.SHIFT_MASK); inputMap.put(key, FAST_SCROLL_LEFT_ACTION); key = KeyStroke.getKeyStroke(KeyEvent.VK_UP, KeyEvent.SHIFT_MASK); inputMap.put(key, FAST_SCROLL_UP_ACTION); key = KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, KeyEvent.SHIFT_MASK); inputMap.put(key, FAST_SCROLL_DOWN_ACTION); key = KeyStroke.getKeyStroke(KeyEvent.VK_I, KeyEvent.CTRL_MASK); inputMap.put(key, ZOOM_IN_ACTION); key = KeyStroke.getKeyStroke(KeyEvent.VK_O, KeyEvent.CTRL_MASK); inputMap.put(key, ZOOM_OUT_ACTION); key = KeyStroke.getKeyStroke(KeyEvent.VK_T, KeyEvent.CTRL_MASK); inputMap.put(key, RESET_TRANSFORM_ACTION); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/38db9dfe2d4053c62ca696ac125d592a1ff62502/JSVGCanvas.java/buggy/sources/org/apache/batik/swing/JSVGCanvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3799,
17872,
6100,
1435,
288,
202,
1210,
863,
810,
863,
273,
12353,
863,
12,
46,
1841,
18,
12557,
1157,
67,
3313,
39,
20093,
1769,
202,
653,
14602,
498,
31,
202,
856,
273,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3799,
17872,
6100,
1435,
288,
202,
1210,
863,
810,
863,
273,
12353,
863,
12,
46,
1841,
18,
12557,
1157,
67,
3313,
39,
20093,
1769,
202,
653,
14602,
498,
31,
202,
856,
273,
19... |
throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); | throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier, global); | public ClientPutMessage(SimpleFieldSet fs) throws MessageInvalidException { String fnam = null; identifier = fs.get("Identifier"); if(identifier == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", null); try { String u = fs.get("URI"); if(u == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No URI", identifier); FreenetURI uu = new FreenetURI(fs.get("URI")); String[] metas = uu.getAllMetaStrings(); if(metas != null && metas.length == 1) { fnam = metas[0]; uu = uu.setMetaString(null); } // if >1, will fail later uri = uu; } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URI_PARSE_ERROR, e.getMessage(), identifier); } global = Fields.stringToBool(fs.get("Global"), false); String verbosityString = fs.get("Verbosity"); if(verbosityString == null) verbosity = 0; else { try { verbosity = Integer.parseInt(verbosityString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier); } } contentType = fs.get("Metadata.ContentType"); String maxRetriesString = fs.get("MaxRetries"); if(maxRetriesString == null) // default to 0 maxRetries = 0; else { try { maxRetries = Integer.parseInt(maxRetriesString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } getCHKOnly = Fields.stringToBool(fs.get("GetCHKOnly"), false); String priorityString = fs.get("PriorityClass"); if(priorityString == null) { // defaults to the one just below FProxy priorityClass = RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS; } else { try { priorityClass = Short.parseShort(priorityString, 10); if((priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS) || (priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS)) throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier); } } String uploadFrom = fs.get("UploadFrom"); if((uploadFrom == null) || uploadFrom.equalsIgnoreCase("direct")) { uploadFromType = UPLOAD_FROM_DIRECT; String dataLengthString = fs.get("DataLength"); if(dataLengthString == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Need DataLength on a ClientPut", identifier); try { dataLength = Long.parseLong(dataLengthString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing DataLength field: "+e.getMessage(), identifier); } this.origFilename = null; redirectTarget = null; } else if(uploadFrom.equalsIgnoreCase("disk")) { uploadFromType = UPLOAD_FROM_DISK; String filename = fs.get("Filename"); if(filename == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing field Filename", identifier); File f = new File(filename); if(!(f.exists() && f.isFile() && f.canRead())) throw new MessageInvalidException(ProtocolErrorMessage.FILE_NOT_FOUND, null, identifier); dataLength = f.length(); FileBucket fileBucket = new FileBucket(f, true, false, false, false); this.bucket = fileBucket; this.origFilename = f; redirectTarget = null; if(fnam == null) fnam = origFilename.getName(); } else if(uploadFrom.equalsIgnoreCase("redirect")) { uploadFromType = UPLOAD_FROM_REDIRECT; String target = fs.get("TargetURI"); if(target == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "TargetURI missing but UploadFrom=redirect", identifier); try { redirectTarget = new FreenetURI(target); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Invalid TargetURI: "+e, identifier); } dataLength = 0; origFilename = null; bucket = null; } else throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "UploadFrom invalid or unrecognized: "+uploadFrom, identifier); dontCompress = Fields.stringToBool(fs.get("DontCompress"), false); String persistenceString = fs.get("Persistence"); if((persistenceString == null) || persistenceString.equalsIgnoreCase("connection")) { // Default: persists until connection loss. persistenceType = ClientRequest.PERSIST_CONNECTION; } else if(persistenceString.equalsIgnoreCase("reboot")) { // Reports to client by name; persists over connection loss. // Not saved to disk, so dies on reboot. persistenceType = ClientRequest.PERSIST_REBOOT; } else if(persistenceString.equalsIgnoreCase("forever")) { // Same as reboot but saved to disk, persists forever. persistenceType = ClientRequest.PERSIST_FOREVER; } else { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Persistence field: "+persistenceString, identifier); } clientToken = fs.get("ClientToken"); String f = fs.get("TargetFilename"); if(f != null) fnam = f; if(fnam != null && fnam.indexOf('/') > -1) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "TargetFilename must not contain slashes", identifier); } if(fnam != null && fnam.length() == 0) { fnam = null; // Deliberate override to tell us not to create one. } if(uri.getKeyType().equals("CHK")) targetFilename = fnam; else targetFilename = null; earlyEncode = Fields.stringToBool(fs.get("EarlyEncode"), false); } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/ClientPutMessage.java/buggy/src/freenet/node/fcp/ClientPutMessage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
6426,
1079,
12,
5784,
974,
694,
2662,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
2295,
301,
273,
446,
31,
202,
202,
5644,
273,
2662,
18,
588,
2932,
3004,
8863,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2445,
6426,
1079,
12,
5784,
974,
694,
2662,
13,
1216,
2350,
1941,
503,
288,
202,
202,
780,
2295,
301,
273,
446,
31,
202,
202,
5644,
273,
2662,
18,
588,
2932,
3004,
8863,
202,
... |
} else if (evt.getPropertyName() .equals(ProjectManager.SAVE_STATE_PROPERTY_NAME)) { updateTitle(); | public void propertyChange(PropertyChangeEvent evt) { // the project changed if (evt.getPropertyName() .equals(ProjectManager.CURRENT_PROJECT_PROPERTY_NAME)) { Project p = (Project) evt.getNewValue(); if (p != null) { buildTitle(p.getName()); //Designer.TheDesigner.getToDoList().removeAllElements(); Designer.setCritiquingRoot(p); // update all panes TargetManager.getInstance().setTarget(p.getInitialTarget()); } } else if (evt.getPropertyName() .equals(ProjectManager.SAVE_STATE_PROPERTY_NAME)) { // the save state changed // TODO: remove after 0.20. We don't need to listen for this // but now is not a good time to change. updateTitle(); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/38c940397a741f46590371c7b449295d1a7a58ff/ProjectBrowser.java/clean/src_new/org/argouml/ui/ProjectBrowser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1272,
3043,
12,
1396,
20930,
6324,
13,
288,
3639,
368,
326,
1984,
3550,
3639,
309,
261,
73,
11734,
18,
588,
13073,
1435,
5411,
263,
14963,
12,
4109,
1318,
18,
15487,
67,
17147,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1272,
3043,
12,
1396,
20930,
6324,
13,
288,
3639,
368,
326,
1984,
3550,
3639,
309,
261,
73,
11734,
18,
588,
13073,
1435,
5411,
263,
14963,
12,
4109,
1318,
18,
15487,
67,
17147,... | |
public void keepStatusOnAction() { this.keepStatus = true; } | 52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/28c8fcc21bada2ccb6df17d99a75dae320cb8831/SelectionBox.java/buggy/src/java/com/idega/presentation/ui/SelectionBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
10102,
1482,
1398,
1803,
1435,
95,
202,
202,
2211,
18,
10102,
1482,
33,
3767,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6459,
10102,
1482,
1398,
1803,
1435,
95,
202,
202,
2211,
18,
10102,
1482,
33,
3767,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | ||
g = new SimpleGraph<String, Edge<String>>(); | g = new SimpleGraph<String, DefaultEdge>( DefaultEdge.class); | private Graph<String, Edge<String>> init(boolean listenable) { Graph<String,Edge<String>> g; if (listenable) { g = new ListenableUndirectedGraph<String, Edge<String>>(); } else { g = new SimpleGraph<String, Edge<String>>(); } g.addVertex(_v1); g.addVertex(_v2); g.addVertex(_v3); g.addVertex(_v4); g.addEdge(_v1, _v2); g.addEdge(_v2, _v3); g.addEdge(_v3, _v1); g.addEdge(_v1, _v4); return g; } | 47032 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47032/c3e5aa9fad3b9e0927939b2a916ae5049377758b/SubgraphTest.java/buggy/testsrc/org/jgrapht/graph/SubgraphTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
5601,
32,
780,
16,
11342,
32,
780,
9778,
1208,
12,
6494,
6514,
429,
13,
565,
288,
3639,
5601,
32,
780,
16,
6098,
32,
780,
9778,
314,
31,
3639,
309,
261,
1098,
7589,
13,
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,
377,
3238,
5601,
32,
780,
16,
11342,
32,
780,
9778,
1208,
12,
6494,
6514,
429,
13,
565,
288,
3639,
5601,
32,
780,
16,
6098,
32,
780,
9778,
314,
31,
3639,
309,
261,
1098,
7589,
13,
288,
541... |
boolean needChange = true; String lastChangeNode = ""; | public void moveAgents(Map layout) { String communityName = model.getCommunityName(); Map oldnodes = new HashMap(); //save all nodes and the number of agents in each current node Map newnodes = new HashMap(); //save all nodes and the number of agents in each node after balancing Map temp = new HashMap(); synchronized (layout) { temp.putAll(layout); } //remove all agents who don't need move. for (Iterator it = temp.entrySet().iterator(); it.hasNext(); ) { Map.Entry me = (Map.Entry) it.next(); String agent = (String) me.getKey(); String newNode = (String) me.getValue(); increaseCounts(newnodes, newNode); String currentNode = model.getLocation(agent); if (currentNode != null) { increaseCounts(oldnodes, currentNode); if (newNode.equals(currentNode)) { it.remove(); } } else { it.remove(); } }//logger.info("oldnodes: " + oldnodes);//logger.info("newnodes: " + newnodes);//logger.info("temp: " + temp); /** * This loop does the following jobs to keep node balancing during agents moving: * 1. Find the node who has the most number of agents need to be moved out. * 2. Move five agents from the node to destinations. * 3. Repeat step1 to step2 until all agents get destinations. */ while (!temp.isEmpty()) { String node = getBiggestDifference(oldnodes, newnodes); int count = 0; for (Iterator it = temp.keySet().iterator(); it.hasNext(); ) { if (count == 5) { break; } String agent = (String) it.next(); String newNode = (String) temp.get(agent); String currentNode = model.getLocation(agent); if ( (currentNode.equals(node) && ! (newNode.equals(currentNode))) || node.equals("")) { logger.debug("move agent " + agent + " from " + currentNode + " to " + newNode + " in comm " + communityName); moveHelper.moveAgent(agent, currentNode, newNode, communityName); count++; int num = ( (Integer) oldnodes.get(currentNode)).intValue(); oldnodes.put(currentNode, new Integer(num - 1)); if (oldnodes.containsKey(newNode)) { num = ( (Integer) oldnodes.get(newNode)).intValue(); oldnodes.put(newNode, new Integer(num + 1)); } else { oldnodes.put(newNode, new Integer(1)); } it.remove(); } }//logger.info("after move: oldnodes=" + oldnodes + ", newnodes=" + newnodes); } logger.debug("LoadBalance finished."); } | 11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/f8d09a4c7d655cb8c40f2915f4b70de64c15c684/LoadBalancer.java/clean/mgmt_agent/src/org/cougaar/tools/robustness/ma/util/LoadBalancer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3635,
23400,
12,
863,
3511,
13,
288,
6494,
1608,
3043,
273,
638,
31,
514,
1142,
3043,
907,
273,
1408,
31,
514,
19833,
461,
273,
938,
18,
588,
12136,
13352,
461,
5621,
6494,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3635,
23400,
12,
863,
3511,
13,
288,
6494,
1608,
3043,
273,
638,
31,
514,
1142,
3043,
907,
273,
1408,
31,
514,
19833,
461,
273,
938,
18,
588,
12136,
13352,
461,
5621,
6494,
1... | |
mods = execHistoryCommand( buildHistoryCommand(lastBuild, now).getCommandline()); | mods = execHistoryCommand(buildHistoryCommand(lastBuild, now)); | public ArrayList getHistory(Date lastBuild, Date now, long quietPeriod) { setLastModified(lastBuild); ArrayList mods = null; try { mods = execHistoryCommand( buildHistoryCommand(lastBuild, now).getCommandline()); } catch (Exception e) { log("Log command failed to execute succesfully"); e.printStackTrace(); } if (mods == null) { return new ArrayList(); } return mods; } | 55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/9d9d4aea8f6689ed05c43f0a68fca890e9437ea0/CVSElement.java/buggy/main/src/net/sourceforge/cruisecontrol/CVSElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2407,
336,
5623,
12,
1626,
1142,
3116,
16,
2167,
2037,
16,
1525,
10902,
5027,
13,
288,
3639,
444,
14747,
12,
2722,
3116,
1769,
3639,
2407,
15546,
273,
446,
31,
3639,
775,
288,
5411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2407,
336,
5623,
12,
1626,
1142,
3116,
16,
2167,
2037,
16,
1525,
10902,
5027,
13,
288,
3639,
444,
14747,
12,
2722,
3116,
1769,
3639,
2407,
15546,
273,
446,
31,
3639,
775,
288,
5411,... |
if (bigram == null) { System.out.println("did not find bigram in bigramBuffer: " + numberBigramBuffer); } } else { System.out.println("unigram has no bigram"); | private BigramProbability findBigram(int firstWordID, int secondWordID) { BigramProbability bigram = null; int numberBigramBuffer = unigrams[firstWordID+1].getFirstBigramEntry() - unigrams[firstWordID].getFirstBigramEntry(); if (numberBigramBuffer > 0) { // load all the bigram followers of firstWord // and then find the bigram with the secondWord BigramBuffer followers = (BigramBuffer) loadedBigramBuffer.get(new Integer(firstWordID)); if (followers == null) { followers = loadBigramBuffer(firstWordID, numberBigramBuffer); loadedBigramBuffer.put(new Integer(firstWordID), followers); } bigram = followers.findBigram(secondWordID); if (bigram == null) { System.out.println("did not find bigram in bigramBuffer: " + numberBigramBuffer); } } else { System.out.println("unigram has no bigram"); } return bigram; } | 7874 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7874/f5f898e380370e6e4f4fc7ed553e555c3e21f385/LargeTrigramModel.java/clean/edu/cmu/sphinx/knowledge/language/large/LargeTrigramModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4454,
1940,
25598,
1104,
9901,
1940,
12,
474,
1122,
3944,
734,
16,
509,
2205,
3944,
734,
13,
288,
3639,
4454,
1940,
25598,
5446,
1940,
273,
446,
31,
7734,
509,
1300,
9901,
1940,
189... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4454,
1940,
25598,
1104,
9901,
1940,
12,
474,
1122,
3944,
734,
16,
509,
2205,
3944,
734,
13,
288,
3639,
4454,
1940,
25598,
5446,
1940,
273,
446,
31,
7734,
509,
1300,
9901,
1940,
189... | |
final String htmlContent = "<html><head><title>foo</title></head><body>" + "</body></html>"; | final String htmlContent = "<html><head><title>foo</title></head><body></body></html>"; | public void testLoadFilePage() throws Exception { // create a real file to read // it could be usefull to have existing files to test in a special location in filesystem. // It will be really needed when we have to test binary files using the file protocol. final String htmlContent = "<html><head><title>foo</title></head><body>" + "</body></html>"; File tmpFile = File.createTempFile("test", ".html"); tmpFile.deleteOnExit(); final String encoding = (new OutputStreamWriter(new ByteArrayOutputStream())).getEncoding(); FileUtils.writeStringToFile(tmpFile, htmlContent, encoding); URL fileURL = new URL("file://" + tmpFile.getCanonicalPath()); final WebClient client = new WebClient(); final HtmlPage page = (HtmlPage) client.getPage(fileURL); assertEquals( htmlContent, page.getWebResponse().getContentAsString() ); assertEquals( "text/html", page.getWebResponse().getContentType() ); assertEquals( 200, page.getWebResponse().getStatusCode() ); assertEquals( "foo", page.getTitleText() ); } | 47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/886e944f52ced96bba3eeca24e83a8f2d4c622fa/WebClientTest.java/clean/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/WebClientTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2563,
812,
1964,
1435,
1216,
1185,
288,
377,
202,
759,
752,
279,
2863,
585,
358,
855,
1377,
202,
759,
518,
3377,
506,
999,
2854,
358,
1240,
2062,
1390,
358,
1842,
316,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
812,
1964,
1435,
1216,
1185,
288,
377,
202,
759,
752,
279,
2863,
585,
358,
855,
1377,
202,
759,
518,
3377,
506,
999,
2854,
358,
1240,
2062,
1390,
358,
1842,
316,
... |
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER && (Report.should_report("parser", 2))) { Report.report(2,"Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassType ::= TypeName // case 15: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 16: InterfaceType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: TypeName ::= identifier // case 17: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 18: TypeName ::= TypeName . identifier // case 18: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 19: ClassName ::= TypeName // case 19: break; // // Rule 20: TypeVariable ::= identifier // case 20: break; // // Rule 21: ArrayType ::= Type [ ] // case 21: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.array(a, pos(), 1)); break; } // // Rule 22: TypeParameter ::= TypeVariable TypeBoundopt // case 22: bad_rule = 22; break; // // Rule 23: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 23: bad_rule = 23; break; // // Rule 24: AdditionalBoundList ::= AdditionalBound // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBound ::= & InterfaceType // case 26: bad_rule = 26; break; // // Rule 27: TypeArguments ::= < ActualTypeArgumentList > // case 27: bad_rule = 27; break; // // Rule 28: ActualTypeArgumentList ::= ActualTypeArgument // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgumentList , ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: Wildcard ::= ? WildcardBoundsOpt // case 30: bad_rule = 30; break; // // Rule 31: WildcardBounds ::= extends ReferenceType // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= super ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: PackageName ::= identifier // case 33: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 34: PackageName ::= PackageName . identifier // case 34: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 35: ExpressionName ::= identifier // case 35: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 36: ExpressionName ::= AmbiguousName . identifier // case 36: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 37: MethodName ::= identifier // case 37: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 38: MethodName ::= AmbiguousName . identifier // case 38: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= identifier // case 39: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= PackageOrTypeName . identifier // case 40: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= identifier // case 41: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= AmbiguousName . identifier // case 42: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 43: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 43: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Import x10LangImport = nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, x10Lang.toString()); b.add(x10LangImport); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 44: ImportDeclarations ::= ImportDeclaration // case 44: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 45: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 45: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclaration // case 46: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 47: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 48: PackageDeclaration ::= package PackageName ; // case 48: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 49: ImportDeclaration ::= SingleTypeImportDeclaration // case 49: break; // // Rule 50: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= SingleStaticImportDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 52: break; // // Rule 53: SingleTypeImportDeclaration ::= import TypeName ; // case 53: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 54: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 55: SingleStaticImportDeclaration ::= import static TypeName . identifier ; // case 55: bad_rule = 55; break; // // Rule 56: StaticImportOnDemandDeclaration ::= import static TypeName . * ; // case 56: bad_rule = 56; break; // // Rule 57: TypeDeclaration ::= ClassDeclaration // case 57: break; // // Rule 58: TypeDeclaration ::= InterfaceDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= ; // case 59: { btParser.setSym1(null); break; } // // Rule 60: ClassDeclaration ::= NormalClassDeclaration // case 60: break; // // Rule 61: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 61: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 62: ClassModifiers ::= ClassModifier // case 62: break; // // Rule 63: ClassModifiers ::= ClassModifiers ClassModifier // case 63: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 64: ClassModifier ::= public // case 64: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 65: ClassModifier ::= protected // case 65: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 66: ClassModifier ::= private // case 66: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 67: ClassModifier ::= abstract // case 67: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 68: ClassModifier ::= static // case 68: { btParser.setSym1(Flags.STATIC); break; } // // Rule 69: ClassModifier ::= final // case 69: { btParser.setSym1(Flags.FINAL); break; } // // Rule 70: ClassModifier ::= strictfp // case 70: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 71: TypeParameters ::= < TypeParameterList > // case 71: bad_rule = 71; break; // // Rule 72: TypeParameterList ::= TypeParameter // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameterList , TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: Super ::= extends ClassType // case 74: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 75: Interfaces ::= implements InterfaceTypeList // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: InterfaceTypeList ::= InterfaceType // case 76: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 77: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 77: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 78: ClassBody ::= { ClassBodyDeclarationsopt } // case 78: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 79: ClassBodyDeclarations ::= ClassBodyDeclaration // case 79: break; // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 80: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 81: ClassBodyDeclaration ::= ClassMemberDeclaration // case 81: break; // // Rule 82: ClassBodyDeclaration ::= InstanceInitializer // case 82: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 83: ClassBodyDeclaration ::= StaticInitializer // case 83: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 84: ClassBodyDeclaration ::= ConstructorDeclaration // case 84: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 85: ClassMemberDeclaration ::= FieldDeclaration // case 85: break; // // Rule 86: ClassMemberDeclaration ::= MethodDeclaration // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 87: ClassMemberDeclaration ::= ClassDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= InterfaceDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= ; // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 90: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators ; // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(a); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), d.flags, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 91: VariableDeclarators ::= VariableDeclarator // case 91: { List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 92: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 93: VariableDeclarator ::= VariableDeclaratorId // case 93: break; // // Rule 94: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 94: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 95: VariableDeclaratorId ::= identifier // case 95: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 96: VariableDeclaratorId ::= VariableDeclaratorId [ ] // case 96: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 97: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 97: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List paramList = (List) btParser.getSym(3); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier(), paramList)); break; } // // Rule 98: VariableDeclaratorId ::= [ IdentifierList ] // case 98: { String name = polyglot.ext.x10.visit.X10PrettyPrinterVisitor.getId(); List paramList = (List) btParser.getSym(2); btParser.setSym1(new X10VarDeclarator(pos(), name, paramList)); break; } // // Rule 99: VariableInitializer ::= Expression // case 99: break; // // Rule 100: VariableInitializer ::= ArrayInitializer // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifier // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifiers FieldModifier // case 102: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 103: FieldModifier ::= public // case 103: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 104: FieldModifier ::= protected // case 104: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 105: FieldModifier ::= private // case 105: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 106: FieldModifier ::= static // case 106: { btParser.setSym1(Flags.STATIC); break; } // // Rule 107: FieldModifier ::= final // case 107: { btParser.setSym1(Flags.FINAL); break; } // // Rule 108: FieldModifier ::= transient // case 108: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 109: FieldModifier ::= volatile // case 109: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 110: MethodDeclaration ::= MethodHeader MethodBody // case 110: { MethodDecl a = (MethodDecl) btParser.getSym(1); List l = a.formals(); List s = new TypedList(new LinkedList(), Stmt.class, false); Block b = (Block) btParser.getSym(2); for (Iterator i = l.iterator(); i.hasNext(); ) { X10Formal d = (X10Formal) i.next(); if (d.hasExplodedVars()) s.addAll( d.explode()); } if (! s.isEmpty()) { s.addAll(b.statements()); b = b.statements(s); } Flags f = a.flags(); if (f.contains(Flags.ATOMIC)) { List ss = new TypedList(new LinkedList(), Stmt.class, false); ss.add(nf.Atomic(pos(), nf.Here(pos()), b)); b = b.statements(ss); a = a.flags(f.clear(Flags.ATOMIC)); } btParser.setSym1(a.body(b)); break; } // // Rule 111: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 111: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 112: ResultType ::= Type // case 112: break; // // Rule 113: ResultType ::= void // case 113: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 114: MethodDeclarator ::= identifier ( FormalParameterListopt ) // case 114: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 115: MethodDeclarator ::= MethodDeclarator [ ] // case 115: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 116: FormalParameterList ::= LastFormalParameter // case 116: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 117: FormalParameterList ::= FormalParameters , LastFormalParameter // case 117: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameter // case 118: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameters , FormalParameter // case 119: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 120: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 120: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(3); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 122: VariableModifiers ::= VariableModifiers VariableModifier // case 122: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 123: VariableModifier ::= final // case 123: { btParser.setSym1(Flags.FINAL); break; } // // Rule 124: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 124: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(4); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 125: MethodModifiers ::= MethodModifier // case 125: break; // // Rule 126: MethodModifiers ::= MethodModifiers MethodModifier // case 126: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 127: MethodModifier ::= public // case 127: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 128: MethodModifier ::= protected // case 128: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 129: MethodModifier ::= private // case 129: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 130: MethodModifier ::= abstract // case 130: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 131: MethodModifier ::= static // case 131: { btParser.setSym1(Flags.STATIC); break; } // // Rule 132: MethodModifier ::= final // case 132: { btParser.setSym1(Flags.FINAL); break; } // // Rule 133: MethodModifier ::= synchronized // case 133: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 134: MethodModifier ::= native // case 134: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 135: MethodModifier ::= strictfp // case 135: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 136: Throws ::= throws ExceptionTypeList // case 136: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 137: ExceptionTypeList ::= ExceptionType // case 137: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 138: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 138: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 139: ExceptionType ::= ClassType // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= ; // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 145: ConstructorDeclarator ::= SimpleTypeName ( FormalParameterListopt ) // case 145: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 152: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 153: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 155: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= { EnumConstantsopt ,opt EnumBodyDeclarationsopt } // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants , EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= ( ArgumentListopt ) // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= ; ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ; // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 190: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt @ interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= { AnnotationTypeElementDeclarationsopt } // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier ( ) DefaultValueopt ; // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= ; // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= @ TypeName ( ElementValuePairsopt ) // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs , ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName = ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= { ElementValuesopt ,opt } // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues , ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= @ TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= @ TypeName ( ElementValue ) // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= { VariableInitializersopt ,opt } // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers , VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= { BlockStatementsopt } // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration ; // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag( flags ); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(a, pos(d), d.dims), d.name, d.init)); if (d.hasExplodedVars()) s.addAll( d.explode() ); } l.addAll(s); btParser.setSym1(l); break; } // // Rule 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if ( Expression ) Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 261: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf else StatementNoShortIf // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: EmptyStatement ::= ; // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier : Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression ; // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression ; // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression : Expression ; // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression : // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant : // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default : // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while ( Expression ) Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while ( Expression ) ; // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 291: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 292: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 297: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt ; // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt ; // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt ; // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression ; // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized ( Expression ) Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch ( FormalParameter ) Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type . class // case 312: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 313: PrimaryNoNewArray ::= void . class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName . this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= ( Expression ) // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 322: Literal ::= LongLiteral // case 322: { polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 323: Literal ::= FloatingPointLiteral // case 323: { polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 324: Literal ::= DoubleLiteral // case 324: { polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 331: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 332: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 332: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 333: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 333: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList , Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: DimExprs ::= DimExpr // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: DimExprs ::= DimExprs DimExpr // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 338: DimExpr ::= [ Expression ] // case 338: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 339: Dims ::= [ ] // case 339: { btParser.setSym1(new Integer(1)); break; } // // Rule 340: Dims ::= Dims [ ] // case 340: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 341: FieldAccess ::= Primary . identifier // case 341: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 342: FieldAccess ::= super . identifier // case 342: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 343: FieldAccess ::= ClassName . super . identifier // case 343: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 344: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 344: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 345: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 345: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 346: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 346: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 347: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) // case 347: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 348: PostfixExpression ::= Primary // case 348: break; // // Rule 349: PostfixExpression ::= ExpressionName // case 349: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 350: PostfixExpression ::= PostIncrementExpression // case 350: break; // // Rule 351: PostfixExpression ::= PostDecrementExpression // case 351: break; // // Rule 352: PostIncrementExpression ::= PostfixExpression ++ // case 352: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 353: PostDecrementExpression ::= PostfixExpression -- // case 353: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 354: UnaryExpression ::= PreIncrementExpression // case 354: break; // // Rule 355: UnaryExpression ::= PreDecrementExpression // case 355: break; // // Rule 356: UnaryExpression ::= + UnaryExpression // case 356: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 357: UnaryExpression ::= - UnaryExpression // case 357: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 359: PreIncrementExpression ::= ++ UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 360: PreDecrementExpression ::= -- UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 361: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 361: break; // // Rule 362: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 365: MultiplicativeExpression ::= UnaryExpression // case 365: break; // // Rule 366: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 367: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 369: AdditiveExpression ::= MultiplicativeExpression // case 369: break; // // Rule 370: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 371: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 372: ShiftExpression ::= AdditiveExpression // case 372: break; // // Rule 373: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 374: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 374: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 375: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 375: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 376: RelationalExpression ::= ShiftExpression // case 376: break; // // Rule 377: RelationalExpression ::= RelationalExpression < ShiftExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 378: RelationalExpression ::= RelationalExpression > ShiftExpression // case 378: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 379: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 381: EqualityExpression ::= RelationalExpression // case 381: break; // // Rule 382: EqualityExpression ::= EqualityExpression == RelationalExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 383: EqualityExpression ::= EqualityExpression != RelationalExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 384: AndExpression ::= EqualityExpression // case 384: break; // // Rule 385: AndExpression ::= AndExpression & EqualityExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 386: ExclusiveOrExpression ::= AndExpression // case 386: break; // // Rule 387: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 388: InclusiveOrExpression ::= ExclusiveOrExpression // case 388: break; // // Rule 389: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 390: ConditionalAndExpression ::= InclusiveOrExpression // case 390: break; // // Rule 391: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 392: ConditionalOrExpression ::= ConditionalAndExpression // case 392: break; // // Rule 393: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 394: ConditionalExpression ::= ConditionalOrExpression // case 394: break; // // Rule 395: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 396: AssignmentExpression ::= ConditionalExpression // case 396: break; // // Rule 397: AssignmentExpression ::= Assignment // case 397: break; // // Rule 398: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 398: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 399: LeftHandSide ::= ExpressionName // case 399: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 400: LeftHandSide ::= FieldAccess // case 400: break; // // Rule 401: LeftHandSide ::= ArrayAccess // case 401: break; // // Rule 402: AssignmentOperator ::= = // case 402: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 403: AssignmentOperator ::= *= // case 403: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 404: AssignmentOperator ::= /= // case 404: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 405: AssignmentOperator ::= %= // case 405: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= += // case 406: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= -= // case 407: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= <<= // case 408: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= > > = // case 409: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= > > > = // case 410: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= &= // case 411: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= ^= // case 412: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= |= // case 413: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 414: Expression ::= AssignmentExpression // case 414: break; // // Rule 415: ConstantExpression ::= Expression // case 415: break; // // Rule 416: Dimsopt ::= $Empty // case 416: { btParser.setSym1(new Integer(0)); break; } // // Rule 417: Dimsopt ::= Dims // case 417: break; // // Rule 418: Catchesopt ::= $Empty // case 418: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 419: Catchesopt ::= Catches // case 419: break; // // Rule 420: identifieropt ::= $Empty // case 420: btParser.setSym1(null); break; // // Rule 421: identifieropt ::= identifier // case 421: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 422: ForUpdateopt ::= $Empty // case 422: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 423: ForUpdateopt ::= ForUpdate // case 423: break; // // Rule 424: Expressionopt ::= $Empty // case 424: btParser.setSym1(null); break; // // Rule 425: Expressionopt ::= Expression // case 425: break; // // Rule 426: ForInitopt ::= $Empty // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 427: ForInitopt ::= ForInit // case 427: break; // // Rule 428: SwitchLabelsopt ::= $Empty // case 428: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 429: SwitchLabelsopt ::= SwitchLabels // case 429: break; // // Rule 430: SwitchBlockStatementGroupsopt ::= $Empty // case 430: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 431: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 431: break; // // Rule 432: VariableModifiersopt ::= $Empty // case 432: { btParser.setSym1(Flags.NONE); break; } // // Rule 433: VariableModifiersopt ::= VariableModifiers // case 433: break; // // Rule 434: VariableInitializersopt ::= $Empty // case 434: btParser.setSym1(null); break; // // Rule 435: VariableInitializersopt ::= VariableInitializers // case 435: break; // // Rule 436: ElementValuesopt ::= $Empty // case 436: btParser.setSym1(null); break; // // Rule 437: ElementValuesopt ::= ElementValues // case 437: bad_rule = 437; break; // // Rule 438: ElementValuePairsopt ::= $Empty // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuePairsopt ::= ElementValuePairs // case 439: bad_rule = 439; break; // // Rule 440: DefaultValueopt ::= $Empty // case 440: btParser.setSym1(null); break; // // Rule 441: DefaultValueopt ::= DefaultValue // case 441: break; // // Rule 442: AnnotationTypeElementDeclarationsopt ::= $Empty // case 442: btParser.setSym1(null); break; // // Rule 443: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 443: bad_rule = 443; break; // // Rule 444: AbstractMethodModifiersopt ::= $Empty // case 444: { btParser.setSym1(Flags.NONE); break; } // // Rule 445: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 445: break; // // Rule 446: ConstantModifiersopt ::= $Empty // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: ConstantModifiersopt ::= ConstantModifiers // case 447: break; // // Rule 448: InterfaceMemberDeclarationsopt ::= $Empty // case 448: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 449: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 449: break; // // Rule 450: ExtendsInterfacesopt ::= $Empty // case 450: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 451: ExtendsInterfacesopt ::= ExtendsInterfaces // case 451: break; // // Rule 452: InterfaceModifiersopt ::= $Empty // case 452: { btParser.setSym1(Flags.NONE); break; } // // Rule 453: InterfaceModifiersopt ::= InterfaceModifiers // case 453: break; // // Rule 454: ClassBodyopt ::= $Empty // case 454: btParser.setSym1(null); break; // // Rule 455: ClassBodyopt ::= ClassBody // case 455: break; // // Rule 456: Argumentsopt ::= $Empty // case 456: btParser.setSym1(null); break; // // Rule 457: Argumentsopt ::= Arguments // case 457: bad_rule = 457; break; // // Rule 458: EnumBodyDeclarationsopt ::= $Empty // case 458: btParser.setSym1(null); break; // // Rule 459: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 459: bad_rule = 459; break; // // Rule 460: ,opt ::= $Empty // case 460: btParser.setSym1(null); break; // // Rule 461: ,opt ::= , // case 461: break; // // Rule 462: EnumConstantsopt ::= $Empty // case 462: btParser.setSym1(null); break; // // Rule 463: EnumConstantsopt ::= EnumConstants // case 463: bad_rule = 463; break; // // Rule 464: ArgumentListopt ::= $Empty // case 464: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 465: ArgumentListopt ::= ArgumentList // case 465: break; // // Rule 466: BlockStatementsopt ::= $Empty // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 467: BlockStatementsopt ::= BlockStatements // case 467: break; // // Rule 468: ExplicitConstructorInvocationopt ::= $Empty // case 468: btParser.setSym1(null); break; // // Rule 469: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 469: break; // // Rule 470: ConstructorModifiersopt ::= $Empty // case 470: { btParser.setSym1(Flags.NONE); break; } // // Rule 471: ConstructorModifiersopt ::= ConstructorModifiers // case 471: break; // // Rule 472: ...opt ::= $Empty // case 472: btParser.setSym1(null); break; // // Rule 473: ...opt ::= ... // case 473: break; // // Rule 474: FormalParameterListopt ::= $Empty // case 474: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 475: FormalParameterListopt ::= FormalParameterList // case 475: break; // // Rule 476: Throwsopt ::= $Empty // case 476: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 477: Throwsopt ::= Throws // case 477: break; // // Rule 478: MethodModifiersopt ::= $Empty // case 478: { btParser.setSym1(Flags.NONE); break; } // // Rule 479: MethodModifiersopt ::= MethodModifiers // case 479: break; // // Rule 480: FieldModifiersopt ::= $Empty // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: FieldModifiersopt ::= FieldModifiers // case 481: break; // // Rule 482: ClassBodyDeclarationsopt ::= $Empty // case 482: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 483: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 483: break; // // Rule 484: Interfacesopt ::= $Empty // case 484: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 485: Interfacesopt ::= Interfaces // case 485: break; // // Rule 486: Superopt ::= $Empty // case 486: btParser.setSym1(null); break; // // Rule 487: Superopt ::= Super // case 487: break; // // Rule 488: TypeParametersopt ::= $Empty // case 488: btParser.setSym1(null); break; // // Rule 489: TypeParametersopt ::= TypeParameters // case 489: break; // // Rule 490: ClassModifiersopt ::= $Empty // case 490: { btParser.setSym1(Flags.NONE); break; } // // Rule 491: ClassModifiersopt ::= ClassModifiers // case 491: break; // // Rule 492: Annotationsopt ::= $Empty // case 492: btParser.setSym1(null); break; // // Rule 493: Annotationsopt ::= Annotations // case 493: bad_rule = 493; break; // // Rule 494: TypeDeclarationsopt ::= $Empty // case 494: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 495: TypeDeclarationsopt ::= TypeDeclarations // case 495: break; // // Rule 496: ImportDeclarationsopt ::= $Empty // case 496: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 497: ImportDeclarationsopt ::= ImportDeclarations // case 497: break; // // Rule 498: PackageDeclarationopt ::= $Empty // case 498: btParser.setSym1(null); break; // // Rule 499: PackageDeclarationopt ::= PackageDeclaration // case 499: break; // // Rule 500: WildcardBoundsOpt ::= $Empty // case 500: btParser.setSym1(null); break; // // Rule 501: WildcardBoundsOpt ::= WildcardBounds // case 501: bad_rule = 501; break; // // Rule 502: AdditionalBoundListopt ::= $Empty // case 502: btParser.setSym1(null); break; // // Rule 503: AdditionalBoundListopt ::= AdditionalBoundList // case 503: bad_rule = 503; break; // // Rule 504: TypeBoundopt ::= $Empty // case 504: btParser.setSym1(null); break; // // Rule 505: TypeBoundopt ::= TypeBound // case 505: bad_rule = 505; break; // // Rule 506: TypeArgumentsopt ::= $Empty // case 506: btParser.setSym1(null); break; // // Rule 507: TypeArgumentsopt ::= TypeArguments // case 507: bad_rule = 507; break; // // Rule 508: Type ::= DataType PlaceTypeSpecifieropt // case 508: { // Just parse the placetype and drop it for now. break; } // // Rule 509: Type ::= nullable < Type > // case 509: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 510: Type ::= future < Type > // case 510: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 511: DataType ::= PrimitiveType // case 511: break; // // Rule 512: DataType ::= ClassOrInterfaceType // case 512: break; // // Rule 513: DataType ::= ArrayType // case 513: break; // // Rule 514: PlaceTypeSpecifier ::= @ PlaceType // case 514: break; // // Rule 515: PlaceType ::= place // case 515: break; // // Rule 516: PlaceType ::= activity // case 516: break; // // Rule 517: PlaceType ::= method // case 517: break; // // Rule 518: PlaceType ::= current // case 518: break; // // Rule 519: PlaceType ::= PlaceExpression // case 519: break; // // Rule 520: ClassOrInterfaceType ::= TypeName DepParametersopt // case 520: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(b == null ? t : nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 521: DepParameters ::= ( DepParameterExpr ) // case 521: break; // // Rule 522: DepParameterExpr ::= ArgumentList WhereClauseopt // case 522: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 523: DepParameterExpr ::= WhereClause // case 523: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 524: WhereClause ::= : Expression // case 524: break; // // Rule 526: X10ArrayType ::= Type [ . ] // case 526: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 527: X10ArrayType ::= Type reference [ . ] // case 527: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 528: X10ArrayType ::= Type value [ . ] // case 528: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 529: X10ArrayType ::= Type [ DepParameterExpr ] // case 529: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 530: X10ArrayType ::= Type reference [ DepParameterExpr ] // case 530: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 531: X10ArrayType ::= Type value [ DepParameterExpr ] // case 531: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 532: ObjectKind ::= value // case 532: bad_rule = 532; break; // // Rule 533: ObjectKind ::= reference // case 533: bad_rule = 533; break; // // Rule 534: MethodModifier ::= atomic // case 534: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 535: MethodModifier ::= extern // case 535: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 536: ClassDeclaration ::= ValueClassDeclaration // case 536: break; // // Rule 537: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 537: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 538: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 538: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 539: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ ] ArrayInitializer // case 539: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 540: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] // case 540: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 541: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] Expression // case 541: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); Expr initializer = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 542: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] ( FormalParameter ) MethodBody // case 542: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); X10Formal f = (X10Formal) btParser.getSym(8); Block body = (Block) btParser.getSym(10); New initializer = makeInitializer( pos(btParser.getFirstToken(7), btParser.getLastToken(10)), a, f, body ); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 543: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] // case 543: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 544: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] Expression // case 544: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(4) != null); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 545: X10ArrayInitializer ::= Expression // case 545: break; // Sigh this is not trivial to do just yet :-( // // Rule 546: X10ArrayInitializer ::= ( FormalParameter ) MethodBody // case 546: bad_rule = 546; break; // // Rule 547: ArrayBaseType ::= PrimitiveType // case 547: break; // // Rule 548: ArrayBaseType ::= ClassOrInterfaceType // case 548: break; // // Rule 549: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 549: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 550: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 550: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 551: Statement ::= NowStatement // case 551: break; // // Rule 552: Statement ::= ClockedStatement // case 552: break; // // Rule 553: Statement ::= AsyncStatement // case 553: break; // // Rule 554: Statement ::= AtomicStatement // case 554: break; // // Rule 555: Statement ::= WhenStatement // case 555: break; // // Rule 556: Statement ::= ForEachStatement // case 556: break; // // Rule 557: Statement ::= AtEachStatement // case 557: break; // // Rule 558: Statement ::= FinishStatement // case 558: break; // // Rule 559: StatementWithoutTrailingSubstatement ::= NextStatement // case 559: break; // // Rule 560: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 560: break; // // Rule 561: StatementNoShortIf ::= NowStatementNoShortIf // case 561: break; // // Rule 562: StatementNoShortIf ::= ClockedStatementNoShortIf // case 562: break; // // Rule 563: StatementNoShortIf ::= AsyncStatementNoShortIf // case 563: break; // // Rule 564: StatementNoShortIf ::= AtomicStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= WhenStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ForEachStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtEachStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= FinishStatementNoShortIf // case 568: break; // // Rule 569: NowStatement ::= now ( Clock ) Statement // case 569: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 570: ClockedStatement ::= clocked ( ClockList ) Statement // case 570: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 571: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 571: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 572: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 572: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 573: WhenStatement ::= when ( Expression ) Statement // case 573: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 574: WhenStatement ::= WhenStatement or ( Expression ) Statement // case 574: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 575: ForEachStatement ::= foreach ( FormalParameter : Expression ) Statement // case 575: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 576: AtEachStatement ::= ateach ( FormalParameter : Expression ) Statement // case 576: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 577: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 577: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 578: FinishStatement ::= finish Statement // case 578: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 579: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 579: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 580: ClockedStatementNoShortIf ::= clocked ( ClockList ) StatementNoShortIf // case 580: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 581: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 581: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 582: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 582: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 583: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 583: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 584: WhenStatementNoShortIf ::= WhenStatement or ( Expression ) StatementNoShortIf // case 584: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 585: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) StatementNoShortIf // case 585: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 586: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) StatementNoShortIf // case 586: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 587: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 587: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 588: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 589: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 589: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 590: PlaceExpression ::= here // case 590: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 591: PlaceExpression ::= this // case 591: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 592: PlaceExpression ::= Expression // case 592: break; // // Rule 593: PlaceExpression ::= ArrayAccess // case 593: bad_rule = 593; break; // // Rule 594: NextStatement ::= next ; // case 594: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 595: AwaitStatement ::= await Expression ; // case 595: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 596: ClockList ::= Clock // case 596: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 597: ClockList ::= ClockList , Clock // case 597: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 598: Clock ::= identifier // case 598: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 599: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 599: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 600: MethodInvocation ::= Primary -> identifier ( ArgumentListopt ) // case 600: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 601: RelationalExpression ::= RelationalExpression instanceof Type // case 601: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 602: ExpressionName ::= here // case 602: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return ((X10NodeFactory) nf).Here(pos); } }); break; } // // Rule 603: IdentifierList ::= IdentifierList , identifier // case 603: { List l = (List) btParser.getSym(1); polyglot.lex.Identifier a = id(btParser.getToken(3)); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 604: IdentifierList ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 605: Primary ::= FutureExpression // case 605: break; // // Rule 606: Primary ::= [ ArgumentList ] // case 606: { Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); List a = (List) btParser.getSym(2); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, a); btParser.setSym1(tuple); break; } // // Rule 607: AssignmentExpression ::= Expression -> Expression // case 607: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); //System.out.println("Distribution:" + a + "|" + b + "|"); // x10.lang.region.factory.region( ArgumentList ) // Construct the MethodName Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangDistribution = new Name(nf, ts, pos(), x10Lang, "distribution"); Name x10LangDistributionFactory = new Name(nf, ts, pos(), x10LangDistribution, "factory"); Name x10LangDistributionFactoryConstant = new Name(nf, ts, pos(), x10LangDistributionFactory, "constant"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call call = nf.Call(pos(), x10LangDistributionFactoryConstant.prefix.toReceiver(), "constant", l); btParser.setSym1(call); break; } // // Rule 608: Primary ::= Expression : Expression // case 608: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); btParser.setSym1(regionCall); break; } // // Rule 609: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 609: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 610: FieldModifier ::= mutable // case 610: { btParser.setSym1(Flags.MUTABLE); break; } // // Rule 611: FieldModifier ::= const // case 611: { btParser.setSym1(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 612: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName ( ArgumentListopt ) ( ArgumentListopt ) // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= $Empty // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= $Empty // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= $Empty // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= $Empty // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= $Empty // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: PlaceExpressionSingleListopt ::= $Empty // case 631: btParser.setSym1(null); break; // // Rule 632: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 632: break; // // Rule 633: ArgumentListopt ::= $Empty // case 633: btParser.setSym1(null); break; // // Rule 634: ArgumentListopt ::= ArgumentList // case 634: break; // // Rule 635: DepParametersopt ::= $Empty // case 635: btParser.setSym1(null); break; // // Rule 636: DepParametersopt ::= DepParameters // case 636: break; // // Rule 637: Unsafeopt ::= $Empty // case 637: btParser.setSym1(null); break; // // Rule 638: Unsafeopt ::= unsafe // case 638: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } // // Rule 639: ParamIdopt ::= $Empty // case 639: btParser.setSym1(null); break; // // Rule 640: ParamIdopt ::= identifier // case 640: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } default: break; } return; } | 1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/0c6c148f7be6e4cc0e87c12a307232047c894d1b/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
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,
1720,
1803,
12,
474,
1720,
1854,
13,
565,
288,
3639,
309,
261,
8759,
67,
5345,
480,
374,
13,
5411,
327,
31,
3639,
1620,
261,
5345,
1854,
13,
3639,
288,
2398,
368,
5411,
368,
... | ||
if (jj_3R_51()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_355()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } | final private boolean jj_3R_343() { if (jj_scan_token(ASSIGN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_51()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/050f1d327a4f37a9453fd61c6eb891b6097d82f6/JavaParser.java/buggy/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,
5026,
23,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
23289,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5026,
23,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
23289,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
59... |
if(A_OpenCms.isLogging()) { | if((A_OpenCms.isLogging() && I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING)) { | protected byte[] generateOutput(CmsObject cms, CmsFile file, String startTemplateClass, I_CmsRequest req, A_OpenCms openCms) throws CmsException { byte[] output = null; // Hashtable for collecting all parameters. Hashtable newParameters = new Hashtable(); // Parameters used for element cache boolean elementCacheEnabled = cms.getRequestContext().isElementCacheEnabled(); CmsElementCache elementCache = null; String uri = cms.getRequestContext().getUri(); CmsUriDescriptor uriDesc = null; CmsUriLocator uriLoc = null; CmsUri cmsUri = null; String templateClass = null; String templateName = null; CmsXmlControlFile doc = null; if(elementCacheEnabled) { // Get the global element cache object elementCache = cms.getRequestContext().getElementCache(); // Prepare URI Locator uriDesc = new CmsUriDescriptor(uri); uriLoc = elementCache.getUriLocator(); cmsUri = uriLoc.get(uriDesc); } if(cmsUri == null || !elementCacheEnabled) { // Entry point to page file analysis. // For performance reasons this should only be done if the element // cache is not activated or if it's activated but no URI object could be found. // Parse the page file try { doc = new CmsXmlControlFile(cms, file); } catch(Exception e) { // there was an error while parsing the document. // No chance to go on here. handleException(cms, e, "There was an error while parsing XML page file " + file.getAbsolutePath()); return "".getBytes(); } // Get the names of the master template and the template class from // the parsed page file. Fall back to default value, if template class // is not defined templateClass = doc.getTemplateClass(); if(templateClass == null || "".equals(templateClass)) { templateClass = startTemplateClass; } if(templateClass == null || "".equals(templateClass)) { templateClass = "com.opencms.template.CmsXmlTemplate"; } templateName = doc.getMasterTemplate(); // Previously, the template class was loaded here. // We avoid doing this so early, since in element cache mode the template // class is not needed here. // Now look for parameters in the page file... // ... first the params of the master template... Enumeration masterTemplateParams = doc.getParameterNames(); while(masterTemplateParams.hasMoreElements()) { String paramName = (String)masterTemplateParams.nextElement(); String paramValue = doc.getParameter(paramName); newParameters.put(C_ROOT_TEMPLATE_NAME + "." + paramName, paramValue); } // ... and now the params of all subtemplates Enumeration elementDefinitions = doc.getElementDefinitions(); while(elementDefinitions.hasMoreElements()) { String elementName = (String)elementDefinitions.nextElement(); if(doc.isElementClassDefined(elementName)) { newParameters.put(elementName + "._CLASS_", doc.getElementClass(elementName)); } if(doc.isElementTemplateDefined(elementName)) { newParameters.put(elementName + "._TEMPLATE_", doc.getElementTemplate(elementName)); } if(doc.isElementTemplSelectorDefined(elementName)) { newParameters.put(elementName + "._TEMPLATESELECTOR_", doc.getElementTemplSelector(elementName)); } Enumeration parameters = doc.getElementParameterNames(elementName); while(parameters.hasMoreElements()) { String paramName = (String)parameters.nextElement(); String paramValue = doc.getElementParameter(elementName, paramName); if(paramValue != null) { newParameters.put(elementName + "." + paramName, paramValue); } else { if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + "Empty parameter \"" + paramName + "\" found."); } } } } } // URL parameters ary really dynamic. // We cannot store them in an element cache. // Therefore these parameters must be collected in ANY case! String datafor = req.getParameter("datafor"); if(datafor == null) { datafor = ""; } else { if(!"".equals(datafor)) { datafor = datafor + "."; } } Enumeration urlParameterNames = req.getParameterNames(); while(urlParameterNames.hasMoreElements()) { String pname = (String)urlParameterNames.nextElement(); String paramValue = req.getParameter(pname); if(paramValue != null) { if((!"datafor".equals(pname)) && (!"_clearcache".equals(pname))) { newParameters.put(datafor + pname, paramValue); } } else { if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + "Empty URL parameter \"" + pname + "\" found."); } } } if(elementCacheEnabled && cmsUri == null) { // ---- element cache stuff -------- // No URI could be found in cache. // So create a new URI object with a start element and store it using the UriLocator CmsElementDescriptor elemDesc = new CmsElementDescriptor(templateClass, templateName); CmsElementDefinitionCollection eldefs = doc.getElementDefinitionCollection(); cmsUri = new CmsUri(elemDesc, null, eldefs); elementCache.getUriLocator().put(uriDesc, cmsUri); } if(elementCacheEnabled) { output = elementCache.callCanonicalRoot(cms, newParameters); } else { // ----- traditional stuff ------ // Element cache is deactivated. So let's go on as usual. try { CmsFile masterTemplate = loadMasterTemplateFile(cms, templateName, doc); I_CmsTemplate tmpl = getTemplateClass(cms, templateClass); if(!(tmpl instanceof I_CmsXmlTemplate)) { String errorMessage = "Error in " + file.getAbsolutePath() + ": " + templateClass + " is not a XML template class."; if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_CRITICAL, getClassName() + errorMessage); } throw new CmsException(errorMessage, CmsException.C_XML_WRONG_TEMPLATE_CLASS); } output = callCanonicalRoot(cms, (I_CmsTemplate)tmpl, masterTemplate, newParameters); } catch(CmsException e) { if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, "[CmsXmlLauncher] There were exceptions while generating output for " + file.getAbsolutePath()); A_OpenCms.log(C_OPENCMS_INFO, "[CmsXmlLauncher] Clearing template file cache for this file."); } doc.removeFromFileCache(); throw e; } } return output; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/65fec749058083642e3e85283287c65357fa8690/CmsXmlLauncher.java/clean/src/com/opencms/launcher/CmsXmlLauncher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1160,
8526,
2103,
1447,
12,
4747,
921,
6166,
16,
28118,
585,
16,
514,
787,
2283,
797,
16,
467,
67,
4747,
691,
1111,
16,
432,
67,
3678,
4747,
1696,
4747,
13,
1216,
11228,
288,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1160,
8526,
2103,
1447,
12,
4747,
921,
6166,
16,
28118,
585,
16,
514,
787,
2283,
797,
16,
467,
67,
4747,
691,
1111,
16,
432,
67,
3678,
4747,
1696,
4747,
13,
1216,
11228,
288,
3639... |
eDynamicUnset( eFeature ); | super.eUnset( featureID ); | public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case TypePackage.PIE_SERIES__VISIBLE : unsetVisible( ); return; case TypePackage.PIE_SERIES__LABEL : setLabel( (Label) null ); return; case TypePackage.PIE_SERIES__DATA_DEFINITION : getDataDefinition( ).clear( ); return; case TypePackage.PIE_SERIES__SERIES_IDENTIFIER : setSeriesIdentifier( SERIES_IDENTIFIER_EDEFAULT ); return; case TypePackage.PIE_SERIES__DATA_POINT : setDataPoint( (DataPoint) null ); return; case TypePackage.PIE_SERIES__DATA_SETS : getDataSets( ).clear( ); return; case TypePackage.PIE_SERIES__LABEL_POSITION : unsetLabelPosition( ); return; case TypePackage.PIE_SERIES__STACKED : unsetStacked( ); return; case TypePackage.PIE_SERIES__TRIGGERS : getTriggers( ).clear( ); return; case TypePackage.PIE_SERIES__TRANSLUCENT : unsetTranslucent( ); return; case TypePackage.PIE_SERIES__CURVE_FITTING : setCurveFitting( (CurveFitting) null ); return; case TypePackage.PIE_SERIES__EXPLOSION : unsetExplosion( ); return; case TypePackage.PIE_SERIES__EXPLOSION_EXPRESSION : setExplosionExpression( EXPLOSION_EXPRESSION_EDEFAULT ); return; case TypePackage.PIE_SERIES__TITLE : setTitle( (Label) null ); return; case TypePackage.PIE_SERIES__TITLE_POSITION : unsetTitlePosition( ); return; case TypePackage.PIE_SERIES__LEADER_LINE_ATTRIBUTES : setLeaderLineAttributes( (LineAttributes) null ); return; case TypePackage.PIE_SERIES__LEADER_LINE_STYLE : unsetLeaderLineStyle( ); return; case TypePackage.PIE_SERIES__LEADER_LINE_LENGTH : unsetLeaderLineLength( ); return; case TypePackage.PIE_SERIES__SLICE_OUTLINE : setSliceOutline( (ColorDefinition) null ); return; case TypePackage.PIE_SERIES__RATIO : unsetRatio( ); return; } eDynamicUnset( eFeature ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/PieSeriesImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/type/impl/PieSeriesImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
226... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1412,
226... |
return null; | return; | private MavenProject addDependency( XMLWriter writer, Artifact artifact, List reactorProjects ) { MavenProject reactorProject = findReactorProject( reactorProjects, artifact ); String path = null; String kind = null; if (reactorProject != null) { path = "/" + reactorProject.getArtifactId(); kind = "src"; } else { File artifactPath = artifact.getFile(); if ( artifactPath == null ) { log.error( "The artifacts path was null. Artifact id: " + artifact.getId() ); return null; } path = "M2_REPO/" + toRelative( localRepository, artifactPath.getPath() ); kind = "var"; } writer.startElement( "classpathentry" ); writer.addAttribute( "kind", kind ); writer.addAttribute( "path", path ); writer.endElement(); return reactorProject; } | 51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/76ade2159aba8d04fc2fe68271e7f14bea341ccb/EclipseWriter.java/clean/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
17176,
4109,
527,
7787,
12,
3167,
2289,
2633,
16,
14022,
6462,
16,
987,
19178,
15298,
262,
565,
288,
3639,
17176,
4109,
19178,
4109,
273,
1104,
426,
3362,
4109,
12,
19178,
15298,
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,
17176,
4109,
527,
7787,
12,
3167,
2289,
2633,
16,
14022,
6462,
16,
987,
19178,
15298,
262,
565,
288,
3639,
17176,
4109,
19178,
4109,
273,
1104,
426,
3362,
4109,
12,
19178,
15298,
16,
... |
ConditionalPermissionAdminImpl.storage = permissionStorage; | this.storage = permissionStorage; | public ConditionalPermissionAdminImpl(Framework framework, PermissionStorage permissionStorage) { this.framework = framework; ConditionalPermissionAdminImpl.storage = permissionStorage; try { condPerms = (Vector) permissionStorage.deserializeConditionalPermissionInfos(); } catch (IOException e) { framework.publishFrameworkEvent(FrameworkEvent.ERROR, framework.systemBundle, e); condPerms = new Vector(); } } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/72d40a87c8960cc1ff7cec0842eeb4b73cf56d39/ConditionalPermissionAdminImpl.java/buggy/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ConditionalPermissionAdminImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
22466,
5041,
4446,
2828,
12,
13701,
8257,
16,
8509,
3245,
4132,
3245,
13,
288,
202,
202,
2211,
18,
12303,
273,
8257,
31,
202,
202,
14132,
5041,
4446,
2828,
18,
5697,
273,
4132,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22466,
5041,
4446,
2828,
12,
13701,
8257,
16,
8509,
3245,
4132,
3245,
13,
288,
202,
202,
2211,
18,
12303,
273,
8257,
31,
202,
202,
14132,
5041,
4446,
2828,
18,
5697,
273,
4132,
... |
return parentMgr; } | return parentMgr; } | public IContributionManager getParent() { return parentMgr;} | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5ddde0e384bac44f41aeb754525f7bdab6a04e11/SubContributionManager.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/action/SubContributionManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
467,
442,
4027,
1318,
5089,
1435,
288,
202,
2463,
982,
9455,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
467,
442,
4027,
1318,
5089,
1435,
288,
202,
2463,
982,
9455,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
jj_la1[84] = jj_gen; | jj_la1[85] = jj_gen; | final public void PrimaryPrefix() throws ParseException { /*@bgen(jjtree) PrimaryPrefix */ ASTPrimaryPrefix jjtn000 = new ASTPrimaryPrefix(this, JJTPRIMARYPREFIX); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000);Token t; try { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case FALSE: case NULL: case TRUE: case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case CHARACTER_LITERAL: case STRING_LITERAL: Literal(); break; case THIS: jj_consume_token(THIS); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setUsesThisModifier(); break; case SUPER: jj_consume_token(SUPER); jjtn000.setUsesSuperModifier(); jj_consume_token(DOT); t = jj_consume_token(IDENTIFIER); jjtree.closeNodeScope(jjtn000, true); jjtc000 = false; jjtn000.setImage(t.image); break; case LPAREN: jj_consume_token(LPAREN); Expression(); jj_consume_token(RPAREN); break; case NEW: AllocationExpression(); break; default: jj_la1[84] = jj_gen; if (jj_2_27(2147483647)) { ResultType(); jj_consume_token(DOT); jj_consume_token(CLASS); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IDENTIFIER: Name(); break; default: jj_la1[85] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/c02806442559ca74c050ba0d574007ed840a210a/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
15884,
2244,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
15884,
2244,
1195,
9183,
6793,
2244,
10684,
5088,
3784,
273,
394,
9183,
6793,
2244,
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,
282,
727,
1071,
918,
15884,
2244,
1435,
1216,
10616,
288,
1748,
36,
70,
4507,
12,
78,
78,
3413,
13,
15884,
2244,
1195,
9183,
6793,
2244,
10684,
5088,
3784,
273,
394,
9183,
6793,
2244,
12,
2211... |
printList( StaticEntity.getClient().conditions ); | printList( conditions ); | public boolean executeConditionsCommand( String parameters ) { AdventureResult condition = null; String option = parameters.split( " " )[0]; if ( option.equals( "clear" ) ) { StaticEntity.getClient().conditions.clear(); return true; } else if ( option.equals( "check" ) ) { StaticEntity.getClient().checkRequirements( StaticEntity.getClient().conditions ); StaticEntity.getClient().conditions.clear(); StaticEntity.getClient().conditions.addAll( StaticEntity.getClient().missingItems ); updateDisplay( "Conditions list validated against available items." ); return true; } else if ( option.equals( "mode" ) ) { String conditionString = parameters.substring( option.length() ).trim(); if ( conditionString.startsWith( "conjunction" ) || conditionString.startsWith( "and" ) ) StaticEntity.getClient().useDisjunction = false; else if ( conditionString.startsWith( "disjunction" ) || conditionString.startsWith( "or" ) ) StaticEntity.getClient().useDisjunction = true; if ( StaticEntity.getClient().useDisjunction ) updateDisplay( "All non-stat conditions will be ORed together." ); else updateDisplay( "All non-stat conditions will be ANDed together." ); return true; } else if ( option.equals( "add" ) ) { String conditionString = parameters.substring( option.length() ).toLowerCase().trim(); if ( conditionString.length() == 0 ) return true; Matcher meatMatcher = Pattern.compile( "[\\d,]+ meat" ).matcher( conditionString ); boolean isMeatCondition = meatMatcher.find() ? meatMatcher.group().length() == conditionString.length() : false; if ( isMeatCondition ) { String [] splitCondition = conditionString.split( "\\s+" ); int amount = StaticEntity.parseInt( splitCondition[0] ); condition = new AdventureResult( AdventureResult.MEAT, amount ); } else if ( conditionString.endsWith( "choiceadv" ) || conditionString.endsWith( "choices" ) || conditionString.endsWith( "choice" ) ) { // If it's a choice adventure condition, parse out the // number of choice adventures the user wishes to do. String [] splitCondition = conditionString.split( "\\s+" ); condition = new AdventureResult( AdventureResult.CHOICE, splitCondition.length > 1 ? StaticEntity.parseInt( splitCondition[0] ) : 1 ); } else if ( conditionString.startsWith( "level" ) ) { // If the condition is a level, then determine how many // substat points are required to the next level and // add the substat points as a condition. String [] splitCondition = conditionString.split( "\\s+" ); int level = StaticEntity.parseInt( splitCondition[1] ); int [] subpoints = new int[3]; int primeIndex = KoLCharacter.getPrimeIndex(); subpoints[ primeIndex ] = KoLCharacter.calculateSubpoints( (level - 1) * (level - 1) + 4, 0 ) - KoLCharacter.getTotalPrime(); for ( int i = 0; i < subpoints.length; ++i ) subpoints[i] = Math.max( 0, subpoints[i] ); condition = new AdventureResult( AdventureResult.SUBSTATS, subpoints ); // Make sure that if there was a previous substat condition, // and it modifies the same stat as this condition, that the // greater of the two remains and the two aren't added. int previousIndex = StaticEntity.getClient().conditions.indexOf( condition ); if ( previousIndex != -1 ) { AdventureResult previousCondition = (AdventureResult) StaticEntity.getClient().conditions.get( previousIndex ); for ( int i = 0; i < subpoints.length; ++i ) if ( subpoints[i] != 0 && previousCondition.getCount(i) != 0 ) subpoints[i] = Math.max( 0, subpoints[i] - previousCondition.getCount(i) ); condition = new AdventureResult( AdventureResult.SUBSTATS, subpoints ); } } else if ( conditionString.endsWith( "mus" ) || conditionString.endsWith( "muscle" ) || conditionString.endsWith( "moxie" ) || conditionString.endsWith( "mys" ) || conditionString.endsWith( "myst" ) || conditionString.endsWith( "mysticality" ) ) { String [] splitCondition = conditionString.split( "\\s+" ); int points = StaticEntity.parseInt( splitCondition[0] ); int [] subpoints = new int[3]; int statIndex = conditionString.indexOf( "mus" ) != -1 ? 0 : conditionString.indexOf( "mys" ) != -1 ? 1 : 2; subpoints[ statIndex ] = KoLCharacter.calculateSubpoints( points, 0 ); subpoints[ statIndex ] -= conditionString.indexOf( "mus" ) != -1 ? KoLCharacter.getTotalMuscle() : conditionString.indexOf( "mys" ) != -1 ? KoLCharacter.getTotalMysticality() : KoLCharacter.getTotalMoxie(); for ( int i = 0; i < subpoints.length; ++i ) subpoints[i] = Math.max( 0, subpoints[i] ); condition = new AdventureResult( AdventureResult.SUBSTATS, subpoints ); // Make sure that if there was a previous substat condition, // and it modifies the same stat as this condition, that the // greater of the two remains and the two aren't added. int previousIndex = StaticEntity.getClient().conditions.indexOf( condition ); if ( previousIndex != -1 ) { AdventureResult previousCondition = (AdventureResult) StaticEntity.getClient().conditions.get( previousIndex ); for ( int i = 0; i < subpoints.length; ++i ) if ( subpoints[i] != 0 && previousCondition.getCount(i) != 0 ) subpoints[i] = Math.max( 0, subpoints[i] - previousCondition.getCount(i) ); condition = new AdventureResult( AdventureResult.SUBSTATS, subpoints ); } } else if ( conditionString.endsWith( "health" ) || conditionString.endsWith( "mana" ) ) { String numberString = conditionString.split( "\\s+" )[0]; int points = StaticEntity.parseInt( numberString.endsWith( "%" ) ? numberString.substring( 0, numberString.length() - 1 ) : numberString ); if ( numberString.endsWith( "%" ) ) { if ( conditionString.endsWith( "health" ) ) points = (int) ((float) points * (float)KoLCharacter.getMaximumHP() / 100.0f); else if ( conditionString.endsWith( "mana" ) ) points = (int) ((float) points * (float)KoLCharacter.getMaximumMP() / 100.0f); } points -= conditionString.endsWith( "health" ) ? KoLCharacter.getCurrentHP() : KoLCharacter.getCurrentMP(); condition = new AdventureResult( conditionString.endsWith( "health" ) ? AdventureResult.HP : AdventureResult.MP, points ); int previousIndex = StaticEntity.getClient().conditions.indexOf( condition ); if ( previousIndex != -1 ) { AdventureResult previousCondition = (AdventureResult) StaticEntity.getClient().conditions.get( previousIndex ); condition = condition.getInstance( condition.getCount() - previousCondition.getCount() ); } } else if ( conditionString.endsWith( "outfit" ) ) { // Usage: conditions add <location> outfit String outfitLocation; if (conditionString.equals("outfit")) outfitLocation = StaticEntity.getProperty("lastAdventure"); else outfitLocation = conditionString.substring(0, conditionString.length() - 7); // Try to support outfit names by mapping some outfits to their locations if (outfitLocation.equals("guard") || outfitLocation.equals("elite") || outfitLocation.equals("elite guard")) outfitLocation = "treasury"; if (outfitLocation.equals("rift")) outfitLocation = "battlefield"; if (outfitLocation.equals("cloaca-cola") || outfitLocation.equals("cloaca cola")) outfitLocation = "cloaca"; if( outfitLocation.equals("dyspepsi-cola") || outfitLocation.equals("dyspepsi cola")) outfitLocation = "dyspepsi"; KoLAdventure lastAdventure = AdventureDatabase.getAdventure( outfitLocation ); if ( !(lastAdventure instanceof KoLAdventure) ) updateDisplay( ERROR_STATE, "Unrecognized location: "+ outfitLocation); else if ( !EquipmentDatabase.addOutfitConditions(lastAdventure )) updateDisplay( ERROR_STATE, "No outfit corresponds to " + lastAdventure.getAdventureName() + "."); } else { // Otherwise, it's an item or status-effect condition, so parse // out which item or effect is desired and set that as the condition. condition = getFirstMatchingItem( conditionString ); } } if ( condition == null ) { printList( StaticEntity.getClient().conditions ); return false; } if ( condition.getCount() > 0 ) { AdventureResult.addResultToList( StaticEntity.getClient().conditions, condition ); updateDisplay( "Condition added: " + condition ); } else { updateDisplay( "Condition already met: " + condition ); } return true; } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/e62c220071db475c697de817376ca4486bbcebd6/KoLmafiaCLI.java/clean/src/net/sourceforge/kolmafia/KoLmafiaCLI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1836,
8545,
2189,
12,
514,
1472,
262,
202,
95,
202,
202,
1871,
616,
594,
1253,
2269,
273,
446,
31,
202,
202,
780,
1456,
273,
1472,
18,
4939,
12,
315,
315,
262,
63,
20,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1836,
8545,
2189,
12,
514,
1472,
262,
202,
95,
202,
202,
1871,
616,
594,
1253,
2269,
273,
446,
31,
202,
202,
780,
1456,
273,
1472,
18,
4939,
12,
315,
315,
262,
63,
20,... |
getImageableWidth() { return(paper.getImageableWidth()); } | public double getImageableWidth() { return paper.getImageableWidth(); } | getImageableWidth(){ return(paper.getImageableWidth());} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/PageFormat.java/clean/core/src/classpath/java/java/awt/print/PageFormat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
10567,
429,
2384,
1435,
95,
225,
327,
12,
27400,
18,
588,
2040,
429,
2384,
10663,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
10567,
429,
2384,
1435,
95,
225,
327,
12,
27400,
18,
588,
2040,
429,
2384,
10663,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
} else if (pn.equals("displayName")) { | } else if ("displayName".equals(pn)) { | public void propertyChange(PropertyChangeEvent e) { String pn = e.getPropertyName(); if ( (e.getOldValue() == null && e.getNewValue() != null) || (e.getOldValue() != null && e.getNewValue() == null) || (e.getOldValue() != null && e.getNewValue() != null && !e.getOldValue().equals(e.getNewValue())) ) { if (pn.equals("url") || pn.equals("driverClass") || pn.equals("user")) { reset(); } else if (pn.equals("displayName")) { fireDbObjectChanged("shortDisplayName"); } } } | 53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/2edf98ec9eff46c2fc651331737bf52eccd6fad0/SQLDatabase.java/buggy/src/ca/sqlpower/architect/SQLDatabase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
288,
202,
202,
780,
11059,
273,
425,
18,
588,
13073,
5621,
202,
202,
430,
261,
261,
73,
18,
588,
7617,
620,
1435,
422,
446,
597,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
288,
202,
202,
780,
11059,
273,
425,
18,
588,
13073,
5621,
202,
202,
430,
261,
261,
73,
18,
588,
7617,
620,
1435,
422,
446,
597,
4... |
boolean ab = ((Set)prec_rel.get(a)).contains(b); boolean ba = ((Set)prec_rel.get(b)).contains(a); return ab ? ba ? PRECEDENCE_CONFLICT : PRECEDENCE_FIRST : ba ? PRECEDENCE_SECOND : PRECEDENCE_NONE; | boolean ab = ((Set)prec_rel.get(a)).contains(b); boolean ba = ((Set)prec_rel.get(b)).contains(a); return ab ? ba ? PRECEDENCE_CONFLICT : PRECEDENCE_FIRST : ba ? PRECEDENCE_SECOND : PRECEDENCE_NONE; | public int getPrecedence(String a, String b) { int prec; if (!prec_rel.containsKey(a) || !prec_rel.containsKey(b)) return PRECEDENCE_NONE; boolean ab = ((Set)prec_rel.get(a)).contains(b); boolean ba = ((Set)prec_rel.get(b)).contains(a); return ab ? ba ? PRECEDENCE_CONFLICT : PRECEDENCE_FIRST : ba ? PRECEDENCE_SECOND : PRECEDENCE_NONE; } | 236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/5382352ea23b31b8a89782dd250eadeaa5ff26cb/GlobalAspectInfo.java/buggy/aop/abc/src/abc/weaving/aspectinfo/GlobalAspectInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
12822,
24092,
12,
780,
279,
16,
514,
324,
13,
288,
202,
474,
13382,
31,
202,
430,
16051,
4036,
67,
2878,
18,
12298,
653,
12,
69,
13,
747,
401,
4036,
67,
2878,
18,
12298,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
12822,
24092,
12,
780,
279,
16,
514,
324,
13,
288,
202,
474,
13382,
31,
202,
430,
16051,
4036,
67,
2878,
18,
12298,
653,
12,
69,
13,
747,
401,
4036,
67,
2878,
18,
12298,
65... |
} else { return filename.substring( index + 1 ); | } else { return filename.substring(index + 1); | public static String getExtension( final String filename ) { final int index = filename.lastIndexOf( '.' ); if( -1 == index ) { return ""; } else { return filename.substring( index + 1 ); } } | 56629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56629/d9d353082503a217fa6c6510622973d018db0e26/FileUtils.java/clean/src/java/org/apache/commons/io/FileUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
12374,
12,
727,
514,
1544,
262,
565,
288,
3639,
727,
509,
770,
273,
1544,
18,
2722,
31985,
12,
2611,
11272,
3639,
309,
12,
300,
21,
422,
770,
262,
3639,
288,
5411,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
12374,
12,
727,
514,
1544,
262,
565,
288,
3639,
727,
509,
770,
273,
1544,
18,
2722,
31985,
12,
2611,
11272,
3639,
309,
12,
300,
21,
422,
770,
262,
3639,
288,
5411,
327,
... |
if (jj_scan_token(LBRACE)) return true; | if (jj_scan_token(WS)) return true; | final private boolean jj_3R_16() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/f5ebf1fa86f338484c8f14f11ac1fbcc329367a3/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
2313,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2651,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2313,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
2651,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10... |
x = newChunk.width; | newChunk.x = firstNonWhiteSpace; x = firstNonWhiteSpace + newChunk.width; | public static void lineToChunkList(Segment seg, Token tokens, SyntaxStyle[] styles, FontRenderContext fontRenderContext, TabExpander e, float wrapMargin, java.util.List out) { float x = 0.0f; boolean seenNonWhiteSpace = false; float firstNonWhiteSpace = 0.0f; Chunk first = null; Chunk current = null; int tokenListOffset = 0; while(tokens.id != Token.END) { int flushIndex = tokenListOffset; for(int i = tokenListOffset; i < tokenListOffset + tokens.length; i++) { char ch = seg.array[seg.offset + i]; if(ch == ' ' || ch == '\t') { if(i != flushIndex) { Chunk newChunk = new Chunk( tokens.id,seg,flushIndex, i,styles,fontRenderContext); if(wrapMargin != 0 && x + newChunk.width > wrapMargin) { if(first != null) out.add(first); first = null; newChunk.x = firstNonWhiteSpace; x = firstNonWhiteSpace + newChunk.width; } else { newChunk.x = x; x += newChunk.width; } if(first == null) first = current = newChunk; else { current.next = newChunk; current = newChunk; } seenNonWhiteSpace = true; } if(ch == ' ') { Chunk newChunk = new Chunk( tokens.id,seg,i,i + 1, styles,fontRenderContext); newChunk.x = x; if(first == null) first = current = newChunk; else { current.next = newChunk; current = newChunk; } x += current.width; } else if(ch == '\t') { Chunk newChunk = new Chunk( tokens.id,seg,i,i, styles,fontRenderContext); newChunk.x = x; if(first == null) first = current = newChunk; else { current.next = newChunk; current = newChunk; } x = e.nextTabStop(x,i + tokenListOffset); current.width = x - current.x; current.length = 1; } if(!seenNonWhiteSpace) firstNonWhiteSpace = x; if(first == null) first = current; flushIndex = i + 1; } else if(i == tokenListOffset + tokens.length - 1) { Chunk newChunk = new Chunk( tokens.id,seg,flushIndex, i + 1,styles,fontRenderContext); if(i == seg.count - 1 && wrapMargin != 0 && x + newChunk.width > wrapMargin) { if(first != null) out.add(first); first = null; x = newChunk.width; } else { newChunk.x = x; x += newChunk.width; } if(first == null) first = current = newChunk; else { current.next = newChunk; current = newChunk; } } } tokenListOffset += tokens.length; tokens = tokens.next; } if(first != null) out.add(first); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/caed3f5ff32eba0d897f16bd04b403525373c3fa/TextUtilities.java/clean/org/gjt/sp/jedit/TextUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
19785,
5579,
682,
12,
4131,
2291,
16,
3155,
2430,
16,
202,
202,
8070,
2885,
8526,
5687,
16,
10063,
3420,
1042,
3512,
3420,
1042,
16,
202,
202,
5661,
12271,
264,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
19785,
5579,
682,
12,
4131,
2291,
16,
3155,
2430,
16,
202,
202,
8070,
2885,
8526,
5687,
16,
10063,
3420,
1042,
3512,
3420,
1042,
16,
202,
202,
5661,
12271,
264,
425,
... |
ci.displaySize = types[SYBDATETIME4].displaySize; | ci.displaySize = types[SYBDATETIME4].displaySize; | static int readType(ResponseStream in, ColInfo ci) throws IOException, ProtocolException { boolean isTds8 = in.getTdsVersion() == TdsCore.TDS80; int bytesRead = 1; // Get the TDS data type code int type = in.read(); if (types[type] == null) { throw new ProtocolException("Invalid TDS data type 0x" + Integer.toHexString(type)); } ci.tdsType = type; ci.jdbcType = types[type].jdbcType; ci.displaySize = -1; ci.tableName = ""; ci.bufferSize = types[type].size; ci.nullable = java.sql.ResultSetMetaData.columnNoNulls; // Now get the buffersize if required if (ci.bufferSize == -5) { // sql_variant ci.bufferSize = in.readInt(); bytesRead += 4; } else if (ci.bufferSize == -4) { // text or image ci.bufferSize = in.readInt(); if (isTds8) bytesRead += getCollation(in, ci); int lenName = in.readShort(); ci.tableName = in.readString(lenName); bytesRead += 6 + ((in.getTdsVersion() >= TdsCore.TDS70)? lenName * 2: lenName); } else if (ci.bufferSize == -2) { // longvarchar longvarbinary ci.bufferSize = in.readShort(); if (isTds8) bytesRead += getCollation(in, ci); bytesRead += 2; } else if (ci.bufferSize == -1) { // varchar varbinary decimal etc bytesRead += 1; ci.bufferSize = in.read(); } // Set scale for money and date types if (isCurrency(ci)) { ci.scale = 4; } else if (type == SYBDATETIME ||(type == SYBDATETIMN && ci.bufferSize == 8)) { ci.scale = 3; } // Set default displaySize and precision ci.displaySize = types[type].displaySize; ci.precision = types[type].precision; ci.sqlType = types[type].sqlType; // Now fine tune sizes for specific types if (type == SYBDATETIMN) { ci.nullable = java.sql.ResultSetMetaData.columnNullable; if (ci.bufferSize == 8) { ci.displaySize = types[SYBDATETIME].displaySize; ci.precision = types[SYBDATETIME].precision; } else { ci.displaySize = types[SYBDATETIME4].displaySize; ci.precision = types[SYBDATETIME4].precision; ci.sqlType = types[SYBDATETIME4].sqlType; } } else if (type == SYBFLTN) { ci.nullable = java.sql.ResultSetMetaData.columnNullable; if (ci.bufferSize == 8) { ci.displaySize = types[SYBFLT8].displaySize; ci.precision = types[SYBFLT8].precision; } else { ci.displaySize = types[SYBREAL].displaySize; ci.precision = types[SYBREAL].precision; ci.jdbcType = java.sql.Types.FLOAT; ci.sqlType = types[SYBREAL].sqlType; } } else if (type == SYBINTN) { ci.nullable = java.sql.ResultSetMetaData.columnNullable; if (ci.bufferSize == 8) { ci.displaySize = types[SYBINT8].displaySize; ci.precision = types[SYBINT8].precision; ci.sqlType = types[SYBINT8].sqlType; } else if (ci.bufferSize == 4) { ci.displaySize = types[SYBINT4].displaySize; ci.precision = types[SYBINT4].precision; } else if (ci.bufferSize == 2) { ci.displaySize = types[SYBINT2].displaySize; ci.precision = types[SYBINT2].precision; ci.jdbcType = java.sql.Types.SMALLINT; ci.sqlType = types[SYBINT2].sqlType; } else { ci.displaySize = types[SYBINT1].displaySize; ci.precision = types[SYBINT1].precision; ci.jdbcType = java.sql.Types.TINYINT; ci.sqlType = types[SYBINT1].sqlType; } } else if (type == SYBMONEYN) { ci.nullable = java.sql.ResultSetMetaData.columnNullable; if (ci.bufferSize == 8) { ci.displaySize = types[SYBMONEY].displaySize; ci.precision = types[SYBMONEY].precision; } else { ci.displaySize = types[SYBMONEY4].displaySize; ci.precision = types[SYBMONEY4].precision; ci.sqlType = types[SYBMONEY4].sqlType; } } // Set sizes for character types if (ci.precision == -1) { ci.precision = ci.bufferSize; if (ci.displaySize == -2) { ci.displaySize = ci.bufferSize / 2; } else if (ci.displaySize == 2) { ci.displaySize = ci.precision * 2; } else { ci.displaySize = ci.precision; } } // Read in scale and precision for decimal types if (type == SYBDECIMAL || type == SYBNUMERIC) { ci.precision = in.read(); ci.scale = in.read(); ci.displaySize = ((ci.scale > 0)? 2 : 1) + ci.precision; bytesRead += 2; StringBuffer tmp = new StringBuffer(16); tmp.append(types[type].sqlType).append('(').append(ci.precision); if (ci.scale > 0) tmp.append(',').append(ci.scale); tmp.append(')'); ci.sqlType = tmp.toString(); } return bytesRead; } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/9afe478d809db444a6ae429180e144eb579509a3/TdsData.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
509,
855,
559,
12,
1064,
1228,
316,
16,
1558,
966,
9039,
13,
565,
1216,
1860,
16,
4547,
503,
288,
3639,
1250,
353,
56,
2377,
28,
273,
316,
18,
588,
56,
2377,
1444,
1435,
422,
399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
855,
559,
12,
1064,
1228,
316,
16,
1558,
966,
9039,
13,
565,
1216,
1860,
16,
4547,
503,
288,
3639,
1250,
353,
56,
2377,
28,
273,
316,
18,
588,
56,
2377,
1444,
1435,
422,
399... |
value = val; | s1.setValue(val); s2.setValue(Math.min(val, p2)); | public void setValue(int val) { if (val > getMaximumValue()) { value = getMaximumValue(); } else if (val < getMinimumValue()) { value = getMinimumValue(); } else { value = val; } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7cc107e01ff95c250142dda3e246542e1b0c0794/Spring.java/clean/core/src/classpath/javax/javax/swing/Spring.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5524,
12,
474,
1244,
13,
565,
288,
1377,
309,
261,
1125,
405,
25194,
620,
10756,
3639,
288,
1850,
460,
273,
25194,
620,
5621,
202,
97,
1377,
469,
309,
261,
1125,
411,
30665,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5524,
12,
474,
1244,
13,
565,
288,
1377,
309,
261,
1125,
405,
25194,
620,
10756,
3639,
288,
1850,
460,
273,
25194,
620,
5621,
202,
97,
1377,
469,
309,
261,
1125,
411,
30665,
... |
if (element instanceof ITaskListElement) { ITaskListElement task = (ITaskListElement) element; return task.getFont(); | if (!(element instanceof ITaskListElement)) { return null; } if (element instanceof AbstractRepositoryTask) { AbstractRepositoryTask repositoryTask = (AbstractRepositoryTask)element; if (repositoryTask.isCurrentlyDownloading()) { return TaskListImages.ITALIC; } } ITask task = getCorrespondingTask((ITaskListElement)element); if (task != null) { if (task.isActive()) return TaskListImages.BOLD; for (ITask child : task.getChildren()) { if (child.isActive()) return TaskListImages.BOLD; } } else if (element instanceof ITaskContainer) { for (ITask child : ((ITaskContainer)element).getChildren()) { if (child.isActive()) return TaskListImages.BOLD; } | public Font getFont(Object element) { if (element instanceof ITaskListElement) { ITaskListElement task = (ITaskListElement) element; return task.getFont(); } return null; } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/98a517f71452e6ab520dca4beb4a09784043d5d5/TaskElementLabelProvider.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/TaskElementLabelProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10063,
18776,
12,
921,
930,
13,
288,
202,
202,
430,
261,
2956,
1276,
467,
2174,
682,
1046,
13,
288,
1082,
202,
1285,
835,
682,
1046,
1562,
273,
261,
1285,
835,
682,
1046,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10063,
18776,
12,
921,
930,
13,
288,
202,
202,
430,
261,
2956,
1276,
467,
2174,
682,
1046,
13,
288,
1082,
202,
1285,
835,
682,
1046,
1562,
273,
261,
1285,
835,
682,
1046,
13,
... |
public static FontData[] readFontData(String fontDataValue){ | public static FontData[] readFontData(String fontDataValue) { | public static FontData[] readFontData(String fontDataValue){ return basicGetFontData(fontDataValue); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fe04f125211730b7fe91f7109dc454a63e0cb31c/PreferenceConverter.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
10063,
751,
8526,
855,
5711,
751,
12,
780,
3512,
28013,
15329,
202,
202,
2463,
5337,
967,
5711,
751,
12,
5776,
28013,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
10063,
751,
8526,
855,
5711,
751,
12,
780,
3512,
28013,
15329,
202,
202,
2463,
5337,
967,
5711,
751,
12,
5776,
28013,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Object externalizerObject = element.createExecutableExtension(ATTR_EXTERNALIZER_CLASS); | Object externalizerObject = element.createExecutableExtension(ATTR_CLASS); | private static void readExternalizer(IConfigurationElement element, List<ITaskListExternalizer> externalizers) { try { Object externalizerObject = element.createExecutableExtension(ATTR_EXTERNALIZER_CLASS); if (externalizerObject instanceof ITaskListExternalizer) { ITaskListExternalizer externalizer = (ITaskListExternalizer) externalizerObject; externalizers.add((ITaskListExternalizer) externalizer); } else { MylarStatusHandler.log("Could not load externalizer: " + externalizerObject.getClass().getCanonicalName() + " must implement " + ITaskListExternalizer.class.getCanonicalName(), null); } // Object taskHandler = // element.createExecutableExtension(ATTR_ACTION_CONTRIBUTOR_CLASS); // if (taskHandler instanceof ITaskHandler) { // MylarTaskListPlugin.getDefault().addTaskHandler((ITaskHandler) // taskHandler); // } else { // MylarStatusHandler.log("Could not load contributor: " + // taskHandler.getClass().getCanonicalName() // + " must implement " + ITaskHandler.class.getCanonicalName(), // null); // } } catch (CoreException e) { MylarStatusHandler.log(e, "Could not load task handler extension"); } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/25874780bb4a9552d8a46df6805b69026b91f259/TaskListExtensionReader.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/util/TaskListExtensionReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
855,
6841,
1824,
12,
45,
1750,
1046,
930,
16,
987,
32,
1285,
835,
682,
6841,
1824,
34,
3903,
8426,
13,
288,
202,
202,
698,
288,
1082,
202,
921,
3903,
1824,
921,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
855,
6841,
1824,
12,
45,
1750,
1046,
930,
16,
987,
32,
1285,
835,
682,
6841,
1824,
34,
3903,
8426,
13,
288,
202,
202,
698,
288,
1082,
202,
921,
3903,
1824,
921,
2... |
printText( "&" + name + ";" ); | _printer.printText( '&' ); _printer.printText( name ); _printer.printText( ';' ); | public void skippedEntity ( String name ) throws SAXException { endCDATA(); content(); printText( "&" + name + ";" ); } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1e1ce544975980cfc9bc8941ab7c8166d350c04d/BaseMarkupSerializer.java/buggy/src/org/apache/xml/serialize/BaseMarkupSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
9700,
1943,
261,
514,
508,
262,
3639,
1216,
14366,
565,
288,
3639,
679,
18375,
5621,
3639,
913,
5621,
3639,
389,
30439,
18,
1188,
1528,
12,
9824,
11272,
389,
30439,
18,
1188,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
9700,
1943,
261,
514,
508,
262,
3639,
1216,
14366,
565,
288,
3639,
679,
18375,
5621,
3639,
913,
5621,
3639,
389,
30439,
18,
1188,
1528,
12,
9824,
11272,
389,
30439,
18,
1188,
1... |
private void handlePageSetup(Report report) { | private void handlePageSetup( Report report ) { | private void handlePageSetup(Report report) { // first create the master page defined in the report design PageSetupContent pageSetup = new PageSetupContent( report .getPageSetup( ) ); IPageSetupEmitter pageSetupEmitter = emitter.getPageSetupEmitter(); pageSetupEmitter.startPageSetup( ); for ( int i = 0; i < report.getPageSetup( ).getMasterPageCount( ); i++ ) { // context.initStyleStack( ); // IMasterPageEmitter mpEmitter = emitter.getMasterPageEmitter( ); // if ( mpEmitter != null ) { MasterPageDesign masterPage = report.getPageSetup( ) .getMasterPage( i ); MasterPageContent masterPageContent = new MasterPageContent( masterPage ); pageSetup.addMasterPage( masterPageContent ); pageSetupEmitter.startMasterPage( masterPageContent ); pageSetupEmitter.endMasterPage( ); } } //then output the page sequence defined in the report define for ( int i = 0; i < report.getPageSetup( ).getPageSequenceCount( ); i++ ) { //IPageSetupEmitter psEmitter = emitter.getPageSequenceEmitter( ); //if ( psEmitter != null ) { PageSequenceDesign psDesign = report.getPageSetup( ) .getPageSequence( i ); PageSequenceContent psContent = new PageSequenceContent( pageSetup, psDesign ); pageSetup.addPageSequence( psContent ); pageSetupEmitter.startPageSequence( psContent ); pageSetupEmitter.endPageSequence( ); } } pageSetupEmitter.endPageSetup( ); context.setPageSetup( pageSetup ); setDefaultMasterPage( report ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/f5a9bea2073cca10b0308809092763f54b6c3f16/ReportExecutor.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ReportExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1640,
1964,
7365,
12,
4820,
2605,
13,
288,
202,
202,
759,
1122,
752,
326,
4171,
1363,
2553,
316,
326,
2605,
8281,
202,
202,
1964,
7365,
1350,
1363,
7365,
273,
394,
3460,
7365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
1964,
7365,
12,
4820,
2605,
13,
288,
202,
202,
759,
1122,
752,
326,
4171,
1363,
2553,
316,
326,
2605,
8281,
202,
202,
1964,
7365,
1350,
1363,
7365,
273,
394,
3460,
7365,
... |
this.part = part; this.page = page; } | this.part = part; this.page = page; } | public PageRec(IWorkbenchPart part, IPage page) { this.part = part; this.page = page; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9ff1117bd4d0d76888bfb35def7ce85f6378a2d3/PageBookView.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/PageBookView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3460,
5650,
12,
45,
2421,
22144,
1988,
1087,
16,
467,
1964,
1363,
13,
288,
5411,
333,
18,
2680,
273,
1087,
31,
5411,
333,
18,
2433,
273,
1363,
31,
3639,
289,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
3460,
5650,
12,
45,
2421,
22144,
1988,
1087,
16,
467,
1964,
1363,
13,
288,
5411,
333,
18,
2680,
273,
1087,
31,
5411,
333,
18,
2433,
273,
1363,
31,
3639,
289,
2,
-100,
-100,
-100,
... |
if (parent != null) tempAclDlg.setLocation(parent.getX() + (parent.getWidth() - tempAclDlg.getWidth()) / 2, parent.getY() + (parent.getHeight() - tempAclDlg.getHeight()) / 2); | if (parent != null) { int locx = parent.getX() + (parent.getWidth() - tempAclDlg.getWidth()) / 2; if (locx < 0) locx = 0; int locy = parent.getY() + (parent.getHeight() - tempAclDlg.getHeight()) / 2; if (locy < 0) locy = 0; tempAclDlg.setLocation(locx,locy); } | public static void showMsgInDialog(ACLMessage msg, Frame parent) { final JDialog tempAclDlg = new JDialog(parent, "ACL Message", true); AclGui aclPanel = new AclGui(); aclPanel.setBorder(new BevelBorder(BevelBorder.RAISED)); aclPanel.setEnabled(false); aclPanel.setMsg(msg); JButton okButton = new JButton("OK"); JPanel buttonPanel = new JPanel(); // Use default (FlowLayout) layout manager to dispose the OK button buttonPanel.add(okButton); tempAclDlg.getContentPane().setLayout(new BorderLayout()); tempAclDlg.getContentPane().add("Center", aclPanel); tempAclDlg.getContentPane().add("South", buttonPanel); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tempAclDlg.dispose(); } } ); tempAclDlg.pack(); tempAclDlg.setResizable(false); if (parent != null) tempAclDlg.setLocation(parent.getX() + (parent.getWidth() - tempAclDlg.getWidth()) / 2, parent.getY() + (parent.getHeight() - tempAclDlg.getHeight()) / 2); tempAclDlg.show(); } | 5505 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5505/c3a576f5a27312baecf3700230505705435ddf8f/AclGui.java/buggy/src/jade/gui/AclGui.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2405,
3332,
382,
6353,
12,
9486,
1079,
1234,
16,
8058,
982,
13,
202,
95,
202,
202,
6385,
804,
6353,
1906,
13538,
40,
23623,
273,
394,
804,
6353,
12,
2938,
16,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2405,
3332,
382,
6353,
12,
9486,
1079,
1234,
16,
8058,
982,
13,
202,
95,
202,
202,
6385,
804,
6353,
1906,
13538,
40,
23623,
273,
394,
804,
6353,
12,
2938,
16,
315,
... |
} | public void addUserName(String name) { if (!containsUserName(name)) { String[] newNames = new String[userNames.length + 1]; for (int i=0; i<userNames.length; i++) { newNames[i] = userNames[i]; } newNames[newNames.length - 1] = name; setUserNames(newNames); } } | 47551 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47551/f14c5eedda256457bb4de934cfa0656bce4f9a3c/DefaultUserNameStore.java/buggy/src/java/org/jdesktop/swingx/auth/DefaultUserNameStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
527,
15296,
12,
780,
508,
13,
288,
7734,
309,
16051,
12298,
15296,
12,
529,
3719,
288,
5411,
514,
8526,
394,
1557,
273,
394,
514,
63,
1355,
1557,
18,
2469,
397,
404,
15533,
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,
540,
1071,
918,
527,
15296,
12,
780,
508,
13,
288,
7734,
309,
16051,
12298,
15296,
12,
529,
3719,
288,
5411,
514,
8526,
394,
1557,
273,
394,
514,
63,
1355,
1557,
18,
2469,
397,
404,
15533,
5... | |
return; | public void handleFrameClosed(PortletFrameEvent event) { List scomponents = Collections.synchronizedList(components); synchronized (scomponents) { Iterator it = scomponents.iterator(); PortletComponent p = null; int id = event.getID(); while (it.hasNext()) { p = (PortletComponent) it.next(); // check for the frame that has been closed if (p.getComponentID() == id) { if (p instanceof PortletFrame) { this.removePortletComponent(p); try { PortletPageFactory pageFactory = PortletPageFactory.getInstance(); PortletPage page = pageFactory.createPortletPage(event.getRequest()); page.init(event.getRequest(), new Vector()); page.save(); } catch (Exception e) { //log.error("Unable to save portlet page", e); } finally { return; } } } } } } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/08e6d65dc4b33e716c12a2532cea11b7ba150aea/PortletFrameLayout.java/clean/src/org/gridlab/gridsphere/layout/PortletFrameLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
327,
31,
327,
31,
327,
31,
327,
31,
1071,
2463,
31,
918,
2463,
31,
1640,
3219,
7395,
12,
18566,
3219,
1133,
2463,
31,
871,
13,
2463,
31,
288,
2463,
31,
327,
31,
327,
31,
327,
31,
327,
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,
327,
31,
327,
31,
327,
31,
327,
31,
1071,
2463,
31,
918,
2463,
31,
1640,
3219,
7395,
12,
18566,
3219,
1133,
2463,
31,
871,
13,
2463,
31,
288,
2463,
31,
327,
31,
327,
31,
327,
31,
327,
31... | |
} | public void whenTrue(Runnable action) throws InterruptedException { synchronized (lock_) { while (!value_) lock_.wait(); if (action != null) action.run(); } } | 4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/WaitableBoolean.java/clean/src/java/org/logicalcobwebs/concurrent/WaitableBoolean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
225,
918,
1347,
5510,
12,
20013,
1301,
13,
1216,
7558,
288,
565,
3852,
261,
739,
67,
13,
288,
1377,
1323,
16051,
1132,
67,
13,
2176,
27799,
7048,
5621,
1377,
309,
261,
1128,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
225,
918,
1347,
5510,
12,
20013,
1301,
13,
1216,
7558,
288,
565,
3852,
261,
739,
67,
13,
288,
1377,
1323,
16051,
1132,
67,
13,
2176,
27799,
7048,
5621,
1377,
309,
261,
1128,
480,
... | |
case 312 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } | case 313 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } | protected void consumeRule(int act) { switch ( act ) { case 26 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 40 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 44 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 45 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 46 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 47 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 48 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 49 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 50 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 56 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 57 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 58 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); 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$ consumeInternalCompilationUnitWithTypes(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 66 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 67 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 78 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 80 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 82 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 83 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 84 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 85 : if (DEBUG) { System.out.println("PackageDeclarationName ::= package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 90 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 91 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 92 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 93 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 96 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 100 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 112 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 113 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 114 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 115 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 117 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 118 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 119 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 121 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 122 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 125 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 129 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 130 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 131 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 138 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 141 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 143 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 146 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 147 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 148 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 149 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 150 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 155 : 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 156 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 157 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 158 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(); break; case 159 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(); break; case 160 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 161 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 162 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 163 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 164 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 165 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 167 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 168 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 169 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 171 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 172 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 173 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 174 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 175 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 176 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 177 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 178 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 179 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 180 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 181 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 182 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 183 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 184 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 185 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 186 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 187 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 191 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 192 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 193 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 195 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 197 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 200 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 201 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 204 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); } //$NON-NLS-1$ ignoreMethodBody(); break; case 205 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(true); break; case 206 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ ignoreInvalidConstructorDeclaration(false); break; case 213 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 214 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 215 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 216 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 218 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 219 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 220 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 222 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 226 : if (DEBUG) { System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); } //$NON-NLS-1$ ignoreInterfaceDeclaration(); break; case 227 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 228 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 229 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 230 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 231 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 257 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 258 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 259 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 260 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 269 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 270 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 271 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 272 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 273 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 276 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 278 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 279 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 281 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 282 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 283 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 284 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 285 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 286 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 287 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 288 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 289 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 293 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 294 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 295 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 296 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 297 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 298 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 299 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 300 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 301 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 302 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 303 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 304 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 305 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 307 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 309 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 310 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 312 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 313 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 318 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 319 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 320 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 323 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 324 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 325 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 326 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 327 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 328 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 331 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 332 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 333 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 334 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 335 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 336 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 337 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 338 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 339 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 341 : if (DEBUG) { System.out.println("ClassBodySimpleNameopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 343 : if (DEBUG) { System.out.println("EnterAnonymousClassBodySimpleName ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBodySimpleName(); break; case 344 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 346 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 347 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 348 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 349 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 350 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 351 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 352 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 354 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 356 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 357 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 360 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 361 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 362 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 363 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 364 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 365 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 366 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 367 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 368 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 369 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 370 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 371 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 373 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 376 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 377 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 378 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 381 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 382 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 384 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 385 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 387 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 388 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 390 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 391 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 392 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 393 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 394 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 395 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 396 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 397 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 398 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 400 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 401 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 402 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 404 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 405 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 407 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 408 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 409 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 411 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 412 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 413 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 414 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 416 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 418 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 419 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 421 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 423 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 425 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 427 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 429 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 431 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 434 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 436 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 437 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 438 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 439 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 440 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 441 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 442 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 443 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 444 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 445 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 446 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 452 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 457 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 458 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 459 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 460 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 461 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 463 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 465 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 469 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 473 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 474 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 475 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 476 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 478 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 482 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 484 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 485 : if (DEBUG) { System.out.println("EnumHeader ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 486 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 487 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 488 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 489 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 491 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 492 : if (DEBUG) { System.out.println("EnumConstantHeader ::= Identifier Argumentsopt"); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 493 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ClassBody"); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 494 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 495 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 496 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 498 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 499 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 501 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 502 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 503 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(false); break; case 504 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::= for LPAREN Modifiers Type"); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(true); break; case 505 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 506 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 507 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 508 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 509 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 510 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 512 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 514 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 515 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 519 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 520 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 522 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 525 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 526 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 528 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 531 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 532 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 533 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 534 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 535 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 536 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 537 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 538 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 539 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 540 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 541 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 542 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 543 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 544 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 545 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 547 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 548 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 549 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 551 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 553 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 554 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 556 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 557 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 559 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 560 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 561 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 562 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 564 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 565 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 571 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 572 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 575 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 576 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 579 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 580 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 581 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 582 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 583 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 584 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 586 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 587 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 588 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 589 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 591 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 592 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 593 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 594 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 595 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 596 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 598 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 599 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 600 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 601 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 602 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 603 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 604 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 605 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 607 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(OperatorIds.INSTANCEOF); break; case 608 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break; case 610 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 611 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 612 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 613 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 615 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 616 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 618 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 619 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 621 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 622 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 624 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 625 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 627 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 628 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 630 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 631 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 635 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 636 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::= AT PushModifiers..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 637 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 639 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 642 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 643 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationHeader ::= Modifiersopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationHeader() ; break; case 644 : if (DEBUG) { System.out.println("AnnotationTypeMemberHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeAnnotationTypeMemberHeaderExtendedDims() ; break; case 645 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 648 : if (DEBUG) { System.out.println("DefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyDefaultValue() ; break; case 654 : if (DEBUG) { System.out.println("NormalAnnotation ::= AT Name LPAREN MemberValuePairsopt"); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 655 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 658 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 659 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL MemberValue"); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 661 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 664 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 665 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 666 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 667 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 669 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 670 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AT Name"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 671 : 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/824f8fe833a1ba72b3abeaae68c054814da34c63/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,
10659,
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,
10659,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
... |
final PsiFileImpl psiFile = (PsiFileImpl)getPsi(getBaseLanguage()); | final PsiFileImpl psiFile = (PsiFileImpl)viewProvider.getPsi(getBaseLanguage()); | public CompositeLanguageFileViewProvider clone() { final CompositeLanguageFileViewProvider viewProvider = cloneInner(); final PsiFileImpl psiFile = (PsiFileImpl)getPsi(getBaseLanguage()); // copying main tree final FileElement treeClone = (FileElement)psiFile.calcTreeElement().clone(); // base language tree clone psiFile.setTreeElementPointer(treeClone); // should not use setTreeElement here because cloned file still have VirtualFile (SCR17963) treeClone.setPsiElement(psiFile); final XmlText[] xmlTexts = JspImplUtil.gatherTexts((XmlFile)psiFile); for (Map.Entry<Language, PsiFile> entry : myRoots.entrySet()) { final PsiFile root = entry.getValue(); if (root instanceof PsiFileImpl && root != psiFile) { final PsiFileImpl copy = (PsiFileImpl)viewProvider.getPsi(entry.getKey()); JspImplUtil.copyRoot((PsiFileImpl)root, xmlTexts, copy); } } return viewProvider; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/263988ee2a3f36d9031dddeb8214de24bf6dd2b0/CompositeLanguageFileViewProvider.java/buggy/source/com/intellij/psi/CompositeLanguageFileViewProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14728,
3779,
812,
1767,
2249,
3236,
1435,
288,
565,
727,
14728,
3779,
812,
1767,
2249,
1476,
2249,
273,
3236,
2857,
5621,
565,
727,
453,
7722,
812,
2828,
23921,
812,
273,
261,
52,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14728,
3779,
812,
1767,
2249,
3236,
1435,
288,
565,
727,
14728,
3779,
812,
1767,
2249,
1476,
2249,
273,
3236,
2857,
5621,
565,
727,
453,
7722,
812,
2828,
23921,
812,
273,
261,
52,
7... |
public void addWarning(String msg) { DriverManager.println(msg); // Add the warning to the chain if(firstWarning!=null) firstWarning.setNextWarning(new SQLWarning(msg)); else firstWarning = new SQLWarning(msg); // Now check for some specific messages // This is obsolete in 6.5, but I've left it in here so if we need to use this // technique again, we'll know where to place it. // // This is generated by the SQL "show datestyle" //if(msg.startsWith("NOTICE:") && msg.indexOf("DateStyle")>0) { //// 13 is the length off "DateStyle is " //msg = msg.substring(msg.indexOf("DateStyle is ")+13); // //for(int i=0;i<dateStyles.length;i+=2) //if(msg.startsWith(dateStyles[i])) //currentDateStyle=i+1; // this is the index of the format //} } | 47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/839b9bc0117946afd62ee385a4c8a36c01b3053b/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
6210,
12,
780,
1234,
13,
565,
288,
202,
4668,
1318,
18,
8222,
12,
3576,
1769,
202,
759,
1436,
326,
3436,
358,
326,
2687,
202,
430,
12,
3645,
6210,
5,
33,
2011,
13,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
6210,
12,
780,
1234,
13,
565,
288,
202,
4668,
1318,
18,
8222,
12,
3576,
1769,
202,
759,
1436,
326,
3436,
358,
326,
2687,
202,
430,
12,
3645,
6210,
5,
33,
2011,
13,
202... | ||
Set peers=_kernel.listGBeans(on); for (Iterator i=peers.iterator(); i.hasNext();) { ObjectName tmp=(ObjectName)i.next(); try { _log.info("stopping: "+tmp); _kernel.stopGBean(tmp); _log.info("unloading: "+tmp); _kernel.unloadGBean(tmp); } catch (Exception e) { _log.warn("problem decommissioning POJO peer GBean: "+tmp, e); } | Set peers = _kernel.listGBeans(on); for (Iterator i = peers.iterator(); i.hasNext();) { ObjectName tmp = (ObjectName) i.next(); try { _log.debug("stopping: " + tmp); _kernel.stopGBean(tmp); _log.debug("unloading: " + tmp); _kernel.unloadGBean(tmp); } catch (Exception e) { _log.warn("problem decommissioning POJO peer GBean: " + tmp, e); } } _factory.destroySingletons(); | tidyUp() throws Exception { // can we put this as a spring aspect around each POJO ? would be better... String pattern=_jmxName.getDomain()+":J2EEApplication="+_jmxName.getKeyProperty("J2EEApplication")+",J2EEServer="+_jmxName.getKeyProperty("J2EEServer")+",SpringModule="+_jmxName.getKeyProperty("name")+",j2eeType=SpringBean,*"; ObjectName on=new ObjectName(pattern); // can't we do it like this - much less typo-prone... // Hashtable props =new Hashtable(_jmxName.getKeyPropertyList()); // props.put("SpringModule" , props.get("name")); // props.put("j2eeType" , "SpringBean"); // props.remove("name"); // props.put("*", ""); // ObjectName on=new ObjectName(_jmxName.getDomain(), props); Set peers=_kernel.listGBeans(on); for (Iterator i=peers.iterator(); i.hasNext();) { ObjectName tmp=(ObjectName)i.next(); try { _log.info("stopping: "+tmp); _kernel.stopGBean(tmp); _log.info("unloading: "+tmp); _kernel.unloadGBean(tmp); } catch (Exception e) { _log.warn("problem decommissioning POJO peer GBean: "+tmp, e); } } _factory.destroySingletons(); } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/a2608ecf073f21457f97954cda18ce59a88fe2c6/SpringGBean.java/buggy/modules/spring/src/java/org/apache/geronimo/spring/SpringGBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
28792,
1211,
1435,
565,
1216,
1185,
225,
288,
565,
368,
848,
732,
1378,
333,
487,
279,
25974,
9648,
6740,
1517,
13803,
22720,
692,
4102,
506,
7844,
2777,
565,
514,
1936,
33,
67,
78,
11023... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28792,
1211,
1435,
565,
1216,
1185,
225,
288,
565,
368,
848,
732,
1378,
333,
487,
279,
25974,
9648,
6740,
1517,
13803,
22720,
692,
4102,
506,
7844,
2777,
565,
514,
1936,
33,
67,
78,
11023... |
if (major > areaMajor) | if (major > areaMajor) { | private void layoutTrim(TrimArea trimArea, Rectangle areaBounds) { boolean horizontal = trimArea.orientation == SWT.TOP || trimArea.orientation == SWT.BOTTOM; // How much space do we have to 'tile' into? int areaMajor = horizontal ? areaBounds.width : areaBounds.height; // Get the tiled 'List of Lists' for the trim List tileAreas = trimArea.trimLines; // Tile each 'line' into the trim int tilePosMinor = horizontal ? areaBounds.y : areaBounds.x; for (Iterator areaIter = tileAreas.iterator(); areaIter.hasNext();) { TrimLine curLine = (TrimLine) areaIter.next(); // Compute how much space to give to 'resizable' controls. Note that // we can end up computing -negative- 'extraSpace' values if the // control's // preferred 'major' size is actually > the 'major' size for the // trim area int resizePadding = 0; if (curLine.resizableCount > 0 && curLine.extraSpace > 0) resizePadding = curLine.extraSpace / curLine.resizableCount; // Tile each line int tilePosMajor = horizontal ? areaBounds.x : areaBounds.y; for (Iterator iter = curLine.controls.iterator(); iter.hasNext();) { Control control = (Control) iter.next(); TrimLayoutData td = (TrimLayoutData) control.getLayoutData(); Point prefSize = control.computeSize(SWT.DEFAULT, SWT.DEFAULT); int major = horizontal ? prefSize.x : prefSize.y; int minor = horizontal ? prefSize.y : prefSize.x; // Ensure that controls that are too wide for the area get // 'clipped' if (major > areaMajor) major = areaMajor; // If desired, extend the 'minor' size of the control to fill // the area if ((td.flags & TrimLayoutData.GRAB_EXCESS_MINOR) != 0) minor = curLine.minorMax; // If desired, extend the 'major' size of the control to fill // the area if ((td.flags & TrimLayoutData.GROWABLE) != 0) major += resizePadding; // If we have to show a drag handle then do it here if (td.listener != null) { TrimCommonUIHandle handle = getDragHandle(trimArea.orientation);// handle.setControl(control); if (horizontal) handle.setBounds(tilePosMajor, tilePosMinor, getHandleSize(true), curLine.minorMax); else handle.setBounds(tilePosMinor, tilePosMajor, curLine.minorMax, getHandleSize(false)); tilePosMajor += horizontal ? getHandleSize(true) : getHandleSize(false); } // Now, lay out the actual control switch (trimArea.orientation) { case SWT.TOP: control.setBounds(tilePosMajor, tilePosMinor, major, minor); break; case SWT.LEFT: control.setBounds(tilePosMinor, tilePosMajor, minor, major); break; case SWT.RIGHT: // Here we want to tile the control to the RIGHT edge int rightEdge = tilePosMinor + curLine.minorMax; control.setBounds(rightEdge - minor, tilePosMajor, minor, major); break; case SWT.BOTTOM: // Here we want to tile the control to the RIGHT edge int bottomEdge = tilePosMinor + curLine.minorMax; control.setBounds(tilePosMajor, bottomEdge - minor, major, minor); break; } // Ensure that the control is above the trim control tilePosMajor += major + spacing; } tilePosMinor += curLine.minorMax; tilePosMajor = horizontal ? areaBounds.x : areaBounds.y; } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WorkbenchLayout.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3511,
14795,
12,
14795,
5484,
2209,
5484,
16,
13264,
5091,
5694,
13,
288,
202,
202,
6494,
10300,
273,
2209,
5484,
18,
19235,
422,
348,
8588,
18,
10462,
9506,
202,
20081,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3511,
14795,
12,
14795,
5484,
2209,
5484,
16,
13264,
5091,
5694,
13,
288,
202,
202,
6494,
10300,
273,
2209,
5484,
18,
19235,
422,
348,
8588,
18,
10462,
9506,
202,
20081,
2... |
Map propertyMap = (Map)map; for (Iterator i = propertyMap.keySet().iterator(); i.hasNext();) { String propertyName = (String) i.next(); Object propertyValue = propertyMap.get(propertyName); if(propertyValue == null) continue; if(LOG.isDebugEnabled()) LOG.debug("Attempting to set property '"+propertyName+"' to value '"+propertyValue+"' on instance '"+instance+"'"); try { Ognl.setValue(propertyName,instance,propertyValue); } catch (NoSuchPropertyException nspe) { if(LOG.isDebugEnabled()) LOG.debug("Unable to set property '"+propertyName+"' to value '"+propertyValue+"' for object '"+instance+"' property doesn't exist." + nspe.getMessage()); }catch (OgnlException e) { if(LOG.isDebugEnabled()) LOG.debug("OGNL error attempt to set '"+propertyName+"' to value '"+propertyValue+"' for object '"+instance+"':" + e.getMessage(),e); } } | DataBinder dataBinder = new DataBinder(instance); PropertyValues pv = new MutablePropertyValues((Map)map); dataBinder.bind(pv); | public Object invoke(Class clazz, Object[] args) { Object map = args[0]; Object instance; try { instance = clazz.newInstance(); } catch (InstantiationException e1) { throw new GrailsDomainException("Error instantiated class [" + clazz + "]: " + e1.getMessage(),e1); } catch (IllegalAccessException e1) { throw new GrailsDomainException("Illegal access instantiated class [" + clazz + "]: " + e1.getMessage(),e1); } if(map instanceof GrailsParameterMap) { GrailsParameterMap parameterMap = (GrailsParameterMap)map; HttpServletRequest request = parameterMap.getRequest(); ServletRequestDataBinder dataBinder = GrailsDataBinder.createBinder(map, instance.getClass().getName(),request); dataBinder.bind(request); return instance; } else if (map instanceof HttpServletRequest) { HttpServletRequest request = (HttpServletRequest)map; ServletRequestDataBinder dataBinder = GrailsDataBinder.createBinder(map, instance.getClass().getName(),request); dataBinder.bind(request); return instance; } else if(map instanceof Map) { Map propertyMap = (Map)map; for (Iterator i = propertyMap.keySet().iterator(); i.hasNext();) { String propertyName = (String) i.next(); Object propertyValue = propertyMap.get(propertyName); // if null skip if(propertyValue == null) continue; if(LOG.isDebugEnabled()) LOG.debug("Attempting to set property '"+propertyName+"' to value '"+propertyValue+"' on instance '"+instance+"'"); try { Ognl.setValue(propertyName,instance,propertyValue); } catch (NoSuchPropertyException nspe) { if(LOG.isDebugEnabled()) LOG.debug("Unable to set property '"+propertyName+"' to value '"+propertyValue+"' for object '"+instance+"' property doesn't exist." + nspe.getMessage()); }catch (OgnlException e) { if(LOG.isDebugEnabled()) LOG.debug("OGNL error attempt to set '"+propertyName+"' to value '"+propertyValue+"' for object '"+instance+"':" + e.getMessage(),e); } } } return instance; } | 50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/b6ef9ddec7862d8efa8e6b63db67dfa714830c8a/DataBindingDynamicConstructor.java/buggy/src/persistence/org/codehaus/groovy/grails/metaclass/DataBindingDynamicConstructor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
4356,
12,
797,
4003,
16,
1033,
8526,
833,
13,
288,
202,
202,
921,
852,
273,
833,
63,
20,
15533,
202,
202,
921,
791,
31,
202,
202,
698,
288,
1082,
202,
1336,
273,
4003,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
4356,
12,
797,
4003,
16,
1033,
8526,
833,
13,
288,
202,
202,
921,
852,
273,
833,
63,
20,
15533,
202,
202,
921,
791,
31,
202,
202,
698,
288,
1082,
202,
1336,
273,
4003,... |
Vector res = new Vector(); if (port instanceof MClassifierRole) { MClassifierRole cr = (MClassifierRole) port; Collection ends = cr.getAssociationEnds(); if (ends == null) return res; Iterator iter = ends.iterator(); while (iter.hasNext()) { MAssociationEndRole aer = (MAssociationEndRole) iter.next(); res.addElement(aer.getAssociation()); } | Vector res = new Vector(); if (port instanceof MClassifierRole) { MClassifierRole cr = (MClassifierRole) port; Collection ends = cr.getAssociationEnds(); if (ends == null) return res; Iterator iter = ends.iterator(); while (iter.hasNext()) { MAssociationEndRole aer = (MAssociationEndRole) iter.next(); res.addElement(aer.getAssociation()); } } return res; | public Vector getInEdges(Object port) { Vector res = new Vector(); //wasteful! if (port instanceof MClassifierRole) { MClassifierRole cr = (MClassifierRole) port; Collection ends = cr.getAssociationEnds(); if (ends == null) return res; // empty Vector Iterator iter = ends.iterator(); while (iter.hasNext()) { MAssociationEndRole aer = (MAssociationEndRole) iter.next(); res.addElement(aer.getAssociation()); } } return res; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/CollabDiagramGraphModel.java/clean/src_new/org/argouml/uml/diagram/collaboration/CollabDiagramGraphModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5589,
7854,
10697,
12,
921,
1756,
13,
288,
565,
5589,
400,
273,
394,
5589,
5621,
368,
91,
14725,
2706,
5,
565,
309,
261,
655,
1276,
490,
13860,
2996,
13,
288,
1377,
490,
13860,
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,
282,
1071,
5589,
7854,
10697,
12,
921,
1756,
13,
288,
565,
5589,
400,
273,
394,
5589,
5621,
368,
91,
14725,
2706,
5,
565,
309,
261,
655,
1276,
490,
13860,
2996,
13,
288,
1377,
490,
13860,
29... |
System.out.println("CHILD COUNT: " + field.getChildCount()); | public void encodeBegin(FacesContext context, UIComponent component) throws IOException { ResponseWriter writer = context.getResponseWriter(); FBFormComponent field = (FBFormComponent) component; writer.startElement("DIV", field); writer.writeAttribute("class", field.getStyleClass(), "styleClass"); System.out.println("NEW COMPONENT ID: " + field.getClientId(context)); writer.writeAttribute("id", field.getId(), "id"); try { field.initializeComponent(context); } catch(FBPostponedException pe) { pe.printStackTrace(); } writer.writeAttribute("onclick", field.getOnclick(), "onclick"); System.out.println("CHILD COUNT: " + field.getChildCount()); DOMTransformer.renderNode(field.getElement(), field, writer); } | 56193 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56193/d1561dbc686191a2e5ec0a03dabf3e7588133788/FormComponentRenderer.java/clean/src/java/com/idega/formbuilder/presentation/renderkit/FormComponentRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2017,
8149,
12,
17268,
1042,
819,
16,
18907,
1794,
13,
1216,
1860,
288,
202,
202,
1064,
2289,
2633,
273,
819,
18,
588,
1064,
2289,
5621,
202,
202,
22201,
1204,
1841,
652,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2017,
8149,
12,
17268,
1042,
819,
16,
18907,
1794,
13,
1216,
1860,
288,
202,
202,
1064,
2289,
2633,
273,
819,
18,
588,
1064,
2289,
5621,
202,
202,
22201,
1204,
1841,
652,
... | |
/** * Determine if the listener is currently distracted. * * @return <code>true</code> if the listener is ignoring events. */ public boolean isIgnoringEvents() { return this.distracted.isIgnoringEvents(); } /** * Specify if the listener should be distracted. * * @param distract <code>true</code> if the listener should ignore events * <code>false</code> if the listener should pay attention again. * Events that occured while the listener was distracted NOT * going to be processed. */ public void setIgnoringEvents( boolean distracted ) { this.distracted.setIgnoringEvents( distracted ); } /** * Retrieve the "Done" button of this object. * * @return the <code>java.awt.Button</code> that activates this * object's "Done" action. */ public Button getDoneButton() { return butDone; } /** * Stop just ignoring events and actually stop listening to them. */ public void removeAllListeners() { client.removeGameListener(this); client.game.board.removeBoardListener(this); } /** * Get the secondary display section of this phase. * * @return the <code>Component</code> which is displayed in the * secondary section during this phase. */ public Component getSecondaryDisplay() { return labStatus; } | loadMech(); } catch (Exception e) { System.out.println("Thread.join() exception in ChatLounge.loadMech()"); } } else if (ev.getSource() == butCustom || ev.getSource() == lisEntities) { customizeMech(); } else if (ev.getSource() == butDelete) { // delete mech if (lisEntities.getSelectedIndex() != -1) { client.sendDeleteEntity(entityCorrespondance[lisEntities.getSelectedIndex()]); } } else if (ev.getSource() == butDeleteAll) { // Build a Vector of this player's entities. Vector currentUnits = client.game.getPlayerEntities ( client.getLocalPlayer() ); // Walk through the vector, deleting the entities. Enumeration entities = currentUnits.elements(); while ( entities.hasMoreElements() ) { final Entity entity = (Entity) entities.nextElement(); client.sendDeleteEntity( entity.getId() ); } } else if (ev.getSource() == butChangeBoard || ev.getSource() == lisBoardsSelected) { // board settings client.getBoardSelectionDialog().update(client.getMapSettings(), true); client.getBoardSelectionDialog().show(); } else if (ev.getSource() == butOptions) { // Make sure the game options dialog is editable. if ( !client.getGameOptionsDialog().isEditable() ) { client.getGameOptionsDialog().setEditable( true ); } // Display the game options dialog. client.getGameOptionsDialog().update(client.game.getOptions()); client.getGameOptionsDialog().show(); } else if (ev.getSource() == butChangeStart || ev.getSource() == lisStarts) { client.getStartingPositionDialog().update(); client.getStartingPositionDialog().show(); } else if (ev.getSource() == butMechReadout) { mechReadout(); } else if ( ev.getSource() == butLoadList ) { // Allow the player to replace their current // list of entities with a list from a file. client.loadListFile(); } else if ( ev.getSource() == butSaveList ) { // Allow the player to save their current // list of entities to a file. client.saveListFile ( client.game.getPlayerEntities(client.getLocalPlayer()) ); } else if (ev.getSource() == butMinefield) { updateMinefield(); } else if (ev.getSource() == butCamo) { camoDialog.show(); } } } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/6fa7a915a9c48dac94fa163b03ae6a0e99765cad/ChatLounge.java/clean/megamek/src/megamek/client/ui/AWT/ChatLounge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1783,
380,
10229,
309,
326,
2991,
353,
4551,
1015,
1575,
329,
18,
380,
380,
632,
2463,
225,
411,
710,
34,
3767,
1757,
710,
34,
309,
326,
2991,
353,
14398,
2641,
18,
1195,
1071,
1250,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1783,
380,
10229,
309,
326,
2991,
353,
4551,
1015,
1575,
329,
18,
380,
380,
632,
2463,
225,
411,
710,
34,
3767,
1757,
710,
34,
309,
326,
2991,
353,
14398,
2641,
18,
1195,
1071,
1250,
35... | |
double yTranslate = height - (height - leftAxisLabelBounds.getWidth())/2; | double yTranslate = height - bottom + top - (height - bottom + top - leftAxisLabelBounds.getWidth())/2; | public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g.create(); if (copy != null) { copy.translate(x,y); try { copy.setFont(DisplayUtils.BORDER_FONT); // in case there are borders inside of this one Insets insets = ((JComponent)c).getInsets(); FontMetrics fm = copy.getFontMetrics(); String label; // top int numTicks; int pixelLoc; if (topScaleMap != null) { numTicks = topScaleMap.getNumTicks(); for (int i=0; i<numTicks; i++) { pixelLoc = insets.left + topScaleMap.getPixelLocation(i); if(topScaleMap.isMajorTick(i)) copy.draw(new Line2D.Float(pixelLoc, top, pixelLoc, top - majorTickLength)); else copy.draw(new Line2D.Float(pixelLoc, top, pixelLoc, top - minorTickLength)); label = topScaleMap.getLabel(i); if (label != null && label.length() != 0 ) { int labelWidth = (int)fm.getStringBounds(label, copy).getWidth(); if(pixelLoc + labelWidth < width){ copy.drawString(label, pixelLoc - labelWidth/2, top - majorTickLength- fm.getLeading()); } } } copy.drawString(topScaleMap.getAxisLabel(), width/2, fontHeight); } // left if (leftScaleMap != null) { numTicks = leftScaleMap.getNumTicks(); if ( numTicks == 0 || numTicks ==1) { copy.drawString("No Data", fontHeight + 2, top + (height - top - bottom)/2- fm.getLeading()); } // end of if () for (int i=0; i<numTicks; i++) { pixelLoc = height - leftScaleMap.getPixelLocation(i) - bottom; if (leftScaleMap.isMajorTick(i)) { copy.draw(new Line2D.Float(insets.left -majorTickLength - insets.right, pixelLoc, insets.left - insets.right, pixelLoc)); } else { copy.draw(new Line2D.Float(insets.left - insets.right - minorTickLength, pixelLoc, insets.left - insets.right, pixelLoc)); } label = leftScaleMap.getLabel(i); if (label != null && label.length() != 0) { if(i == 0) copy.drawString(label, insets.left - insets.right - 45, pixelLoc + 5); else if(i == numTicks - 1) copy.drawString(label, insets.left - insets.right - 45, pixelLoc + 5); else copy.drawString(label, insets.left - insets.right - 45, pixelLoc); } } if(leftAxisLabelBounds == null){ leftAxisLabelBounds = copy.getFontMetrics().getStringBounds(leftScaleMap.getAxisLabel(), copy); } double yTranslate = height - (height - leftAxisLabelBounds.getWidth())/2; double xTranslate = leftAxisLabelBounds.getHeight(); copy.translate(xTranslate, yTranslate); copy.rotate(-Math.PI/2); copy.drawString(leftScaleMap.getAxisLabel(), 0, 0); copy.rotate(Math.PI/2); copy.translate(-xTranslate, -yTranslate); } // bottom if (bottomScaleMap != null) { numTicks = bottomScaleMap.getNumTicks(); for (int i=0; i<numTicks; i++) { pixelLoc = insets.left + bottomScaleMap.getPixelLocation(i); if (bottomScaleMap.isMajorTick(i)) { copy.draw(new Line2D.Float(pixelLoc, height-bottom, pixelLoc, height-bottom+majorTickLength)); } else { copy.draw(new Line2D.Float(pixelLoc, height-bottom, pixelLoc, height-bottom+minorTickLength)); } label = bottomScaleMap.getLabel(i); int labelWidth = (int)fm.getStringBounds(label, copy).getWidth(); if (label != null && label.length() != 0 && pixelLoc + labelWidth < width) { copy.drawString(label, pixelLoc - labelWidth/2, height-fm.getLeading()); } } } // right if (rightScaleMap != null) { numTicks = rightScaleMap.getNumTicks(); for (int i=0; i<numTicks; i++) { pixelLoc = height - rightScaleMap.getPixelLocation(i) - bottom; copy.draw(new Line2D.Float(pixelLoc, c.getSize().height-bottom, pixelLoc, c.getSize().height-bottom/2)); label = rightScaleMap.getLabel(i); if (label != null && label.length() != 0) { copy.drawString(label, pixelLoc, c.getSize().height-fm.getLeading()); } } } } finally { copy.dispose(); } } } | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/72e30babb16413fe8c13365f17aef60cd2a7534a/ScaleBorder.java/buggy/src/edu/sc/seis/fissuresUtil/display/ScaleBorder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
8107,
12,
1841,
276,
16,
18701,
16830,
314,
16,
18701,
509,
619,
16,
18701,
509,
677,
16,
18701,
509,
1835,
16,
18701,
509,
2072,
13,
288,
3639,
16830,
22,
40,
1610,
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,
918,
12574,
8107,
12,
1841,
276,
16,
18701,
16830,
314,
16,
18701,
509,
619,
16,
18701,
509,
677,
16,
18701,
509,
1835,
16,
18701,
509,
2072,
13,
288,
3639,
16830,
22,
40,
1610,
2... |
private void changed(MatcherEditor editor, Matcher matcher) { ((InternalReadWriteLock)getReadWriteLock()).internalLock().lock(); try { // update my matchers if(currentEditor != editor) throw new IllegalStateException(); currentMatcher = matcher; // all of these changes to this list happen "atomically" updates.beginEvent(); // for all source items, see what the change is for(BarcodeIterator i = flagList.iterator();i.hasNext(); ) { i.next(); // determine if this value was already filtered out or not int filteredIndex = i.getBlackIndex(); boolean wasIncluded = filteredIndex != -1; // whether we should add this item boolean include = currentMatcher.matches(source.get(i.getIndex())); // this element is being removed as a result of the change if(wasIncluded && !include) { i.setWhite(); updates.addDelete(filteredIndex); // this element is being added as a result of the change } else if(!wasIncluded && include) { updates.addInsert(i.setBlack()); } } // commit the changes and notify listeners updates.commitEvent(); } finally { ((InternalReadWriteLock)getReadWriteLock()).internalLock().unlock(); } } | 10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/7e875b3e960ad3654609175ae66f1e429fd81b85/FilterList.java/buggy/source/ca/odell/glazedlists/FilterList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
3550,
12,
6286,
6946,
4858,
16,
9757,
4546,
13,
288,
5411,
14015,
3061,
1994,
3067,
2531,
13,
588,
1994,
3067,
2531,
1435,
2934,
7236,
2531,
7675,
739,
5621,
5411,
775,
288,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
3550,
12,
6286,
6946,
4858,
16,
9757,
4546,
13,
288,
5411,
14015,
3061,
1994,
3067,
2531,
13,
588,
1994,
3067,
2531,
1435,
2934,
7236,
2531,
7675,
739,
5621,
5411,
775,
288,
77... | ||
for (int i = 0; i < b.length; i++) { b[i] = data[pointer++]; } | for (int i = 0; i < b.length; i++) { b[i] = data[pointer++]; } | public void readFully(byte[] b) { for (int i = 0; i < b.length; i++) { b[i] = data[pointer++]; } } | 57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/f1a2e8bd347e294e5391728379b76d4500a7093d/TTFMemoryInput.java/clean/freehep-graphicsio/src/main/java/org/freehep/graphicsio/font/truetype/TTFMemoryInput.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
31803,
12,
7229,
8526,
324,
13,
288,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
324,
18,
2469,
31,
277,
27245,
288,
202,
565,
324,
63,
77,
65,
273,
501,
63,
10437,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
31803,
12,
7229,
8526,
324,
13,
288,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
324,
18,
2469,
31,
277,
27245,
288,
202,
565,
324,
63,
77,
65,
273,
501,
63,
10437,
... |
mature = new CopyLocal(GenCopy.toSpace()); } | mature = new CopyLocal(GenCopy.toSpace()); } | public GenCopyMutator() { mature = new CopyLocal(GenCopy.toSpace()); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/GenCopyMutator.java/buggy/MMTk/src/org/mmtk/plan/generational/copying/GenCopyMutator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10938,
2951,
28410,
1435,
288,
202,
202,
81,
1231,
273,
394,
5631,
2042,
12,
7642,
2951,
18,
869,
3819,
10663,
202,
97,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
10938,
2951,
28410,
1435,
288,
202,
202,
81,
1231,
273,
394,
5631,
2042,
12,
7642,
2951,
18,
869,
3819,
10663,
202,
97,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Iterator policyRefElements = config_element.getChildrenWithName(new QName(POLICY_NS_URI, TAG_POLICY_REF)); | Iterator policyRefElements = config_element.getChildrenWithName(new QName(POLICY_NS_URI, TAG_POLICY_REF)); | public void populateConfig() throws DeploymentException { try { OMElement config_element = buildOM(); // processing Parameters // Processing service level parameters Iterator itr = config_element.getChildrenWithName(new QName(TAG_PARAMETER)); processParameters(itr, axisConfiguration, axisConfiguration); // process MessageReciver OMElement messageReceiver = config_element.getFirstChildWithName(new QName(TAG_MESSAGE_RECEIVERS)); if (messageReceiver != null) { HashMap mrs = processMessageReceivers(messageReceiver); Iterator keys = mrs.keySet().iterator(); while (keys.hasNext()) { String key = (String) keys.next(); axisConfig.addMessageReceiver(key, (MessageReceiver) mrs.get(key)); } } // Process Module refs Iterator moduleitr = config_element.getChildrenWithName(new QName(DeploymentConstants.TAG_MODULE)); processModuleRefs(moduleitr); // Proccessing Transport Senders Iterator trs_senders = config_element.getChildrenWithName(new QName(TAG_TRANSPORT_SENDER)); processTransportSenders(trs_senders); // Proccessing Transport Receivers Iterator trs_Reivers = config_element.getChildrenWithName(new QName(TAG_TRANSPORT_RECEIVER)); processTransportReceivers(trs_Reivers); // Process Observers Iterator obs_ittr = config_element.getChildrenWithName(new QName(TAG_LISTENER)); processObservers(obs_ittr); // processing Phase orders Iterator phaseorders = config_element.getChildrenWithName(new QName(TAG_PHASE_ORDER)); processPhaseOrders(phaseorders); Iterator moduleConfigs = config_element.getChildrenWithName(new QName(TAG_MODULE_CONFIG)); processModuleConfig(moduleConfigs, axisConfiguration, axisConfiguration); // setting host configuration OMElement hostElement = config_element.getFirstChildWithName(new QName(TAG_HOST_CONFIG)); if (hostElement != null) { processHostCongiguration(hostElement, axisConfiguration); } // setting the PolicyInclude PolicyInclude policyInclude = new PolicyInclude(); axisConfiguration.setPolicyInclude(policyInclude); // processing <wsp:Policy> .. </..> elements Iterator policyElements = config_element.getChildrenWithName(new QName(POLICY_NS_URI, TAG_POLICY)); if (policyElements != null) { processPolicyElements(policyElements, axisConfiguration.getPolicyInclude()); } // processing <wsp:PolicyReference> .. </..> elements Iterator policyRefElements = config_element.getChildrenWithName(new QName(POLICY_NS_URI, TAG_POLICY_REF)); if (policyRefElements != null) { processPolicyRefElements(policyElements, axisConfiguration.getPolicyInclude()); } } catch (XMLStreamException e) { throw new DeploymentException(e); } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/8baa74e67adc60139306df51be4a393501d5b175/AxisConfigBuilder.java/clean/modules/core/src/org/apache/axis2/deployment/AxisConfigBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6490,
809,
1435,
1216,
8587,
503,
288,
3639,
775,
288,
5411,
531,
12310,
642,
67,
2956,
273,
1361,
1872,
5621,
5411,
368,
4929,
7012,
5411,
368,
19652,
1156,
1801,
1472,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6490,
809,
1435,
1216,
8587,
503,
288,
3639,
775,
288,
5411,
531,
12310,
642,
67,
2956,
273,
1361,
1872,
5621,
5411,
368,
4929,
7012,
5411,
368,
19652,
1156,
1801,
1472,
5411,
... |
Molecule molecule = (new SmilesParser()).parseSmiles("O=c1ccc2ccc4c5ccccc5Oc3c(OC)cc1c2c34"); | Molecule molecule = (new SmilesParser()).parseSmiles("O=C1C=Cc2ccc4c5ccccc5Oc3c(OC)cc1c2c34"); | public void test4Sphere() { String[] result = { "O-1;=C(CC/CC,C/CC,C,&)", "C-3;=OCC(,CC,C/CC,C,&/CC,&C,&O)", "C-2;CC(=OC,C/,CC,&C/C&,C,C)", "C-2;CC(C,CC/=OC,C&,C/,&C,CC,&)", "C-3;CCC(CC,C,C/CC,CC,&,&/=O&,C,C&,&O)", "C-2;CC(CC,C/CC,C,&C/C&,CC,&,CC)", "C-2;CC(CC,C/CC,CC,&C/C&,CO,C&,C,C)", "C-3;CCC(CC,CC,C/CC,CO,C&,C,&/CC,C&,&O,&,C,&)", "C-3;CCC(CC,OC,C/CC,C,&,C,&/CC,C&,&,&)", "C-2;CC(CC,C/CC,CO,&/CC,C,&,&)", "C-2;CC(C,C/CC,&/CC,&O)", "C-2;CC(C,C/CO,&/C&,C)", "C-2;CC(CO,C/CC,C,&/CC,&,&C)", "C-3;COC(CC,C,C/CC,C,&C,&/C&,C,&,CO)", "O-2;CC(CC,CC/CC,CO,&C,C/CC,&C,&,C,C,&)", "C-3;CCO(CC,CO,C/CC,CC,&,C,&C/&C,CC,&C,&,,C)", "C-3;CCO(C,CO,C/CC,&C,C,/=OC,&C,CC,&C)", "O-2;CC(CC,/CO,C/CC,C,&C)", "C-1;O(C/CC/CO,C)", "C-2;CC(CC,CO/=OC,CC,&O,C/,C,&C,&C,C,)", "C-3;CCC(=OC,CC,C/,C,CC,&C,&O/&,CC,&O,&,C)", "C-3;CCC(CC,CC,CC/=OC,C,CC,&O,&,&/,&,&O,CC,&,&)", "C-3;CCC(CC,CC,CO/CC,CC,CC,&,&O,&/=OC,&,&,&,C&,C,C)" }; try { Molecule molecule = (new SmilesParser()).parseSmiles("O=c1ccc2ccc4c5ccccc5Oc3c(OC)cc1c2c34"); boolean isAromatic = HueckelAromaticityDetector.detectAromaticity(molecule); HOSECodeGenerator hcg = new HOSECodeGenerator(); String s = null; for (int f = 0; f < molecule.getAtomCount(); f++) { s = hcg.getHOSECode(molecule, molecule.getAtomAt(f), 4); assertTrue(result[f].equals(s)); } } catch (Exception exc) { exc.printStackTrace(); } } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/6d8aa3922ced07dd7b9196063ada12eff10f95ef/HOSECodeTest.java/buggy/src/org/openscience/cdk/test/tools/HOSECodeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
24,
22747,
1435,
202,
95,
202,
202,
780,
8526,
563,
273,
288,
1875,
377,
315,
51,
17,
21,
31,
33,
39,
12,
6743,
19,
6743,
16,
39,
19,
6743,
16,
39,
16,
10,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
24,
22747,
1435,
202,
95,
202,
202,
780,
8526,
563,
273,
288,
1875,
377,
315,
51,
17,
21,
31,
33,
39,
12,
6743,
19,
6743,
16,
39,
19,
6743,
16,
39,
16,
10,
22... |
if (!Stream.scheduledRun && !(this instanceof ChannelConnectFilter)) { PhaseInfo phase = getCurrentPhase(); advancePhase(); | if (!Stream.scheduledRun) { | public void prepareToWork() { if (!Stream.scheduledRun && !(this instanceof ChannelConnectFilter)) { // this is where phase is advanced for unscheduled run PhaseInfo phase = getCurrentPhase(); advancePhase(); // if the phase is static-rate, we require enough inputs // to execute the whole phase. This ensures that all // upstream messages are sent (and hence received by this // filter) prior to execution. if (phase.e!=Rate.DYNAMIC_RATE && phase.e>0) { input.ensureData(phase.e); } } super.prepareToWork(); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/43b1435869fba9b5812c57ec6c212dab609758e2/Filter.java/buggy/streams/src/streamit/library/Filter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2911,
774,
2421,
1435,
288,
202,
430,
16051,
1228,
18,
23307,
1997,
597,
401,
12,
2211,
1276,
5307,
5215,
1586,
3719,
288,
202,
565,
368,
333,
353,
1625,
6855,
353,
16111,
364,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2911,
774,
2421,
1435,
288,
202,
430,
16051,
1228,
18,
23307,
1997,
597,
401,
12,
2211,
1276,
5307,
5215,
1586,
3719,
288,
202,
565,
368,
333,
353,
1625,
6855,
353,
16111,
364,... |
return (lockArray.length == 1); | return (lockArray.length > 0); | public boolean existsInStore(IEntityLock lock) throws LockingException{ Class entityType = lock.getEntityType(); String key = lock.getEntityKey(); Integer lockType = new Integer(lock.getLockType()); Date expiration = lock.getExpirationTime(); String owner = lock.getLockOwner(); IEntityLock[] lockArray = getLockStore().find(entityType, key, lockType, expiration, owner); return (lockArray.length == 1);} | 24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/dc7f45de201252ec94182c3da97c5da5e6645e22/ReferenceEntityLockService.java/clean/source/org/jasig/portal/concurrency/locking/ReferenceEntityLockService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
1704,
382,
2257,
12,
45,
1943,
2531,
2176,
13,
1216,
3488,
21546,
95,
565,
1659,
12665,
273,
2176,
18,
588,
22562,
5621,
565,
514,
498,
273,
2176,
18,
588,
1943,
653,
5621,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
1704,
382,
2257,
12,
45,
1943,
2531,
2176,
13,
1216,
3488,
21546,
95,
565,
1659,
12665,
273,
2176,
18,
588,
22562,
5621,
565,
514,
498,
273,
2176,
18,
588,
1943,
653,
5621,
565,
... |
logger.debug("Remote peer localy registered: " + ProActive.getActiveObjectNodeUrl(service)); | if (logger.isDebugEnabled()) { logger.debug("Remote peer localy registered: " + ProActive.getActiveObjectNodeUrl(service)); } | public void register(P2PService service) { this.acquaintanceManager.add(service); logger.debug("Remote peer localy registered: " + ProActive.getActiveObjectNodeUrl(service)); // Wake up all node accessor, because new peers are know this.wakeUpEveryBody(); } | 23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/2af7f2743a6477e582d63ba554bbf3751bc584ee/P2PService.java/buggy/src/org/objectweb/proactive/p2p/service/P2PService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
12,
52,
22,
52,
1179,
1156,
13,
288,
3639,
333,
18,
1077,
372,
1598,
1359,
1318,
18,
1289,
12,
3278,
1769,
3639,
1194,
18,
4148,
2932,
5169,
4261,
1191,
93,
4104,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
12,
52,
22,
52,
1179,
1156,
13,
288,
3639,
333,
18,
1077,
372,
1598,
1359,
1318,
18,
1289,
12,
3278,
1769,
3639,
1194,
18,
4148,
2932,
5169,
4261,
1191,
93,
4104,
30,
... |
conn = this.getConnection(); | conn = WikiDatabase.getConnection(); | public void setupSpecialPages(Locale locale, WikiUser user, VirtualWiki virtualWiki) throws Exception { Connection conn = null; try { conn = this.getConnection(); // create the default topics setupSpecialPage(locale, virtualWiki.getName(), WikiBase.SPECIAL_PAGE_STARTING_POINTS, user, false, conn); setupSpecialPage(locale, virtualWiki.getName(), WikiBase.SPECIAL_PAGE_LEFT_MENU, user, true, conn); setupSpecialPage(locale, virtualWiki.getName(), WikiBase.SPECIAL_PAGE_BOTTOM_AREA, user, true, conn); setupSpecialPage(locale, virtualWiki.getName(), WikiBase.SPECIAL_PAGE_STYLESHEET, user, true, conn); } catch (Exception e) { DatabaseConnection.handleErrors(conn); throw e; } finally { this.releaseParams(conn); } } | 50517 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50517/513a238e3f29ddefa148a3c1e845ad0af9dd6c29/DatabaseHandler.java/buggy/src/java/org/jamwiki/db/DatabaseHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3875,
12193,
5716,
12,
3916,
2573,
16,
28268,
1299,
729,
16,
7269,
25438,
5024,
25438,
13,
1216,
1185,
288,
202,
202,
1952,
1487,
273,
446,
31,
202,
202,
698,
288,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3875,
12193,
5716,
12,
3916,
2573,
16,
28268,
1299,
729,
16,
7269,
25438,
5024,
25438,
13,
1216,
1185,
288,
202,
202,
1952,
1487,
273,
446,
31,
202,
202,
698,
288,
1082,
... |
rowObject.setCurrentRowIndex( rowIndex ); | public boolean process( IResultObject resultObject ) throws DataException { logger.entering( ComputedColumnHelper.class.getName( ), "process" ); assert resultObject != null; IResultClass resultClass = resultObject.getResultClass( ); if ( isPrepared == false ) prepare( resultClass ); // check if no computed columns are found as custom fields in the result // set if ( columnExprArray.length == 0 ) { logger.exiting( ComputedColumnHelper.class.getName( ), "process" ); return true; // done } // bind new object to row script object rowObject.setRowObject( resultObject, true ); // now assign the computed value to each of its projected computed // columns Context cx = Context.enter( ); try { // iterate through each projected computed column, // and assign it the computed value for ( int i = 0; i < columnExprArray.length; i++ ) { if ( columnExprArray[i] != null && columnExprArray[i].trim( ).length( ) >0 ) { Object value = ScriptEvalUtil.evaluateJSAsExpr( cx, scope, columnExprArray[i], "ComputedColumn", 0 ); try { value = DataTypeUtil.convert( value, resultClass.getFieldValueClass( columnIndexArray[i] ) ); } catch ( BirtException e ) { // Data Type of computed column is not correct throw new DataException( ResourceConstants.WRONG_DATA_TYPE_COMPUTED_COLUMN, new Object[]{ resultClass.getFieldName( columnIndexArray[i] ), resultClass.getFieldValueClass( columnIndexArray[i] ) .getName( ), value.toString( ), } ); } resultObject.setCustomFieldValue( columnIndexArray[i], value ); } else { throw new DataException( ResourceConstants.EXPR_INVALID_COMPUTED_COLUMN, resultObject.getResultClass( ) .getFieldName( columnIndexArray[i] ) ); } } } finally { Context.exit( ); } logger.exiting( ComputedColumnHelper.class.getName( ), "process" ); return true; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/fb30d1ba06f2ec3809a1cac9e968e69cc9037106/ComputedColumnHelper.java/buggy/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ComputedColumnHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
492,
921,
18,
542,
3935,
21769,
12,
15361,
11272,
1250,
492,
921,
18,
542,
3935,
21769,
12,
15361,
11272,
1207,
12,
492,
921,
18,
542,
3935,
21769,
12,
15361,
11272,
467,
1253,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
492,
921,
18,
542,
3935,
21769,
12,
15361,
11272,
1250,
492,
921,
18,
542,
3935,
21769,
12,
15361,
11272,
1207,
12,
492,
921,
18,
542,
3935,
21769,
12,
15361,
11272,
467,
1253,
... | |
if ( "solid".equalsIgnoreCase(borders[i].borderStyle) ) { if (null == solid) { solid = new ArrayList(); } solid.add(borders[i]); } if ( "dashed".equalsIgnoreCase(borders[i].borderStyle) ) | else if ( "dashed".equalsIgnoreCase(borders[i].borderStyle) ) | private void drawBorder(BorderInfo[] borders) { //double>solid>dashed>dotted>none ArrayList dbl = null; ArrayList solid = null; ArrayList dashed = null; ArrayList dotted = null; for(int i=0; i<borders.length; i++) { if ( "double".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == dbl) { dbl = new ArrayList(); } dbl.add(borders[i]); } if ( "solid".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == solid) { solid = new ArrayList(); } solid.add(borders[i]); } if ( "dashed".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == dashed) { dashed = new ArrayList(); } dashed.add(borders[i]); } if ( "dotted".equalsIgnoreCase(borders[i].borderStyle) ) //$NON-NLS-1$ { if (null == dotted) { dotted = new ArrayList(); } dotted.add(borders[i]); } } if ( null != dotted ) { for (Iterator it=dotted.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY ), pdfMeasure(bi.borderWidth), bi.borderColor, "dotted", cb ); //$NON-NLS-1$ } } if ( null != dashed ) { for (Iterator it=dashed.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY ), pdfMeasure(bi.borderWidth), bi.borderColor, "dashed", cb ); //$NON-NLS-1$ } } if ( null != solid ) { for (Iterator it=solid.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY ), pdfMeasure(bi.borderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ } } if ( null != dbl ) { for (Iterator it=dbl.iterator(); it.hasNext();) { BorderInfo bi = (BorderInfo)it.next(); int outerBorderWidth=bi.borderWidth/3, innerBorderWidth=bi.borderWidth/3; switch (bi.borderType) { case BorderInfo.TOP_BORDER: drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY-bi.borderWidth/2+outerBorderWidth/2 ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX+2*borders[BorderInfo.LEFT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.startY+bi.borderWidth/2-innerBorderWidth/2 ), layoutPointX2PDF( bi.endX-2*borders[BorderInfo.RIGHT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.endY+bi.borderWidth/2-innerBorderWidth/2 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; case BorderInfo.RIGHT_BORDER: drawLine( layoutPointX2PDF( bi.startX+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointY2PDF( bi.endY ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX-bi.borderWidth/2+innerBorderWidth/2 ), layoutPointY2PDF( bi.startY+2*borders[BorderInfo.TOP_BORDER].borderWidth/3 ), layoutPointX2PDF( bi.endX-bi.borderWidth/2+innerBorderWidth/2 ), layoutPointY2PDF( bi.endY-2*borders[BorderInfo.BOTTOM_BORDER].borderWidth/3 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; case BorderInfo.BOTTOM_BORDER: drawLine( layoutPointX2PDF( bi.startX ), layoutPointY2PDF( bi.startY+bi.borderWidth/2-outerBorderWidth/2 ), layoutPointX2PDF( bi.endX ), layoutPointY2PDF( bi.endY+bi.borderWidth/2-outerBorderWidth/2 ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX+2*borders[BorderInfo.LEFT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.startY-bi.borderWidth/2+innerBorderWidth/2 ), layoutPointX2PDF( bi.endX-2*borders[BorderInfo.RIGHT_BORDER].borderWidth/3 ), layoutPointY2PDF( bi.endY-bi.borderWidth/2+innerBorderWidth/2 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; case BorderInfo.LEFT_BORDER: drawLine( layoutPointX2PDF( bi.startX-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointY2PDF( bi.startY ), layoutPointX2PDF( bi.endX-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointY2PDF( bi.endY ), pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ drawLine( layoutPointX2PDF( bi.startX+bi.borderWidth/2-innerBorderWidth/2 ), layoutPointY2PDF( bi.startY+2*borders[BorderInfo.TOP_BORDER].borderWidth/3 ), layoutPointX2PDF( bi.endX+bi.borderWidth/2-innerBorderWidth/2 ), layoutPointY2PDF( bi.endY-2*borders[BorderInfo.BOTTOM_BORDER].borderWidth/3 ), pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); //$NON-NLS-1$ break; } } } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e18d58fe2fd81052ce23c4a1d562fba26e7d1aaf/PDFEmitter.java/clean/engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
3724,
8107,
12,
8107,
966,
8526,
24028,
13,
202,
202,
95,
1082,
202,
759,
9056,
34,
30205,
34,
72,
13912,
34,
9811,
2344,
34,
6102,
1082,
202,
19558,
1319,
80,
273,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
3724,
8107,
12,
8107,
966,
8526,
24028,
13,
202,
202,
95,
1082,
202,
759,
9056,
34,
30205,
34,
72,
13912,
34,
9811,
2344,
34,
6102,
1082,
202,
19558,
1319,
80,
273,
446... |
needPageBreak = true; | setPageBreakBeforeForNextGroup( ); | protected void handlePageBreakAfterOfGroup( ) { boolean needPageBreak = false; GroupDesign groupDesign = (GroupDesign) design; if ( groupDesign != null ) { String pageBreakAfter = groupDesign.getPageBreakAfter( ); int groupLevel = groupDesign.getGroupLevel( ); if ( DesignChoiceConstants.PAGE_BREAK_AFTER_ALWAYS .equals( pageBreakAfter ) ) { needPageBreak = true; } if ( DesignChoiceConstants.PAGE_BREAK_AFTER_ALWAYS_EXCLUDING_LAST .equals( pageBreakAfter ) ) { int endGroup = rset.getEndingGroupLevel( ); if ( endGroup >= groupLevel + 1 ) { needPageBreak = true; } } if ( needPageBreak ) { content.getStyle( ).setProperty( IStyle.STYLE_PAGE_BREAK_AFTER, IStyle.ALWAYS_VALUE ); } } } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e55c70c3819e4fb0896313c8307ebf1dd2e752dd/GroupExecutor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/GroupExecutor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1640,
1964,
7634,
4436,
951,
1114,
12,
262,
202,
95,
202,
202,
6494,
1608,
1964,
7634,
273,
629,
31,
202,
202,
1114,
15478,
1041,
15478,
273,
261,
1114,
15478,
13,
8281,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
7634,
4436,
951,
1114,
12,
262,
202,
95,
202,
202,
6494,
1608,
1964,
7634,
273,
629,
31,
202,
202,
1114,
15478,
1041,
15478,
273,
261,
1114,
15478,
13,
8281,
... |
securityManager.deleteResource( cms.getRequestContext(), resource, siblingMode); | securityManager.deleteResource(cms.getRequestContext(), resource, siblingMode); | public void deleteResource( CmsObject cms, CmsSecurityManager securityManager, CmsResource resource, int siblingMode ) throws CmsException { securityManager.deleteResource( cms.getRequestContext(), resource, siblingMode); } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/c7083871cfaaede3aa187a175b34be606d8431f2/A_CmsResourceType.java/clean/src/org/opencms/file/types/A_CmsResourceType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
1420,
12,
3639,
14371,
6166,
16,
540,
2149,
4368,
1318,
4373,
1318,
16,
540,
7630,
1058,
16,
540,
509,
10841,
2309,
565,
262,
1216,
11228,
288,
3639,
4373,
1318,
18,
3733... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
1420,
12,
3639,
14371,
6166,
16,
540,
2149,
4368,
1318,
4373,
1318,
16,
540,
7630,
1058,
16,
540,
509,
10841,
2309,
565,
262,
1216,
11228,
288,
3639,
4373,
1318,
18,
3733... |
public void setFlag(int f) { this.flag_pm = f; } | public void setFlag(int f) { this.flag_pm = f; } | public void setFlag(int f) { this.flag_pm = f; } | 12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/7faacb2f15fd2a7082ec1a40f155d879f6a11b69/FrmProduct.java/buggy/src/nom/FrmProduct.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
444,
4678,
12,
474,
284,
13,
282,
288,
4202,
333,
18,
6420,
67,
7755,
273,
284,
31,
1850,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
1071,
918,
444,
4678,
12,
474,
284,
13,
282,
288,
4202,
333,
18,
6420,
67,
7755,
273,
284,
31,
1850,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
public abstract SettingSet buildModel(File modelFile); | public abstract SettingSet buildModel(File modelFile, Setting parent); | public abstract SettingSet buildModel(File modelFile); | 12962 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12962/e9da4f10fce82585660c58be4ae0e97c8c637341/ModelBuilder.java/buggy/sipXconfig/neoconf/src/org/sipfoundry/sipxconfig/setting/ModelBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8770,
13274,
694,
1361,
1488,
12,
812,
938,
812,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8770,
13274,
694,
1361,
1488,
12,
812,
938,
812,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return TokenResult.NONE; | return new TokenResult( new Token[] { reply }, null ); | private TokenResult eprtReply( FtpReply reply ) throws TokenException { return TokenResult.NONE; } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/1e83604fd730e0932a853f098ccdc59cc6c07d80/NatFtpHandler.java/clean/tran/nat/main/com/metavize/tran/nat/NatFtpHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3155,
1253,
425,
683,
88,
7817,
12,
478,
6834,
7817,
4332,
262,
1216,
3155,
503,
565,
288,
3639,
327,
394,
3155,
1253,
12,
394,
3155,
8526,
288,
4332,
19879,
446,
11272,
565,
289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3155,
1253,
425,
683,
88,
7817,
12,
478,
6834,
7817,
4332,
262,
1216,
3155,
503,
565,
288,
3639,
327,
394,
3155,
1253,
12,
394,
3155,
8526,
288,
4332,
19879,
446,
11272,
565,
289,
... |
/* register the WMI assistant */ registerAssistant( this.wmiAssistant ); | private LocalPhoneBookImpl() { /* have to build the WMI assistant */ this.wmiAssistant = new WMIAssistant(); /* register the WMI assistant */ registerAssistant( this.wmiAssistant ); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/1d83234b319961bbbb9ff310922664ecadfaf21e/LocalPhoneBookImpl.java/buggy/mvvm/impl/com/metavize/mvvm/user/LocalPhoneBookImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3566,
9451,
9084,
2828,
1435,
565,
288,
3639,
1748,
1240,
358,
1361,
326,
678,
7492,
28779,
1195,
3639,
333,
18,
91,
9197,
2610,
17175,
273,
394,
678,
7492,
2610,
17175,
5621,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3566,
9451,
9084,
2828,
1435,
565,
288,
3639,
1748,
1240,
358,
1361,
326,
678,
7492,
28779,
1195,
3639,
333,
18,
91,
9197,
2610,
17175,
273,
394,
678,
7492,
2610,
17175,
5621,
3639,
... | |
traceIn("moduleDecl"); try { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST moduleDecl_AST = null; Token prefix = null; org.exist.xquery.parser.XQueryAST prefix_AST = null; Token uri = null; org.exist.xquery.parser.XQueryAST uri_AST = null; | returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST moduleDecl_AST = null; Token prefix = null; org.exist.xquery.parser.XQueryAST prefix_AST = null; Token uri = null; org.exist.xquery.parser.XQueryAST uri_AST = null; match(LITERAL_module); match(LITERAL_namespace); prefix = LT(1); prefix_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(prefix); astFactory.addASTChild(currentAST, prefix_AST); match(NCNAME); match(EQ); uri = LT(1); uri_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(uri); astFactory.addASTChild(currentAST, uri_AST); match(STRING_LITERAL); match(SEMICOLON); if ( inputState.guessing==0 ) { moduleDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; | public final void moduleDecl() throws RecognitionException, TokenStreamException { traceIn("moduleDecl"); try { // debugging returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST moduleDecl_AST = null; Token prefix = null; org.exist.xquery.parser.XQueryAST prefix_AST = null; Token uri = null; org.exist.xquery.parser.XQueryAST uri_AST = null; match(LITERAL_module); match(LITERAL_namespace); prefix = LT(1); prefix_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(prefix); astFactory.addASTChild(currentAST, prefix_AST); match(NCNAME); match(EQ); uri = LT(1); uri_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(uri); astFactory.addASTChild(currentAST, uri_AST); match(STRING_LITERAL); match(SEMICOLON); if ( inputState.guessing==0 ) { moduleDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; moduleDecl_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(MODULE_DECL,prefix.getText())).add(uri_AST)); currentAST.root = moduleDecl_AST; currentAST.child = moduleDecl_AST!=null &&moduleDecl_AST.getFirstChild()!=null ? moduleDecl_AST.getFirstChild() : moduleDecl_AST; currentAST.advanceChildToEnd(); } moduleDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = moduleDecl_AST; } finally { // debugging traceOut("moduleDecl"); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/036ccdd3fe4cdde6cf0f24f284e57caec99eaa4a/XQueryParser.java/buggy/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1605,
3456,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
5129,
382,
2932,
2978,
3456,
8863,
202,
202,
698,
288,
368,
10450,
1082,
202,
2463,
9053,
273,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1605,
3456,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
5129,
382,
2932,
2978,
3456,
8863,
202,
202,
698,
288,
368,
10450,
1082,
202,
2463,
9053,
273,
446,
... |
public static void putstaticWriteBarrier(int offset, Object value) | public static void putstaticWriteBarrier(Offset offset, Object value) | public static void putstaticWriteBarrier(int offset, Object value) throws InlinePragma { // putstatic barrier currently unimplemented if (VM.VerifyAssertions) VM._assert(false);// Address jtoc = VM_Magic.objectAsAddress(VM_Magic.getJTOC());// VM_Interface.getPlan().writeBarrier(jtoc,// jtoc.add(offset),// VM_Magic.objectAsAddress(value),// PUTSTATIC_WRITE_BARRIER); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/MM_Interface.java/buggy/rvm/src/vm/memoryManagers/JMTk/vmInterface/MM_Interface.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
1378,
3845,
3067,
5190,
10342,
12,
2335,
1384,
16,
1033,
460,
13,
565,
1216,
16355,
2050,
9454,
288,
377,
368,
1378,
3845,
24651,
4551,
640,
21099,
565,
309,
261,
7397,
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,
1071,
760,
918,
1378,
3845,
3067,
5190,
10342,
12,
2335,
1384,
16,
1033,
460,
13,
565,
1216,
16355,
2050,
9454,
288,
377,
368,
1378,
3845,
24651,
4551,
640,
21099,
565,
309,
261,
7397,
18... |
int initialFoldLevel = buffer.getFoldLevel(line); if(line != lineCount - 1 && isLineVisible(line) && !isLineVisible(line + 1) && buffer.getFoldLevel(line + 1) > initialFoldLevel) | for(int i = line + 1; i < lineCount; i++) | public int expandFold(int line, boolean fully) { // the first sub-fold. used by JEditTextArea.expandFold(). int returnValue = -1; int lineCount = buffer.getLineCount(); int start = 0; int end = lineCount - 1; try { buffer.writeLock(); int initialFoldLevel = buffer.getFoldLevel(line); //{{{ Find fold start and fold end... if(line != lineCount - 1 && isLineVisible(line) && !isLineVisible(line + 1) && buffer.getFoldLevel(line + 1) > initialFoldLevel) { // this line is the start of a fold start = line + 1; for(int i = line + 1; i < lineCount; i++) { if(/* isLineVisible(i) && */ buffer.getFoldLevel(i) <= initialFoldLevel) { end = i - 1; break; } } } else { boolean ok = false; // scan backwards looking for the start for(int i = line - 1; i >= 0; i--) { //XXX if(isLineVisible(i) && buffer.getFoldLevel(i) < initialFoldLevel) { start = i + 1; ok = true; break; } } if(!ok) { // no folds in buffer return -1; } for(int i = line + 1; i < lineCount; i++) { //XXX if((isLineVisible(i) && buffer.getFoldLevel(i) < initialFoldLevel) || i == getLastVisibleLine()) { end = i - 1; break; } } } //}}} //{{{ Expand the fold... if(fully) { showLineRange(start,end); } else { // we need a different value of initialFoldLevel here! initialFoldLevel = buffer.getFoldLevel(start); int firstVisible = start; for(int i = start; i <= end; i++) { if(buffer.getFoldLevel(i) > initialFoldLevel) { if(returnValue == -1 && i != 0 && buffer.isFoldStart(i - 1)) { returnValue = i - 1; } if(firstVisible != i) { showLineRange(firstVisible,i - 1); } firstVisible = i + 1; } } if(firstVisible != end + 1) showLineRange(firstVisible,end); if(!isLineVisible(line)) { // this is a hack, and really needs to be done better. expandFold(line,false); return returnValue; } } //}}} } finally { buffer.writeUnlock(); } _notifyScreenLineChanges(); textArea.foldStructureChanged(); return returnValue; } //}}} | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/a010bcb74ed7af964ecaa344db4d894b3557ae58/DisplayManager.java/buggy/org/gjt/sp/jedit/textarea/DisplayManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
4542,
15592,
12,
474,
980,
16,
1250,
7418,
13,
202,
95,
202,
202,
759,
326,
1122,
720,
17,
16007,
18,
1399,
635,
804,
4666,
1528,
5484,
18,
12320,
15592,
7675,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
4542,
15592,
12,
474,
980,
16,
1250,
7418,
13,
202,
95,
202,
202,
759,
326,
1122,
720,
17,
16007,
18,
1399,
635,
804,
4666,
1528,
5484,
18,
12320,
15592,
7675,
202,
202,
... |
if (monitor.isCanceled()) { | if (monitor.isCanceled()) | public void buildAllMarkers(IProgressMonitor monitor) { building = true; try { int markerLimit = view.getMarkerLimit(); monitor.beginTask(MarkerMessages.MarkerView_19, markerLimit == -1 ? 60 : 100); try { monitor.subTask(MarkerMessages.MarkerView_waiting_on_changes); if (monitor.isCanceled()) { return; } monitor .subTask(MarkerMessages.MarkerView_searching_for_markers); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10); lastMarkers = MarkerList.compute(view.getEnabledFilters(), subMonitor, true); if (monitor.isCanceled()) { return; } view.refreshMarkerCounts(monitor); } catch (CoreException e) { Util.log(e); lastMarkers = new MarkerList(); return; } if (monitor.isCanceled()) { return; } ViewerSorter sorter = view.getViewer().getSorter(); if (markerLimit == -1 || isShowingHierarchy()) { sorter.sort(view.getViewer(), lastMarkers.toArray()); } else { monitor.subTask(MarkerMessages.MarkerView_18); SubProgressMonitor mon = new SubProgressMonitor(monitor, 40); lastMarkers = SortUtil.getFirst(lastMarkers, (Comparator) sorter, markerLimit, mon); if (monitor.isCanceled()) { return; } sorter.sort(view.getViewer(), lastMarkers.toArray()); } if (lastMarkers.getSize() == 0) { categories = new MarkerCategory[0]; monitor.done(); return; } monitor.subTask(MarkerMessages.MarkerView_queueing_updates); if (isShowingHierarchy()) { categories = buildHierarchy(lastMarkers, 0, lastMarkers .getSize() - 1, 0); } if (monitor.isCanceled()) { return; } monitor.done(); } finally { building = false; } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/463fb046537cc5974ca1c2e10d796b2225e725a8/MarkerAdapter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1361,
1595,
21644,
12,
45,
5491,
7187,
6438,
13,
288,
202,
202,
3510,
310,
273,
638,
31,
202,
202,
698,
288,
1082,
202,
474,
5373,
3039,
273,
1476,
18,
588,
7078,
3039,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
1595,
21644,
12,
45,
5491,
7187,
6438,
13,
288,
202,
202,
3510,
310,
273,
638,
31,
202,
202,
698,
288,
1082,
202,
474,
5373,
3039,
273,
1476,
18,
588,
7078,
3039,
... |
public void write(byte b[], int off, int len) throws IOException { | public void write(int b) throws IOException { | public void write(byte b[], int off, int len) throws IOException { if (debug) { for (int i = 0; i < len; i++) { traceStream.write(b[off + i]); } } super.write(b, off, len); } | 54275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54275/95ebd4fdd0f0543545ebf966dda42c9add3dcbbb/TraceOutputStream.java/buggy/javamail-provider-1.3/src/java/org/apache/geronimo/javamail/util/TraceOutputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
12,
474,
324,
13,
1216,
1860,
288,
3639,
309,
261,
4148,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
7734,
2606,
1228,
18,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1045,
12,
474,
324,
13,
1216,
1860,
288,
3639,
309,
261,
4148,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
7734,
2606,
1228,
18,
26... |
Logger.normal(RealNodeRoutingTest.class, "Routed ping "+pings+" success: "+hopsTaken+" "+randomNode.portNumber+" to "+randomNode2.portNumber+" (long:"+ratio+", short:"+avg.currentValue()+", vague:"+avg2.currentValue()+")"); | Logger.normal(RealNodeRoutingTest.class, "Routed ping "+pings+" success: "+hopsTaken+ ' ' +randomNode.portNumber+" to "+randomNode2.portNumber+" (long:"+ratio+", short:"+avg.currentValue()+", vague:"+avg2.currentValue()+ ')'); | public static void main(String[] args) throws FSParseException, PeerParseException { PeerNode.disableProbabilisticHTLs = true; Node.MAX_HTL = 6; FileLoggerHook fh = Logger.setupStdoutLogging(Logger.NORMAL, "freenet.node.CPUAdjustingSwapRequestInterval:minor" /*"freenet.node.LocationManager:debug,freenet.node.FNPPacketManager:normal,freenet.io.comm.UdpSocketManager:debug"*/); System.out.println("Routing test using real nodes:"); System.out.println(); String wd = "realNodeRequestInsertTest"; new File(wd).mkdir(); DummyRandomSource random = new DummyRandomSource(); DiffieHellman.init(random); Node[] nodes = new Node[NUMBER_OF_NODES]; Logger.normal(RealNodeRoutingTest.class, "Creating nodes..."); for(int i=0;i<NUMBER_OF_NODES;i++) { nodes[i] = new Node(5000+i, random, null, wd+File.separator, 0, false, fh, 0); Logger.normal(RealNodeRoutingTest.class, "Created node "+i); } SimpleFieldSet refs[] = new SimpleFieldSet[NUMBER_OF_NODES]; for(int i=0;i<NUMBER_OF_NODES;i++) refs[i] = nodes[i].exportPublicFieldSet(); Logger.normal(RealNodeRoutingTest.class, "Created "+NUMBER_OF_NODES+" nodes"); // Now link them up // Connect the set for(int i=0;i<NUMBER_OF_NODES;i++) { int next = (i+1) % NUMBER_OF_NODES; int prev = (i+NUMBER_OF_NODES-1)%NUMBER_OF_NODES; nodes[i].peers.connect(refs[next]); nodes[i].peers.connect(refs[prev]); } Logger.normal(RealNodeRoutingTest.class, "Connected nodes"); // Now add some random links for(int i=0;i<NUMBER_OF_NODES*5;i++) { if(i % NUMBER_OF_NODES == 0) Logger.normal(RealNodeRoutingTest.class, ""+i); int length = (int)Math.pow(NUMBER_OF_NODES, random.nextDouble()); int nodeA = random.nextInt(NUMBER_OF_NODES); int nodeB = (nodeA+length)%NUMBER_OF_NODES; //System.out.println(""+nodeA+" -> "+nodeB); Node a = nodes[nodeA]; Node b = nodes[nodeB]; a.peers.connect(b.exportPublicFieldSet()); b.peers.connect(a.exportPublicFieldSet()); } Logger.normal(RealNodeRoutingTest.class, "Added random links"); SwapRequestInterval sri = new CPUAdjustingSwapRequestInterval(((500*1000*NUMBER_OF_NODES)/200), 50); for(int i=0;i<NUMBER_OF_NODES;i++) nodes[i].start(sri); // Now sit back and watch the fireworks! int cycleNumber = 0; int lastSwaps = 0; int lastNoSwaps = 0; int failures = 0; int successes = 0; RunningAverage avg = new SimpleRunningAverage(100, 0.0); RunningAverage avg2 = new BootstrappingDecayingRunningAverage(0.0, 0.0, 1.0, 100); int pings = 0; while(true) { cycleNumber++; try { Thread.sleep(5000); } catch (InterruptedException e) { // Ignore } for(int i=0;i<NUMBER_OF_NODES;i++) { Logger.normal(RealNodeRoutingTest.class, "Cycle "+cycleNumber+" node "+i+": "+nodes[i].lm.getLocation().getValue()); } int newSwaps = LocationManager.swaps; int totalStarted = LocationManager.startedSwaps; int noSwaps = LocationManager.noSwaps; Logger.normal(RealNodeRoutingTest.class, "Swaps: "+(newSwaps-lastSwaps)); Logger.normal(RealNodeRoutingTest.class, "\nTotal swaps: Started*2: "+totalStarted*2+", succeeded: "+newSwaps+", last minute failures: "+noSwaps+ ", ratio "+(double)noSwaps/(double)newSwaps+", early failures: "+((totalStarted*2)-(noSwaps+newSwaps))); Logger.normal(RealNodeRoutingTest.class, "This cycle ratio: "+((double)(noSwaps-lastNoSwaps)) / ((double)(newSwaps - lastSwaps))); lastNoSwaps = noSwaps; Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (already locked): "+LocationManager.swapsRejectedAlreadyLocked); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (nowhere to go): "+LocationManager.swapsRejectedNowhereToGo); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (rate limit): "+LocationManager.swapsRejectedRateLimit); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (loop): "+LocationManager.swapsRejectedLoop); Logger.normal(RealNodeRoutingTest.class, "Swaps rejected (recognized ID):" +LocationManager.swapsRejectedRecognizedID); lastSwaps = newSwaps; // Do some (routed) test-pings for(int i=0;i<10;i++) { try { Thread.sleep(5000); } catch (InterruptedException e1) { } try { Node randomNode = nodes[random.nextInt(NUMBER_OF_NODES)]; Node randomNode2 = randomNode; while(randomNode2 == randomNode) randomNode2 = nodes[random.nextInt(NUMBER_OF_NODES)]; Logger.normal(RealNodeRoutingTest.class, "Pinging "+randomNode2.portNumber+" from "+randomNode.portNumber); double loc2 = randomNode2.lm.getLocation().getValue(); int hopsTaken = randomNode.routedPing(loc2); pings++; if(hopsTaken < 0) { failures++; avg.report(0.0); avg2.report(0.0); double ratio = (double)successes / ((double)(failures+successes)); Logger.normal(RealNodeRoutingTest.class, "Routed ping "+pings+" FAILED from "+randomNode.portNumber+" to "+randomNode2.portNumber+" (long:"+ratio+", short:"+avg.currentValue()+", vague:"+avg2.currentValue()+")"); } else { successes++; avg.report(1.0); avg2.report(1.0); double ratio = (double)successes / ((double)(failures+successes)); Logger.normal(RealNodeRoutingTest.class, "Routed ping "+pings+" success: "+hopsTaken+" "+randomNode.portNumber+" to "+randomNode2.portNumber+" (long:"+ratio+", short:"+avg.currentValue()+", vague:"+avg2.currentValue()+")"); } } catch (Throwable t) { Logger.error(RealNodeRoutingTest.class, "Caught "+t, t); } } } } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/62fd59041864b4ed1f43adc676de6bfb5ea977f3/RealNodeRoutingTest.java/buggy/src/freenet/node/RealNodeRoutingTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
9247,
13047,
16,
10669,
13047,
288,
3639,
10669,
907,
18,
8394,
9152,
22681,
5846,
5062,
48,
87,
273,
638,
31,
3639,
2029,
18,
6694,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
9247,
13047,
16,
10669,
13047,
288,
3639,
10669,
907,
18,
8394,
9152,
22681,
5846,
5062,
48,
87,
273,
638,
31,
3639,
2029,
18,
6694,
... |
p.show(); | p.setVisible(true); | public void actionPerformed(ActionEvent e) { if (log.isDebugEnabled()) log.debug("Pane programmer requested"); // create the initial frame that steers final JmriJFrame f = new JmriJFrame("Ops-mode Programmer Setup"); f.getContentPane().setLayout(new BoxLayout(f.getContentPane(), BoxLayout.Y_AXIS)); // add the Roster menu JMenuBar menuBar = new JMenuBar(); // menuBar.setBorder(new BevelBorder(BevelBorder.RAISED)); menuBar.add(new jmri.jmrit.roster.RosterMenu("Roster", jmri.jmrit.roster.RosterMenu.MAINMENU, f)); f.setJMenuBar(menuBar); // known loco on main track JLabel last; JPanel pane1 = new KnownLocoSelPane(false){ // no ident in ops mode yet protected void startProgrammer(DecoderFile decoderFile, RosterEntry re, String filename) { String title = "Program "+re.getId()+" on main track"; // find the ops-mode programmer int address = Integer.parseInt(re.getDccAddress()); boolean longAddr = true; if (address<100) longAddr = false; Programmer programmer = InstanceManager.programmerManagerInstance() .getOpsModeProgrammer(longAddr, address); // and created the frame JFrame p = new PaneOpsProgFrame(decoderFile, re, title, "programmers"+File.separator+filename+".xml", programmer); p.pack(); p.show(); // f.setVisible(false); // f.dispose(); } }; // load primary frame pane1.setAlignmentX(JLabel.CENTER_ALIGNMENT); f.getContentPane().add(pane1); f.pack(); if (log.isDebugEnabled()) log.debug("Tab-Programmer setup created"); f.show(); } | 2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/399be17e0adbfcb2af24f51789f50725b30c8181/PaneOpsProgAction.java/buggy/jmri/jmrit/symbolicprog/tabbedframe/PaneOpsProgAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
8485,
5402,
6592,
3764,
8863,
3639,
368,
752,
326,
2172,
2623,
716,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
309,
261,
1330,
18,
291,
2829,
1526,
10756,
613,
18,
4148,
2932,
8485,
5402,
6592,
3764,
8863,
3639,
368,
752,
326,
2172,
2623,
716,
... |
List encodings = getIDEEncodingsPreference(); | List encodings = getIDEEncodingsPreference(); | public static List getIDEEncodings() { List encodings = getIDEEncodingsPreference(); encodings.addAll(WorkbenchEncoding.getDefinedEncodings()); String enc = getResourceEncoding(); if (!(enc == null || encodings.contains(enc))) encodings.add(enc); Collections.sort(encodings); return encodings; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/4891f4c54ceeb1930de3a4273df47d343d58c273/IDEEncoding.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEEncoding.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
987,
336,
10385,
25100,
899,
1435,
288,
202,
202,
682,
24118,
273,
225,
336,
10385,
25100,
899,
9624,
5621,
1082,
202,
1331,
369,
899,
18,
1289,
1595,
12,
2421,
22144,
4705... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
336,
10385,
25100,
899,
1435,
288,
202,
202,
682,
24118,
273,
225,
336,
10385,
25100,
899,
9624,
5621,
1082,
202,
1331,
369,
899,
18,
1289,
1595,
12,
2421,
22144,
4705... |
return RubyFixnum.newFixnum(getRuntime(), | return getRuntime().newFixnum( | public IRubyObject cmp(IRubyObject other) { if (!(other instanceof RubyNumeric)) { return getRuntime().getNil(); } return RubyFixnum.newFixnum(getRuntime(), compareValue((RubyNumeric) other)); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNumeric.java/clean/src/org/jruby/RubyNumeric.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
9411,
12,
7937,
10340,
921,
1308,
13,
288,
377,
202,
430,
16051,
12,
3011,
1276,
19817,
9902,
3719,
288,
377,
202,
202,
2463,
18814,
7675,
588,
12616,
5621,
377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
9411,
12,
7937,
10340,
921,
1308,
13,
288,
377,
202,
430,
16051,
12,
3011,
1276,
19817,
9902,
3719,
288,
377,
202,
202,
2463,
18814,
7675,
588,
12616,
5621,
377,
... |
return R.toString(); | return s; | private Object js_unescape(Context cx, Object[] args) { String s = ScriptRuntime.toString(args, 0); StringBuffer R = new StringBuffer(); stringIter: for (int k = 0; k < s.length(); k++) { char c = s.charAt(k); if (c != '%' || k == s.length() -1) { R.append(c); continue; } String hex; int end, start; if (s.charAt(k+1) == 'u') { start = k+2; end = k+6; } else { start = k+1; end = k+3; } if (end > s.length()) { R.append('%'); continue; } hex = s.substring(start, end); for (int i = 0; i < hex.length(); i++) if (!TokenStream.isXDigit(hex.charAt(i))) { R.append('%'); continue stringIter; } k = end - 1; R.append((new Character((char) Integer.valueOf(hex, 16).intValue()))); } return R.toString(); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/8214f675cafcc8a0efa75a02977cc2ee98539d71/NativeGlobal.java/buggy/js/rhino/src/org/mozilla/javascript/NativeGlobal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
318,
6939,
12,
1042,
9494,
16,
1033,
8526,
833,
13,
565,
288,
3639,
514,
272,
273,
7739,
5576,
18,
10492,
12,
1968,
16,
374,
1769,
3639,
6674,
534,
273,
394,
6674,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1033,
3828,
67,
318,
6939,
12,
1042,
9494,
16,
1033,
8526,
833,
13,
565,
288,
3639,
514,
272,
273,
7739,
5576,
18,
10492,
12,
1968,
16,
374,
1769,
3639,
6674,
534,
273,
394,
6674,... |
public Convertor (boolean useCmlIdentifiers, boolean setNamespaceUri, boolean schemaInstanceOutput, String instanceLocation, String prefix) { logger = new LoggingTool(this); try { isotopeFactory = IsotopeFactory.getInstance(); } catch (Exception exception) { logger.error("Failed to initiate isotope factory: ", exception.getMessage()); logger.debug(exception); } this.useCmlIdentifiers = useCmlIdentifiers; this.setNamespaceUri = setNamespaceUri; this.schemaInstanceOutput = schemaInstanceOutput; this.instanceLocation = instanceLocation; this.prefix = prefix; | public Convertor() { this(true, false, false, "", ""); | public Convertor (boolean useCmlIdentifiers, boolean setNamespaceUri, boolean schemaInstanceOutput, String instanceLocation, String prefix) { logger = new LoggingTool(this); try { isotopeFactory = IsotopeFactory.getInstance(); } catch (Exception exception) { logger.error("Failed to initiate isotope factory: ", exception.getMessage()); logger.debug(exception); } this.useCmlIdentifiers = useCmlIdentifiers; this.setNamespaceUri = setNamespaceUri; this.schemaInstanceOutput = schemaInstanceOutput; this.instanceLocation = instanceLocation; this.prefix = prefix; } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/0e8683953bbba735847e55507974fed0326c5fc1/Convertor.java/buggy/src/org/openscience/cdk/libio/cml/Convertor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4037,
280,
261,
6494,
999,
39,
781,
12745,
16,
1250,
27372,
3006,
16,
1250,
1963,
1442,
1447,
16,
514,
791,
2735,
16,
514,
1633,
13,
288,
3639,
1194,
273,
394,
10253,
6364,
12,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4037,
280,
261,
6494,
999,
39,
781,
12745,
16,
1250,
27372,
3006,
16,
1250,
1963,
1442,
1447,
16,
514,
791,
2735,
16,
514,
1633,
13,
288,
3639,
1194,
273,
394,
10253,
6364,
12,
22... |
methodMetaDataList.remove(methodMetaData); | ; } else { methodMetaDataListFiltered.add(methodMetaData); | private void addIntroductions(final Context context, final ClassGen cg, final ConstantPoolGen cpg, final InstructionFactory factory) { for (Iterator it = m_definition.getIntroductionNames(cg.getClassName()).iterator(); it.hasNext();) { String introductionName = (String)it.next(); String introductionImplName = m_definition.getIntroductionImplName(introductionName); if (introductionImplName == null) { continue; } int introductionIndex = 0; List methodMetaDataList = Collections.synchronizedList(new ArrayList()); try { introductionIndex = m_definition.getIntroductionIndex(introductionName);// methodMetaDataList = m_definition.getIntroductionMethodsMetaData(introductionName); // get the method meta-data for the class boolean match = false; Map metaDataRepository = context.getMetaDataRepository(); for (Iterator it2 = metaDataRepository.values().iterator(); it2.hasNext();) { if (match) break; Set metaDataSet = (Set)it2.next(); for (Iterator it3 = metaDataSet.iterator(); it3.hasNext();) { ClassMetaData classMetaData = (ClassMetaData)it3.next(); if (classMetaData.getName().equals(introductionImplName)) { methodMetaDataList = (List)SerializationUtils. clone((java.io.Serializable)classMetaData.getMethods()); match = true; break; } } } if (methodMetaDataList == null) { throw new RuntimeException("no meta-data for introduction " + introductionImplName + " could be found in repository"); } } catch (Exception e) { throw new DefinitionException("trying to weave introduction with null or empty string as name to class " + cg.getClassName() + ": definition file is not consistent"); } if (methodMetaDataList == null) { continue; // interface introduction } for (Iterator it2 = methodMetaDataList.iterator(); it2.hasNext();) { MethodMetaData methodMetaData = (MethodMetaData)it2.next(); // remove the ___AW_getUuid, ___AW_getMetaData, ___AW_addMetaData and class$ methods // as well as the added proxy methods before sorting the method list if ( methodMetaData.getName().equals("equals") || methodMetaData.getName().equals("hashCode") || methodMetaData.getName().equals("getClass") || methodMetaData.getName().equals("toString") || methodMetaData.getName().equals("wait") || methodMetaData.getName().equals("notify") || methodMetaData.getName().equals("notifyAll") || methodMetaData.getName().equals( TransformationUtil.GET_UUID_METHOD) || methodMetaData.getName().equals( TransformationUtil.GET_UUID_METHOD) || methodMetaData.getName().equals( TransformationUtil.GET_META_DATA_METHOD) || methodMetaData.getName().equals( TransformationUtil.SET_META_DATA_METHOD) || methodMetaData.getName().equals( TransformationUtil.CLASS_LOOKUP_METHOD) || methodMetaData.getName().startsWith( TransformationUtil.ORIGINAL_METHOD_PREFIX)) { methodMetaDataList.remove(methodMetaData); } } // sort the list so that we can enshure that the indexes are in synch // see AbstractIntroductionContainerStrategy#AbstractIntroductionContainerStrategy Collections.sort(methodMetaDataList, MethodComparator. getInstance(MethodComparator.METHOD_META_DATA)); int methodIndex = -1; // start with -1 since the method array is 0 indexed for (Iterator it2 = methodMetaDataList.iterator(); it2.hasNext();) { MethodMetaData methodMetaData = (MethodMetaData)it2.next(); if (methodMetaData.getReturnType() == null) { continue; // constructor => skip } methodIndex++; createProxyMethod( cg, cpg, factory, methodMetaData, introductionIndex, methodIndex, m_definition.getUuid()); } } } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/e83a4e719e058c5f1aa8f46fbdafe6da9d7124e6/AddImplementationTransformer.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/transform/AddImplementationTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
1702,
303,
2544,
349,
87,
12,
6385,
1772,
819,
16,
21394,
727,
1659,
7642,
14947,
16,
21394,
727,
10551,
2864,
7642,
3283,
75,
16,
21394,
727,
24605,
1733,
3272,
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,
3238,
918,
527,
1702,
303,
2544,
349,
87,
12,
6385,
1772,
819,
16,
21394,
727,
1659,
7642,
14947,
16,
21394,
727,
10551,
2864,
7642,
3283,
75,
16,
21394,
727,
24605,
1733,
3272,
13,
288,
... |
updateParentState(resource); | updateParentState(element, state); | public void run() { IResource resource = (IResource) event.getElement(); boolean state = event.getChecked(); tree.setGrayed(resource, false); if (resource instanceof IContainer) { setSubtreeChecked((IContainer) resource, state, true); } updateParentState(resource); validateInput(); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/ead46b18a7f254959c1428306b90fb9479690b28/CElementWorkingSetPage.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/workingsets/CElementWorkingSetPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
45,
1420,
1058,
273,
261,
45,
1420,
13,
871,
18,
21336,
5621,
9506,
202,
6494,
919,
273,
871,
18,
588,
11454,
5621,
6862,
9506,
202,
3413,
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,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
45,
1420,
1058,
273,
261,
45,
1420,
13,
871,
18,
21336,
5621,
9506,
202,
6494,
919,
273,
871,
18,
588,
11454,
5621,
6862,
9506,
202,
3413,
18... |
Log.log(Log.TRACE, MODULE, "preloadThumbnailFilenameFirst " + filename); | Log.log(Log.LEVEL_TRACE, MODULE, "preloadThumbnailFilenameFirst " + filename); | public void preloadThumbnailFilenameFirst( String filename ) { Log.log(Log.TRACE, MODULE, "preloadThumbnailFilenameFirst " + filename); if (!thumbnails.containsKey(filename)) { toLoad.push( filename ); rerun(); } } | 5431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5431/1faa1edcd69ba6f773ebcc5a8a21f029bd9e2263/ThumbnailCache.java/buggy/gallery_remote/com/gallery/GalleryRemote/ThumbnailCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20941,
16270,
5359,
3759,
12,
514,
1544,
262,
288,
202,
202,
1343,
18,
1330,
12,
1343,
18,
23827,
16,
14057,
16,
315,
1484,
945,
16270,
5359,
3759,
315,
397,
1544,
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,
225,
202,
482,
918,
20941,
16270,
5359,
3759,
12,
514,
1544,
262,
288,
202,
202,
1343,
18,
1330,
12,
1343,
18,
23827,
16,
14057,
16,
315,
1484,
945,
16270,
5359,
3759,
315,
397,
1544,
1769,
... |
final String text = jdp.getJavaDoc(); | final String text = provider.getJavaDoc(); | public void run() { ApplicationManager.getApplication().runReadAction(new Runnable() { public void run() { final String text = jdp.getJavaDoc(); SwingUtilities.invokeLater(new Runnable() { public void run() { if (text == null) { component.setText("No documentation found.", true); } else if (text.length() == 0) { component.setText(component.getText(), true); } else { component.setData(jdp.getElement(), text); } } }); } }); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/d5a04104a970b332d31d6272573989f51a944d64/JavaDocManager.java/clean/source/com/intellij/codeInsight/javadoc/JavaDocManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1086,
1435,
288,
3639,
4257,
1318,
18,
588,
3208,
7675,
2681,
1994,
1803,
12,
2704,
10254,
1435,
288,
1850,
1071,
918,
1086,
1435,
288,
5411,
727,
514,
977,
273,
2893,
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,
4202,
1071,
918,
1086,
1435,
288,
3639,
4257,
1318,
18,
588,
3208,
7675,
2681,
1994,
1803,
12,
2704,
10254,
1435,
288,
1850,
1071,
918,
1086,
1435,
288,
5411,
727,
514,
977,
273,
2893,
18,
588... |
public void resumeAll(SchedulingContext ctxt) throws JobPersistenceException; | void resumeAll(SchedulingContext ctxt) throws JobPersistenceException; | public void resumeAll(SchedulingContext ctxt) throws JobPersistenceException; | 55677 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55677/cf7f5f77ce5bb6364145230d302b86f1cdadea88/JobStore.java/clean/src/java/org/quartz/spi/JobStore.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10774,
1595,
12,
25401,
1042,
14286,
13,
5411,
1216,
3956,
13182,
503,
31,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
10774,
1595,
12,
25401,
1042,
14286,
13,
5411,
1216,
3956,
13182,
503,
31,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return cms.hasPermissions(res, C_READ_ACCESS); | return cms.hasPermissions(res, CmsPermissionSet.ACCESS_READ); | private boolean isReadable(CmsObject cms, String resPath) throws CmsException { CmsResource res = cms.readResource(resPath, CmsResourceFilter.IGNORE_EXPIRATION); return cms.hasPermissions(res, C_READ_ACCESS); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/f0e3cb28447c785c94d99b78261405c3fa88b2da/CmsAdminSyncProperties.java/clean/src/com/opencms/workplace/CmsAdminSyncProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
31255,
12,
4747,
921,
6166,
16,
514,
400,
743,
13,
225,
1216,
11228,
288,
3639,
7630,
400,
273,
6166,
18,
896,
1420,
12,
455,
743,
16,
21082,
18,
20118,
67,
18433,
24284,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
31255,
12,
4747,
921,
6166,
16,
514,
400,
743,
13,
225,
1216,
11228,
288,
3639,
7630,
400,
273,
6166,
18,
896,
1420,
12,
455,
743,
16,
21082,
18,
20118,
67,
18433,
24284,
17... |
for(Object aExceptionsThrown : exceptionsThrown){ final PsiType typeThrown = (PsiType) aExceptionsThrown; | if(exceptionsThrown.contains(typeCaught)){ continue; } for(PsiType typeThrown : exceptionsThrown){ | public void visitTryStatement(@NotNull PsiTryStatement statement){ super.visitTryStatement(statement); final PsiCodeBlock tryBlock = statement.getTryBlock(); if(tryBlock == null){ return; } final Set<PsiType> exceptionsThrown = ExceptionUtils.calculateExceptionsThrown(tryBlock); final int numExceptionsThrown = exceptionsThrown.size(); final Set<PsiType> exceptionsCaught = new HashSet<PsiType>(numExceptionsThrown); final PsiParameter[] parameters = statement.getCatchBlockParameters(); for(final PsiParameter parameter : parameters){ final PsiType typeCaught = parameter.getType(); for(Object aExceptionsThrown : exceptionsThrown){ final PsiType typeThrown = (PsiType) aExceptionsThrown; if(exceptionsCaught.contains(typeThrown)){ // don't do anything } else if(typeCaught.equals(typeThrown)){ exceptionsCaught.add(typeCaught); } else if(typeCaught.isAssignableFrom(typeThrown)){ exceptionsCaught.add(typeCaught); final PsiTypeElement typeElement = parameter.getTypeElement(); registerError(typeElement); return; } } } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/b12576899e3baa3c1964bf890c307328cc29d90c/TooBroadCatchInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/TooBroadCatchInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
7833,
3406,
26964,
5962,
453,
7722,
7833,
3406,
3021,
15329,
5411,
2240,
18,
11658,
7833,
3406,
12,
11516,
1769,
5411,
727,
453,
7722,
1085,
1768,
775,
1768,
273,
3021,
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,
540,
1071,
918,
3757,
7833,
3406,
26964,
5962,
453,
7722,
7833,
3406,
3021,
15329,
5411,
2240,
18,
11658,
7833,
3406,
12,
11516,
1769,
5411,
727,
453,
7722,
1085,
1768,
775,
1768,
273,
3021,
18,... |
AssertMo.assertIncludes( "contains expected description", "returns a default value", stub.describeTo(new StringBuffer()).toString() ); | AssertMo.assertIncludes("contains expected description", "returns a default value", stub.describeTo(new StringBuffer()).toString()); | public void testWritesDescritionToStringBuffer() { AssertMo.assertIncludes( "contains expected description", "returns a default value", stub.describeTo(new StringBuffer()).toString() ); } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/DefaultResultStubTest.java/clean/jmock/core/src/test/jmock/core/stub/DefaultResultStubTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8368,
4217,
583,
285,
5808,
1892,
1435,
288,
202,
202,
8213,
16727,
18,
11231,
16815,
12,
315,
12298,
2665,
2477,
3113,
1875,
202,
6,
6154,
279,
805,
460,
3113,
2398,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
8368,
4217,
583,
285,
5808,
1892,
1435,
288,
202,
202,
8213,
16727,
18,
11231,
16815,
12,
315,
12298,
2665,
2477,
3113,
1875,
202,
6,
6154,
279,
805,
460,
3113,
2398,... |
StringTokenizer tokens = new StringTokenizer(module); while(tokens.hasMoreTokens()) { String moduleName = tokens.nextToken(); | Set<String> moduleNames = new TreeSet(Collections.list(new StringTokenizer(module))); File[] subdirs = workspace.getLocal().listFiles(); if (subdirs != null) { for (File s : subdirs) { if (new File(s, "CVS").isDirectory()) { moduleNames.add(s.getName()); } } } for (String moduleName : moduleNames) { | public List<String> update(boolean dryRun, Launcher launcher, FilePath workspace, TaskListener listener) throws IOException { List<String> changedFileNames = new ArrayList<String>(); // file names relative to the workspace ArgumentListBuilder cmd = new ArgumentListBuilder(); cmd.add("cvs","-q","-z9"); if(dryRun) cmd.add("-n"); cmd.add("update","-PdC"); if(flatten) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); if(!run(launcher,cmd,listener,workspace, new ForkOutputStream(baos,listener.getLogger()))) return null; parseUpdateOutput("",baos, changedFileNames); } else { StringTokenizer tokens = new StringTokenizer(module); while(tokens.hasMoreTokens()) { String moduleName = tokens.nextToken(); // capture the output during update ByteArrayOutputStream baos = new ByteArrayOutputStream(); if(!run(launcher,cmd,listener, new FilePath(workspace, moduleName), new ForkOutputStream(baos,listener.getLogger()))) return null; // we'll run one "cvs log" command with workspace as the base, // so use path names that are relative to moduleName. parseUpdateOutput(moduleName+'/',baos, changedFileNames); } } return changedFileNames; } | 56266 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56266/ea4628ba920d10da006f5dc946fc71a2716c497c/CVSSCM.java/buggy/hudson/main/core/src/main/java/hudson/scm/CVSSCM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
780,
34,
1089,
12,
6494,
26147,
16,
14643,
264,
26618,
16,
24564,
6003,
16,
3837,
2223,
2991,
13,
1216,
1860,
288,
3639,
987,
32,
780,
34,
3550,
812,
1557,
273,
394,
2407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
32,
780,
34,
1089,
12,
6494,
26147,
16,
14643,
264,
26618,
16,
24564,
6003,
16,
3837,
2223,
2991,
13,
1216,
1860,
288,
3639,
987,
32,
780,
34,
3550,
812,
1557,
273,
394,
2407... |
if(Logger.shouldLog(Logger.DEBUG, this)) Logger.debug(this, "Decrypting with "+HexUtil.bytesToHex(tracker.sessionKey)); | Logger.minor(this, "Decrypting with "+HexUtil.bytesToHex(tracker.sessionKey)); | private boolean tryProcess(byte[] buf, int offset, int length, KeyTracker tracker) { // Need to be able to call with tracker == null to simplify code above if(tracker == null) { Logger.minor(this, "Tracker == null"); return false; } Logger.minor(this,"Entering tryProcess: "+buf+","+offset+","+length+","+tracker); /** * E_pcbc_session(H(seq+random+data)) E_pcfb_session(seq+random+data) * * So first two blocks are the hash, PCBC encoded (meaning the * first one is ECB, and the second one is ECB XORed with the * ciphertext and plaintext of the first block). */ BlockCipher sessionCipher = tracker.sessionCipher; if(sessionCipher == null) { Logger.minor(this, "No cipher"); return false; } if(Logger.shouldLog(Logger.DEBUG, this)) Logger.debug(this, "Decrypting with "+HexUtil.bytesToHex(tracker.sessionKey)); int blockSize = sessionCipher.getBlockSize() >> 3; if(sessionCipher.getKeySize() != sessionCipher.getBlockSize()) throw new IllegalStateException("Block size must be equal to key size"); if(HASH_LENGTH != blockSize) throw new IllegalStateException("Block size must be digest length!"); byte[] packetHash = new byte[HASH_LENGTH]; System.arraycopy(buf, offset, packetHash, 0, HASH_LENGTH); // Decrypt the sequence number and see if it's plausible // Verify the hash later PCFBMode pcfb; pcfb = new PCFBMode(sessionCipher); // Set IV to the hash, after it is encrypted pcfb.reset(packetHash); //Logger.minor(this,"IV:\n"+HexUtil.bytesToHex(packetHash)); byte[] seqBuf = new byte[4]; System.arraycopy(buf, offset+HASH_LENGTH, seqBuf, 0, 4); //Logger.minor(this, "Encypted sequence number: "+HexUtil.bytesToHex(seqBuf)); pcfb.blockDecipher(seqBuf, 0, 4); //Logger.minor(this, "Decrypted sequence number: "+HexUtil.bytesToHex(seqBuf)); int seqNumber = ((((((seqBuf[0] & 0xff) << 8) + (seqBuf[1] & 0xff)) << 8) + (seqBuf[2] & 0xff)) << 8) + (seqBuf[3] & 0xff); int targetSeqNumber = tracker.highestReceivedIncomingSeqNumber(); Logger.minor(this, "Target seq: "+targetSeqNumber); Logger.minor(this, "Sequence number: "+seqNumber+"="+Integer.toHexString(seqNumber)); if(seqNumber == -1) { // Ack/resendreq-only packet } else { // Now is it credible? // As long as it's within +/- 256, this is valid. if(targetSeqNumber != -1 && Math.abs(targetSeqNumber - seqNumber) > MAX_PACKETS_IN_FLIGHT) return false; } Logger.minor(this, "Sequence number received: "+seqNumber); // Plausible, so lets decrypt the rest of the data byte[] plaintext = new byte[length-(4+HASH_LENGTH)]; System.arraycopy(buf, offset+HASH_LENGTH+4, plaintext, 0, length-(HASH_LENGTH+4)); pcfb.blockDecipher(plaintext, 0, length-(HASH_LENGTH+4)); //Logger.minor(this, "Plaintext:\n"+HexUtil.bytesToHex(plaintext)); MessageDigest md = getDigest(); md.update(seqBuf); md.update(plaintext); byte[] realHash = md.digest(); // Now decrypt the original hash byte[] temp = new byte[blockSize]; System.arraycopy(buf, offset, temp, 0, blockSize); sessionCipher.decipher(temp, temp); System.arraycopy(temp, 0, packetHash, 0, blockSize); // Check the hash if(!java.util.Arrays.equals(packetHash, realHash)) { Logger.minor(this, "Packet possibly from "+tracker+" hash does not match:\npacketHash="+ HexUtil.bytesToHex(packetHash)+"\n realHash="+HexUtil.bytesToHex(realHash)+" ("+(length-HASH_LENGTH)+" bytes payload)"); return false; } // Verify tracker.pn.verified(tracker); if(seqNumber != -1 && tracker.alreadyReceived(seqNumber)) { tracker.queueAck(seqNumber); Logger.normal(this, "Received packet twice: "+seqNumber); return true; } for(int i=0;i<md.getDigestLength();i++) { packetHash[i] ^= buf[offset+i]; } node.random.acceptEntropyBytes(myPacketDataSource, packetHash, 0, md.getDigestLength(), 0.5); // Lots more to do yet! processDecryptedData(plaintext, seqNumber, tracker); return true; } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/32291975fc543ab3b9ddc50a4bcd992394800348/FNPPacketMangler.java/clean/src/freenet/node/FNPPacketMangler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
775,
2227,
12,
7229,
8526,
1681,
16,
509,
1384,
16,
509,
769,
16,
1929,
8135,
9745,
13,
288,
3639,
368,
12324,
358,
506,
7752,
358,
745,
598,
9745,
422,
446,
358,
16499,
981... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
775,
2227,
12,
7229,
8526,
1681,
16,
509,
1384,
16,
509,
769,
16,
1929,
8135,
9745,
13,
288,
3639,
368,
12324,
358,
506,
7752,
358,
745,
598,
9745,
422,
446,
358,
16499,
981... |
while ( (currentLine = input.readLine ()) != null) { currentTokens = new StringTokenizer (currentLine, "=\t\r\n"); if (currentTokens.hasMoreTokens ()) Key = currentTokens.nextToken ().trim (); if ( (Key != null) && !Key.startsWith ("#") && currentTokens.hasMoreTokens ()) { | while ((currentLine = input.readLine()) != null) { currentTokens = new StringTokenizer(currentLine, "=\t\r\n"); if (currentTokens.hasMoreTokens()) Key = currentTokens.nextToken().trim(); if ((Key != null) && !Key.startsWith("#") && currentTokens.hasMoreTokens()) { | OrderedProps (InputStream inputStream) throws IOException { BufferedReader input = new BufferedReader (new InputStreamReader (inputStream)); String currentLine, Key = null; StringTokenizer currentTokens; while ( (currentLine = input.readLine ()) != null) { currentTokens = new StringTokenizer (currentLine, "=\t\r\n"); if (currentTokens.hasMoreTokens ()) Key = currentTokens.nextToken ().trim (); if ( (Key != null) && !Key.startsWith ("#") && currentTokens.hasMoreTokens ()) { String temp[] = new String[2]; temp[0] = Key; temp[1] = currentTokens.nextToken ().trim (); attVec.addElement (temp); } } } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/7afa788066f31cf90db79de016f817aa843a0339/StylesheetSet.java/clean/source/org/jasig/portal/StylesheetSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
8524,
5047,
261,
4348,
10010,
13,
1216,
1860,
565,
288,
1377,
10633,
810,
225,
273,
394,
10633,
261,
2704,
15322,
261,
2630,
1228,
10019,
1377,
514,
22325,
16,
1929,
273,
446,
31,
1377,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8524,
5047,
261,
4348,
10010,
13,
1216,
1860,
565,
288,
1377,
10633,
810,
225,
273,
394,
10633,
261,
2704,
15322,
261,
2630,
1228,
10019,
1377,
514,
22325,
16,
1929,
273,
446,
31,
1377,
1... |
new Class[] { aInterface, XPCOMJavaProxyBase.class }, new XPCOMJavaProxy(aXPCOMInstance)); | new Class[] { aInterface, XPCOMJavaProxyBase.class }, new XPCOMJavaProxy(aXPCOMInstance)); | protected static Object createProxy(Class aInterface, long aXPCOMInstance) { return Proxy.newProxyInstance(aInterface.getClassLoader(), new Class[] { aInterface, XPCOMJavaProxyBase.class }, new XPCOMJavaProxy(aXPCOMInstance)); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/c640f3ef93fe424a02e6332def1cfa1efc5416af/XPCOMJavaProxy.java/buggy/extensions/java/xpcom/src/org/mozilla/xpcom/internal/XPCOMJavaProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
1033,
752,
3886,
12,
797,
279,
1358,
16,
1525,
279,
60,
3513,
1872,
1442,
13,
225,
288,
565,
327,
7659,
18,
2704,
3886,
1442,
12,
69,
1358,
18,
588,
7805,
9334,
21394,
394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
1033,
752,
3886,
12,
797,
279,
1358,
16,
1525,
279,
60,
3513,
1872,
1442,
13,
225,
288,
565,
327,
7659,
18,
2704,
3886,
1442,
12,
69,
1358,
18,
588,
7805,
9334,
21394,
394,
... |
String actiondataFilter, int refresh, String nameformat) { | String actiondataFilter, int refresh, String nameformat, String setName) { | private void emitModifiableSelect(PrintWriter out, Set s, ActionData ad, boolean isActionObject, String actiondataFilter, int refresh, String nameformat) { String str; if (s != null && s.size() >0 ) { Iterator iter = s.iterator(); out.print(" <TD><form clsname=\"UPDATEVALUE\" method=\"get\" ><br><br>" ); out.print(" <SELECT MULTIPLE NAME=\"NEWVALUE\" size=\"3\" "); out.print(" STYLE=\"margin: 0em 0 0 0em; color: white; background-color: red; font-size: 8pt;\">\n"); while (iter.hasNext()) { str = iter.next().toString(); out.print(" <OPTION value=\""+ str +"\" UNSELECTED />" + str + "\n"); } out.print(" </SELECT>\n"); out.println(" <input type=hidden name=\"TYPE\" value=\""+(isActionObject?"ACTIONS":"WRAPPERS")+"\" >"); out.println(" <input type=hidden name=\"UID\" value=\""+(isActionObject?ad.getAction().getUID():ad.getWrapper().getUID())+"\" >"); out.println(" <input type=hidden name=\"REFRESH\" value=\""+refresh+"\" >"); out.println(" <input type=hidden name=\"NAMEFORMAT\" value=\""+nameformat+"\" >"); out.println(" <input type=hidden name=\"FILTER\" value=\""+actiondataFilter+"\" ><br>"); out.print(" <input type=submit name=\"Submit\" value=\"Set Permitted\" size=15 "); out.println(" STYLE=\"margin: 0em 0 0 0em; color: white; background-color: blue; font-size: 6pt;\">"); out.println(" \n</form></TD>"); } else { //no values out.print(" <TD>Null</TD>\n"); } } | 11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/e642c2a0862405af182c485aa6f6d16f7b936766/ActionMonitorServlet.java/buggy/Coordinator/src/org/cougaar/coordinator/test/coordination/ActionMonitorServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
3626,
1739,
8424,
3391,
12,
5108,
2289,
596,
16,
1000,
272,
16,
4382,
751,
1261,
16,
1250,
353,
1803,
921,
16,
4766,
6647,
514,
1301,
892,
1586,
16,
509,
4460,
16,
514,
508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
918,
3626,
1739,
8424,
3391,
12,
5108,
2289,
596,
16,
1000,
272,
16,
4382,
751,
1261,
16,
1250,
353,
1803,
921,
16,
4766,
6647,
514,
1301,
892,
1586,
16,
509,
4460,
16,
514,
508,
... |
int initPath(int index) | public void initPath(int index, Channel path) | public void init() { add(new FeedbackLoop() { public void init() { setDelay(2); setJoiner(WEIGHTED_ROUND_ROBIN(0, 1)); setBody(new Filter() { Channel input = new Channel(Integer.TYPE, 1, 1); Channel output = new Channel(Integer.TYPE, 1); public void work() { output.pushInt(input.peekInt(1) + input.peekInt(0)); input.pop(); } }); setSplitter(DUPLICATE()); } int initPath(int index) { return 1; } }); add (new Filter () { Channel input = new Channel (Integer.TYPE, 1); public void initIO () { streamInput = input; } public void work () { System.out.println (input.popInt ()); } }); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/ab40a093ff98c7575df6b961598feef3267336a8/Fib.java/buggy/streams/apps/examples/fib/Fib.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1435,
565,
288,
3639,
527,
12,
2704,
14013,
823,
6452,
1435,
5411,
288,
7734,
1071,
918,
1208,
1435,
7734,
288,
10792,
444,
6763,
12,
22,
1769,
10792,
444,
4572,
264,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1435,
565,
288,
3639,
527,
12,
2704,
14013,
823,
6452,
1435,
5411,
288,
7734,
1071,
918,
1208,
1435,
7734,
288,
10792,
444,
6763,
12,
22,
1769,
10792,
444,
4572,
264,
12,... |
public long getNextProfileID() throws KettleDatabaseException | public synchronized long getNextProfileID() throws KettleDatabaseException | public long getNextProfileID() throws KettleDatabaseException { return getNextID("R_PROFILE", "ID_PROFILE"); } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/4b43172b1fa3ffc5a55f1a91b608713e59b09cdb/Repository.java/buggy/kettle/src/be/ibridge/kettle/repository/Repository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1525,
6927,
4029,
734,
1435,
1216,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
2463,
6927,
734,
2932,
54,
67,
22462,
3113,
315,
734,
67,
22462,
8863,
202,
97,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1525,
6927,
4029,
734,
1435,
1216,
1475,
278,
5929,
4254,
503,
202,
95,
202,
202,
2463,
6927,
734,
2932,
54,
67,
22462,
3113,
315,
734,
67,
22462,
8863,
202,
97,
2,
-100,
-100... |
final String formatString = stringCalc.evaluateString(evaluator); final Format format = new Format(formatString, locale); | public Calc compileCall(FunCall call, ExpCompiler compiler) { final Calc calc = compiler.compileScalar(call.getArg(0), true); final StringCalc stringCalc = compiler.compileString(call.getArg(1)); return new AbstractStringCalc(call, new Calc[] {calc, stringCalc}) { public String evaluateString(Evaluator evaluator) { final Object o = calc.evaluate(evaluator); final String formatString = stringCalc.evaluateString(evaluator); final Format format = new Format(formatString, locale); return format.format(o); } }; } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/5aca340e1cdbb6179077d96383341db48f0997be/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
29128,
4074,
1477,
12,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
18701,
727,
29128,
7029,
273,
4766,
565,
5274,
18,
11100,
13639,
12,
1991,
18,
588,
4117,
12,
20,
3631,
638,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
29128,
4074,
1477,
12,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
18701,
727,
29128,
7029,
273,
4766,
565,
5274,
18,
11100,
13639,
12,
1991,
18,
588,
4117,
12,
20,
3631,
638,... | |
textPane.setCaretPosition(rule.start.getStartIndex()); | editor.setCaretPosition(rule.start.getStartIndex()); | public void goToRule(ParserRule rule) { textPane.setCaretPosition(rule.start.getStartIndex()); } | 51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/436dfac0820b7f97c5dbfa0a5a51e36ec25fb64f/Rules.java/buggy/src/org/antlr/works/editor/rules/Rules.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1960,
774,
2175,
12,
2678,
2175,
1720,
13,
288,
3639,
4858,
18,
542,
39,
20731,
2555,
12,
5345,
18,
1937,
18,
588,
16792,
10663,
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,
918,
1960,
774,
2175,
12,
2678,
2175,
1720,
13,
288,
3639,
4858,
18,
542,
39,
20731,
2555,
12,
5345,
18,
1937,
18,
588,
16792,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
final String staticState = existingCacheEntry.xformsState.getStaticState(); final String dynamicState = existingCacheEntry.xformsState.getDynamicState(); | private void removeCacheEntry(CacheEntry existingCacheEntry) { final String staticState = existingCacheEntry.xformsState.getStaticState(); final String dynamicState = existingCacheEntry.xformsState.getDynamicState(); final int stateSize = (staticState.length() + dynamicState.length()) * 2;// TODO linkedList.remove(existingCacheEntry); keyToEntryMap.remove(existingCacheEntry.pageGenerationId); // Update cache size currentCacheSize -= stateSize; } | 57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/455dea85ae4dc265e610b3f49b36a370d44e9504/XFormsServerSessionCache.java/buggy/src/java/org/orbeon/oxf/xforms/XFormsServerSessionCache.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1206,
27630,
12,
27630,
2062,
27630,
13,
288,
3639,
727,
514,
760,
1119,
273,
2062,
27630,
18,
92,
9741,
1119,
18,
588,
5788,
1119,
5621,
3639,
727,
514,
5976,
1119,
273,
2062,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1206,
27630,
12,
27630,
2062,
27630,
13,
288,
3639,
727,
514,
760,
1119,
273,
2062,
27630,
18,
92,
9741,
1119,
18,
588,
5788,
1119,
5621,
3639,
727,
514,
5976,
1119,
273,
2062,... | |
((org.eclipse.osgi.framework.internal.core.Bundle) bundle).startLevel = newSL; | public void setBundleStartLevel(org.osgi.framework.Bundle bundle, int newSL) { String exceptionText = ""; if (bundle.getBundleId() == 0) { // system bundle has id=0 exceptionText = Msg.formatter.getString("STARTLEVEL_CANT_CHANGE_SYSTEMBUNDLE_STARTLEVEL"); } else if (bundle.getState() == Bundle.UNINSTALLED) { exceptionText = Msg.formatter.getString("BUNDLE_UNINSTALLED_EXCEPTION"); } else if (newSL <= 0) { exceptionText = Msg.formatter.getString("STARTLEVEL_EXCEPTION_INVALID_REQUESTED_STARTLEVEL", "" + newSL); } if (exceptionText.length() > 0) { throw new IllegalArgumentException(exceptionText); } try { // if the bundle's startlevel is not already at the requested startlevel if (newSL != ((org.eclipse.osgi.framework.internal.core.Bundle) bundle).startLevel) { Bundle b = (Bundle) bundle; b.bundledata.setStartLevel(newSL); b.bundledata.save(); ((org.eclipse.osgi.framework.internal.core.Bundle) bundle).startLevel = newSL; framework.checkAdminPermission(); // handle starting or stopping the bundle asynchronously issueEvent(new StartLevelEvent(StartLevelEvent.CHANGE_BUNDLE_SL, newSL, (Bundle) bundle)); } } catch (IOException e) { framework.publishFrameworkEvent(FrameworkEvent.ERROR, bundle, e); } } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/8450ab3f71cbf13f65b8ac34fb55c6f6bf0b01b0/StartLevelImpl.java/buggy/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/StartLevelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3405,
1685,
2355,
12,
3341,
18,
538,
10052,
18,
12303,
18,
3405,
3440,
16,
509,
394,
4559,
13,
288,
202,
202,
780,
1520,
1528,
273,
1408,
31,
202,
202,
430,
261,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3405,
1685,
2355,
12,
3341,
18,
538,
10052,
18,
12303,
18,
3405,
3440,
16,
509,
394,
4559,
13,
288,
202,
202,
780,
1520,
1528,
273,
1408,
31,
202,
202,
430,
261,
9... | |
return tempDir.getPath(); | return persistentTempBucketFactory.getDir().toString(); | public String get() { return tempDir.getPath(); } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/f43dcd3eaa49682824e40c5d428fa750be4517fe/Node.java/clean/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
514,
336,
1435,
288,
25083,
202,
2463,
20719,
18,
588,
743,
5621,
6862,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
482,
514,
336,
1435,
288,
25083,
202,
2463,
20719,
18,
588,
743,
5621,
6862,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
cs.disconnect(edge, false); cs.connect(edge, this.getPort(), false); this.addSourceEdge(edge); edgesToRemove.add(edge); | System.out.println(" The container of the edge is " + ((GEStreamNode) ((DefaultPort)edge.getSource()).getParent()).getEncapsulatingNode()); if (!(this.equals(((GEStreamNode) ((DefaultPort)edge.getSource()).getParent()).getEncapsulatingNode()))) { cs.disconnect(edge, false); cs.connect(edge, this.getPort(), false); this.addTargetEdge(edge); edgesToRemove.add(edge); } | public void collapse() { Object[] nodeList = this.getContainedElements().toArray(); ConnectionSet cs = this.localGraphStruct.getConnectionSet(); this.localGraphStruct.getJGraph().getGraphLayoutCache().setVisible(new Object[]{this}, true); Iterator splitEdgeIter = localGraphStruct.getGraphModel().edges(this.getSplitter().getPort()); Iterator joinEdgeIter = localGraphStruct.getGraphModel().edges(this.getJoiner().getPort()); ArrayList edgesToRemove = new ArrayList(); while (joinEdgeIter.hasNext()) { DefaultEdge edge = (DefaultEdge) joinEdgeIter.next(); Iterator sourceIter = this.getJoiner().getTargetEdges().iterator(); while(sourceIter.hasNext()) { DefaultEdge target = (DefaultEdge) sourceIter.next(); if(target.equals(edge)) { System.out.println(" GEFeedbackLoop Collapse: target edges were equal"); cs.disconnect(edge, false); cs.connect(edge, this.getPort(), false); this.addSourceEdge(edge); edgesToRemove.add(edge); } } } while (splitEdgeIter.hasNext()) { DefaultEdge edge = (DefaultEdge) splitEdgeIter.next(); Iterator targetIter = this.getSplitter().getSourceEdges().iterator(); while(targetIter.hasNext()) { DefaultEdge target = (DefaultEdge) targetIter.next(); if (target.equals(edge)) { System.out.println(" GEFeedbackLoop Collapse: source edges were equal"); cs.disconnect(edge,true); cs.connect(edge, this.getPort(),true); this.addTargetEdge(edge); edgesToRemove.add(edge); } } } Object[] removeArray = edgesToRemove.toArray(); for(int i = 0; i<removeArray.length;i++) { this.splitter.removeSourceEdge((DefaultEdge)removeArray[i]); this.splitter.removeTargetEdge((DefaultEdge)removeArray[i]); this.joiner.removeSourceEdge((DefaultEdge)removeArray[i]); this.joiner.removeTargetEdge((DefaultEdge)removeArray[i]); } GraphConstants.setAutoSize(this.attributes, true); this.localGraphStruct.getGraphModel().edit(localGraphStruct.getAttributes(), cs, null, null); this.localGraphStruct.getJGraph().getGraphLayoutCache().setVisible(nodeList, false); for (int i = level - 1; i >= 0; i--) { this.localGraphStruct.containerNodes.hideContainersAtLevel(i); } JGraphLayoutManager manager = new JGraphLayoutManager(this.localGraphStruct); manager.arrange(); for (int i = level - 1; i >= 0; i--) { this.localGraphStruct.setLocationContainersAtLevel(i); } } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/9dfc586ab7ed1d94661e7d7e94d22b61c25fe11d/GEFeedbackLoop.java/buggy/streams/src/streamit/eclipse/grapheditor/graph/GEFeedbackLoop.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13627,
1435,
202,
95,
202,
202,
921,
8526,
10198,
273,
333,
18,
588,
660,
8707,
3471,
7675,
31447,
5621,
202,
202,
1952,
694,
2873,
273,
333,
18,
3729,
4137,
3823,
18,
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,
225,
202,
482,
918,
13627,
1435,
202,
95,
202,
202,
921,
8526,
10198,
273,
333,
18,
588,
660,
8707,
3471,
7675,
31447,
5621,
202,
202,
1952,
694,
2873,
273,
333,
18,
3729,
4137,
3823,
18,
58... |
if(method.getReturnType() instanceof VoidType) | if(methodref.returnType() instanceof VoidType) | public ContextValue getReturningContextValue() { if(method.getReturnType() instanceof VoidType) return super.getReturningContextValue(); // null value // This shouldn't get triggered as long as we are eagerly restructuring // in the matcher above if(stmt instanceof InvokeStmt) stmt=Restructure.getEquivAssignStmt(container,(InvokeStmt) stmt); AssignStmt astmt=(AssignStmt) stmt; return new JimpleValue(astmt.getLeftOp()); } | 236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/997f4e7c5dc7eab7f3734a2c9600492132debb26/MethodCallShadowMatch.java/buggy/aop/abc/src/abc/weaving/matching/MethodCallShadowMatch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1772,
620,
26594,
310,
1042,
620,
1435,
288,
202,
430,
12,
2039,
18,
588,
9102,
1435,
1276,
6988,
559,
13,
202,
565,
327,
2240,
18,
588,
28365,
1042,
620,
5621,
225,
368,
446,
460... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1772,
620,
26594,
310,
1042,
620,
1435,
288,
202,
430,
12,
2039,
18,
588,
9102,
1435,
1276,
6988,
559,
13,
202,
565,
327,
2240,
18,
588,
28365,
1042,
620,
5621,
225,
368,
446,
460... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.