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(root == null) return "."; return root.toString();
|
StringBuffer result = new StringBuffer(); for(IndexedTreeIterator i = iterator(0); i.hasNext(); ) { if(result.length() > 0) result.append(", "); result.append(i.next()); } return result.toString();
|
public String toString() { if(root == null) return "."; return root.toString(); }
|
10062 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10062/1553b9191b9484459d2fdb64b708a965b843c758/IndexedTree.java/buggy/source/ca/odell/glazedlists/impl/adt/IndexedTree.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
309,
12,
3085,
422,
446,
13,
327,
4585,
31,
3639,
327,
1365,
18,
10492,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
514,
1762,
1435,
288,
3639,
309,
12,
3085,
422,
446,
13,
327,
4585,
31,
3639,
327,
1365,
18,
10492,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.activeWorkbenchPageContextActivationService = activeWorkbenchPageContextActivationService;
|
this.activeWorkbenchPageContextActivationService = activeWorkbenchPageContextActivationService;
|
void updateActiveCommandIdsAndActiveContextIds() { IWorkbenchWindow activeWorkbenchWindow = getActiveWorkbenchWindow(); if (activeWorkbenchWindow != null && !(activeWorkbenchWindow instanceof WorkbenchWindow)) activeWorkbenchWindow = null; //IActionService activeWorkbenchWindowActionService = activeWorkbenchWindow != null ? ((WorkbenchWindow) activeWorkbenchWindow).getActionService() : null; //IContextActivationService activeWorkbenchWindowContextActivationService = activeWorkbenchWindow != null ? ((WorkbenchWindow) activeWorkbenchWindow).getContextActivationService() : null; IWorkbenchPage activeWorkbenchPage = activeWorkbenchWindow != null ? activeWorkbenchWindow.getActivePage() : null; IActionService activeWorkbenchPageActionService = activeWorkbenchPage != null ? ((WorkbenchPage) activeWorkbenchPage).getActionService() : null; IContextActivationService activeWorkbenchPageContextActivationService = activeWorkbenchPage != null ? ((WorkbenchPage) activeWorkbenchPage).getContextActivationService() : null; IPartService activePartService = activeWorkbenchWindow != null ? activeWorkbenchWindow.getPartService() : null; IWorkbenchPart activeWorkbenchPart = activePartService != null ? activePartService.getActivePart() : null; IWorkbenchPartSite activeWorkbenchPartSite = activeWorkbenchPart != null ? activeWorkbenchPart.getSite() : null; IActionService activeWorkbenchPartActionService = activeWorkbenchPartSite != null ? ((PartSite) activeWorkbenchPartSite).getActionService() : null; IContextActivationService activeWorkbenchPartContextActivationService = activeWorkbenchPartSite != null ? ((PartSite) activeWorkbenchPartSite).getContextActivationService() : null; if (activeWorkbenchWindow != this.activeWorkbenchWindow) { if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.removePageListener(pageListener); this.activeWorkbenchWindow.getPartService().removePartListener(partListener); ((WorkbenchWindow) this.activeWorkbenchWindow).getPerspectiveService().removePerspectiveListener(internalPerspectiveListener); } this.activeWorkbenchWindow = activeWorkbenchWindow; if (this.activeWorkbenchWindow != null) { this.activeWorkbenchWindow.addPageListener(pageListener); this.activeWorkbenchWindow.getPartService().addPartListener(partListener); ((WorkbenchWindow) this.activeWorkbenchWindow).getPerspectiveService().addPerspectiveListener(internalPerspectiveListener); } } /* if (activeWorkbenchWindowActionService != this.activeWorkbenchWindowActionService) { if (this.activeWorkbenchWindowActionService != null) this.activeWorkbenchWindowActionService.removeActionServiceListener(actionServiceListener); this.activeWorkbenchWindow = activeWorkbenchWindow; this.activeWorkbenchWindowActionService = activeWorkbenchWindowActionService; if (this.activeWorkbenchWindowActionService != null) this.activeWorkbenchWindowActionService.addActionServiceListener(actionServiceListener); } */ if (activeWorkbenchPageActionService != this.activeWorkbenchPageActionService) { if (this.activeWorkbenchPageActionService != null) this.activeWorkbenchPageActionService.removeActionServiceListener(actionServiceListener); this.activeWorkbenchPage = activeWorkbenchPage; this.activeWorkbenchPageActionService = activeWorkbenchPageActionService; if (this.activeWorkbenchPageActionService != null) this.activeWorkbenchPageActionService.addActionServiceListener(actionServiceListener); } if (activeWorkbenchPartActionService != this.activeWorkbenchPartActionService) { if (this.activeWorkbenchPartActionService != null) this.activeWorkbenchPartActionService.removeActionServiceListener(actionServiceListener); this.activeWorkbenchPart = activeWorkbenchPart; this.activeWorkbenchPartActionService = activeWorkbenchPartActionService; if (this.activeWorkbenchPartActionService != null) this.activeWorkbenchPartActionService.addActionServiceListener(actionServiceListener); } SortedMap actionsById = new TreeMap(); actionsById.putAll(getActionService().getActionsById()); //if (this.activeWorkbenchWindowActionService != null) // actionsById.putAll(this.activeWorkbenchWindowActionService.getActionsById()); if (this.activeWorkbenchWindow != null) { actionsById.putAll(((WorkbenchWindow) this.activeWorkbenchWindow).getActionsForGlobalActions()); actionsById.putAll(((WorkbenchWindow) this.activeWorkbenchWindow).getActionsForActionSets()); } if (this.activeWorkbenchPageActionService != null) actionsById.putAll(this.activeWorkbenchPageActionService.getActionsById()); if (this.activeWorkbenchPartActionService != null) actionsById.putAll(this.activeWorkbenchPartActionService.getActionsById()); commandManager.setActionsById(actionsById); /* if (activeWorkbenchWindowContextActivationService != this.activeWorkbenchWindowContextActivationService) { if (this.activeWorkbenchWindowContextActivationService != null) this.activeWorkbenchWindowContextActivationService.removeContextActivationServiceListener(contextActivationServiceListener); this.activeWorkbenchWindow = activeWorkbenchWindow; this.activeWorkbenchWindowContextActivationService = activeWorkbenchWindowContextActivationService; if (this.activeWorkbenchWindowContextActivationService != null) this.activeWorkbenchWindowContextActivationService.addContextActivationServiceListener(contextActivationServiceListener); } */ if (activeWorkbenchPageContextActivationService != this.activeWorkbenchPageContextActivationService) { if (this.activeWorkbenchPageContextActivationService != null) this.activeWorkbenchPageContextActivationService.removeContextActivationServiceListener(contextActivationServiceListener); this.activeWorkbenchPage = activeWorkbenchPage; this.activeWorkbenchPageContextActivationService = activeWorkbenchPageContextActivationService; if (this.activeWorkbenchPageContextActivationService != null) this.activeWorkbenchPageContextActivationService.addContextActivationServiceListener(contextActivationServiceListener); } if (activeWorkbenchPartContextActivationService != this.activeWorkbenchPartContextActivationService) { if (this.activeWorkbenchPartContextActivationService != null) this.activeWorkbenchPartContextActivationService.removeContextActivationServiceListener(contextActivationServiceListener); this.activeWorkbenchPart = activeWorkbenchPart; this.activeWorkbenchPartContextActivationService = activeWorkbenchPartContextActivationService; if (this.activeWorkbenchPartContextActivationService != null) this.activeWorkbenchPartContextActivationService.addContextActivationServiceListener(contextActivationServiceListener); } SortedSet activeContextIds = new TreeSet(); activeContextIds.addAll(getContextActivationService().getActiveContextIds()); //if (this.activeWorkbenchWindowContextActivationService != null) // activeContextIds.addAll(this.activeWorkbenchWindowContextActivationService.getActiveContextIds()); if (this.activeWorkbenchPageContextActivationService != null) activeContextIds.addAll(this.activeWorkbenchPageContextActivationService.getActiveContextIds()); if (this.activeWorkbenchPartContextActivationService != null) activeContextIds.addAll(this.activeWorkbenchPartContextActivationService.getActiveContextIds()); contextManager.setActiveContextIds(new ArrayList(activeContextIds)); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c982c620ee74d8f88359cf86b9700d8f8f07c71a/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1089,
3896,
2189,
2673,
1876,
3896,
1042,
2673,
1435,
288,
202,
202,
45,
2421,
22144,
3829,
2695,
2421,
22144,
3829,
273,
11960,
2421,
22144,
3829,
5621,
9506,
202,
430,
261,
3535,
2421,
22144,
3829,
480,
446,
597,
401,
12,
3535,
2421,
22144,
3829,
1276,
4147,
22144,
3829,
3719,
1082,
202,
3535,
2421,
22144,
3829,
273,
446,
31,
9506,
202,
759,
45,
1803,
1179,
2695,
2421,
22144,
3829,
1803,
1179,
273,
2695,
2421,
22144,
3829,
480,
446,
692,
14015,
2421,
22144,
3829,
13,
2695,
2421,
22144,
3829,
2934,
588,
1803,
1179,
1435,
294,
446,
31,
202,
202,
759,
45,
1042,
14857,
1179,
2695,
2421,
22144,
3829,
1042,
14857,
1179,
273,
2695,
2421,
22144,
3829,
480,
446,
692,
14015,
2421,
22144,
3829,
13,
2695,
2421,
22144,
3829,
2934,
29120,
14857,
1179,
1435,
294,
446,
31,
9506,
202,
45,
2421,
22144,
1964,
2695,
2421,
22144,
1964,
273,
2695,
2421,
22144,
3829,
480,
446,
692,
2695,
2421,
22144,
3829,
18,
588,
3896,
1964,
1435,
294,
446,
31,
202,
202,
45,
1803,
1179,
2695,
2421,
22144,
1964,
1803,
1179,
273,
2695,
2421,
22144,
1964,
480,
446,
692,
14015,
2421,
22144,
1964,
13,
2695,
2421,
22144,
1964,
2934,
588,
1803,
1179,
1435,
294,
446,
31,
202,
202,
45,
1042,
14857,
1179,
2695,
2421,
22144,
1964,
1042,
14857,
1179,
273,
2695,
2421,
22144,
1964,
480,
446,
692,
14015,
2421,
22144,
1964,
13,
2695,
2421,
22144,
1964,
2934,
29120,
14857,
1179,
1435,
294,
446,
31,
9506,
202,
45,
1988,
1179,
2695,
1988,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1089,
3896,
2189,
2673,
1876,
3896,
1042,
2673,
1435,
288,
202,
202,
45,
2421,
22144,
3829,
2695,
2421,
22144,
3829,
273,
11960,
2421,
22144,
3829,
5621,
9506,
202,
430,
261,
3535,
2421,
22144,
3829,
480,
446,
597,
401,
12,
3535,
2421,
22144,
3829,
1276,
4147,
22144,
3829,
3719,
1082,
202,
3535,
2421,
22144,
3829,
273,
446,
31,
9506,
202,
759,
45,
1803,
1179,
2695,
2421,
22144,
3829,
1803,
1179,
273,
2695,
2421,
22144,
3829,
480,
446,
692,
14015,
2421,
22144,
3829,
13,
2695,
2421,
22144,
3829,
2934,
588,
1803,
1179,
1435,
294,
446,
31,
202,
202,
759,
45,
1042,
14857,
1179,
2695,
2421,
22144,
3829,
1042,
14857,
1179,
273,
2695,
2421,
22144,
3829,
480,
446,
692,
2
] |
float[] result;
|
protected HashMap constructSystemDict() { HashMap systemDict = new HashMap(); // newpath systemDict.put("newpath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.newpath(); } }); // moveto systemDict.put("moveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.moveto(data[0], data[1]); } }); // rmoveto systemDict.put("rmoveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rmoveto(data[0], data[1]); } }); // lineto systemDict.put("lineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.lineto(data[0], data[1]); } }); // rlineto systemDict.put("rlineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rlineto(data[0], data[1]); } }); // arc systemDict.put("arc", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arc(data[0], data[1], data[2], data[3], data[4]); } }); // arcn systemDict.put("arcn", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arcn(data[0], data[1], data[2], data[3], data[4]); } }); // curveto systemDict.put("curveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.curveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // rcurveto systemDict.put("rcurveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.rcurveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // closepath systemDict.put("closepath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.closepath(); } }); // gsave systemDict.put("gsave", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.gsave(); } }); // grestore systemDict.put("grestore", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.grestore(); } }); // translate systemDict.put("translate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.translate(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("translate: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("translate: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("translate: wrong arguments"); } ArrayList array = (ArrayList) data[2]; if (! (array.size() == 6)) { throw new PainterException("translate: wrong arguments"); } AffineTransform at = new AffineTransform(); at.translate( ( (Number) data[0]).doubleValue(), ( (Number) data[1]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // rotate systemDict.put("rotate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(1); at.rotate(data[0] * Math.PI / 180.0d); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; AffineTransform at = new AffineTransform(); data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("rotate: wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("rotate: wrong arguments"); } ArrayList array = (ArrayList) data[1]; if (! (array.size() == 6)) { throw new PainterException("rotate: wrong arguments"); } at.rotate( ( (Number) data[0]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // scale systemDict.put("scale", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.scale(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("scale: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("scale: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("scale: wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("scale: wrong arguments"); } entries[0] = ( (Number) data[0]).doubleValue(); entries[1] = 0.0d; entries[2] = 0.0d; entries[3] = ( (Number) data[1]).doubleValue(); entries[4] = 0.0d; entries[5] = 0.0d; for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // currentmatrix systemDict.put("currentmatrix", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof ArrayList)) { throw new PainterException("currentmatrix: wrong argument"); } ArrayList array = (ArrayList) data[0]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("currentmatrix: wrong arguments"); } AffineTransform ctm = context.pencil.graphics.getTransform(); ctm.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } }); // setmatrix systemDict.put("setmatrix", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof ArrayList)) { throw new PainterException("setmatrix: wrong argument"); } ArrayList array = (ArrayList) data[0]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("setmatrix: wrong arguments"); } entries[0] = ((Number)array.get(0)).doubleValue(); entries[1] = ((Number)array.get(1)).doubleValue(); entries[2] = ((Number)array.get(2)).doubleValue(); entries[3] = ((Number)array.get(3)).doubleValue(); entries[4] = ((Number)array.get(4)).doubleValue(); entries[5] = ((Number)array.get(5)).doubleValue(); AffineTransform at = new AffineTransform(entries); context.pencil.graphics.setTransform(at); } }); // stroke systemDict.put("stroke", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.stroke(); } }); // fill systemDict.put("fill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.fill(); } }); // eofill systemDict.put("eofill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.eofill(); } }); // show systemDict.put("show", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("show: wrong arguments"); } context.pencil.show( (String) data[0]); } }); // stringwidth systemDict.put("stringwidth", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; float[] result; java.awt.Font font; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("stringwidth: wrong arguments"); } font = context.pencil.graphics.getFont(); Rectangle2D rect = font.getStringBounds( (String) data[0], context.pencil.graphics. getFontRenderContext()); context.operands.push(new Float(rect.getWidth())); context.operands.push(new Float(rect.getHeight())); } }); // showpage systemDict.put("showpage", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.showpage(); } }); // findfont systemDict.put("findfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("findfont: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("findfont: wrong arguments"); } context.operands.push(context.pencil.findFont( (String) patoken.value)); } }); // makefont systemDict.put("makefont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof java.awt.Font)) { throw new PainterException("makefont: wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("makefont: wrong arguments"); } // @TODO implement!!! context.operands.push(data[0]); } }); // scalefont systemDict.put("scalefont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof java.awt.Font)) { throw new PainterException("scalefont: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("scalefont: wrong arguments"); } java.awt.Font fn=( (java.awt.Font) data[0]).deriveFont( ( (Number) data[1]). floatValue()); System.out.println("Fonthoehe:"+fn.getSize2D()); context.operands.push(fn ); } }); // setfont systemDict.put("setfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof java.awt.Font)) { throw new PainterException("setfont: wrong arguments"); } java.awt.Font fn=(java.awt.Font)data[0]; System.out.println("Fonthoehe:"+fn.getSize2D()); /** * @todo two times the same? */ context.pencil.graphics.setFont( fn); context.pencil.state.font=fn; } }); // def systemDict.put("def", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof PAToken)) { throw new PainterException("def: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("def: wrong arguments"); } try { ( (HashMap) context.dictionaries.peek()).put(patoken.value, data[1]); } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } }); // bind systemDict.put("bind", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("bind: wrong arguments, not PAToken"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("bind: wrong arguments, not Procedure " + patoken.value); } context.engine.bindProcedure(patoken); context.operands.push(patoken); } }); // mul systemDict.put("mul", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] * data[1])); } }); // div systemDict.put("div", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] / data[1])); } }); // mod systemDict.put("mod", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); int a, b, m; a = (int) data[0]; b = (int) data[1]; m = a % b; context.operands.push(new Integer(m)); } }); // add systemDict.put("add", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] + data[1])); } }); // neg systemDict.put("neg", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double( -data[0])); } }); // ceiling systemDict.put("ceiling", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.ceil(data[0]))); } }); // sub systemDict.put("sub", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] - data[1])); } }); // atan systemDict.put("atan", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(Math.atan2(data[0], data[1]))); } }); // sin systemDict.put("sin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sin(data[0] * Math.PI / 180.0))); } }); // cos systemDict.put("cos", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.cos(data[0] * Math.PI / 180.0))); } }); // sqrt systemDict.put("sqrt", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sqrt(data[0]))); } }); // ln systemDict.put("log", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.log(data[0]))); } }); // exp systemDict.put("exp", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(Math.pow(data[0], data[1]))); } }); // exch systemDict.put("exch", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); context.operands.push(data[1]); context.operands.push(data[0]); } }); // dup systemDict.put("dup", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); context.operands.push(data[0]); context.operands.push(data[0]); } }); // roll systemDict.put("roll", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; Object rollData[]; data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("roll: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("roll: wrong arguments"); } int numberOfElements, numberOfPositions, i; numberOfElements = ( (Number) data[0]).intValue(); numberOfPositions = ( (Number) data[1]).intValue(); if (numberOfPositions == 0 || numberOfElements <= 0) { return; } rollData = context.popOperands(numberOfElements); if (numberOfPositions < 0) { numberOfPositions = -numberOfPositions; numberOfPositions = numberOfPositions % numberOfElements; // downward roll for (i = numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfPositions; i++) { context.operands.push(rollData[i]); } } else { numberOfPositions = numberOfPositions % numberOfElements; // upward roll for (i = numberOfElements - numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfElements - numberOfPositions; i++) { context.operands.push(rollData[i]); } } } }); // pop systemDict.put("pop", new PACommand() { public void execute(PAContext context) throws PainterException { context.popOperands(1); } }); // index systemDict.put("index", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number)) { throw new PainterException("index: wrong arguments"); } int index = ( (Number) data[0]).intValue(); try { context.operands.push(context.operands.elementAt(index)); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } }); // mark systemDict.put("mark", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new PAToken(null, PAToken.MARK)); } }); // cvx systemDict.put("cvx", new PACommand() { public void execute(PAContext context) throws PainterException { Object data; data = context.operands.pop(); ArrayList ar = (ArrayList) data; Stack stack = new Stack(); for (int i = ar.size() - 1; i >= 0; i--) { stack.add(ar.get(i)); } PAToken patoken = new PAToken(stack, PAToken.PROCEDURE);// patoken.type=PAToken.PROCEDURE; context.operands.push(patoken); } }); // cleartomark systemDict.put("cleartomark", new PACommand() { public void execute(PAContext context) throws PainterException { Object data; boolean finished = false; while (!finished) { try { data = context.operands.pop(); if (data instanceof PAToken) { if ( ( (PAToken) data).type == PAToken.MARK) { finished = true; } } } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } } }); // copy systemDict.put("copy", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); // decide if it's a simple copy or a composite object copy if ( (data[0] instanceof PAToken) && (data[1] instanceof PAToken)) { // composite object copy if ( ( (PAToken) data[0]).type == ( (PAToken) data[1]).type) { // our tokens are immutable so a copy is easy context.operands.push(data[0]); context.operands.push(data[0]); } else { throw new PainterException( "copy operation failed because composite objects on stack are not of same type"); } } else { // restore first arg, we're not interested in it in this simple case context.operands.push(data[0]); if (data[1] instanceof Number) { int index = ( (Number) data[1]).intValue(); int i, n; n = context.operands.size(); Object[] copyData = new Object[index]; for (i = n - index; i < n; i++) { try { copyData[i - n + index] = context.operands.elementAt(i); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } for (i = 0; i < index; i++) { context.operands.push(copyData[i]); } } else { throw new PainterException("I expect a number on stack, dude"); } } } }); // setgray systemDict.put("setgray", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.pencil.graphics.setPaint(new Color( (float) data[0], (float) data[0], (float) data[0])); } }); // setrgbcolor systemDict.put("setrgbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // currentrgbcolorsystemDict.put("currentrgbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { Color cl=context.pencil.graphics.getColor(); float[] fv = cl.getRGBComponents(null); context.operands.push(new Float(fv[0])); context.operands.push(new Float(fv[1])); context.operands.push(new Float(fv[2])); }}); // PENDING(uweh): color stuff still shaky // sethsbcolor systemDict.put("sethsbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): I have to convert these puppies myself to rgb ? // setcmykcolor systemDict.put("setcmykcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; int rd, gr, bl; data = context.popNumberOperands(4); float[] fv = new float[4]; fv[0] = (float) data[0]; fv[1] = (float) data[1]; fv[2] = (float) data[2]; fv[3] = (float) data[3]; rd = (int) (255 * Math.max(0, 1 - fv[0] - fv[3])); gr = (int) (255 * Math.max(0, 1 - fv[1] - fv[3])); bl = (int) (255 * Math.max(0, 1 - fv[2] - fv[3])); context.pencil.graphics.setPaint(new Color(rd, gr, bl)); } }); // setlinewidth systemDict.put("setlinewidth", new PACommand() { private double minLineWidth(double w, AffineTransform at) { double matrix[] = new double[4]; at.getMatrix(matrix); double scale = matrix[0] * matrix[3] - matrix[1] * matrix[2]; double minlw = .25 / Math.sqrt(Math.abs(scale)); if (w < minlw) { w = minlw; } return w; } public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); data[0] = this.minLineWidth(data[0], context.pencil.graphics.getTransform()); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( (float) data[0], ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke( (float) data[0], BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND); } /** * @todo two times the same? */ context.pencil.graphics.setStroke(newStroke);// context.pencil.state.stroke=newStroke; } }); // setlinecap systemDict.put("setlinecap", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), (int) data[0], ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, (int) data[0], BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setmiterlimit systemDict.put("setmiterlimit", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), (float) data[0], ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, (float) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // setdash systemDict.put("setdash", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("setdash: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("setdash: wrong arguments"); } ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return; } float[] dashpattern = new float[list.size()]; for (int i = 0; i < dashpattern.length; i++) { dashpattern[i] = ( (Number) list.get(i)).floatValue(); } float dashoffset = ( (Number) data[1]).floatValue(); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), dashpattern, dashoffset); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, dashpattern, dashoffset); } context.pencil.graphics.setStroke(newStroke); } }); // setlinejoin systemDict.put("setlinejoin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), (int) data[0], ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, (int) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // dumpstack systemDict.put("dumpstack", new PACommand() { public void execute(PAContext context) throws PainterException { Enumeration enumx = context.operands.elements(); System.out.println("-------------Stack--------------"); while (enumx.hasMoreElements()) { System.out.println(enumx.nextElement()); } System.out.println("--------------------------------"); } }); // for systemDict.put("for", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(4); if (! (data[3] instanceof PAToken)) { throw new PainterException("for: wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("for: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("for: wrong arguments"); } if (! (data[2] instanceof Number)) { throw new PainterException("for: wrong arguments"); } patoken = (PAToken) data[3]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("for: wrong arguments"); } int i0, i1, i2; i0 = ( (Number) data[0]).intValue(); i1 = ( (Number) data[1]).intValue(); i2 = ( (Number) data[2]).intValue(); if (i1 > 0) { for (int i = i0; i <= i2; i += i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } else { for (int i = i0; i >= i2; i -= i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } } }); // repeat systemDict.put("repeat", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[1] instanceof PAToken)) { throw new PainterException("repeat: wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("repeat: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("repeat: wrong arguments"); } int n = ( (Number) data[0]).intValue(); for (int i = 0; i < n; i++) { context.engine.process(patoken); } } }); // true systemDict.put("true", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(true)); } }); // false systemDict.put("false", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(false)); } }); // lt systemDict.put("lt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("lt: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("lt: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 < d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("lt: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) < 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // gt systemDict.put("gt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("gt: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("gt: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 > d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("gt: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) > 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // ge systemDict.put("ge", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("ge: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("ge: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 >= d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("ge: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) >= 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // ne systemDict.put("ne", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("ne: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("ne: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 != d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("ne: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.equals(s1)) { context.operands.push(new Boolean(false)); } else { context.operands.push(new Boolean(true)); } } } }); // eq systemDict.put("eq", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("eq: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("eq: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 == d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("eq: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) == 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // if systemDict.put("if", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof Boolean)) { throw new PainterException("if: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("if: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("if: wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken); } } }); // ifelse systemDict.put("ifelse", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken1, patoken2; data = context.popOperands(3); if (! (data[0] instanceof Boolean)) { throw new PainterException("ifelse: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("ifelse: wrong arguments"); } if (! (data[2] instanceof PAToken)) { throw new PainterException("ifelse: wrong arguments"); } patoken1 = (PAToken) data[1]; patoken2 = (PAToken) data[2]; if (! (patoken1.type == PAToken.PROCEDURE)) { throw new PainterException("ifelse: wrong arguments"); } if (! (patoken2.type == PAToken.PROCEDURE)) { throw new PainterException("ifelse: wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken1); } else { context.engine.process(patoken2); } } }); // dict systemDict.put("dict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap( (int) data[0])); } }); // put systemDict.put("put", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(3); if ( (data[0] instanceof HashMap) && (data[1] instanceof PAToken)) { patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("put: wrong arguments"); } ( (HashMap) data[0]).put(patoken.value, data[2]); } else if ( (data[0] instanceof ArrayList) && (data[1] instanceof Number)) { ArrayList ar = (ArrayList) data[0]; Number nr = (Number) data[1]; ar.set(nr.intValue(), data[2]); } else if ( (data[0] instanceof StringBuffer) && (data[1] instanceof Number) && (data[2] instanceof Number)) { StringBuffer text = (StringBuffer) data[0]; Number nr = (Number) data[1]; Number ch = (Number) data[2]; text.setCharAt(nr.intValue(), (char) (ch.intValue())); } else { throw new PainterException("put: wrong arguments"); } } }); // get systemDict.put("get", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap) && ! (data[0] instanceof ArrayList)) { throw new PainterException("get: wrong arguments"); } if (data[0] instanceof HashMap) { if (! (data[1] instanceof PAToken)) { throw new PainterException("get: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("get: wrong arguments"); } context.operands.push( ( (HashMap) data[0]).get(patoken.value)); } else if (data[0] instanceof ArrayList) { if (! (data[1] instanceof Number)) { throw new PainterException("get: wrong arguments"); } context.operands.push( ( (ArrayList) data[0]).get( ( (Number) data[1]). intValue())); } } }); // getinterval systemDict.put("getinterval", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(3); if (! (data[0] instanceof HashMap) && ! (data[0] instanceof ArrayList)) { throw new PainterException("getinterval: wrong arguments"); } if (data[0] instanceof HashMap) { if (! (data[1] instanceof PAToken)) { throw new PainterException("getinterval: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("getinterval: wrong arguments"); } if (! (data[2] instanceof Number)) { throw new PainterException("getinterval: wrong arguments"); } HashMap target = new HashMap(); context.operands.push( ( (HashMap) data[0]).get(patoken.value)); } else if (data[0] instanceof ArrayList) { if (! (data[1] instanceof Number)) { throw new PainterException("getinterval: wrong arguments"); } if (! (data[2] instanceof Number)) { throw new PainterException("getinterval: wrong arguments"); } ArrayList source = ( (ArrayList) data[0]); int from = ( (Number) data[1]).intValue(); int to = from + ( (Number) data[2]).intValue(); ArrayList target = new ArrayList(source.subList(from, to)); context.operands.push(target); } } }); // load systemDict.put("load", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("load: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("load: wrong arguments"); } context.operands.push(context.findIdentifier(patoken.value)); } }); // length systemDict.put("length", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; int size = 0; data = context.popOperands(1); if (data[0] instanceof PAToken) { patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("length: wrong arguments"); } size = ( (String) patoken.value).length(); } else if (data[0] instanceof HashMap) { size = ( (HashMap) data[0]).size(); } else if (data[0] instanceof ArrayList) { size = ( (ArrayList) data[0]).size(); } else if (data[0] instanceof String) { size = ( (String) data[0]).length(); } else { throw new PainterException("length: wrong arguments"); } context.operands.push(new Integer(size)); } }); // begin systemDict.put("begin", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof HashMap)) { throw new PainterException("begin: wrong arguments"); } context.dictionaries.push(data[0]); } }); // end systemDict.put("end", new PACommand() { public void execute(PAContext context) throws PainterException { try { context.dictionaries.pop(); } catch (EmptyStackException e) { throw new PainterException("Dictionary stack is empty"); } } }); // undef systemDict.put("undef", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap)) { throw new PainterException("undef: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("undef: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("undef: wrong arguments"); } // we don't do an actual undef because we don't care } }); // known systemDict.put("known", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("known: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("known: wrong arguments"); } foundObject = context.findIdentifier(patoken.value); if (foundObject != null) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // where systemDict.put("where", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("where: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("where: wrong arguments"); } foundObject = context.findDictionary(patoken.value); if (foundObject != null) { context.operands.push(foundObject); context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // aload systemDict.put("aload", new PACommand() { public void execute(PAContext context) throws PainterException { Object[] data; java.util.AbstractList list; data = context.popOperands(1); if (data[0] instanceof PAToken) { data[0] = ( (PAToken) data[0]).value; } if (! (data[0] instanceof java.util.AbstractList)) { throw new PainterException("aload: wrong arguments"); } list = (java.util.AbstractList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); } context.operands.push(data[0]); } }); // forall systemDict.put("forall", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("forall: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("forall: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("forall: wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); context.engine.process(patoken); } } }); // currentflat PENDING(uweh):placeholder for now systemDict.put("currentflat", new PACommand() { public void execute(PAContext context) throws PainterException { PdfGraphics2D pdfg2d = (PdfGraphics2D) context.pencil.graphics; PdfContentByte cb = pdfg2d.getContent(); context.operands.push(new Double(1.0f)); } }); // setflat PENDING(uweh):placeholder for now systemDict.put("setflat", new PACommand() { public void execute(PAContext context) throws PainterException { double[] data; data = context.popNumberOperands(1); PdfGraphics2D pdfg2d = (PdfGraphics2D) context.pencil.graphics; PdfContentByte cb = pdfg2d.getContent(); cb.setFlatness( ( (float) data[0])); } }); // round systemDict.put("round", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Long(Math.round(data[0]))); } }); // abs systemDict.put("abs", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.abs(data[0]))); } }); // transform systemDict.put("transform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); at.transform(data, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("transform: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("transform: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("transform: wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("transform: wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[1]).doubleValue(); double[] transformedData = new double[2]; at.transform(numberdata, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // itransform systemDict.put("itransform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); try { at.inverseTransform(data, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("itransform: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("itransform: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("itransform: wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("itransform: wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[0]).doubleValue(); double[] transformedData = new double[2]; try { at.inverseTransform(numberdata, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // currentpoint // PENDING(uweh): what about CTM, same thing when you construct path // this is different than ps, might not work in a few instances systemDict.put("currentpoint", new PACommand() { public void execute(PAContext context) throws PainterException { Point2D currentPoint = context.pencil.state.path.getCurrentPoint(); context.operands.push(new Double(currentPoint.getX())); context.operands.push(new Double(currentPoint.getY())); } }); // clippath systemDict.put("clippath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.clippath(); } }); // matrix systemDict.put("matrix", new PACommand() { public void execute(PAContext context) throws PainterException { ArrayList identityMatrix = new ArrayList(6); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); context.operands.push(identityMatrix); } }); // concatmatrix systemDict.put("concatmatrix", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof ArrayList)) { throw new PainterException("concatmatrix: wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("concatmatrix: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("concatmatrix: wrong arguments"); } ArrayList arrayOne, arrayTwo, arrayThree; AffineTransform atOne, atTwo; arrayOne = (ArrayList) data[0]; arrayTwo = (ArrayList) data[1]; arrayThree = (ArrayList) data[2]; double[] entries = new double[6]; if (! (arrayOne.size() == 6)) { throw new PainterException("concatmatrix: wrong arguments"); } if (! (arrayTwo.size() == 6)) { throw new PainterException("concatmatrix: wrong arguments"); } if (! (arrayThree.size() == 6)) { throw new PainterException("concatmatrix: wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayOne.get(i)).doubleValue(); } atOne = new AffineTransform(entries); for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayTwo.get(i)).doubleValue(); } atTwo = new AffineTransform(entries); atOne.concatenate(atTwo); atOne.getMatrix(entries); for (int i = 0; i < 6; i++) { arrayThree.set(i, new Double(entries[i])); } context.operands.push(arrayThree); } }); // pathbbox systemDict.put("pathbbox", new PACommand() { public void execute(PAContext context) throws PainterException { Rectangle2D pathBounds = context.pencil.state.path.getBounds2D(); context.operands.push(new Double(pathBounds.getMinX())); context.operands.push(new Double(pathBounds.getMinY())); context.operands.push(new Double(pathBounds.getMaxX())); context.operands.push(new Double(pathBounds.getMaxY())); } }); // initmatrix systemDict.put("initmatrix", new PACommand() { public void execute(PAContext context) throws PainterException { PdfGraphics2D pdfg2d = (PdfGraphics2D) context.pencil.graphics; PdfContentByte cb = pdfg2d.getContent();// cb.transform(Affine); } }); // initclip systemDict.put("initclip", new PACommand() { public void execute(PAContext context) throws PainterException { PdfGraphics2D pdfg2d = (PdfGraphics2D) context.pencil.graphics; PdfContentByte cb = pdfg2d.getContent(); context.pencil.clippath();// pdfg2d.setClip(context.);// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("initclip"); } }); // truncate systemDict.put("truncate", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; double truncated; data = context.popNumberOperands(1); if (data[0] < 0) { truncated = Math.ceil(data[0]); } else { truncated = Math.floor(data[0]); } context.operands.push(new Double(truncated)); } }); // rand systemDict.put("rand", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Integer(Math.abs(randomNumberGenerator. nextInt( (1 << 31) - 1)))); } }); // srand systemDict.put("srand", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); randomNumberGenerator = new Random(Math.round(data[0])); } }); // version systemDict.put("version", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push("2016"); } }); // cvi systemDict.put("cvi", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("cvi: wrong arguments"); } if (data[0] instanceof Number) { int d; d = ( (Number) data[0]).intValue(); context.operands.push(new Integer(d)); } else { String s; s = (String) data[0]; context.operands.push(new Integer(s)); } } }); // cvr systemDict.put("cvr", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("cvr: wrong arguments"); } if (data[0] instanceof Number) { int d; d = ( (Number) data[0]).intValue(); context.operands.push(new Double(d)); } else { String s; s = (String) data[0]; context.operands.push(new Double(s)); } } }); // usertime systemDict.put("usertime", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Long(System.currentTimeMillis())); } });// save systemDict.put("save", new PACommand() { public void execute(PAContext context) throws PainterException { PdfGraphics2D pdfg2d = (PdfGraphics2D) context.pencil.graphics; PdfContentByte cb = pdfg2d.getContent(); cb.saveState(); context.operands.push(new Long(0)); } });// restore systemDict.put("restore", new PACommand() { public void execute(PAContext context) throws PainterException { PdfGraphics2D pdfg2d = (PdfGraphics2D) context.pencil.graphics; PdfContentByte cb = pdfg2d.getContent(); cb.restoreState(); Object data[]; data = context.popOperands(1); } });// clear systemDict.put("clear", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.clear(); } }); // readonly systemDict.put("readonly", new PACommand() { public void execute(PAContext context) throws PainterException { } });// currentfile systemDict.put("currentfile", new PACommand() { public void execute(PAContext context) throws PainterException { final JavaCharStream jcs=context.poorscript.jj_input_stream; InputStream ins=new InputStream(){ /** * Reads the next byte of data from the input stream. * * @return the next byte of data, or <code>-1</code> if the end of the stream is reached. * @throws IOException if an I/O error occurs. * @todo Implement this java.io.InputStream method */ public int read() throws IOException { return jcs.readChar(); } }; context.operands.push(ins); } }); // flushfile systemDict.put("flushfile", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof InputStream)) { throw new PainterException("flushfile: wrong arguments"); } InputStream is = (InputStream) data[0]; try { while (is.read() != -1) { } } catch (IOException ex) { } } }); // closefile systemDict.put("closefile", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof InputStream)) { throw new PainterException("closefile: wrong arguments"); } InputStream is = (InputStream) data[0]; try { is.close(); } catch (IOException ex) { } } }); // string systemDict.put("string", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number)) { throw new PainterException("string: wrong arguments"); } int d; d = ( (Number) data[0]).intValue(); StringBuffer sb = new StringBuffer(d); sb.setLength(d); context.operands.push(sb); } }); // null systemDict.put("null", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(null); } }); // currentscreen systemDict.put("currentscreen", new PACommand() { public void execute(PAContext context) throws PainterException { if (!PAContext.IgnoreUnknownCommands) { throw new UnsupportedOperationException("currentscreen"); } else { context.operands.push(new Double(60)); context.operands.push(new Double(0)); context.operands.push(new Double(0)); } } }); // setscreen systemDict.put("setscreen", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(3);// if (!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("setscreen");// else {//// } } }); // flattenpath systemDict.put("flattenpath", new PACommand() { public void execute(PAContext context) throws PainterException { } }); // filter systemDict.put("filter", new PACommand() { public void execute(PAContext context) throws PainterException { String filtername; filtername = (String) ( (PAToken) context.popOperands(1)[0]).value; Object obj; while (! ( (obj = context.peekOperand()) instanceof InputStream)) { Object param = context.popOperands(1); } InputStream datasrc; datasrc = (InputStream) (context.popOperands(1)[0]); InputStream dis; if (filtername.equals("ASCIIHexDecode")) { // dis = new ASCIIHexInputStream(datasrc); final InputStream is=datasrc; dis=new InputStream(){ /** * Reads the next byte of data from the input stream. * * @return the next byte of data, or <code>-1</code> if the end of the stream is reached. * @throws IOException if an I/O error occurs. * @todo Implement this java.io.InputStream method */ public int read() throws IOException { int firstchar,secondchar; for(;;){ firstchar=is.read(); if(firstchar==-1)return -1; if(firstchar=='>')return -1; if(firstchar=='\n')continue; if(firstchar=='\r')continue; break; } for(;;){ secondchar=is.read(); if(secondchar=='>')return -1; if(secondchar==-1)return -1; if(secondchar=='\n')continue; if(secondchar=='\r')continue; break; } int highbyte=0; if(firstchar>=48&&firstchar<=57)highbyte=firstchar-48; if(firstchar>=65&&firstchar<=70)highbyte=firstchar-55; int lowbyte=0; if(secondchar>=48&&secondchar<=57)lowbyte=secondchar-48; if(secondchar>=65&&secondchar<=70)lowbyte=secondchar-55; return(highbyte*16+lowbyte); } }; }// else// if (filtername.equals("DCTDecode")) {// dis = new DCTInputStream(datasrc);// } else { dis = datasrc; } context.operands.push(dis); } }); // clip systemDict.put("clip", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.clip(); } }); // setcolorspace systemDict.put("setcolorspace", new PACommand() { public void execute(PAContext context) throws PainterException { PdfGraphics2D pdfg2d = (PdfGraphics2D) context.pencil.graphics; PdfContentByte cb = pdfg2d.getContent(); Object data[]; data = context.popOperands(1); if (data[0] instanceof PAToken) { String colorspace = ( (String) ( (PAToken) data[0]).value); cb.setDefaultColorspace(PdfName.COLORSPACE, PdfName.DEVICERGB); } } }); // image systemDict.put("image", new PACommand() { public void execute(PAContext context) throws PainterException { PdfGraphics2D pdfg2d = (PdfGraphics2D) context.pencil.graphics; PdfContentByte cb = pdfg2d.getContent(); Object data[]; data = context.popOperands(1); if (data[0] instanceof Number) { /** * Level1 image */ int width = ( (Number) data[0]).intValue(); data = context.popOperands(4); int height = ( (Number) data[0]).intValue(); int bits = ( (Number) data[1]).intValue(); }else if (data[0] instanceof PAToken) { PAToken proc = (PAToken) data[0]; data = context.popOperands(4); int width = ( (Number) data[0]).intValue(); int height = ( (Number) data[1]).intValue(); int bitspercomponent = ( (Number) data[2]).intValue(); ArrayList ar = (ArrayList) data[3]; System.out.println("I " + width + "*" + height + " " + bitspercomponent + " " + ar);// context.engine.process(proc); } else if (data[0] instanceof HashMap){ HashMap hsm = (HashMap) data[0]; Iterator it = hsm.keySet().iterator(); int width = 0, height = 0, bitspercomponent = 0; int imagetype = 0; InputStream datasrc = null; Object decode = null; Object imagematrix = null; while (it.hasNext()) { PAToken token = (PAToken) it.next(); if (token.value.toString().equals("ImageType")) { imagetype = ( (Number) hsm.get(token)).intValue(); } if (token.value.toString().equals("DataSource")) { datasrc = (InputStream) hsm.get(token); } if (token.value.toString().equals("BitsPerComponent")) { bitspercomponent = ( (Number) hsm.get(token)).intValue(); } if (token.value.toString().equals("Width")) { width = ( (Number) hsm.get(token)).intValue(); } if (token.value.toString().equals("Height")) { height = ( (Number) hsm.get(token)).intValue(); } if (token.value.toString().equals("Decode")) { decode = ( (Object) hsm.get(token)); } if (token.value.toString().equals("ImageMatrix")) { imagematrix = ( (Object) hsm.get(token)); } } try { byte[] barr = {}; ByteArrayOutputStream bout = new ByteArrayOutputStream(); int aByte; while ( (aByte = datasrc.read()) >= 0) { bout.write(aByte);// System.out.print((char)aByte); } System.out.println("I " + width + "*" + height + " " + bitspercomponent + " " + imagetype + " " + decode + " " + imagematrix + " " + datasrc); barr = bout.toByteArray();// com.lowagie.text.Image img = new ImgRaw(width, height, 1,// bitspercomponent, barr); com.lowagie.text.Image img = new Jpeg(barr); try { cb.addImage(img,width,0,0,height,0,0); } catch (DocumentException ex1) { ex1.printStackTrace(); } } catch (IOException ex) { ex.printStackTrace(); } catch (BadElementException ex) { ex.printStackTrace(); } } } }); // imagemask systemDict.put("imagemask", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(5);// if (data[0] instanceof PAToken) {// PAToken token = (PAToken) data[0];// context.engine.process(token);// } } }); // exec systemDict.put("exec", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (data[0] instanceof PAToken) { PAToken token = (PAToken) data[0]; context.engine.process(token); } } }); // currentdict systemDict.put("currentdict", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(context.dictionaries.peek()); } });// cleardictstack systemDict.put("cleardictstack", new PACommand() { public void execute(PAContext context) throws PainterException { context.dictionaries.clear(); HashMap systemDict = context.constructSystemDict(); context.dictionaries.push(systemDict); HashMap globalDict = context.constructGlobalDict(); context.dictionaries.push(globalDict); HashMap userDict = context.constructUserDict(); systemDict.put("userdict", userDict); systemDict.put("globaldict", globalDict); context.dictionaries.push(userDict); } }); // charpath systemDict.put("charpath", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof String)) { throw new PainterException("charpath: wrong arguments"); } if (! (data[1] instanceof Boolean)) { throw new PainterException("charpath: wrong arguments"); } context.pencil.charpath( (String) data[0], ( (Boolean) data[1]).booleanValue()); } }); // PENDING(uweh): we only support procedure right now and always push false on the stack // stopped systemDict.put("stopped", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("stopped: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("stopped: wrong arguments"); } context.engine.process(patoken); context.operands.push(new Boolean(false)); } }); systemDict.put("systemdict", systemDict); return systemDict; }
|
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/3def09189b18c01b9635b2507991f2771a4ca5dd/PAContext.java/clean/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4317,
4872,
3163,
5014,
1435,
288,
565,
4317,
2619,
5014,
273,
394,
4317,
5621,
565,
368,
25094,
565,
2619,
5014,
18,
458,
2932,
2704,
803,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
819,
18,
84,
21620,
18,
2704,
803,
5621,
1377,
289,
565,
15549,
565,
368,
5730,
11453,
565,
2619,
5014,
18,
458,
2932,
81,
1527,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
22,
1769,
3639,
819,
18,
84,
21620,
18,
81,
1527,
11453,
12,
892,
63,
20,
6487,
501,
63,
21,
19226,
1377,
289,
565,
15549,
565,
368,
6692,
1527,
11453,
565,
2619,
5014,
18,
458,
2932,
8864,
1527,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
22,
1769,
3639,
819,
18,
84,
21620,
18,
8864,
1527,
11453,
12,
892,
63,
20,
6487,
501,
63,
21,
19226,
1377,
289,
565,
15549,
565,
368,
4739,
11453,
565,
2619,
5014,
18,
458,
2932,
7511,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4317,
4872,
3163,
5014,
1435,
288,
565,
4317,
2619,
5014,
273,
394,
4317,
5621,
565,
368,
25094,
565,
2619,
5014,
18,
458,
2932,
2704,
803,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
819,
18,
84,
21620,
18,
2704,
803,
5621,
1377,
289,
565,
15549,
565,
368,
5730,
11453,
565,
2619,
5014,
18,
458,
2932,
81,
1527,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
22,
1769,
3639,
819,
18,
84,
21620,
18,
81,
1527,
11453,
2
] |
|
this.parameterTask = ReportEngineService.getInstance( ).createGetParameterDefinitionTask( this.reportRunnable );
|
this.parameterTask = ReportEngineService.getInstance( ) .createGetParameterDefinitionTask( this.reportRunnable );
|
public void init( HttpServletRequest request ) { String servletPath = request.getServletPath(); if ( servletPath.indexOf( "/wr" ) != -1 ) //$NON-NLS-1$ { this.category = "ERNI"; //$NON-NLS-1$ } if ( ParameterAccessor.isGetImageOperator( request ) ) { return; } this.masterPageContent = ParameterAccessor.isMasterPageContent( request ); // Is in designer? this.isDesigner = ParameterAccessor.isDesigner( request ); // Determine the report design and doc 's timestamp this.reportDocumentName = ParameterAccessor.getReportDocument( request ); File reportDocFile = new File( this.reportDocumentName ); String reportDesignName = ParameterAccessor.getReport( request ); File reportDesignDocFile = new File( reportDesignName ); // If it is in designer and refresh the browser. if ( reportDesignDocFile != null && reportDesignDocFile.exists( ) && reportDesignDocFile.isFile( ) && reportDocFile != null && reportDocFile.exists( ) && reportDocFile.isFile( ) && "get".equalsIgnoreCase( request.getMethod( ) ) ) //$NON-NLS-1$ { if ( reportDesignDocFile.lastModified( ) > reportDocFile.lastModified( ) || ParameterAccessor.isOverwrite( request ) ) { reportDocFile.delete( ); } } if ( reportDocFile.exists( ) && reportDocFile.isFile( ) ) { this.reportDocumentInstance = ReportEngineService.getInstance( ).openReportDocument( this.reportDocumentName ); if ( this.reportDocumentInstance == null ) { this.exception = new Exception( "Can not open report doc from " //$NON-NLS-1$ + ParameterAccessor.getReportDocument( request ) ); return; } this.reportRunnable = this.reportDocumentInstance.getReportRunnable( ); } else { try { this.reportRunnable = ReportEngineService.getInstance( ). openReportDesign( ParameterAccessor.getReport( request ) ); } catch ( EngineException e ) { this.exception = e; return; } } // Double check the runnable. if ( this.reportRunnable == null ) { this.exception = new Exception( "Can not get report runnable" ); //$NON-NLS-1$ return; } // Report locale. this.locale = ParameterAccessor.getLocale( request ); // Report page. this.reportPage = String.valueOf( ParameterAccessor.getPage( request ) ); // Report title. String title = null; if ( this.reportRunnable != null ) { title = ( String ) this.reportRunnable.getProperty( "title" ); //$NON-NLS-1$ } if ( title == null || title.trim( ).length( ) <= 0 ) { title = BirtResources.getString( "birt.viewer.title" ); //$NON-NLS-1$ } this.reportTitle = ParameterAccessor.htmlEncode( title ); // Bookmark. this.bookmark = ParameterAccessor.getBookmark( request ); // Prameter task. this.parameterTask = ReportEngineService.getInstance( ).createGetParameterDefinitionTask( this.reportRunnable ); if ( this.parameterTask != null ) { this.parameterTask.setLocale( this.locale ); } // Prepare the report parameters this.parameters = ReportEngineService.getInstance( ) .parseParameters( request, this.parameterTask, this.reportRunnable.getTestConfig( ), this.locale ); this.missingParameter = ReportEngineService.getInstance( ).validateParameters( this.parameterTask, this.parameters ); }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/733a5b5180244caf9bfb5710170e041223a92c28/ViewerAttributeBean.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1208,
12,
9984,
590,
262,
202,
95,
202,
202,
780,
8100,
743,
273,
590,
18,
588,
4745,
743,
5621,
202,
202,
430,
261,
8100,
743,
18,
31806,
12,
2206,
91,
86,
6,
262,
480,
300,
21,
262,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
95,
1082,
202,
2211,
18,
4743,
273,
315,
654,
50,
45,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
9506,
202,
430,
261,
5498,
8235,
18,
291,
967,
2040,
5592,
12,
590,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
2211,
18,
7525,
1964,
1350,
273,
5498,
8235,
18,
291,
7786,
1964,
1350,
12,
590,
11272,
202,
202,
759,
2585,
316,
8281,
264,
35,
202,
202,
2211,
18,
291,
15478,
264,
273,
5498,
8235,
18,
291,
15478,
264,
12,
590,
11272,
9506,
202,
759,
10229,
326,
2605,
8281,
471,
997,
296,
87,
2858,
202,
202,
2211,
18,
6006,
2519,
461,
273,
5498,
8235,
18,
588,
4820,
2519,
12,
590,
11272,
202,
202,
812,
2605,
1759,
812,
273,
394,
1387,
12,
333,
18,
6006,
2519,
461,
11272,
9506,
202,
780,
2605,
15478,
461,
273,
5498,
8235,
18,
588,
4820,
12,
590,
11272,
202,
202,
812,
2605,
15478,
1759,
812,
273,
394,
1387,
12,
2605,
15478,
461,
11272,
202,
202,
759,
971,
518,
353,
316,
8281,
264,
471,
4460,
326,
4748,
18,
202,
202,
430,
261,
2605,
15478,
1759,
812,
480,
446,
597,
2605,
15478,
1759,
812,
18,
1808,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
9984,
590,
262,
202,
95,
202,
202,
780,
8100,
743,
273,
590,
18,
588,
4745,
743,
5621,
202,
202,
430,
261,
8100,
743,
18,
31806,
12,
2206,
91,
86,
6,
262,
480,
300,
21,
262,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
95,
1082,
202,
2211,
18,
4743,
273,
315,
654,
50,
45,
14432,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
9506,
202,
430,
261,
5498,
8235,
18,
291,
967,
2040,
5592,
12,
590,
262,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
2211,
18,
7525,
1964,
1350,
273,
5498,
8235,
18,
291,
7786,
1964,
1350,
12,
590,
11272,
202,
202,
759,
2585,
2
] |
nodes.add(new Path.Node(8,12));
|
nodes.add(new Path.Node(8, 12));
|
protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(8,18)); nodes.add(new Path.Node(8,19)); nodes.add(new Path.Node(15,19)); nodes.add(new Path.Node(15,18)); nodes.add(new Path.Node(16,18)); nodes.add(new Path.Node(16,13)); nodes.add(new Path.Node(15,13)); nodes.add(new Path.Node(15,12)); nodes.add(new Path.Node(12,12)); nodes.add(new Path.Node(8,12)); nodes.add(new Path.Node(8,13)); nodes.add(new Path.Node(7,13)); nodes.add(new Path.Node(7,18)); setPath(nodes,true); }
|
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/d512245d8e26069d9f1c5a15fba078b322c3b0ac/Semos.java/buggy/src/games/stendhal/server/maps/Semos.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
4750,
918,
752,
743,
1435,
3639,
288,
3639,
987,
32,
743,
18,
907,
34,
2199,
33,
2704,
10688,
32,
743,
18,
907,
34,
5621,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
28,
16,
2643,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
28,
16,
3657,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
3600,
16,
3657,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
3600,
16,
2643,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
2313,
16,
2643,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
2313,
16,
3437,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
3600,
16,
3437,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
3600,
16,
2138,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
2138,
16,
2138,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
28,
16,
2593,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
28,
16,
3437,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
27,
16,
3437,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
27,
16,
2643,
10019,
3639,
16475,
12,
4690,
16,
3767,
1769,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4202,
4750,
918,
752,
743,
1435,
3639,
288,
3639,
987,
32,
743,
18,
907,
34,
2199,
33,
2704,
10688,
32,
743,
18,
907,
34,
5621,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
28,
16,
2643,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
28,
16,
3657,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
3600,
16,
3657,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
3600,
16,
2643,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
2313,
16,
2643,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
2313,
16,
3437,
10019,
3639,
2199,
18,
1289,
12,
2704,
2666,
18,
907,
12,
2
] |
|| event.getMessage().getBooleanProperty(MuleProperties.MULE_REMOTE_SYNC_PROPERTY, false);
|
|| event.getMessage().getBooleanProperty( MuleProperties.MULE_REMOTE_SYNC_PROPERTY, false);
|
protected boolean useRemoteSync(UMOEvent event) { boolean remoteSync = false; if (event.getEndpoint().getConnector().isRemoteSyncEnabled()) { remoteSync = event.getEndpoint().isRemoteSync() || event.getMessage().getBooleanProperty(MuleProperties.MULE_REMOTE_SYNC_PROPERTY, false); if (remoteSync) { // component will be null for client calls if (event.getComponent() != null) { remoteSync = event.getComponent().getDescriptor().getResponseRouter() == null; } } } if (!remoteSync) { event.getMessage().removeProperty(MuleProperties.MULE_REMOTE_SYNC_PROPERTY); } return remoteSync; }
|
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/8e24e81931bf634b328599172a4bfbed5021d70e/AbstractMessageDispatcher.java/buggy/core/src/main/java/org/mule/providers/AbstractMessageDispatcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
999,
5169,
4047,
12,
2799,
51,
1133,
871,
13,
565,
288,
3639,
1250,
2632,
4047,
273,
629,
31,
3639,
309,
261,
2575,
18,
588,
3293,
7675,
588,
7487,
7675,
291,
5169,
4047,
1526,
10756,
3639,
288,
5411,
2632,
4047,
273,
871,
18,
588,
3293,
7675,
291,
5169,
4047,
1435,
7682,
747,
871,
18,
24906,
7675,
588,
5507,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
15790,
67,
25142,
67,
9900,
16,
11794,
629,
1769,
5411,
309,
261,
7222,
4047,
13,
5411,
288,
7734,
368,
1794,
903,
506,
446,
364,
1004,
4097,
7734,
309,
261,
2575,
18,
588,
1841,
1435,
480,
446,
13,
7734,
288,
10792,
2632,
4047,
273,
871,
18,
588,
1841,
7675,
588,
3187,
7675,
588,
1064,
8259,
1435,
422,
446,
31,
7734,
289,
5411,
289,
3639,
289,
3639,
309,
16051,
7222,
4047,
13,
3639,
288,
5411,
871,
18,
24906,
7675,
4479,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
15790,
67,
25142,
67,
9900,
1769,
3639,
289,
3639,
327,
2632,
4047,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
999,
5169,
4047,
12,
2799,
51,
1133,
871,
13,
565,
288,
3639,
1250,
2632,
4047,
273,
629,
31,
3639,
309,
261,
2575,
18,
588,
3293,
7675,
588,
7487,
7675,
291,
5169,
4047,
1526,
10756,
3639,
288,
5411,
2632,
4047,
273,
871,
18,
588,
3293,
7675,
291,
5169,
4047,
1435,
7682,
747,
871,
18,
24906,
7675,
588,
5507,
1396,
12,
49,
725,
2297,
18,
49,
5595,
67,
15790,
67,
25142,
67,
9900,
16,
11794,
629,
1769,
5411,
309,
261,
7222,
4047,
13,
5411,
288,
7734,
368,
1794,
903,
506,
446,
364,
1004,
4097,
7734,
309,
261,
2575,
18,
588,
1841,
1435,
480,
446,
13,
7734,
288,
10792,
2632,
4047,
273,
871,
18,
588,
1841,
7675,
588,
3187,
2
] |
protected void perform(ActionContext context, String uri) throws Exception { ServletActionContext swcontext = (ServletActionContext) context; // Get the underlying request in the case of a multipart wrapper HttpServletRequest request = swcontext.getRequest(); if (request instanceof MultipartRequestWrapper) { request = ((MultipartRequestWrapper) request).getRequest(); } RequestDispatcher rd = swcontext.getContext().getRequestDispatcher(uri); rd.forward(request, swcontext.getResponse()); }
|
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/824ec6c0b3520f8764a0617c0769f99cad90ccf6/PerformInclude.java/buggy/src/java/org/apache/struts/chain/commands/servlet/PerformInclude.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
6459,
16092,
12,
1803,
1042,
2472,
16,
780,
1650,
13,
15069,
503,
95,
4745,
1803,
1042,
5328,
2472,
28657,
4745,
1803,
1042,
13,
2472,
31,
759,
967,
5787,
9341,
6291,
2293,
267,
451,
557,
448,
792,
301,
406,
5762,
8376,
2940,
18572,
2293,
33,
5328,
2472,
18,
588,
691,
5621,
430,
12,
2293,
1336,
792,
12024,
691,
3611,
15329,
2293,
33,
12443,
12024,
691,
3611,
13,
2293,
2934,
588,
691,
5621,
97,
691,
5325,
370,
72,
33,
5328,
2472,
18,
29120,
7675,
588,
691,
6681,
12,
1650,
1769,
13623,
18,
11565,
12,
2293,
16,
5328,
2472,
18,
588,
1064,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
6459,
16092,
12,
1803,
1042,
2472,
16,
780,
1650,
13,
15069,
503,
95,
4745,
1803,
1042,
5328,
2472,
28657,
4745,
1803,
1042,
13,
2472,
31,
759,
967,
5787,
9341,
6291,
2293,
267,
451,
557,
448,
792,
301,
406,
5762,
8376,
2940,
18572,
2293,
33,
5328,
2472,
18,
588,
691,
5621,
430,
12,
2293,
1336,
792,
12024,
691,
3611,
15329,
2293,
33,
12443,
12024,
691,
3611,
13,
2293,
2934,
588,
691,
5621,
97,
691,
5325,
370,
72,
33,
5328,
2472,
18,
29120,
7675,
588,
691,
6681,
12,
1650,
1769,
13623,
18,
11565,
12,
2293,
16,
5328,
2472,
18,
588,
1064,
10663,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
return value;
|
return prefix + MULTI_LEVEL_CHAR + key;
|
public Object next() { while(true) { // tail-recurse so we get infinite loop instead of OOM in case of a loop... if(subIterator != null && subIterator.hasNext()) return subIterator.next(); if(subIterator != null) subIterator = null; if(mapIterator.hasNext()) { String key = (String) mapIterator.next(); Object value = map.get(key); if(value instanceof String) return value; else { SimpleFieldSet fs = (SimpleFieldSet) value; subIterator = (KeyIterator) fs.keyIterator(); continue; } } return null; } }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/c1430c70b5da9c6558f190fe4bddaf8334ecd008/SimpleFieldSet.java/buggy/src/freenet/support/SimpleFieldSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
1024,
1435,
288,
1082,
202,
17523,
12,
3767,
13,
288,
368,
5798,
17,
29362,
1427,
732,
336,
14853,
2798,
3560,
434,
531,
1872,
316,
648,
434,
279,
2798,
2777,
9506,
202,
430,
12,
1717,
3198,
480,
446,
597,
720,
3198,
18,
5332,
2134,
10756,
6862,
202,
2463,
720,
3198,
18,
4285,
5621,
9506,
202,
430,
12,
1717,
3198,
480,
446,
13,
720,
3198,
273,
446,
31,
9506,
202,
430,
12,
1458,
3198,
18,
5332,
2134,
10756,
288,
6862,
202,
780,
498,
273,
261,
780,
13,
852,
3198,
18,
4285,
5621,
6862,
202,
921,
460,
273,
852,
18,
588,
12,
856,
1769,
6862,
202,
430,
12,
1132,
1276,
514,
13,
25083,
202,
2463,
460,
31,
6862,
202,
12107,
288,
25083,
202,
5784,
974,
694,
2662,
273,
261,
5784,
974,
694,
13,
460,
31,
25083,
202,
1717,
3198,
273,
261,
653,
3198,
13,
2662,
18,
856,
3198,
5621,
25083,
202,
17143,
31,
6862,
202,
97,
9506,
202,
97,
9506,
202,
2463,
446,
31,
1082,
202,
97,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
1024,
1435,
288,
1082,
202,
17523,
12,
3767,
13,
288,
368,
5798,
17,
29362,
1427,
732,
336,
14853,
2798,
3560,
434,
531,
1872,
316,
648,
434,
279,
2798,
2777,
9506,
202,
430,
12,
1717,
3198,
480,
446,
597,
720,
3198,
18,
5332,
2134,
10756,
6862,
202,
2463,
720,
3198,
18,
4285,
5621,
9506,
202,
430,
12,
1717,
3198,
480,
446,
13,
720,
3198,
273,
446,
31,
9506,
202,
430,
12,
1458,
3198,
18,
5332,
2134,
10756,
288,
6862,
202,
780,
498,
273,
261,
780,
13,
852,
3198,
18,
4285,
5621,
6862,
202,
921,
460,
273,
852,
18,
588,
12,
856,
1769,
6862,
202,
430,
12,
1132,
1276,
514,
13,
25083,
202,
2463,
460,
31,
6862,
2
] |
public Object getObject(int columnIndex) throws SQLException { Field field; if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); wasNullFlag = (this_row[columnIndex - 1] == null); if(wasNullFlag) return null; field = fields[columnIndex - 1]; // some fields can be null, mainly from those returned by MetaData methods if(field==null) { wasNullFlag=true; return null; } switch (field.getSQLType()) { case Types.BIT: return new Boolean(getBoolean(columnIndex)); case Types.SMALLINT: return new Integer(getInt(columnIndex)); case Types.INTEGER: return new Integer(getInt(columnIndex)); case Types.BIGINT: return new Long(getLong(columnIndex)); case Types.NUMERIC: return getBigDecimal (columnIndex, (field.mod==-1)?-1:((field.mod-4) & 0xffff)); case Types.REAL: return new Float(getFloat(columnIndex)); case Types.DOUBLE: return new Double(getDouble(columnIndex)); case Types.CHAR: case Types.VARCHAR: return getString(columnIndex); case Types.DATE: return getDate(columnIndex); case Types.TIME: return getTime(columnIndex); case Types.TIMESTAMP: return getTimestamp(columnIndex); default: return connection.getObject(field.getTypeName(), getString(columnIndex)); } }
|
47288 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47288/45b5d792afa60ae24d57cdceaaec0e03cf6abb2a/ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
6455,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
2286,
652,
31,
3639,
309,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
455,
18,
1293,
3676,
8863,
3639,
1703,
2041,
4678,
273,
261,
2211,
67,
492,
63,
2827,
1016,
300,
404,
65,
422,
446,
1769,
565,
309,
12,
17416,
2041,
4678,
13,
1377,
327,
446,
31,
3639,
652,
273,
1466,
63,
2827,
1016,
300,
404,
15533,
3639,
368,
2690,
1466,
848,
506,
446,
16,
31457,
628,
5348,
2106,
635,
27512,
2590,
565,
309,
12,
1518,
631,
2011,
13,
288,
1377,
1703,
2041,
4678,
33,
3767,
31,
1377,
327,
446,
31,
565,
289,
3639,
1620,
261,
1518,
18,
588,
3997,
559,
10756,
1377,
288,
1377,
648,
7658,
18,
15650,
30,
202,
2463,
394,
3411,
12,
588,
5507,
12,
2827,
1016,
10019,
1377,
648,
7658,
18,
23882,
3217,
30,
202,
2463,
394,
2144,
12,
588,
1702,
12,
2827,
1016,
10019,
1377,
648,
7658,
18,
14217,
30,
202,
2463,
394,
2144,
12,
588,
1702,
12,
2827,
1016,
10019,
1377,
648,
7658,
18,
19044,
3217,
30,
202,
2463,
394,
3407,
12,
588,
3708,
12,
2827,
1016,
10019,
1377,
648,
7658,
18,
22998,
30,
202,
2463,
2882,
360,
5749,
202,
565,
261,
2827,
1016,
16,
261,
1518,
18,
1711,
631,
17,
21,
9945,
17,
21,
30,
12443,
1518,
18,
1711,
17,
24,
13,
473,
374,
20431,
10019,
1377,
648,
7658,
18,
31052,
30,
202,
2463,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
6455,
12,
474,
14882,
13,
1216,
6483,
225,
288,
565,
2286,
652,
31,
3639,
309,
261,
2827,
1016,
411,
404,
747,
14882,
405,
1466,
18,
2469,
13,
1377,
604,
394,
453,
23116,
2932,
2767,
24330,
18,
455,
18,
1293,
3676,
8863,
3639,
1703,
2041,
4678,
273,
261,
2211,
67,
492,
63,
2827,
1016,
300,
404,
65,
422,
446,
1769,
565,
309,
12,
17416,
2041,
4678,
13,
1377,
327,
446,
31,
3639,
652,
273,
1466,
63,
2827,
1016,
300,
404,
15533,
3639,
368,
2690,
1466,
848,
506,
446,
16,
31457,
628,
5348,
2106,
635,
27512,
2590,
565,
309,
12,
1518,
631,
2011,
13,
288,
1377,
1703,
2041,
4678,
33,
3767,
31,
1377,
327,
446,
31,
565,
289,
2
] |
||
perspectiveBar.updateLists(); updatePerspectiveBar();
|
private void createControlForLocation(int newLocation) { // if there is a control, then perhaps it can be reused if (perspectiveBar != null && perspectiveBar.getControl() != null && !perspectiveBar.getControl().isDisposed()) { if (newLocation == LEFT && currentLocation == LEFT) return; if ((newLocation == TOP_LEFT || newLocation == TOP_RIGHT) && (currentLocation == TOP_LEFT || currentLocation == TOP_RIGHT)) return; } if (perspectiveBar != null) perspectiveBar.getControl().removeDisposeListener(toolBarListener); // otherwise dispose the current controls and make new ones disposeChildControls(); if (newLocation == LEFT) createControlForLeft(); else createControlForTop(); perspectiveBar.getControl().addDisposeListener(toolBarListener); // the items have been recreated, update the references to them // in the MRU and sequential lists of items perspectiveBar.updateLists(); updatePerspectiveBar(); }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/ea619abee4d91cdef043c8b11d5a852ef2afe695/PerspectiveSwitcher.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveSwitcher.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3367,
1290,
2735,
12,
474,
394,
2735,
13,
288,
202,
565,
368,
309,
1915,
353,
279,
3325,
16,
1508,
26282,
518,
848,
506,
23312,
202,
202,
430,
261,
10422,
16772,
5190,
480,
446,
597,
26651,
5190,
18,
588,
3367,
1435,
480,
446,
7734,
597,
401,
10422,
16772,
5190,
18,
588,
3367,
7675,
291,
1669,
7423,
10756,
288,
5411,
309,
261,
2704,
2735,
422,
9686,
597,
783,
2735,
422,
9686,
13,
7734,
327,
31,
5411,
309,
14015,
2704,
2735,
422,
18680,
67,
10066,
747,
394,
2735,
422,
18680,
67,
11847,
13,
10792,
597,
261,
2972,
2735,
422,
18680,
67,
10066,
747,
783,
2735,
422,
18680,
67,
11847,
3719,
7734,
327,
31,
3639,
289,
202,
202,
430,
261,
10422,
16772,
5190,
480,
446,
13,
1082,
202,
10422,
16772,
5190,
18,
588,
3367,
7675,
4479,
1669,
4150,
2223,
12,
6738,
5190,
2223,
1769,
202,
202,
759,
3541,
15825,
326,
783,
11022,
471,
1221,
394,
5945,
202,
202,
2251,
4150,
1763,
16795,
5621,
202,
565,
309,
261,
2704,
2735,
422,
9686,
13,
1082,
565,
752,
3367,
1290,
3910,
5621,
202,
202,
12107,
202,
3639,
752,
3367,
1290,
3401,
5621,
202,
377,
202,
565,
26651,
5190,
18,
588,
3367,
7675,
1289,
1669,
4150,
2223,
12,
6738,
5190,
2223,
1769,
202,
377,
202,
565,
368,
326,
1516,
1240,
2118,
283,
4824,
16,
1089,
326,
5351,
358,
2182,
202,
565,
368,
316,
326,
490,
19866,
471,
21210,
6035,
434,
1516,
202,
565,
26651,
5190,
18,
2725,
7432,
5621,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
3367,
1290,
2735,
12,
474,
394,
2735,
13,
288,
202,
565,
368,
309,
1915,
353,
279,
3325,
16,
1508,
26282,
518,
848,
506,
23312,
202,
202,
430,
261,
10422,
16772,
5190,
480,
446,
597,
26651,
5190,
18,
588,
3367,
1435,
480,
446,
7734,
597,
401,
10422,
16772,
5190,
18,
588,
3367,
7675,
291,
1669,
7423,
10756,
288,
5411,
309,
261,
2704,
2735,
422,
9686,
597,
783,
2735,
422,
9686,
13,
7734,
327,
31,
5411,
309,
14015,
2704,
2735,
422,
18680,
67,
10066,
747,
394,
2735,
422,
18680,
67,
11847,
13,
10792,
597,
261,
2972,
2735,
422,
18680,
67,
10066,
747,
783,
2735,
422,
18680,
67,
11847,
3719,
7734,
327,
31,
3639,
289,
202,
202,
2
] |
|
if (synonymValues == null) { LOG.warn("cannot find any synonyms for: " + bioEntity.getId() + " identifier: " + bioEntity.getIdentifier()); } else {
|
if (synonymValues != null) {
|
private void writeFeature(PrintWriter gffWriter, Chromosome chr, BioEntity bioEntity, Location location, String identifier, Integer index, String featureType, String idType, Map extraAttributes, Map synonymMap, Integer flyMineId) throws IOException { if (index == null) { index = new Integer(0); } StringBuffer lineBuffer = new StringBuffer(); lineBuffer.append(chromosomeFileNamePrefix(chr)).append("\t"); lineBuffer.append(FLYMINE_STRING).append("\t"); lineBuffer.append(featureType).append("\t"); if (location == null && bioEntity == chr) { // special case for Chromosome location lineBuffer.append(1).append("\t").append(chr.getLength()).append("\t"); } else { lineBuffer.append(location.getStart()).append("\t"); lineBuffer.append(location.getEnd()).append("\t"); } lineBuffer.append(0).append("\t"); int strand; if (location == null) { lineBuffer.append("."); } else { if (location.getStrand().intValue() == 1) { lineBuffer.append("+"); } else { if (location.getStrand().intValue() == -1) { lineBuffer.append("-"); } else { lineBuffer.append("."); } } } lineBuffer.append("\t"); if (location == null) { lineBuffer.append("."); } else { if (location.getPhase() == null) { lineBuffer.append("."); } else { lineBuffer.append(location.getPhase()); } } lineBuffer.append("\t"); Map attributes = new LinkedHashMap(); List identifiers = new ArrayList(); identifiers.add(identifier); attributes.put(idType, identifiers); ArrayList flyMineIDs = new ArrayList(); flyMineIDs.add("FlyMineInternalID_" + flyMineId); attributes.put("FlyMineInternalID", flyMineIDs.clone()); List allIds = (List) flyMineIDs.clone(); List synonymValues = (List) synonymMap.get(bioEntity.getId()); if (synonymValues == null) { LOG.warn("cannot find any synonyms for: " + bioEntity.getId() + " identifier: " + bioEntity.getIdentifier()); } else { Iterator synonymIter = synonymValues.iterator(); while (synonymIter.hasNext()) { String thisSynonymValue = (String) synonymIter.next(); if (!allIds.contains(thisSynonymValue)) { allIds.add(thisSynonymValue); } } } attributes.put("Alias", allIds); if (extraAttributes != null) { Iterator extraAttributesIter = extraAttributes.keySet().iterator(); while (extraAttributesIter.hasNext()) { String key = (String) extraAttributesIter.next(); attributes.put(key, extraAttributes.get(key)); } } if (bioEntity instanceof ChromosomeBand) { ArrayList indexList = new ArrayList(); indexList.add(index.toString()); attributes.put("Index", indexList); } if (bioEntity instanceof PCRProduct) { ArrayList promoterFlagList = new ArrayList(); promoterFlagList.add(((PCRProduct) bioEntity).getPromoter().toString()); attributes.put("promoter", promoterFlagList); } if (bioEntity instanceof ArtificialDeletion) { ArtificialDeletion deletion = (ArtificialDeletion) bioEntity; if (deletion.getAvailable() != null) { ArrayList availableFlagList = new ArrayList(); availableFlagList.add(((ArtificialDeletion) bioEntity).getAvailable().toString()); attributes.put("available", availableFlagList); } } lineBuffer.append(stringifyAttributes(attributes)); gffWriter.println(lineBuffer.toString()); }
|
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/8bd8c261d216d0a24c6ffd3e1bf3ca113720f773/WriteGFFTask.java/buggy/flymine/model/genomic/src/java/org/flymine/gbrowse/WriteGFFTask.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
4595,
12,
5108,
2289,
26534,
2289,
16,
1680,
520,
16958,
4513,
16,
17311,
21209,
1943,
25091,
1943,
16,
7050,
2117,
16,
514,
2756,
16,
17311,
2144,
770,
16,
17311,
514,
2572,
559,
16,
514,
612,
559,
16,
1635,
2870,
2498,
16,
17311,
1635,
26308,
863,
16,
2144,
21434,
49,
558,
548,
13,
3639,
1216,
1860,
288,
3639,
309,
261,
1615,
422,
446,
13,
288,
5411,
770,
273,
394,
2144,
12,
20,
1769,
3639,
289,
3639,
6674,
980,
1892,
273,
394,
6674,
5621,
3639,
980,
1892,
18,
6923,
12,
16298,
16958,
4771,
2244,
12,
15182,
13,
2934,
6923,
31458,
88,
8863,
3639,
980,
1892,
18,
6923,
12,
42,
7076,
49,
3740,
67,
5804,
2934,
6923,
31458,
88,
8863,
3639,
980,
1892,
18,
6923,
12,
7238,
559,
2934,
6923,
31458,
88,
8863,
3639,
309,
261,
3562,
422,
446,
597,
25091,
1943,
422,
4513,
13,
288,
5411,
368,
4582,
648,
364,
1680,
520,
16958,
2117,
5411,
980,
1892,
18,
6923,
12,
21,
2934,
6923,
31458,
88,
20387,
6923,
12,
15182,
18,
588,
1782,
1435,
2934,
6923,
31458,
88,
8863,
3639,
289,
469,
288,
5411,
980,
1892,
18,
6923,
12,
3562,
18,
588,
1685,
1435,
2934,
6923,
31458,
88,
8863,
5411,
980,
1892,
18,
6923,
12,
3562,
18,
588,
1638,
1435,
2934,
6923,
31458,
88,
8863,
3639,
289,
3639,
980,
1892,
18,
6923,
12,
20,
2934,
6923,
31458,
88,
8863,
3639,
509,
16706,
31,
3639,
309,
261,
3562,
422,
446,
13,
288,
5411,
980,
1892,
18,
6923,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
4595,
12,
5108,
2289,
26534,
2289,
16,
1680,
520,
16958,
4513,
16,
17311,
21209,
1943,
25091,
1943,
16,
7050,
2117,
16,
514,
2756,
16,
17311,
2144,
770,
16,
17311,
514,
2572,
559,
16,
514,
612,
559,
16,
1635,
2870,
2498,
16,
17311,
1635,
26308,
863,
16,
2144,
21434,
49,
558,
548,
13,
3639,
1216,
1860,
288,
3639,
309,
261,
1615,
422,
446,
13,
288,
5411,
770,
273,
394,
2144,
12,
20,
1769,
3639,
289,
3639,
6674,
980,
1892,
273,
394,
6674,
5621,
3639,
980,
1892,
18,
6923,
12,
16298,
16958,
4771,
2244,
12,
15182,
13,
2934,
6923,
31458,
88,
8863,
3639,
980,
1892,
18,
6923,
12,
42,
7076,
49,
3740,
67,
5804,
2934,
6923,
31458,
2
] |
writeToDataOutputStream(i.next(), dos);
|
writeToDataOutputStream(i.next(), dos, ctx);
|
public static void writeToDataOutputStream(Object object, DataOutputStream dos) throws IOException { Class type = object.getClass(); if (type.equals(Boolean.class)) { dos.write(((Boolean) object).booleanValue() ? 1 : 0); } else if (type.equals(Byte.class)) { dos.write(((Byte) object).byteValue()); } else if (type.equals(Short.class)) { dos.writeShort(((Short) object).shortValue()); } else if (type.equals(Integer.class)) { dos.writeInt(((Integer) object).intValue()); } else if (type.equals(Long.class)) { dos.writeLong(((Long) object).longValue()); } else if (type.equals(Double.class)) { dos.writeDouble(((Double) object).doubleValue()); } else if (type.equals(String.class)) { String s = (String) object; dos.writeInt(s.length()); for (int x = 0; x < s.length(); x++) { dos.writeChar(s.charAt(x)); } } else if (type.equals(LinkedList.class)) { LinkedList ll = (LinkedList) object; dos.writeInt(ll.size()); synchronized (ll) { for (Iterator i = ll.iterator(); i.hasNext();) { writeToDataOutputStream(i.next(), dos); } } } else if (WritableToDataOutputStream.class.isAssignableFrom(type)) { WritableToDataOutputStream b = (WritableToDataOutputStream) object; b.writeToDataOutputStream(dos); } else { throw new RuntimeException("Unrecognised field type: " + type); } }
|
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/637da9df2699fd8ae42a7310ab48121238cc4808/Serializer.java/buggy/src/freenet/support/Serializer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
12870,
751,
4632,
12,
921,
733,
16,
28680,
16153,
13,
1216,
1860,
288,
202,
202,
797,
618,
273,
733,
18,
588,
797,
5621,
202,
202,
430,
261,
723,
18,
14963,
12,
5507,
18,
1106,
3719,
288,
1082,
202,
19219,
18,
2626,
12443,
12,
5507,
13,
733,
2934,
6494,
620,
1435,
692,
404,
294,
374,
1769,
202,
202,
97,
469,
309,
261,
723,
18,
14963,
12,
3216,
18,
1106,
3719,
288,
1082,
202,
19219,
18,
2626,
12443,
12,
3216,
13,
733,
2934,
7229,
620,
10663,
202,
202,
97,
469,
309,
261,
723,
18,
14963,
12,
4897,
18,
1106,
3719,
288,
1082,
202,
19219,
18,
2626,
4897,
12443,
12,
4897,
13,
733,
2934,
6620,
620,
10663,
202,
202,
97,
469,
309,
261,
723,
18,
14963,
12,
4522,
18,
1106,
3719,
288,
1082,
202,
19219,
18,
2626,
1702,
12443,
12,
4522,
13,
733,
2934,
474,
620,
10663,
202,
202,
97,
469,
309,
261,
723,
18,
14963,
12,
3708,
18,
1106,
3719,
288,
1082,
202,
19219,
18,
2626,
3708,
12443,
12,
3708,
13,
733,
2934,
5748,
620,
10663,
202,
202,
97,
469,
309,
261,
723,
18,
14963,
12,
5265,
18,
1106,
3719,
288,
1082,
565,
16153,
18,
2626,
5265,
12443,
12,
5265,
13,
733,
2934,
9056,
620,
10663,
202,
202,
97,
469,
309,
261,
723,
18,
14963,
12,
780,
18,
1106,
3719,
288,
1082,
202,
780,
272,
273,
261,
780,
13,
733,
31,
1082,
202,
19219,
18,
2626,
1702,
12,
87,
18,
2469,
10663,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12870,
751,
4632,
12,
921,
733,
16,
28680,
16153,
13,
1216,
1860,
288,
202,
202,
797,
618,
273,
733,
18,
588,
797,
5621,
202,
202,
430,
261,
723,
18,
14963,
12,
5507,
18,
1106,
3719,
288,
1082,
202,
19219,
18,
2626,
12443,
12,
5507,
13,
733,
2934,
6494,
620,
1435,
692,
404,
294,
374,
1769,
202,
202,
97,
469,
309,
261,
723,
18,
14963,
12,
3216,
18,
1106,
3719,
288,
1082,
202,
19219,
18,
2626,
12443,
12,
3216,
13,
733,
2934,
7229,
620,
10663,
202,
202,
97,
469,
309,
261,
723,
18,
14963,
12,
4897,
18,
1106,
3719,
288,
1082,
202,
19219,
18,
2626,
4897,
12443,
12,
4897,
13,
733,
2934,
6620,
620,
10663,
2
] |
for (final Party party : RootDomainObject.getInstance().getPartys()) { if (party.getSocialSecurityNumber() != null && party.getSocialSecurityNumber().equalsIgnoreCase(contributorNumber)) { return party;
|
if(contributorNumber != null){ for (final Party party : RootDomainObject.getInstance().getPartys()) { if (party.getSocialSecurityNumber() != null && party.getSocialSecurityNumber().equalsIgnoreCase(contributorNumber)) { return party; }
|
public static Party readByContributorNumber(String contributorNumber) { for (final Party party : RootDomainObject.getInstance().getPartys()) { if (party.getSocialSecurityNumber() != null && party.getSocialSecurityNumber().equalsIgnoreCase(contributorNumber)) { return party; } } return null; }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/88f88f16d6f367c05c8509179ec466a2cd3b6d7a/Party.java/buggy/src/net/sourceforge/fenixedu/domain/organizationalStructure/Party.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6393,
93,
855,
858,
442,
19293,
1854,
12,
780,
31123,
1854,
13,
288,
3639,
364,
261,
6385,
6393,
93,
18285,
294,
7450,
3748,
921,
18,
588,
1442,
7675,
588,
1988,
1900,
10756,
288,
5411,
309,
261,
21214,
18,
588,
28795,
4368,
1854,
1435,
480,
446,
597,
18285,
18,
588,
28795,
4368,
1854,
7675,
14963,
5556,
12,
591,
19293,
1854,
3719,
288,
7734,
327,
18285,
31,
5411,
289,
3639,
289,
7734,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6393,
93,
855,
858,
442,
19293,
1854,
12,
780,
31123,
1854,
13,
288,
3639,
364,
261,
6385,
6393,
93,
18285,
294,
7450,
3748,
921,
18,
588,
1442,
7675,
588,
1988,
1900,
10756,
288,
5411,
309,
261,
21214,
18,
588,
28795,
4368,
1854,
1435,
480,
446,
597,
18285,
18,
588,
28795,
4368,
1854,
7675,
14963,
5556,
12,
591,
19293,
1854,
3719,
288,
7734,
327,
18285,
31,
5411,
289,
3639,
289,
7734,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Graphics2D g = (Graphics2D) bufferStrategy.getDrawGraphics();
|
if (offscreenImage != null) { offscreenGfx = (Graphics2D) offscreenImage.getGraphics();
|
public void update() { try { if (robocodeFrame.isIconified() || (getWidth() <= 0) || (getHeight() <= 0)) { return; } if (!initialized) { initialize(); } Graphics2D g = (Graphics2D) bufferStrategy.getDrawGraphics(); offscreenGfx.setRenderingHints(manager.getProperties().getRenderingHints()); paintBattle(offscreenGfx); g.drawImage(offscreenImage, 0, 0, null); g.dispose(); // Flush the buffer to the main graphics if (getGraphics() != null) { // FNL: The above check to prevents internal NullPointerException in // Component.BltBufferStrategy.show() bufferStrategy.show(); } } catch (Exception e) { Utils.log("Could not draw: " + e); e.printStackTrace(System.err); } }
|
50663 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50663/d22b2b25a95e03bf4706b2c320827dcac34488c8/BattleView.java/buggy/robocode/robocode/battleview/BattleView.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
1435,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
303,
70,
19373,
3219,
18,
291,
5554,
939,
1435,
747,
261,
588,
2384,
1435,
1648,
374,
13,
747,
261,
588,
2686,
1435,
1648,
374,
3719,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
16051,
13227,
13,
288,
9506,
202,
11160,
5621,
1082,
202,
97,
1082,
202,
17558,
22,
40,
314,
273,
261,
17558,
22,
40,
13,
1613,
4525,
18,
588,
6493,
17558,
5621,
1082,
202,
3674,
9252,
43,
19595,
18,
542,
14261,
13368,
12,
4181,
18,
588,
2297,
7675,
588,
14261,
13368,
10663,
1082,
202,
84,
1598,
38,
4558,
298,
12,
3674,
9252,
43,
19595,
1769,
1082,
202,
75,
18,
9446,
2040,
12,
3674,
9252,
2040,
16,
374,
16,
374,
16,
446,
1769,
1082,
202,
75,
18,
2251,
4150,
5621,
1082,
202,
759,
11624,
326,
1613,
358,
326,
2774,
17313,
1082,
202,
430,
261,
588,
17558,
1435,
480,
446,
13,
288,
9506,
202,
759,
478,
24924,
30,
1021,
5721,
866,
358,
17793,
2713,
10108,
316,
9506,
202,
759,
5435,
18,
4802,
88,
1892,
4525,
18,
4500,
1435,
6862,
202,
4106,
4525,
18,
4500,
5621,
1082,
202,
97,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
1989,
18,
1330,
2932,
4445,
486,
3724,
30,
315,
397,
425,
1769,
1082,
202,
73,
18,
1188,
6332,
12,
3163,
18,
370,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
1435,
288,
202,
202,
698,
288,
1082,
202,
430,
261,
303,
70,
19373,
3219,
18,
291,
5554,
939,
1435,
747,
261,
588,
2384,
1435,
1648,
374,
13,
747,
261,
588,
2686,
1435,
1648,
374,
3719,
288,
9506,
202,
2463,
31,
1082,
202,
97,
1082,
202,
430,
16051,
13227,
13,
288,
9506,
202,
11160,
5621,
1082,
202,
97,
1082,
202,
17558,
22,
40,
314,
273,
261,
17558,
22,
40,
13,
1613,
4525,
18,
588,
6493,
17558,
5621,
1082,
202,
3674,
9252,
43,
19595,
18,
542,
14261,
13368,
12,
4181,
18,
588,
2297,
7675,
588,
14261,
13368,
10663,
1082,
202,
84,
1598,
38,
4558,
298,
12,
3674,
9252,
43,
19595,
1769,
1082,
202,
75,
18,
9446,
2
] |
name = theName;
|
public DesignElement( String theName ) { name = theName; }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/116d8de3213e4f354f008c24beab2f2caf8528b6/DesignElement.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
29703,
1046,
12,
514,
326,
461,
262,
202,
95,
202,
202,
529,
273,
326,
461,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
29703,
1046,
12,
514,
326,
461,
262,
202,
95,
202,
202,
529,
273,
326,
461,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
page.setWizard(this); page.setTitle(WorkbenchMessages.getString("WorkingSetNewWizard.page.title")); page.setDescription(WorkbenchMessages.getString("WorkingSetNewWizard.page.description"));
|
initializeWorkingSetPage(page);
|
public void addPages() { super.addPages(); IWizardPage page; WorkingSetRegistry registry = WorkbenchPlugin.getDefault().getWorkingSetRegistry(); WorkingSetDescriptor[] descriptors = registry.getWorkingSetDescriptors(); if (descriptors.length > 1) { page = workingSetTypePage = new WorkingSetTypePage(); } else { editPageId = descriptors[0].getId(); page = workingSetEditPage = registry.getWorkingSetPage(editPageId); } page.setWizard(this); page.setTitle(WorkbenchMessages.getString("WorkingSetNewWizard.page.title")); //$NON-NLS-1$ page.setDescription(WorkbenchMessages.getString("WorkingSetNewWizard.page.description")); //$NON-NLS-1$ addPage(page); setForcePreviousAndNextButtons(descriptors.length > 1); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/68db7969b09b5aae658489d49063ce265a3c41c3/WorkingSetNewWizard.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkingSetNewWizard.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
5716,
1435,
288,
202,
202,
9565,
18,
1289,
5716,
5621,
202,
202,
45,
27130,
1964,
1363,
31,
202,
202,
14836,
694,
4243,
4023,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
14836,
694,
4243,
5621,
202,
202,
14836,
694,
3187,
8526,
14215,
273,
4023,
18,
588,
14836,
694,
12705,
5621,
1082,
202,
430,
261,
72,
8379,
18,
2469,
405,
404,
13,
288,
1082,
202,
2433,
273,
5960,
25181,
1964,
273,
394,
22732,
25181,
1964,
5621,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
4619,
23053,
273,
14215,
63,
20,
8009,
26321,
5621,
1082,
202,
2433,
273,
5960,
694,
4666,
1964,
273,
4023,
18,
588,
14836,
694,
1964,
12,
4619,
23053,
1769,
202,
202,
97,
202,
202,
2433,
18,
542,
27130,
12,
2211,
1769,
202,
202,
2433,
18,
542,
4247,
12,
2421,
22144,
5058,
18,
588,
780,
2932,
14836,
694,
1908,
27130,
18,
2433,
18,
2649,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
2433,
18,
542,
3291,
12,
2421,
22144,
5058,
18,
588,
780,
2932,
14836,
694,
1908,
27130,
18,
2433,
18,
3384,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
9506,
202,
1289,
1964,
12,
2433,
1769,
202,
202,
542,
10997,
8351,
24072,
14388,
12,
72,
8379,
18,
2469,
405,
404,
1769,
202,
97,
1082,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
5716,
1435,
288,
202,
202,
9565,
18,
1289,
5716,
5621,
202,
202,
45,
27130,
1964,
1363,
31,
202,
202,
14836,
694,
4243,
4023,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
14836,
694,
4243,
5621,
202,
202,
14836,
694,
3187,
8526,
14215,
273,
4023,
18,
588,
14836,
694,
12705,
5621,
1082,
202,
430,
261,
72,
8379,
18,
2469,
405,
404,
13,
288,
1082,
202,
2433,
273,
5960,
25181,
1964,
273,
394,
22732,
25181,
1964,
5621,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
4619,
23053,
273,
14215,
63,
20,
8009,
26321,
5621,
1082,
202,
2433,
273,
5960,
694,
4666,
1964,
273,
4023,
18,
588,
14836,
694,
1964,
12,
4619,
23053,
1769,
202,
2
] |
match(input,34,FOLLOW_34_in_word3257); if (failed) return word;
|
match(input,37,FOLLOW_37_in_word3363); if (failed) return word;
|
public String word() throws RecognitionException { String word = null; Token id=null; Token str=null; word = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( 'rule' )=> 'rule' | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( 'when' )=> 'when' | ( 'then' )=> 'then' | ( 'end' )=> 'end' | str= STRING ) int alt50=11; switch ( input.LA(1) ) { case ID: alt50=1; break; case 28: alt50=2; break; case 73: alt50=3; break; case 37: alt50=4; break; case 34: alt50=5; break; case 41: alt50=6; break; case 42: alt50=7; break; case 38: alt50=8; break; case RHS: alt50=9; break; case 35: alt50=10; break; case STRING: alt50=11; break; default: if (backtracking>0) {failed=true; return word;} NoViableAltException nvae = new NoViableAltException("1282:1: word returns [String word] : ( ( ID )=>id= ID | ( 'import' )=> 'import' | ( 'use' )=> 'use' | ( 'rule' )=> 'rule' | ( 'query' )=> 'query' | ( 'salience' )=> 'salience' | ( 'no-loop' )=> 'no-loop' | ( 'when' )=> 'when' | ( 'then' )=> 'then' | ( 'end' )=> 'end' | str= STRING );", 50, 0, input); throw nvae; } switch (alt50) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1286:4: ( ID )=>id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word3213); if (failed) return word; if ( backtracking==0 ) { word=id.getText(); } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1287:4: ( 'import' )=> 'import' { match(input,28,FOLLOW_28_in_word3225); if (failed) return word; if ( backtracking==0 ) { word="import"; } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1288:4: ( 'use' )=> 'use' { match(input,73,FOLLOW_73_in_word3234); if (failed) return word; if ( backtracking==0 ) { word="use"; } } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1289:4: ( 'rule' )=> 'rule' { match(input,37,FOLLOW_37_in_word3246); if (failed) return word; if ( backtracking==0 ) { word="rule"; } } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1290:4: ( 'query' )=> 'query' { match(input,34,FOLLOW_34_in_word3257); if (failed) return word; if ( backtracking==0 ) { word="query"; } } break; case 6 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1291:4: ( 'salience' )=> 'salience' { match(input,41,FOLLOW_41_in_word3267); if (failed) return word; if ( backtracking==0 ) { word="salience"; } } break; case 7 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1292:5: ( 'no-loop' )=> 'no-loop' { match(input,42,FOLLOW_42_in_word3275); if (failed) return word; if ( backtracking==0 ) { word="no-loop"; } } break; case 8 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1293:4: ( 'when' )=> 'when' { match(input,38,FOLLOW_38_in_word3283); if (failed) return word; if ( backtracking==0 ) { word="when"; } } break; case 9 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1294:4: ( 'then' )=> 'then' { match(input,RHS,FOLLOW_RHS_in_word3294); if (failed) return word; if ( backtracking==0 ) { word="then"; } } break; case 10 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1295:4: ( 'end' )=> 'end' { match(input,35,FOLLOW_35_in_word3305); if (failed) return word; if ( backtracking==0 ) { word="end"; } } break; case 11 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1296:4: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word3319); if (failed) return word; if ( backtracking==0 ) { word=getString(str); } } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/63bc7036e62ae854cec463d59712c173f74e984c/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
273,
446,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
2138,
5292,
30,
24,
30,
261,
261,
1599,
13216,
350,
33,
1599,
571,
261,
296,
5666,
11,
13216,
296,
5666,
11,
571,
261,
296,
1202,
11,
13216,
296,
1202,
11,
571,
261,
296,
5345,
11,
13216,
296,
5345,
11,
571,
261,
296,
2271,
11,
13216,
296,
2271,
11,
571,
261,
296,
21982,
6254,
11,
13216,
296,
21982,
6254,
11,
571,
261,
296,
2135,
17,
6498,
11,
13216,
296,
2135,
17,
6498,
11,
571,
261,
296,
13723,
11,
13216,
296,
13723,
11,
571,
261,
296,
15991,
11,
13216,
296,
15991,
11,
571,
261,
296,
409,
11,
13216,
296,
409,
11,
571,
609,
33,
9469,
262,
5411,
509,
3770,
3361,
33,
2499,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
1599,
30,
7734,
3770,
3361,
33,
21,
31,
7734,
898,
31,
5411,
648,
9131,
30,
7734,
3770,
3361,
33,
22,
31,
7734,
898,
31,
5411,
648,
26103,
30,
7734,
3770,
3361,
33,
23,
31,
7734,
898,
31,
5411,
648,
18091,
30,
7734,
3770,
3361,
33,
24,
31,
7734,
898,
31,
5411,
648,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
273,
446,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
1171,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
8464,
1695,
10649,
8464,
7482,
1695,
12215,
17,
9576,
1695,
4816,
1695,
5254,
1695,
4683,
1695,
3341,
1695,
12215,
1695,
4936,
1695,
16483,
18,
75,
30,
2138,
5292,
30,
24,
30,
261,
261,
1599,
13216,
350,
33,
1599,
571,
261,
296,
5666,
11,
13216,
296,
5666,
11,
571,
261,
296,
1202,
11,
13216,
296,
1202,
11,
571,
261,
296,
5345,
11,
13216,
296,
5345,
11,
571,
261,
296,
2271,
11,
13216,
296,
2271,
11,
2
] |
String path = input.getLocation().toOSString(); result[0] = Program.launch(path);
|
IPath location = input.getLocation(); if(location != null) { String path = location.toOSString(); result[0] = Program.launch(path); }
|
public void openSystemEditor(final IFile input) throws PartInitException { // Start busy indicator. final boolean result[] = new boolean[1]; BusyIndicator.showWhile(getDisplay(), new Runnable() { public void run() { // Open file using shell. String path = input.getLocation().toOSString(); result[0] = Program.launch(path); } }); // ShellExecute returns whether call was successful if (!result[0]) { throw new PartInitException(WorkbenchMessages.format("EditorManager.unableToOpenExternalEditor", new Object[] { input.getName()})); //$NON-NLS-1$ } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/cacd8007b59fe0be2c9105a7b95670838a9309ec/EditorManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1696,
3163,
6946,
12,
6385,
467,
812,
810,
13,
1216,
6393,
2570,
503,
288,
202,
202,
759,
3603,
21697,
10664,
18,
202,
202,
6385,
1250,
563,
8526,
273,
394,
1250,
63,
21,
15533,
202,
202,
29289,
13140,
18,
4500,
15151,
12,
588,
4236,
9334,
394,
10254,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
759,
3502,
585,
1450,
5972,
18,
9506,
202,
780,
589,
273,
810,
18,
588,
2735,
7675,
869,
4618,
780,
5621,
9506,
202,
2088,
63,
20,
65,
273,
13586,
18,
20738,
12,
803,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
759,
19433,
5289,
1135,
2856,
745,
1703,
6873,
202,
202,
430,
16051,
2088,
63,
20,
5717,
288,
1082,
202,
12849,
394,
6393,
2570,
503,
12,
2421,
22144,
5058,
18,
2139,
2932,
6946,
1318,
18,
18828,
774,
3678,
6841,
6946,
3113,
394,
1033,
8526,
288,
810,
18,
17994,
1435,
6792,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1696,
3163,
6946,
12,
6385,
467,
812,
810,
13,
1216,
6393,
2570,
503,
288,
202,
202,
759,
3603,
21697,
10664,
18,
202,
202,
6385,
1250,
563,
8526,
273,
394,
1250,
63,
21,
15533,
202,
202,
29289,
13140,
18,
4500,
15151,
12,
588,
4236,
9334,
394,
10254,
1435,
288,
1082,
202,
482,
918,
1086,
1435,
288,
9506,
202,
759,
3502,
585,
1450,
5972,
18,
9506,
202,
780,
589,
273,
810,
18,
588,
2735,
7675,
869,
4618,
780,
5621,
9506,
202,
2088,
63,
20,
65,
273,
13586,
18,
20738,
12,
803,
1769,
1082,
202,
97,
202,
202,
22938,
202,
202,
759,
19433,
5289,
1135,
2856,
745,
1703,
6873,
202,
202,
430,
16051,
2088,
63,
20,
5717,
288,
2
] |
if (getRuby().getSecurityLevel() >= 4) {
|
if (ruby.getSecurityLevel() >= 4) {
|
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { if (node == null) { return getRuby().getNil(); } switch (node.nd_type()) { case NODE_BLOCK: while (node.nd_next() != null) { eval(self, node.nd_head()); node = node.nd_next(); } node = node.nd_head(); break; case NODE_POSTEXE: // rb_f_END(); node.nd_set_type(NODE_NIL); /* exec just once */ return getRuby().getNil(); /* begin .. end without clauses */ case NODE_BEGIN: node = node.nd_body(); break; /* nodes for speed-up(default match) */ case NODE_MATCH: // return rb_reg_match2(node.nd_head().nd_lit()); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH2: // return rb_reg_match(eval(node.nd_recv()), eval(node.nd_value())); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH3: RubyObject r = eval(self, node.nd_recv()); RubyObject l = eval(self, node.nd_value()); if (l instanceof RubyString) { // return rb_reg_match(r, l); } else { return l.funcall(ruby.intern("=~"), r); } return getRuby().getNil(); /* node for speed-up(top-level loop for -n/-p) */ case NODE_OPT_N: while (true) { try { // while (!rb_gets().isNil() false) { // HACK +++ if (true) { // HACK --- try { eval(self, node.nd_body()); } catch (RedoException rExcptn) { } } break; } catch (NextException nExcptn) { } catch (BreakException bExcptn) { break; } } return getRuby().getNil(); case NODE_SELF: return self; case NODE_NIL: return getRuby().getNil(); case NODE_TRUE: return getRuby().getTrue(); case NODE_FALSE: return getRuby().getFalse(); case NODE_IF: // ruby_sourceline = node.nd_line(); cond = eval(self, node.nd_cond()); if (cond.isTrue()) { node = node.nd_body(); } else { node = node.nd_else(); } break; case NODE_WHEN: while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); }*/ // ruby_sourcefile = tag.nd_file; // ruby_sourceline = tag.nd_line(); if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj = eval(self, tag.nd_head().nd_head()); if (!(obj instanceof RubyArray)) { obj = RubyArray.m_newArray(getRuby(), obj); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { if (((RubyArray)obj).entry(i).isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (eval(self, tag.nd_head()).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_CASE: RubyObject obj = eval(self, node.nd_head()); node = node.nd_body(); while (node != null) { NODE tag; if (node.nd_type() != NODE_WHEN) { break; } tag = node.nd_head(); while (tag != null) {/* if (trace_func) { call_trace_func("line", tag->nd_file, nd_line(tag), self, ruby_frame->last_func, ruby_frame->last_class); } ruby_sourcefile = tag->nd_file; ruby_sourceline = nd_line(tag);*/ if (tag.nd_head().nd_type() == NODE_WHEN) { RubyObject obj2 = eval(self, tag.nd_head().nd_head()); if (!(obj2 instanceof RubyArray)) { obj2 = RubyArray.m_newArray(getRuby(), obj2); } for (int i = 0; i < ((RubyArray)obj).length(); i++) { RubyObject eqq = ((RubyArray)obj2).entry(i).funcall(getRuby().intern("==="), obj); if (eqq.isTrue()) { node = node.nd_body(); break; } } tag = tag.nd_next(); continue; } if (eval(self, tag.nd_head()).funcall(getRuby().intern("==="), obj).isTrue()) { node = node.nd_body(); break; } tag = tag.nd_next(); } node = node.nd_next(); } return getRuby().getNil(); case NODE_WHILE: while (eval(self, node.nd_cond()).isTrue()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_UNTIL: while (eval(self, node.nd_cond()).isFalse()) { while (true) { try { eval(self, node.nd_body()); break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { break; } catch (BreakException bExcptn) { return getRuby().getNil(); } } } return getRuby().getNil(); case NODE_BLOCK_PASS: //return block_pass(node); return null; case NODE_ITER: case NODE_FOR: rubyBlock.push(node.nd_var(), node.nd_body(), self); rubyIter.push(Iter.ITER_PRE); while (true) { try { if (node.nd_type() == NODE_ITER) { result = eval(self, node.nd_iter()); } else { // String file = // int line = rubyBlock.flags &= ~RubyBlock.BLOCK_D_SCOPE; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_iter()); endCallArgs(tmpBlock); // = file; // = line; result = recv.getRubyClass().call(recv, ruby.intern("each"), null, 0); } break; } catch (RetryException rExcptn) { } catch (ReturnException rExcptn) { result = rExcptn.getReturnValue(); break; } catch (BreakException bExcptn) { result = ruby.getNil(); break; } } rubyIter.pop(); rubyBlock.pop(); return result; case NODE_BREAK: throw new BreakException(); case NODE_NEXT: throw new NextException(); case NODE_REDO: throw new RedoException(); case NODE_RETRY: throw new RetryException(); case NODE_RESTARGS: result = eval(self, node.nd_head()); if (!(result instanceof RubyArray)) { result = obj = RubyArray.m_newArray(getRuby(), result); } return result; case NODE_YIELD: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); if (node.nd_stts().nd_type() == NODE_RESTARGS && ((RubyArray)result).length() == 1) { result = ((RubyArray)result).entry(0); } } else { result = ruby.getNil(); } return yield0(result, null, null, false); case NODE_RESCUE:/* retry_entry: { volatile VALUE e_info = ruby_errinfo; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, node->nd_head); } POP_TAG(); if (state == TAG_RAISE) { NODE * volatile resq = node->nd_resq; ruby_sourceline = nd_line(node); while (resq) { if (handle_rescue(self, resq)) { state = 0; PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = rb_eval(self, resq->nd_body); } POP_TAG(); if (state == TAG_RETRY) { state = 0; ruby_errinfo = Qnil; goto retry_entry; } if (state != TAG_RAISE) { ruby_errinfo = e_info; } break; } resq = resq->nd_head; /* next rescue */ /** } * } * else if (node->nd_else) { /* else clause given *//* if (!state) { /* no exception raised *//* result = rb_eval(self, node->nd_else); } } if (state) JUMP_TAG(state); } break;*/ case NODE_ENSURE:/* PUSH_TAG(PROT_NONE); if ((state = EXEC_TAG()) == 0) { result = eval(node.nd_head()); } POP_TAG(); if (node.nd_ensr()) { VALUE retval = prot_tag->retval; /* save retval *//* VALUE errinfo = ruby_errinfo; rb_eval(self, node->nd_ensr); return_value(retval); ruby_errinfo = errinfo; } if (state) JUMP_TAG(state); break;*/ case NODE_AND: cond = eval(self, node.nd_1st()); if (cond.isFalse()) { return cond; } node = node.nd_2nd(); break; case NODE_OR: cond = eval(self, node.nd_1st()); if (cond.isTrue()) { return cond; } node = node.nd_2nd(); break; case NODE_NOT: return RubyBoolean.m_newBoolean(getRuby(), eval(self, node.nd_1st()).isFalse()); case NODE_DOT2: case NODE_DOT3: result = RubyRange.m_newRange(getRuby(), eval(self, node.nd_beg()), eval(self, node.nd_end()), node.nd_type() == NODE_DOT3); if (node.nd_state() != 0) { return result; } if (node.nd_beg().nd_type() == NODE_LIT && (node.nd_beg().nd_lit() instanceof RubyFixnum) && node.nd_end().nd_type() == NODE_LIT && (node.nd_end().nd_lit() instanceof RubyFixnum)) { node.nd_set_type(NODE_LIT); node.nd_lit(result); } else { node.nd_state(1L); } return result; case NODE_FLIP2: /* like AWK */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.getRubyScope().getLocalVars(node.nd_cnt()).isFalse()) { if (eval(self, node.nd_beg()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), eval(self, node.nd_end()).isTrue() ? ruby.getFalse() : ruby.getTrue()); result = ruby.getTrue(); } else { result = ruby.getFalse(); } } else { if (eval(self, node.nd_end()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_FLIP3: /* like SED */ /*if (ruby_scope->local_vars == 0) { rb_bug("unexpected local variable"); }*/ if (ruby.getRubyScope().getLocalVars(node.nd_cnt()).isFalse()) { result = eval(self, node.nd_beg()).isTrue() ? ruby.getFalse() : ruby.getTrue(); ruby.getRubyScope().setLocalVars(node.nd_cnt(), result); } else { if (eval(self, node.nd_end()).isTrue()) { ruby.getRubyScope().setLocalVars(node.nd_cnt(), ruby.getFalse()); } result = ruby.getTrue(); } return result; case NODE_RETURN: if (node.nd_stts() != null) { result = eval(self, node.nd_stts()); } else { result = ruby.getNil(); } throw new ReturnException(result); case NODE_ARGSCAT: return ((RubyArray)eval(self, node.nd_head())).m_concat(eval(self, node.nd_body())); case NODE_ARGSPUSH: return ((RubyArray)eval(self, node.nd_head()).m_dup()).push(eval(self, node.nd_body())); case NODE_CALL: // TMP_PROTECT; RubyBlock tmpBlock = beginCallargs(); RubyObject recv = eval(self, node.nd_recv()); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return recv.getRubyClass().call(recv, (RubyId)node.nd_mid(), args, 0); case NODE_FCALL: // TMP_PROTECT; tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); return self.getRubyClass().call(self, (RubyId)node.nd_mid(), args, 1); case NODE_VCALL: return self.getRubyClass().call(self, (RubyId)node.nd_mid(), null, 2); case NODE_SUPER: case NODE_ZSUPER: // TMP_PROTECT; if (getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + rubyFrame.getLastFunc().toName() + "' disabled"); } if (node.nd_type() == NODE_ZSUPER) { List argsList = getRubyFrame().getArgs(); args = (RubyObject[])argsList.toArray(new RubyObject[argsList.size()]); } else { tmpBlock = beginCallargs(); args = setupArgs(self, node.nd_args()); endCallArgs(tmpBlock); } rubyIter.push(rubyIter.getIter() != Iter.ITER_NOT ? Iter.ITER_PRE : Iter.ITER_NOT); result = getRubyFrame().getLastClass().getSuperClass().call(rubyFrame.getSelf(), rubyFrame.getLastFunc(), args, 3); rubyIter.pop(); return result; case NODE_SCOPE: NODE saved_cref = null; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; ruby.getRubyScope().push(); if (node.nd_rval() != null) { saved_cref = ruby_cref; ruby_cref = (NODE)node.nd_rval(); getRubyFrame().setCbase(node.nd_rval()); } if (node.nd_tbl() != null) { List tmp = Collections.nCopies(node.nd_tbl()[0].intValue() + 1, ruby.getNil()); ShiftableList vars = new ShiftableList(new ArrayList(tmp)); vars.set(0, (VALUE)node); vars.shift(1); getRuby().getRubyScope().setLocalVars(vars); getRuby().getRubyScope().setLocalTbl(node.nd_tbl()); } else { getRuby().getRubyScope().setLocalVars(null); getRuby().getRubyScope().setLocalTbl(null); } result = eval(self, node.nd_next()); ruby.getRubyScope().pop(); rubyFrame = frame.getTmp(); if (saved_cref != null) { ruby_cref = saved_cref; } return result; case NODE_OP_ASGN1: // TMP_PROTECT; recv = eval(self, node.nd_recv()); NODE rval = node.nd_args().nd_head(); args = setupArgs(self, node.nd_args().nd_next()); ArrayList argsList = new ArrayList(Arrays.asList(args)); argsList.remove(args.length - 1); RubyObject val = recv.funcall(getRuby().intern("[]"), (RubyObject[])argsList.toArray(new RubyObject[argsList.size()])); switch (node.nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = eval(self, rval); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = eval(self, rval); break; default: val = val.funcall((RubyId)node.nd_mid(), eval(self, rval)); } args[args.length - 1] = val; return recv.funcall(getRuby().intern("[]="), args); case NODE_OP_ASGN2: ID id = node.nd_next().nd_vid(); recv = eval(self, node.nd_recv()); val = recv.funcall((RubyId)id, (RubyObject[])null); switch (node.nd_next().nd_mid().intValue()) { case 0: /* OR */ if (val.isTrue()) { return val; } val = eval(self, node.nd_value()); break; case 1: /* AND */ if (val.isFalse()) { return val; } val = eval(self, node.nd_value()); break; default: val = val.funcall((RubyId)node.nd_mid(), eval(self, node.nd_value())); } // HACK +++ val = recv.funcall((RubyId)node.nd_next().nd_aid(), val); // HACK --- return val; case NODE_OP_ASGN_AND: cond = eval(self, node.nd_head()); if (cond.isFalse()) { return cond; } node = node.nd_value(); break; case NODE_OP_ASGN_OR: cond = eval(self, node.nd_head()); if ((node.nd_aid() != null && !self.isInstanceVarDefined((RubyId)node.nd_aid())) || cond.isFalse()) { node = node.nd_value(); break; } return cond; case NODE_MASGN: return massign(self, node, eval(self, node.nd_value()), false); case NODE_LASGN: // if (ruby.ruby_scope.local_vars == null) { // rb_bug("unexpected local variable assignment"); // } result = eval(self, node.nd_value()); getRuby().getRubyScope().setLocalVars(node.nd_cnt(), result); return result; case NODE_DASGN: result = eval(self, node.nd_value()); RubyVarmap.assign(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_DASGN_CURR: result = eval(self, node.nd_value()); RubyVarmap.assignCurrent(ruby, (RubyId)node.nd_vid(), result); return result; case NODE_GASGN: result = eval(self, node.nd_value()); ((RubyGlobalEntry)node.nd_entry()).set(result); return result; case NODE_IASGN: result = eval(self, node.nd_value()); self.setInstanceVar((RubyId)node.nd_vid(), result); return result; case NODE_CDECL: if (ruby.getRubyClass() == null) { throw new RubyTypeException("no class/module to define constant"); } result = eval(self, node.nd_value()); ruby.getRubyClass().setConstant((RubyId)node.nd_vid(), result); return result; case NODE_CVDECL: if (ruby_cbase == null) { throw new RubyTypeException("no class/module to define class variable"); } result = eval(self, node.nd_value()); if (ruby_cbase.isSingleton()) { ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().declareClassVar((RubyId)node.nd_vid(), result); return result; } ruby_cbase.declareClassVar((RubyId)node.nd_vid(), result); return result; case NODE_CVASGN: result = eval(self, node.nd_value()); self.getClassVarSingleton().setClassVar((RubyId)node.nd_vid(), result); return result; case NODE_LVAR: //if (getRuby().ruby_scope.local_vars == null) { // rb_bug("unexpected local variable"); // } return (RubyObject)getRuby().getRubyScope().getLocalVars(node.nd_cnt()); case NODE_DVAR: return ruby.getDynamicVars().getRef((RubyId)node.nd_vid()); case NODE_GVAR: return ((RubyGlobalEntry)node.nd_entry()).get(); case NODE_IVAR: return self.getInstanceVar((RubyId)node.nd_vid()); case NODE_CONST: return getConstant((NODE)getRubyFrame().getCbase(), (RubyId)node.nd_vid(), self); case NODE_CVAR: /* normal method */ if (ruby_cbase == null) { return self.getRubyClass().getClassVar((RubyId)node.nd_vid()); } if (!ruby_cbase.isSingleton()) { return ruby_cbase.getClassVar((RubyId)node.nd_vid()); } return ruby_cbase.getInstanceVar("__attached__").getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_CVAR2: /* singleton method */ return self.getClassVarSingleton().getClassVar((RubyId)node.nd_vid()); case NODE_BLOCK_ARG: if (ruby.getRubyScope().getLocalVars() == null) { throw new RuntimeException("BUG: unexpected block argument"); } if (isBlockGiven()) { result = getRuby().getNil(); // Create Proc object ruby.getRubyScope().setLocalVars(node.nd_cnt(), result); return result; } else { return getRuby().getNil(); } case NODE_COLON2: value = eval(self, node.nd_head()); if (value instanceof RubyModule) { return ((RubyModule)value).getConstant((RubyId)node.nd_mid()); } else { return value.funcall((RubyId)node.nd_mid()); } case NODE_COLON3: return getRuby().getClasses().getObjectClass().getConstant((RubyId)node.nd_mid()); case NODE_NTH_REF: // return rom.rb_reg_nth_match(node.nd_nth(), MATCH_DATA); return null; case NODE_BACK_REF: /*switch ((char)node.nd_nth()) { case '&': return rom.rb_reg_last_match(MATCH_DATA); case '`': return rom.rb_reg_match_pre(MATCH_DATA); case '\'': return rom.rb_reg_match_post(MATCH_DATA); case '+': return rom.rb_reg_match_last(MATCH_DATA); default: rom.rb_bug("unexpected back-ref"); }*/ case NODE_HASH: RubyHash hash = RubyHash.m_newHash(ruby); NODE list = node.nd_head(); while(list != null) { RubyObject key = eval(self, list.nd_head()); list = list.nd_next(); if (list == null) { // HACK +++ throw new RubyArgumentException("odd number list for Hash"); // HACK --- } value = eval(self, list.nd_head()); hash.m_aset(key, value); list = list.nd_next(); } return hash; case NODE_ZARRAY: /* zero length list */ return RubyArray.m_newArray(getRuby()); case NODE_ARRAY: ArrayList ary = new ArrayList(node.nd_alen()); for (; node != null ; node = node.nd_next()) { ary.add(eval(self, node.nd_head())); } return RubyArray.m_newArray(getRuby(), ary); case NODE_STR: return ((RubyObject)node.nd_lit()).m_to_s(); case NODE_DSTR: case NODE_DXSTR: case NODE_DREGX: case NODE_DREGX_ONCE:/* NODE list = node.nd_next(); RubyString str = RubyString.m_newString(getRuby(), (RubyObject)node.nd_lit()); RubyString str2; while (list != null) { if (list.nd_head() != null) { switch (list.nd_head().nd_type()) { case NODE_STR: str2 = (RubyString)list.nd_head().nd_lit(); break; case NODE_EVSTR: result = ruby_errinfo; ruby_errinfo = Qnil; ruby_sourceline = nd_line(node); ruby_in_eval++; list.nd_head(compile(list.nd_head().nd_lit(), ruby_sourcefile,ruby_sourceline)); ruby_eval_tree = 0; ruby_in_eval--; if (ruby_nerrs > 0) { compile_error("string expansion"); } if (!NIL_P(result)) ruby_errinfo = result; /* fall through *//* default: str2 = (RubyString)rom.rb_obj_as_string(eval(list.nd_head())); break; } str.append(str2); str.infectObject(str2); } list = list.nd_next(); } switch (node.nd_type()) { case NODE_DREGX: return rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); case NODE_DREGX_ONCE: /* regexp expand once *//* VALUE result = rom.rb_reg_new(str.getString(), str.getString().length(), node.nd_cflag()); node.nd_set_type(NODE_LIT); node.nd_lit(result); return result; case NODE_DXSTR: return rom.rb_funcall(this, '`', 1, str); default: return str; }*/ return null; case NODE_XSTR: return self.funcall(getRuby().intern("`"), (RubyObject)node.nd_lit()); case NODE_LIT: return (RubyObject)node.nd_lit(); case NODE_ATTRSET: if (getRubyFrame().getArgs().size() != 1) { throw new RubyArgumentException("wrong # of arguments(" + rubyFrame.getArgs().size() + "for 1)"); } return self.setInstanceVar((RubyId)node.nd_vid(), (RubyObject)rubyFrame.getArgs().get(0)); case NODE_DEFN: if (node.nd_defn() != null) { int noex; if (ruby.getRubyClass() == null) { throw new RubyTypeException("no class to add method"); } //if (ruby_class == getRuby().getObjectClass() && node.nd_mid() == init) { // rom.rb_warn("redefining Object#initialize may cause infinite loop"); //} //if (node.nd_mid() == __id__ || node.nd_mid() == __send__) { // rom.rb_warn("redefining `%s' may cause serious problem", ((RubyId)node.nd_mid()).toName()); //} // ruby_class.setFrozen(true); SearchMethodResult smr = ruby.getRubyClass().searchMethod((RubyId)node.nd_mid()); NODE body = smr.getBody(); RubyObject origin = smr.getOrigin(); if (body != null){ // if (ruby_verbose.isTrue() && ruby_class == origin && body.nd_cnt() == 0) { // rom.rb_warning("discarding old %s", ((RubyId)node.nd_mid()).toName()); // } // if (node.nd_noex() != 0) { /* toplevel */ /* should upgrade to rb_warn() if no super was called inside? */ // rom.rb_warning("overriding global function `%s'", ((RubyId)node.nd_mid()).toName()); // } } if (isScope(SCOPE_PRIVATE) || node.nd_mid().equals(ruby.intern("initialize"))) { noex = NOEX_PRIVATE; } else if (isScope(SCOPE_PROTECTED)) { noex = NOEX_PROTECTED; } else if (ruby.getRubyClass() == getRuby().getClasses().getObjectClass()) { noex = node.nd_noex(); } else { noex = NOEX_PUBLIC; } if (body != null && origin == ruby.getRubyClass() && (body.nd_noex() & NOEX_UNDEF) != 0) { noex |= NOEX_UNDEF; } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); ruby.getRubyClass().addMethod((RubyId)node.nd_mid(), defn, noex); // rb_clear_cache_by_id(node.nd_mid()); if (actMethodScope == SCOPE_MODFUNC) { ruby.getRubyClass().getSingletonClass().addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC); ruby.getRubyClass().funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } if (ruby.getRubyClass().isSingleton()) { ruby.getRubyClass().getInstanceVar("__attached__").funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } else { ruby.getRubyClass().funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); } } return getRuby().getNil(); case NODE_DEFS: if (node.nd_defn() != null) { recv = eval(self, node.nd_recv()); if (getRuby().getSecurityLevel() >= 4 && !recv.isTaint()) { throw new RubySecurityException("Insecure; can't define singleton method"); } /*if (FIXNUM_P(recv) || SYMBOL_P(recv)) { rb_raise(rb_eTypeError, "can't define singleton method \"%s\" for %s", rb_id2name(node.nd_mid()), rb_class2name(CLASS_OF(recv))); }*/ // not needed in jruby if (recv.isFrozen()) { throw new RubyFrozenException("object"); } rubyClass = recv.getSingletonClass(); NODE body = (NODE)rubyClass.getMethods().get((RubyId)node.nd_mid()); if (body != null) { if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("redefining method prohibited"); } /*if (RTEST(ruby_verbose)) { rb_warning("redefine %s", rb_id2name(node.nd_mid())); }*/ } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); defn.nd_rval(ruby_cref); rubyClass.addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC | (body != null ? body.nd_noex() & NOEX_UNDEF : 0)); // rb_clear_cache_by_id(node.nd_mid()); recv.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } return getRuby().getNil(); case NODE_UNDEF: if (ruby.getRubyClass() == null) { throw new RubyTypeException("no class to undef method"); } ruby.getRubyClass().undef((RubyId)node.nd_mid()); return getRuby().getNil(); case NODE_ALIAS: if (ruby.getRubyClass() == null) { throw new RubyTypeException("no class to make alias"); } ruby.getRubyClass().aliasMethod((RubyId)node.nd_new(), (RubyId)node.nd_old()); ruby.getRubyClass().funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol()); return getRuby().getNil(); case NODE_VALIAS: RubyGlobalEntry.getGlobalEntry((RubyId)node.nd_old()).alias((RubyId)node.nd_new()); return getRuby().getNil(); case NODE_CLASS: RubyModule superClass; if (ruby.getRubyClass() == null) { throw new RubyTypeException("no outer class/module"); } if (node.nd_super() != null) { superClass = getSuperClass(self, node.nd_super()); } else { superClass = null; } rubyClass = null; // if ((ruby_class == getRuby().getObjectClass()) && rb_autoload_defined(node.nd_cname())) { // rb_autoload_load(node.nd_cname()); // } if (ruby.getRubyClass().isConstantDefined((RubyId)node.nd_cname())) { rubyClass = (RubyClass)ruby.getRubyClass().getConstant((RubyId)node.nd_cname()); } if (rubyClass != null) { if (!rubyClass.isClass()) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a class"); } if (superClass != null) { RubyModule tmp = rubyClass.getSuperClass(); if (tmp.isSingleton()) { tmp = tmp.getSuperClass(); } while (tmp.isIncluded()) { tmp = tmp.getSuperClass(); } if (tmp != superClass) { superClass = tmp; //goto override_class; if (superClass == null) { superClass = getRuby().getClasses().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby.getRubyClass().setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath(ruby.getRubyClass(), ((RubyId)node.nd_cname()).toName()); // end goto } } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending class prohibited"); } // rb_clear_cache(); } else { //override_class: if (superClass == null) { superClass = getRuby().getClasses().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby.getRubyClass().setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath(ruby.getRubyClass(), ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_MODULE: if (ruby.getRubyClass() == null) { throw new RubyTypeException("no outer class/module"); } RubyModule module = null; if ((ruby.getRubyClass() == getRuby().getClasses().getObjectClass()) && getRuby().isAutoloadDefined((RubyId)node.nd_cname())) { // getRuby().rb_autoload_load(node.nd_cname()); } if (ruby.getRubyClass().isConstantDefined((RubyId)node.nd_cname())) { module = (RubyModule)ruby.getRubyClass().getConstant((RubyId)node.nd_cname()); } if (module != null) { if (!(module instanceof RubyModule)) { throw new RubyTypeException(((RubyId)node.nd_cname()).toName() + " is not a module"); } if (getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException("extending module prohibited"); } } else { module = getRuby().defineModuleId((RubyId)node.nd_cname()); ruby.getRubyClass().setConstant((RubyId)node.nd_cname(), module); module.setClassPath(ruby.getRubyClass(), ((RubyId)node.nd_cname()).toName()); } if (ruby_wrapper != null) { module.getSingletonClass().includeModule(ruby_wrapper); module.includeModule(ruby_wrapper); } return setupModule(module, node.nd_body()); case NODE_SCLASS: rubyClass = (RubyClass)eval(self, node.nd_recv()); if (rubyClass.isSpecialConst()) { throw new RubyTypeException("no virtual class for " + rubyClass.getRubyClass().toName()); } if (getRuby().getSecurityLevel() >= 4 && !rubyClass.isTaint()) { throw new RubySecurityException("Insecure: can't extend object"); } if (rubyClass.getRubyClass().isSingleton()) { // rb_clear_cache(); } rubyClass = rubyClass.getSingletonClass(); if (ruby_wrapper != null) { rubyClass.getSingletonClass().includeModule(ruby_wrapper); rubyClass.includeModule(ruby_wrapper); } return setupModule(rubyClass, node.nd_body()); case NODE_DEFINED: // String buf; // String desc = is_defined(self, node.nd_head(), buf); // // if (desc) { // result = rb_str_new2(desc); // } else { // result = Qnil; // } case NODE_NEWLINE: // ruby_sourcefile = node.nd_file; // ruby_sourceline = node.nd_nth(); // if (trace_func) { // call_trace_func("line", ruby_sourcefile, ruby_sourceline, self, // ruby_frame.last_func(), // ruby_frame.last_class()); // } node = node.nd_next(); break; default: // rom.rb_bug("unknown node type %d", nd_type(node)); } } }
|
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/cf644c556d410c47305ebeba5728efa25f7756dc/RubyInterpreter.java/buggy/org/jruby/interpreter/RubyInterpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
5302,
12,
54,
10340,
921,
365,
16,
11922,
290,
13,
288,
3639,
11922,
756,
273,
290,
31,
7734,
19817,
921,
6941,
273,
446,
31,
3639,
19817,
921,
8526,
833,
273,
446,
31,
3639,
19817,
921,
460,
273,
446,
31,
3639,
19817,
921,
563,
273,
446,
31,
3639,
19817,
3120,
22155,
797,
273,
446,
31,
3639,
368,
509,
919,
31,
7734,
368,
19817,
8176,
4712,
24137,
273,
4170,
10340,
7675,
588,
8176,
4712,
5621,
7734,
1323,
261,
3767,
13,
288,
13491,
309,
261,
2159,
422,
446,
13,
288,
7734,
327,
4170,
10340,
7675,
588,
12616,
5621,
5411,
289,
13491,
1620,
261,
2159,
18,
4880,
67,
723,
10756,
288,
7734,
648,
11922,
67,
11403,
30,
10792,
1323,
261,
2159,
18,
4880,
67,
4285,
1435,
480,
446,
13,
288,
13491,
5302,
12,
2890,
16,
756,
18,
4880,
67,
1978,
10663,
13491,
756,
273,
756,
18,
4880,
67,
4285,
5621,
10792,
289,
10792,
756,
273,
756,
18,
4880,
67,
1978,
5621,
10792,
898,
31,
4766,
565,
648,
11922,
67,
3798,
2294,
41,
30,
10792,
368,
7138,
67,
74,
67,
4415,
5621,
10792,
756,
18,
4880,
67,
542,
67,
723,
12,
8744,
67,
50,
2627,
1769,
1748,
1196,
2537,
3647,
1195,
10792,
327,
4170,
10340,
7675,
588,
12616,
5621,
4766,
565,
1748,
2376,
6116,
679,
2887,
14093,
1195,
7734,
648,
11922,
67,
16061,
30,
10792,
756,
273,
756,
18,
4880,
67,
3432,
5621,
10792,
898,
31,
4766,
565,
1748,
2199,
364,
8632,
17,
416,
12,
1886,
845,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
921,
5302,
12,
54,
10340,
921,
365,
16,
11922,
290,
13,
288,
3639,
11922,
756,
273,
290,
31,
7734,
19817,
921,
6941,
273,
446,
31,
3639,
19817,
921,
8526,
833,
273,
446,
31,
3639,
19817,
921,
460,
273,
446,
31,
3639,
19817,
921,
563,
273,
446,
31,
3639,
19817,
3120,
22155,
797,
273,
446,
31,
3639,
368,
509,
919,
31,
7734,
368,
19817,
8176,
4712,
24137,
273,
4170,
10340,
7675,
588,
8176,
4712,
5621,
7734,
1323,
261,
3767,
13,
288,
13491,
309,
261,
2159,
422,
446,
13,
288,
7734,
327,
4170,
10340,
7675,
588,
12616,
5621,
5411,
289,
13491,
1620,
261,
2159,
18,
4880,
67,
723,
10756,
288,
7734,
648,
11922,
67,
11403,
30,
10792,
1323,
2
] |
if (equals(root, element)) {
|
if (equals(root, element)) {
|
protected Widget doFindInputItem(Object element) { // compare with root Object root = getRoot(); if (root == null) { return null; } if (equals(root, element)) { return getControl(); } return null; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/7dea322b00f8363f209617dc36ba0b47497db00d/AbstractTreeViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
11103,
741,
3125,
1210,
1180,
12,
921,
930,
13,
288,
3639,
368,
3400,
598,
1365,
3639,
1033,
1365,
273,
7656,
5621,
3639,
309,
261,
3085,
422,
446,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
3639,
309,
261,
14963,
12,
3085,
16,
930,
3719,
288,
1082,
202,
2463,
27174,
5621,
202,
202,
97,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
11103,
741,
3125,
1210,
1180,
12,
921,
930,
13,
288,
3639,
368,
3400,
598,
1365,
3639,
1033,
1365,
273,
7656,
5621,
3639,
309,
261,
3085,
422,
446,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
3639,
309,
261,
14963,
12,
3085,
16,
930,
3719,
288,
1082,
202,
2463,
27174,
5621,
202,
202,
97,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
static private final void jjCheckNAddStates(int start, int end) { do { jjCheckNAdd(jjnextStates[start]); } while (start++ != end); }
|
static private final void jjCheckNAddStates(int start, int end) { do { jjCheckNAdd(jjnextStates[start]); } while (start++ != end); }
|
static private final void jjCheckNAddStates(int start, int end) { do { jjCheckNAdd(jjnextStates[start]); } while (start++ != end); }
|
7955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7955/bad00f3f09c2c02431a6ece8c42243cb1bcfaf44/AnnotationParserTokenManager.java/clean/backport175/src/main/org/codehaus/backport175/compiler/parser/ast/AnnotationParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
3238,
727,
918,
10684,
1564,
50,
986,
7629,
12,
474,
787,
16,
509,
679,
13,
288,
3639,
741,
288,
5411,
10684,
1564,
50,
986,
12,
78,
78,
4285,
7629,
63,
1937,
19226,
3639,
289,
1323,
261,
1937,
9904,
480,
679,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
3238,
727,
918,
10684,
1564,
50,
986,
7629,
12,
474,
787,
16,
509,
679,
13,
288,
3639,
741,
288,
5411,
10684,
1564,
50,
986,
12,
78,
78,
4285,
7629,
63,
1937,
19226,
3639,
289,
1323,
261,
1937,
9904,
480,
679,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
buf.append("<br>\n<hr>\n<br>\n");
|
public StringBuilder objectRenderer(Object o, String index, Part p) throws MessagingException { StringBuilder buf=new StringBuilder(); try { if (o instanceof MimeMultipart) { MimeMultipart mm_i=(MimeMultipart) o; StringBuilder sb=decend(mm_i, index); buf.append(sb); } else if (o instanceof IMAPNestedMessage) { Object o_1=((Message) o).getContent(); if (o_1 instanceof String) { String s=(String) o_1; buf.append("<br>\n<hr>\n<br>\n"); Message m=new MimeMessage( Session.getInstance(new Properties()), new ByteArrayInputStream(s.getBytes())); buf.append(objectRenderer(m, index, m)); } else if (o_1 instanceof MimeMultipart) { buf.append(new RenderMessage().objectRenderer( (Message) o, index, (Message) o, this)); } } else { ObjectRender or=renderers.get(o.getClass()); if (or==null) { Set<Class> classes=renderers.keySet(); for (Class c : classes) { if (c.isAssignableFrom(o.getClass())) { or=renderers.get(c); break; } } } if (or==null) { buf.append(makeAttachmentBox(index, p)); } else { buf.append(or.objectRenderer(o, index, p, this)); } } } catch (IOException ioe) { throw new MessagingException("I/O error", ioe); } return buf; }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/b13c667b376deb4a8f2c235ffd847b57616d23c4/Renderer.java/clean/grendel/sources/grendel/renderer/Renderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3225,
733,
6747,
12,
921,
320,
16,
514,
770,
16,
6393,
293,
13,
1171,
9079,
1216,
23794,
503,
225,
288,
565,
3225,
1681,
33,
2704,
3225,
5621,
565,
775,
288,
1377,
309,
261,
83,
1276,
22059,
12024,
13,
288,
3639,
22059,
12024,
9740,
67,
77,
28657,
13320,
12024,
13,
320,
31,
3639,
3225,
2393,
33,
4924,
409,
12,
7020,
67,
77,
16,
770,
1769,
3639,
1681,
18,
6923,
12,
18366,
1769,
1377,
289,
469,
309,
261,
83,
1276,
6246,
2203,
8649,
1079,
13,
288,
3639,
1033,
320,
67,
21,
33,
12443,
1079,
13,
320,
2934,
588,
1350,
5621,
3639,
309,
261,
83,
67,
21,
1276,
514,
13,
288,
1850,
514,
272,
28657,
780,
13,
320,
67,
21,
31,
10792,
2350,
312,
33,
2704,
22059,
1079,
12,
4766,
565,
3877,
18,
588,
1442,
12,
2704,
6183,
1435,
3631,
4766,
565,
394,
16180,
12,
87,
18,
588,
2160,
1435,
10019,
1850,
1681,
18,
6923,
12,
1612,
6747,
12,
81,
16,
770,
16,
312,
10019,
3639,
289,
469,
309,
261,
83,
67,
21,
1276,
22059,
12024,
13,
288,
1850,
1681,
18,
6923,
12,
2704,
6987,
1079,
7675,
1612,
6747,
12,
4766,
13491,
261,
1079,
13,
320,
16,
770,
16,
4766,
13491,
261,
1079,
13,
320,
16,
333,
10019,
3639,
289,
1377,
289,
469,
288,
3639,
1033,
3420,
578,
33,
5902,
414,
18,
588,
12,
83,
18,
588,
797,
10663,
3639,
309,
261,
280,
631,
2011,
13,
288,
1850,
1000,
32,
797,
34,
3318,
33,
5902,
414,
18,
856,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3225,
733,
6747,
12,
921,
320,
16,
514,
770,
16,
6393,
293,
13,
1171,
9079,
1216,
23794,
503,
225,
288,
565,
3225,
1681,
33,
2704,
3225,
5621,
565,
775,
288,
1377,
309,
261,
83,
1276,
22059,
12024,
13,
288,
3639,
22059,
12024,
9740,
67,
77,
28657,
13320,
12024,
13,
320,
31,
3639,
3225,
2393,
33,
4924,
409,
12,
7020,
67,
77,
16,
770,
1769,
3639,
1681,
18,
6923,
12,
18366,
1769,
1377,
289,
469,
309,
261,
83,
1276,
6246,
2203,
8649,
1079,
13,
288,
3639,
1033,
320,
67,
21,
33,
12443,
1079,
13,
320,
2934,
588,
1350,
5621,
3639,
309,
261,
83,
67,
21,
1276,
514,
13,
288,
1850,
514,
272,
28657,
780,
13,
320,
67,
21,
2
] |
|
LocalVariable[] iterables= getLocalVariables(jc);
|
Variable[] iterables= getLocalVariables(jc);
|
protected String[] resolveAll(TemplateContext context) { JavaContext jc= (JavaContext) context; LocalVariable[] iterables= getLocalVariables(jc); String[] names= new String[iterables.length]; for (int i= 0; i < iterables.length; i++) names[i]= iterables[i].getName(); if (names.length > 0) jc.markAsUsed(names[0]); return names; }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/4db40b17147d6b74f951e771bf7d645a0150b120/JavaContextType.java/buggy/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContextType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
514,
8526,
2245,
1595,
12,
2283,
1042,
819,
13,
288,
202,
3639,
5110,
1042,
19807,
33,
261,
5852,
1042,
13,
819,
31,
202,
3639,
3566,
3092,
8526,
27447,
33,
6993,
6158,
12,
78,
71,
1769,
202,
3639,
514,
8526,
1257,
33,
394,
514,
63,
2165,
1538,
18,
2469,
15533,
202,
3639,
364,
261,
474,
277,
33,
374,
31,
277,
411,
27447,
18,
2469,
31,
277,
27245,
9506,
202,
1973,
63,
77,
65,
33,
27447,
63,
77,
8009,
17994,
5621,
202,
3639,
309,
261,
1973,
18,
2469,
405,
374,
13,
202,
540,
202,
78,
71,
18,
3355,
1463,
6668,
12,
1973,
63,
20,
19226,
1082,
202,
2463,
1257,
31,
202,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1117,
514,
8526,
2245,
1595,
12,
2283,
1042,
819,
13,
288,
202,
3639,
5110,
1042,
19807,
33,
261,
5852,
1042,
13,
819,
31,
202,
3639,
3566,
3092,
8526,
27447,
33,
6993,
6158,
12,
78,
71,
1769,
202,
3639,
514,
8526,
1257,
33,
394,
514,
63,
2165,
1538,
18,
2469,
15533,
202,
3639,
364,
261,
474,
277,
33,
374,
31,
277,
411,
27447,
18,
2469,
31,
277,
27245,
9506,
202,
1973,
63,
77,
65,
33,
27447,
63,
77,
8009,
17994,
5621,
202,
3639,
309,
261,
1973,
18,
2469,
405,
374,
13,
202,
540,
202,
78,
71,
18,
3355,
1463,
6668,
12,
1973,
63,
20,
19226,
1082,
202,
2463,
1257,
31,
202,
565,
289,
2,
-100,
-100,
-100,
-100,
-100
] |
return body.getComputedStyle( );
|
return null;
|
public IStyle getContentStyle( ) { if ( body == null ) { if ( generateBy instanceof MasterPageDesign ) { body = report.createCellContent( ); body.setInlineStyle( ( (MasterPageDesign) generateBy ) .getContentStyle( ) ); } } return body.getComputedStyle( ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/d0f317434ca96ba3070ee6e7ea38f096254a184a/PageContent.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/PageContent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
2885,
5154,
2885,
12,
262,
202,
95,
202,
202,
430,
261,
1417,
422,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
2103,
858,
1276,
13453,
1964,
15478,
262,
1082,
202,
95,
9506,
202,
3432,
273,
2605,
18,
2640,
4020,
1350,
12,
11272,
9506,
202,
3432,
18,
542,
10870,
2885,
12,
261,
261,
7786,
1964,
15478,
13,
2103,
858,
262,
25083,
202,
18,
588,
1350,
2885,
12,
262,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
1417,
18,
588,
17934,
2885,
12,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
2885,
5154,
2885,
12,
262,
202,
95,
202,
202,
430,
261,
1417,
422,
446,
262,
202,
202,
95,
1082,
202,
430,
261,
2103,
858,
1276,
13453,
1964,
15478,
262,
1082,
202,
95,
9506,
202,
3432,
273,
2605,
18,
2640,
4020,
1350,
12,
11272,
9506,
202,
3432,
18,
542,
10870,
2885,
12,
261,
261,
7786,
1964,
15478,
13,
2103,
858,
262,
25083,
202,
18,
588,
1350,
2885,
12,
262,
11272,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
1417,
18,
588,
17934,
2885,
12,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new InternalError(x.getMessage());
|
throw new InternalError(x.getMessage());
|
final void setByteField(Object obj, byte val) { try { field.setByte(obj, val); } catch(IllegalAccessException x) { throw new InternalError(x.getMessage()); } }
|
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/126d7770c7bb5b9c74598afb0864a336d457fd92/ObjectStreamField.java/buggy/libjava/java/io/ObjectStreamField.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
444,
3216,
974,
12,
921,
1081,
16,
1160,
1244,
13,
225,
288,
1377,
775,
1377,
288,
202,
225,
652,
18,
542,
3216,
12,
2603,
16,
1244,
1769,
1377,
289,
1377,
1044,
12,
12195,
9773,
619,
13,
1377,
288,
202,
225,
604,
394,
3186,
668,
12,
92,
18,
24906,
10663,
1377,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
727,
918,
444,
3216,
974,
12,
921,
1081,
16,
1160,
1244,
13,
225,
288,
1377,
775,
1377,
288,
202,
225,
652,
18,
542,
3216,
12,
2603,
16,
1244,
1769,
1377,
289,
1377,
1044,
12,
12195,
9773,
619,
13,
1377,
288,
202,
225,
604,
394,
3186,
668,
12,
92,
18,
24906,
10663,
1377,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.RoundingModulus getRoundingModulus() throws FieldNotFound { org.quickfix.field.RoundingModulus value = new org.quickfix.field.RoundingModulus();
|
public quickfix.field.RoundingModulus getRoundingModulus() throws FieldNotFound { quickfix.field.RoundingModulus value = new quickfix.field.RoundingModulus();
|
public org.quickfix.field.RoundingModulus getRoundingModulus() throws FieldNotFound { org.quickfix.field.RoundingModulus value = new org.quickfix.field.RoundingModulus(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MultilegOrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix43/MultilegOrderCancelReplaceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
4170,
772,
310,
1739,
17284,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
4170,
772,
310,
1739,
17284,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
11066,
310,
1739,
17284,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (element instanceof IViewCategory)
|
if (element instanceof IViewCategory) {
|
protected boolean isLeafMatch(Viewer viewer, Object element) { if (element instanceof IViewCategory) return false; String text = null; if (element instanceof IViewDescriptor) { IViewDescriptor desc = (IViewDescriptor) element; text = desc.getLabel(); if (wordMatches(text)) return true; } return false; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ViewPatternFilter.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ViewPatternFilter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
31356,
2060,
12,
18415,
14157,
16,
1033,
930,
13,
288,
202,
202,
430,
261,
2956,
1276,
467,
1767,
4457,
13,
1082,
202,
2463,
629,
31,
202,
202,
780,
977,
273,
446,
31,
202,
202,
430,
261,
2956,
1276,
467,
1767,
3187,
13,
288,
1082,
202,
45,
1767,
3187,
3044,
273,
261,
45,
1767,
3187,
13,
930,
31,
1082,
202,
955,
273,
3044,
18,
588,
2224,
5621,
1082,
202,
430,
261,
1095,
6869,
12,
955,
3719,
9506,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1117,
1250,
31356,
2060,
12,
18415,
14157,
16,
1033,
930,
13,
288,
202,
202,
430,
261,
2956,
1276,
467,
1767,
4457,
13,
1082,
202,
2463,
629,
31,
202,
202,
780,
977,
273,
446,
31,
202,
202,
430,
261,
2956,
1276,
467,
1767,
3187,
13,
288,
1082,
202,
45,
1767,
3187,
3044,
273,
261,
45,
1767,
3187,
13,
930,
31,
1082,
202,
955,
273,
3044,
18,
588,
2224,
5621,
1082,
202,
430,
261,
1095,
6869,
12,
955,
3719,
9506,
202,
2463,
638,
31,
202,
202,
97,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
updateProperties();
|
public AntBuildFileImpl(final AntFile antFile, final AntConfigurationBase configuration) { myFile = antFile; antFile.getSourceElement().putCopyableUserData(XmlFile.ANT_BUILD_FILE, this); myAntConfiguration = configuration; myWorkspaceOptions = new ExternalizablePropertyContainer(); myWorkspaceOptions.registerProperty(RUN_IN_BACKGROUND); myWorkspaceOptions.registerProperty(CLOSE_ON_NO_ERRORS); myWorkspaceOptions.registerProperty(TREE_VIEW); myWorkspaceOptions.registerProperty(VERBOSE); myWorkspaceOptions.registerProperty(TARGET_FILTERS, "filter", NewInstanceFactory.fromClass(TargetFilter.class)); myWorkspaceOptions.registerProperty((StringProperty)ANT_COMMAND_LINE_PARAMETERS); myWorkspaceOptions.rememberKey(RUN_WITH_ANT); myWorkspaceOptions.rememberKey(ALL_CLASS_PATH_ENTRIES); myProjectOptions = new ExternalizablePropertyContainer(); myProjectOptions.registerProperty(MAX_HEAP_SIZE); myProjectOptions.registerProperty((StringProperty)CUSTOM_JDK_NAME); myProjectOptions.registerProperty(ANT_PROPERTIES, "property", NewInstanceFactory.fromClass(BuildFileProperty.class)); myProjectOptions.registerProperty(ADDITIONAL_CLASSPATH, "entry", SinglePathEntry.EXTERNALIZER); myProjectOptions.registerProperty(ANT_REFERENCE, AntReference.EXTERNALIZER); myAllOptions = new CompositePropertyContainer(new AbstractProperty.AbstractPropertyContainer[]{myWorkspaceOptions, myProjectOptions, GlobalAntConfiguration.getInstance().getProperties(getProject())}); myClassloaderHolder = new AntClassLoaderHolder(myAllOptions, ALL_CLASS_PATH_ENTRIES); updateProperties(); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/ad8619a62bd83aaa06700101aa79028f3ef4da93/AntBuildFileImpl.java/buggy/plugins/ant/src/com/intellij/lang/ant/config/impl/AntBuildFileImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
18830,
3116,
812,
2828,
12,
6385,
18830,
812,
17841,
812,
16,
727,
18830,
1750,
2171,
1664,
13,
288,
565,
3399,
812,
273,
17841,
812,
31,
565,
17841,
812,
18,
588,
1830,
1046,
7675,
458,
2951,
429,
19265,
12,
4432,
812,
18,
6856,
67,
20215,
67,
3776,
16,
333,
1769,
565,
3399,
14925,
1750,
273,
1664,
31,
565,
3399,
8241,
1320,
273,
394,
11352,
6934,
1396,
2170,
5621,
565,
3399,
8241,
1320,
18,
4861,
1396,
12,
15238,
67,
706,
67,
8720,
20166,
1769,
565,
3399,
8241,
1320,
18,
4861,
1396,
12,
13384,
67,
673,
67,
3417,
67,
29127,
1769,
565,
3399,
8241,
1320,
18,
4861,
1396,
12,
26557,
67,
12145,
1769,
565,
3399,
8241,
1320,
18,
4861,
1396,
12,
21900,
1769,
565,
3399,
8241,
1320,
18,
4861,
1396,
12,
16374,
67,
11126,
55,
16,
315,
2188,
3113,
1166,
1442,
1733,
18,
2080,
797,
12,
2326,
1586,
18,
1106,
10019,
565,
3399,
8241,
1320,
18,
4861,
1396,
12443,
780,
1396,
13,
6856,
67,
19104,
67,
5997,
67,
20103,
1769,
565,
3399,
8241,
1320,
18,
28155,
653,
12,
15238,
67,
9147,
67,
6856,
1769,
565,
3399,
8241,
1320,
18,
28155,
653,
12,
4685,
67,
5237,
67,
4211,
67,
2222,
2259,
3991,
1769,
565,
3399,
4109,
1320,
273,
394,
11352,
6934,
1396,
2170,
5621,
565,
3399,
4109,
1320,
18,
4861,
1396,
12,
6694,
67,
3900,
2203,
67,
4574,
1769,
565,
3399,
4109,
1320,
18,
4861,
1396,
12443,
780,
1396,
13,
15136,
67,
46,
3398,
67,
1985,
1769,
565,
3399,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18830,
3116,
812,
2828,
12,
6385,
18830,
812,
17841,
812,
16,
727,
18830,
1750,
2171,
1664,
13,
288,
565,
3399,
812,
273,
17841,
812,
31,
565,
17841,
812,
18,
588,
1830,
1046,
7675,
458,
2951,
429,
19265,
12,
4432,
812,
18,
6856,
67,
20215,
67,
3776,
16,
333,
1769,
565,
3399,
14925,
1750,
273,
1664,
31,
565,
3399,
8241,
1320,
273,
394,
11352,
6934,
1396,
2170,
5621,
565,
3399,
8241,
1320,
18,
4861,
1396,
12,
15238,
67,
706,
67,
8720,
20166,
1769,
565,
3399,
8241,
1320,
18,
4861,
1396,
12,
13384,
67,
673,
67,
3417,
67,
29127,
1769,
565,
3399,
8241,
1320,
18,
4861,
1396,
12,
26557,
67,
12145,
1769,
565,
3399,
8241,
1320,
18,
4861,
1396,
2
] |
|
thisValue = null; for (int i = this_count; i < nargs; i++)
|
extraArg = null; for (int i = extraCount; i < args.length; i++)
|
public int matchN (Object[] args, CallContext ctx) { int nargs = args.length; boolean takesVarArgs = takesVarArgs(); int mlength = minArgs() + (takesVarArgs ? 1 : 0); int fixArgs = takesVarArgs ? mlength - 1 : mlength; if (takesVarArgs) { if (nargs < fixArgs) return NO_MATCH_TOO_FEW_ARGS|fixArgs; } else { if (nargs != mlength) if (nargs < mlength) return NO_MATCH_TOO_FEW_ARGS|fixArgs; else return NO_MATCH_TOO_MANY_ARGS|fixArgs; } int arg_count = argTypes.length; Type elementType = null; Object[] restArray = null; int this_count = getStaticFlag() ? 0 : 1; boolean takesContext = takesContext(); int rlen = mlength - this_count; Object[] rargs = new Object[rlen + (takesContext ? 1 : 0)]; if (takesContext) rargs[rlen] = ctx; Object thisValue; if (takesVarArgs) { Type restType = argTypes[arg_count-1]; if (restType == Compilation.scmListType) { // FIXME rargs[rlen-1] = gnu.lists.LList.makeList(args, fixArgs); nargs = fixArgs; } else { ArrayType restArrayType = (ArrayType) restType; elementType = restArrayType.getComponentType(); Class elementClass = elementType.getReflectClass(); restArray = (Object[]) java.lang.reflect.Array.newInstance(elementClass, nargs-fixArgs); rargs[rlen-1] = restArray; } } if (this_count != 0) { try { thisValue = method.getDeclaringClass().coerceFromObject(args[0]); } catch (ClassCastException ex) { return NO_MATCH_BAD_TYPE|1; } } else thisValue = null; for (int i = this_count; i < nargs; i++) { try { Object arg = args[i]; Type type = i < fixArgs ? argTypes[i-this_count] : elementType; if (type != Type.pointer_type) arg = type.coerceFromObject(arg); if (i < fixArgs) rargs[i-this_count] = arg; else restArray[i - fixArgs] = arg; } catch (ClassCastException ex) { return NO_MATCH_BAD_TYPE|(i+1); } } ctx.value1 = thisValue; ctx.values = rargs; ctx.proc = this; return 0; }
|
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/9ffd285436376614d0cda3108aca14db21d8c15c/PrimProcedure.java/buggy/gnu/expr/PrimProcedure.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
845,
50,
261,
921,
8526,
833,
16,
3049,
1042,
1103,
13,
225,
288,
565,
509,
14440,
273,
833,
18,
2469,
31,
565,
1250,
5530,
1537,
2615,
273,
5530,
1537,
2615,
5621,
565,
509,
312,
2469,
273,
1131,
2615,
1435,
397,
261,
88,
3223,
1537,
2615,
692,
404,
294,
374,
1769,
565,
509,
2917,
2615,
273,
5530,
1537,
2615,
692,
312,
2469,
300,
404,
294,
312,
2469,
31,
565,
309,
261,
88,
3223,
1537,
2615,
13,
1377,
288,
3639,
309,
261,
82,
1968,
411,
2917,
2615,
13,
1850,
327,
3741,
67,
11793,
67,
4296,
51,
67,
42,
7245,
67,
22439,
96,
904,
2615,
31,
1377,
289,
565,
469,
1377,
288,
3639,
309,
261,
82,
1968,
480,
312,
2469,
13,
1850,
309,
261,
82,
1968,
411,
312,
2469,
13,
5411,
327,
3741,
67,
11793,
67,
4296,
51,
67,
42,
7245,
67,
22439,
96,
904,
2615,
31,
1850,
469,
5411,
327,
3741,
67,
11793,
67,
4296,
51,
67,
24177,
67,
22439,
96,
904,
2615,
31,
1377,
289,
565,
509,
1501,
67,
1883,
273,
30973,
18,
2469,
31,
565,
1412,
21427,
273,
446,
31,
565,
1033,
8526,
3127,
1076,
273,
446,
31,
565,
509,
333,
67,
1883,
273,
23414,
4678,
1435,
692,
374,
294,
404,
31,
565,
1250,
5530,
1042,
273,
5530,
1042,
5621,
565,
509,
436,
1897,
273,
312,
2469,
300,
333,
67,
1883,
31,
565,
1033,
8526,
436,
1968,
273,
394,
1033,
63,
1321,
275,
397,
261,
88,
3223,
1042,
692,
404,
294,
374,
13,
15533,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
845,
50,
261,
921,
8526,
833,
16,
3049,
1042,
1103,
13,
225,
288,
565,
509,
14440,
273,
833,
18,
2469,
31,
565,
1250,
5530,
1537,
2615,
273,
5530,
1537,
2615,
5621,
565,
509,
312,
2469,
273,
1131,
2615,
1435,
397,
261,
88,
3223,
1537,
2615,
692,
404,
294,
374,
1769,
565,
509,
2917,
2615,
273,
5530,
1537,
2615,
692,
312,
2469,
300,
404,
294,
312,
2469,
31,
565,
309,
261,
88,
3223,
1537,
2615,
13,
1377,
288,
3639,
309,
261,
82,
1968,
411,
2917,
2615,
13,
1850,
327,
3741,
67,
11793,
67,
4296,
51,
67,
42,
7245,
67,
22439,
96,
904,
2615,
31,
1377,
289,
565,
469,
1377,
288,
3639,
309,
261,
82,
1968,
480,
312,
2
] |
public MarkupParser(final IXmlPullParser xmlParser, final MarkupResourceStream resource)
|
public MarkupParser(final MarkupResourceStream resource)
|
public MarkupParser(final IXmlPullParser xmlParser, final MarkupResourceStream resource) { // Create the markup before we initialize the chain this.markup = new Markup(); this.markup.setResource(resource); this.rootFragment = new MarkupFragment(this.markup); // Create a XML parser this.xmlParser = xmlParser; // Initialize the markup filter chain initializeMarkupFilters(); }
|
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/7b52a0c32e60a468e3e73478df90838d37d577d4/MarkupParser.java/clean/wicket/src/main/java/wicket/markup/MarkupParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
26420,
2678,
12,
6385,
467,
4432,
9629,
2678,
2025,
2678,
16,
727,
26420,
1420,
1228,
1058,
13,
202,
95,
202,
202,
759,
1788,
326,
9813,
1865,
732,
4046,
326,
2687,
202,
202,
2211,
18,
15056,
273,
394,
26420,
5621,
202,
202,
2211,
18,
15056,
18,
542,
1420,
12,
3146,
1769,
202,
202,
2211,
18,
3085,
7456,
273,
394,
26420,
7456,
12,
2211,
18,
15056,
1769,
202,
202,
759,
1788,
279,
3167,
2082,
202,
202,
2211,
18,
2902,
2678,
273,
2025,
2678,
31,
202,
202,
759,
9190,
326,
9813,
1034,
2687,
202,
202,
11160,
13111,
5422,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26420,
2678,
12,
6385,
467,
4432,
9629,
2678,
2025,
2678,
16,
727,
26420,
1420,
1228,
1058,
13,
202,
95,
202,
202,
759,
1788,
326,
9813,
1865,
732,
4046,
326,
2687,
202,
202,
2211,
18,
15056,
273,
394,
26420,
5621,
202,
202,
2211,
18,
15056,
18,
542,
1420,
12,
3146,
1769,
202,
202,
2211,
18,
3085,
7456,
273,
394,
26420,
7456,
12,
2211,
18,
15056,
1769,
202,
202,
759,
1788,
279,
3167,
2082,
202,
202,
2211,
18,
2902,
2678,
273,
2025,
2678,
31,
202,
202,
759,
9190,
326,
9813,
1034,
2687,
202,
202,
11160,
13111,
5422,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(logger instanceof LoggerHookChain && ((LoggerHookChain)logger).getHooks().length == 0) {
|
if((logger instanceof LoggerHookChain) && (((LoggerHookChain)logger).getHooks().length == 0)) {
|
public synchronized static void destroyChainIfEmpty() { if(logger instanceof VoidLogger) return; if(logger instanceof LoggerHookChain && ((LoggerHookChain)logger).getHooks().length == 0) { logger = new VoidLogger(); } }
|
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/Logger.java/clean/src/freenet/support/Logger.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3852,
760,
918,
5546,
3893,
26326,
1435,
288,
202,
202,
430,
12,
4901,
1276,
6988,
3328,
13,
327,
31,
202,
202,
430,
12,
4901,
1276,
4242,
5394,
3893,
597,
14015,
3328,
5394,
3893,
13,
4901,
2934,
588,
13620,
7675,
2469,
422,
374,
13,
288,
1082,
202,
4901,
273,
394,
6988,
3328,
5621,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3852,
760,
918,
5546,
3893,
26326,
1435,
288,
202,
202,
430,
12,
4901,
1276,
6988,
3328,
13,
327,
31,
202,
202,
430,
12,
4901,
1276,
4242,
5394,
3893,
597,
14015,
3328,
5394,
3893,
13,
4901,
2934,
588,
13620,
7675,
2469,
422,
374,
13,
288,
1082,
202,
4901,
273,
394,
6988,
3328,
5621,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
switch(column) {
|
switch (column) {
|
public Object getValueAt(int row, int column) { switch(column) { case 0: return expressions.elementAt(row); case 1: return values.elementAt(row); } return ""; }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5b760bc86060749267746b7d77c0c8da1d3b9c1d/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2366,
861,
12,
474,
1027,
16,
509,
1057,
13,
288,
3639,
1620,
261,
2827,
13,
288,
3639,
648,
374,
30,
5411,
327,
8041,
18,
2956,
861,
12,
492,
1769,
3639,
648,
404,
30,
5411,
327,
924,
18,
2956,
861,
12,
492,
1769,
3639,
289,
3639,
327,
1408,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1033,
2366,
861,
12,
474,
1027,
16,
509,
1057,
13,
288,
3639,
1620,
261,
2827,
13,
288,
3639,
648,
374,
30,
5411,
327,
8041,
18,
2956,
861,
12,
492,
1769,
3639,
648,
404,
30,
5411,
327,
924,
18,
2956,
861,
12,
492,
1769,
3639,
289,
3639,
327,
1408,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super.addFileset(fs);
|
super.addPrefixedfileset(fs);
|
public void addLib(PrefixedFileSet fs) { // We just set the prefix for this fileset, and pass it up. fs.setPrefix("WEB-INF/lib/"); super.addFileset(fs); }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/a50ad9fae4c1995aa1c5a8ed077c5025b371f647/War.java/clean/src/main/org/apache/tools/ant/taskdefs/War.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
5664,
12,
2244,
329,
812,
694,
2662,
13,
288,
3639,
368,
1660,
2537,
444,
326,
1633,
364,
333,
1390,
278,
16,
471,
1342,
518,
731,
18,
3639,
2662,
18,
542,
2244,
2932,
14778,
17,
19212,
19,
2941,
4898,
1769,
3639,
2240,
18,
1289,
2244,
329,
2354,
278,
12,
2556,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
5664,
12,
2244,
329,
812,
694,
2662,
13,
288,
3639,
368,
1660,
2537,
444,
326,
1633,
364,
333,
1390,
278,
16,
471,
1342,
518,
731,
18,
3639,
2662,
18,
542,
2244,
2932,
14778,
17,
19212,
19,
2941,
4898,
1769,
3639,
2240,
18,
1289,
2244,
329,
2354,
278,
12,
2556,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ((other instanceof RubyFixnum) && ((RubyFixnum) other).getLongValue() < 256) {
|
if ((other instanceof RubyFixnum) && ((RubyFixnum) other).getLongValue() < 256) {
|
public RubyString concat(IRubyObject other) { if ((other instanceof RubyFixnum) && ((RubyFixnum) other).getLongValue() < 256) { return cat("" + (char) ((RubyFixnum) other).getLongValue()); } return append(other); }
|
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
780,
3835,
12,
7937,
10340,
921,
1308,
13,
288,
202,
202,
430,
14015,
3011,
1276,
19817,
8585,
2107,
13,
597,
1875,
565,
14015,
54,
10340,
8585,
2107,
13,
1308,
2934,
588,
3708,
620,
1435,
411,
8303,
13,
288,
1082,
202,
2463,
6573,
2932,
6,
397,
261,
3001,
13,
14015,
54,
10340,
8585,
2107,
13,
1308,
2934,
588,
3708,
620,
10663,
202,
202,
97,
202,
202,
2463,
714,
12,
3011,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
19817,
780,
3835,
12,
7937,
10340,
921,
1308,
13,
288,
202,
202,
430,
14015,
3011,
1276,
19817,
8585,
2107,
13,
597,
1875,
565,
14015,
54,
10340,
8585,
2107,
13,
1308,
2934,
588,
3708,
620,
1435,
411,
8303,
13,
288,
1082,
202,
2463,
6573,
2932,
6,
397,
261,
3001,
13,
14015,
54,
10340,
8585,
2107,
13,
1308,
2934,
588,
3708,
620,
10663,
202,
202,
97,
202,
202,
2463,
714,
12,
3011,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
navigator.beforeFirst(); }
|
navigator.beforeFirst(); }
|
public void beforeFirst() throws OLAPException { navigator.beforeFirst(); }
|
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/CursorSupport.java/buggy/src/main/mondrian/jolap/CursorSupport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1865,
3759,
1435,
1216,
531,
48,
2203,
503,
288,
202,
202,
82,
13061,
18,
5771,
3759,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1865,
3759,
1435,
1216,
531,
48,
2203,
503,
288,
202,
202,
82,
13061,
18,
5771,
3759,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.RepurchaseRate getRepurchaseRate() throws FieldNotFound { org.quickfix.field.RepurchaseRate value = new org.quickfix.field.RepurchaseRate();
|
public quickfix.field.RepurchaseRate getRepurchaseRate() throws FieldNotFound { quickfix.field.RepurchaseRate value = new quickfix.field.RepurchaseRate();
|
public org.quickfix.field.RepurchaseRate getRepurchaseRate() throws FieldNotFound { org.quickfix.field.RepurchaseRate value = new org.quickfix.field.RepurchaseRate(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataIncrementalRefresh.java/clean/src/java/src/quickfix/fix43/MarketDataIncrementalRefresh.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
426,
12688,
12104,
4727,
5561,
12688,
12104,
4727,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
426,
12688,
12104,
4727,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
426,
12688,
12104,
4727,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2358,
18,
19525,
904,
18,
1518,
18,
426,
12688,
12104,
4727,
5561,
12688,
12104,
4727,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
426,
12688,
12104,
4727,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
426,
12688,
12104,
4727,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void addSequence(Sequence seq) throws ChangeVetoException { throw new ChangeVetoException("Can't add sequences to XEMBL");
|
public void addSequence(Sequence seq) throws ChangeVetoException { throw new ChangeVetoException("Failed to add sequence." + " Sequences may not be added" + " to a biofetch database");
|
public void addSequence(Sequence seq) throws ChangeVetoException { throw new ChangeVetoException("Can't add sequences to XEMBL"); }
|
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/2f50ea672a34486ed89c06df250546d54e566e77/BioFetchSequenceDB.java/buggy/src/org/biojava/bio/seq/db/biofetch/BioFetchSequenceDB.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
4021,
12,
4021,
3833,
13,
3639,
1216,
7576,
58,
11453,
503,
565,
288,
202,
12849,
394,
7576,
58,
11453,
503,
2932,
2568,
1404,
527,
8463,
358,
1139,
3375,
14618,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
4021,
12,
4021,
3833,
13,
3639,
1216,
7576,
58,
11453,
503,
565,
288,
202,
12849,
394,
7576,
58,
11453,
503,
2932,
2568,
1404,
527,
8463,
358,
1139,
3375,
14618,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
WorkbenchPlugin.log(getClass(), "doRemove", e);
|
IStatus status = StatusUtil.newStatus( WorkbenchPlugin.PI_WORKBENCH, getClass().getName() + ".doRemove", e); StatusManager.getManager().handle(status);
|
protected void applyRemove(final IExtensionChangeHandler handler, final IExtension removedExtension, final Object[] objects) { display.syncExec(new Runnable() { public void run() { try { handler.removeExtension(removedExtension, objects); } catch (Exception e) { WorkbenchPlugin.log(getClass(), "doRemove", e); //$NON-NLS-1$ } } }); }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/35492165b8206aabe441da70f8f0c8802b959190/UIExtensionTracker.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/UIExtensionTracker.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2230,
3288,
12,
6385,
467,
3625,
3043,
1503,
1838,
16,
727,
467,
3625,
3723,
3625,
16,
727,
1033,
8526,
2184,
13,
288,
3639,
2562,
18,
8389,
1905,
12,
2704,
10254,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
7734,
775,
288,
10792,
1838,
18,
4479,
3625,
12,
14923,
3625,
16,
2184,
1769,
7734,
289,
1044,
261,
503,
425,
13,
288,
10792,
467,
1482,
1267,
273,
2685,
1304,
18,
2704,
1482,
12,
4147,
22144,
3773,
18,
1102,
67,
10566,
38,
1157,
1792,
16,
2900,
7675,
17994,
1435,
397,
3552,
2896,
3288,
3113,
425,
1769,
2685,
1318,
18,
588,
1318,
7675,
4110,
12,
2327,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
289,
5411,
289,
3639,
15549,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1117,
918,
2230,
3288,
12,
6385,
467,
3625,
3043,
1503,
1838,
16,
727,
467,
3625,
3723,
3625,
16,
727,
1033,
8526,
2184,
13,
288,
3639,
2562,
18,
8389,
1905,
12,
2704,
10254,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
7734,
775,
288,
10792,
1838,
18,
4479,
3625,
12,
14923,
3625,
16,
2184,
1769,
7734,
289,
1044,
261,
503,
425,
13,
288,
10792,
467,
1482,
1267,
273,
2685,
1304,
18,
2704,
1482,
12,
4147,
22144,
3773,
18,
1102,
67,
10566,
38,
1157,
1792,
16,
2900,
7675,
17994,
1435,
397,
3552,
2896,
3288,
3113,
425,
1769,
2685,
1318,
18,
588,
1318,
7675,
4110,
12,
2327,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
7734,
289,
5411,
289,
3639,
2
] |
} catch (Exception e) {}
|
} catch (Exception e) { if (Debug.debugging("csvtiledimage")) { e.printStackTrace(); } }
|
protected void loadTiles(String csvFileName) { int imageCount = 0; if (csvFileName != null) { try { tilefile = new CSVFile(csvFileName); tilefile.setHeadersExist(fileHasHeader); tilefile.loadData(false); MediaTracker tracker = new MediaTracker(component); // Create a media tracker Iterator records = tilefile.iterator(); while (records.hasNext()) { Vector record = (Vector) records.next(); if (DEBUG) { Debug.output("CSVTIPI: record: " + record); } String imageURLString = null; try { float ullat = ((Double)record.get(ullatIndex)).floatValue(); float ullon = ((Double)record.get(ullonIndex)).floatValue(); float lrlat = ((Double)record.get(lrlatIndex)).floatValue(); float lrlon = ((Double)record.get(lrlonIndex)).floatValue(); imageURLString = (String)record.get(urlIndex); URL imageURL = PropUtils.getResourceOrFileOrURL(imageURLString); ImageIcon ii = new ImageIcon(imageURL); Image fileImage = ii.getImage(); try { tracker.addImage(fileImage, imageCount); tracker.waitForID(imageCount); } catch (Exception e) {} // Catch errors OMScalingRaster omsr = new OMScalingRaster(ullat, ullon, lrlat, lrlon, fileImage); tiles.add(omsr); imageCount++; } catch (MalformedURLException innerMurle) { Debug.error("CSVTiledImagePlugIn: image tile path not valid: " + imageURLString + ", skipping..."); } catch (ArrayIndexOutOfBoundsException aioobe) { Debug.error("CSVTiledImagePlugIn: having trouble reading line (" + imageCount + "), skipping...\n" + aioobe.getMessage()); } } } catch (MalformedURLException murle) { Debug.error("CSVTiledImagePlugIn: CSV tile file not valid: " + csvFileName); } } }
|
3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/ba89a0fb0a83dfa1007235bc8a4294046193e265/CSVTiledImagePlugIn.java/buggy/src/openmap/com/bbn/openmap/plugin/CSVTiledImagePlugIn.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1262,
27669,
12,
780,
6101,
4771,
13,
288,
3639,
509,
1316,
1380,
273,
374,
31,
7734,
309,
261,
6715,
4771,
480,
446,
13,
288,
5411,
775,
288,
7734,
4769,
768,
273,
394,
10381,
812,
12,
6715,
4771,
1769,
7734,
4769,
768,
18,
542,
3121,
4786,
12,
768,
5582,
1864,
1769,
7734,
4769,
768,
18,
945,
751,
12,
5743,
1769,
7734,
6128,
8135,
9745,
273,
394,
6128,
8135,
12,
4652,
1769,
368,
1788,
279,
3539,
9745,
7734,
4498,
3853,
273,
4769,
768,
18,
9838,
5621,
7734,
1323,
261,
7094,
18,
5332,
2134,
10756,
288,
10792,
5589,
1409,
273,
261,
5018,
13,
3853,
18,
4285,
5621,
10792,
309,
261,
9394,
13,
288,
13491,
4015,
18,
2844,
2932,
16570,
23240,
1102,
30,
1409,
30,
315,
397,
1409,
1769,
10792,
289,
4766,
5411,
514,
1316,
1785,
780,
273,
446,
31,
4766,
3639,
775,
288,
13491,
1431,
225,
420,
270,
273,
14015,
5265,
13,
3366,
18,
588,
12,
420,
270,
1016,
13,
2934,
5659,
620,
5621,
13491,
1431,
225,
420,
265,
273,
14015,
5265,
13,
3366,
18,
588,
12,
420,
265,
1016,
13,
2934,
5659,
620,
5621,
13491,
1431,
328,
1321,
270,
273,
14015,
5265,
13,
3366,
18,
588,
12,
80,
1321,
270,
1016,
13,
2934,
5659,
620,
5621,
13491,
1431,
328,
1321,
265,
273,
14015,
5265,
13,
3366,
18,
588,
12,
80,
1321,
265,
1016,
13,
2934,
5659,
620,
5621,
7682,
1316,
1785,
780,
273,
261,
780,
13,
3366,
18,
588,
12,
718,
1016,
1769,
13491,
1976,
1316,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
27669,
12,
780,
6101,
4771,
13,
288,
3639,
509,
1316,
1380,
273,
374,
31,
7734,
309,
261,
6715,
4771,
480,
446,
13,
288,
5411,
775,
288,
7734,
4769,
768,
273,
394,
10381,
812,
12,
6715,
4771,
1769,
7734,
4769,
768,
18,
542,
3121,
4786,
12,
768,
5582,
1864,
1769,
7734,
4769,
768,
18,
945,
751,
12,
5743,
1769,
7734,
6128,
8135,
9745,
273,
394,
6128,
8135,
12,
4652,
1769,
368,
1788,
279,
3539,
9745,
7734,
4498,
3853,
273,
4769,
768,
18,
9838,
5621,
7734,
1323,
261,
7094,
18,
5332,
2134,
10756,
288,
10792,
5589,
1409,
273,
261,
5018,
13,
3853,
18,
4285,
5621,
10792,
309,
261,
9394,
13,
288,
13491,
4015,
18,
2844,
2932,
16570,
2
] |
ISourcePosition startPosition = support.getPosition(); String buffer = support.readLine() + '\n';
|
ISourcePosition startPosition = support.getPosition(); String buffer = support.readLine() + '\n';
|
private int parseHereDocument(int closeQuote, boolean indent) { int c; ISourcePosition position = support.getPosition(); // int linesave = ruby.getSourceLine(); newtok(); switch (closeQuote) { case '\'' : case '"' : case '`' : while ((c = nextc()) != closeQuote) { tokadd(c); } if (closeQuote == '\'') { closeQuote = 0; } break; default : c = closeQuote; closeQuote = '"'; if (!isIdentifierChar(c)) { errorHandler.handleError(IErrors.WARN, support.getPosition(), Messages.getString("deprecated_bare_<<")); //$NON-NLS-1$ break; } while (isIdentifierChar(c)) { tokadd(c); c = nextc(); } pushback(c); break; } // markFilterSource.mark(); // support.readLine(); ISourcePosition startPosition = support.getPosition(); String buffer = support.readLine() + '\n'; String eos = tok(); StringBuffer sb = new StringBuffer(); IListNode list = null; while (true) { // test if the end of file or end of string is reached. String line = support.readLine(); if (line == null) { errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("cannot_found_string_before_eof", eos)); //$NON-NLS-1$ return 0; } else if ((indent && line.trim().startsWith(eos)) || line.startsWith(eos)) { if (line.trim().length() == eos.length()) { // source.addCurrentLine(); break; } } support.unread(line.length() + 1); while (true) { switch (parseString(closeQuote, '\n', '\n')) { case Token.tSTRING : case Token.tXSTRING : yaccValue = (String) yaccValue + '\n'; if (list == null) { sb.append(yaccValue); } else { list.add(new StrNode(support.getPosition(), (String) yaccValue)); } break; case Token.tDSTRING : if (list == null) { list = new DStrNode(support.getPosition()); // FIXME position list.add(new StrNode(support.getPosition(), sb.toString())); } // fall through case Token.tDXSTRING : if (list == null) { list = new DXStrNode(support.getPosition()); // FIXME position list.add(new StrNode(support.getPosition(), sb.toString())); } ListNodeUtil.addAll(list, (IListNode) yaccValue); list.add(new StrNode(support.getPosition(), "\n")); //$NON-NLS-1$ break; case 0 : errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("cannot_found_string_before_eof", eos)); //$NON-NLS-1$ return 0; } if (support.getLastRead() == '\n') { // isEOL()) { // source.addCurrentLine(); break; } } } lexState = LexState.EXPR_END; // parserSupport.setHeredocEnd(ruby.getSourceLine()); // ruby.setSourceLine(linesave); //markFilterSource.reset(); support.setBuffer(buffer, startPosition); switch (closeQuote) { case '\0' : case '\'' : case '"' : if (list != null) { yaccValue = list; return Token.tDSTRING; } else { yaccValue = sb.toString(); return Token.tSTRING; } case '`' : if (list != null) { yaccValue = list; return Token.tDXSTRING; } else { yaccValue = sb.toString(); return Token.tXSTRING; } } return 0; }
|
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/clean/org/jruby/lexer/yacc/RubyYaccLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
26715,
2519,
12,
474,
1746,
10257,
16,
1250,
3504,
13,
288,
202,
202,
474,
276,
31,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555,
5621,
202,
202,
759,
509,
2362,
836,
273,
22155,
18,
588,
1830,
1670,
5621,
202,
202,
2704,
17692,
5621,
202,
202,
9610,
261,
4412,
10257,
13,
288,
1082,
202,
3593,
15053,
294,
1082,
202,
3593,
4754,
294,
1082,
202,
3593,
14793,
294,
9506,
202,
17523,
14015,
71,
273,
1024,
71,
10756,
480,
1746,
10257,
13,
288,
6862,
202,
17692,
1289,
12,
71,
1769,
9506,
202,
97,
9506,
202,
430,
261,
4412,
10257,
422,
14118,
6134,
288,
6862,
202,
4412,
10257,
273,
374,
31,
9506,
202,
97,
9506,
202,
8820,
31,
1082,
202,
1886,
294,
9506,
202,
71,
273,
1746,
10257,
31,
9506,
202,
4412,
10257,
273,
4754,
31,
9506,
202,
430,
16051,
291,
3004,
2156,
12,
71,
3719,
288,
6862,
202,
1636,
1503,
18,
4110,
668,
12,
45,
4229,
18,
27999,
16,
2865,
18,
588,
2555,
9334,
4838,
18,
588,
780,
2932,
14089,
67,
70,
834,
67,
17685,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
8820,
31,
9506,
202,
97,
9506,
202,
17523,
261,
291,
3004,
2156,
12,
71,
3719,
288,
6862,
202,
17692,
1289,
12,
71,
1769,
6862,
202,
71,
273,
1024,
71,
5621,
9506,
202,
97,
9506,
202,
6206,
823,
12,
71,
1769,
9506,
202,
8820,
31,
202,
202,
97,
202,
202,
759,
2267,
1586,
1830,
18,
3355,
5621,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
26715,
2519,
12,
474,
1746,
10257,
16,
1250,
3504,
13,
288,
202,
202,
474,
276,
31,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555,
5621,
202,
202,
759,
509,
2362,
836,
273,
22155,
18,
588,
1830,
1670,
5621,
202,
202,
2704,
17692,
5621,
202,
202,
9610,
261,
4412,
10257,
13,
288,
1082,
202,
3593,
15053,
294,
1082,
202,
3593,
4754,
294,
1082,
202,
3593,
14793,
294,
9506,
202,
17523,
14015,
71,
273,
1024,
71,
10756,
480,
1746,
10257,
13,
288,
6862,
202,
17692,
1289,
12,
71,
1769,
9506,
202,
97,
9506,
202,
430,
261,
4412,
10257,
422,
14118,
6134,
288,
6862,
202,
4412,
10257,
273,
374,
31,
9506,
202,
97,
9506,
2
] |
endDate.plusDays(1);
|
endDate = endDate.plusDays(1);
|
public Duration getDuration() { DateTime startDate = getStartTime().toDateTimeToday(); DateTime endDate = getEndTime().toDateTimeToday(); if (getNextDay()) { endDate.plusDays(1); } return new Duration(startDate, endDate); }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/2148a82d40be3ca9c714470d990c2702c189337a/TimeInterval.java/buggy/src/net/sourceforge/fenixedu/domain/assiduousness/util/TimeInterval.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4822,
20116,
1435,
288,
3639,
3716,
12572,
273,
31953,
7675,
869,
5096,
56,
20136,
5621,
3639,
3716,
13202,
273,
9968,
950,
7675,
869,
5096,
56,
20136,
5621,
3639,
309,
261,
588,
2134,
4245,
10756,
288,
5411,
13202,
273,
13202,
18,
10103,
9384,
12,
21,
1769,
3639,
289,
3639,
327,
394,
4822,
12,
1937,
1626,
16,
13202,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4822,
20116,
1435,
288,
3639,
3716,
12572,
273,
31953,
7675,
869,
5096,
56,
20136,
5621,
3639,
3716,
13202,
273,
9968,
950,
7675,
869,
5096,
56,
20136,
5621,
3639,
309,
261,
588,
2134,
4245,
10756,
288,
5411,
13202,
273,
13202,
18,
10103,
9384,
12,
21,
1769,
3639,
289,
3639,
327,
394,
4822,
12,
1937,
1626,
16,
13202,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throws BadLocationException {
|
throws BadLocationException {
|
public UndoableEdit insertString(int where, String str) throws BadLocationException { // check arguments int length = length(); int strLen = str.length(); if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); replace(where, 0, str.toCharArray(), str.length()); return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/GapContent.java/buggy/core/src/classpath/javax/javax/swing/text/GapContent.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1351,
2896,
429,
4666,
2243,
780,
12,
474,
1625,
16,
514,
609,
13,
565,
1216,
6107,
2735,
503,
565,
288,
565,
368,
866,
1775,
565,
509,
769,
273,
769,
5621,
565,
509,
609,
2891,
273,
609,
18,
2469,
5621,
565,
309,
261,
6051,
1545,
769,
13,
1377,
604,
394,
6107,
2735,
503,
2932,
5787,
1625,
1237,
2780,
506,
6802,
6,
19694,
397,
315,
2353,
326,
913,
769,
3113,
1625,
1769,
565,
1453,
12,
6051,
16,
374,
16,
609,
18,
869,
15936,
9334,
609,
18,
2469,
10663,
202,
2463,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1351,
2896,
429,
4666,
2243,
780,
12,
474,
1625,
16,
514,
609,
13,
565,
1216,
6107,
2735,
503,
565,
288,
565,
368,
866,
1775,
565,
509,
769,
273,
769,
5621,
565,
509,
609,
2891,
273,
609,
18,
2469,
5621,
565,
309,
261,
6051,
1545,
769,
13,
1377,
604,
394,
6107,
2735,
503,
2932,
5787,
1625,
1237,
2780,
506,
6802,
6,
19694,
397,
315,
2353,
326,
913,
769,
3113,
1625,
1769,
565,
1453,
12,
6051,
16,
374,
16,
609,
18,
869,
15936,
9334,
609,
18,
2469,
10663,
202,
2463,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e);
|
Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e);
|
public String readProjectResource(CmsDbContext dbc, int projectId, String resourcePath, Object reservedParam) throws CmsDataAccessException { PreparedStatement stmt = null; Connection conn = null; ResultSet res = null; String resName = null; try { if (reservedParam == null) { // get a JDBC connection from the OpenCms standard {online|offline|backup} pools conn = m_sqlManager.getConnection(dbc); } else { // get a JDBC connection from the reserved JDBC pools conn = m_sqlManager.getConnection(dbc, ((Integer)reservedParam).intValue()); } stmt = m_sqlManager.getPreparedStatement(conn, "C_PROJECTRESOURCES_READ"); // select resource from the database stmt.setInt(1, projectId); stmt.setString(2, resourcePath); res = stmt.executeQuery(); if (res.next()) { resName = res.getString("RESOURCE_PATH"); } else { throw new CmsVfsResourceNotFoundException(Messages.get().container( Messages.ERR_NO_PROJECTRESOURCE_1, resourcePath)); } } catch (SQLException e) { throw new CmsDbSqlException(Messages.get().container( Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)), e); } finally { m_sqlManager.closeAll(dbc, conn, stmt, res); } return resName; }
|
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/546c122e43ad901e06bfec1c2164259c3ce08c8b/CmsProjectDriver.java/clean/src/org/opencms/db/generic/CmsProjectDriver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
855,
4109,
1420,
12,
4747,
4331,
1042,
9881,
16,
509,
9882,
16,
514,
15467,
16,
1033,
8735,
786,
13,
565,
1216,
2149,
751,
9773,
288,
3639,
16913,
3480,
273,
446,
31,
3639,
4050,
1487,
273,
446,
31,
3639,
10842,
400,
273,
446,
31,
3639,
514,
400,
461,
273,
446,
31,
3639,
775,
288,
5411,
309,
261,
18898,
786,
422,
446,
13,
288,
7734,
368,
336,
279,
16364,
1459,
628,
326,
10319,
4529,
288,
21026,
96,
23787,
96,
9572,
97,
16000,
7734,
1487,
273,
312,
67,
4669,
1318,
18,
588,
1952,
12,
9137,
1769,
5411,
289,
469,
288,
7734,
368,
336,
279,
16364,
1459,
628,
326,
8735,
16364,
16000,
7734,
1487,
273,
312,
67,
4669,
1318,
18,
588,
1952,
12,
9137,
16,
14015,
4522,
13,
18898,
786,
2934,
474,
620,
10663,
5411,
289,
5411,
3480,
273,
312,
67,
4669,
1318,
18,
588,
29325,
12,
4646,
16,
315,
39,
67,
17147,
11395,
55,
67,
6949,
8863,
5411,
368,
2027,
1058,
628,
326,
2063,
5411,
3480,
18,
542,
1702,
12,
21,
16,
9882,
1769,
5411,
3480,
18,
542,
780,
12,
22,
16,
15467,
1769,
5411,
400,
273,
3480,
18,
8837,
1138,
5621,
5411,
309,
261,
455,
18,
4285,
10756,
288,
7734,
400,
461,
273,
400,
18,
588,
780,
2932,
11395,
67,
4211,
8863,
5411,
289,
469,
288,
7734,
604,
394,
2149,
25908,
1420,
3990,
12,
5058,
18,
588,
7675,
3782,
12,
10792,
4838,
18,
9712,
67,
3417,
67,
17147,
11395,
67,
21,
16,
10792,
15467,
10019,
5411,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
855,
4109,
1420,
12,
4747,
4331,
1042,
9881,
16,
509,
9882,
16,
514,
15467,
16,
1033,
8735,
786,
13,
565,
1216,
2149,
751,
9773,
288,
3639,
16913,
3480,
273,
446,
31,
3639,
4050,
1487,
273,
446,
31,
3639,
10842,
400,
273,
446,
31,
3639,
514,
400,
461,
273,
446,
31,
3639,
775,
288,
5411,
309,
261,
18898,
786,
422,
446,
13,
288,
7734,
368,
336,
279,
16364,
1459,
628,
326,
10319,
4529,
288,
21026,
96,
23787,
96,
9572,
97,
16000,
7734,
1487,
273,
312,
67,
4669,
1318,
18,
588,
1952,
12,
9137,
1769,
5411,
289,
469,
288,
7734,
368,
336,
279,
16364,
1459,
628,
326,
8735,
16364,
16000,
7734,
1487,
273,
312,
67,
4669,
1318,
18,
2
] |
if (jj_3R_34()) return true;
|
if (jj_3R_35()) return true;
|
final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_33()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_34()) 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/380cf71624b51f570339abaad8b44c15f6b31844/WMParser_impl.java/buggy/webmacro/src/org/webmacro/parser/WMParser_impl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
3461,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
1578,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3665,
67,
4307,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3707,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4763,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
3461,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
1578,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
3665,
67,
4307,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
2
] |
return new RubyFixnum(getRuby(), getValue().charAt(idx));
|
return RubyFixnum.newFixnum(getRuby(), getValue().charAt(idx));
|
public RubyObject aref(RubyObject[] args) { if (argCount(args, 1, 2) == 2) { int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); return substr(beg, len); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length(); } if (idx < 0 || idx >= getValue().length()) { return getRuby().getNil(); } return new RubyFixnum(getRuby(), getValue().charAt(idx)); } if (args[0] instanceof RubyRegexp) { if (RubyRegexp.regexpValue(args[0]).search(this, 0) >= 0) { return RubyRegexp.last_match(getRuby().getBackref()); } return getRuby().getNil(); } if (args[0] instanceof RubyString) { if (getValue().indexOf(stringValue(args[0]).getValue()) != -1) { return args[0]; } return getRuby().getNil(); } if (args[0] instanceof RubyRange) { long[] begLen = ((RubyRange) args[0]).getBeginLength(getValue().length(), true, false); if (begLen == null) { return getRuby().getNil(); } return substr((int) begLen[0], (int) begLen[1]); } int idx = (int) RubyNumeric.num2long(args[0]); if (idx < 0) { idx += getValue().length(); } if (idx < 0 || idx >= getValue().length()) { return getRuby().getNil(); } return new RubyFixnum(getRuby(), getValue().charAt(idx)); }
|
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyString.java/clean/org/jruby/RubyString.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
854,
74,
12,
54,
10340,
921,
8526,
833,
13,
288,
202,
202,
430,
261,
3175,
1380,
12,
1968,
16,
404,
16,
576,
13,
422,
576,
13,
288,
1082,
202,
474,
16847,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
20,
19226,
1082,
202,
474,
562,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
21,
19226,
1082,
202,
2463,
2373,
12,
70,
1332,
16,
562,
1769,
202,
202,
97,
202,
202,
430,
261,
1968,
63,
20,
65,
1276,
19817,
8585,
2107,
13,
288,
1082,
202,
474,
2067,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
20,
19226,
1082,
202,
430,
261,
3465,
411,
374,
13,
288,
9506,
202,
3465,
1011,
2366,
7675,
2469,
5621,
1082,
202,
97,
1082,
202,
430,
261,
3465,
411,
374,
747,
2067,
1545,
2366,
7675,
2469,
10756,
288,
9506,
202,
2463,
4170,
10340,
7675,
588,
12616,
5621,
1082,
202,
97,
1082,
202,
2463,
394,
19817,
8585,
2107,
12,
588,
54,
10340,
9334,
2366,
7675,
3001,
861,
12,
3465,
10019,
202,
202,
97,
202,
202,
430,
261,
1968,
63,
20,
65,
1276,
19817,
14621,
13,
288,
1082,
202,
430,
261,
54,
10340,
14621,
18,
17745,
620,
12,
1968,
63,
20,
65,
2934,
3072,
12,
2211,
16,
374,
13,
1545,
374,
13,
288,
9506,
202,
2463,
19817,
14621,
18,
2722,
67,
1916,
12,
588,
54,
10340,
7675,
588,
2711,
1734,
10663,
1082,
202,
97,
1082,
202,
2463,
4170,
10340,
7675,
588,
12616,
5621,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
921,
854,
74,
12,
54,
10340,
921,
8526,
833,
13,
288,
202,
202,
430,
261,
3175,
1380,
12,
1968,
16,
404,
16,
576,
13,
422,
576,
13,
288,
1082,
202,
474,
16847,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
20,
19226,
1082,
202,
474,
562,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
21,
19226,
1082,
202,
2463,
2373,
12,
70,
1332,
16,
562,
1769,
202,
202,
97,
202,
202,
430,
261,
1968,
63,
20,
65,
1276,
19817,
8585,
2107,
13,
288,
1082,
202,
474,
2067,
273,
19817,
9902,
18,
904,
22,
474,
12,
1968,
63,
20,
19226,
1082,
202,
430,
261,
3465,
411,
374,
13,
288,
9506,
202,
3465,
2
] |
String name = inputEntry .getName(); if ( ! (inputEntry .isDirectory() || name .endsWith( ".class" )) ) { try { InputStream input = zip.getInputStream( zip .getEntry( name ) ); String className = ClassNameReader .getClassName( input ); input .close(); if ( className != null ) { name = className .replace( '.', '/' ) + ".class";
|
String name = inputEntry.getName(); if (!(inputEntry.isDirectory() || name.endsWith(".class"))) { try { InputStream input = zip.getInputStream(zip.getEntry(name)); String className = ClassNameReader.getClassName(input); input.close(); if (className != null) { name = className.replace('.', '/') + ".class";
|
private ZipEntry processEntry( ZipFile zip, ZipEntry inputEntry ) throws IOException{ /* First, some notes. On MRJ 2.2.2, getting the size, compressed size, and CRC32 from the ZipInputStream does not work for compressed (deflated) files. Those calls return -1. For uncompressed (stored) files, those calls do work. However, using ZipFile.getEntries() works for both compressed and uncompressed files. Now, from some simple testing I did, it seems that the value of CRC-32 is independent of the compression setting. So, it should be easy to pass this information on to the output entry. */ String name = inputEntry .getName(); if ( ! (inputEntry .isDirectory() || name .endsWith( ".class" )) ) { try { InputStream input = zip.getInputStream( zip .getEntry( name ) ); String className = ClassNameReader .getClassName( input ); input .close(); if ( className != null ) { name = className .replace( '.', '/' ) + ".class"; } } catch( IOException ioe ) {} } ZipEntry outputEntry = new ZipEntry( name ); outputEntry.setTime(inputEntry .getTime() ); outputEntry.setExtra(inputEntry.getExtra()); outputEntry.setComment(inputEntry.getComment()); outputEntry.setTime(inputEntry.getTime()); if (compression){ outputEntry.setMethod(ZipEntry.DEFLATED); //Note, don't need to specify size or crc for compressed files. } else { outputEntry.setMethod(ZipEntry.STORED); outputEntry.setCrc(inputEntry.getCrc()); outputEntry.setSize(inputEntry.getSize()); } return outputEntry; }
|
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/6154080061f869b4e425d608da3bd61fad967564/jlink.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/jlink/jlink.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
23652,
1207,
1622,
12,
18364,
3144,
16,
23652,
810,
1622,
262,
1216,
1860,
95,
3639,
1748,
1850,
5783,
16,
2690,
10913,
18,
1850,
2755,
490,
54,
46,
576,
18,
22,
18,
22,
16,
8742,
326,
963,
16,
8968,
963,
16,
471,
21773,
1578,
628,
326,
1850,
8603,
4348,
1552,
486,
1440,
364,
8968,
261,
536,
80,
690,
13,
1390,
18,
225,
935,
2584,
4097,
327,
300,
21,
18,
1850,
2457,
20560,
261,
22601,
13,
1390,
16,
5348,
4097,
741,
1440,
18,
1850,
10724,
16,
1450,
18364,
18,
588,
5400,
1435,
6330,
364,
3937,
8968,
471,
6647,
20560,
1390,
18,
8227,
4494,
16,
628,
2690,
4143,
7769,
467,
5061,
16,
518,
12001,
716,
326,
460,
434,
21773,
17,
1578,
353,
1850,
14807,
434,
326,
9154,
3637,
18,
6155,
16,
518,
1410,
506,
12779,
358,
1342,
333,
6647,
1779,
603,
358,
326,
876,
1241,
18,
3639,
1195,
3639,
514,
508,
273,
810,
1622,
263,
17994,
5621,
3639,
309,
261,
401,
261,
2630,
1622,
263,
291,
2853,
1435,
747,
508,
263,
5839,
1190,
12,
3552,
1106,
6,
8623,
262,
288,
5411,
775,
225,
288,
7734,
5037,
810,
273,
3144,
18,
588,
4348,
12,
3144,
263,
588,
1622,
12,
508,
262,
11272,
7734,
514,
2658,
273,
19811,
2514,
263,
588,
3834,
12,
810,
11272,
7734,
810,
263,
4412,
5621,
7734,
309,
261,
2658,
480,
446,
262,
288,
10792,
508,
273,
2658,
263,
2079,
12,
2611,
16,
2023,
262,
397,
3552,
1106,
14432,
7734,
289,
5411,
289,
1044,
12,
1860,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23652,
1207,
1622,
12,
18364,
3144,
16,
23652,
810,
1622,
262,
1216,
1860,
95,
3639,
1748,
1850,
5783,
16,
2690,
10913,
18,
1850,
2755,
490,
54,
46,
576,
18,
22,
18,
22,
16,
8742,
326,
963,
16,
8968,
963,
16,
471,
21773,
1578,
628,
326,
1850,
8603,
4348,
1552,
486,
1440,
364,
8968,
261,
536,
80,
690,
13,
1390,
18,
225,
935,
2584,
4097,
327,
300,
21,
18,
1850,
2457,
20560,
261,
22601,
13,
1390,
16,
5348,
4097,
741,
1440,
18,
1850,
10724,
16,
1450,
18364,
18,
588,
5400,
1435,
6330,
364,
3937,
8968,
471,
6647,
20560,
1390,
18,
8227,
4494,
16,
628,
2690,
4143,
7769,
467,
5061,
16,
518,
12001,
716,
326,
460,
434,
21773,
17,
2
] |
System.out.println("Collapsed item: "+Const.getTreePath(treeItem, 0));
|
public static final TreeListener addTreeListener(final Tree tree) { TreeListener treeListener = new TreeListener() { public void treeExpanded(TreeEvent e) { TreeItem treeItem = (TreeItem) e.item; String[] path = Const.getTreeStrings(treeItem); TreeMemory treeMemory = TreeMemory.getInstance(); treeMemory.storeExpanded(tree, path, true); System.out.println("Expanded item: "+Const.getTreePath(treeItem, 0)); } public void treeCollapsed(TreeEvent e) { TreeItem treeItem = (TreeItem) e.item; String[] path = Const.getTreeStrings(treeItem); TreeMemory treeMemory = TreeMemory.getInstance(); treeMemory.storeExpanded(tree, path, false); System.out.println("Collapsed item: "+Const.getTreePath(treeItem, 0)); } }; tree.addTreeListener(treeListener); return treeListener; }
|
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/5074cf908131f5c15c423efd7a78645a874753e5/TreeMemory.java/clean/src/be/ibridge/kettle/core/widget/TreeMemory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
4902,
2223,
527,
2471,
2223,
12,
6385,
4902,
2151,
13,
565,
288,
3639,
4902,
2223,
2151,
2223,
273,
394,
4902,
2223,
1435,
3639,
288,
10792,
1071,
918,
2151,
17957,
12,
2471,
1133,
425,
13,
5411,
288,
7734,
4902,
1180,
2151,
1180,
273,
261,
2471,
1180,
13,
425,
18,
1726,
31,
7734,
514,
8526,
589,
273,
9333,
18,
588,
2471,
7957,
12,
3413,
1180,
1769,
7734,
4902,
6031,
2151,
6031,
273,
4902,
6031,
18,
588,
1442,
5621,
7734,
2151,
6031,
18,
2233,
17957,
12,
3413,
16,
589,
16,
638,
1769,
27573,
2332,
18,
659,
18,
8222,
2932,
17957,
761,
30,
13773,
9661,
18,
588,
2471,
743,
12,
3413,
1180,
16,
374,
10019,
5411,
289,
10792,
1071,
918,
2151,
28084,
12,
2471,
1133,
425,
13,
5411,
288,
7734,
4902,
1180,
2151,
1180,
273,
261,
2471,
1180,
13,
425,
18,
1726,
31,
7734,
514,
8526,
589,
273,
9333,
18,
588,
2471,
7957,
12,
3413,
1180,
1769,
7734,
4902,
6031,
2151,
6031,
273,
4902,
6031,
18,
588,
1442,
5621,
7734,
2151,
6031,
18,
2233,
17957,
12,
3413,
16,
589,
16,
629,
1769,
4766,
1850,
289,
7734,
289,
31,
3639,
2151,
18,
1289,
2471,
2223,
12,
3413,
2223,
1769,
3639,
327,
2151,
2223,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
4902,
2223,
527,
2471,
2223,
12,
6385,
4902,
2151,
13,
565,
288,
3639,
4902,
2223,
2151,
2223,
273,
394,
4902,
2223,
1435,
3639,
288,
10792,
1071,
918,
2151,
17957,
12,
2471,
1133,
425,
13,
5411,
288,
7734,
4902,
1180,
2151,
1180,
273,
261,
2471,
1180,
13,
425,
18,
1726,
31,
7734,
514,
8526,
589,
273,
9333,
18,
588,
2471,
7957,
12,
3413,
1180,
1769,
7734,
4902,
6031,
2151,
6031,
273,
4902,
6031,
18,
588,
1442,
5621,
7734,
2151,
6031,
18,
2233,
17957,
12,
3413,
16,
589,
16,
638,
1769,
27573,
2332,
18,
659,
18,
8222,
2932,
17957,
761,
30,
13773,
9661,
18,
588,
2471,
743,
12,
3413,
1180,
16,
374,
10019,
5411,
289,
10792,
1071,
2
] |
|
((ManualBean)newBean).setAddress(oldBean.getAddress());
|
((ManualBean) newBean).setAddress(oldBean.getAddress());
|
public static ResultPublicationBean inproceedingsTo(InproceedingsBean oldBean, ResultPublicationType type) { ResultPublicationBean newBean = null; switch(type) { case Article: newBean = new ArticleBean(oldBean); ((ArticleBean)newBean).setFirstPage(oldBean.getFirstPage()); ((ArticleBean)newBean).setLastPage(oldBean.getLastPage()); ((ArticleBean)newBean).setLanguage(oldBean.getLanguage()); return newBean; case Book: newBean = new BookBean(oldBean); ((BookBean)newBean).setAddress(oldBean.getAddress()); ((BookBean)newBean).setLanguage(oldBean.getLanguage()); return newBean; case Inbook: newBean = new InbookBean(oldBean); ((InbookBean)newBean).setAddress(oldBean.getAddress()); ((InbookBean)newBean).setFirstPage(oldBean.getFirstPage()); ((InbookBean)newBean).setLastPage(oldBean.getLastPage()); return newBean; case Incollection: newBean = new IncollectionBean(oldBean); ((IncollectionBean)newBean).setAddress(oldBean.getAddress()); ((IncollectionBean)newBean).setFirstPage(oldBean.getFirstPage()); ((IncollectionBean)newBean).setLastPage(oldBean.getLastPage()); return newBean; case Manual: newBean = new ManualBean(oldBean); ((ManualBean)newBean).setAddress(oldBean.getAddress()); return newBean; case OtherPublication: newBean = new OtherPublicationBean(oldBean); ((OtherPublicationBean)newBean).setAddress(oldBean.getAddress()); ((OtherPublicationBean)newBean).setLanguage(oldBean.getLanguage()); return newBean; case Proceedings: newBean = new ProceedingsBean(oldBean); ((ProceedingsBean)newBean).setAddress(oldBean.getAddress()); return newBean; case TechnicalReport: newBean = new TechnicalReportBean(oldBean); ((TechnicalReportBean)newBean).setAddress(oldBean.getAddress()); ((TechnicalReportBean)newBean).setLanguage(oldBean.getLanguage()); return newBean; case Thesis: newBean = new ThesisBean(oldBean); ((ThesisBean)newBean).setAddress(oldBean.getAddress()); ((ThesisBean)newBean).setLanguage(oldBean.getLanguage()); return newBean; default: return oldBean; } }
|
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f2ed60b5417a9a7d4bcf5fcf0cdc3f70cc3c9b8f/ResultPublicationBeanConversions.java/buggy/src/net/sourceforge/fenixedu/dataTransferObject/research/result/publication/ResultPublicationBeanConversions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
3438,
4782,
367,
3381,
316,
685,
5288,
899,
774,
12,
382,
685,
5288,
899,
3381,
1592,
3381,
16,
3438,
4782,
367,
559,
618,
13,
288,
202,
1253,
4782,
367,
3381,
394,
3381,
273,
446,
31,
202,
9610,
12,
723,
13,
288,
202,
3593,
17889,
30,
202,
565,
394,
3381,
273,
394,
17889,
3381,
12,
1673,
3381,
1769,
202,
565,
14015,
7880,
3381,
13,
2704,
3381,
2934,
542,
3759,
1964,
12,
1673,
3381,
18,
588,
3759,
1964,
10663,
202,
565,
14015,
7880,
3381,
13,
2704,
3381,
2934,
542,
3024,
1964,
12,
1673,
3381,
18,
588,
3024,
1964,
10663,
202,
565,
14015,
7880,
3381,
13,
2704,
3381,
2934,
542,
3779,
12,
1673,
3381,
18,
588,
3779,
10663,
202,
565,
327,
394,
3381,
31,
202,
3593,
20258,
30,
3196,
565,
394,
3381,
273,
394,
20258,
3381,
12,
1673,
3381,
1769,
202,
565,
14015,
9084,
3381,
13,
2704,
3381,
2934,
542,
1887,
12,
1673,
3381,
18,
588,
1887,
10663,
202,
565,
14015,
9084,
3381,
13,
2704,
3381,
2934,
542,
3779,
12,
1673,
3381,
18,
588,
3779,
10663,
202,
565,
327,
394,
3381,
31,
202,
3593,
657,
3618,
30,
202,
565,
394,
3381,
273,
394,
657,
3618,
3381,
12,
1673,
3381,
1769,
202,
565,
14015,
382,
3618,
3381,
13,
2704,
3381,
2934,
542,
1887,
12,
1673,
3381,
18,
588,
1887,
10663,
202,
565,
14015,
382,
3618,
3381,
13,
2704,
3381,
2934,
542,
3759,
1964,
12,
1673,
3381,
18,
588,
3759,
1964,
10663,
202,
565,
14015,
382,
3618,
3381,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3438,
4782,
367,
3381,
316,
685,
5288,
899,
774,
12,
382,
685,
5288,
899,
3381,
1592,
3381,
16,
3438,
4782,
367,
559,
618,
13,
288,
202,
1253,
4782,
367,
3381,
394,
3381,
273,
446,
31,
202,
9610,
12,
723,
13,
288,
202,
3593,
17889,
30,
202,
565,
394,
3381,
273,
394,
17889,
3381,
12,
1673,
3381,
1769,
202,
565,
14015,
7880,
3381,
13,
2704,
3381,
2934,
542,
3759,
1964,
12,
1673,
3381,
18,
588,
3759,
1964,
10663,
202,
565,
14015,
7880,
3381,
13,
2704,
3381,
2934,
542,
3024,
1964,
12,
1673,
3381,
18,
588,
3024,
1964,
10663,
202,
565,
14015,
7880,
3381,
13,
2704,
3381,
2934,
542,
3779,
12,
1673,
3381,
18,
588,
3779,
10663,
202,
2
] |
return instanceValue == null ? null : instanceValue.toString( );
|
return convertAnchorToString( eDataType, instanceValue );
|
public String convertToString( EDataType eDataType, Object instanceValue ) { switch ( eDataType.getClassifierID( ) ) { case AttributePackage.ACTION_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.ANCHOR : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.ANGLE_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.AXIS_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.CHART_DIMENSION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.CHART_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.DATA_POINT_COMPONENT_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.DATA_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.DATE_FORMAT_DETAIL : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.DATE_FORMAT_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.DIRECTION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.GROUPING_UNIT_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.HORIZONTAL_ALIGNMENT : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.INTERSECTION_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.LEADER_LINE_STYLE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.LEGEND_BEHAVIOR_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.LEGEND_ITEM_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.LINE_DECORATOR : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.LINE_STYLE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.MARKER_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.ORIENTATION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.POSITION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.RISER_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.RULE_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.SCALE_UNIT_TYPE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.SORT_OPTION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.STRETCH : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.STYLED_COMPONENT : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.TICK_STYLE : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.TRIGGER_CONDITION : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.TRIGGER_FLOW : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.UNITS_OF_MEASUREMENT : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.VERTICAL_ALIGNMENT : return instanceValue == null ? null : instanceValue.toString( ); case AttributePackage.ACTION_TYPE_OBJECT : return convertActionTypeObjectToString( eDataType, instanceValue ); case AttributePackage.ANCHOR_OBJECT : return convertAnchorObjectToString( eDataType, instanceValue ); case AttributePackage.ANGLE_TYPE_OBJECT : return convertAngleTypeObjectToString( eDataType, instanceValue ); case AttributePackage.AXIS_TYPE_OBJECT : return convertAxisTypeObjectToString( eDataType, instanceValue ); case AttributePackage.CHART_DIMENSION_OBJECT : return convertChartDimensionObjectToString( eDataType, instanceValue ); case AttributePackage.CHART_TYPE_OBJECT : return convertChartTypeObjectToString( eDataType, instanceValue ); case AttributePackage.DATA_POINT_COMPONENT_TYPE_OBJECT : return convertDataPointComponentTypeObjectToString( eDataType, instanceValue ); case AttributePackage.DATA_TYPE_OBJECT : return convertDataTypeObjectToString( eDataType, instanceValue ); case AttributePackage.DATE_FORMAT_DETAIL_OBJECT : return convertDateFormatDetailObjectToString( eDataType, instanceValue ); case AttributePackage.DATE_FORMAT_TYPE_OBJECT : return convertDateFormatTypeObjectToString( eDataType, instanceValue ); case AttributePackage.DIRECTION_OBJECT : return convertDirectionObjectToString( eDataType, instanceValue ); case AttributePackage.GROUPING_UNIT_TYPE_OBJECT : return convertGroupingUnitTypeObjectToString( eDataType, instanceValue ); case AttributePackage.HORIZONTAL_ALIGNMENT_OBJECT : return convertHorizontalAlignmentObjectToString( eDataType, instanceValue ); case AttributePackage.ID : return convertIDToString( eDataType, instanceValue ); case AttributePackage.INTERSECTION_TYPE_OBJECT : return convertIntersectionTypeObjectToString( eDataType, instanceValue ); case AttributePackage.LEADER_LINE_STYLE_OBJECT : return convertLeaderLineStyleObjectToString( eDataType, instanceValue ); case AttributePackage.LEGEND_BEHAVIOR_TYPE_OBJECT : return convertLegendBehaviorTypeObjectToString( eDataType, instanceValue ); case AttributePackage.LEGEND_ITEM_TYPE_OBJECT : return convertLegendItemTypeObjectToString( eDataType, instanceValue ); case AttributePackage.LINE_DECORATOR_OBJECT : return convertLineDecoratorObjectToString( eDataType, instanceValue ); case AttributePackage.LINE_STYLE_OBJECT : return convertLineStyleObjectToString( eDataType, instanceValue ); case AttributePackage.MARKER_TYPE_OBJECT : return convertMarkerTypeObjectToString( eDataType, instanceValue ); case AttributePackage.ORIENTATION_OBJECT : return convertOrientationObjectToString( eDataType, instanceValue ); case AttributePackage.PERCENTAGE : return convertPercentageToString( eDataType, instanceValue ); case AttributePackage.PERCENTAGE_OBJECT : return convertPercentageObjectToString( eDataType, instanceValue ); case AttributePackage.POSITION_OBJECT : return convertPositionObjectToString( eDataType, instanceValue ); case AttributePackage.RGB_VALUE : return convertRGBValueToString( eDataType, instanceValue ); case AttributePackage.RGB_VALUE_OBJECT : return convertRGBValueObjectToString( eDataType, instanceValue ); case AttributePackage.RISER_TYPE_OBJECT : return convertRiserTypeObjectToString( eDataType, instanceValue ); case AttributePackage.RULE_TYPE_OBJECT : return convertRuleTypeObjectToString( eDataType, instanceValue ); case AttributePackage.SCALE_UNIT_TYPE_OBJECT : return convertScaleUnitTypeObjectToString( eDataType, instanceValue ); case AttributePackage.SORT_OPTION_OBJECT : return convertSortOptionObjectToString( eDataType, instanceValue ); case AttributePackage.STRETCH_OBJECT : return convertStretchObjectToString( eDataType, instanceValue ); case AttributePackage.STYLED_COMPONENT_OBJECT : return convertStyledComponentObjectToString( eDataType, instanceValue ); case AttributePackage.TICK_STYLE_OBJECT : return convertTickStyleObjectToString( eDataType, instanceValue ); case AttributePackage.TRIGGER_CONDITION_OBJECT : return convertTriggerConditionObjectToString( eDataType, instanceValue ); case AttributePackage.TRIGGER_FLOW_OBJECT : return convertTriggerFlowObjectToString( eDataType, instanceValue ); case AttributePackage.UNITS_OF_MEASUREMENT_OBJECT : return convertUnitsOfMeasurementObjectToString( eDataType, instanceValue ); case AttributePackage.VERTICAL_ALIGNMENT_OBJECT : return convertVerticalAlignmentObjectToString( eDataType, instanceValue ); default : throw new IllegalArgumentException( "The datatype '" + eDataType.getName( ) + "' is not a valid classifier" ); //$NON-NLS-1$ //$NON-NLS-2$ } }
|
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/AttributeFactoryImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/AttributeFactoryImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1765,
5808,
12,
20807,
11479,
16,
1033,
13523,
262,
202,
95,
202,
202,
9610,
261,
11479,
18,
588,
13860,
734,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
12249,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
20360,
916,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
30978,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
25614,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
1792,
4928,
67,
2565,
958,
3156,
1146,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
1792,
4928,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
4883,
67,
8941,
67,
22922,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
4883,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
4594,
67,
7254,
67,
40,
19810,
294,
9506,
202,
2463,
13523,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1765,
5808,
12,
20807,
11479,
16,
1033,
13523,
262,
202,
95,
202,
202,
9610,
261,
11479,
18,
588,
13860,
734,
12,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
2261,
18,
12249,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
20360,
916,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
30978,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
294,
13523,
18,
10492,
12,
11272,
1082,
202,
3593,
3601,
2261,
18,
25614,
67,
2399,
294,
9506,
202,
2463,
13523,
422,
446,
692,
446,
2
] |
logger.debug(""+plants.length+" plants set.");
|
logger.debug(""+(plants == null ? 0 : plants.length)+" plants set.");
|
public void setPlants(Pair<String, Integer>[] plants) { this.plants = plants; setChanged(); notifyObservers("PLANTS_CHANGED"); logger.debug(""+plants.length+" plants set."); }
|
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/36880eba42a79a92f0bcefa4e6fd4070e4fca20c/Search.java/buggy/trunk/src/net/sf/plantlore/client/overview/search/Search.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
1749,
4388,
12,
4154,
32,
780,
16,
2144,
34,
8526,
886,
4388,
13,
288,
3639,
333,
18,
412,
4388,
273,
886,
4388,
31,
3639,
444,
5033,
5621,
5066,
29393,
2932,
6253,
6856,
55,
67,
24435,
8863,
3639,
1194,
18,
4148,
2932,
6,
15,
12,
412,
4388,
422,
446,
692,
374,
294,
886,
4388,
18,
2469,
13,
9078,
886,
4388,
444,
1199,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
444,
1749,
4388,
12,
4154,
32,
780,
16,
2144,
34,
8526,
886,
4388,
13,
288,
3639,
333,
18,
412,
4388,
273,
886,
4388,
31,
3639,
444,
5033,
5621,
5066,
29393,
2932,
6253,
6856,
55,
67,
24435,
8863,
3639,
1194,
18,
4148,
2932,
6,
15,
12,
412,
4388,
422,
446,
692,
374,
294,
886,
4388,
18,
2469,
13,
9078,
886,
4388,
444,
1199,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void writePage(PageKey identity, boolean syncMe) throws StandardException { writeFormatId(identity); // make subclass write the page format writePage(identity); // let subclass have a chance to write any cached // data to page data array // force WAL - and check to see if database is corrupt or is frozen. // last log Instant may be null if the page is being forced // to disk on a createPage (which violates the WAL protocol actually). // See FileContainer.newPage LogInstant flushLogTo = getLastLogInstant(); dataFactory.flush(flushLogTo); if (flushLogTo != null) { clearLastLogInstant(); } // find the container and file access object FileContainer myContainer = (FileContainer) containerCache.find(identity.getContainerId()); if (myContainer != null) { try { myContainer.writePage(identity.getPageNumber(), pageData, syncMe); // // Do some in memory unlogged bookkeeping tasks while we have // the container. // if (!isOverflowPage() && isDirty()) { // let the container knows whether this page is a not filled, // non-overflow page myContainer.trackUnfilledPage(identity.getPageNumber(), unfilled()); // if this is not an overflow page, see if the page's row // count has changed since it come into the cache. // // if the page is not invalid, row count is 0. Otherwise, // count non-deleted records on page. // // Cannot call nonDeletedRecordCount because the page is // unlatched now even though nobody is changing it int currentRowCount = internalNonDeletedRecordCount(); if (currentRowCount != initialRowCount) { myContainer.updateEstimatedRowCount(currentRowCount-initialRowCount); setContainerRowCount(myContainer.getEstimatedRowCount(0)); initialRowCount = currentRowCount; } } } catch (IOException ioe) { // page cannot be written throw StandardException.newException( SQLState.FILE_WRITE_PAGE_EXCEPTION, ioe, identity, new Integer(myContainer.getPageSize())); } finally { containerCache.release(myContainer); myContainer = null; } } else { StandardException nested = StandardException.newException(SQLState.DATA_CONTAINER_VANISHED, identity.getContainerId()); throw dataFactory.markCorrupt( StandardException.newException( SQLState.FILE_WRITE_PAGE_EXCEPTION, nested, identity, new Integer(myContainer.getPageSize()))); } synchronized (this) { isDirty = false; preDirty = false; } }
|
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/676d633b3f8def14a542b90c185cab590b6fe089/CachedPage.java/buggy/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
2626,
1964,
12,
1964,
653,
10781,
16,
1075,
29510,
1209,
4667,
13,
202,
202,
15069,
8336,
503,
202,
95,
202,
202,
2626,
1630,
548,
12,
10781,
1769,
759,
81,
3223,
373,
1106,
5363,
546,
17600,
2139,
202,
202,
2626,
1964,
12,
10781,
1769,
202,
759,
1810,
10678,
21516,
497,
19292,
278,
543,
796,
2273,
7097,
6862,
9506,
202,
759,
3404,
270,
556,
11349,
396,
1126,
202,
202,
759,
5734,
59,
1013,
17,
464,
1893,
869,
5946,
430,
6231,
291,
3850,
10433,
280,
7396,
9808,
18,
202,
202,
759,
2722,
1330,
10675,
24877,
19425,
420,
430,
451,
17600,
291,
2196,
310,
19778,
202,
202,
759,
88,
369,
10175,
265,
1077,
602,
1964,
12,
12784,
522,
355,
270,
395,
580,
59,
1013,
8373,
621,
3452,
2934,
202,
202,
759,
9704,
812,
2170,
18,
2704,
1964,
202,
202,
1343,
10675,
11330,
1343,
774,
33,
588,
3024,
1343,
10675,
5621,
202,
202,
892,
1733,
18,
11330,
12,
11330,
1343,
774,
1769,
202,
202,
430,
12,
11330,
1343,
774,
5,
33,
2011,
15329,
6862,
9506,
202,
8507,
3024,
1343,
10675,
5621,
202,
202,
97,
202,
202,
759,
4720,
451,
31313,
1521,
464,
768,
3860,
1612,
202,
202,
812,
22928,
1035,
93,
2170,
28657,
812,
2170,
13,
3782,
1649,
18,
4720,
12,
10781,
18,
588,
2170,
548,
10663,
202,
202,
430,
12,
4811,
2170,
5,
33,
2011,
15329,
1082,
202,
698,
95,
9506,
202,
4811,
2170,
18,
2626,
1964,
12,
10781,
18,
588,
1964,
1854,
9334,
2433,
751,
16,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
2626,
1964,
12,
1964,
653,
10781,
16,
1075,
29510,
1209,
4667,
13,
202,
202,
15069,
8336,
503,
202,
95,
202,
202,
2626,
1630,
548,
12,
10781,
1769,
759,
81,
3223,
373,
1106,
5363,
546,
17600,
2139,
202,
202,
2626,
1964,
12,
10781,
1769,
202,
759,
1810,
10678,
21516,
497,
19292,
278,
543,
796,
2273,
7097,
6862,
9506,
202,
759,
3404,
270,
556,
11349,
396,
1126,
202,
202,
759,
5734,
59,
1013,
17,
464,
1893,
869,
5946,
430,
6231,
291,
3850,
10433,
280,
7396,
9808,
18,
202,
202,
759,
2722,
1330,
10675,
24877,
19425,
420,
430,
451,
17600,
291,
2196,
310,
19778,
202,
202,
759,
88,
369,
10175,
265,
1077,
602,
1964,
12,
12784,
522,
355,
2
] |
||
throw org.postgresql.Driver.notImplemented();
|
return rows.size();
|
public int getFetchSize() throws SQLException { throw org.postgresql.Driver.notImplemented(); }
|
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/45b5d792afa60ae24d57cdceaaec0e03cf6abb2a/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
2812,
1593,
1225,
1435,
1216,
6483,
565,
288,
202,
282,
327,
2595,
18,
1467,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
2812,
1593,
1225,
1435,
1216,
6483,
565,
288,
202,
282,
327,
2595,
18,
1467,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
defaultLayout.addTrim(SWT.TOP, topBarTrim);
|
if (defaultLayout.getTrim(topBarTrim.getId())==null) { defaultLayout.addTrim(SWT.TOP, topBarTrim); }
|
private void updateLayoutDataForContents() { if (defaultLayout == null) return; // @issue this is not ideal; coolbar and perspective shortcuts should be // separately configurable if ((getCoolBarVisible() && getWindowConfigurer().getShowCoolBar()) || (getPerspectiveBarVisible() && getWindowConfigurer() .getShowPerspectiveBar())) { defaultLayout.addTrim(SWT.TOP, topBarTrim); topBar.setVisible(true); } else { defaultLayout.removeTrim(topBarTrim); topBar.setVisible(false); } if (getStatusLineVisible() && getWindowConfigurer().getShowStatusLine()) { defaultLayout.addTrim(SWT.BOTTOM, getStatusLineTrim()); getStatusLineManager().getControl().setVisible(true); } else { defaultLayout.removeTrim(getStatusLineTrim()); getStatusLineManager().getControl().setVisible(false); } if (getShowHeapStatus()) { if (heapStatus != null) { if (heapStatus.getLayoutData() == null) { heapStatusTrim.setWidthHint(heapStatus.computeSize( SWT.DEFAULT, SWT.DEFAULT).x); heapStatusTrim .setHeightHint(getStatusLineManager().getControl() .computeSize(SWT.DEFAULT, SWT.DEFAULT).y); } defaultLayout.addTrim(SWT.BOTTOM, heapStatusTrim); heapStatus.setVisible(true); } } else { if (heapStatus != null) { defaultLayout.removeTrim(heapStatusTrim); heapStatus.setVisible(false); } } if (getWindowConfigurer().getShowProgressIndicator()) { if (progressRegion.getControl().getLayoutData() == null) { progressRegion.setWidthHint(progressRegion.getControl().computeSize( SWT.DEFAULT, SWT.DEFAULT).x); progressRegion .setHeightHint(getStatusLineManager().getControl() .computeSize(SWT.DEFAULT, SWT.DEFAULT).y); } defaultLayout .addTrim(SWT.BOTTOM, progressRegion); progressRegion.getControl().setVisible(true); } else { if (progressRegion != null) { defaultLayout.removeTrim(progressRegion); progressRegion.getControl().setVisible(false); } } defaultLayout.setCenterControl(getPageComposite()); }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/25042655d2ac6cf7d95666ed18d45069d8f70c84/WorkbenchWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1089,
3744,
751,
1290,
6323,
1435,
288,
3639,
309,
261,
1886,
3744,
422,
446,
13,
5411,
327,
31,
3639,
368,
632,
13882,
333,
353,
486,
23349,
31,
27367,
3215,
471,
26651,
25641,
1410,
506,
3639,
368,
282,
18190,
14593,
3639,
309,
14015,
588,
39,
1371,
5190,
6207,
1435,
597,
26156,
809,
11278,
7675,
588,
5706,
39,
1371,
5190,
10756,
7734,
747,
261,
588,
14781,
16772,
5190,
6207,
1435,
597,
26156,
809,
11278,
1435,
13491,
263,
588,
5706,
14781,
16772,
5190,
1435,
3719,
288,
5411,
309,
261,
1886,
3744,
18,
588,
14795,
12,
3669,
5190,
14795,
18,
26321,
10756,
631,
2011,
13,
288,
805,
3744,
18,
1289,
14795,
12,
55,
8588,
18,
10462,
16,
1760,
5190,
14795,
1769,
289,
5411,
1760,
5190,
18,
542,
6207,
12,
3767,
1769,
3639,
289,
469,
288,
5411,
805,
3744,
18,
4479,
14795,
12,
3669,
5190,
14795,
1769,
5411,
1760,
5190,
18,
542,
6207,
12,
5743,
1769,
3639,
289,
3639,
309,
261,
588,
1482,
1670,
6207,
1435,
597,
26156,
809,
11278,
7675,
588,
5706,
1482,
1670,
10756,
288,
5411,
805,
3744,
18,
1289,
14795,
12,
55,
8588,
18,
28891,
16,
5870,
1670,
14795,
10663,
5411,
5870,
1670,
1318,
7675,
588,
3367,
7675,
542,
6207,
12,
3767,
1769,
3639,
289,
469,
288,
5411,
805,
3744,
18,
4479,
14795,
12,
588,
1482,
1670,
14795,
10663,
5411,
5870,
1670,
1318,
7675,
588,
3367,
7675,
542,
6207,
12,
5743,
1769,
3639,
289,
202,
202,
430,
261,
588,
5706,
15648,
1482,
10756,
288,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
3744,
751,
1290,
6323,
1435,
288,
3639,
309,
261,
1886,
3744,
422,
446,
13,
5411,
327,
31,
3639,
368,
632,
13882,
333,
353,
486,
23349,
31,
27367,
3215,
471,
26651,
25641,
1410,
506,
3639,
368,
282,
18190,
14593,
3639,
309,
14015,
588,
39,
1371,
5190,
6207,
1435,
597,
26156,
809,
11278,
7675,
588,
5706,
39,
1371,
5190,
10756,
7734,
747,
261,
588,
14781,
16772,
5190,
6207,
1435,
597,
26156,
809,
11278,
1435,
13491,
263,
588,
5706,
14781,
16772,
5190,
1435,
3719,
288,
5411,
309,
261,
1886,
3744,
18,
588,
14795,
12,
3669,
5190,
14795,
18,
26321,
10756,
631,
2011,
13,
288,
805,
3744,
18,
1289,
14795,
12,
55,
8588,
18,
10462,
16,
1760,
5190,
14795,
2
] |
progressPanel.stop();
|
doStopWaitingProgress();
|
private void doStop() { log.info("Arrt du serveur"); loadSampleDataAction.setEnabled(false); progressPanel.start(); try { rmiServer.stop(); } catch (Exception e) { log.error("Erreur lors de l'arrt du serveur", e); showError(); } progressPanel.stop(); }
|
10963 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10963/48f3eca2301c7968652014317df7c80e141f1bd7/MainFrame.java/buggy/bobo/rmiserver/src/java/org/eu/bobo/rmi/server/swing/MainFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
4947,
1435,
288,
3639,
613,
18,
1376,
2932,
5715,
88,
9978,
12175,
295,
8863,
7734,
1262,
8504,
751,
1803,
18,
542,
1526,
12,
5743,
1769,
3639,
4007,
5537,
18,
1937,
5621,
3639,
775,
288,
5411,
6692,
77,
2081,
18,
5681,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
613,
18,
1636,
2932,
29228,
266,
295,
328,
1383,
443,
328,
11,
297,
3797,
9978,
12175,
295,
3113,
425,
1769,
5411,
2405,
668,
5621,
3639,
289,
7734,
741,
4947,
15946,
5491,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
741,
4947,
1435,
288,
3639,
613,
18,
1376,
2932,
5715,
88,
9978,
12175,
295,
8863,
7734,
1262,
8504,
751,
1803,
18,
542,
1526,
12,
5743,
1769,
3639,
4007,
5537,
18,
1937,
5621,
3639,
775,
288,
5411,
6692,
77,
2081,
18,
5681,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
613,
18,
1636,
2932,
29228,
266,
295,
328,
1383,
443,
328,
11,
297,
3797,
9978,
12175,
295,
3113,
425,
1769,
5411,
2405,
668,
5621,
3639,
289,
7734,
741,
4947,
15946,
5491,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
final ProcessingInstruction pi = (ProcessingInstruction)child;
|
final ProcessingInstruction pi = (ProcessingInstruction) child;
|
public static final Node importNode(Node parent, Node child){ Node copy = null; final Document doc = parent.getOwnerDocument(); switch (child.getNodeType()) { case Node.CDATA_SECTION_NODE: copy = doc.createCDATASection(((CDATASection) child).getData()); break; case Node.COMMENT_NODE: copy = doc.createComment(((Comment) child).getData()); break; case Node.DOCUMENT_FRAGMENT_NODE: copy = doc.createDocumentFragment(); break; case Node.ELEMENT_NODE: final Element elem = doc.createElement(((Element)child).getTagName()); copy = elem; final NamedNodeMap attributes = child.getAttributes(); if ( attributes != null) { final int size = attributes.getLength(); for (int i = 0; i < size; i++) { final Attr attr = (Attr) attributes.item(i); elem.setAttribute(attr.getName(), attr.getValue()); } } break; case Node.ENTITY_REFERENCE_NODE: copy = doc.createEntityReference(child.getNodeName()); break; case Node.PROCESSING_INSTRUCTION_NODE: final ProcessingInstruction pi = (ProcessingInstruction)child; copy = doc.createProcessingInstruction(pi.getTarget(), pi.getData()); break; case Node.TEXT_NODE: copy = doc.createTextNode(((Text) child).getData()); break; default: // this should never happen throw new IllegalStateException("Invalid node type: " + child.getNodeType()); } // okay we have a copy of the child, now the child becomes the parent // and we are iterating recursively over its children. try { final NodeList children = child.getChildNodes(); if (children != null) { final int size = children.getLength(); for (int i = 0; i < size; i++) { final Node newChild = children.item(i); if (newChild != null) { importNode(copy, newChild); } } } } catch (DOMException ignored) { } // bingo append it. (this should normally not be done here) parent.appendChild(copy); return copy; }
|
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0dab862ee09d706c3f373fc18bedbf17caf427b9/DOMUtil.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
2029,
1930,
907,
12,
907,
982,
16,
2029,
1151,
15329,
3639,
2029,
1610,
273,
446,
31,
3639,
727,
4319,
997,
273,
982,
18,
588,
5541,
2519,
5621,
3639,
1620,
261,
3624,
18,
588,
15101,
10756,
288,
3639,
648,
2029,
18,
18375,
67,
19082,
67,
8744,
30,
5411,
1610,
273,
997,
18,
2640,
10160,
789,
3033,
794,
12443,
12,
10160,
789,
3033,
794,
13,
1151,
2934,
588,
751,
10663,
5411,
898,
31,
3639,
648,
2029,
18,
12200,
67,
8744,
30,
5411,
1610,
273,
997,
18,
2640,
4469,
12443,
12,
4469,
13,
1151,
2934,
588,
751,
10663,
5411,
898,
31,
3639,
648,
2029,
18,
18450,
67,
9981,
26903,
67,
8744,
30,
5411,
1610,
273,
997,
18,
2640,
2519,
7456,
5621,
5411,
898,
31,
3639,
648,
2029,
18,
10976,
67,
8744,
30,
5411,
727,
3010,
3659,
273,
997,
18,
2640,
1046,
12443,
12,
1046,
13,
3624,
2934,
588,
8520,
10663,
5411,
1610,
273,
3659,
31,
5411,
727,
9796,
907,
863,
1677,
273,
1151,
18,
588,
2498,
5621,
5411,
309,
261,
1677,
480,
446,
13,
288,
7734,
727,
509,
963,
273,
1677,
18,
588,
1782,
5621,
7734,
364,
261,
474,
277,
273,
374,
31,
277,
411,
963,
31,
277,
27245,
288,
10792,
727,
11289,
1604,
273,
261,
3843,
13,
1677,
18,
1726,
12,
77,
1769,
10792,
3659,
18,
542,
1499,
12,
1747,
18,
17994,
9334,
1604,
18,
24805,
10663,
7734,
289,
5411,
289,
5411,
898,
31,
3639,
648,
2029,
18,
11101,
67,
14617,
67,
8744,
30,
5411,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
2029,
1930,
907,
12,
907,
982,
16,
2029,
1151,
15329,
3639,
2029,
1610,
273,
446,
31,
3639,
727,
4319,
997,
273,
982,
18,
588,
5541,
2519,
5621,
3639,
1620,
261,
3624,
18,
588,
15101,
10756,
288,
3639,
648,
2029,
18,
18375,
67,
19082,
67,
8744,
30,
5411,
1610,
273,
997,
18,
2640,
10160,
789,
3033,
794,
12443,
12,
10160,
789,
3033,
794,
13,
1151,
2934,
588,
751,
10663,
5411,
898,
31,
3639,
648,
2029,
18,
12200,
67,
8744,
30,
5411,
1610,
273,
997,
18,
2640,
4469,
12443,
12,
4469,
13,
1151,
2934,
588,
751,
10663,
5411,
898,
31,
3639,
648,
2029,
18,
18450,
67,
9981,
26903,
67,
8744,
30,
5411,
1610,
273,
997,
18,
2640,
2
] |
stringBuffer.append(TEXT_243);
|
stringBuffer.append(TEXT_204);
|
public String generate(Object argument) { final StringBuffer stringBuffer = new StringBuffer(); final GenCommonBase genElement = (GenCommonBase) ((Object[]) argument)[0];final GenLinkLabel genLabel = (GenLinkLabel)genElement;final ImportAssistant importManager = (ImportAssistant) ((Object[]) argument)[1];GenLink genHost = genLabel.getLink();GenDiagram genDiagram = genLabel.getDiagram();LabelModelFacet labelModelFacet = genLabel.getModelFacet();GenClass underlyingMetaClass;if (genHost.getModelFacet() instanceof TypeLinkModelFacet) { TypeLinkModelFacet typeLinkModelFacet = (TypeLinkModelFacet) genHost.getModelFacet(); underlyingMetaClass = typeLinkModelFacet.getMetaClass();} else if (genHost.getModelFacet() instanceof FeatureLinkModelFacet) { FeatureLinkModelFacet featureLinkModelFacet = (FeatureLinkModelFacet) genHost.getModelFacet(); underlyingMetaClass = featureLinkModelFacet.getMetaFeature().getTypeGenClass();} else { underlyingMetaClass = null;}final boolean isReadOnly = genLabel.isReadOnly(); stringBuffer.append(TEXT_1); String copyrightText = genDiagram.getEditorGen().getCopyrightText();if (copyrightText != null && copyrightText.trim().length() > 0) { stringBuffer.append(TEXT_2); stringBuffer.append(copyrightText.replaceAll("\n", "\n * ")); stringBuffer.append(TEXT_3); } stringBuffer.append(TEXT_4); stringBuffer.append(TEXT_5); class FeatureGetAccessorHelper { /** * @param containerName the name of the container * @param feature the feature whose value is in interest * @param containerMetaClass the <code>GenClass</code> of the container, or <code>null</code>, if the container is declared as an <code>EObject</code>. * @param needsCastToResultType whether the cast to the result type is required (this parameter is only used if the <code>EClass</code> this feature belongs to is an external interface). */ public void appendFeatureValueGetter(String containerName, GenFeature feature, GenClass containerMetaClass, boolean needsCastToResultType) { if (feature.getGenClass().isExternalInterface()) { boolean needsCastToEObject = containerMetaClass != null && containerMetaClass.isExternalInterface(); if (needsCastToResultType) { stringBuffer.append(TEXT_6); stringBuffer.append(importManager.getImportedName(feature.isListType() ? "java.util.Collection" : feature.getTypeGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_7); } if (needsCastToEObject) { stringBuffer.append(TEXT_8); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EObject")); stringBuffer.append(TEXT_9); } stringBuffer.append(containerName); if (needsCastToEObject) { stringBuffer.append(TEXT_10); } stringBuffer.append(TEXT_11); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_12); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_13); if (needsCastToResultType) { stringBuffer.append(TEXT_14); } } else { boolean needsCastToFeatureGenType = containerMetaClass == null || containerMetaClass.isExternalInterface(); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_15); stringBuffer.append(importManager.getImportedName(feature.getGenClass().getQualifiedInterfaceName())); stringBuffer.append(TEXT_16); } stringBuffer.append(containerName); if (needsCastToFeatureGenType) { stringBuffer.append(TEXT_17); } stringBuffer.append(TEXT_18); stringBuffer.append(feature.getGetAccessor()); stringBuffer.append(TEXT_19); } }}final FeatureGetAccessorHelper myFeatureGetAccessorHelper = new FeatureGetAccessorHelper(); stringBuffer.append(TEXT_20); importManager.emitPackageStatement(stringBuffer);importManager.addImport("org.eclipse.draw2d.geometry.Point");importManager.addImport("org.eclipse.gef.EditPart");importManager.addImport("org.eclipse.gef.EditPolicy");importManager.addImport("org.eclipse.gmf.runtime.notation.Location");importManager.addImport("org.eclipse.gmf.runtime.notation.Node");importManager.addImport("org.eclipse.gmf.runtime.notation.View");importManager.markImportLocation(stringBuffer); stringBuffer.append(TEXT_21); stringBuffer.append(genLabel.getEditPartClassName()); stringBuffer.append(TEXT_22); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editparts.AbstractGraphicalEditPart")); stringBuffer.append(TEXT_23); {GenCommonBase genCommonBase = genLabel; stringBuffer.append(TEXT_24); stringBuffer.append(TEXT_25); stringBuffer.append(genCommonBase.getVisualID()); stringBuffer.append(TEXT_26); } stringBuffer.append(TEXT_27); stringBuffer.append(TEXT_28); if (!isReadOnly) { stringBuffer.append(TEXT_29); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_30); } stringBuffer.append(TEXT_31); stringBuffer.append(genLabel.getEditPartClassName()); stringBuffer.append(TEXT_32); final String primaryView = "getUpdatableParent().getDiagramEdge()";final String resolvedSemanticElement = "resolveSemanticElement()"; stringBuffer.append(TEXT_33); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.ConnectionEndpointEditPolicy")); stringBuffer.append(TEXT_34); if (labelModelFacet instanceof FeatureLabelModelFacet || labelModelFacet instanceof CompositeFeatureLabelModelFacet && !isReadOnly) { String editPatternCode = "EDIT_PATTERN"; //declared in labelText.javajetinc, used in directEditCommand.jetinc. stringBuffer.append(TEXT_35); stringBuffer.append(TEXT_36); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.EditPolicy")); stringBuffer.append(TEXT_37); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.editpolicies.DirectEditPolicy")); stringBuffer.append(TEXT_38); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_39); stringBuffer.append(TEXT_40); stringBuffer.append(TEXT_41); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.Command")); stringBuffer.append(TEXT_42); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.requests.DirectEditRequest")); stringBuffer.append(TEXT_43); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_44); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_45); stringBuffer.append(editPatternCode); stringBuffer.append(TEXT_46); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_47); stringBuffer.append(importManager.getImportedName("java.text.ParseException")); stringBuffer.append(TEXT_48); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_49); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_50); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.util.TransactionUtil")); stringBuffer.append(TEXT_51); stringBuffer.append(primaryView); stringBuffer.append(TEXT_52); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature featureToSet = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); EStructuralFeature ecoreFeature = featureToSet.getEcoreFeature(); stringBuffer.append(TEXT_53); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_54); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_55); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_56); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_57); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_58); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_59); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_60); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_61); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_62); stringBuffer.append(importManager.getImportedName(featureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_63); stringBuffer.append(featureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_64); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_65); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_66); if (ecoreFeature.isMany()) { stringBuffer.append(TEXT_67); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_68); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_69); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_70); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_71); stringBuffer.append(featureToSet.getAccessorName()); stringBuffer.append(TEXT_72); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_73); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_74); } else { stringBuffer.append(TEXT_75); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_76); } stringBuffer.append(TEXT_77); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; List metaFeatures = compositeFeatureLabelModelFacet.getMetaFeatures(); stringBuffer.append(TEXT_78); stringBuffer.append(metaFeatures.size()); stringBuffer.append(TEXT_79); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.commands.UnexecutableCommand")); stringBuffer.append(TEXT_80); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_81); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.commands.WrappingCommand")); stringBuffer.append(TEXT_82); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.Command")); stringBuffer.append(TEXT_83); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.transaction.TransactionalEditingDomain")); stringBuffer.append(TEXT_84); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_85); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_86); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_87); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.CompoundCommand")); stringBuffer.append(TEXT_88); boolean haveDeclaredValues = false; for(int i = 0; i < metaFeatures.size(); i++) { GenFeature nextFeatureToSet = (GenFeature) metaFeatures.get(i); EStructuralFeature nextEcoreFeature = nextFeatureToSet.getEcoreFeature(); stringBuffer.append(TEXT_89); if (i == 0) { stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_90); } stringBuffer.append(TEXT_91); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.ecore.EAttribute")); stringBuffer.append(TEXT_92); stringBuffer.append(importManager.getImportedName(nextFeatureToSet.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_93); stringBuffer.append(nextFeatureToSet.getFeatureAccessorName()); stringBuffer.append(TEXT_94); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.services.ParserUtil")); stringBuffer.append(TEXT_95); stringBuffer.append(i); stringBuffer.append(TEXT_96); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.command.UnexecutableCommand")); stringBuffer.append(TEXT_97); if (nextEcoreFeature.isMany()) { stringBuffer.append(TEXT_98); if (!haveDeclaredValues) { haveDeclaredValues = true; stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.EList")); stringBuffer.append(TEXT_99); } stringBuffer.append(TEXT_100); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.common.util.BasicEList")); stringBuffer.append(TEXT_101); stringBuffer.append(nextFeatureToSet.getAccessorName()); stringBuffer.append(TEXT_102); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.RemoveCommand")); stringBuffer.append(TEXT_103); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.AddCommand")); stringBuffer.append(TEXT_104); } else { stringBuffer.append(TEXT_105); stringBuffer.append(importManager.getImportedName("org.eclipse.emf.edit.command.SetCommand")); stringBuffer.append(TEXT_106); } } stringBuffer.append(TEXT_107); } stringBuffer.append(TEXT_108); } stringBuffer.append(TEXT_109); if (labelModelFacet instanceof FeatureLabelModelFacet || labelModelFacet instanceof CompositeFeatureLabelModelFacet && !isReadOnly) { stringBuffer.append(TEXT_110); stringBuffer.append(TEXT_111); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.Request")); stringBuffer.append(TEXT_112); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.RequestConstants")); stringBuffer.append(TEXT_113); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_114); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.DirectEditManager")); stringBuffer.append(TEXT_115); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.TextCellEditor")); stringBuffer.append(TEXT_116); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.tools.CellEditorLocator")); stringBuffer.append(TEXT_117); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.viewers.CellEditor")); stringBuffer.append(TEXT_118); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Rectangle")); stringBuffer.append(TEXT_119); } stringBuffer.append(TEXT_120); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_121); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Connection")); stringBuffer.append(TEXT_122); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Connection")); stringBuffer.append(TEXT_123); final String alignment; LinkLabelAlignment genAlignment = genLabel.getAlignment(); if (genAlignment == null) { alignment = "MIDDLE"; } else { switch (genAlignment.getValue()) { case LinkLabelAlignment.MIDDLE: alignment = "MIDDLE"; break; case LinkLabelAlignment.TARGET: alignment = "TARGET"; break; case LinkLabelAlignment.SOURCE: alignment = "SOURCE"; break; default: alignment = "MIDDLE"; break; } } stringBuffer.append(TEXT_124); stringBuffer.append(importManager.getImportedName("org.eclipse.gef.GraphicalEditPart")); stringBuffer.append(TEXT_125); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionLocator")); stringBuffer.append(TEXT_126); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.ConnectionLocator")); stringBuffer.append(TEXT_127); stringBuffer.append(alignment); stringBuffer.append(TEXT_128); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.geometry.Point")); stringBuffer.append(TEXT_129); stringBuffer.append(TEXT_130); /*genFeature.getObjectType() throws NPE on primitive types. This is a workaround. */HashMap primitiveTypeToWrapperClassName = new HashMap();primitiveTypeToWrapperClassName.put(Boolean.TYPE, "Boolean");primitiveTypeToWrapperClassName.put(Byte.TYPE, "Byte");primitiveTypeToWrapperClassName.put(Character.TYPE, "Character");primitiveTypeToWrapperClassName.put(Double.TYPE, "Double");primitiveTypeToWrapperClassName.put(Float.TYPE, "Float");primitiveTypeToWrapperClassName.put(Integer.TYPE, "Integer");primitiveTypeToWrapperClassName.put(Long.TYPE, "Long");primitiveTypeToWrapperClassName.put(Short.TYPE, "Short");String viewPattern = null;String editPattern = null;if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; viewPattern = featureLabelModelFacet.getViewPattern(); if (viewPattern == null || viewPattern.length() == 0) { viewPattern = "{0}"; } editPattern = featureLabelModelFacet.getEditPattern(); if (editPattern == null || editPattern.length() == 0) { editPattern = "{0}"; }} else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; viewPattern = compositeFeatureLabelModelFacet.getViewPattern(); if (viewPattern == null || viewPattern.length() == 0) { StringBuffer patternBuffer = new StringBuffer(); for(int i = 0; i < compositeFeatureLabelModelFacet.getMetaFeatures().size(); i++) { patternBuffer.append("{").append(i).append("} "); } viewPattern = patternBuffer.toString().trim(); } editPattern = compositeFeatureLabelModelFacet.getEditPattern(); if (editPattern == null || editPattern.length() == 0) { StringBuffer patternBuffer = new StringBuffer(); for(int i = 0; i < compositeFeatureLabelModelFacet.getMetaFeatures().size(); i++) { patternBuffer.append("{").append(i).append("} "); } editPattern = patternBuffer.toString().trim(); }} stringBuffer.append(TEXT_131); stringBuffer.append(viewPattern); stringBuffer.append(TEXT_132); stringBuffer.append(editPattern); stringBuffer.append(TEXT_133); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_134); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_135); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_136); stringBuffer.append(resolvedSemanticElement); stringBuffer.append(TEXT_137); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_138); if (labelModelFacet instanceof FeatureLabelModelFacet) { FeatureLabelModelFacet featureLabelModelFacet = (FeatureLabelModelFacet) labelModelFacet; GenFeature feature = featureLabelModelFacet.getMetaFeature(); if (!feature.isPrimitiveType()) { stringBuffer.append(TEXT_139); myFeatureGetAccessorHelper.appendFeatureValueGetter("element", feature, underlyingMetaClass, false); stringBuffer.append(TEXT_140); } stringBuffer.append(TEXT_141); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_142); if (feature.isPrimitiveType()) { stringBuffer.append(TEXT_143); stringBuffer.append(primitiveTypeToWrapperClassName.get(feature.getTypeGenClassifier().getEcoreClassifier().getInstanceClass())); stringBuffer.append(TEXT_144); } myFeatureGetAccessorHelper.appendFeatureValueGetter("element", feature, underlyingMetaClass, false); if (feature.isPrimitiveType()) { stringBuffer.append(TEXT_145); } stringBuffer.append(TEXT_146); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; stringBuffer.append(TEXT_147); stringBuffer.append(importManager.getImportedName("java.text.MessageFormat")); stringBuffer.append(TEXT_148); for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); if (next.isPrimitiveType()) { stringBuffer.append(TEXT_149); stringBuffer.append(primitiveTypeToWrapperClassName.get(next.getTypeGenClassifier().getEcoreClassifier().getInstanceClass())); stringBuffer.append(TEXT_150); } myFeatureGetAccessorHelper.appendFeatureValueGetter("element", next, underlyingMetaClass, false); if (next.isPrimitiveType()) { stringBuffer.append(TEXT_151); } if (it.hasNext()) { stringBuffer.append(TEXT_152); } } stringBuffer.append(TEXT_153); } else { stringBuffer.append(TEXT_154); } stringBuffer.append(TEXT_155); stringBuffer.append(TEXT_156); boolean isFixedFontSetInFigure;{ StyleAttributes styleAttributes = (genElement.getViewmap() == null) ? null : (StyleAttributes)genElement.getViewmap().find(StyleAttributes.class); isFixedFontSetInFigure = styleAttributes != null && styleAttributes.isFixedFont();} stringBuffer.append(TEXT_157); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_158); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_159); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_160); stringBuffer.append(primaryView); stringBuffer.append(TEXT_161); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_162); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_163); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_164); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_165); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.SWT")); stringBuffer.append(TEXT_166); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_167); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.FontData")); stringBuffer.append(TEXT_168); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_169); } stringBuffer.append(TEXT_170); if (!isFixedFontSetInFigure) { stringBuffer.append(TEXT_171); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Font")); stringBuffer.append(TEXT_172); } stringBuffer.append(TEXT_173); stringBuffer.append(TEXT_174); stringBuffer.append(TEXT_175); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_176); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.FontStyle")); stringBuffer.append(TEXT_177); stringBuffer.append(primaryView); stringBuffer.append(TEXT_178); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_179); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_180); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_181); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_182); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Color")); stringBuffer.append(TEXT_183); stringBuffer.append(importManager.getImportedName("org.eclipse.swt.graphics.Image")); stringBuffer.append(TEXT_184); if (genLabel.isElementIcon()) { stringBuffer.append(TEXT_185); stringBuffer.append(importManager.getImportedName("org.eclipse.jface.resource.ImageDescriptor")); stringBuffer.append(TEXT_186); stringBuffer.append(importManager.getImportedName(genDiagram.getEditorGen().getPlugin().getActivatorQualifiedClassName())); stringBuffer.append(TEXT_187); } stringBuffer.append(TEXT_188); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_189); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_190); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); stringBuffer.append(TEXT_191); if (genHost.getModelFacet() instanceof TypeLinkModelFacet) { stringBuffer.append(TEXT_192); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_193); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_194); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_195); } else if (genHost.getModelFacet() instanceof FeatureLinkModelFacet) { stringBuffer.append(TEXT_196); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.View")); stringBuffer.append(TEXT_197); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.Edge")); stringBuffer.append(TEXT_198); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_199); stringBuffer.append(importManager.getImportedName(underlyingMetaClass.getQualifiedInterfaceName())); stringBuffer.append(TEXT_200); } else { stringBuffer.append(TEXT_201); } stringBuffer.append(TEXT_202); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_203); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_204); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_205); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_206); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_207); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_208); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_209); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_210); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_211); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature feature = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); stringBuffer.append(TEXT_212); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_213); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_214); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); stringBuffer.append(TEXT_215); stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_216); stringBuffer.append(next.getFeatureAccessorName()); stringBuffer.append(TEXT_217); }} stringBuffer.append(TEXT_218); stringBuffer.append(importManager.getImportedName(genHost.getEditPartQualifiedClassName())); stringBuffer.append(TEXT_219); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_220); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_221); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_222); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_223); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.notation.NotationPackage")); stringBuffer.append(TEXT_224); if (labelModelFacet instanceof FeatureLabelModelFacet) { GenFeature feature = ((FeatureLabelModelFacet)labelModelFacet).getMetaFeature(); stringBuffer.append(TEXT_225); stringBuffer.append(importManager.getImportedName(feature.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_226); stringBuffer.append(feature.getFeatureAccessorName()); stringBuffer.append(TEXT_227); } else if (labelModelFacet instanceof CompositeFeatureLabelModelFacet) { CompositeFeatureLabelModelFacet compositeFeatureLabelModelFacet = (CompositeFeatureLabelModelFacet) labelModelFacet; for(Iterator it = compositeFeatureLabelModelFacet.getMetaFeatures().iterator(); it.hasNext(); ) { GenFeature next = (GenFeature) it.next(); stringBuffer.append(TEXT_228); stringBuffer.append(importManager.getImportedName(next.getGenPackage().getQualifiedPackageInterfaceName())); stringBuffer.append(TEXT_229); stringBuffer.append(next.getFeatureAccessorName()); stringBuffer.append(TEXT_230); }} stringBuffer.append(TEXT_231); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_232); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_233); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_234); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_235); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_236); stringBuffer.append(importManager.getImportedName("org.eclipse.gmf.runtime.lite.edit.parts.update.IUpdatableEditPart")); stringBuffer.append(TEXT_237); final Viewmap viewmap = genLabel.getViewmap(); stringBuffer.append(TEXT_238); final String figureQualifiedClassName;if (viewmap instanceof ParentAssignedViewmap) { ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; figureQualifiedClassName = parentAssignedViewmap.getFigureQualifiedClassName() == null ? "org.eclipse.draw2d.IFigure" : parentAssignedViewmap.getFigureQualifiedClassName();} else if (viewmap instanceof FigureViewmap) { String figureQualifiedClassNameCandidate = ((FigureViewmap) viewmap).getFigureQualifiedClassName(); if (figureQualifiedClassNameCandidate == null || figureQualifiedClassNameCandidate.trim().length() == 0) { figureQualifiedClassName = "org.eclipse.draw2d.Label"; } else { figureQualifiedClassName = figureQualifiedClassNameCandidate; }} else if (viewmap instanceof SnippetViewmap) { figureQualifiedClassName = "org.eclipse.draw2d.IFigure";} else if (viewmap instanceof InnerClassViewmap) { figureQualifiedClassName = ((InnerClassViewmap) viewmap).getClassName();} else { figureQualifiedClassName = "org.eclipse.draw2d.IFigure";}final String figureImportedName;if (viewmap instanceof InnerClassViewmap) { figureImportedName = figureQualifiedClassName; //do not import inner class} else { figureImportedName = importManager.getImportedName(figureQualifiedClassName);}if (viewmap instanceof ParentAssignedViewmap) { final ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; stringBuffer.append(TEXT_239); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_240); stringBuffer.append((parentAssignedViewmap.getSetterName() == null ? "setLabel" : parentAssignedViewmap.getSetterName())); stringBuffer.append(TEXT_241); } else { stringBuffer.append(TEXT_242); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_243); if (viewmap instanceof FigureViewmap) { stringBuffer.append(TEXT_244); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_245); } // instanceof FigureViewmap else if (viewmap instanceof SnippetViewmap) { stringBuffer.append(TEXT_246); stringBuffer.append(((SnippetViewmap) viewmap).getBody()); stringBuffer.append(TEXT_247); } // instanceof SnippetViewmap; FIXME : obtain figure class name to generate getter else if (viewmap instanceof InnerClassViewmap) { stringBuffer.append(TEXT_248); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_249); } stringBuffer.append(TEXT_250); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.IFigure")); stringBuffer.append(TEXT_251); stringBuffer.append(figureImportedName); stringBuffer.append(TEXT_252); if ("org.eclipse.draw2d.Label".equals(figureQualifiedClassName) || viewmap instanceof InnerClassViewmap) { stringBuffer.append(TEXT_253); } else { stringBuffer.append(TEXT_254); } stringBuffer.append(TEXT_255); } /*not parent-assigned*/ stringBuffer.append(TEXT_256); if (!"org.eclipse.draw2d.Label".equals(figureQualifiedClassName) && viewmap instanceof InnerClassViewmap==false) { stringBuffer.append(TEXT_257); } stringBuffer.append(TEXT_258); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Label")); stringBuffer.append(TEXT_259); stringBuffer.append(importManager.getImportedName("org.eclipse.draw2d.Label")); stringBuffer.append(TEXT_260); String labelSetterName = "setLabel"; // same assumption in NodeEditPartString labelFigureClassName = "org.eclipse.draw2d.IFigure";if (viewmap instanceof ParentAssignedViewmap) { ParentAssignedViewmap parentAssignedViewmap = (ParentAssignedViewmap) viewmap; if (parentAssignedViewmap.getSetterName() != null) { labelSetterName = parentAssignedViewmap.getSetterName(); } if (parentAssignedViewmap.getFigureQualifiedClassName() != null) { labelFigureClassName = parentAssignedViewmap.getFigureQualifiedClassName(); }} // FIXME perhaps, there's no sense to have setLabel for any other viewmap than ParentAssigned? stringBuffer.append(TEXT_261); stringBuffer.append(labelSetterName); stringBuffer.append(TEXT_262); stringBuffer.append(importManager.getImportedName(labelFigureClassName)); stringBuffer.append(TEXT_263); if ("org.eclipse.draw2d.Label".equals(labelFigureClassName)) { stringBuffer.append(TEXT_264); } else { stringBuffer.append(TEXT_265); } stringBuffer.append(TEXT_266); if (viewmap instanceof InnerClassViewmap) { String classBody = ((InnerClassViewmap) viewmap).getClassBody(); stringBuffer.append(TEXT_267); stringBuffer.append(classBody); stringBuffer.append(TEXT_268); if (classBody.indexOf("DPtoLP") != -1) { stringBuffer.append(TEXT_269); } } stringBuffer.append(TEXT_270); importManager.emitSortedImports(); stringBuffer.append(TEXT_271); return stringBuffer.toString(); }
|
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/de70953cec74fbba0ed0cfbed37c36c0b594b3db/LinkLabelEditPartGenerator.java/buggy/plugins/org.eclipse.gmf.codegen.lite/src-templates/org/eclipse/gmf/codegen/templates/lite/parts/LinkLabelEditPartGenerator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6517,
2171,
3157,
1046,
273,
261,
7642,
6517,
2171,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
10938,
2098,
2224,
3157,
2224,
273,
261,
7642,
2098,
2224,
13,
4507,
1046,
31,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
7642,
2098,
3157,
2594,
273,
3157,
2224,
18,
588,
2098,
5621,
7642,
14058,
1940,
3157,
14058,
1940,
273,
3157,
2224,
18,
588,
14058,
1940,
5621,
2224,
1488,
11137,
1433,
1488,
11137,
273,
3157,
2224,
18,
588,
1488,
11137,
5621,
7642,
797,
6808,
2781,
797,
31,
430,
261,
4507,
2594,
18,
588,
1488,
11137,
1435,
1276,
1412,
2098,
1488,
11137,
13,
288,
202,
559,
2098,
1488,
11137,
618,
2098,
1488,
11137,
273,
261,
559,
2098,
1488,
11137,
13,
3157,
2594,
18,
588,
1488,
11137,
5621,
202,
9341,
6291,
2781,
797,
273,
618,
2098,
1488,
11137,
18,
588,
2781,
797,
5621,
97,
469,
309,
261,
4507,
2594,
18,
588,
1488,
11137,
1435,
1276,
7881,
2098,
1488,
11137,
13,
288,
202,
4595,
2098,
1488,
11137,
2572,
2098,
1488,
11137,
273,
261,
4595,
2098,
1488,
11137,
13,
3157,
2594,
18,
588,
1488,
11137,
5621,
202,
9341,
6291,
2781,
797,
273,
2572,
2098,
1488,
11137,
18,
588,
2781,
4595,
7675,
588,
559,
7642,
797,
5621,
97,
469,
288,
202,
9341,
6291,
2781,
797,
273,
446,
31,
97,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
2103,
12,
921,
1237,
13,
225,
288,
565,
727,
6674,
533,
1892,
273,
394,
6674,
5621,
565,
727,
10938,
6517,
2171,
3157,
1046,
273,
261,
7642,
6517,
2171,
13,
14015,
921,
63,
5717,
1237,
25146,
20,
15533,
6385,
10938,
2098,
2224,
3157,
2224,
273,
261,
7642,
2098,
2224,
13,
4507,
1046,
31,
6385,
6164,
2610,
17175,
1930,
1318,
273,
261,
5010,
2610,
17175,
13,
14015,
921,
63,
5717,
1237,
25146,
21,
15533,
7642,
2098,
3157,
2594,
273,
3157,
2224,
18,
588,
2098,
5621,
7642,
14058,
1940,
3157,
14058,
1940,
273,
3157,
2224,
18,
588,
14058,
1940,
5621,
2224,
1488,
11137,
1433,
1488,
11137,
273,
3157,
2224,
18,
588,
1488,
11137,
5621,
7642,
797,
6808,
2781,
797,
2
] |
board.update(x, y, BattleBoard.positionValue.CITY);
|
board.update(x, y, BattleBoard.positionValue.HIT); board.hit();
|
private boolean moveEnded(String[] args) { if (playerNames == null) { log.severe("setTurnOrder has not yet been done"); return false; } if (args.length < 3) { log.severe("moveEnded: " + "incorrect number of args: " + args.length + " < 3"); } String currPlayer = args[1]; String action = args[2]; log.info("move-ended for " + currPlayer); if ("pass".equals(action)) { if (args.length != 3) { log.severe("moveEnded: " + "incorrect number of args: " + args.length + " != 3"); return false; } log.info(currPlayer + " passed"); displayMessage(currPlayer + " passed.\n"); return true; } else if ("bomb".equals(action)) { if (args.length != 7) { log.severe("moveEnded: " + "incorrect number of args: " + args.length + " != 7"); return false; } String bombedPlayer = args[3]; BattleBoard board = playerBoards.get(bombedPlayer); if (board == null) { log.severe("nonexistant player (" + bombedPlayer + ")"); return false; } int x = Integer.parseInt(args[4]); int y = Integer.parseInt(args[5]); if ((x < 0) || (x >= myBoard.getWidth()) || (y < 0) || (y >= myBoard.getHeight())) { log.warning("impossible board position " + "(" + x + ", " + y + ")"); return false; } String outcome = args[6]; boolean lost = false; log.info(bombedPlayer + " bombed (" + x + ", " + y + ") with outcome " + outcome); displayMessage(currPlayer + " bombed " + bombedPlayer + "at " + x + "," + y + " with outcome " + outcome + "\n"); if ("HIT".equals(outcome)) { board.update(x, y, BattleBoard.positionValue.CITY); if (bombedPlayer.equals(myName)) { displayMessage("You just lost a city!"); } else { displayMessage(bombedPlayer + " just lost a city."); } } else if ("NEAR".equals(outcome)) { board.update(x, y, BattleBoard.positionValue.NEAR); } else if ("MISS".equals(outcome)) { board.update(x, y, BattleBoard.positionValue.MISS); } else if ("LOSS".equals(outcome)) { board.update(x, y, BattleBoard.positionValue.CITY); if (bombedPlayer.equals(myName)) { youLose = true; } else { playerNames.remove(bombedPlayer); displayMessage(bombedPlayer + " has lost.\n"); } } displayBoards(bombedPlayer); } else { log.severe("moveEnded: invalid command"); return false; } return true; }
|
48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/97b285d557dbcc832a0f6a03b02b6ffb78aa5a4c/BattleBoardPlayer.java/clean/src/com/sun/gi/apps/battleboard/client/BattleBoardPlayer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
3635,
28362,
12,
780,
8526,
833,
13,
288,
202,
430,
261,
14872,
1557,
422,
446,
13,
288,
202,
565,
613,
18,
307,
502,
73,
2932,
542,
15858,
2448,
711,
486,
4671,
2118,
2731,
8863,
202,
565,
327,
629,
31,
202,
97,
202,
430,
261,
1968,
18,
2469,
411,
890,
13,
288,
202,
565,
613,
18,
307,
502,
73,
2932,
8501,
28362,
30,
315,
397,
1082,
565,
315,
267,
6746,
1300,
434,
833,
30,
315,
397,
833,
18,
2469,
397,
315,
411,
890,
8863,
202,
97,
202,
780,
4306,
12148,
273,
833,
63,
21,
15533,
202,
780,
1301,
273,
833,
63,
22,
15533,
202,
1330,
18,
1376,
2932,
8501,
17,
3934,
364,
315,
397,
4306,
12148,
1769,
202,
430,
7566,
5466,
9654,
14963,
12,
1128,
3719,
288,
202,
565,
309,
261,
1968,
18,
2469,
480,
890,
13,
288,
202,
202,
1330,
18,
307,
502,
73,
2932,
8501,
28362,
30,
315,
397,
1082,
202,
6,
267,
6746,
1300,
434,
833,
30,
315,
397,
833,
18,
2469,
397,
315,
480,
890,
8863,
202,
202,
2463,
629,
31,
202,
565,
289,
202,
565,
613,
18,
1376,
12,
17016,
12148,
397,
315,
2275,
8863,
202,
565,
2562,
1079,
12,
17016,
12148,
397,
315,
2275,
8403,
82,
8863,
202,
565,
327,
638,
31,
202,
97,
469,
309,
7566,
70,
16659,
9654,
14963,
12,
1128,
3719,
288,
202,
565,
309,
261,
1968,
18,
2469,
480,
2371,
13,
288,
202,
202,
1330,
18,
307,
502,
73,
2932,
8501,
28362,
30,
315,
397,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3635,
28362,
12,
780,
8526,
833,
13,
288,
202,
430,
261,
14872,
1557,
422,
446,
13,
288,
202,
565,
613,
18,
307,
502,
73,
2932,
542,
15858,
2448,
711,
486,
4671,
2118,
2731,
8863,
202,
565,
327,
629,
31,
202,
97,
202,
430,
261,
1968,
18,
2469,
411,
890,
13,
288,
202,
565,
613,
18,
307,
502,
73,
2932,
8501,
28362,
30,
315,
397,
1082,
565,
315,
267,
6746,
1300,
434,
833,
30,
315,
397,
833,
18,
2469,
397,
315,
411,
890,
8863,
202,
97,
202,
780,
4306,
12148,
273,
833,
63,
21,
15533,
202,
780,
1301,
273,
833,
63,
22,
15533,
202,
1330,
18,
1376,
2932,
8501,
17,
3934,
364,
315,
397,
4306,
12148,
1769,
2
] |
AST tmp512_AST_in = (AST)_t; match(_t,RECORDLENGTH);
|
AST tmp507_AST_in = (AST)_t; match(_t,DATASOURCEMODIFIED);
|
public final void recordfunc(AST _t) throws RecognitionException { AST recordfunc_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AMBIGUOUS: { AST __t1516 = _t; AST tmp504_AST_in = (AST)_t; match(_t,AMBIGUOUS); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1516; _t = _t.getNextSibling(); break; } case AVAILABLE: { AST __t1517 = _t; AST tmp505_AST_in = (AST)_t; match(_t,AVAILABLE); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1517; _t = _t.getNextSibling(); break; } case CURRENTCHANGED: { AST __t1518 = _t; AST tmp506_AST_in = (AST)_t; match(_t,CURRENTCHANGED); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1518; _t = _t.getNextSibling(); break; } case DATASOURCEMODIFIED: { AST __t1519 = _t; AST tmp507_AST_in = (AST)_t; match(_t,DATASOURCEMODIFIED); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1519; _t = _t.getNextSibling(); break; } case ERROR: { AST __t1520 = _t; AST tmp508_AST_in = (AST)_t; match(_t,ERROR); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1520; _t = _t.getNextSibling(); break; } case LOCKED: { AST __t1521 = _t; AST tmp509_AST_in = (AST)_t; match(_t,LOCKED); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1521; _t = _t.getNextSibling(); break; } case NEW: { AST __t1522 = _t; AST tmp510_AST_in = (AST)_t; match(_t,NEW); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1522; _t = _t.getNextSibling(); break; } case RECID: { AST __t1523 = _t; AST tmp511_AST_in = (AST)_t; match(_t,RECID); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1523; _t = _t.getNextSibling(); break; } case RECORDLENGTH: { AST __t1524 = _t; AST tmp512_AST_in = (AST)_t; match(_t,RECORDLENGTH); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1524; _t = _t.getNextSibling(); break; } case REJECTED: { AST __t1525 = _t; AST tmp513_AST_in = (AST)_t; match(_t,REJECTED); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1525; _t = _t.getNextSibling(); break; } case ROWID: { AST __t1526 = _t; AST tmp514_AST_in = (AST)_t; match(_t,ROWID); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1526; _t = _t.getNextSibling(); break; } case ROWSTATE: { AST __t1527 = _t; AST tmp515_AST_in = (AST)_t; match(_t,ROWSTATE); _t = _t.getFirstChild(); recordfunargs(_t); _t = _retTree; _t = __t1527; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1409,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1409,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
7969,
3047,
57,
21667,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3600,
2313,
273,
389,
88,
31,
1082,
202,
9053,
1853,
25,
3028,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
2192,
19044,
57,
21667,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
3366,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
3600,
2313,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
15068,
20027,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3600,
4033,
273,
389,
88,
31,
1082,
202,
9053,
1853,
3361,
25,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
23222,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
3366,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1409,
644,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1409,
644,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
7969,
3047,
57,
21667,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3600,
2313,
273,
389,
88,
31,
1082,
202,
9053,
1853,
25,
3028,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
2192,
19044,
57,
21667,
1769,
1082,
2
] |
httpConnection.getContentLength() == -1
|
httpConnection.getContentLength() == -1
|
protected InputStream readResponse() throws IOException { InputStream contentIn = (isFailure ? httpConnection.getErrorStream() : httpConnection.getInputStream()); ByteArrayBuffer bab = new ByteArrayBuffer(); if(contentIn!=null) { // is this really possible? bab.write(contentIn); bab.close(); } int length = httpConnection.getContentLength() == -1 ? bab.size() : httpConnection.getContentLength(); return bab.newInputStream(0,length); }
|
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/1e4f132eb859087c8d1bc03291b28b121226bdae/HttpClientTransport.java/buggy/jaxws-ri/rt/src/com/sun/xml/ws/transport/http/client/HttpClientTransport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5037,
26694,
1435,
5411,
1216,
1860,
288,
3639,
5037,
913,
382,
273,
7734,
261,
291,
5247,
7734,
692,
1062,
1952,
18,
588,
668,
1228,
1435,
7734,
294,
1062,
1952,
18,
588,
4348,
10663,
3639,
7964,
1892,
324,
378,
273,
394,
7964,
1892,
5621,
3639,
309,
12,
1745,
382,
5,
33,
2011,
13,
288,
368,
353,
333,
8654,
3323,
35,
5411,
324,
378,
18,
2626,
12,
1745,
382,
1769,
5411,
324,
378,
18,
4412,
5621,
3639,
289,
3639,
509,
769,
273,
7734,
1062,
1952,
18,
588,
1350,
1782,
1435,
422,
300,
21,
7734,
692,
324,
378,
18,
1467,
1435,
7734,
294,
1062,
1952,
18,
588,
1350,
1782,
5621,
3639,
327,
324,
378,
18,
2704,
4348,
12,
20,
16,
2469,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
5037,
26694,
1435,
5411,
1216,
1860,
288,
3639,
5037,
913,
382,
273,
7734,
261,
291,
5247,
7734,
692,
1062,
1952,
18,
588,
668,
1228,
1435,
7734,
294,
1062,
1952,
18,
588,
4348,
10663,
3639,
7964,
1892,
324,
378,
273,
394,
7964,
1892,
5621,
3639,
309,
12,
1745,
382,
5,
33,
2011,
13,
288,
368,
353,
333,
8654,
3323,
35,
5411,
324,
378,
18,
2626,
12,
1745,
382,
1769,
5411,
324,
378,
18,
4412,
5621,
3639,
289,
3639,
509,
769,
273,
7734,
1062,
1952,
18,
588,
1350,
1782,
1435,
422,
300,
21,
7734,
692,
324,
378,
18,
1467,
1435,
7734,
294,
1062,
1952,
18,
588,
1350,
1782,
5621,
3639,
327,
324,
378,
18,
2704,
4348,
12,
20,
16,
2
] |
List dependencies = model.getDependencies();
|
DependencyManagement dependencyManagement = model.getDependencyManagement(); dependencies = dependencyManagement != null ? dependencyManagement.getDependencies() : null;
|
private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( model.getParent() != null ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); // Avoid in dep mgmt if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } DependencyManagement dependencyManagement = model.getDependencyManagement(); dependencies = dependencyManagement != null ? dependencyManagement.getDependencies() : null; if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section List plugins = build.getPlugins(); if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); // Avoid in plugin mgmt if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } PluginManagement pluginManagement = build.getPluginManagement(); plugins = pluginManagement != null ? pluginManagement.getPlugins() : null; if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } //Rewrite extensions section List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( ext.getGroupId(), ext.getArtifactId() ); if ( resolvedVersion != null ) { ext.setVersion( resolvedVersion ); } } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
|
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/625596d32f1138e016cf983748dd893bd640133a/PrepareReleaseMojo.java/buggy/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2510,
52,
362,
774,
7391,
1444,
52,
362,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
52,
1872,
67,
16596,
7473,
25773,
67,
7473,
67,
30762,
262,
262,
3639,
288,
5411,
309,
261,
401,
291,
4568,
12,
1984,
18,
588,
1444,
1435,
262,
262,
5411,
288,
7734,
604,
394,
18780,
12,
315,
1986,
1984,
315,
397,
1984,
18,
588,
8722,
1435,
397,
6153,
397,
10792,
1984,
18,
588,
7581,
548,
1435,
397,
315,
5177,
1404,
279,
4439,
7566,
397,
1984,
18,
588,
1444,
1435,
397,
9369,
1199,
11272,
5411,
289,
5411,
3164,
938,
273,
1984,
18,
588,
8176,
1488,
5621,
5411,
368,
19618,
982,
1177,
5411,
309,
261,
938,
18,
588,
3054,
1435,
480,
446,
262,
5411,
288,
7734,
14022,
982,
7581,
273,
1984,
18,
588,
3054,
7581,
5621,
7734,
309,
261,
353,
4568,
12,
982,
7581,
18,
588,
2171,
1444,
1435,
262,
262,
7734,
288,
10792,
514,
1177,
273,
2245,
1444,
12,
982,
7581,
16,
315,
2938,
3113,
1984,
11272,
10792,
938,
18,
588,
3054,
7675,
542,
1444,
12,
1177,
11272,
7734,
289,
5411,
289,
5411,
368,
19618,
5030,
2442,
6647,
11993,
10998,
4904,
10998,
273,
938,
18,
588,
7787,
10998,
5621,
5030,
273,
4904,
10998,
480,
446,
692,
4904,
10998,
18,
588,
8053,
1435,
294,
446,
31,
5411,
309,
261,
5030,
480,
446,
262,
5411,
288,
7734,
364,
261,
4498,
277,
273,
5030,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2510,
52,
362,
774,
7391,
1444,
52,
362,
12,
17176,
4109,
1984,
262,
3639,
1216,
18780,
565,
288,
3639,
309,
261,
401,
588,
7391,
5491,
7675,
8705,
14431,
12,
10819,
5491,
8135,
18,
4258,
67,
52,
1872,
67,
16596,
7473,
25773,
67,
7473,
67,
30762,
262,
262,
3639,
288,
5411,
309,
261,
401,
291,
4568,
12,
1984,
18,
588,
1444,
1435,
262,
262,
5411,
288,
7734,
604,
394,
18780,
12,
315,
1986,
1984,
315,
397,
1984,
18,
588,
8722,
1435,
397,
6153,
397,
10792,
1984,
18,
588,
7581,
548,
1435,
397,
315,
5177,
1404,
279,
4439,
7566,
397,
1984,
18,
588,
1444,
1435,
397,
9369,
1199,
11272,
5411,
289,
5411,
3164,
938,
273,
1984,
18,
588,
2
] |
public void handleElement(Lexer lexer) {
|
public void handleElement(Lexer lexer, final int state) {
|
public void handleElement(Lexer lexer) { if (!hasSeenStyle() && !hasSeenScript() || hasNoEmbeddments) return; final IElementType tokenType = lexer.getTokenType(); if ((tokenType==XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN && hasSeenAttribute()) || (tokenType==XmlTokenType.XML_DATA_CHARACTERS && hasSeenTag()) || tokenType==XmlTokenType.XML_COMMENT_CHARACTERS && hasSeenTag() ) { setEmbeddedLexer(); if (embeddedLexer!=null) { embeddedLexer.start(getBuffer(),HtmlHighlightingLexer.super.getTokenStart(),skipToTheEndOfTheEmbeddment()); } } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/a63526f49b61ea0513bbc54301db43ed306c4182/HtmlHighlightingLexer.java/buggy/source/com/intellij/lexer/HtmlHighlightingLexer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1640,
1046,
12,
13356,
8512,
16,
727,
509,
919,
13,
288,
1377,
309,
16051,
5332,
15160,
2885,
1435,
597,
401,
5332,
15160,
3651,
1435,
747,
711,
2279,
9538,
72,
1346,
13,
327,
31,
1377,
727,
467,
17481,
22302,
273,
8512,
18,
588,
28675,
5621,
1377,
309,
14015,
2316,
559,
631,
4432,
28675,
18,
4201,
67,
11616,
67,
4051,
67,
8412,
597,
711,
15160,
1499,
10756,
747,
1850,
261,
2316,
559,
631,
4432,
28675,
18,
4201,
67,
4883,
67,
7305,
6526,
11367,
597,
711,
15160,
1805,
10756,
747,
1850,
22302,
631,
4432,
28675,
18,
4201,
67,
12200,
67,
7305,
6526,
11367,
597,
711,
15160,
1805,
1435,
1850,
262,
288,
3639,
444,
14980,
13356,
5621,
3639,
309,
261,
20722,
13356,
5,
33,
2011,
13,
288,
1850,
7488,
13356,
18,
1937,
12,
588,
1892,
9334,
4353,
16205,
310,
13356,
18,
9565,
18,
588,
1345,
1685,
9334,
7457,
774,
1986,
23358,
1986,
9538,
72,
475,
10663,
3639,
289,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1640,
1046,
12,
13356,
8512,
16,
727,
509,
919,
13,
288,
1377,
309,
16051,
5332,
15160,
2885,
1435,
597,
401,
5332,
15160,
3651,
1435,
747,
711,
2279,
9538,
72,
1346,
13,
327,
31,
1377,
727,
467,
17481,
22302,
273,
8512,
18,
588,
28675,
5621,
1377,
309,
14015,
2316,
559,
631,
4432,
28675,
18,
4201,
67,
11616,
67,
4051,
67,
8412,
597,
711,
15160,
1499,
10756,
747,
1850,
261,
2316,
559,
631,
4432,
28675,
18,
4201,
67,
4883,
67,
7305,
6526,
11367,
597,
711,
15160,
1805,
10756,
747,
1850,
22302,
631,
4432,
28675,
18,
4201,
67,
12200,
67,
7305,
6526,
11367,
597,
711,
15160,
1805,
1435,
1850,
262,
288,
3639,
444,
14980,
13356,
5621,
3639,
309,
261,
2
] |
if (instance ==null) { instance= new Lookup(); } return (instance); }
|
if (instance == null) { instance = new Lookup(); } return (instance); }
|
public static Lookup getInstance() { if (instance ==null) { instance= new Lookup(); } return (instance); }
|
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/d2255fbe86a662c3d5768854411509915a7f3e00/Lookup.java/buggy/freehep-graphics2d/src/main/java/org/freehep/graphics2d/font/Lookup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
8834,
3694,
1435,
288,
202,
202,
430,
261,
1336,
422,
2011,
13,
288,
1082,
202,
1336,
33,
394,
8834,
5621,
202,
202,
97,
202,
202,
2463,
261,
1336,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8834,
3694,
1435,
288,
202,
202,
430,
261,
1336,
422,
2011,
13,
288,
1082,
202,
1336,
33,
394,
8834,
5621,
202,
202,
97,
202,
202,
2463,
261,
1336,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_useGuillemots = createCheckBox("label.use-guillemots");
|
_useGuillemots = createCheckBox("label.use-guillemots");
|
public SettingsTabNotation() { super(); setLayout(new BorderLayout()); JPanel top = new JPanel(); top.setLayout(new GridBagLayout()); GridBagConstraints constraints = new GridBagConstraints(); constraints.anchor = GridBagConstraints.WEST; constraints.fill = GridBagConstraints.HORIZONTAL; constraints.gridy = 0; constraints.gridx = 0; constraints.gridwidth = 1; constraints.gridheight = 1; constraints.weightx = 1.0; constraints.insets = new Insets(0, 30, 0, 4); constraints.gridy = 0; _allowNotations = createCheckBox("label.uml-notation-only"); top.add(_allowNotations, constraints); constraints.gridy = 1; _useGuillemots = createCheckBox("label.use-guillemots"); top.add(_useGuillemots, constraints); // 2002-07-31 // Jaap Branderhorst // from here made visibility etc. configurable constraints.gridy = 2; _showVisibility = createCheckBox("label.show-visibility"); top.add(_showVisibility, constraints); constraints.gridy = 3; _showMultiplicity = createCheckBox("label.show-multiplicity"); top.add(_showMultiplicity, constraints); constraints.gridy = 4; _showInitialValue = createCheckBox("label.show-initialvalue"); top.add(_showInitialValue, constraints); constraints.gridy = 5; _showProperties = createCheckBox("label.show-properties"); top.add(_showProperties, constraints); constraints.gridy = 6; _showStereotypes = createCheckBox("label.show-stereotypes"); top.add(_showStereotypes, constraints); constraints.gridy = 7; constraints.insets = new Insets(5, 30, 0, 4); JPanel defaultShadowWidthPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 5, 0)); JLabel defaultShadowWidthLabel = createLabel("label.default-shadow-width"); _defaultShadowWidth = new JTextField(5); defaultShadowWidthLabel.setLabelFor(_defaultShadowWidth); defaultShadowWidthPanel.add(defaultShadowWidthLabel); defaultShadowWidthPanel.add(_defaultShadowWidth); top.add(defaultShadowWidthPanel, constraints); add(top, BorderLayout.NORTH); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/SettingsTabNotation.java/clean/src_new/org/argouml/language/ui/SettingsTabNotation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8709,
5661,
14818,
1435,
288,
565,
2240,
5621,
565,
18479,
12,
2704,
30814,
10663,
202,
46,
5537,
1760,
273,
394,
24048,
5621,
6647,
1760,
18,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
225,
202,
6313,
6852,
6237,
273,
394,
13075,
5621,
202,
11967,
18,
16215,
273,
13075,
18,
31285,
31,
565,
6237,
18,
5935,
273,
13075,
18,
44,
20344,
31,
202,
11967,
18,
5222,
93,
273,
374,
31,
202,
11967,
18,
5222,
92,
273,
374,
31,
202,
11967,
18,
5222,
2819,
273,
404,
31,
202,
11967,
18,
5222,
4210,
273,
404,
31,
565,
6237,
18,
4865,
92,
273,
404,
18,
20,
31,
202,
11967,
18,
267,
4424,
273,
394,
22300,
12,
20,
16,
5196,
16,
374,
16,
1059,
1769,
202,
11967,
18,
5222,
93,
273,
374,
31,
565,
389,
5965,
1248,
1012,
273,
752,
19174,
2932,
1925,
18,
22192,
17,
1819,
17,
3700,
8863,
202,
3669,
18,
1289,
24899,
5965,
1248,
1012,
16,
6237,
1769,
202,
11967,
18,
5222,
93,
273,
404,
31,
565,
389,
1202,
6099,
330,
3269,
6968,
273,
752,
19174,
2932,
1925,
18,
1202,
17,
6891,
330,
3269,
6968,
8863,
202,
3669,
18,
1289,
24899,
1202,
6099,
330,
3269,
6968,
16,
6237,
1769,
3639,
368,
4044,
22,
17,
8642,
17,
6938,
565,
368,
804,
69,
438,
605,
7884,
264,
76,
280,
334,
565,
368,
628,
2674,
7165,
9478,
5527,
18,
14593,
3639,
6237,
18,
5222,
93,
273,
576,
31,
565,
389,
4500,
10135,
273,
752,
19174,
2932,
1925,
18,
4500,
17,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8709,
5661,
14818,
1435,
288,
565,
2240,
5621,
565,
18479,
12,
2704,
30814,
10663,
202,
46,
5537,
1760,
273,
394,
24048,
5621,
6647,
1760,
18,
542,
3744,
12,
2704,
7145,
5013,
3744,
10663,
225,
202,
6313,
6852,
6237,
273,
394,
13075,
5621,
202,
11967,
18,
16215,
273,
13075,
18,
31285,
31,
565,
6237,
18,
5935,
273,
13075,
18,
44,
20344,
31,
202,
11967,
18,
5222,
93,
273,
374,
31,
202,
11967,
18,
5222,
92,
273,
374,
31,
202,
11967,
18,
5222,
2819,
273,
404,
31,
202,
11967,
18,
5222,
4210,
273,
404,
31,
565,
6237,
18,
4865,
92,
273,
404,
18,
20,
31,
202,
11967,
18,
267,
4424,
273,
394,
22300,
12,
20,
16,
5196,
16,
374,
2
] |
} else if ( StyleHandle.TEXT_ALIGN_PROP.equals( property ) ) {
|
} else if (StyleHandle.TEXT_ALIGN_PROP.equals(property)) {
|
public static IChoiceSet getDEChoiceSet( String property ) { String unitKey = DesignChoiceConstants.CHOICE_UNITS; if ( AttributeConstant.BACKGROUND_COLOR.equals( property ) ) { unitKey = IColorConstants.COLORS_CHOICE_SET; } else if ( AttributeConstant.FONT_COLOR.equals( property ) ) { unitKey = IColorConstants.COLORS_CHOICE_SET; } else if ( AttributeConstant.FONT_SIZE.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_FONT_SIZE; } else if ( AttributeConstant.FONT_FAMILY.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_FONT_FAMILY; } else if ( AttributeConstant.TEXT_FORMAT.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_TEXT_CONTENT_TYPE; } else if ( AttributeConstant.BORDER_STYLE.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_LINE_STYLE; } else if ( AttributeConstant.BORDER_WIDTH.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_LINE_WIDTH; } else if ( SortKey.DIRECTION_MEMBER.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_SORT_DIRECTION; } else if ( FilterCondition.OPERATOR_MEMBER.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_FILTER_OPERATOR; } else if ( StyleHandle.VERTICAL_ALIGN_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_VERTICAL_ALIGN; } else if ( StyleHandle.TEXT_ALIGN_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_TEXT_ALIGN; } else if ( MasterPageHandle.ORIENTATION_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_PAGE_ORIENTATION; } else if ( MasterPageHandle.TYPE_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_PAGE_SIZE; } else if ( GroupHandle.INTERVAL_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_INTERVAL; } else if ( StyleHandle.PAGE_BREAK_BEFORE_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK; } else if ( StyleHandle.PAGE_BREAK_AFTER_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK; } else if ( StyleHandle.PAGE_BREAK_INSIDE_PROP.equals( property ) ) { unitKey = DesignChoiceConstants.CHOICE_PAGE_BREAK_INSIDE; } return DesignEngine.getMetaDataDictionary( ).getChoiceSet( unitKey ); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/4d78f7686771fae0403ed68a06a850b0f45d97fa/ChoiceSetFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/views/attributes/providers/ChoiceSetFactory.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
467,
10538,
694,
336,
1639,
10538,
694,
12,
514,
1272,
262,
202,
95,
202,
202,
780,
2836,
653,
273,
29703,
10538,
2918,
18,
22213,
11774,
67,
24325,
31,
202,
202,
430,
261,
3601,
6902,
18,
8720,
20166,
67,
10989,
18,
14963,
12,
1272,
262,
262,
202,
202,
95,
1082,
202,
4873,
653,
273,
467,
2957,
2918,
18,
10989,
55,
67,
22213,
11774,
67,
4043,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
3601,
6902,
18,
25221,
67,
10989,
18,
14963,
12,
1272,
262,
262,
202,
202,
95,
1082,
202,
4873,
653,
273,
467,
2957,
2918,
18,
10989,
55,
67,
22213,
11774,
67,
4043,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
3601,
6902,
18,
25221,
67,
4574,
18,
14963,
12,
1272,
262,
262,
202,
202,
95,
1082,
202,
4873,
653,
273,
29703,
10538,
2918,
18,
22213,
11774,
67,
25221,
67,
4574,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
3601,
6902,
18,
25221,
67,
25002,
25554,
18,
14963,
12,
1272,
262,
262,
202,
202,
95,
1082,
202,
4873,
653,
273,
29703,
10538,
2918,
18,
22213,
11774,
67,
25221,
67,
25002,
25554,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
3601,
6902,
18,
5151,
67,
7254,
18,
14963,
12,
1272,
262,
262,
202,
202,
95,
1082,
202,
4873,
653,
273,
29703,
10538,
2918,
18,
22213,
11774,
67,
5151,
67,
9689,
67,
2399,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
3601,
6902,
18,
38,
7954,
67,
15066,
18,
14963,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
10538,
694,
336,
1639,
10538,
694,
12,
514,
1272,
262,
202,
95,
202,
202,
780,
2836,
653,
273,
29703,
10538,
2918,
18,
22213,
11774,
67,
24325,
31,
202,
202,
430,
261,
3601,
6902,
18,
8720,
20166,
67,
10989,
18,
14963,
12,
1272,
262,
262,
202,
202,
95,
1082,
202,
4873,
653,
273,
467,
2957,
2918,
18,
10989,
55,
67,
22213,
11774,
67,
4043,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
3601,
6902,
18,
25221,
67,
10989,
18,
14963,
12,
1272,
262,
262,
202,
202,
95,
1082,
202,
4873,
653,
273,
467,
2957,
2918,
18,
10989,
55,
67,
22213,
11774,
67,
4043,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
3601,
6902,
2
] |
pt += 2; int compSize = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int planeBytes = DataTools.bytesToInt(bytes, pt, 4, little); pt += 4; int pmTable = DataTools.bytesToInt(bytes, pt, 4, little); pt += 4; pt += 4;
|
pt += 16;
|
private void handlePixmap(int opcode) throws FormatException { if (DEBUG) System.out.println("PictReader.handlePixmap(" + opcode + ")"); int pixelSize; int compCount; // handle 9A variation if (opcode == PICT_9A) { // this is the only opcode that holds 16, 24, and 32 bit data // read the pixmap (9A) pt += 4; // skip fake length and fake EOF int version = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; // read the bounding box int tlY = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int tlX = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int brY = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int brX = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; pt += 2; // undocumented extra short in the data structure int packType = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int packSize = DataTools.bytesToInt(bytes, pt, 4, little); pt += 4; int hRes = DataTools.bytesToInt(bytes, pt, 4, little); pt += 4; int vRes = DataTools.bytesToInt(bytes, pt, 4, little); pt += 4; int pixelType = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; pixelSize = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; compCount = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int compSize = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int planeBytes = DataTools.bytesToInt(bytes, pt, 4, little); pt += 4; int pmTable = DataTools.bytesToInt(bytes, pt, 4, little); pt += 4; pt += 4; // reserved width = brX - tlX; height = brY - tlY; // rowBytes doesn't exist, so set it to its logical value switch (pixelSize) { case 32: rowBytes = width * compCount; break; case 16: rowBytes = width * 2; break; default: throw new FormatException("Sorry, vector data not supported."); } } else { rowBytes &= 0x3fff; // mask off flags int tlY = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int tlX = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int brY = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int brX = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; // unnecessary data pt += 18; pixelSize = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; compCount = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; // unnecessary data pt += 14; // read the lookup table pt += 2; int id = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int flags = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; int count = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; count++; lookup = new short[3][count]; for (int i=0; i<count; i++) { int index = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; if ((flags & 0x8000) != 0) index = i; lookup[0][index] = DataTools.bytesToShort(bytes, pt, 2, little); pt += 2; lookup[1][index] = DataTools.bytesToShort(bytes, pt, 2, little); pt += 2; lookup[2][index] = DataTools.bytesToShort(bytes, pt, 2, little); pt += 2; } width = brX - tlX; height = brY - tlY; } // skip over two rectangles pt += 16; int mode = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; if (opcode == PICT_BITSRGN || opcode == PICT_PACKBITSRGN) { int x = DataTools.bytesToInt(bytes, pt, 2, little); pt += 2; } handlePixmap(rowBytes, pixelSize, compCount); }
|
49800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49800/e0a37d81984d3f8644766797667b83e48df719e3/PictReader.java/buggy/loci/formats/in/PictReader.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1640,
21816,
1458,
12,
474,
11396,
13,
1216,
4077,
503,
288,
565,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
52,
933,
2514,
18,
4110,
21816,
1458,
2932,
397,
11396,
397,
7310,
1769,
565,
509,
4957,
1225,
31,
565,
509,
1161,
1380,
31,
565,
368,
1640,
2468,
37,
14761,
565,
309,
261,
556,
710,
422,
7024,
1268,
67,
29,
37,
13,
288,
1377,
368,
333,
353,
326,
1338,
11396,
716,
14798,
2872,
16,
4248,
16,
471,
3847,
2831,
501,
1377,
368,
855,
326,
11871,
1458,
261,
29,
37,
13,
1377,
5818,
1011,
1059,
31,
368,
2488,
10517,
769,
471,
10517,
6431,
1377,
509,
1177,
273,
1910,
10348,
18,
3890,
17864,
12,
3890,
16,
5818,
16,
576,
16,
12720,
1769,
1377,
5818,
1011,
576,
31,
1377,
368,
855,
326,
7552,
3919,
1377,
509,
8332,
61,
273,
1910,
10348,
18,
3890,
17864,
12,
3890,
16,
5818,
16,
576,
16,
12720,
1769,
1377,
5818,
1011,
576,
31,
1377,
509,
8332,
60,
273,
1910,
10348,
18,
3890,
17864,
12,
3890,
16,
5818,
16,
576,
16,
12720,
1769,
1377,
5818,
1011,
576,
31,
1377,
509,
5186,
61,
273,
1910,
10348,
18,
3890,
17864,
12,
3890,
16,
5818,
16,
576,
16,
12720,
1769,
1377,
5818,
1011,
576,
31,
1377,
509,
5186,
60,
273,
1910,
10348,
18,
3890,
17864,
12,
3890,
16,
5818,
16,
576,
16,
12720,
1769,
1377,
5818,
1011,
576,
31,
1377,
5818,
1011,
576,
31,
368,
640,
5457,
329,
2870,
3025,
316,
326,
501,
3695,
1377,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1640,
21816,
1458,
12,
474,
11396,
13,
1216,
4077,
503,
288,
565,
309,
261,
9394,
13,
2332,
18,
659,
18,
8222,
2932,
52,
933,
2514,
18,
4110,
21816,
1458,
2932,
397,
11396,
397,
7310,
1769,
565,
509,
4957,
1225,
31,
565,
509,
1161,
1380,
31,
565,
368,
1640,
2468,
37,
14761,
565,
309,
261,
556,
710,
422,
7024,
1268,
67,
29,
37,
13,
288,
1377,
368,
333,
353,
326,
1338,
11396,
716,
14798,
2872,
16,
4248,
16,
471,
3847,
2831,
501,
1377,
368,
855,
326,
11871,
1458,
261,
29,
37,
13,
1377,
5818,
1011,
1059,
31,
368,
2488,
10517,
769,
471,
10517,
6431,
1377,
509,
1177,
273,
1910,
10348,
18,
3890,
17864,
12,
3890,
16,
5818,
2
] |
if (PsiUtil.isInJspFile(element) && element instanceof PsiFile) {
|
if (isInJspFile(element) && element instanceof PsiFile) {
|
public static PsiElement getTopLevelEnclosingCodeBlock(PsiElement element, PsiElement scope) { PsiElement blockSoFar = null; while (element != null) { // variable can be defined in for loop initializer if (element instanceof PsiCodeBlock || element instanceof PsiForStatement || element instanceof PsiForeachStatement) { blockSoFar = element; } final PsiElement parent = element.getParent(); if (parent instanceof PsiMethod && parent.getParent() instanceof PsiClass && !isLocalOrAnonymousClass((PsiClass)parent.getParent())) break; if (parent instanceof PsiClassInitializer && !(parent.getParent() instanceof PsiAnonymousClass)) break; if (parent instanceof PsiField && ((PsiField) parent).getInitializer() == element) { blockSoFar = element; } if (element instanceof PsiClass && !isLocalOrAnonymousClass((PsiClass)element)) { break; } if (PsiUtil.isInJspFile(element) && element instanceof PsiFile) { return element; } if (element == scope) break; element = parent; } return blockSoFar; }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/d865dc22b1db3caf4478edb3ebed5284579c9474/PsiUtil.java/clean/openapi/src/com/intellij/psi/util/PsiUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
453,
7722,
1046,
13729,
2355,
21594,
1085,
1768,
12,
52,
7722,
1046,
930,
16,
453,
7722,
1046,
2146,
13,
288,
565,
453,
7722,
1046,
1203,
26619,
273,
446,
31,
565,
1323,
261,
2956,
480,
446,
13,
288,
1377,
368,
2190,
848,
506,
2553,
316,
364,
2798,
12562,
1377,
309,
261,
2956,
1276,
453,
7722,
1085,
1768,
747,
930,
1276,
453,
7722,
1290,
3406,
747,
930,
1276,
453,
7722,
13573,
497,
3406,
13,
288,
3639,
1203,
26619,
273,
930,
31,
1377,
289,
1377,
727,
453,
7722,
1046,
982,
273,
930,
18,
588,
3054,
5621,
1377,
309,
261,
2938,
1276,
453,
7722,
1305,
1850,
597,
982,
18,
588,
3054,
1435,
1276,
453,
7722,
797,
1850,
597,
401,
291,
2042,
1162,
18792,
797,
12443,
52,
7722,
797,
13,
2938,
18,
588,
3054,
1435,
3719,
3639,
898,
31,
1377,
309,
261,
2938,
1276,
453,
7722,
797,
14729,
597,
401,
12,
2938,
18,
588,
3054,
1435,
1276,
453,
7722,
18792,
797,
3719,
898,
31,
1377,
309,
261,
2938,
1276,
453,
7722,
974,
597,
14015,
52,
7722,
974,
13,
982,
2934,
588,
14729,
1435,
422,
930,
13,
288,
3639,
1203,
26619,
273,
930,
31,
1377,
289,
1377,
309,
261,
2956,
1276,
453,
7722,
797,
597,
401,
291,
2042,
1162,
18792,
797,
12443,
52,
7722,
797,
13,
2956,
3719,
288,
3639,
898,
31,
1377,
289,
1377,
309,
261,
291,
382,
21796,
812,
12,
2956,
13,
597,
930,
1276,
453,
7722,
812,
13,
288,
3639,
327,
930,
31,
1377,
289,
1377,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
453,
7722,
1046,
13729,
2355,
21594,
1085,
1768,
12,
52,
7722,
1046,
930,
16,
453,
7722,
1046,
2146,
13,
288,
565,
453,
7722,
1046,
1203,
26619,
273,
446,
31,
565,
1323,
261,
2956,
480,
446,
13,
288,
1377,
368,
2190,
848,
506,
2553,
316,
364,
2798,
12562,
1377,
309,
261,
2956,
1276,
453,
7722,
1085,
1768,
747,
930,
1276,
453,
7722,
1290,
3406,
747,
930,
1276,
453,
7722,
13573,
497,
3406,
13,
288,
3639,
1203,
26619,
273,
930,
31,
1377,
289,
1377,
727,
453,
7722,
1046,
982,
273,
930,
18,
588,
3054,
5621,
1377,
309,
261,
2938,
1276,
453,
7722,
1305,
1850,
597,
982,
18,
588,
3054,
1435,
1276,
453,
7722,
797,
1850,
597,
401,
291,
2
] |
add(new ChannelConnectFilter (Character.TYPE));
|
public void init () { add(new CharGenerator(".....Hello World!.....\0")); add(new SplitJoin() { public void init() { setSplitter(ROUND_ROBIN ()); add(new ChannelConnectFilter (Character.TYPE)); add(new XORLoop()); //add(new ChannelConnectFilter (Character.TYPE)); //add(new ChannelConnectFilter (Character.TYPE)); setJoiner(ROUND_ROBIN()); } }); add(new BufferedCharPrinter()); }
|
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/e020a259a5091cc0e7423e713b93492625870efc/HelloWorld3.java/buggy/streams/apps/tests/hello-splits/HelloWorld3.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1208,
1832,
565,
288,
3639,
527,
12,
2704,
3703,
3908,
2932,
838,
2777,
18601,
21820,
5,
838,
2777,
64,
20,
7923,
1769,
3639,
527,
12,
2704,
5385,
4572,
1435,
5411,
288,
7734,
1071,
918,
1208,
1435,
7734,
288,
10792,
444,
26738,
12,
15092,
67,
1457,
12615,
1832,
1769,
4766,
4202,
527,
12,
2704,
28086,
6452,
10663,
10792,
368,
10402,
368,
10402,
444,
4572,
264,
12,
15092,
67,
1457,
12615,
10663,
7734,
289,
5411,
15549,
3639,
527,
12,
2704,
5987,
2156,
12149,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1208,
1832,
565,
288,
3639,
527,
12,
2704,
3703,
3908,
2932,
838,
2777,
18601,
21820,
5,
838,
2777,
64,
20,
7923,
1769,
3639,
527,
12,
2704,
5385,
4572,
1435,
5411,
288,
7734,
1071,
918,
1208,
1435,
7734,
288,
10792,
444,
26738,
12,
15092,
67,
1457,
12615,
1832,
1769,
4766,
4202,
527,
12,
2704,
28086,
6452,
10663,
10792,
368,
10402,
368,
10402,
444,
4572,
264,
12,
15092,
67,
1457,
12615,
10663,
7734,
289,
5411,
15549,
3639,
527,
12,
2704,
5987,
2156,
12149,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
private String pop(SortedSet set) {
|
private String pop(Set set) {
|
private String pop(SortedSet set) { synchronized(set) { if (set.isEmpty()) return null; else { String result = (String) set.first(); set.remove(result); return result; } } }
|
5494 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5494/488375b3750dc70971cb086fad798d28df6001d8/DataRepository.java/clean/processdash/src/net/sourceforge/processdash/data/repository/DataRepository.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
3238,
514,
1843,
12,
694,
444,
13,
288,
7734,
3852,
12,
542,
13,
288,
10792,
309,
261,
542,
18,
291,
1921,
10756,
13491,
327,
446,
31,
10792,
469,
288,
13491,
514,
563,
273,
261,
780,
13,
444,
18,
3645,
5621,
13491,
444,
18,
4479,
12,
2088,
1769,
13491,
327,
563,
31,
10792,
289,
7734,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
3238,
514,
1843,
12,
694,
444,
13,
288,
7734,
3852,
12,
542,
13,
288,
10792,
309,
261,
542,
18,
291,
1921,
10756,
13491,
327,
446,
31,
10792,
469,
288,
13491,
514,
563,
273,
261,
780,
13,
444,
18,
3645,
5621,
13491,
444,
18,
4479,
12,
2088,
1769,
13491,
327,
563,
31,
10792,
289,
7734,
289,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public org.quickfix.field.SymbolSfx getSymbolSfx() throws FieldNotFound { org.quickfix.field.SymbolSfx value = new org.quickfix.field.SymbolSfx();
|
public quickfix.field.SymbolSfx getSymbolSfx() throws FieldNotFound { quickfix.field.SymbolSfx value = new quickfix.field.SymbolSfx();
|
public org.quickfix.field.SymbolSfx getSymbolSfx() throws FieldNotFound { org.quickfix.field.SymbolSfx value = new org.quickfix.field.SymbolSfx(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/DerivativeSecurityList.java/clean/src/java/src/quickfix/fix43/DerivativeSecurityList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
18712,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
18712,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
5335,
55,
19595,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
soapBindingStyle = javax.jws.soap.SOAPBinding.Style.DOCUMENT;
|
soapBindingStyle = SOAPBinding_Style_DEFAULT;
|
public javax.jws.soap.SOAPBinding.Style getSoapBindingStyle() { if (soapBindingStyle == null) { if (getSoapBinding() != null && getSoapBinding().style() != null) { soapBindingStyle = getSoapBinding().style(); } else { soapBindingStyle = javax.jws.soap.SOAPBinding.Style.DOCUMENT; } } return soapBindingStyle; }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/35818ee1647acce4bda75c03f272424706c8b142/EndpointInterfaceDescription.java/clean/modules/jaxws/src/org/apache/axis2/jaxws/description/EndpointInterfaceDescription.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6863,
18,
78,
4749,
18,
19215,
18,
27952,
5250,
18,
2885,
1322,
83,
438,
5250,
2885,
1435,
288,
3639,
309,
261,
19215,
5250,
2885,
422,
446,
13,
288,
5411,
309,
261,
588,
20601,
5250,
1435,
480,
446,
597,
1322,
83,
438,
5250,
7675,
4060,
1435,
480,
446,
13,
288,
7734,
9930,
5250,
2885,
273,
1322,
83,
438,
5250,
7675,
4060,
5621,
5411,
289,
5411,
469,
288,
7734,
9930,
5250,
2885,
273,
16434,
5250,
67,
2885,
67,
5280,
31,
5411,
289,
3639,
289,
3639,
327,
9930,
5250,
2885,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6863,
18,
78,
4749,
18,
19215,
18,
27952,
5250,
18,
2885,
1322,
83,
438,
5250,
2885,
1435,
288,
3639,
309,
261,
19215,
5250,
2885,
422,
446,
13,
288,
5411,
309,
261,
588,
20601,
5250,
1435,
480,
446,
597,
1322,
83,
438,
5250,
7675,
4060,
1435,
480,
446,
13,
288,
7734,
9930,
5250,
2885,
273,
1322,
83,
438,
5250,
7675,
4060,
5621,
5411,
289,
5411,
469,
288,
7734,
9930,
5250,
2885,
273,
16434,
5250,
67,
2885,
67,
5280,
31,
5411,
289,
3639,
289,
3639,
327,
9930,
5250,
2885,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private void processDatasetElement(Element dataset, BESCrawlableDataset s4c) { // Process name String path = besPath2ThreddsPath(dataset.getChild("name").getTextTrim()); s4c._name = getNameFromPath(path); //s4c._name = s4c._name.equals("/") ? "" : s4c._name; // Process size s4c._size = Integer.parseInt(dataset.getChild("size").getTextTrim()); // process date and time String date = dataset.getChild("lastmodified").getChild("date").getTextTrim(); String time = dataset.getChild("lastmodified").getChild("time").getTextTrim(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z"); s4c._lastModified = sdf.parse(date + " " + time+" UTC", new ParsePosition(0)); // Process collection (if it is one) String isCollection = dataset.getAttributeValue("thredds_collection"); if (isCollection.equalsIgnoreCase("true")) { s4c._isCollection = true; s4c._childDatasetElements = dataset.getChildren("dataset"); } s4c._haveInfo = true; }
|
1283 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1283/0c1942eeb3e088442228905e21288db4851f7eba/BESCrawlableDataset.java/clean/src/opendap/olfs/BESCrawlableDataset.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
10656,
1046,
12,
1046,
3709,
16,
9722,
2312,
15161,
429,
10656,
272,
24,
71,
13,
288,
3639,
368,
4389,
508,
3639,
514,
589,
273,
324,
281,
743,
22,
1315,
266,
449,
87,
743,
12,
8682,
18,
588,
1763,
2932,
529,
20387,
588,
1528,
14795,
10663,
3639,
272,
24,
71,
6315,
529,
273,
1723,
23064,
12,
803,
1769,
3639,
368,
87,
24,
71,
6315,
529,
273,
272,
24,
71,
6315,
529,
18,
14963,
2932,
4898,
13,
692,
1408,
294,
272,
24,
71,
6315,
529,
31,
3639,
368,
4389,
963,
3639,
272,
24,
71,
6315,
1467,
273,
2144,
18,
2670,
1702,
12,
8682,
18,
588,
1763,
2932,
1467,
20387,
588,
1528,
14795,
10663,
3639,
368,
1207,
1509,
471,
813,
3639,
514,
1509,
273,
3709,
18,
588,
1763,
2932,
2722,
7342,
20387,
588,
1763,
2932,
712,
20387,
588,
1528,
14795,
5621,
3639,
514,
813,
273,
3709,
18,
588,
1763,
2932,
2722,
7342,
20387,
588,
1763,
2932,
957,
20387,
588,
1528,
14795,
5621,
3639,
17005,
31789,
273,
394,
17005,
2932,
17722,
17,
8206,
17,
449,
20842,
30,
7020,
30,
1049,
998,
8863,
7734,
272,
24,
71,
6315,
2722,
4575,
273,
31789,
18,
2670,
12,
712,
397,
315,
315,
397,
813,
9078,
9951,
3113,
394,
2884,
2555,
12,
20,
10019,
3639,
368,
4389,
1849,
261,
430,
518,
353,
1245,
13,
3639,
514,
26506,
273,
3709,
18,
588,
14942,
2932,
451,
266,
449,
87,
67,
5548,
8863,
3639,
309,
261,
291,
2532,
18,
14963,
5556,
2932,
3767,
6,
3719,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
10656,
1046,
12,
1046,
3709,
16,
9722,
2312,
15161,
429,
10656,
272,
24,
71,
13,
288,
3639,
368,
4389,
508,
3639,
514,
589,
273,
324,
281,
743,
22,
1315,
266,
449,
87,
743,
12,
8682,
18,
588,
1763,
2932,
529,
20387,
588,
1528,
14795,
10663,
3639,
272,
24,
71,
6315,
529,
273,
1723,
23064,
12,
803,
1769,
3639,
368,
87,
24,
71,
6315,
529,
273,
272,
24,
71,
6315,
529,
18,
14963,
2932,
4898,
13,
692,
1408,
294,
272,
24,
71,
6315,
529,
31,
3639,
368,
4389,
963,
3639,
272,
24,
71,
6315,
1467,
273,
2144,
18,
2670,
1702,
12,
8682,
18,
588,
1763,
2932,
1467,
20387,
588,
1528,
14795,
10663,
3639,
368,
1207,
1509,
2
] |
||
if (this.counts[1][0] >= this.counts[1][1]){
|
if (this.counts[1][0] > this.counts[1][1]){
|
public String getOverTransmittedAllele(int type) { String[] alleleCodes = new String[5]; alleleCodes[0] = "X"; alleleCodes[1] = "A"; alleleCodes[2] = "C"; alleleCodes[3] = "G"; alleleCodes[4] = "T"; String retStr; if (this.counts[0][0] >= this.counts[0][1]){ retStr = alleleCodes[allele1]; }else{ retStr = alleleCodes[allele2]; } if (type != 1){ if (this.counts[1][0] >= this.counts[1][1]){ retStr += (", " + alleleCodes[allele1]); }else{ retStr += (", " + alleleCodes[allele2]); } } return retStr; }
|
51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/ef9d2610a533d0d57cbf47097b0c7b389e6fde13/TDTResult.java/clean/edu/mit/wi/haploview/TDTResult.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
4851,
1429,
7948,
1595,
6516,
12,
474,
618,
13,
288,
3639,
514,
8526,
14551,
6295,
273,
394,
514,
63,
25,
15533,
3639,
14551,
6295,
63,
20,
65,
273,
315,
60,
14432,
3639,
14551,
6295,
63,
21,
65,
273,
315,
37,
14432,
3639,
14551,
6295,
63,
22,
65,
273,
315,
39,
14432,
3639,
14551,
6295,
63,
23,
65,
273,
315,
43,
14432,
3639,
14551,
6295,
63,
24,
65,
273,
315,
56,
14432,
3639,
514,
325,
1585,
31,
3639,
309,
261,
2211,
18,
8008,
63,
20,
6362,
20,
65,
1545,
333,
18,
8008,
63,
20,
6362,
21,
5717,
95,
5411,
325,
1585,
273,
14551,
6295,
63,
21962,
21,
15533,
3639,
289,
12107,
95,
5411,
325,
1585,
273,
14551,
6295,
63,
21962,
22,
15533,
3639,
289,
3639,
309,
261,
723,
480,
404,
15329,
5411,
309,
261,
2211,
18,
8008,
63,
21,
6362,
20,
65,
405,
333,
18,
8008,
63,
21,
6362,
21,
5717,
95,
7734,
325,
1585,
1011,
261,
3113,
315,
397,
14551,
6295,
63,
21962,
21,
19226,
5411,
289,
12107,
95,
7734,
325,
1585,
1011,
261,
3113,
315,
397,
14551,
6295,
63,
21962,
22,
19226,
5411,
289,
3639,
289,
3639,
327,
325,
1585,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
4851,
1429,
7948,
1595,
6516,
12,
474,
618,
13,
288,
3639,
514,
8526,
14551,
6295,
273,
394,
514,
63,
25,
15533,
3639,
14551,
6295,
63,
20,
65,
273,
315,
60,
14432,
3639,
14551,
6295,
63,
21,
65,
273,
315,
37,
14432,
3639,
14551,
6295,
63,
22,
65,
273,
315,
39,
14432,
3639,
14551,
6295,
63,
23,
65,
273,
315,
43,
14432,
3639,
14551,
6295,
63,
24,
65,
273,
315,
56,
14432,
3639,
514,
325,
1585,
31,
3639,
309,
261,
2211,
18,
8008,
63,
20,
6362,
20,
65,
1545,
333,
18,
8008,
63,
20,
6362,
21,
5717,
95,
5411,
325,
1585,
273,
14551,
6295,
63,
21962,
21,
15533,
3639,
289,
12107,
95,
5411,
325,
1585,
273,
2
] |
public org.quickfix.field.Pool getPool() throws FieldNotFound { org.quickfix.field.Pool value = new org.quickfix.field.Pool();
|
public quickfix.field.Pool getPool() throws FieldNotFound { quickfix.field.Pool value = new quickfix.field.Pool();
|
public org.quickfix.field.Pool getPool() throws FieldNotFound { org.quickfix.field.Pool value = new org.quickfix.field.Pool(); getField(value); return value; }
|
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/DontKnowTrade.java/buggy/src/java/src/quickfix/fix44/DontKnowTrade.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
28575,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
28575,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2864,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
capacity-=(getNumberOfSinks() - getActiveSinks())*(doubleSinks? 2: 1);
|
public int getHeatCapacity() { int capacity = 0; boolean doubleSinks=false; for (Enumeration i = miscList.elements(); i.hasMoreElements();) { Mounted mounted = (Mounted)i.nextElement(); if (mounted.isDestroyed() || mounted.isBreached()) { continue; } if (mounted.getType().hasFlag(MiscType.F_HEAT_SINK)) { capacity++; } else if(mounted.getType().hasFlag(MiscType.F_DOUBLE_HEAT_SINK)) { doubleSinks=true; capacity += 2; } } //test for disabled sinks capacity-=(getNumberOfSinks() - getActiveSinks())*(doubleSinks? 2: 1); return capacity; }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/99bae211b5228d4697be03879e02b1fec20bd5c4/Mech.java/buggy/megamek/src/megamek/common/Mech.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
336,
5256,
270,
7437,
1435,
288,
3639,
509,
7519,
273,
374,
31,
3639,
1250,
1645,
11326,
87,
33,
5743,
31,
7734,
364,
261,
21847,
277,
273,
20448,
682,
18,
6274,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
13076,
329,
20919,
273,
261,
8725,
329,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
4778,
329,
18,
291,
28414,
1435,
747,
20919,
18,
291,
38,
266,
2004,
10756,
288,
7734,
1324,
31,
5411,
289,
5411,
309,
261,
4778,
329,
18,
588,
559,
7675,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
3900,
789,
67,
55,
8476,
3719,
288,
7734,
7519,
9904,
31,
5411,
289,
469,
309,
12,
4778,
329,
18,
588,
559,
7675,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
17088,
67,
3900,
789,
67,
55,
8476,
3719,
288,
7734,
1645,
11326,
87,
33,
3767,
31,
7734,
7519,
1011,
576,
31,
5411,
289,
3639,
289,
3639,
368,
3813,
364,
5673,
28618,
8227,
327,
7519,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
509,
336,
5256,
270,
7437,
1435,
288,
3639,
509,
7519,
273,
374,
31,
3639,
1250,
1645,
11326,
87,
33,
5743,
31,
7734,
364,
261,
21847,
277,
273,
20448,
682,
18,
6274,
5621,
277,
18,
5332,
7417,
3471,
5621,
13,
288,
5411,
13076,
329,
20919,
273,
261,
8725,
329,
13,
77,
18,
4285,
1046,
5621,
5411,
309,
261,
4778,
329,
18,
291,
28414,
1435,
747,
20919,
18,
291,
38,
266,
2004,
10756,
288,
7734,
1324,
31,
5411,
289,
5411,
309,
261,
4778,
329,
18,
588,
559,
7675,
5332,
4678,
12,
11729,
71,
559,
18,
42,
67,
3900,
789,
67,
55,
8476,
3719,
288,
7734,
7519,
9904,
31,
5411,
289,
469,
309,
12,
4778,
329,
18,
588,
559,
7675,
2
] |
|
_length = 1;
|
_length=1;
|
public boolean parseNext() throws IOException { if (_buffer==null) { _header = _buffers.getBuffer(_headerBufferSize); _buffer = _header; _tok0 = new View(_header); _tok1 = new View(_header); _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); } if (_state == STATE_END) throw new IllegalStateException("STATE_END"); if (_state == STATE_CONTENT && _contentPosition == _contentLength) { _state = STATE_END; _handler.messageComplete(_contentPosition); return false; } int length=_buffer.length(); boolean fill_called=false; // Fill buffer if we can if (length == 0) { int filled = -1; if (_content!=null && _buffer!=_content) { _buffer=_content; filled=_buffer.length(); } if (_buffer.markIndex() == 0 && _buffer.putIndex() == _buffer.capacity()) throw new IOException("FULL"); if (_endp != null && filled<=0) { // Compress buffer if handling _content buffer // TODO check this is not moving data too much if (_buffer == _content) _buffer.compact(); if (_buffer.space() == 0) { throw new IOException("FULL"); } try { filled = _endp.fill(_buffer); fill_called=true; } catch(IOException ioe) { Log.debug(ioe); reset(true); throw new IOException("EOF"); } } if (filled < 0 && _state == STATE_EOF_CONTENT) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } if (filled < 0) { reset(true); throw new IOException("EOF"); } length=_buffer.length(); } // EventHandler header byte ch; byte[] array = _buffer.array(); Buffer cached = null; while (_state < STATE_END && length-->0) { ch = _buffer.get(); if (_eol == CARRIAGE_RETURN && ch == LINE_FEED) { _eol = LINE_FEED; continue; } _eol = 0; switch (_state) { case STATE_START: _contentLength = UNKNOWN_CONTENT; if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD0; } break; case STATE_FIELD0: if (ch == SPACE) { _tok0.update(_buffer.markIndex(), _buffer.getIndex() - 1); _state = STATE_SPACE1; continue; } else if (ch < SPACE) { throw new IOException("BAD"); } break; case STATE_SPACE1: if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD1; _response = ch >= '1' && ch <= '5'; } else if (ch < SPACE) { throw new IOException("BAD"); } break; case STATE_FIELD1: if (ch == SPACE) { _tok1.update(_buffer.markIndex(), _buffer.getIndex() - 1); _state = STATE_SPACE2; continue; } else if (ch < SPACE) { // HTTP/0.9 _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _buffer .sliceFromMark(), null); _state = STATE_END; _handler.headerComplete(); _handler.messageComplete(_contentPosition); return fill_called; } break; case STATE_SPACE2: if (ch > SPACE) { _buffer.mark(); _state = STATE_FIELD2; } else if (ch < SPACE) { // HTTP/0.9 _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, null); _state = STATE_END; _handler.headerComplete(); _handler.messageComplete(_contentPosition); return fill_called; } break; case STATE_FIELD2: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_response) _handler.startResponse(HttpVersions.CACHE.lookup(_tok0), BufferUtil .toInt(_tok1), _buffer.sliceFromMark()); else _handler.startRequest(HttpMethods.CACHE.lookup(_tok0), _tok1, HttpVersions.CACHE.lookup(_buffer.sliceFromMark())); _eol = ch; _state = STATE_HEADER; _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); _multiLineValue = null; return fill_called; } break; case STATE_HEADER: if (ch == COLON || ch == SPACE || ch == TAB) { // header value without name - continuation? _length = -1; _state = STATE_HEADER_VALUE; } else { // handler last header if any if (cached!=null || _tok0.length() > 0 || _tok1.length() > 0 || _multiLineValue != null) { Buffer header = cached!=null?cached:HttpHeaders.CACHE.lookup(_tok0); cached=null; Buffer value = _multiLineValue == null ? (Buffer) _tok1 : (Buffer) new ByteArrayBuffer(_multiLineValue); int ho = HttpHeaders.CACHE.getOrdinal(header); if (ho >= 0) { int vo = -1; switch (ho) { case HttpHeaders.CONTENT_LENGTH_ORDINAL: if (_contentLength != CHUNKED_CONTENT) { _contentLength = BufferUtil.toInt(value); if (_contentLength <= 0) _contentLength = HttpParser.NO_CONTENT; } break; case HttpHeaders.CONNECTION_ORDINAL: // TODO comma list of connections !!! value = HttpHeaderValues.CACHE.lookup(value); break; case HttpHeaders.TRANSFER_ENCODING_ORDINAL: value = HttpHeaderValues.CACHE.lookup(value); vo=HttpHeaderValues.CACHE.getOrdinal(value); if (HttpHeaderValues.CHUNKED_ORDINAL == vo) _contentLength = CHUNKED_CONTENT; else { // TODO avoid string conversion here String c = value.toString(); if (c.endsWith(HttpHeaderValues.CHUNKED)) _contentLength = CHUNKED_CONTENT; else if (c.indexOf(HttpHeaderValues.CHUNKED) >= 0) throw new HttpException(400,null); } break; case HttpHeaders.CONTENT_TYPE_ORDINAL: _hasContent = true; break; } } _handler.parsedHeader(header, value); _tok0.setPutIndex(_tok0.getIndex()); _tok1.setPutIndex(_tok1.getIndex()); _multiLineValue = null; } // now handle ch if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { // End of header // work out the _content demarcation if (_contentLength == UNKNOWN_CONTENT) { if (_hasContent || _response) _contentLength = EOF_CONTENT; else _contentLength = NO_CONTENT; } _contentPosition = 0; _eol = ch; switch (_contentLength) { case HttpParser.EOF_CONTENT: _state = STATE_EOF_CONTENT; if(_content==null && _buffers!=null) _content=_buffers.getBuffer(_contentBufferSize); _handler.headerComplete(); // May recurse here ! break; case HttpParser.CHUNKED_CONTENT: _state = STATE_CHUNKED_CONTENT; if (_content==null && _buffers!=null) _content=_buffers.getBuffer(_contentBufferSize); _handler.headerComplete(); // May recurse here ! break; case HttpParser.NO_CONTENT: _state = STATE_END; _handler.headerComplete(); // May recurse here ! _handler.messageComplete(_contentPosition); break; default: _state = STATE_CONTENT; if(_buffers!=null && _content==null && _buffer==_header && _contentLength>(_header.capacity()-_header.getIndex())) _content=_buffers.getBuffer(_contentBufferSize); _handler.headerComplete(); // May recurse here ! break; } return fill_called; } else { // New header _length = 1; _buffer.mark(); _state = STATE_HEADER_NAME; // try cached name! cached = HttpHeaders.CACHE.getBest(array, _buffer.markIndex(), length+1); if (cached!=null) { _length=cached.length(); _buffer.setGetIndex(_buffer.markIndex()+_length); length=_buffer.length(); } } } break; case STATE_HEADER_NAME: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_length > 0) _tok0.update(_buffer.markIndex(), _buffer.markIndex() + _length); _eol = ch; _state = STATE_HEADER; } else if (ch == COLON) { if (_length > 0 && cached==null) _tok0.update(_buffer.markIndex(), _buffer.markIndex() + _length); _length = -1; _state = STATE_HEADER_VALUE; } else if (ch != SPACE && ch != TAB) { // Drag the mark if (_length == -1) _buffer.mark(); _length = _buffer.getIndex() - _buffer.markIndex(); } break; case STATE_HEADER_VALUE: if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { if (_length > 0) { if (_tok1.length() == 0) _tok1.update(_buffer.markIndex(), _buffer.markIndex() + _length); else { // Continuation line! // TODO - deal with CR LF and COLON? if (_multiLineValue == null) _multiLineValue = _tok1.toString(); _tok1.update(_buffer.markIndex(), _buffer.markIndex() + _length); _multiLineValue += " " + _tok1.toString(); } } _eol = ch; _state = STATE_HEADER; } else if (ch != SPACE && ch != TAB) { if (_length == -1) _buffer.mark(); _length = _buffer.getIndex() - _buffer.markIndex(); } break; } } // end of HEADER states loop // Handle _content Buffer chunk; length = _buffer.length(); while (_state > STATE_END && length > 0) { if (_eol == CARRIAGE_RETURN && _buffer.peek() == LINE_FEED) { _eol = _buffer.get(); length = _buffer.length(); continue; } _eol = 0; switch (_state) { case STATE_EOF_CONTENT: chunk = _buffer.get(_buffer.length()); _contentPosition += chunk.length(); _handler.content(chunk); return fill_called; case STATE_CONTENT: { int remaining = _contentLength - _contentPosition; if (remaining == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } else if (length > remaining) length = remaining; chunk = _buffer.get(length); _contentPosition += chunk.length(); _handler.content(chunk); return fill_called; } case STATE_CHUNKED_CONTENT: { ch = _buffer.peek(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) _eol = _buffer.get(); else if (ch <= SPACE) _buffer.get(); else { _chunkLength = 0; _chunkPosition = 0; _state = STATE_CHUNK_SIZE; } break; } case STATE_CHUNK_SIZE: { ch = _buffer.get(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { _eol = ch; if (_chunkLength == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } else _state = STATE_CHUNK; } else if (ch <= SPACE || ch == SEMI_COLON) _state = STATE_CHUNK_PARAMS; else if (ch >= '0' && ch <= '9') _chunkLength = _chunkLength * 16 + (ch - '0'); else if (ch >= 'a' && ch <= 'f') _chunkLength = _chunkLength * 16 + (10 + ch - 'a'); else if (ch >= 'A' && ch <= 'F') _chunkLength = _chunkLength * 16 + (10 + ch - 'A'); else throw new IOException("bad chunk char: " + ch); break; } case STATE_CHUNK_PARAMS: { ch = _buffer.get(); if (ch == CARRIAGE_RETURN || ch == LINE_FEED) { _eol = ch; if (_chunkLength == 0) { _state = STATE_END; _handler.messageComplete(_contentPosition); return fill_called; } else _state = STATE_CHUNK; } break; } case STATE_CHUNK: { int remaining = _chunkLength - _chunkPosition; if (remaining == 0) { _state = STATE_CHUNKED_CONTENT; break; } else if (length > remaining) length = remaining; chunk = _buffer.get(length); _contentPosition += chunk.length(); _chunkPosition += chunk.length(); _handler.content(chunk); return fill_called; } } length = _buffer.length(); } return fill_called; }
|
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/ca67d639c4b4cf51ddb7b16c09566ea524f43a6f/HttpParser.java/buggy/trunk/modules/jetty/src/main/java/org/mortbay/jetty/HttpParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1109,
2134,
1435,
1216,
1860,
565,
288,
3639,
309,
261,
67,
4106,
631,
2011,
13,
3639,
288,
5411,
389,
3374,
273,
389,
28101,
18,
588,
1892,
24899,
3374,
15384,
1769,
5411,
389,
4106,
273,
389,
3374,
31,
5411,
389,
17692,
20,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
21,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
20,
18,
542,
6426,
1016,
24899,
17692,
20,
18,
588,
1016,
10663,
5411,
389,
17692,
21,
18,
542,
6426,
1016,
24899,
17692,
21,
18,
588,
1016,
10663,
3639,
289,
7734,
309,
261,
67,
2019,
422,
7442,
67,
4415,
13,
604,
394,
5477,
2932,
7998,
67,
4415,
8863,
3639,
309,
261,
67,
2019,
422,
7442,
67,
9689,
597,
389,
1745,
2555,
422,
389,
1745,
1782,
13,
3639,
288,
5411,
389,
2019,
273,
7442,
67,
4415,
31,
5411,
389,
4176,
18,
2150,
6322,
24899,
1745,
2555,
1769,
5411,
327,
629,
31,
3639,
289,
7734,
509,
769,
33,
67,
4106,
18,
2469,
5621,
3639,
1250,
3636,
67,
11777,
33,
5743,
31,
7734,
368,
14192,
1613,
309,
732,
848,
3639,
309,
261,
2469,
422,
374,
13,
3639,
288,
5411,
509,
6300,
273,
300,
21,
31,
5411,
309,
261,
67,
1745,
5,
33,
2011,
597,
389,
4106,
5,
33,
67,
1745,
13,
5411,
288,
7734,
389,
4106,
33,
67,
1745,
31,
7734,
6300,
33,
67,
4106,
18,
2469,
5621,
5411,
289,
18701,
309,
261,
67,
4106,
18,
3355,
1016,
1435,
422,
374,
597,
389,
4106,
18,
458,
1016,
1435,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1109,
2134,
1435,
1216,
1860,
565,
288,
3639,
309,
261,
67,
4106,
631,
2011,
13,
3639,
288,
5411,
389,
3374,
273,
389,
28101,
18,
588,
1892,
24899,
3374,
15384,
1769,
5411,
389,
4106,
273,
389,
3374,
31,
5411,
389,
17692,
20,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
21,
273,
394,
4441,
24899,
3374,
1769,
5411,
389,
17692,
20,
18,
542,
6426,
1016,
24899,
17692,
20,
18,
588,
1016,
10663,
5411,
389,
17692,
21,
18,
542,
6426,
1016,
24899,
17692,
21,
18,
588,
1016,
10663,
3639,
289,
7734,
309,
261,
67,
2019,
422,
7442,
67,
4415,
13,
604,
394,
5477,
2932,
7998,
67,
4415,
8863,
3639,
309,
261,
67,
2019,
422,
7442,
67,
9689,
2
] |
goIntoAction.setEnabled(selection.size() == 1 && ResourceSelectionUtil.allResourcesAreOfType( selection, IResource.PROJECT | IResource.FOLDER));
|
boolean enable = false; if (selection.size() == 1) { Object object = selection.getFirstElement(); if (object instanceof IProject) { enable = ((IProject) object).isOpen(); } else if (object instanceof IFolder) { enable = true; } } goIntoAction.setEnabled(enable);
|
public void updateActionBars() { IStructuredSelection selection = (IStructuredSelection) getContext().getSelection(); goIntoAction.setEnabled(selection.size() == 1 && ResourceSelectionUtil.allResourcesAreOfType( selection, IResource.PROJECT | IResource.FOLDER)); // the rest of the actions update by listening to frame list changes }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/82cc26bef1d0bd74404dad8c89bdfadd2f46ee69/GotoActionGroup.java/buggy/bundles/org.eclipse.ui/Eclipse UI Standard Components/org/eclipse/ui/views/navigator/GotoActionGroup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
1803,
5190,
87,
1435,
288,
202,
202,
45,
30733,
6233,
4421,
273,
1082,
202,
12,
45,
30733,
6233,
13,
6474,
7675,
588,
6233,
5621,
202,
202,
3240,
5952,
1803,
18,
542,
1526,
12,
10705,
18,
1467,
1435,
422,
404,
1082,
202,
10,
10,
2591,
6233,
1304,
18,
454,
3805,
4704,
18859,
12,
9506,
202,
10705,
16,
9506,
202,
45,
1420,
18,
17147,
571,
467,
1420,
18,
17357,
10019,
202,
202,
759,
326,
3127,
434,
326,
4209,
1089,
635,
13895,
358,
2623,
666,
3478,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
1803,
5190,
87,
1435,
288,
202,
202,
45,
30733,
6233,
4421,
273,
1082,
202,
12,
45,
30733,
6233,
13,
6474,
7675,
588,
6233,
5621,
202,
202,
3240,
5952,
1803,
18,
542,
1526,
12,
10705,
18,
1467,
1435,
422,
404,
1082,
202,
10,
10,
2591,
6233,
1304,
18,
454,
3805,
4704,
18859,
12,
9506,
202,
10705,
16,
9506,
202,
45,
1420,
18,
17147,
571,
467,
1420,
18,
17357,
10019,
202,
202,
759,
326,
3127,
434,
326,
4209,
1089,
635,
13895,
358,
2623,
666,
3478,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (compilerConfiguration.isExcludedFromCompilation(formFile)) {
|
if (compilerManager.isExcludedFromCompilation(formFile)) {
|
public void run() { final CompileScope scope = context.getCompileScope(); final CompileScope projectScope = context.getProjectCompileScope(); final VirtualFile[] formFiles = projectScope.getFiles(StdFileTypes.GUI_DESIGNER_FORM, true); final CompilerConfiguration compilerConfiguration = CompilerConfiguration.getInstance(myProject); final BindingsCache bindingsCache = new BindingsCache(myProject); final VirtualFile[] outputDirectories = CompilerPathsEx.getOutputDirectories( ModuleManager.getInstance(myProject).getSortedModules() ); final HashMap<Module, ArrayList<VirtualFile>> module2formFiles = sortByModules(formFiles); try { for (Iterator<Module> modules = module2formFiles.keySet().iterator(); modules.hasNext();) { final Module module = modules.next(); final HashMap<String, VirtualFile> class2form = new HashMap<String, VirtualFile>(); final ArrayList list = module2formFiles.get(module); for (int i = 0; i < list.size(); i++) { final VirtualFile formFile = (VirtualFile)list.get(i); if (compilerConfiguration.isExcludedFromCompilation(formFile)) { continue; } final String classToBind; try { classToBind = bindingsCache.getBoundClassName(formFile); } catch (AlienFormFileException e) { // ignore non-IDEA forms continue; } catch (Exception e) { addError(context, UIDesignerBundle.message("error.cannot.process.form.file", e), formFile); continue; } if (classToBind == null) { continue; } final VirtualFile classFile = findFile(outputDirectories, classToBind, module); if (classFile == null) { if (scope.belongs(formFile.getUrl())) { addError(context, UIDesignerBundle.message("error.class.to.bind.does.not.exist", classToBind), formFile); } continue; } final VirtualFile sourceFile = FormCompilerManager.findSourceFile(context, formFile, classToBind); final boolean inScope = (sourceFile == null)? scope.belongs(formFile.getUrl()) : scope.belongs(sourceFile.getUrl()) || scope.belongs(formFile.getUrl()) ; final VirtualFile alreadyProcessedForm = class2form.get(classToBind); if (alreadyProcessedForm != null) { if (inScope) { addError( context, UIDesignerBundle.message("error.duplicate.bind", classToBind, alreadyProcessedForm.getPresentableUrl()), formFile ); } continue; } class2form.put(classToBind, formFile); if (!inScope) { continue; } final FileProcessingCompiler.ProcessingItem item = new MyInstrumentationItem(classFile, formFile); items.add(item); } } } finally { bindingsCache.save(); } }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4b9b42a89e8b651ac4f35632b101d771f565898e/Form2ByteCodeCompiler.java/clean/ui-designer/impl/com/intellij/uiDesigner/make/Form2ByteCodeCompiler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1086,
1435,
288,
3639,
727,
16143,
3876,
2146,
273,
819,
18,
588,
9937,
3876,
5621,
3639,
727,
16143,
3876,
1984,
3876,
273,
819,
18,
588,
4109,
9937,
3876,
5621,
3639,
727,
7269,
812,
8526,
646,
2697,
273,
1984,
3876,
18,
588,
2697,
12,
10436,
812,
2016,
18,
43,
5370,
67,
1639,
11260,
654,
67,
4983,
16,
638,
1769,
3639,
727,
12972,
1750,
5274,
1750,
273,
12972,
1750,
18,
588,
1442,
12,
4811,
4109,
1769,
3639,
727,
6936,
899,
1649,
7394,
1649,
273,
394,
6936,
899,
1649,
12,
4811,
4109,
1769,
3639,
727,
7269,
812,
8526,
876,
13071,
273,
12972,
4466,
424,
18,
588,
1447,
13071,
12,
1850,
5924,
1318,
18,
588,
1442,
12,
4811,
4109,
2934,
588,
11739,
7782,
1435,
3639,
11272,
3639,
727,
4317,
32,
3120,
16,
2407,
32,
6466,
812,
9778,
1605,
22,
687,
2697,
273,
14021,
7782,
12,
687,
2697,
1769,
3639,
775,
288,
1850,
364,
261,
3198,
32,
3120,
34,
4381,
273,
1605,
22,
687,
2697,
18,
856,
694,
7675,
9838,
5621,
4381,
18,
5332,
2134,
5621,
13,
288,
5411,
727,
5924,
1605,
273,
4381,
18,
4285,
5621,
5411,
727,
4317,
32,
780,
16,
7269,
812,
34,
667,
22,
687,
273,
394,
4317,
32,
780,
16,
7269,
812,
34,
5621,
5411,
727,
2407,
666,
273,
1605,
22,
687,
2697,
18,
588,
12,
2978,
1769,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
666,
18,
1467,
5621,
277,
27245,
288,
2868,
727,
7269,
812,
646,
812,
273,
261,
6466,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
16143,
3876,
2146,
273,
819,
18,
588,
9937,
3876,
5621,
3639,
727,
16143,
3876,
1984,
3876,
273,
819,
18,
588,
4109,
9937,
3876,
5621,
3639,
727,
7269,
812,
8526,
646,
2697,
273,
1984,
3876,
18,
588,
2697,
12,
10436,
812,
2016,
18,
43,
5370,
67,
1639,
11260,
654,
67,
4983,
16,
638,
1769,
3639,
727,
12972,
1750,
5274,
1750,
273,
12972,
1750,
18,
588,
1442,
12,
4811,
4109,
1769,
3639,
727,
6936,
899,
1649,
7394,
1649,
273,
394,
6936,
899,
1649,
12,
4811,
4109,
1769,
3639,
727,
7269,
812,
8526,
876,
13071,
273,
12972,
4466,
424,
18,
588,
1447,
13071,
12,
1850,
5924,
1318,
18,
588,
1442,
12,
4811,
4109,
2934,
2
] |
public Ajp14Response(Ajp14 ajp14)
|
public Ajp14Response(Ajp13 ajp13)
|
public Ajp14Response(Ajp14 ajp14) { super(); this.ajp14=ajp14; }
|
10630 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10630/dd55b74c25151329f801f38303168f6d25a62b1e/Ajp14Interceptor.java/clean/java/org/apache/ajp/tomcat33/Ajp14Interceptor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
432,
21797,
3461,
1064,
12,
37,
21797,
3437,
279,
21797,
3437,
13,
377,
288,
202,
9565,
5621,
202,
2211,
18,
4365,
84,
3461,
33,
4365,
84,
3461,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
432,
21797,
3461,
1064,
12,
37,
21797,
3437,
279,
21797,
3437,
13,
377,
288,
202,
9565,
5621,
202,
2211,
18,
4365,
84,
3461,
33,
4365,
84,
3461,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public SymbolPart(CodePosition codePosition, String symbolCode, Properties props, SymbolPart parent) { this(codePosition, symbolCode, props, parent, codePosition.getStartIndex(), codePosition.getEndIndex(), true);
|
protected SymbolPart() { DEBUG = Debug.debugging("symbolpart");
|
public SymbolPart(CodePosition codePosition, String symbolCode, Properties props, SymbolPart parent) { this(codePosition, symbolCode, props, parent, codePosition.getStartIndex(), codePosition.getEndIndex(), true); }
|
47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/57778fecaf5f2bf27a348837d5a4a66e7733f938/SymbolPart.java/buggy/src/openmap/com/bbn/openmap/tools/symbology/milStd2525/SymbolPart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8565,
1988,
12,
1085,
2555,
981,
2555,
16,
514,
3273,
1085,
16,
5411,
6183,
3458,
16,
8565,
1988,
982,
13,
288,
3639,
333,
12,
710,
2555,
16,
2398,
3273,
1085,
16,
2398,
3458,
16,
2398,
982,
16,
2398,
981,
2555,
18,
588,
16792,
9334,
2398,
981,
2555,
18,
588,
24152,
9334,
2398,
638,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8565,
1988,
12,
1085,
2555,
981,
2555,
16,
514,
3273,
1085,
16,
5411,
6183,
3458,
16,
8565,
1988,
982,
13,
288,
3639,
333,
12,
710,
2555,
16,
2398,
3273,
1085,
16,
2398,
3458,
16,
2398,
982,
16,
2398,
981,
2555,
18,
588,
16792,
9334,
2398,
981,
2555,
18,
588,
24152,
9334,
2398,
638,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
findMemberProposals(fields[fieldNum], accessor, WODCompletionProcessor.FIELD_PREFIXES, _token, _tokenOffset, _offset, _completionProposalsList, 0, true);
|
findMemberProposals(fields[fieldNum], accessor, WODCompletionProcessor.FIELD_PREFIXES, _token, _tokenOffset, _offset, _completionProposalsSet, 0, true);
|
protected void fillInAssociationValueCompletionProposals(IJavaProject _project, IType _associatedType, String _token, int _tokenOffset, int _offset, List _completionProposalsList) throws JavaModelException { String partialToken = partialToken(_token, _tokenOffset, _offset).toLowerCase(); String[] accessors = partialToken.split("\\."); // Split tosses empty tokens, so we check to see if we're on the last "." and fake an empty token in the list if (partialToken.length() > 0 && partialToken.charAt(partialToken.length() - 1) == '.') { String[] addedBlankAccessor = new String[accessors.length + 1]; System.arraycopy(accessors, 0, addedBlankAccessor, 0, accessors.length); addedBlankAccessor[addedBlankAccessor.length - 1] = ""; accessors = addedBlankAccessor; } IType nextType = _associatedType; int offset = _tokenOffset; for (int i = 0; nextType != null && i < accessors.length - 1; i++) { String nextTypeName = nextType(nextType, accessors[i]); if (nextTypeName != null) { nextTypeName = Signature.toString(nextTypeName); IType nextTypeAttempt = _project.findType(nextTypeName); if (nextTypeAttempt == null) { String[][] resolvedTypes = nextType.resolveType(nextTypeName); if (resolvedTypes != null && resolvedTypes.length == 1) { nextTypeName = Signature.toQualifiedName(resolvedTypes[0]); nextType = _project.findType(nextTypeName); } else { nextType = null; } } else { nextType = nextTypeAttempt; } } else { nextType = null; } } if (nextType != null) { // Jump forward to the last '.' int previousTokenLength = partialToken.lastIndexOf('.') + 1; _tokenOffset += previousTokenLength; String accessor = accessors[accessors.length - 1]; _token = accessors[accessors.length - 1]; ITypeHierarchy typeHierarchy = nextType.newSupertypeHierarchy(null); IType[] types = typeHierarchy.getAllTypes(); for (int typeNum = 0; typeNum < types.length; typeNum++) { IField[] fields = types[typeNum].getFields(); for (int fieldNum = 0; fieldNum < fields.length; fieldNum++) { findMemberProposals(fields[fieldNum], accessor, WODCompletionProcessor.FIELD_PREFIXES, _token, _tokenOffset, _offset, _completionProposalsList, 0, true); } IMethod[] methods = types[typeNum].getMethods(); for (int methodsNum = 0; methodsNum < methods.length; methodsNum++) { findMemberProposals(methods[methodsNum], accessor, WODCompletionProcessor.GET_METHOD_PREFIXES, _token, _tokenOffset, _offset, _completionProposalsList, 0, true); } } } }
|
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/0121c50c657e485c351b986b3b99a5c73cbbb9a3/WODCompletionProcessor.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.wodclipse/java/org/objectstyle/wolips/wodclipse/editors/WODCompletionProcessor.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3636,
382,
7174,
620,
11238,
626,
22536,
12,
45,
5852,
4109,
389,
4406,
16,
467,
559,
389,
28441,
559,
16,
514,
389,
2316,
16,
509,
389,
2316,
2335,
16,
509,
389,
3348,
16,
987,
389,
11469,
626,
22536,
682,
13,
1216,
5110,
1488,
503,
288,
565,
514,
4702,
1345,
273,
4702,
1345,
24899,
2316,
16,
389,
2316,
2335,
16,
389,
3348,
2934,
869,
5630,
5621,
565,
514,
8526,
28088,
273,
4702,
1345,
18,
4939,
2932,
1695,
1199,
1769,
565,
368,
5385,
358,
1049,
281,
1008,
2430,
16,
1427,
732,
866,
358,
2621,
309,
732,
4565,
603,
326,
1142,
4585,
471,
10517,
392,
1008,
1147,
316,
326,
666,
565,
309,
261,
11601,
1345,
18,
2469,
1435,
405,
374,
597,
4702,
1345,
18,
3001,
861,
12,
11601,
1345,
18,
2469,
1435,
300,
404,
13,
422,
2611,
13,
288,
1377,
514,
8526,
3096,
7796,
8235,
273,
394,
514,
63,
3860,
1383,
18,
2469,
397,
404,
15533,
1377,
2332,
18,
1126,
3530,
12,
3860,
1383,
16,
374,
16,
3096,
7796,
8235,
16,
374,
16,
28088,
18,
2469,
1769,
1377,
3096,
7796,
8235,
63,
9665,
7796,
8235,
18,
2469,
300,
404,
65,
273,
1408,
31,
1377,
28088,
273,
3096,
7796,
8235,
31,
565,
289,
565,
467,
559,
1024,
559,
273,
389,
28441,
559,
31,
565,
509,
1384,
273,
389,
2316,
2335,
31,
565,
364,
261,
474,
277,
273,
374,
31,
1024,
559,
480,
446,
597,
277,
411,
28088,
18,
2469,
300,
404,
31,
277,
27245,
288,
1377,
514,
1024,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3636,
382,
7174,
620,
11238,
626,
22536,
12,
45,
5852,
4109,
389,
4406,
16,
467,
559,
389,
28441,
559,
16,
514,
389,
2316,
16,
509,
389,
2316,
2335,
16,
509,
389,
3348,
16,
987,
389,
11469,
626,
22536,
682,
13,
1216,
5110,
1488,
503,
288,
565,
514,
4702,
1345,
273,
4702,
1345,
24899,
2316,
16,
389,
2316,
2335,
16,
389,
3348,
2934,
869,
5630,
5621,
565,
514,
8526,
28088,
273,
4702,
1345,
18,
4939,
2932,
1695,
1199,
1769,
565,
368,
5385,
358,
1049,
281,
1008,
2430,
16,
1427,
732,
866,
358,
2621,
309,
732,
4565,
603,
326,
1142,
4585,
471,
10517,
392,
1008,
1147,
316,
326,
666,
565,
309,
261,
11601,
1345,
18,
2469,
1435,
405,
2
] |
ArrayList heritage = (ArrayList)threadMap.get(parentThread); if (heritage != null) {
|
ArrayList heritage = (ArrayList) threadMap.get(parentThread); if (heritage != null) {
|
static void newChildThread(Thread childThread) { // The currentThread is the parent of the new thread. Thread parentThread = Thread.currentThread(); // Note that we don't have to synchronize, as only this thread will // ever modify the returned heritage. ArrayList heritage = (ArrayList)threadMap.get(parentThread); if (heritage != null) { threadMap.put(childThread, heritage.clone()); // Perform the inheritance. Iterator it = heritage.iterator(); int i = heritage.size(); while (--i >= 0) { InheritableThreadLocal local = (InheritableThreadLocal)it.next(); Object parentValue = local.valueMap.get(parentThread); if (parentValue != null) { Object childValue = local.childValue(parentValue == NULL ? null : parentValue); local.valueMap.put(childThread, (childValue == null ? NULL : parentValue)); } } } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/InheritableThreadLocal.java/clean/core/src/classpath/java/java/lang/InheritableThreadLocal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
19783,
3830,
12,
3830,
1151,
3830,
13,
288,
202,
202,
759,
1021,
11800,
353,
326,
982,
434,
326,
394,
2650,
18,
202,
202,
3830,
982,
3830,
273,
4884,
18,
2972,
3830,
5621,
202,
202,
759,
3609,
716,
732,
2727,
1404,
1240,
358,
16978,
16,
487,
1338,
333,
2650,
903,
202,
202,
759,
14103,
5612,
326,
2106,
22336,
305,
410,
18,
202,
202,
19558,
22336,
305,
410,
273,
261,
19558,
13,
5930,
863,
18,
588,
12,
2938,
3830,
1769,
202,
202,
430,
261,
3721,
410,
480,
446,
13,
288,
1082,
202,
5930,
863,
18,
458,
12,
3624,
3830,
16,
22336,
305,
410,
18,
14056,
10663,
1082,
202,
759,
11217,
326,
16334,
18,
1082,
202,
3198,
518,
273,
22336,
305,
410,
18,
9838,
5621,
1082,
202,
474,
277,
273,
22336,
305,
410,
18,
1467,
5621,
1082,
202,
17523,
261,
413,
77,
1545,
374,
13,
288,
9506,
202,
14216,
429,
3830,
2042,
1191,
273,
261,
14216,
429,
3830,
2042,
13,
305,
18,
4285,
5621,
9506,
202,
921,
982,
620,
273,
1191,
18,
1132,
863,
18,
588,
12,
2938,
3830,
1769,
9506,
202,
430,
261,
2938,
620,
480,
446,
13,
288,
6862,
202,
921,
1151,
620,
273,
1191,
18,
3624,
620,
12,
2938,
620,
422,
3206,
692,
446,
294,
982,
620,
1769,
6862,
202,
3729,
18,
1132,
863,
18,
458,
12,
3624,
3830,
16,
261,
3624,
620,
422,
446,
692,
3206,
294,
982,
620,
10019,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
918,
19783,
3830,
12,
3830,
1151,
3830,
13,
288,
202,
202,
759,
1021,
11800,
353,
326,
982,
434,
326,
394,
2650,
18,
202,
202,
3830,
982,
3830,
273,
4884,
18,
2972,
3830,
5621,
202,
202,
759,
3609,
716,
732,
2727,
1404,
1240,
358,
16978,
16,
487,
1338,
333,
2650,
903,
202,
202,
759,
14103,
5612,
326,
2106,
22336,
305,
410,
18,
202,
202,
19558,
22336,
305,
410,
273,
261,
19558,
13,
5930,
863,
18,
588,
12,
2938,
3830,
1769,
202,
202,
430,
261,
3721,
410,
480,
446,
13,
288,
1082,
202,
5930,
863,
18,
458,
12,
3624,
3830,
16,
22336,
305,
410,
18,
14056,
10663,
1082,
202,
759,
11217,
326,
16334,
18,
1082,
202,
3198,
518,
2
] |
if (patt.charAt(i) == '|') { argcount++; } else if (patt.charAt(i) == '<') {
|
if (patt.charAt(i) == '|') {
|
public void applyPattern(String patt) { int len = patt.length(); int argcount = 0; for (int i = 0; i < len; i++) { if (patt.charAt(i) == '|') { argcount++; } // We need to add an extra 'phantom' argument for '<' else if (patt.charAt(i) == '<') { argcount++; } } limits = new double[argcount]; strings = new String[argcount]; int s = 0; int c = 0; boolean needphantom = false; for (int i = 0; i < len; i++) { char ch = patt.charAt(i); if (ch == '#') { limits[c] = Double.valueOf(patt.substring(s, i)).doubleValue(); s = c+1; } else if (ch == '<') { needphantom = true; limits[c] = Double.valueOf(patt.substring(s, i)).doubleValue(); s = c+1; } else if (ch == '|') { strings[c] = patt.substring(s, i); c++; if (needphantom) { needphantom = false; limits[c] = nextDouble(limits[c-1]); strings[c] = strings[c-1]; c++; } } }}
|
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/55729bfb42ebde92968993ab673c299e4fc7e780/ChoiceFormat.java/buggy/libraries/javalib/java/text/ChoiceFormat.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
2230,
3234,
12,
780,
28560,
13,
288,
202,
474,
562,
273,
28560,
18,
2469,
5621,
202,
474,
1501,
1883,
273,
374,
31,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
202,
202,
430,
261,
84,
4558,
18,
3001,
861,
12,
77,
13,
422,
6699,
6134,
288,
1082,
202,
3175,
1883,
9904,
31,
202,
202,
97,
202,
202,
759,
1660,
1608,
358,
527,
392,
2870,
296,
844,
16317,
11,
1237,
364,
9138,
202,
202,
12107,
309,
261,
84,
4558,
18,
3001,
861,
12,
77,
13,
422,
2368,
6134,
288,
1082,
202,
3175,
1883,
9904,
31,
202,
202,
97,
202,
97,
202,
14270,
273,
394,
1645,
63,
3175,
1883,
15533,
202,
10219,
273,
394,
514,
63,
3175,
1883,
15533,
202,
474,
272,
273,
374,
31,
202,
474,
276,
273,
374,
31,
202,
6494,
1608,
844,
16317,
273,
629,
31,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
202,
202,
3001,
462,
273,
28560,
18,
3001,
861,
12,
77,
1769,
202,
202,
430,
261,
343,
422,
2946,
6134,
288,
1082,
202,
14270,
63,
71,
65,
273,
3698,
18,
1132,
951,
12,
84,
4558,
18,
28023,
12,
87,
16,
277,
13,
2934,
9056,
620,
5621,
1082,
202,
87,
273,
276,
15,
21,
31,
202,
202,
97,
202,
202,
12107,
309,
261,
343,
422,
2368,
6134,
288,
1082,
202,
14891,
844,
16317,
273,
638,
31,
1082,
202,
14270,
63,
71,
65,
273,
3698,
18,
1132,
951,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
2230,
3234,
12,
780,
28560,
13,
288,
202,
474,
562,
273,
28560,
18,
2469,
5621,
202,
474,
1501,
1883,
273,
374,
31,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
562,
31,
277,
27245,
288,
202,
202,
430,
261,
84,
4558,
18,
3001,
861,
12,
77,
13,
422,
6699,
6134,
288,
1082,
202,
3175,
1883,
9904,
31,
202,
202,
97,
202,
202,
759,
1660,
1608,
358,
527,
392,
2870,
296,
844,
16317,
11,
1237,
364,
9138,
202,
202,
12107,
309,
261,
84,
4558,
18,
3001,
861,
12,
77,
13,
422,
2368,
6134,
288,
1082,
202,
3175,
1883,
9904,
31,
202,
202,
97,
202,
97,
202,
14270,
273,
394,
1645,
63,
3175,
1883,
15533,
202,
10219,
2
] |
} if( binding instanceof IEnumerator || (binding instanceof IFunction && ((ICPPInternalFunction)binding).isStatic( false )) || (binding instanceof IVariable && ((IVariable)binding).isStatic()) ) { ok = true;
|
if( binding instanceof IEnumerator || (binding instanceof IFunction && ((ICPPInternalFunction)binding).isStatic( false )) || (binding instanceof IVariable && ((IVariable)binding).isStatic()) ) { ok = true; } if( !ok ) return true;
|
private static boolean checkForAmbiguity( LookupData data, Object n, Object names ) throws DOMException{ if( names instanceof Object[] ) { names = ArrayUtil.trim( Object.class, (Object[]) names ); if( ((Object[])names).length == 0 ) return false; } IBinding binding = ( n instanceof IBinding) ? (IBinding)n : ((IASTName)n).resolveBinding(); Object [] objs = ( names instanceof Object[] ) ? (Object[])names : null; int idx = ( objs != null && objs.length > 0 ) ? 0 : -1; Object o = ( idx != -1 ) ? objs[idx++] : names; while( o != null ) { IBinding b = ( o instanceof IBinding ) ? (IBinding) o : ((IASTName)o).resolveBinding(); if( binding != b ) return true; boolean ok = false; //3.4.5-4 if the id-expression in a class member access is a qualified id... the result //is not required to be a unique base class... if( binding instanceof ICPPClassType ){ IASTNode parent = data.astName.getParent(); if( parent instanceof ICPPASTQualifiedName && parent.getPropertyInParent() == IASTFieldReference.FIELD_NAME ) { ok = true; } } //it is not ambiguous if they are the same thing and it is static or an enumerator if( binding instanceof IEnumerator || (binding instanceof IFunction && ((ICPPInternalFunction)binding).isStatic( false )) || (binding instanceof IVariable && ((IVariable)binding).isStatic()) ) { ok = true; } if( !ok ) return true; next: if( idx > -1 && idx < objs.length ) o = objs[idx++]; else o = null; } return false; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/6992f6f2484618e8714f8926984bc2fd529cb714/CPPSemantics.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPSemantics.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
1250,
13855,
30706,
8810,
560,
12,
8834,
751,
501,
16,
1033,
290,
16,
1033,
1257,
262,
1216,
4703,
503,
95,
202,
202,
430,
12,
1257,
1276,
1033,
8526,
262,
288,
1082,
565,
1257,
273,
27207,
18,
5290,
12,
1033,
18,
1106,
16,
261,
921,
63,
5717,
1257,
11272,
1082,
565,
309,
12,
14015,
921,
63,
5717,
1973,
2934,
2469,
422,
374,
262,
1082,
3639,
327,
629,
31,
202,
202,
97,
202,
565,
467,
5250,
5085,
273,
225,
261,
290,
1276,
467,
5250,
13,
692,
261,
45,
5250,
13,
82,
294,
14015,
45,
9053,
461,
13,
82,
2934,
10828,
5250,
5621,
202,
565,
1033,
5378,
12721,
273,
261,
1257,
1276,
1033,
8526,
262,
692,
261,
921,
63,
5717,
1973,
294,
446,
31,
202,
565,
509,
2067,
273,
261,
12721,
480,
446,
597,
12721,
18,
2469,
405,
374,
262,
692,
374,
294,
300,
21,
31,
202,
565,
1033,
320,
273,
261,
2067,
480,
300,
21,
262,
692,
12721,
63,
3465,
9904,
65,
294,
1257,
31,
202,
565,
1323,
12,
320,
480,
446,
262,
288,
3639,
202,
3639,
467,
5250,
324,
273,
261,
320,
1276,
467,
5250,
262,
692,
261,
45,
5250,
13,
320,
294,
14015,
45,
9053,
461,
13,
83,
2934,
10828,
5250,
5621,
202,
540,
202,
3639,
309,
12,
5085,
480,
324,
262,
202,
5411,
327,
638,
31,
25083,
202,
6494,
1529,
273,
629,
31,
1082,
202,
759,
23,
18,
24,
18,
25,
17,
24,
309,
326,
612,
17,
8692,
225,
316,
279,
667,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
13855,
30706,
8810,
560,
12,
8834,
751,
501,
16,
1033,
290,
16,
1033,
1257,
262,
1216,
4703,
503,
95,
202,
202,
430,
12,
1257,
1276,
1033,
8526,
262,
288,
1082,
565,
1257,
273,
27207,
18,
5290,
12,
1033,
18,
1106,
16,
261,
921,
63,
5717,
1257,
11272,
1082,
565,
309,
12,
14015,
921,
63,
5717,
1973,
2934,
2469,
422,
374,
262,
1082,
3639,
327,
629,
31,
202,
202,
97,
202,
565,
467,
5250,
5085,
273,
225,
261,
290,
1276,
467,
5250,
13,
692,
261,
45,
5250,
13,
82,
294,
14015,
45,
9053,
461,
13,
82,
2934,
10828,
5250,
5621,
202,
565,
1033,
5378,
12721,
273,
261,
1257,
1276,
1033,
8526,
262,
692,
261,
921,
2
] |
int lastBacktrack = -1; while (true) { try { int checkOffset = LA(1).hashCode(); IASTDeclaration d = declaration(); d.setParent(translationUnit); d.setPropertyInParent(IASTTranslationUnit.OWNED_DECLARATION); translationUnit.addDeclaration(d); if (LA(1).hashCode() == checkOffset) failParseWithErrorHandling(); } catch (EndOfFileException e) { if (translationUnit.getDeclarations().length != 0) { CASTNode d = (CASTNode) translationUnit.getDeclarations()[translationUnit .getDeclarations().length - 1]; ((CASTNode) translationUnit).setLength(d.getOffset() + d.getLength()); } else ((CASTNode) translationUnit).setLength(0); break; } catch (BacktrackException b) { try { IASTProblem p = failParse(b); IASTProblemDeclaration pd = createProblemDeclaration(); pd.setProblem(p); ((CASTNode) pd).setOffsetAndLength(((CASTNode) p).getOffset(), ((CASTNode) p).getLength()); p.setParent(pd); p.setPropertyInParent(IASTProblemHolder.PROBLEM); pd.setParent(translationUnit); pd.setPropertyInParent(IASTTranslationUnit.OWNED_DECLARATION); translationUnit.addDeclaration(pd); errorHandling(); if (lastBacktrack != -1 && lastBacktrack == LA(1).hashCode()) { failParseWithErrorHandling(); } else { lastBacktrack = LA(1).hashCode(); } } catch (EndOfFileException e) { break; } } catch (OutOfMemoryError oome) { logThrowable("translationUnit", oome); throw oome; } catch (Exception e) { logException("translationUnit", e); try { failParseWithErrorHandling(); } catch (EndOfFileException e3) { } } catch (ParseError perr) { throw perr; } catch (Throwable e) { logThrowable("translationUnit", e); try { failParseWithErrorHandling(); } catch (EndOfFileException e3) { } } } }
|
int lastBacktrack = -1; while (true) { try { int checkOffset = LA(1).hashCode(); IASTDeclaration d = declaration(); d.setParent(translationUnit); d.setPropertyInParent(IASTTranslationUnit.OWNED_DECLARATION); translationUnit.addDeclaration(d); if (LA(1).hashCode() == checkOffset) failParseWithErrorHandling(); } catch (EndOfFileException e) { if (translationUnit.getDeclarations().length != 0) { CASTNode d = (CASTNode) translationUnit.getDeclarations()[translationUnit .getDeclarations().length - 1]; ((CASTNode) translationUnit).setLength(d.getOffset() + d.getLength()); } else ((CASTNode) translationUnit).setLength(0); break; } catch (BacktrackException b) { try { IASTProblem p = failParse(b); IASTProblemDeclaration pd = createProblemDeclaration(); pd.setProblem(p); ((CASTNode) pd).setOffsetAndLength(((CASTNode) p) .getOffset(), ((CASTNode) p).getLength()); p.setParent(pd); p.setPropertyInParent(IASTProblemHolder.PROBLEM); pd.setParent(translationUnit); pd .setPropertyInParent(IASTTranslationUnit.OWNED_DECLARATION); translationUnit.addDeclaration(pd); errorHandling(); if (lastBacktrack != -1 && lastBacktrack == LA(1).hashCode()) { failParseWithErrorHandling(); } else { lastBacktrack = LA(1).hashCode(); } } catch (EndOfFileException e) { break; } } catch (OutOfMemoryError oome) { logThrowable("translationUnit", oome); throw oome; } catch (Exception e) { logException("translationUnit", e); try { failParseWithErrorHandling(); } catch (EndOfFileException e3) { } } catch (ParseError perr) { throw perr; } catch (Throwable e) { logThrowable("translationUnit", e); try { failParseWithErrorHandling(); } catch (EndOfFileException e3) { } } } }
|
protected void translationUnit() { try { translationUnit = createTranslationUnit(); } catch (Exception e2) { logException("translationUnit::createCompilationUnit()", e2); //$NON-NLS-1$ return; } translationUnit.setLocationResolver(scanner.getLocationResolver()); int lastBacktrack = -1; while (true) { try { int checkOffset = LA(1).hashCode(); IASTDeclaration d = declaration(); d.setParent(translationUnit); d.setPropertyInParent(IASTTranslationUnit.OWNED_DECLARATION); translationUnit.addDeclaration(d); if (LA(1).hashCode() == checkOffset) failParseWithErrorHandling(); } catch (EndOfFileException e) { // As expected if (translationUnit.getDeclarations().length != 0) { CASTNode d = (CASTNode) translationUnit.getDeclarations()[translationUnit .getDeclarations().length - 1]; ((CASTNode) translationUnit).setLength(d.getOffset() + d.getLength()); } else ((CASTNode) translationUnit).setLength(0); break; } catch (BacktrackException b) { try { // Mark as failure and try to reach a recovery point IASTProblem p = failParse(b); IASTProblemDeclaration pd = createProblemDeclaration(); pd.setProblem(p); ((CASTNode) pd).setOffsetAndLength(((CASTNode) p).getOffset(), ((CASTNode) p).getLength()); p.setParent(pd); p.setPropertyInParent(IASTProblemHolder.PROBLEM); pd.setParent(translationUnit); pd.setPropertyInParent(IASTTranslationUnit.OWNED_DECLARATION); translationUnit.addDeclaration(pd); errorHandling(); if (lastBacktrack != -1 && lastBacktrack == LA(1).hashCode()) { // we haven't progressed from the // last backtrack // try and find tne next definition failParseWithErrorHandling(); } else { // start again from here lastBacktrack = LA(1).hashCode(); } } catch (EndOfFileException e) { break; } } catch (OutOfMemoryError oome) { logThrowable("translationUnit", oome); //$NON-NLS-1$ throw oome; } catch (Exception e) { logException("translationUnit", e); //$NON-NLS-1$ try { failParseWithErrorHandling(); } catch (EndOfFileException e3) { //nothing } } catch (ParseError perr) { throw perr; } catch (Throwable e) { logThrowable("translationUnit", e); //$NON-NLS-1$ try { failParseWithErrorHandling(); } catch (EndOfFileException e3) { //break; } } } // compilationUnit.exitScope( requestor ); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8d833f012a81dac41a0d33c7e0f047c1dfe415f2/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
4794,
2802,
1435,
288,
1377,
775,
288,
540,
4794,
2802,
273,
752,
6717,
2802,
5621,
1377,
289,
1044,
261,
503,
425,
22,
13,
288,
540,
28483,
2932,
10173,
2802,
2866,
2640,
19184,
2802,
1435,
3113,
425,
22,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
540,
327,
31,
1377,
289,
1377,
4794,
2802,
18,
542,
2735,
4301,
12,
26842,
18,
588,
2735,
4301,
10663,
1377,
509,
1142,
2711,
4101,
273,
300,
21,
31,
1377,
1323,
261,
3767,
13,
288,
540,
775,
288,
5411,
509,
866,
2335,
273,
2928,
12,
21,
2934,
2816,
1085,
5621,
5411,
467,
9053,
6094,
302,
273,
8266,
5621,
5411,
302,
18,
542,
3054,
12,
10173,
2802,
1769,
5411,
302,
18,
542,
1396,
382,
3054,
12,
45,
9053,
6717,
2802,
18,
51,
5665,
2056,
67,
23956,
985,
2689,
1769,
5411,
4794,
2802,
18,
1289,
6094,
12,
72,
1769,
5411,
309,
261,
2534,
12,
21,
2934,
2816,
1085,
1435,
422,
866,
2335,
13,
9079,
2321,
3201,
25104,
14701,
5621,
540,
289,
1044,
261,
23358,
812,
503,
425,
13,
288,
5411,
368,
2970,
2665,
5411,
309,
261,
10173,
2802,
18,
588,
21408,
7675,
2469,
480,
374,
13,
288,
9079,
6425,
882,
907,
302,
273,
261,
21871,
907,
13,
4794,
2802,
18,
588,
21408,
1435,
63,
10173,
2802,
5397,
263,
588,
21408,
7675,
2469,
300,
404,
15533,
9079,
14015,
21871,
907,
13,
4794,
2802,
2934,
542,
1782,
12,
72,
18,
588,
2335,
1435,
5397,
397,
302,
18,
588,
1782,
10663,
5411,
289,
469,
9079,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
918,
4794,
2802,
1435,
288,
1377,
775,
288,
540,
4794,
2802,
273,
752,
6717,
2802,
5621,
1377,
289,
1044,
261,
503,
425,
22,
13,
288,
540,
28483,
2932,
10173,
2802,
2866,
2640,
19184,
2802,
1435,
3113,
425,
22,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
540,
327,
31,
1377,
289,
1377,
4794,
2802,
18,
542,
2735,
4301,
12,
26842,
18,
588,
2735,
4301,
10663,
1377,
509,
1142,
2711,
4101,
273,
300,
21,
31,
1377,
1323,
261,
3767,
13,
288,
540,
775,
288,
5411,
509,
866,
2335,
273,
2928,
12,
21,
2934,
2816,
1085,
5621,
5411,
467,
9053,
6094,
302,
273,
8266,
5621,
5411,
302,
18,
542,
3054,
12,
10173,
2802,
1769,
5411,
302,
18,
542,
1396,
2
] |
Timestamp result = new Timestamp(df.parse(l_sbuf.toString()).getTime());
|
Timestamp result = new Timestamp(df.parse(l_sbuf.toString()).getTime());
|
public static Timestamp toTimestamp(String s, BaseResultSet resultSet, String pgDataType) throws SQLException { BaseResultSet rs = resultSet; if (s == null) return null; // We must be synchronized here incase more theads access the ResultSet // bad practice but possible. Anyhow this is to protect sbuf and // SimpleDateFormat objects synchronized (rs) { StringBuffer l_sbuf = rs.getStringBuffer(); SimpleDateFormat df = null; if ( Driver.logDebug ) Driver.debug("the data from the DB is " + s); // If first time, create the buffer, otherwise clear it. if (l_sbuf == null) l_sbuf = new StringBuffer(32); else { l_sbuf.setLength(0); } // Copy s into sbuf for parsing. l_sbuf.append(s); int slen = s.length(); // For a Timestamp, the fractional seconds are stored in the // nanos field. As a DateFormat is used for parsing which can // only parse to millisecond precision and which returns a // Date object, the fractional second parsing is completely // separate. int nanos = 0; if (slen > 19) { // The len of the ISO string to the second value is 19 chars. If // greater then 19, there may be tz info and perhaps fractional // second info which we need to change to java to read it. // cut the copy to second value "2001-12-07 16:29:22" int i = 19; l_sbuf.setLength(i); char c = s.charAt(i++); if (c == '.') { // Found a fractional value. final int start = i; while (true) { c = s.charAt(i++); if (!Character.isDigit(c)) break; if (i == slen) { i++; break; } } // The range [start, i - 1) contains all fractional digits. final int end = i - 1; try { nanos = Integer.parseInt(s.substring(start, end)); } catch (NumberFormatException e) { throw new PSQLException("postgresql.unusual", e); } // The nanos field stores nanoseconds. Adjust the parsed // value to the correct magnitude. for (int digitsToNano = 9 - (end - start); digitsToNano > 0; --digitsToNano) nanos *= 10; } if (i < slen) { // prepend the GMT part and then add the remaining bit of // the string. l_sbuf.append(" GMT"); l_sbuf.append(c); l_sbuf.append(s.substring(i, slen)); // Lastly, if the tz part doesn't specify the :MM part then // we add ":00" for java. if (slen - i < 5) l_sbuf.append(":00"); // we'll use this dateformat string to parse the result. df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z"); } else { // Just found fractional seconds but no timezone. //If timestamptz then we use GMT, else local timezone if (pgDataType.equals("timestamptz")) { l_sbuf.append(" GMT"); df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z"); } else { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } } } else if (slen == 19) { // No tz or fractional second info. //If timestamptz then we use GMT, else local timezone if (pgDataType.equals("timestamptz")) { l_sbuf.append(" GMT"); df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z"); } else { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } } else { if (slen == 8 && s.equals("infinity")) //java doesn't have a concept of postgres's infinity //so set to an arbitrary future date s = "9999-01-01"; if (slen == 9 && s.equals("-infinity")) //java doesn't have a concept of postgres's infinity //so set to an arbitrary old date s = "0001-01-01"; // We must just have a date. This case is // needed if this method is called on a date // column df = new SimpleDateFormat("yyyy-MM-dd"); } try { // All that's left is to parse the string and return the ts. if ( Driver.logDebug ) Driver.debug("the data after parsing is " + l_sbuf.toString() + " with " + nanos + " nanos"); Timestamp result = new Timestamp(df.parse(l_sbuf.toString()).getTime()); result.setNanos(nanos); return result; } catch (ParseException e) { throw new PSQLException("postgresql.res.badtimestamp", new Integer(e.getErrorOffset()), s); } } }
|
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/05a966fca4a828413da9d3a9d9492d111e176780/AbstractJdbc1ResultSet.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
8159,
358,
4921,
12,
780,
272,
16,
3360,
13198,
12168,
16,
514,
7184,
6273,
13,
202,
15069,
6483,
202,
95,
202,
202,
2171,
13198,
3597,
273,
12168,
31,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
1660,
1297,
506,
3852,
2674,
316,
3593,
1898,
326,
17318,
2006,
326,
10842,
202,
202,
759,
5570,
27164,
1496,
3323,
18,
5502,
13606,
333,
353,
358,
17151,
2393,
696,
471,
202,
202,
759,
17005,
2184,
202,
202,
22043,
261,
5453,
13,
202,
202,
95,
1082,
202,
780,
1892,
328,
67,
87,
4385,
273,
3597,
18,
588,
780,
1892,
5621,
1082,
202,
5784,
11878,
3013,
273,
446,
31,
1082,
202,
430,
261,
9396,
18,
1330,
2829,
262,
9506,
202,
4668,
18,
4148,
2932,
5787,
501,
628,
326,
2383,
353,
315,
397,
272,
1769,
1082,
202,
759,
971,
1122,
813,
16,
752,
326,
1613,
16,
3541,
2424,
518,
18,
1082,
202,
430,
261,
80,
67,
87,
4385,
422,
446,
13,
9506,
202,
80,
67,
87,
4385,
273,
394,
6674,
12,
1578,
1769,
1082,
202,
12107,
1082,
202,
95,
9506,
202,
80,
67,
87,
4385,
18,
542,
1782,
12,
20,
1769,
1082,
202,
97,
1082,
202,
759,
5631,
272,
1368,
2393,
696,
364,
5811,
18,
1082,
202,
80,
67,
87,
4385,
18,
6923,
12,
87,
1769,
1082,
202,
474,
272,
1897,
273,
272,
18,
2469,
5621,
1082,
202,
759,
2457,
279,
8159,
16,
326,
20462,
3974,
854,
4041,
316,
326,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8159,
358,
4921,
12,
780,
272,
16,
3360,
13198,
12168,
16,
514,
7184,
6273,
13,
202,
15069,
6483,
202,
95,
202,
202,
2171,
13198,
3597,
273,
12168,
31,
202,
202,
430,
261,
87,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
759,
1660,
1297,
506,
3852,
2674,
316,
3593,
1898,
326,
17318,
2006,
326,
10842,
202,
202,
759,
5570,
27164,
1496,
3323,
18,
5502,
13606,
333,
353,
358,
17151,
2393,
696,
471,
202,
202,
759,
17005,
2184,
202,
202,
22043,
261,
5453,
13,
202,
202,
95,
1082,
202,
780,
1892,
328,
67,
87,
4385,
273,
3597,
18,
588,
780,
1892,
5621,
1082,
202,
5784,
11878,
3013,
273,
446,
31,
1082,
202,
430,
261,
2
] |
if(i.compareTo(list.tail()) == 0) return;
|
public synchronized void update(UpdatableSortedLinkedListItem i) { Logger.minor(this, "Update("+i+") on "+this); if(i.compareTo(list.tail()) == 0) return; if(i.compareTo(list.tail()) > 0) { list.remove(i); list.push(i); return; } if(i.compareTo(list.head()) < 0) { list.remove(i); list.unshift(i); return; } if(list.head() == list.tail()) { Logger.error(this, "Only 1 element: "+list.head()+" and updating "+i+" on "+this, new Exception("error")); add(i); return; } // Forwards or backwards? UpdatableSortedLinkedListItem next = (UpdatableSortedLinkedListItem) list.next(i); UpdatableSortedLinkedListItem prev = (UpdatableSortedLinkedListItem) list.prev(i); if(next == null || prev == null) { Logger.error(this, "next="+next+" prev="+prev+" for update("+i+") on "+this, new Exception("error")); return; } if(next.compareTo(i) > 0 && prev.compareTo(i) < 0) return; // already exactly where it should be if(next != null && i.compareTo(next) > 0) { // i > next while(true) { prev = next; next = (UpdatableSortedLinkedListItem) list.next(next); if(next == null) { throw new NullPointerException("impossible - we checked"); } if(i.compareTo(next) < 0 && i.compareTo(prev) > 0) { list.remove(i); list.insertNext(prev, i); return; } } } else { // i < next while(true) { next = prev; prev = (UpdatableSortedLinkedListItem) list.prev(prev); if(next == null) { throw new NullPointerException("impossible - we checked"); } if(i.compareTo(next) < 0 && i.compareTo(prev) > 0) { list.remove(i); list.insertNext(prev, i); return; } } } }
|
46731 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46731/8707969864a8fc5c76b305d6a9b5438889fcb044/UpdatableSortedLinkedList.java/buggy/src/freenet/support/UpdatableSortedLinkedList.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
12,
1211,
3404,
429,
11739,
13174,
13575,
277,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
1891,
2932,
15,
77,
15,
7923,
603,
13773,
2211,
1769,
9079,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
13101,
10756,
405,
374,
13,
288,
5411,
666,
18,
4479,
12,
77,
1769,
5411,
666,
18,
6206,
12,
77,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
1978,
10756,
411,
374,
13,
288,
5411,
666,
18,
4479,
12,
77,
1769,
5411,
666,
18,
13858,
12,
77,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
12,
1098,
18,
1978,
1435,
422,
666,
18,
13101,
10756,
288,
5411,
4242,
18,
1636,
12,
2211,
16,
315,
3386,
404,
930,
30,
13773,
1098,
18,
1978,
1435,
9078,
471,
9702,
13773,
77,
9078,
603,
13773,
2211,
16,
394,
1185,
2932,
1636,
7923,
1769,
5411,
527,
12,
77,
1769,
5411,
327,
31,
3639,
289,
3639,
368,
2457,
6397,
578,
12727,
35,
3639,
1948,
3404,
429,
11739,
13174,
13575,
1024,
273,
261,
1211,
3404,
429,
11739,
13174,
13575,
13,
666,
18,
4285,
12,
77,
1769,
3639,
1948,
3404,
429,
11739,
13174,
13575,
2807,
273,
261,
1211,
3404,
429,
11739,
13174,
13575,
13,
666,
18,
10001,
12,
77,
1769,
3639,
309,
12,
4285,
422,
446,
747,
2807,
422,
446,
13,
288,
5411,
4242,
18,
1636,
12,
2211,
16,
315,
4285,
1546,
15,
4285,
9078,
2807,
1546,
15,
10001,
9078,
364,
1089,
2932,
15,
77,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1089,
12,
1211,
3404,
429,
11739,
13174,
13575,
277,
13,
288,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
1891,
2932,
15,
77,
15,
7923,
603,
13773,
2211,
1769,
9079,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
13101,
10756,
405,
374,
13,
288,
5411,
666,
18,
4479,
12,
77,
1769,
5411,
666,
18,
6206,
12,
77,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
12,
77,
18,
9877,
774,
12,
1098,
18,
1978,
10756,
411,
374,
13,
288,
5411,
666,
18,
4479,
12,
77,
1769,
5411,
666,
18,
13858,
12,
77,
1769,
5411,
327,
31,
3639,
289,
3639,
309,
12,
1098,
18,
1978,
1435,
422,
666,
18,
13101,
10756,
288,
5411,
4242,
18,
2
] |
|
if(bp.isForcedBreak()) {
|
if (bp.isForcedBreak()) {
|
public BreakPoss getNextBreakPoss(LayoutContext context) { LayoutManager curLM; // currently active LM while ((curLM = getChildLM()) != null) { // Make break positions and return page break // Set up a LayoutContext BreakPoss bp; LayoutContext childLC = context; if (!curLM.isFinished()) { if ((bp = curLM.getNextBreakPoss(childLC)) != null) { blockBreaks.add(bp); if(bp.isForcedBreak()) { System.out.println("Forced breaks are not allowed in static content"); return null; } } } } setFinished(true); if (blockBreaks.size() > 0) { return new BreakPoss( new LeafPosition(this, blockBreaks.size() - 1)); } return null; }
|
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/72d09f7de3954d6c53f84e79f2049e39f812b3ff/StaticContentLayoutManager.java/clean/src/org/apache/fop/layoutmgr/StaticContentLayoutManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17030,
1616,
87,
6927,
7634,
1616,
87,
12,
3744,
1042,
819,
13,
288,
3639,
9995,
1318,
662,
17063,
31,
368,
4551,
2695,
511,
49,
3639,
1323,
14015,
1397,
17063,
273,
8154,
17063,
10756,
480,
446,
13,
288,
5411,
368,
4344,
898,
6865,
471,
327,
1363,
898,
5411,
368,
1000,
731,
279,
9995,
1042,
5411,
17030,
1616,
87,
9107,
31,
5411,
9995,
1042,
1151,
13394,
273,
819,
31,
5411,
309,
16051,
1397,
17063,
18,
291,
10577,
10756,
288,
7734,
309,
14015,
17152,
273,
662,
17063,
18,
588,
2134,
7634,
1616,
87,
12,
3624,
13394,
3719,
480,
446,
13,
288,
10792,
1203,
26806,
18,
1289,
12,
17152,
1769,
10792,
309,
261,
17152,
18,
291,
1290,
3263,
7634,
10756,
288,
13491,
2332,
18,
659,
18,
8222,
2932,
1290,
3263,
16217,
854,
486,
2935,
316,
760,
913,
8863,
13491,
327,
446,
31,
10792,
289,
7734,
289,
5411,
289,
3639,
289,
3639,
444,
10577,
12,
3767,
1769,
3639,
309,
261,
2629,
26806,
18,
1467,
1435,
405,
374,
13,
288,
5411,
327,
394,
17030,
1616,
87,
12,
2868,
394,
23383,
2555,
12,
2211,
16,
1203,
26806,
18,
1467,
1435,
300,
404,
10019,
3639,
289,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
17030,
1616,
87,
6927,
7634,
1616,
87,
12,
3744,
1042,
819,
13,
288,
3639,
9995,
1318,
662,
17063,
31,
368,
4551,
2695,
511,
49,
3639,
1323,
14015,
1397,
17063,
273,
8154,
17063,
10756,
480,
446,
13,
288,
5411,
368,
4344,
898,
6865,
471,
327,
1363,
898,
5411,
368,
1000,
731,
279,
9995,
1042,
5411,
17030,
1616,
87,
9107,
31,
5411,
9995,
1042,
1151,
13394,
273,
819,
31,
5411,
309,
16051,
1397,
17063,
18,
291,
10577,
10756,
288,
7734,
309,
14015,
17152,
273,
662,
17063,
18,
588,
2134,
7634,
1616,
87,
12,
3624,
13394,
3719,
480,
446,
13,
288,
10792,
1203,
26806,
18,
1289,
12,
17152,
1769,
10792,
309,
261,
17152,
18,
291,
1290,
3263,
7634,
10756,
288,
2
] |
TextMessage tm1 = sess.createTextMessage("hello1"); TextMessage tm2 = sess.createTextMessage("hello2"); TextMessage tm3 = sess.createTextMessage("hello3");
|
TextMessage tm1 = sess.createTextMessage("a"); TextMessage tm2 = sess.createTextMessage("b"); TextMessage tm3 = sess.createTextMessage("c");
|
public void testRedel0() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(true, Session.SESSION_TRANSACTED); MessageProducer prod = sess.createProducer(queue); TextMessage tm1 = sess.createTextMessage("hello1"); TextMessage tm2 = sess.createTextMessage("hello2"); TextMessage tm3 = sess.createTextMessage("hello3"); prod.send(tm1); prod.send(tm2); prod.send(tm3); sess.commit(); MessageConsumer cons1 = sess.createConsumer(queue); TextMessage rm1 = (TextMessage)cons1.receive(1500); assertNotNull(rm1); assertEquals("hello1", rm1.getText()); cons1.close(); MessageConsumer cons2 = sess.createConsumer(queue); sess.commit(); TextMessage rm2 = (TextMessage)cons2.receive(1500); assertNotNull(rm2); assertEquals("hello2", rm2.getText()); TextMessage rm3 = (TextMessage)cons2.receive(1500); assertNotNull(rm3); assertEquals("hello3", rm3.getText()); TextMessage rm4 = (TextMessage)cons2.receive(1500); assertNull(rm4); } finally { if (conn != null) { conn.close(); } } }
|
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/397ef4f4ca297619d7a976503e2912b04d50246f/MessageConsumerTest.java/clean/tests/src/org/jboss/test/messaging/jms/MessageConsumerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
3715,
292,
20,
1435,
1216,
1185,
565,
288,
4202,
4050,
1487,
273,
446,
31,
2868,
775,
4202,
288,
1850,
1487,
273,
6080,
18,
2640,
1952,
5621,
1850,
1487,
18,
1937,
5621,
10792,
3877,
8451,
273,
1487,
18,
2640,
2157,
12,
3767,
16,
3877,
18,
7042,
67,
8989,
5233,
15494,
1769,
1850,
2350,
12140,
10791,
273,
8451,
18,
2640,
12140,
12,
4000,
1769,
1850,
3867,
1079,
6118,
21,
273,
8451,
18,
2640,
1528,
1079,
2932,
23711,
21,
8863,
1850,
3867,
1079,
6118,
22,
273,
8451,
18,
2640,
1528,
1079,
2932,
23711,
22,
8863,
1850,
3867,
1079,
6118,
23,
273,
8451,
18,
2640,
1528,
1079,
2932,
23711,
23,
8863,
1850,
10791,
18,
4661,
12,
16925,
21,
1769,
1850,
10791,
18,
4661,
12,
16925,
22,
1769,
1850,
10791,
18,
4661,
12,
16925,
23,
1769,
1850,
8451,
18,
7371,
5621,
10792,
2350,
5869,
1959,
21,
273,
8451,
18,
2640,
5869,
12,
4000,
1769,
10792,
3867,
1079,
6692,
21,
273,
261,
1528,
1079,
13,
8559,
21,
18,
18149,
12,
3600,
713,
1769,
1850,
25395,
12,
8864,
21,
1769,
1850,
1815,
8867,
2932,
23711,
21,
3113,
6692,
21,
18,
588,
1528,
10663,
10792,
1959,
21,
18,
4412,
5621,
10792,
2350,
5869,
1959,
22,
273,
8451,
18,
2640,
5869,
12,
4000,
1769,
10792,
8451,
18,
7371,
5621,
10792,
3867,
1079,
6692,
22,
273,
261,
1528,
1079,
13,
8559,
22,
18,
18149,
12,
3600,
713,
1769,
1850,
25395,
12,
8864,
22,
1769,
1850,
1815,
8867,
2932,
23711,
22,
3113,
6692,
22,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3715,
292,
20,
1435,
1216,
1185,
565,
288,
4202,
4050,
1487,
273,
446,
31,
2868,
775,
4202,
288,
1850,
1487,
273,
6080,
18,
2640,
1952,
5621,
1850,
1487,
18,
1937,
5621,
10792,
3877,
8451,
273,
1487,
18,
2640,
2157,
12,
3767,
16,
3877,
18,
7042,
67,
8989,
5233,
15494,
1769,
1850,
2350,
12140,
10791,
273,
8451,
18,
2640,
12140,
12,
4000,
1769,
1850,
3867,
1079,
6118,
21,
273,
8451,
18,
2640,
1528,
1079,
2932,
23711,
21,
8863,
1850,
3867,
1079,
6118,
22,
273,
8451,
18,
2640,
1528,
1079,
2932,
23711,
22,
8863,
1850,
3867,
1079,
6118,
23,
273,
8451,
18,
2640,
1528,
1079,
2932,
23711,
23,
8863,
1850,
10791,
18,
4661,
12,
16925,
21,
1769,
2
] |
faultData = createFault(FailureHandling.FAILURE_FAULT_NAME, _self.o, _failureReason);
|
faultData = createFault(FailureHandling.FAILURE_FAULT_NAME, _self.o, _failureReason);
|
private void requireRecovery() { sendEvent(new ActivityFailureEvent(_failureReason)); final ActivityRecoveryChannel recoveryChannel = newChannel(ActivityRecoveryChannel.class); getBpelRuntimeContext().registerActivityForRecovery(recoveryChannel, _self.aId, _failureReason, _lastFailure, _failureData, new String[] { "retry", "cancel", "fault" }, _invoked - 1); object(false, new ActivityRecoveryChannelListener(recoveryChannel) { public void retry() { sendEvent(new ActivityRecoveryEvent("retry")); getBpelRuntimeContext().unregisterActivityForRecovery(recoveryChannel); instance(INVOKE.this); } public void cancel() { sendEvent(new ActivityRecoveryEvent("cancel")); getBpelRuntimeContext().unregisterActivityForRecovery(recoveryChannel); _self.parent.completed(null, CompensationHandler.emptySet()); } public void fault(FaultData faultData) { sendEvent(new ActivityRecoveryEvent("fault")); getBpelRuntimeContext().unregisterActivityForRecovery(recoveryChannel); // TODO: real fault name. if (faultData == null) faultData = createFault(FailureHandling.FAILURE_FAULT_NAME, _self.o, _failureReason); _self.parent.completed(faultData, CompensationHandler.emptySet()); } }.or(new TerminationChannelListener(_self.self) { public void terminate() { getBpelRuntimeContext().unregisterActivityForRecovery(recoveryChannel); _self.parent.completed(null, CompensationHandler.emptySet()); } })); }
|
47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/10abf63eca983e7dd1c20e443c52eb981a8696f1/INVOKE.java/clean/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/INVOKE.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2583,
11548,
1435,
288,
3639,
1366,
1133,
12,
2704,
9621,
5247,
1133,
24899,
12251,
8385,
10019,
3639,
727,
9621,
11548,
2909,
11044,
2909,
273,
394,
2909,
12,
6193,
11548,
2909,
18,
1106,
1769,
3639,
2882,
84,
292,
5576,
1042,
7675,
4861,
6193,
1290,
11548,
12,
23963,
2909,
16,
389,
2890,
18,
69,
548,
16,
389,
12251,
8385,
16,
389,
2722,
5247,
16,
389,
12251,
751,
16,
7734,
394,
514,
8526,
288,
315,
9620,
3113,
315,
10996,
3113,
315,
643,
6,
19879,
389,
5768,
14276,
300,
404,
1769,
3639,
733,
12,
5743,
16,
394,
9621,
11548,
2909,
2223,
12,
23963,
2909,
13,
288,
5411,
1071,
918,
3300,
1435,
288,
7734,
1366,
1133,
12,
2704,
9621,
11548,
1133,
2932,
9620,
7923,
1769,
7734,
2882,
84,
292,
5576,
1042,
7675,
318,
4861,
6193,
1290,
11548,
12,
23963,
2909,
1769,
7734,
791,
12,
706,
17691,
41,
18,
2211,
1769,
5411,
289,
5411,
1071,
918,
3755,
1435,
288,
7734,
1366,
1133,
12,
2704,
9621,
11548,
1133,
2932,
10996,
7923,
1769,
7734,
2882,
84,
292,
5576,
1042,
7675,
318,
4861,
6193,
1290,
11548,
12,
23963,
2909,
1769,
7734,
389,
2890,
18,
2938,
18,
13615,
12,
2011,
16,
5427,
25159,
1503,
18,
5531,
694,
10663,
5411,
289,
5411,
1071,
918,
12530,
12,
7083,
751,
12530,
751,
13,
288,
7734,
1366,
1133,
12,
2704,
9621,
11548,
1133,
2932,
643,
7923,
1769,
7734,
2882,
84,
292,
5576,
1042,
7675,
318,
4861,
6193,
1290,
11548,
12,
23963,
2909,
1769,
7734,
368,
2660,
30,
2863,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2583,
11548,
1435,
288,
3639,
1366,
1133,
12,
2704,
9621,
5247,
1133,
24899,
12251,
8385,
10019,
3639,
727,
9621,
11548,
2909,
11044,
2909,
273,
394,
2909,
12,
6193,
11548,
2909,
18,
1106,
1769,
3639,
2882,
84,
292,
5576,
1042,
7675,
4861,
6193,
1290,
11548,
12,
23963,
2909,
16,
389,
2890,
18,
69,
548,
16,
389,
12251,
8385,
16,
389,
2722,
5247,
16,
389,
12251,
751,
16,
7734,
394,
514,
8526,
288,
315,
9620,
3113,
315,
10996,
3113,
315,
643,
6,
19879,
389,
5768,
14276,
300,
404,
1769,
3639,
733,
12,
5743,
16,
394,
9621,
11548,
2909,
2223,
12,
23963,
2909,
13,
288,
5411,
1071,
918,
3300,
1435,
288,
7734,
1366,
1133,
12,
2704,
9621,
11548,
1133,
2
] |
for (int r = 0; r < nrows ; ++r) {
|
for (int r = 0; r < nrows; ++r) {
|
private boolean positionComponentsExternal(Container parent, int colWidth[], int rowHeight[], int gridHeight, int nrows, int ncols, int maxGrids) { JComponent parentComp = (JComponent)parent; int visibleWidth = (int) parentComp.getVisibleRect().getWidth(); int ncomponents = parent.getComponentCount(); Insets insets = parent.getInsets(); int newsColumn = 0; int internalWidth = visibleWidth - (insets.right + insets.left); int targetHeight = gridHeight / maxGrids; int highestY = 0; int y = insets.top; int componentCellHeight; int componentCellWidth; for (int r = 0; r < nrows ; ++r) { if (cellSizing != ROWCOLPREFERRED) componentCellHeight = largestHeight; else componentCellHeight = rowHeight[r]; int x = insets.left + newsColumn*(gridWidth+gridGap); for (int c = 0; c < ncols ; ++c) { if (cellSizing != ROWCOLPREFERRED) componentCellWidth = largestWidth; else componentCellWidth = colWidth[c]; int i = r * ncols + c; if (i < ncomponents) { positionComponentInCell(parent.getComponent(i), x, y, componentCellWidth, componentCellHeight); if (y + componentCellHeight > highestY) highestY = y + componentCellHeight; } x += componentCellWidth + getHgap(); } y += componentCellHeight + getVgap(); if (y >= targetHeight + insets.top) { y = insets.top; newsColumn++; } } preferredY = highestY + insets.bottom; return true; }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/NewspaperLayout.java/clean/src_new/org/argouml/swingext/NewspaperLayout.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1754,
7171,
6841,
12,
2170,
982,
16,
509,
645,
2384,
63,
6487,
509,
1027,
2686,
63,
6487,
509,
3068,
2686,
16,
509,
18871,
16,
509,
21330,
16,
509,
943,
6313,
87,
13,
288,
3639,
29058,
982,
2945,
273,
261,
46,
1841,
13,
2938,
31,
3639,
509,
6021,
2384,
273,
261,
474,
13,
982,
2945,
18,
588,
6207,
6120,
7675,
588,
2384,
5621,
3639,
509,
290,
8119,
273,
982,
18,
588,
1841,
1380,
5621,
3639,
22300,
23576,
273,
982,
18,
588,
382,
4424,
5621,
3639,
509,
14783,
1494,
273,
374,
31,
3639,
509,
2713,
2384,
273,
6021,
2384,
300,
261,
267,
4424,
18,
4083,
397,
23576,
18,
4482,
1769,
3639,
509,
1018,
2686,
273,
3068,
2686,
342,
943,
6313,
87,
31,
3639,
509,
9742,
61,
273,
374,
31,
3639,
509,
677,
273,
23576,
18,
3669,
31,
3639,
509,
1794,
4020,
2686,
31,
3639,
509,
1794,
4020,
2384,
31,
3639,
364,
261,
474,
436,
273,
374,
31,
436,
411,
18871,
31,
965,
86,
13,
288,
5411,
309,
261,
3855,
55,
6894,
480,
29589,
4935,
3670,
17356,
13,
1794,
4020,
2686,
273,
12756,
2686,
31,
5411,
469,
1794,
4020,
2686,
273,
1027,
2686,
63,
86,
15533,
5411,
509,
619,
273,
23576,
18,
4482,
397,
14783,
1494,
21556,
5222,
2384,
15,
5222,
14001,
1769,
5411,
364,
261,
474,
276,
273,
374,
31,
276,
411,
21330,
274,
965,
71,
13,
288,
7734,
309,
261,
3855,
55,
6894,
480,
29589,
4935,
3670,
17356,
13,
1794,
4020,
2384,
273,
12756,
2384,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1754,
7171,
6841,
12,
2170,
982,
16,
509,
645,
2384,
63,
6487,
509,
1027,
2686,
63,
6487,
509,
3068,
2686,
16,
509,
18871,
16,
509,
21330,
16,
509,
943,
6313,
87,
13,
288,
3639,
29058,
982,
2945,
273,
261,
46,
1841,
13,
2938,
31,
3639,
509,
6021,
2384,
273,
261,
474,
13,
982,
2945,
18,
588,
6207,
6120,
7675,
588,
2384,
5621,
3639,
509,
290,
8119,
273,
982,
18,
588,
1841,
1380,
5621,
3639,
22300,
23576,
273,
982,
18,
588,
382,
4424,
5621,
3639,
509,
14783,
1494,
273,
374,
31,
3639,
509,
2713,
2384,
273,
6021,
2384,
300,
261,
267,
4424,
18,
4083,
397,
23576,
18,
4482,
1769,
3639,
509,
1018,
2686,
273,
3068,
2686,
342,
2
] |
if (concreteClassesInBoth) return 1.0; return 0.7; } if (concreteClassesInBoth) return 0.5; return 0.4; } catch (ClassNotFoundException e) { return 1.0; }
|
return 0.99;
|
public static double deepInstanceOf(JavaClass x, JavaClass y) { try { boolean upcast = Repository.instanceOf( x, y); if (upcast) return 1.0; boolean downcast = Repository.instanceOf(y, x); if (!downcast) { if (x.isFinal() || y.isFinal()) return 0.0; if (!x.isInterface() && !y.isInterface()) return 0.0; } String xName = x.getClassName().replace('/','.'); String yName = y.getClassName().replace('/','.'); Subtypes subtypes= AnalysisContext.currentAnalysisContext().getSubtypes(); Set<JavaClass> xSubtypes = subtypes.getTransitiveSubtypes(x); Set<JavaClass> ySubtypes = subtypes.getTransitiveSubtypes(y); Set<JavaClass> both = new HashSet<JavaClass>(xSubtypes); both.retainAll(ySubtypes); Set<JavaClass> xButNotY = new HashSet<JavaClass>(xSubtypes); xButNotY.removeAll(ySubtypes); boolean concreteClassesInBoth = false; for(JavaClass v : both) if (v.isAbstract()) concreteClassesInBoth = true; boolean concreteClassesInXButNotY = false; for(JavaClass v : xButNotY) if (v.isAbstract()) concreteClassesInXButNotY = true; if (downcast) { if (!concreteClassesInXButNotY) return 1.0; return 0.7; } if (both.isEmpty()) { if (concreteClassesInXButNotY) { return 0.1; } return 0.2; } if (!concreteClassesInXButNotY) { if (concreteClassesInBoth) return 1.0; return 0.7; } if (concreteClassesInBoth) return 0.5; return 0.4; } catch (ClassNotFoundException e) { return 1.0; } }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/9f7d9120a73f0a40e0b92d9c1d1ebe5b9ada0d5b/Analyze.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/Analyze.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1645,
4608,
1442,
951,
12,
5852,
797,
619,
16,
29491,
677,
13,
225,
288,
202,
202,
698,
288,
202,
202,
6494,
731,
4155,
273,
6281,
18,
1336,
951,
12,
619,
16,
677,
1769,
202,
202,
430,
261,
416,
4155,
13,
327,
404,
18,
20,
31,
202,
202,
6494,
2588,
4155,
273,
6281,
18,
1336,
951,
12,
93,
16,
619,
1769,
202,
202,
430,
16051,
2378,
4155,
13,
288,
1082,
202,
430,
261,
92,
18,
291,
7951,
1435,
747,
677,
18,
291,
7951,
10756,
327,
374,
18,
20,
31,
1082,
202,
430,
16051,
92,
18,
291,
1358,
1435,
597,
401,
93,
18,
291,
1358,
10756,
327,
374,
18,
20,
31,
1082,
202,
97,
202,
202,
780,
619,
461,
273,
619,
18,
588,
3834,
7675,
2079,
2668,
19,
17023,
1093,
1769,
202,
202,
780,
677,
461,
273,
677,
18,
588,
3834,
7675,
2079,
2668,
19,
17023,
1093,
1769,
202,
202,
1676,
2352,
720,
2352,
33,
16318,
1042,
18,
2972,
9418,
1042,
7675,
588,
1676,
2352,
5621,
202,
202,
694,
32,
5852,
797,
34,
619,
1676,
2352,
1875,
202,
33,
720,
2352,
18,
588,
1429,
3720,
1676,
2352,
12,
92,
1769,
202,
202,
694,
32,
5852,
797,
34,
677,
1676,
2352,
1875,
202,
33,
720,
2352,
18,
588,
1429,
3720,
1676,
2352,
12,
93,
1769,
202,
202,
694,
32,
5852,
797,
34,
3937,
273,
394,
6847,
32,
5852,
797,
34,
12,
92,
1676,
2352,
1769,
202,
202,
18237,
18,
1349,
530,
1595,
12,
93,
1676,
2352,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1645,
4608,
1442,
951,
12,
5852,
797,
619,
16,
29491,
677,
13,
225,
288,
202,
202,
698,
288,
202,
202,
6494,
731,
4155,
273,
6281,
18,
1336,
951,
12,
619,
16,
677,
1769,
202,
202,
430,
261,
416,
4155,
13,
327,
404,
18,
20,
31,
202,
202,
6494,
2588,
4155,
273,
6281,
18,
1336,
951,
12,
93,
16,
619,
1769,
202,
202,
430,
16051,
2378,
4155,
13,
288,
1082,
202,
430,
261,
92,
18,
291,
7951,
1435,
747,
677,
18,
291,
7951,
10756,
327,
374,
18,
20,
31,
1082,
202,
430,
16051,
92,
18,
291,
1358,
1435,
597,
401,
93,
18,
291,
1358,
10756,
327,
374,
18,
20,
31,
1082,
202,
97,
202,
202,
780,
2
] |
tc.copyFromLocal(new File(argv[i++]), argv[i++]);
|
tc.copyFromLocal(new Path(argv[i++]), argv[i++]);
|
public static void main(String argv[]) throws IOException { if (argv.length < 1) { System.out.println("Usage: java DFSShell [-local | -dfs <namenode:port>]" + " [-ls <path>] [-lsr <path>] [-du <path>] [-mv <src> <dst>] [-cp <src> <dst>] [-rm <src>]" + " [-put <localsrc> <dst>] [-copyFromLocal <localsrc> <dst>] [-moveFromLocal <localsrc> <dst>]" + " [-get <src> <localdst>] [-cat <src>] [-copyToLocal <src> <localdst>] [-moveToLocal <src> <localdst>]" + " [-mkdir <path>] [-report]"); return; } Configuration conf = new Configuration(); int i = 0; FileSystem fs = FileSystem.parseArgs(argv, i, conf); String cmd = argv[i++]; try { DFSShell tc = new DFSShell(fs); if ("-put".equals(cmd) || "-copyFromLocal".equals(cmd)) { tc.copyFromLocal(new File(argv[i++]), argv[i++]); } else if ("-moveFromLocal".equals(cmd)) { tc.moveFromLocal(new File(argv[i++]), argv[i++]); } else if ("-get".equals(cmd) || "-copyToLocal".equals(cmd)) { tc.copyToLocal(argv[i++], new File(argv[i++])); } else if ("-cat".equals(cmd)) { tc.cat(argv[i++]); } else if ("-moveToLocal".equals(cmd)) { tc.moveToLocal(argv[i++], new File(argv[i++])); } else if ("-ls".equals(cmd)) { String arg = i < argv.length ? argv[i++] : ""; tc.ls(arg, false); } else if ("-lsr".equals(cmd)) { String arg = i < argv.length ? argv[i++] : ""; tc.ls(arg, true); } else if ("-mv".equals(cmd)) { tc.rename(argv[i++], argv[i++]); } else if ("-cp".equals(cmd)) { tc.copy(argv[i++], argv[i++], conf); } else if ("-rm".equals(cmd)) { tc.delete(argv[i++]); } else if ("-du".equals(cmd)) { String arg = i < argv.length ? argv[i++] : ""; tc.du(arg); } else if ("-mkdir".equals(cmd)) { tc.mkdir(argv[i++]); } else if ("-report".equals(cmd)) { tc.report(); } System.exit(0); } catch (IOException e ) { System.err.println( cmd.substring(1) + ": " + e.getLocalizedMessage() ); System.exit(-1); } finally { fs.close(); } }
|
50331 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50331/ee01fef4b4fb82c7492a4a747793839a4d14cd39/DFSShell.java/buggy/src/java/org/apache/hadoop/dfs/DFSShell.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
1216,
1860,
288,
3639,
309,
261,
19485,
18,
2469,
411,
404,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
5357,
30,
2252,
463,
42,
1260,
76,
1165,
23059,
3729,
571,
300,
12381,
411,
17808,
20680,
30,
655,
34,
4279,
397,
10792,
315,
23059,
3251,
411,
803,
34,
65,
23059,
3251,
86,
411,
803,
34,
65,
23059,
2544,
411,
803,
34,
65,
23059,
17509,
411,
4816,
34,
411,
11057,
34,
65,
23059,
4057,
411,
4816,
34,
411,
11057,
34,
65,
23059,
8864,
411,
4816,
34,
4279,
397,
10792,
315,
23059,
458,
411,
3729,
4816,
34,
411,
11057,
34,
65,
23059,
3530,
1265,
2042,
411,
3729,
4816,
34,
411,
11057,
34,
65,
23059,
8501,
1265,
2042,
411,
3729,
4816,
34,
411,
11057,
34,
4279,
397,
5397,
315,
23059,
588,
411,
4816,
34,
411,
3729,
11057,
34,
65,
23059,
2574,
411,
4816,
34,
65,
23059,
3530,
774,
2042,
411,
4816,
34,
411,
3729,
11057,
34,
65,
23059,
8501,
774,
2042,
411,
4816,
34,
411,
3729,
11057,
34,
4279,
397,
10792,
315,
23059,
26686,
411,
803,
34,
65,
23059,
6006,
4279,
1769,
5411,
327,
31,
3639,
289,
3639,
4659,
2195,
273,
394,
4659,
5621,
3639,
509,
277,
273,
374,
31,
3639,
10931,
2662,
273,
10931,
18,
2670,
2615,
12,
19485,
16,
277,
16,
2195,
1769,
3639,
514,
1797,
273,
5261,
63,
77,
9904,
15533,
3639,
775,
288,
5411,
463,
42,
1260,
76,
1165,
1715,
273,
394,
463,
42,
1260,
76,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5261,
63,
5717,
1216,
1860,
288,
3639,
309,
261,
19485,
18,
2469,
411,
404,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
5357,
30,
2252,
463,
42,
1260,
76,
1165,
23059,
3729,
571,
300,
12381,
411,
17808,
20680,
30,
655,
34,
4279,
397,
10792,
315,
23059,
3251,
411,
803,
34,
65,
23059,
3251,
86,
411,
803,
34,
65,
23059,
2544,
411,
803,
34,
65,
23059,
17509,
411,
4816,
34,
411,
11057,
34,
65,
23059,
4057,
411,
4816,
34,
411,
11057,
34,
65,
23059,
8864,
411,
4816,
34,
4279,
397,
10792,
315,
23059,
458,
411,
3729,
4816,
34,
411,
11057,
34,
65,
23059,
3530,
1265,
2042,
411,
3729,
4816,
34,
411,
11057,
2
] |
setEnabled(true); return;
|
enabled= textHasContent(text);
|
public void update() { ITextSelection selection= (ITextSelection)fEditor.getSelectionProvider().getSelection(); String text= selection.getText(); if (text != null) { setEnabled(true); return; } setEnabled(false); }
|
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/192d320d5ec5024fa05eeca0fc631168bba5c344/SnippetAction.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/snippeteditor/SnippetAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
1435,
288,
202,
202,
1285,
408,
6233,
4421,
33,
261,
1285,
408,
6233,
13,
74,
6946,
18,
588,
6233,
2249,
7675,
588,
6233,
5621,
202,
202,
780,
977,
33,
4421,
18,
588,
1528,
5621,
202,
202,
430,
261,
955,
480,
446,
13,
288,
1082,
202,
542,
1526,
12,
3767,
1769,
1082,
202,
2463,
31,
202,
202,
97,
3196,
202,
542,
1526,
12,
5743,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
1435,
288,
202,
202,
1285,
408,
6233,
4421,
33,
261,
1285,
408,
6233,
13,
74,
6946,
18,
588,
6233,
2249,
7675,
588,
6233,
5621,
202,
202,
780,
977,
33,
4421,
18,
588,
1528,
5621,
202,
202,
430,
261,
955,
480,
446,
13,
288,
1082,
202,
542,
1526,
12,
3767,
1769,
1082,
202,
2463,
31,
202,
202,
97,
3196,
202,
542,
1526,
12,
5743,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
B = unHex(str.charAt(k + 1)) * 16
|
B = unHex(str.charAt(k + 1)) * 16
|
private static String decode(Context cx, String str, String reservedSet) { int start, k = 0; char C, H; int V; int B; char[] octets = new char[6]; StringBuffer R; int j, n; R = new StringBuffer(); while (k < str.length()) { C = str.charAt(k); if (C == '%') { start = k; if ((k + 2) >= str.length()) throw cx.reportRuntimeError0("msg.bad.uri"); if (!isHex(str.charAt(k + 1)) || !isHex(str.charAt(k + 2))) throw cx.reportRuntimeError0("msg.bad.uri"); B = unHex(str.charAt(k + 1)) * 16 + unHex(str.charAt(k + 2)); k += 2; if ((B & 0x80) == 0) C = (char)B; else { n = 1; while ((B & (0x80 >>> n)) != 0) n++; if ((n == 1) || (n > 6)) throw cx.reportRuntimeError0("msg.bad.uri"); octets[0] = (char)B; if ((k + 3 * (n - 1)) >= str.length()) throw cx.reportRuntimeError0("msg.bad.uri"); for (j = 1; j < n; j++) { k++; if (str.charAt(k) != '%') throw cx.reportRuntimeError0("msg.bad.uri"); if (!isHex(str.charAt(k + 1)) || !isHex(str.charAt(k + 2))) throw cx.reportRuntimeError0("msg.bad.uri"); B = unHex(str.charAt(k + 1)) * 16 + unHex(str.charAt(k + 2)); if ((B & 0xC0) != 0x80) throw cx.reportRuntimeError0("msg.bad.uri"); k += 2; octets[j] = (char)B; } V = utf8ToOneUcs4Char(octets, n); if (V >= 0x10000) { V -= 0x10000; if (V > 0xFFFFF) throw cx.reportRuntimeError0("msg.bad.uri"); C = (char)((V & 0x3FF) + 0xDC00); H = (char)((V >>> 10) + 0xD800); R.append(H); } else C = (char)V; } if (reservedSet.indexOf(C) != -1) { for (int x = 0; x < (k - start + 1); x++) R.append(str.charAt(start + x)); } else R.append(C); } else R.append(C); k++; } return R.toString(); }
|
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/a1533279872a6c65d41bd29b1e77db622abb6671/NativeGlobal.java/buggy/js/rhino/src/org/mozilla/javascript/NativeGlobal.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
2495,
12,
1042,
9494,
16,
514,
609,
16,
514,
8735,
694,
13,
288,
3639,
509,
787,
16,
417,
273,
374,
31,
3639,
1149,
385,
16,
670,
31,
3639,
509,
776,
31,
3639,
509,
605,
31,
3639,
1149,
8526,
25497,
273,
394,
1149,
63,
26,
15533,
3639,
6674,
534,
31,
3639,
509,
525,
16,
290,
31,
3639,
534,
273,
394,
6674,
5621,
3639,
1323,
261,
79,
411,
609,
18,
2469,
10756,
288,
5411,
385,
273,
609,
18,
3001,
861,
12,
79,
1769,
5411,
309,
261,
39,
422,
1995,
6134,
288,
7734,
787,
273,
417,
31,
7734,
309,
14015,
79,
397,
576,
13,
1545,
609,
18,
2469,
10756,
10792,
604,
9494,
18,
6006,
5576,
668,
20,
2932,
3576,
18,
8759,
18,
1650,
8863,
7734,
309,
16051,
291,
7037,
12,
701,
18,
3001,
861,
12,
79,
397,
404,
3719,
747,
401,
291,
7037,
12,
701,
18,
3001,
861,
12,
79,
397,
576,
20349,
10792,
604,
9494,
18,
6006,
5576,
668,
20,
2932,
3576,
18,
8759,
18,
1650,
8863,
7734,
605,
273,
640,
7037,
12,
701,
18,
3001,
861,
12,
79,
397,
404,
3719,
380,
2872,
397,
640,
7037,
12,
701,
18,
3001,
861,
12,
79,
397,
576,
10019,
7734,
417,
1011,
576,
31,
7734,
309,
14015,
38,
473,
374,
92,
3672,
13,
422,
374,
13,
10792,
385,
273,
261,
3001,
13,
38,
31,
7734,
469,
288,
10792,
290,
273,
404,
31,
10792,
1323,
14015,
38,
473,
261,
20,
92,
3672,
4080,
290,
3719,
480,
374,
13,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
514,
2495,
12,
1042,
9494,
16,
514,
609,
16,
514,
8735,
694,
13,
288,
3639,
509,
787,
16,
417,
273,
374,
31,
3639,
1149,
385,
16,
670,
31,
3639,
509,
776,
31,
3639,
509,
605,
31,
3639,
1149,
8526,
25497,
273,
394,
1149,
63,
26,
15533,
3639,
6674,
534,
31,
3639,
509,
525,
16,
290,
31,
3639,
534,
273,
394,
6674,
5621,
3639,
1323,
261,
79,
411,
609,
18,
2469,
10756,
288,
5411,
385,
273,
609,
18,
3001,
861,
12,
79,
1769,
5411,
309,
261,
39,
422,
1995,
6134,
288,
7734,
787,
273,
417,
31,
7734,
309,
14015,
79,
397,
576,
13,
1545,
609,
18,
2469,
10756,
10792,
604,
9494,
18,
6006,
5576,
668,
20,
2932,
2
] |
public void parse() throws IOException, UnsupportedChromatogramFormatException {
|
public void parse() throws IOException, UnsupportedChromatogramFormatException {
|
public void parse() throws IOException, UnsupportedChromatogramFormatException { parsed = false; // sort the sections of the file by ascending offset Integer SAMPLES = new Integer(0), BASES = new Integer(1), COMMENTS = new Integer(2), PRIVATE = new Integer(3); TreeMap sectionOrder = new TreeMap(); sectionOrder.put(new Long(header.samples_offset), SAMPLES); sectionOrder.put(new Long(header.bases_offset), BASES); sectionOrder.put(new Long(header.comments_offset), COMMENTS); sectionOrder.put(new Long(header.private_offset), PRIVATE); for (Iterator it = sectionOrder.keySet().iterator() ; it.hasNext() ;) { Integer sect = (Integer) sectionOrder.get(it.next()); if (sect == SAMPLES) parseSamples(); else if (sect == BASES) parseBases(); else if (sect == COMMENTS) parseComments(); else if (sect == PRIVATE) parsePrivate(); } parsed = true; }
|
50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/eb6d8b74a887e2fafe71e2381fbc7ea25ca32c73/SCF.java/buggy/src/org/biojava/bio/program/scf/SCF.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1109,
1435,
1216,
1860,
16,
7221,
30761,
270,
5553,
9291,
288,
5411,
2707,
273,
629,
31,
5411,
368,
1524,
326,
7178,
434,
326,
585,
635,
13976,
1384,
5411,
2144,
348,
8900,
11386,
225,
273,
394,
2144,
12,
20,
3631,
10792,
10250,
55,
565,
273,
394,
2144,
12,
21,
3631,
10792,
19400,
55,
273,
394,
2144,
12,
22,
3631,
10792,
23685,
225,
273,
394,
2144,
12,
23,
1769,
5411,
16381,
2442,
2448,
273,
394,
16381,
5621,
5411,
2442,
2448,
18,
458,
12,
2704,
3407,
12,
3374,
18,
7319,
67,
3348,
3631,
225,
348,
8900,
11386,
1769,
5411,
2442,
2448,
18,
458,
12,
2704,
3407,
12,
3374,
18,
18602,
67,
3348,
3631,
565,
10250,
55,
1769,
5411,
2442,
2448,
18,
458,
12,
2704,
3407,
12,
3374,
18,
9231,
67,
3348,
3631,
19400,
55,
1769,
5411,
2442,
2448,
18,
458,
12,
2704,
3407,
12,
3374,
18,
1152,
67,
3348,
3631,
225,
23685,
1769,
5411,
364,
261,
3198,
518,
273,
2442,
2448,
18,
856,
694,
7675,
9838,
1435,
274,
518,
18,
5332,
2134,
1435,
274,
13,
288,
7734,
2144,
29140,
273,
261,
4522,
13,
2442,
2448,
18,
588,
12,
305,
18,
4285,
10663,
7734,
309,
1377,
261,
5709,
422,
348,
8900,
11386,
13,
225,
1109,
13239,
5621,
7734,
469,
309,
261,
5709,
422,
10250,
55,
13,
565,
1109,
38,
3304,
5621,
7734,
469,
309,
261,
5709,
422,
19400,
55,
13,
1109,
9051,
5621,
7734,
469,
309,
261,
5709,
422,
23685,
13,
225,
1109,
6014,
5621,
5411,
289,
5411,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1109,
1435,
1216,
1860,
16,
7221,
30761,
270,
5553,
9291,
288,
5411,
2707,
273,
629,
31,
5411,
368,
1524,
326,
7178,
434,
326,
585,
635,
13976,
1384,
5411,
2144,
348,
8900,
11386,
225,
273,
394,
2144,
12,
20,
3631,
10792,
10250,
55,
565,
273,
394,
2144,
12,
21,
3631,
10792,
19400,
55,
273,
394,
2144,
12,
22,
3631,
10792,
23685,
225,
273,
394,
2144,
12,
23,
1769,
5411,
16381,
2442,
2448,
273,
394,
16381,
5621,
5411,
2442,
2448,
18,
458,
12,
2704,
3407,
12,
3374,
18,
7319,
67,
3348,
3631,
225,
348,
8900,
11386,
1769,
5411,
2442,
2448,
18,
458,
12,
2704,
3407,
12,
3374,
18,
18602,
67,
3348,
3631,
565,
10250,
55,
1769,
5411,
2442,
2
] |
public AliveObstacle(String name, Point3d position, Vector3d heading) { this.name = name; this.pos = position; this.head = heading; this.views = new ArrayList<ViewPlatform>(); initBG(); this.setPosition(this.pos); this.setHeading(this.head); }
|
49082 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49082/f67f2ce500c0650f1156cddabad1912a044f5e91/AliveObstacle.java/buggy/ctSim/model/AliveObstacle.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2262,
688,
10516,
334,
16066,
12,
780,
508,
16,
4686,
23,
72,
1754,
16,
5589,
23,
72,
11053,
13,
288,
9506,
202,
2211,
18,
529,
273,
508,
31,
202,
202,
2211,
18,
917,
273,
1754,
31,
202,
202,
2211,
18,
1978,
273,
11053,
31,
9506,
202,
2211,
18,
7061,
273,
394,
2407,
32,
1767,
8201,
34,
5621,
9506,
202,
2738,
30098,
5621,
9506,
202,
2211,
18,
542,
2555,
12,
2211,
18,
917,
1769,
202,
202,
2211,
18,
542,
21867,
12,
2211,
18,
1978,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2262,
688,
10516,
334,
16066,
12,
780,
508,
16,
4686,
23,
72,
1754,
16,
5589,
23,
72,
11053,
13,
288,
9506,
202,
2211,
18,
529,
273,
508,
31,
202,
202,
2211,
18,
917,
273,
1754,
31,
202,
202,
2211,
18,
1978,
273,
11053,
31,
9506,
202,
2211,
18,
7061,
273,
394,
2407,
32,
1767,
8201,
34,
5621,
9506,
202,
2738,
30098,
5621,
9506,
202,
2211,
18,
542,
2555,
12,
2211,
18,
917,
1769,
202,
202,
2211,
18,
542,
21867,
12,
2211,
18,
1978,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
||
public static File download(Picture p, Dimension d, StatusUpdate su) {
|
public static File download(Picture p, Dimension d, StatusUpdate su, CancellableTransferListener tl) {
|
public static File download(Picture p, Dimension d, StatusUpdate su) { URL pictureUrl = null; //Dimension pictureDimension = null; File f; String filename; LocalInfo fullInfo = getLocalFilenameForPicture(p, true); if (p.getSizeResized() != null) { LocalInfo resizedInfo = getLocalFilenameForPicture(p, false); if (d.width > p.getSizeResized().width || d.height > p.getSizeResized().height || fullInfo.file.exists()) { pictureUrl = p.getUrlFull(); //pictureDimension = p.getSizeFull(); f = fullInfo.file; filename = fullInfo.filename; } else { pictureUrl = p.getUrlResized(); //pictureDimension = p.getSizeResized(); f = resizedInfo.file; filename = resizedInfo.filename; } } else { pictureUrl = p.getUrlFull(); //pictureDimension = p.getSizeFull(); f = fullInfo.file; filename = fullInfo.filename; } Log.log(Log.LEVEL_TRACE, MODULE, "Going to download " + pictureUrl); try { URLConnection conn = pictureUrl.openConnection(); int size = conn.getContentLength(); if (f.exists()) { Log.log(Log.LEVEL_TRACE, MODULE, filename + " already existed: no need to download it again"); return f; } su.startProgress(StatusUpdate.LEVEL_BACKGROUND, 0, size, GRI18n.getString(MODULE, "down.start", new Object[]{filename}), false); Log.log(Log.LEVEL_TRACE, MODULE, "Saving to " + f.getPath()); BufferedInputStream in = new BufferedInputStream(conn.getInputStream()); BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(f)); byte[] buffer = new byte[2000]; int l; int dl = 0; long t = -1; long start = System.currentTimeMillis(); while ((l = in.read(buffer)) != -1) { out.write(buffer, 0, l); dl += l; long now = System.currentTimeMillis(); if (t != -1 && now - t > 1000) { su.updateProgressValue(StatusUpdate.LEVEL_BACKGROUND, dl); su.updateProgressStatus(StatusUpdate.LEVEL_BACKGROUND, GRI18n.getString(MODULE, "down.progress", new Object[]{filename, new Integer(dl / 1024), new Integer(size / 1024), new Integer((int) (dl / (now - start) * 1000 / 1024))})); t = now; } if (t == -1) { t = now; } } in.close(); out.flush(); out.close(); su.stopProgress(StatusUpdate.LEVEL_BACKGROUND, GRI18n.getString(MODULE, "down.end", new Object[]{filename})); } catch (IOException e) { Log.logException(Log.LEVEL_ERROR, MODULE, e); f = null; su.stopProgress(StatusUpdate.LEVEL_BACKGROUND, "Downloading failed"); } return f; }
|
9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/72da36bad06acb6f1dc8ed3bafeee01cb707715d/ImageUtils.java/clean/com/gallery/GalleryRemote/util/ImageUtils.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
1387,
4224,
12,
24061,
293,
16,
13037,
302,
16,
2685,
1891,
1597,
13,
288,
202,
202,
1785,
15406,
1489,
273,
446,
31,
202,
202,
759,
8611,
15406,
8611,
273,
446,
31,
202,
202,
812,
284,
31,
202,
202,
780,
1544,
31,
202,
202,
2042,
966,
1983,
966,
273,
6993,
5359,
1290,
24061,
12,
84,
16,
638,
1769,
202,
202,
430,
261,
84,
18,
588,
1225,
607,
1235,
1435,
480,
446,
13,
288,
1082,
202,
2042,
966,
21615,
966,
273,
6993,
5359,
1290,
24061,
12,
84,
16,
629,
1769,
1082,
202,
430,
261,
72,
18,
2819,
405,
293,
18,
588,
1225,
607,
1235,
7675,
2819,
747,
302,
18,
4210,
405,
293,
18,
588,
1225,
607,
1235,
7675,
4210,
6862,
202,
20081,
1983,
966,
18,
768,
18,
1808,
10756,
288,
9506,
202,
21126,
1489,
273,
293,
18,
588,
1489,
5080,
5621,
9506,
202,
759,
21126,
8611,
273,
293,
18,
588,
1225,
5080,
5621,
9506,
202,
74,
273,
1983,
966,
18,
768,
31,
9506,
202,
3459,
273,
1983,
966,
18,
3459,
31,
1082,
202,
97,
469,
288,
9506,
202,
21126,
1489,
273,
293,
18,
588,
1489,
607,
1235,
5621,
9506,
202,
759,
21126,
8611,
273,
293,
18,
588,
1225,
607,
1235,
5621,
9506,
202,
74,
273,
21615,
966,
18,
768,
31,
9506,
202,
3459,
273,
21615,
966,
18,
3459,
31,
1082,
202,
97,
202,
202,
97,
469,
288,
1082,
202,
21126,
1489,
273,
293,
18,
588,
1489,
5080,
5621,
1082,
202,
759,
21126,
8611,
273,
293,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1387,
4224,
12,
24061,
293,
16,
13037,
302,
16,
2685,
1891,
1597,
13,
288,
202,
202,
1785,
15406,
1489,
273,
446,
31,
202,
202,
759,
8611,
15406,
8611,
273,
446,
31,
202,
202,
812,
284,
31,
202,
202,
780,
1544,
31,
202,
202,
2042,
966,
1983,
966,
273,
6993,
5359,
1290,
24061,
12,
84,
16,
638,
1769,
202,
202,
430,
261,
84,
18,
588,
1225,
607,
1235,
1435,
480,
446,
13,
288,
1082,
202,
2042,
966,
21615,
966,
273,
6993,
5359,
1290,
24061,
12,
84,
16,
629,
1769,
1082,
202,
430,
261,
72,
18,
2819,
405,
293,
18,
588,
1225,
607,
1235,
7675,
2819,
747,
302,
18,
4210,
405,
293,
18,
588,
1225,
607,
1235,
2
] |
if (ch[i] > '\u00ff') {
|
if (ch[i] > '\u0080') {
|
private void escapeCharacters(char[] ch, int off, int len) throws SAXException { int limit = off + len; int offset = off; if (limit > ch.length) limit = ch.length;; // Step through characters and escape all special characters for (int i = off; i < limit; i++) { switch (ch[i]) { case '&': _saxHandler.characters(ch, offset, i - offset); _saxHandler.characters(AMP, 0, AMP_length); offset = i + 1; break; case '<': _saxHandler.characters(ch, offset, i - offset); _saxHandler.characters(LT, 0, LT_length); offset = i + 1; break; case '>': _saxHandler.characters(ch, offset, i - offset); _saxHandler.characters(GT, 0, GT_length); offset = i + 1; break; case '\u00a0': _saxHandler.characters(ch, offset, i - offset); _saxHandler.characters(NBSP, 0, NBSP_length); offset = i + 1; break; default: // Escape all characters not in the basic ASCII character set // to simple (hexadecimal) character references if (ch[i] > '\u00ff') { StringBuffer buf = new StringBuffer(CHAR_ESC_START); buf.append(Integer.toString((int)ch[i])); buf.append(';'); final String esc = buf.toString(); final char[] chars = esc.toCharArray(); final int strlen = esc.length(); _saxHandler.characters(ch, offset, i - offset); _saxHandler.characters(chars, 0, strlen); offset = i + 1; } } } // Output remaining characters (that do not need escaping). if (offset < limit) _saxHandler.characters(ch, offset, limit - offset); }
|
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/efc5a1e511d20262017d00ca6c5aeb9383b74c32/TextOutput.java/buggy/src/org/apache/xalan/xsltc/runtime/TextOutput.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4114,
11600,
12,
3001,
8526,
462,
16,
509,
3397,
16,
509,
562,
13,
202,
15069,
14366,
288,
202,
474,
1800,
273,
3397,
397,
562,
31,
202,
474,
1384,
273,
3397,
31,
202,
430,
261,
3595,
405,
462,
18,
2469,
13,
1800,
273,
462,
18,
2469,
25708,
202,
759,
8693,
3059,
3949,
471,
4114,
777,
4582,
3949,
202,
1884,
261,
474,
277,
273,
3397,
31,
277,
411,
1800,
31,
277,
27245,
288,
202,
565,
1620,
261,
343,
63,
77,
5717,
288,
202,
565,
648,
5183,
4278,
202,
202,
67,
87,
651,
1503,
18,
20558,
12,
343,
16,
1384,
16,
277,
300,
1384,
1769,
202,
202,
67,
87,
651,
1503,
18,
20558,
12,
8900,
16,
374,
16,
432,
4566,
67,
2469,
1769,
202,
202,
3348,
273,
277,
397,
404,
31,
202,
202,
8820,
31,
202,
565,
648,
2368,
4278,
202,
202,
67,
87,
651,
1503,
18,
20558,
12,
343,
16,
1384,
16,
277,
300,
1384,
1769,
202,
202,
67,
87,
651,
1503,
18,
20558,
12,
12050,
16,
374,
16,
11807,
67,
2469,
1769,
202,
202,
3348,
273,
277,
397,
404,
31,
202,
202,
8820,
31,
202,
565,
648,
7481,
30,
202,
202,
67,
87,
651,
1503,
18,
20558,
12,
343,
16,
1384,
16,
277,
300,
1384,
1769,
202,
202,
67,
87,
651,
1503,
18,
20558,
12,
16506,
16,
374,
16,
19688,
67,
2469,
1769,
202,
202,
3348,
273,
277,
397,
404,
31,
202,
202,
8820,
31,
202,
565,
648,
2337,
89,
713,
69,
20,
4278,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4114,
11600,
12,
3001,
8526,
462,
16,
509,
3397,
16,
509,
562,
13,
202,
15069,
14366,
288,
202,
474,
1800,
273,
3397,
397,
562,
31,
202,
474,
1384,
273,
3397,
31,
202,
430,
261,
3595,
405,
462,
18,
2469,
13,
1800,
273,
462,
18,
2469,
25708,
202,
759,
8693,
3059,
3949,
471,
4114,
777,
4582,
3949,
202,
1884,
261,
474,
277,
273,
3397,
31,
277,
411,
1800,
31,
277,
27245,
288,
202,
565,
1620,
261,
343,
63,
77,
5717,
288,
202,
565,
648,
5183,
4278,
202,
202,
67,
87,
651,
1503,
18,
20558,
12,
343,
16,
1384,
16,
277,
300,
1384,
1769,
202,
202,
67,
87,
651,
1503,
18,
20558,
12,
8900,
16,
374,
16,
432,
2
] |
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID();
|
public quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { quickfix.field.TradingSessionID value = new quickfix.field.TradingSessionID();
|
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/PositionMaintenanceRequest.java/buggy/src/java/src/quickfix/fix44/PositionMaintenanceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
336,
1609,
7459,
2157,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
336,
1609,
7459,
2157,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
i2 = Integer.parseInt(((CourseMember) o2).getId());
|
i2 = Integer.parseInt(((CourseMember) o2).getUniqname());
|
public int compare ( Object o1, Object o2) { int result = -1; if(m_criterion==null) m_criterion = SORTED_BY_TITLE; /************* for sorting site list *******************/ if (m_criterion.equals (SORTED_BY_TITLE)) { // sorted by the worksite title String s1 = ((Site) o1).getTitle(); String s2 = ((Site) o2).getTitle(); result = s1.compareToIgnoreCase (s2); } else if (m_criterion.equals (SORTED_BY_DESCRIPTION)) { // sorted by the site short description String s1 = ((Site) o1).getShortDescription(); String s2 = ((Site) o2).getShortDescription(); if (s1==null && s2==null) { result = 0; } else if (s2==null) { result = 1; } else if (s1==null) { result = -1; } else { result = s1.compareToIgnoreCase (s2); } } else if (m_criterion.equals (SORTED_BY_TYPE)) { // sorted by the site type String s1 = ((Site) o1).getType(); String s2 = ((Site) o2).getType(); if (s1==null && s2==null) { result = 0; } else if (s2==null) { result = 1; } else if (s1==null) { result = -1; } else { result = s1.compareToIgnoreCase (s2); } } else if (m_criterion.equals (SORTED_BY_OWNER)) { // sorted by the site creator String s1 = ((Site) o1).getProperties().getProperty("CHEF:creator"); String s2 = ((Site) o2).getProperties().getProperty("CHEF:creator"); if (s1==null && s2==null) { result = 0; } else if (s2==null) { result = 1; } else if (s1==null) { result = -1; } else { result = s1.compareToIgnoreCase (s2); } } else if (m_criterion.equals (SORTED_BY_STATUS)) { // sort by the status, published or unpublished int i1 = ((Site)o1).isPublished() ? 1 : 0; int i2 = ((Site)o2).isPublished() ? 1 : 0; if (i1 > i2) { result = 1; } else { result = -1; } } else if (m_criterion.equals (SORTED_BY_JOINABLE)) { // sort by whether the site is joinable or not boolean b1 = ((Site)o1).isJoinable(); boolean b2 = ((Site)o2).isJoinable(); if (b1 == b2) { result = 0; } else if (b1 == true) { result = 1; } else { result = -1; } } else if (m_criterion.equals (SORTED_BY_PARTICIPANT_NAME)) { // sort by whether the site is joinable or not String s1 = null; if (o1.getClass().equals(Participant.class)) { s1 = ((Participant) o1).getName(); } else if (o1.getClass().equals(CourseMember.class)) { s1 = ((CourseMember) o1).getName(); } String s2 = null; if (o2.getClass().equals(Participant.class)) { s2 = ((Participant) o2).getName(); } else if (o2.getClass().equals(CourseMember.class)) { s2 = ((CourseMember) o2).getName(); } if (s1==null && s2==null) { result = 0; } else if (s2==null) { result = 1; } else if (s1==null) { result = -1; } else { result = s1.compareToIgnoreCase (s2); } } else if (m_criterion.equals (SORTED_BY_PARTICIPANT_UNIQNAME)) { // sort by whether the site is joinable or not String s1 = null; if (o1.getClass().equals(Participant.class)) { s1 = ((Participant) o1).getUniqname(); } else if (o1.getClass().equals(CourseMember.class)) { s1 = ((CourseMember) o1).getUniqname(); } String s2 = null; if (o2.getClass().equals(Participant.class)) { s2 = ((Participant) o2).getUniqname(); } else if (o2.getClass().equals(CourseMember.class)) { s2 = ((CourseMember) o2).getUniqname(); } if (s1==null && s2==null) { result = 0; } else if (s2==null) { result = 1; } else if (s1==null) { result = -1; } else { result = s1.compareToIgnoreCase (s2); } } else if (m_criterion.equals (SORTED_BY_PARTICIPANT_ROLE)) { String s1 = ""; if (o1.getClass().equals(Participant.class)) { s1 = ((Participant) o1).getRole(); } else if (o1.getClass().equals(CourseMember.class)) { s1 = ((CourseMember) o1).getRole(); } String s2 = ""; if (o2.getClass().equals(Participant.class)) { s2 = ((Participant) o2).getRole(); } else if (o2.getClass().equals(CourseMember.class)) { s2 = ((CourseMember) o2).getRole(); } if (s1.length() == 0 && s2.length() == 0) { result = 0; } else if (s2.length() == 0) { result = 1; } else if (s1.length() == 0) { result = -1; } else { result = s1.compareToIgnoreCase (s2); } } else if (m_criterion.equals (SORTED_BY_PARTICIPANT_COURSE)) { // sort by whether the site is joinable or not String s1 = null; if (o1.getClass().equals(Participant.class)) { } else if (o1.getClass().equals(CourseMember.class)) { s1 = ((CourseMember) o1).getCourse() + " " + ((CourseMember) o1).getSection(); } String s2 = null; if (o2.getClass().equals(Participant.class)) { } else if (o2.getClass().equals(CourseMember.class)) { s2 = ((CourseMember) o2).getCourse() + " " + ((CourseMember) o2).getSection(); } if (s1==null && s2==null) { result = 0; } else if (s2==null) { result = 1; } else if (s1==null) { result = -1; } else { result = s1.compareToIgnoreCase (s2); } } else if (m_criterion.equals (SORTED_BY_PARTICIPANT_ID)) { int i1 = -1; if (o1.getClass().equals(Participant.class)) { } else if (o1.getClass().equals(CourseMember.class)) { try { i1 = Integer.parseInt(((CourseMember) o1).getId()); } catch (Exception e) {} } int i2 = -1; if (o2.getClass().equals(Participant.class)) { } else if (o2.getClass().equals(CourseMember.class)) { try { i2 = Integer.parseInt(((CourseMember) o2).getId()); } catch (Exception e) {} } if (i1 > i2) { result = 1; } else { result = -1; } } else if (m_criterion.equals (SORTED_BY_PARTICIPANT_CREDITS)) { int i1 = -1; if (o1.getClass().equals(Participant.class)) { } else if (o1.getClass().equals(CourseMember.class)) { try { i1 = Integer.parseInt(((CourseMember) o1).getCredits()); } catch (Exception e) {} } int i2 = -1; if (o2.getClass().equals(Participant.class)) { } else if (o2.getClass().equals(CourseMember.class)) { try { i2 = Integer.parseInt(((CourseMember) o2).getCredits()); } catch (Exception e) {} } if (i1 > i2) { result = 1; } else { result = -1; } } else if (m_criterion.equals (SORTED_BY_CREATION_DATE)) { // sort by the site's creation date Time t1 = null; Time t2 = null; // get the times try { t1 = ((Site)o1).getProperties().getTimeProperty(ResourceProperties.PROP_CREATION_DATE); } catch (EntityPropertyNotDefinedException e) { } catch (EntityPropertyTypeException e) { } try { t2 = ((Site)o2).getProperties().getTimeProperty(ResourceProperties.PROP_CREATION_DATE); } catch (EntityPropertyNotDefinedException e) { } catch (EntityPropertyTypeException e) { } if (t1==null) { result = -1; } else if (t2==null) { result = 1; } else if (t1.before (t2)) { result = -1; } else { result = 1; } } else if (m_criterion.equals (rb.getString("group.title"))) { // sorted by the group title String s1 = ((Group) o1).getTitle(); String s2 = ((Group) o2).getTitle(); result = s1.compareToIgnoreCase (s2); } else if (m_criterion.equals (rb.getString("group.number"))) { // sorted by the group title int n1 = ((Group) o1).getMembers().size(); int n2 = ((Group) o2).getMembers().size(); result = (n1 > n2)?1:-1; } else if (m_criterion.equals (SORTED_BY_MEMBER_NAME)) { // sorted by the member name String s1 = ""; String s2 = ""; try { s1 = UserDirectoryService.getUser(((Member) o1).getUserId()).getSortName(); } catch(Exception ignore) { } try { s2 = UserDirectoryService.getUser(((Member) o2).getUserId()).getSortName(); } catch (Exception ignore) { } result = s1.compareToIgnoreCase (s2); } if(m_asc == null) m_asc = Boolean.TRUE.toString (); // sort ascending or descending if (m_asc.equals (Boolean.FALSE.toString ())) { result = -result; } return result; } // compare
|
52180 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52180/f0c8338e2acb75f515fc89e4417d64954393d26b/SiteAction.java/buggy/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
3400,
261,
1033,
320,
21,
16,
1033,
320,
22,
13,
202,
202,
95,
1082,
202,
474,
563,
273,
300,
21,
31,
25083,
202,
430,
12,
81,
67,
71,
7082,
631,
2011,
13,
312,
67,
71,
7082,
273,
348,
11245,
67,
6486,
67,
14123,
31,
25083,
202,
19,
1644,
23490,
364,
9602,
2834,
666,
380,
2751,
636,
19,
1082,
202,
430,
261,
81,
67,
71,
7082,
18,
14963,
261,
55,
11245,
67,
6486,
67,
14123,
3719,
1082,
202,
95,
9506,
202,
759,
3115,
635,
326,
1440,
4256,
2077,
9506,
202,
780,
272,
21,
273,
14015,
4956,
13,
320,
21,
2934,
588,
4247,
5621,
9506,
202,
780,
272,
22,
273,
14015,
4956,
13,
320,
22,
2934,
588,
4247,
5621,
9506,
202,
2088,
273,
225,
272,
21,
18,
9877,
774,
5556,
261,
87,
22,
1769,
1082,
202,
97,
1082,
202,
12107,
309,
261,
81,
67,
71,
7082,
18,
14963,
261,
55,
11245,
67,
6486,
67,
15911,
3719,
1082,
202,
95,
6862,
9506,
202,
759,
3115,
635,
326,
2834,
3025,
2477,
9506,
202,
780,
272,
21,
273,
14015,
4956,
13,
320,
21,
2934,
588,
4897,
3291,
5621,
9506,
202,
780,
272,
22,
273,
14015,
4956,
13,
320,
22,
2934,
588,
4897,
3291,
5621,
9506,
202,
430,
261,
87,
21,
631,
2011,
597,
272,
22,
631,
2011,
13,
9506,
202,
95,
6862,
202,
2088,
273,
374,
31,
9506,
202,
97,
9506,
202,
12107,
309,
261,
87,
22,
631,
2011,
13,
9506,
202,
95,
6862,
202,
2088,
273,
404,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
509,
3400,
261,
1033,
320,
21,
16,
1033,
320,
22,
13,
202,
202,
95,
1082,
202,
474,
563,
273,
300,
21,
31,
25083,
202,
430,
12,
81,
67,
71,
7082,
631,
2011,
13,
312,
67,
71,
7082,
273,
348,
11245,
67,
6486,
67,
14123,
31,
25083,
202,
19,
1644,
23490,
364,
9602,
2834,
666,
380,
2751,
636,
19,
1082,
202,
430,
261,
81,
67,
71,
7082,
18,
14963,
261,
55,
11245,
67,
6486,
67,
14123,
3719,
1082,
202,
95,
9506,
202,
759,
3115,
635,
326,
1440,
4256,
2077,
9506,
202,
780,
272,
21,
273,
14015,
4956,
13,
320,
21,
2934,
588,
4247,
5621,
9506,
202,
780,
272,
22,
273,
14015,
4956,
13,
320,
22,
2934,
588,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.