rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
fInternalSubset.append(' '); | fInternalSubset.append (' '); | public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException { if (DEBUG_EVENTS) { System.out.println("==>externalEntityDecl: "+name); if (DEBUG_BASEURI) { System.out.println(" expandedSystemId:"+ identifier.getExpandedSystemId()); System.out.println(" baseURI:"+ identifier.getBaseSystemId()); } } // internal subset string String publicId = identifier.getPublicId(); String literalSystemId = identifier.getLiteralSystemId(); if (fInternalSubset != null && !fInDTDExternalSubset) { fInternalSubset.append("<!ENTITY "); if (name.startsWith("%")) { fInternalSubset.append("% "); fInternalSubset.append(name.substring(1)); } else { fInternalSubset.append(name); } fInternalSubset.append(' '); if (publicId != null) { fInternalSubset.append("PUBLIC '"); fInternalSubset.append(publicId); fInternalSubset.append("' '"); } else { fInternalSubset.append("SYSTEM '"); } fInternalSubset.append(literalSystemId); fInternalSubset.append("'>\n"); } // NOTE: We only know how to create these nodes for the Xerces // DOM implementation because DOM Level 2 does not specify // that functionality. -Ac // create full node // don't add parameter entities! if(name.startsWith("%")) return; if (fDocumentType != null) { NamedNodeMap entities = fDocumentType.getEntities(); EntityImpl entity = (EntityImpl)entities.getNamedItem(name); if (entity == null) { entity = (EntityImpl)fDocumentImpl.createEntity(name); entity.setPublicId(publicId); entity.setSystemId(literalSystemId); entity.setBaseURI(identifier.getBaseSystemId()); entities.setNamedItem(entity); } } // create deferred node if (fDocumentTypeIndex != -1) { boolean found = false; int nodeIndex = fDeferredDocumentImpl.getLastChild(fDocumentTypeIndex, false); while (nodeIndex != -1) { short nodeType = fDeferredDocumentImpl.getNodeType(nodeIndex, false); if (nodeType == Node.ENTITY_NODE) { String nodeName = fDeferredDocumentImpl.getNodeName(nodeIndex, false); if (nodeName.equals(name)) { found = true; break; } } nodeIndex = fDeferredDocumentImpl.getRealPrevSibling(nodeIndex, false); } if (!found) { int entityIndex = fDeferredDocumentImpl.createDeferredEntity( name, publicId, literalSystemId, null, identifier.getBaseSystemId()); fDeferredDocumentImpl.appendChild(fDocumentTypeIndex, entityIndex); } } } // externalEntityDecl(String,XMLResourceIdentifier, Augmentations) | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b4cd180911aea48174dc85f3cf80e53272cd1419/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3903,
1943,
3456,
12,
780,
508,
16,
3167,
1420,
3004,
2756,
16,
4766,
282,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
309,
261,
9394,
67,
29221,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
631,
34,
9375,
1943,
3456,
30,
13773,
529,
1769,
5411,
309,
261,
9394,
67,
8369,
3098,
13,
288,
1171,
2332,
18,
659,
18,
8222,
2932,
282,
8406,
3163,
548,
2773,
15,
2756,
18,
588,
17957,
3163,
548,
10663,
7734,
2332,
18,
659,
18,
8222,
2932,
282,
1026,
3098,
2773,
15,
2756,
18,
588,
2171,
3163,
548,
10663,
5411,
289,
3639,
289,
1850,
368,
2713,
7931,
533,
3639,
514,
1071,
548,
273,
2756,
18,
588,
4782,
548,
5621,
3639,
514,
7158,
3163,
548,
273,
2756,
18,
588,
6177,
3163,
548,
5621,
3639,
309,
261,
74,
3061,
20315,
480,
446,
597,
401,
74,
382,
25728,
6841,
20315,
13,
288,
5411,
284,
3061,
20315,
18,
6923,
2932,
5586,
11101,
315,
1769,
5411,
309,
261,
529,
18,
17514,
1190,
2932,
16407,
3719,
288,
7734,
284,
3061,
20315,
18,
6923,
27188,
315,
1769,
7734,
284,
3061,
20315,
18,
6923,
12,
529,
18,
28023,
12,
21,
10019,
5411,
289,
5411,
469,
288,
7734,
284,
3061,
20315,
18,
6923,
12,
529,
1769,
5411,
289,
5411,
284,
3061,
20315,
18,
6923,
7707,
28005,
5411,
309,
261,
482,
548,
480,
446,
13,
288,
7734,
284,
3061,
20315,
18,
6923,
2932,
14939,
2119,
1769,
7734,
284,
3061,
20315,
18,
6923,
12,
482,
548,
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,
3903,
1943,
3456,
12,
780,
508,
16,
3167,
1420,
3004,
2756,
16,
4766,
282,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
309,
261,
9394,
67,
29221,
13,
288,
5411,
2332,
18,
659,
18,
8222,
2932,
631,
34,
9375,
1943,
3456,
30,
13773,
529,
1769,
5411,
309,
261,
9394,
67,
8369,
3098,
13,
288,
1171,
2332,
18,
659,
18,
8222,
2932,
282,
8406,
3163,
548,
2773,
15,
2756,
18,
588,
17957,
3163,
548,
10663,
7734,
2332,
18,
659,
18,
8222,
2932,
282,
1026,
3098,
2773,
15,
2756,
18,
588,
2171,
3163,
548,
10663,
5411,
289,
3639,
289,
1850,
368,
2713,
7931,
533,
3639,
514,
1071,
548,
273,
2756,
18,
588,
4782,
2
] |
rootTreeNode.add(treeNode); | rootTreeNode.add(treeNode) ; | public void addSelectedNode(ActionEvent event) { // new object to add DefaultMutableTreeNode treeNode; NodeUserObject node; // Add the new node under the currently selected. if (selectedNodeObject != null) { // copies node and adds it under the selected node node = selectedNodeObject.copyNode(); // update containing component node.setComponentType(componentToAdd); // set selected to newly added node. selectedNodeObject = node; selectedNode = node.getLabel(); } // otherwise create a new node below the root node. else { treeNode = new DefaultMutableTreeNode(); node = new NodeUserObject(treeNode, this); node.setComponentType(componentToAdd); treeNode.setUserObject(node); selectedNodeObject = node; selectedNode = node.getLabel(); // add the new node to the end of the tree rootTreeNode.add(treeNode); } // update the icons for the newly changes state. updateNodeIcon(node); } | 55530 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55530/3d91282339cca6bd778245b5ad864c1863bed5fd/TreeBean.java/clean/woops2/trunk/src/wilos/presentation/web/TreeBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
7416,
907,
12,
1803,
1133,
871,
13,
288,
202,
202,
759,
394,
733,
358,
527,
202,
202,
1868,
19536,
12513,
29733,
31,
202,
202,
907,
1299,
921,
756,
31,
202,
202,
759,
1436,
326,
394,
756,
3613,
326,
4551,
3170,
18,
202,
202,
430,
261,
8109,
907,
921,
480,
446,
13,
288,
1082,
202,
759,
13200,
756,
471,
4831,
518,
3613,
326,
3170,
756,
1082,
202,
2159,
273,
3170,
907,
921,
18,
3530,
907,
5621,
1082,
202,
759,
1089,
4191,
1794,
1082,
202,
2159,
18,
542,
28116,
12,
4652,
13786,
1769,
1082,
202,
759,
444,
3170,
358,
10894,
3096,
756,
18,
1082,
202,
8109,
907,
921,
273,
756,
31,
1082,
202,
8109,
907,
273,
756,
18,
588,
2224,
5621,
202,
202,
97,
202,
202,
759,
3541,
752,
279,
394,
756,
5712,
326,
1365,
756,
18,
202,
202,
12107,
288,
1082,
202,
3413,
907,
273,
394,
2989,
19536,
12513,
5621,
1082,
202,
2159,
273,
394,
2029,
1299,
921,
12,
3413,
907,
16,
333,
1769,
1082,
202,
2159,
18,
542,
28116,
12,
4652,
13786,
1769,
1082,
202,
3413,
907,
18,
542,
1299,
921,
12,
2159,
1769,
1082,
202,
8109,
907,
921,
273,
756,
31,
1082,
202,
8109,
907,
273,
756,
18,
588,
2224,
5621,
1082,
202,
759,
527,
326,
394,
756,
358,
326,
679,
434,
326,
2151,
1082,
202,
3085,
12513,
18,
1289,
12,
3413,
907,
1769,
202,
202,
97,
202,
202,
759,
1089,
326,
17455,
364,
326,
10894,
3478,
919,
18,
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,
918,
527,
7416,
907,
12,
1803,
1133,
871,
13,
288,
202,
202,
759,
394,
733,
358,
527,
202,
202,
1868,
19536,
12513,
29733,
31,
202,
202,
907,
1299,
921,
756,
31,
202,
202,
759,
1436,
326,
394,
756,
3613,
326,
4551,
3170,
18,
202,
202,
430,
261,
8109,
907,
921,
480,
446,
13,
288,
1082,
202,
759,
13200,
756,
471,
4831,
518,
3613,
326,
3170,
756,
1082,
202,
2159,
273,
3170,
907,
921,
18,
3530,
907,
5621,
1082,
202,
759,
1089,
4191,
1794,
1082,
202,
2159,
18,
542,
28116,
12,
4652,
13786,
1769,
1082,
202,
759,
444,
3170,
358,
10894,
3096,
756,
18,
1082,
202,
8109,
907,
921,
273,
756,
31,
1082,
202,
8109,
907,
273,
2
] |
introspectorCache = new IntrospectorCacheImpl(); introspectorCache.addListener(this); | this.log = log; introspectorCache = new IntrospectorCacheImpl(log); introspectorCache.addListener(this); | protected IntrospectorBase() { introspectorCache = new IntrospectorCacheImpl(); // TODO: Load that from properties. introspectorCache.addListener(this); } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/08925f00fa5f92e40b085894a905bfacb1df0918/IntrospectorBase.java/buggy/src/java/org/apache/velocity/util/introspection/IntrospectorBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3094,
26170,
280,
2171,
1435,
565,
288,
202,
30165,
280,
1649,
273,
394,
3094,
26170,
280,
1649,
2828,
5621,
368,
2660,
30,
4444,
716,
628,
1790,
18,
202,
30165,
280,
1649,
18,
1289,
2223,
12,
2211,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3094,
26170,
280,
2171,
1435,
565,
288,
202,
30165,
280,
1649,
273,
394,
3094,
26170,
280,
1649,
2828,
5621,
368,
2660,
30,
4444,
716,
628,
1790,
18,
202,
30165,
280,
1649,
18,
1289,
2223,
12,
2211,
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,
-100,
-100,
-100,
-100
] |
public AbstractEngineTest(String arg0) { super(arg0); | public AbstractEngineTest() { | public AbstractEngineTest(String arg0) { super(arg0); } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/3293371636bc8e4ff5784d3546ea7244dcd18d20/AbstractEngineTest.java/buggy/modules/core/test/org/apache/axis2/engine/AbstractEngineTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4115,
4410,
4709,
12,
780,
1501,
20,
13,
288,
3639,
2240,
12,
3175,
20,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4115,
4410,
4709,
12,
780,
1501,
20,
13,
288,
3639,
2240,
12,
3175,
20,
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,
-100,
-100,
-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(!isNull(lastArg)){ | if(!ExpressionUtils.isNullLiteral(lastArg)){ | public void visitMethodCallExpression(@NotNull PsiMethodCallExpression call){ super.visitMethodCallExpression(call); final PsiManager manager = call.getManager(); final LanguageLevel languageLevel = manager.getEffectiveLanguageLevel(); if(languageLevel.compareTo(LanguageLevel.JDK_1_5) < 0){ return; } final PsiExpressionList argumentList = call.getArgumentList(); if(argumentList == null){ return; } final PsiExpression[] args = argumentList.getExpressions(); if(args.length == 0){ return; } final PsiExpression lastArg = args[args.length - 1]; if(!isNull(lastArg)){ return; } final PsiMethod method = call.resolveMethod(); if(method == null){ return; } final PsiParameterList parameterList = method.getParameterList(); if(parameterList == null){ return; } final PsiParameter[] parameters = parameterList.getParameters(); if(parameters == null){ return; } if(parameters.length != args.length){ return; } final PsiParameter lastParameter = parameters[parameters.length - 1]; if(!lastParameter.isVarArgs()) { return; } registerError(lastArg); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/e9c925dd88f5fd502839e3e9b91653e39ca4bfce/NullArgumentToVariableArgMethodInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/bugs/NullArgumentToVariableArgMethodInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
12592,
2300,
26964,
5962,
453,
7722,
12592,
2300,
745,
15329,
5411,
2240,
18,
11658,
12592,
2300,
12,
1991,
1769,
5411,
727,
453,
7722,
1318,
3301,
273,
745,
18,
588,
1318,
5621,
5411,
727,
9889,
2355,
2653,
2355,
273,
10792,
3301,
18,
588,
28531,
3779,
2355,
5621,
5411,
309,
12,
4923,
2355,
18,
9877,
774,
12,
3779,
2355,
18,
46,
3398,
67,
21,
67,
25,
13,
411,
374,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
682,
1237,
682,
273,
745,
18,
588,
1379,
682,
5621,
5411,
309,
12,
3446,
682,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
8526,
833,
273,
1237,
682,
18,
588,
8927,
5621,
5411,
309,
12,
1968,
18,
2469,
422,
374,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
1142,
4117,
273,
833,
63,
1968,
18,
2469,
300,
404,
15533,
5411,
309,
12,
5,
2300,
1989,
18,
291,
2041,
6177,
12,
2722,
4117,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
1305,
707,
273,
745,
18,
10828,
1305,
5621,
5411,
309,
12,
2039,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
1662,
682,
1569,
682,
273,
707,
18,
588,
1662,
682,
5621,
5411,
309,
12,
6775,
682,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
1662,
8526,
1472,
273,
1569,
682,
18,
588,
2402,
5621,
5411,
309,
12,
3977,
422,
446,
15329,
7734,
327,
31,
5411,
289,
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,
3757,
12592,
2300,
26964,
5962,
453,
7722,
12592,
2300,
745,
15329,
5411,
2240,
18,
11658,
12592,
2300,
12,
1991,
1769,
5411,
727,
453,
7722,
1318,
3301,
273,
745,
18,
588,
1318,
5621,
5411,
727,
9889,
2355,
2653,
2355,
273,
10792,
3301,
18,
588,
28531,
3779,
2355,
5621,
5411,
309,
12,
4923,
2355,
18,
9877,
774,
12,
3779,
2355,
18,
46,
3398,
67,
21,
67,
25,
13,
411,
374,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
682,
1237,
682,
273,
745,
18,
588,
1379,
682,
5621,
5411,
309,
12,
3446,
682,
422,
446,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
2300,
8526,
833,
273,
1237,
682,
18,
588,
8927,
5621,
2
] |
this(rep, login); if ( getID()<0 || !passwd.equals(getPassword()) ) { throw new KettleDatabaseException("Incorrect password or login!"); } | this.login = login; this.password = password; this.name = name; this.description = description; this.enabled = enabled; this.profile = profile; | public UserInfo(Repository rep, String login, String passwd) throws KettleException { this(rep, login); // Verify the password: if ( getID()<0 || !passwd.equals(getPassword()) ) { throw new KettleDatabaseException("Incorrect password or login!"); } } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/010ce55cc835e24ea0d281df3b9d8fb611398414/UserInfo.java/buggy/kettle/src/be/ibridge/kettle/repository/UserInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
25003,
12,
3305,
2071,
16,
514,
3925,
16,
514,
19093,
13,
202,
202,
15069,
1475,
278,
5929,
503,
202,
95,
202,
202,
2211,
12,
14462,
16,
3925,
1769,
9506,
202,
759,
8553,
326,
2201,
30,
202,
202,
430,
261,
14744,
1435,
32,
20,
747,
401,
24002,
18,
14963,
12,
588,
3913,
10756,
262,
202,
202,
95,
5411,
604,
394,
1475,
278,
5929,
4254,
503,
2932,
16268,
2201,
578,
3925,
4442,
1769,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
25003,
12,
3305,
2071,
16,
514,
3925,
16,
514,
19093,
13,
202,
202,
15069,
1475,
278,
5929,
503,
202,
95,
202,
202,
2211,
12,
14462,
16,
3925,
1769,
9506,
202,
759,
8553,
326,
2201,
30,
202,
202,
430,
261,
14744,
1435,
32,
20,
747,
401,
24002,
18,
14963,
12,
588,
3913,
10756,
262,
202,
202,
95,
5411,
604,
394,
1475,
278,
5929,
4254,
503,
2932,
16268,
2201,
578,
3925,
4442,
1769,
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
] |
itemToEdit = (Item) HandleManager.resolveToObject(context, handle); | DSpaceObject dso = HandleManager.resolveToObject(context, handle); | protected void doDSGet(Context context, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException, AuthorizeException { /* * GET with no parameters displays "find by handle/id" form * parameter item_id -> find and edit item with internal ID item_id * parameter handle -> find and edit corresponding item * if internal ID or Handle are invalid, "find by handle/id" form * is displayed again with error message */ int internalID = UIUtil.getIntParameter(request, "item_id"); String handle = request.getParameter("handle"); boolean showError = false; // See if an item ID or Handle was passed in Item itemToEdit = null; if (internalID > 0) { itemToEdit = Item.find(context, internalID); showError = (itemToEdit == null); } else if (handle != null && !handle.equals("")) { // FIXME: Handles might resolve to other things itemToEdit = (Item) HandleManager.resolveToObject(context, handle); showError = (itemToEdit == null); } // Show edit form if appropriate if (itemToEdit != null) { showEditForm(context, request, response, itemToEdit); } else { if (showError) { request.setAttribute("invalid.id", new Boolean(true)); } JSPManager.showJSP(request, response, "/admin/get-item-id.jsp"); } } | 1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/221d7ca45c4690dc856edfa997a6fbe41573ce7d/EditItemServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/admin/EditItemServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
3948,
967,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288,
3639,
1748,
540,
380,
4978,
598,
1158,
1472,
22461,
315,
4720,
635,
1640,
19,
350,
6,
646,
540,
380,
1569,
761,
67,
350,
317,
1104,
471,
3874,
761,
598,
2713,
1599,
761,
67,
350,
540,
380,
1569,
1640,
317,
1104,
471,
3874,
4656,
761,
540,
380,
309,
2713,
1599,
578,
5004,
854,
2057,
16,
315,
4720,
635,
1640,
19,
350,
6,
646,
540,
380,
353,
10453,
3382,
598,
555,
883,
540,
1195,
3639,
509,
2713,
734,
273,
6484,
1304,
18,
588,
1702,
1662,
12,
2293,
16,
315,
1726,
67,
350,
8863,
3639,
514,
1640,
273,
590,
18,
588,
1662,
2932,
4110,
8863,
3639,
1250,
2405,
668,
273,
629,
31,
3639,
368,
2164,
309,
392,
761,
1599,
578,
5004,
1703,
2275,
316,
3639,
4342,
761,
774,
4666,
273,
446,
31,
3639,
309,
261,
7236,
734,
405,
374,
13,
3639,
288,
5411,
761,
774,
4666,
273,
4342,
18,
4720,
12,
2472,
16,
2713,
734,
1769,
5411,
2405,
668,
273,
261,
1726,
774,
4666,
422,
446,
1769,
3639,
289,
3639,
469,
309,
261,
4110,
480,
446,
597,
401,
4110,
18,
14963,
2932,
6,
3719,
3639,
288,
5411,
368,
9852,
30,
27020,
4825,
2245,
358,
1308,
9198,
5411,
463,
3819,
921,
302,
2048,
273,
5004,
1318,
18,
10828,
19121,
12,
2472,
16,
1640,
1769,
5411,
2405,
668,
273,
261,
1726,
774,
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,
741,
3948,
967,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
503,
565,
288,
3639,
1748,
540,
380,
4978,
598,
1158,
1472,
22461,
315,
4720,
635,
1640,
19,
350,
6,
646,
540,
380,
1569,
761,
67,
350,
317,
1104,
471,
3874,
761,
598,
2713,
1599,
761,
67,
350,
540,
380,
1569,
1640,
317,
1104,
471,
3874,
4656,
761,
540,
380,
309,
2713,
1599,
578,
5004,
854,
2057,
16,
315,
4720,
635,
1640,
19,
350,
6,
646,
540,
380,
353,
10453,
3382,
598,
555,
883,
540,
1195,
3639,
509,
2713,
734,
273,
6484,
1304,
18,
588,
1702,
1662,
12,
2293,
16,
315,
1726,
67,
2
] |
JLabel vehicleSize = new JLabel(" Mass: " + (int) vehicle.getMass(), JLabel.LEFT); vehiclePane.add(vehicleSize, "Center"); | public MaintenanceGaragePanel(MaintenanceGarage maintenanceGarage, MainDesktopPane desktop) { // Use FacilityPanel's constructor super(desktop); // Initialize data members this.maintenanceGarage = maintenanceGarage; tabName = "Garage"; // Set up components setLayout(new BorderLayout()); // Prepare content pane JPanel contentPane = new JPanel(new BorderLayout(0, 5)); add(contentPane, "Center"); // Prepare name label JLabel nameLabel = new JLabel("Maintenance Garage", JLabel.CENTER); contentPane.add(nameLabel, "North"); // Prepare info pane JPanel infoPane = new JPanel(new BorderLayout(0, 5)); contentPane.add(infoPane, "Center"); // Prepare label pane JPanel labelPane = new JPanel(new GridLayout(0, 1, 0, 5)); labelPane.setBorder(new CompoundBorder(new EtchedBorder(), new EmptyBorder(5, 5, 5, 5))); infoPane.add(labelPane, "North"); // Prepare vehicle capacity label int vehicleCapacity = (int) maintenanceGarage.getVehicleCapacity(); JLabel vehicleCapacityLabel = new JLabel("Vehicle Mass Capacity: " + vehicleCapacity + " kg.", JLabel.CENTER); labelPane.add(vehicleCapacityLabel); // Prepare current total mass label currentTotalMass = (int) maintenanceGarage.getCurrentVehicleMass(); massTotalLabel = new JLabel("Current Vehicle Mass: " + currentTotalMass + " kg.", JLabel.CENTER); labelPane.add(massTotalLabel); // Prepare parked vehicles pane JPanel parkedVehiclesPane = new JPanel(new BorderLayout()); parkedVehiclesPane.setBorder(new CompoundBorder(new EtchedBorder(), new EmptyBorder(5, 5, 5, 5))); infoPane.add(parkedVehiclesPane, "Center"); // Prepare parked name label JLabel parkedVehiclesLabel = new JLabel("Vehicles Undergoing Maintenance:", JLabel.CENTER); parkedVehiclesPane.add(parkedVehiclesLabel, "North"); // Prepare vehicle list pane JPanel vehicleListPane = new JPanel(new BorderLayout()); parkedVehiclesPane.add(new JScrollPane(vehicleListPane), "Center"); // Create parked vehicles vector and vehicle buttons vector. parkedVehicles = new Vector(); Vehicle[] parkedVehicleArray = maintenanceGarage.getVehicles(); for (int x=0; x < parkedVehicleArray.length; x++) parkedVehicles.addElement(parkedVehicleArray[x]); // Prepare vehicle grid pane. vehicleGridPane = new JPanel(new GridLayout(parkedVehicles.size(), 1, 0, 5)); vehicleListPane.add(vehicleGridPane, "North"); // Add vehicles. vehicleButtons = new Vector(); vehicleProgressBars = new Vector(); for (int x=0; x < parkedVehicles.size(); x++) { Vehicle vehicle = (Vehicle) parkedVehicles.elementAt(x); JPanel vehiclePane = new JPanel(new BorderLayout()); vehicleGridPane.add(vehiclePane); JButton vehicleButton = new JButton(vehicle.getName()); vehicleButton.addActionListener(this); vehiclePane.add(vehicleButton, "West"); vehicleButtons.addElement(vehicleButton); JLabel vehicleSize = new JLabel(" Mass: " + (int) vehicle.getMass(), JLabel.LEFT); vehiclePane.add(vehicleSize, "Center"); JProgressBar vehicleProgressBar = new JProgressBar(); vehicleProgressBar.setStringPainted(true); vehicleProgressBar.setPreferredSize(new Dimension(100, 0)); int maintenanceProgress = 0; float currentWork = (float) vehicle.getMalfunctionManager().getMaintenanceWorkTimeCompleted(); float totalWork = (float) vehicle.getMalfunctionManager().getMaintenanceWorkTime(); maintenanceProgress = (int) (100F * (currentWork / totalWork)); vehicleProgressBar.setValue(maintenanceProgress); vehiclePane.add(vehicleProgressBar, "East"); vehicleProgressBars.addElement(vehicleProgressBar); } } | 49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/c22efc35809057d6e430bb53930d553107ddc0eb/MaintenanceGaragePanel.java/clean/org/mars_sim/msp/ui/standard/MaintenanceGaragePanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27532,
43,
297,
410,
5537,
12,
11045,
43,
297,
410,
18388,
43,
297,
410,
16,
12740,
27583,
8485,
21304,
13,
288,
202,
202,
759,
2672,
12618,
1889,
5537,
1807,
3885,
202,
9565,
12,
31949,
1769,
1082,
202,
759,
9190,
501,
4833,
202,
2211,
18,
29715,
43,
297,
410,
273,
18388,
43,
297,
410,
31,
202,
7032,
461,
273,
315,
43,
297,
410,
14432,
1082,
202,
759,
1000,
731,
4085,
202,
542,
3744,
12,
2704,
30814,
10663,
1082,
202,
759,
7730,
913,
13618,
202,
46,
5537,
913,
8485,
273,
394,
24048,
12,
2704,
30814,
12,
20,
16,
1381,
10019,
202,
1289,
12,
1745,
8485,
16,
315,
8449,
8863,
1082,
202,
759,
7730,
508,
1433,
202,
46,
2224,
508,
2224,
273,
394,
21403,
2932,
11045,
611,
297,
410,
3113,
21403,
18,
19835,
1769,
202,
1745,
8485,
18,
1289,
12,
529,
2224,
16,
315,
50,
7825,
8863,
1082,
202,
759,
7730,
1123,
13618,
202,
46,
5537,
1123,
8485,
273,
394,
24048,
12,
2704,
30814,
12,
20,
16,
1381,
10019,
202,
1745,
8485,
18,
1289,
12,
1376,
8485,
16,
315,
8449,
8863,
1082,
202,
759,
7730,
1433,
13618,
202,
46,
5537,
1433,
8485,
273,
394,
24048,
12,
2704,
7145,
3744,
12,
20,
16,
404,
16,
374,
16,
1381,
10019,
202,
1925,
8485,
18,
542,
8107,
12,
2704,
21327,
8107,
12,
2704,
512,
88,
2049,
8107,
9334,
394,
8953,
8107,
12,
25,
16,
1381,
16,
1381,
16,
1381,
3719,
1769,
202,
1376,
8485,
18,
1289,
12,
1925,
8485,
16,
315,
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,
27532,
43,
297,
410,
5537,
12,
11045,
43,
297,
410,
18388,
43,
297,
410,
16,
12740,
27583,
8485,
21304,
13,
288,
202,
202,
759,
2672,
12618,
1889,
5537,
1807,
3885,
202,
9565,
12,
31949,
1769,
1082,
202,
759,
9190,
501,
4833,
202,
2211,
18,
29715,
43,
297,
410,
273,
18388,
43,
297,
410,
31,
202,
7032,
461,
273,
315,
43,
297,
410,
14432,
1082,
202,
759,
1000,
731,
4085,
202,
542,
3744,
12,
2704,
30814,
10663,
1082,
202,
759,
7730,
913,
13618,
202,
46,
5537,
913,
8485,
273,
394,
24048,
12,
2704,
30814,
12,
20,
16,
1381,
10019,
202,
1289,
12,
1745,
8485,
16,
315,
8449,
8863,
1082,
202,
759,
7730,
508,
1433,
202,
46,
2224,
508,
2
] |
|
if(log.isInfoEnabled()) log.info("[SUSPECT] suspect hdr is " + hdr); | if(log.isDebugEnabled()) log.debug("[SUSPECT] suspect hdr is " + hdr); | public void up(Event evt) { Message msg; FdHeader hdr=null; Object sender, tmphdr; switch(evt.getType()) { case Event.SET_LOCAL_ADDRESS: local_addr=(Address)evt.getArg(); break; case Event.MSG: msg=(Message)evt.getArg(); tmphdr=msg.getHeader(getName()); if(tmphdr == null || !(tmphdr instanceof FdHeader)) { if(ping_dest != null && (sender=msg.getSrc()) != null) { if(ping_dest.equals(sender)) { last_ack=System.currentTimeMillis(); if(log.isTraceEnabled()) log.trace("received msg from " + sender + " (counts as ack)"); num_tries=0; } } break; // message did not originate from FD layer, just pass up } hdr=(FdHeader)msg.removeHeader(getName()); switch(hdr.type) { case FdHeader.HEARTBEAT: // heartbeat request; send heartbeat ack Address hb_sender=msg.getSrc(); Message hb_ack=new Message(msg.getSrc(), null, null); FdHeader tmp_hdr=new FdHeader(FdHeader.HEARTBEAT_ACK); // 1. Send an ack tmp_hdr.from=local_addr; hb_ack.putHeader(getName(), tmp_hdr); passDown(new Event(Event.MSG, hb_ack)); // 2. Shun the sender of a HEARTBEAT message if that sender is not a member. This will cause // the sender to leave the group (and possibly rejoin it later) if(shun) shunInvalidHeartbeatSender(hb_sender); break; // don't pass up ! case FdHeader.HEARTBEAT_ACK: // heartbeat ack if(ping_dest != null && ping_dest.equals(hdr.from)) { last_ack=System.currentTimeMillis(); num_tries=0; if(log.isInfoEnabled()) log.info("received ack from " + hdr.from); } else { stop(); ping_dest=(Address)getPingDest(members); if(ping_dest != null) { try { startMonitor(); } catch(Exception ex) { if(log.isWarnEnabled()) log.warn("exception when calling startMonitor(): " + ex); } } } break; case FdHeader.SUSPECT: if(hdr.mbrs != null) { if(log.isInfoEnabled()) log.info("[SUSPECT] suspect hdr is " + hdr); for(int i=0; i < hdr.mbrs.size(); i++) { Address m=(Address)hdr.mbrs.elementAt(i); if(local_addr != null && m.equals(local_addr)) { if(log.isWarnEnabled()) log.warn("I was suspected, but will not remove myself from membership " + "(waiting for EXIT message)"); } else { pingable_mbrs.remove(m); ping_dest=(Address)getPingDest(pingable_mbrs); } passUp(new Event(Event.SUSPECT, m)); passDown(new Event(Event.SUSPECT, m)); } } break; case FdHeader.NOT_MEMBER: if(shun) { if(log.isInfoEnabled()) log.info("[NOT_MEMBER] I'm being shunned; exiting"); passUp(new Event(Event.EXIT)); } break; } return; } passUp(evt); // pass up to the layer above us } | 48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/FD.java/clean/src/org/jgroups/protocols/FD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
731,
12,
1133,
6324,
13,
288,
3639,
2350,
1234,
31,
3639,
30431,
1864,
7723,
33,
2011,
31,
3639,
1033,
5793,
16,
6118,
844,
3069,
31,
3639,
1620,
12,
73,
11734,
18,
588,
559,
10756,
288,
5411,
648,
2587,
18,
4043,
67,
14922,
67,
15140,
30,
7734,
1191,
67,
4793,
28657,
1887,
13,
73,
11734,
18,
588,
4117,
5621,
7734,
898,
31,
5411,
648,
2587,
18,
11210,
30,
7734,
1234,
28657,
1079,
13,
73,
11734,
18,
588,
4117,
5621,
7734,
6118,
844,
3069,
33,
3576,
18,
588,
1864,
12,
17994,
10663,
7734,
309,
12,
16925,
844,
3069,
422,
446,
747,
401,
12,
16925,
844,
3069,
1276,
30431,
1864,
3719,
288,
10792,
309,
12,
1382,
67,
10488,
480,
446,
597,
261,
15330,
33,
3576,
18,
588,
7740,
10756,
480,
446,
13,
288,
13491,
309,
12,
1382,
67,
10488,
18,
14963,
12,
15330,
3719,
288,
18701,
1142,
67,
484,
33,
3163,
18,
2972,
28512,
5621,
18701,
309,
12,
1330,
18,
291,
3448,
1526,
10756,
27573,
613,
18,
5129,
2932,
15213,
1234,
628,
315,
397,
5793,
397,
315,
261,
8008,
487,
8479,
2225,
1769,
18701,
818,
67,
2007,
33,
20,
31,
13491,
289,
10792,
289,
10792,
898,
31,
225,
368,
883,
5061,
486,
1647,
3322,
628,
478,
40,
3018,
16,
2537,
1342,
731,
7734,
289,
7734,
7723,
28657,
27263,
1864,
13,
3576,
18,
4479,
1864,
12,
17994,
10663,
7734,
1620,
12,
16587,
18,
723,
13,
288,
10792,
648,
30431,
1864,
18,
3900,
4928,
5948,
789,
30,
15604,
368,
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,
731,
12,
1133,
6324,
13,
288,
3639,
2350,
1234,
31,
3639,
30431,
1864,
7723,
33,
2011,
31,
3639,
1033,
5793,
16,
6118,
844,
3069,
31,
3639,
1620,
12,
73,
11734,
18,
588,
559,
10756,
288,
5411,
648,
2587,
18,
4043,
67,
14922,
67,
15140,
30,
7734,
1191,
67,
4793,
28657,
1887,
13,
73,
11734,
18,
588,
4117,
5621,
7734,
898,
31,
5411,
648,
2587,
18,
11210,
30,
7734,
1234,
28657,
1079,
13,
73,
11734,
18,
588,
4117,
5621,
7734,
6118,
844,
3069,
33,
3576,
18,
588,
1864,
12,
17994,
10663,
7734,
309,
12,
16925,
844,
3069,
422,
446,
747,
401,
12,
16925,
844,
3069,
1276,
30431,
1864,
3719,
288,
10792,
309,
12,
1382,
67,
10488,
480,
2
] |
return new Color(ct.red(), ct.green(), ct.blue()); } | public static Color colorType2Color(ColorType ct) { if (ct == null) { return null; } return new Color(ct.red(), ct.green(), ct.blue()); } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/6a973c3f62476ddcb2fbc13c7bbcfc9669cb5f3b/AWTRenderer.java/buggy/src/org/apache/fop/render/awt/AWTRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
5563,
2036,
559,
22,
2957,
12,
2957,
559,
5691,
13,
288,
565,
309,
261,
299,
422,
446,
13,
288,
1377,
327,
446,
31,
565,
289,
565,
327,
394,
5563,
12,
299,
18,
1118,
9334,
5691,
18,
11571,
9334,
5691,
18,
14081,
10663,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
5563,
2036,
559,
22,
2957,
12,
2957,
559,
5691,
13,
288,
565,
309,
261,
299,
422,
446,
13,
288,
1377,
327,
446,
31,
565,
289,
565,
327,
394,
5563,
12,
299,
18,
1118,
9334,
5691,
18,
11571,
9334,
5691,
18,
14081,
10663,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
} else { | } else { | private IResource getUnderlyingResource(BugInstance bug) throws JavaModelException { SourceLineAnnotation primarySourceLineAnnotation = bug.getPrimarySourceLineAnnotation(); PackageMemberAnnotation packageAnnotation = null; String packageName = null; String qualifiedClassName = null; if(primarySourceLineAnnotation == null){ packageAnnotation = bug.getPrimaryClass(); if(packageAnnotation != null){ packageName = packageAnnotation.getPackageName(); qualifiedClassName = packageAnnotation.getClassName(); } } else { packageName = primarySourceLineAnnotation.getPackageName(); qualifiedClassName = primarySourceLineAnnotation.getClassName(); } if (qualifiedClassName == null) { return null; } if (DEBUG) { System.out.println( "Looking up class: " //$NON-NLS-1$ + packageName + ", " //$NON-NLS-1$ + qualifiedClassName); } int lastDollar = Math.max(qualifiedClassName.lastIndexOf('$'), qualifiedClassName.lastIndexOf('+')); boolean isInnerClass = lastDollar > 0;// boolean isAnonInnerClass = Character.isDigit(qualifiedClassName// .charAt(lastDollar + 1)); IType type = null; if(primarySourceLineAnnotation == null && isInnerClass){ // cut the useless number value String innerName = qualifiedClassName.substring(lastDollar + 1); String shortQualifiedClassName = qualifiedClassName.substring(0, lastDollar); type = getJavaProject().findType(shortQualifiedClassName); completeInnerClassInfo(qualifiedClassName, innerName, type, bug); } else { type = getJavaProject().findType(qualifiedClassName); } if (type != null) { return type.getUnderlyingResource(); } return null; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/dde32f9a591fd4679f130110dca90f2c9e80b219/Reporter.java/clean/findbugs/src/eclipsePlugin/de.tobject.findbugs/src/de/tobject/findbugs/reporter/Reporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1420,
10833,
765,
6291,
1420,
12,
19865,
1442,
7934,
13,
1216,
5110,
1488,
503,
288,
202,
202,
1830,
1670,
3257,
3354,
1830,
1670,
3257,
273,
1082,
202,
925,
18,
588,
6793,
1830,
1670,
3257,
5621,
202,
202,
2261,
4419,
3257,
2181,
3257,
273,
446,
31,
202,
202,
780,
9929,
273,
446,
31,
202,
202,
780,
9348,
3834,
273,
446,
31,
202,
202,
430,
12,
8258,
1830,
1670,
3257,
422,
446,
15329,
1082,
202,
5610,
3257,
273,
7934,
18,
588,
6793,
797,
5621,
1082,
202,
430,
12,
5610,
3257,
480,
446,
15329,
9506,
202,
5610,
461,
273,
2181,
3257,
18,
588,
18308,
5621,
9506,
202,
19724,
3834,
273,
2181,
3257,
18,
588,
3834,
5621,
1082,
202,
97,
202,
202,
97,
469,
288,
1082,
202,
5610,
461,
273,
3354,
1830,
1670,
3257,
18,
588,
18308,
5621,
1082,
202,
19724,
3834,
273,
3354,
1830,
1670,
3257,
18,
588,
3834,
5621,
202,
202,
97,
202,
202,
430,
261,
19724,
3834,
422,
446,
13,
288,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
430,
261,
9394,
13,
288,
1082,
202,
3163,
18,
659,
18,
8222,
12,
9506,
202,
6,
9794,
310,
731,
667,
30,
315,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
15,
9929,
6862,
202,
15,
3104,
315,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
15,
9348,
3834,
1769,
202,
202,
97,
202,
202,
474,
1142,
40,
25442,
273,
1082,
202,
10477,
18,
1896,
12,
19724,
3834,
18,
2722,
31985,
2668,
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,
467,
1420,
10833,
765,
6291,
1420,
12,
19865,
1442,
7934,
13,
1216,
5110,
1488,
503,
288,
202,
202,
1830,
1670,
3257,
3354,
1830,
1670,
3257,
273,
1082,
202,
925,
18,
588,
6793,
1830,
1670,
3257,
5621,
202,
202,
2261,
4419,
3257,
2181,
3257,
273,
446,
31,
202,
202,
780,
9929,
273,
446,
31,
202,
202,
780,
9348,
3834,
273,
446,
31,
202,
202,
430,
12,
8258,
1830,
1670,
3257,
422,
446,
15329,
1082,
202,
5610,
3257,
273,
7934,
18,
588,
6793,
797,
5621,
1082,
202,
430,
12,
5610,
3257,
480,
446,
15329,
9506,
202,
5610,
461,
273,
2181,
3257,
18,
588,
18308,
5621,
9506,
202,
19724,
3834,
273,
2181,
3257,
18,
588,
3834,
5621,
1082,
202,
2
] |
dbc.report(null, Messages.get().container(Messages.ERR_CREATE_TASK_1, taskname), e); | dbc.report(null, Messages.get().container(Messages.ERR_CREATE_TASK_1, taskName), e); | public CmsTask createTask( CmsRequestContext context, String agentName, String roleName, String taskname, long timeout, int priority) throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); CmsTask result = null; try { result = m_driverManager.createTask(dbc, agentName, roleName, taskname, timeout, priority); } catch (Exception e) { dbc.report(null, Messages.get().container(Messages.ERR_CREATE_TASK_1, taskname), e); } finally { dbc.clear(); } return result; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/0a325deda5c054061b5c35a9c0aa5deed3c6eaad/CmsSecurityManager.java/buggy/src/org/opencms/db/CmsSecurityManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
2174,
752,
2174,
12,
3639,
2149,
21426,
819,
16,
3639,
514,
4040,
461,
16,
3639,
514,
19746,
16,
3639,
514,
1562,
529,
16,
3639,
1525,
2021,
16,
3639,
509,
4394,
13,
1216,
11228,
288,
3639,
30670,
9881,
273,
312,
67,
1966,
29871,
18,
588,
4331,
1042,
12,
2472,
1769,
3639,
2149,
2174,
563,
273,
446,
31,
3639,
775,
288,
5411,
563,
273,
312,
67,
7407,
1318,
18,
2640,
2174,
12,
9137,
16,
4040,
461,
16,
19746,
16,
1562,
529,
16,
2021,
16,
4394,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
9881,
18,
6006,
12,
2011,
16,
4838,
18,
588,
7675,
3782,
12,
5058,
18,
9712,
67,
9344,
67,
15580,
67,
21,
16,
20172,
3631,
425,
1769,
3639,
289,
3095,
288,
5411,
9881,
18,
8507,
5621,
3639,
289,
3639,
327,
563,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
2174,
752,
2174,
12,
3639,
2149,
21426,
819,
16,
3639,
514,
4040,
461,
16,
3639,
514,
19746,
16,
3639,
514,
1562,
529,
16,
3639,
1525,
2021,
16,
3639,
509,
4394,
13,
1216,
11228,
288,
3639,
30670,
9881,
273,
312,
67,
1966,
29871,
18,
588,
4331,
1042,
12,
2472,
1769,
3639,
2149,
2174,
563,
273,
446,
31,
3639,
775,
288,
5411,
563,
273,
312,
67,
7407,
1318,
18,
2640,
2174,
12,
9137,
16,
4040,
461,
16,
19746,
16,
1562,
529,
16,
2021,
16,
4394,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
9881,
18,
6006,
12,
2011,
16,
4838,
18,
588,
7675,
3782,
12,
5058,
18,
9712,
67,
9344,
67,
15580,
67,
21,
16,
20172,
2
] |
System.err.println ("missing \"name\" attribute for <executefile>"); | System.err.println("missing \"name\" attribute for <executefile>"); | private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.err.println ("Error parsing XML specification for processing."); System.err.println (e.toString ()); return false; } if (! this.spec.hasChildren ()) return false; for (Iterator job_it = this.spec.getChildrenNamed("job").iterator(); job_it.hasNext(); ) { XMLElement job_el = (XMLElement)job_it.next (); // first check OS constraints - skip jobs not suited for this OS List constraints = OsConstraint.getOsList (job_el); if (OsConstraint.oneMatchesCurrentSystem(constraints)) { List ef_list = new ArrayList (); String job_name = job_el.getAttribute("name", ""); for (Iterator ef_it = job_el.getChildrenNamed("executefile").iterator (); ef_it.hasNext(); ) { XMLElement ef = (XMLElement)ef_it.next(); String ef_name = ef.getAttribute("name"); if ((ef_name == null) || (ef_name.length() == 0)) { System.err.println ("missing \"name\" attribute for <executefile>"); return false; } List args = new ArrayList (); for (Iterator arg_it = ef.getChildrenNamed("arg").iterator(); arg_it.hasNext();) { XMLElement arg_el = (XMLElement)arg_it.next(); String arg_val = arg_el.getContent(); args.add (arg_val); } ef_list.add (new ExecutableFile (ef_name, args)); } this.jobs.add (new ProcessingJob (job_name, ef_list)); } } return true; } | 46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/ProcessPanelWorker.java/clean/src/lib/com/izforge/izpack/installer/ProcessPanelWorker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
1250,
855,
1990,
1832,
225,
288,
202,
202,
4348,
810,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
2630,
273,
2591,
1318,
18,
588,
1442,
7675,
588,
4348,
261,
13847,
67,
11395,
67,
1985,
1769,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
202,
202,
95,
1082,
202,
73,
18,
1188,
6332,
5621,
1377,
327,
629,
31,
202,
202,
97,
565,
6276,
4201,
2678,
2082,
273,
394,
6276,
4201,
2678,
261,
1769,
565,
2082,
18,
542,
1263,
261,
2704,
6276,
4201,
1263,
1832,
1769,
565,
2082,
18,
542,
5126,
261,
2704,
3858,
5126,
1832,
1769,
377,
202,
202,
698,
202,
202,
95,
1082,
202,
4288,
18,
542,
2514,
261,
2704,
6276,
4201,
2514,
261,
2630,
10019,
25083,
202,
2211,
18,
2793,
273,
261,
15223,
13,
2082,
18,
2670,
5621,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
202,
202,
95,
1377,
2332,
18,
370,
18,
8222,
7566,
668,
5811,
3167,
7490,
364,
4929,
1199,
1769,
1377,
2332,
18,
370,
18,
8222,
261,
73,
18,
10492,
1832,
1769,
1377,
327,
629,
31,
202,
202,
97,
565,
309,
16051,
333,
18,
2793,
18,
5332,
4212,
1832,
13,
1377,
327,
629,
31,
565,
364,
261,
3198,
1719,
67,
305,
273,
333,
18,
2793,
18,
588,
4212,
7604,
2932,
4688,
20387,
9838,
5621,
1719,
67,
305,
18,
5332,
2134,
5621,
262,
565,
288,
1377,
1139,
11155,
1719,
67,
292,
273,
261,
15223,
13,
4688,
67,
305,
18,
4285,
261,
1769,
5411,
368,
1122,
866,
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,
1250,
855,
1990,
1832,
225,
288,
202,
202,
4348,
810,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
2630,
273,
2591,
1318,
18,
588,
1442,
7675,
588,
4348,
261,
13847,
67,
11395,
67,
1985,
1769,
202,
202,
97,
202,
202,
14683,
261,
503,
425,
13,
202,
202,
95,
1082,
202,
73,
18,
1188,
6332,
5621,
1377,
327,
629,
31,
202,
202,
97,
565,
6276,
4201,
2678,
2082,
273,
394,
6276,
4201,
2678,
261,
1769,
565,
2082,
18,
542,
1263,
261,
2704,
6276,
4201,
1263,
1832,
1769,
565,
2082,
18,
542,
5126,
261,
2704,
3858,
5126,
1832,
1769,
377,
202,
202,
698,
202,
202,
95,
1082,
202,
4288,
18,
542,
2514,
261,
2704,
6276,
4201,
2514,
261,
2
] |
_t = __t2019; | _t = __t2023; | public final void statusstate(AST _t) throws RecognitionException { AST statusstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2012 = _t; AST tmp1243_AST_in = (AST)_t; match(_t,STATUS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DEFAULT: { AST __t2014 = _t; AST tmp1244_AST_in = (AST)_t; match(_t,DEFAULT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_tokenSet_4.member(_t.getType()))) { expression(_t); _t = _retTree; } else if ((_t.getType()==3)) { } else { throw new NoViableAltException(_t); } } _t = __t2014; _t = _t.getNextSibling(); break; } case INPUT: { AST __t2016 = _t; AST tmp1245_AST_in = (AST)_t; match(_t,INPUT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case OFF: { AST tmp1246_AST_in = (AST)_t; match(_t,OFF); _t = _t.getNextSibling(); break; } case 3: { break; } default: if (_t==null) _t=ASTNULL; if ((_tokenSet_4.member(_t.getType()))) { expression(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } } _t = __t2016; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t2019 = _t; AST tmp1247_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp1248_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2019; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t2012; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1267,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1267,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
6734,
22,
273,
389,
88,
31,
202,
202,
9053,
1853,
2138,
8942,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
8608,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
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,
3331,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
6734,
24,
273,
389,
88,
31,
1082,
202,
9053,
1853,
2138,
6334,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
5280,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
95,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
430,
14015,
67,
2316,
694,
67,
24,
18,
5990,
24899,
88,
18,
588,
559,
1435,
20349,
288,
9506,
202,
8692,
24899,
88,
1769,
9506,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
97,
1082,
202,
12107,
309,
14015,
67,
88,
18,
588,
559,
1435,
631,
23,
3719,
288,
1082,
202,
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,
225,
202,
482,
727,
918,
1267,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1267,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
6734,
22,
273,
389,
88,
31,
202,
202,
9053,
1853,
2138,
8942,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
8608,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
95,
202,
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,
2
] |
public Object fastpath(String name, boolean resulttype, FastpathArg[] args) throws SQLException | public Object fastpath(int fnId, boolean resultType, FastpathArg[] args) throws SQLException | public Object fastpath(String name, boolean resulttype, FastpathArg[] args) throws SQLException { if (Driver.logDebug) Driver.debug("Fastpath: calling " + name); return fastpath(getID(name), resulttype, args); } | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/2d0245f6946ddb872b4191c2f65f0e490bf5e549/Fastpath.java/buggy/org/postgresql/fastpath/Fastpath.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
14469,
12,
474,
2295,
548,
16,
1250,
25820,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
565,
288,
3639,
309,
261,
4668,
18,
1330,
2829,
13,
5411,
9396,
18,
4148,
2932,
12305,
803,
30,
4440,
315,
397,
508,
1769,
3639,
327,
14469,
12,
588,
734,
12,
529,
3631,
563,
723,
16,
833,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
1033,
14469,
12,
474,
2295,
548,
16,
1250,
25820,
16,
9545,
803,
4117,
8526,
833,
13,
1216,
6483,
565,
288,
3639,
309,
261,
4668,
18,
1330,
2829,
13,
5411,
9396,
18,
4148,
2932,
12305,
803,
30,
4440,
315,
397,
508,
1769,
3639,
327,
14469,
12,
588,
734,
12,
529,
3631,
563,
723,
16,
833,
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
] |
if (MessageDialog.openQuestion(getPropertySheet().getControl().getShell(), WorkbenchMessages.getString("CopyToClipboardProblemDialog.title"), WorkbenchMessages.getString("CopyToClipboardProblemDialog.message"))) setClipboard(text); | if (MessageDialog .openQuestion( getPropertySheet().getControl().getShell(), PropertiesMessages.getString("CopyToClipboardProblemDialog.title"), PropertiesMessages.getString("CopyToClipboardProblemDialog.message"))) setClipboard(text); | private void setClipboard(String text) { try { Object[] data = new Object[] {text}; Transfer[] transferTypes = new Transfer[] {TextTransfer.getInstance()}; clipboard.setContents(data, transferTypes); } catch (SWTError e){ if (e.code != DND.ERROR_CANNOT_SET_CLIPBOARD) throw e; if (MessageDialog.openQuestion(getPropertySheet().getControl().getShell(), WorkbenchMessages.getString("CopyToClipboardProblemDialog.title"), WorkbenchMessages.getString("CopyToClipboardProblemDialog.message"))) //$NON-NLS-1$ //$NON-NLS-2$ setClipboard(text); } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/614c699607bf573c2fa7e4f2bdff4fc009bff4d6/CopyPropertyAction.java/buggy/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/CopyPropertyAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
11440,
3169,
3752,
12,
780,
977,
13,
288,
202,
202,
698,
288,
1082,
202,
921,
8526,
501,
273,
394,
1033,
8526,
288,
955,
20451,
6862,
1082,
202,
5912,
8526,
7412,
2016,
273,
394,
12279,
8526,
288,
1528,
5912,
18,
588,
1442,
17767,
31,
1082,
202,
14161,
3752,
18,
542,
6323,
12,
892,
16,
7412,
2016,
1769,
202,
202,
97,
1044,
261,
55,
8588,
668,
425,
15329,
1082,
202,
430,
261,
73,
18,
710,
480,
463,
2908,
18,
3589,
67,
39,
16791,
67,
4043,
67,
7697,
52,
5315,
8085,
13,
9506,
202,
12849,
425,
31,
1082,
202,
430,
261,
1079,
6353,
18,
3190,
11665,
12,
588,
1396,
8229,
7675,
588,
3367,
7675,
588,
13220,
9334,
4147,
22144,
5058,
18,
588,
780,
2932,
2951,
774,
15339,
3752,
13719,
6353,
18,
2649,
6,
3631,
4147,
22144,
5058,
18,
588,
780,
2932,
2951,
774,
15339,
3752,
13719,
6353,
18,
2150,
6,
20349,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
9506,
202,
542,
15339,
3752,
12,
955,
1769,
202,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
11440,
3169,
3752,
12,
780,
977,
13,
288,
202,
202,
698,
288,
1082,
202,
921,
8526,
501,
273,
394,
1033,
8526,
288,
955,
20451,
6862,
1082,
202,
5912,
8526,
7412,
2016,
273,
394,
12279,
8526,
288,
1528,
5912,
18,
588,
1442,
17767,
31,
1082,
202,
14161,
3752,
18,
542,
6323,
12,
892,
16,
7412,
2016,
1769,
202,
202,
97,
1044,
261,
55,
8588,
668,
425,
15329,
1082,
202,
430,
261,
73,
18,
710,
480,
463,
2908,
18,
3589,
67,
39,
16791,
67,
4043,
67,
7697,
52,
5315,
8085,
13,
9506,
202,
12849,
425,
31,
1082,
202,
430,
261,
1079,
6353,
18,
3190,
11665,
12,
588,
1396,
8229,
7675,
588,
3367,
7675,
588,
13220,
9334,
4147,
2
] |
private boolean isIteratorNextDeclaration(PsiStatement statement, String iteratorName, String contentType) { if (!(statement instanceof PsiDeclarationStatement)) { return false; } final PsiDeclarationStatement decl = (PsiDeclarationStatement)statement; final PsiElement[] elements = decl.getDeclaredElements(); if (elements.length != 1) { return false; } if (!(elements[0] instanceof PsiLocalVariable)) { return false; } final PsiLocalVariable var = (PsiLocalVariable)elements[0]; final PsiExpression initializer = var.getInitializer(); return isIteratorNext(initializer, iteratorName, contentType); } | private static boolean isIteratorNextDeclaration( PsiStatement statement, String iteratorName, String contentType) { if (!(statement instanceof PsiDeclarationStatement)) { return false; } final PsiDeclarationStatement decl = (PsiDeclarationStatement)statement; final PsiElement[] elements = decl.getDeclaredElements(); if (elements.length != 1) { return false; } if (!(elements[0] instanceof PsiLocalVariable)) { return false; } final PsiLocalVariable var = (PsiLocalVariable)elements[0]; final PsiExpression initializer = var.getInitializer(); return isIteratorNext(initializer, iteratorName, contentType); } | private boolean isIteratorNextDeclaration(PsiStatement statement, String iteratorName, String contentType) { if (!(statement instanceof PsiDeclarationStatement)) { return false; } final PsiDeclarationStatement decl = (PsiDeclarationStatement)statement; final PsiElement[] elements = decl.getDeclaredElements(); if (elements.length != 1) { return false; } if (!(elements[0] instanceof PsiLocalVariable)) { return false; } final PsiLocalVariable var = (PsiLocalVariable)elements[0]; final PsiExpression initializer = var.getInitializer(); return isIteratorNext(initializer, iteratorName, contentType); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/9b988832984f0e624cea3998a4bc58a17a3426e2/WhileCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/WhileCanBeForeachInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
353,
3198,
2134,
6094,
12,
52,
7722,
3406,
3021,
16,
4766,
2868,
514,
2775,
461,
16,
4766,
2868,
514,
5064,
13,
288,
1377,
309,
16051,
12,
11516,
1276,
453,
7722,
6094,
3406,
3719,
288,
3639,
327,
629,
31,
1377,
289,
1377,
727,
453,
7722,
6094,
3406,
3496,
273,
3639,
261,
52,
7722,
6094,
3406,
13,
11516,
31,
1377,
727,
453,
7722,
1046,
8526,
2186,
273,
3496,
18,
588,
18888,
3471,
5621,
1377,
309,
261,
6274,
18,
2469,
480,
404,
13,
288,
3639,
327,
629,
31,
1377,
289,
1377,
309,
16051,
12,
6274,
63,
20,
65,
1276,
453,
7722,
2042,
3092,
3719,
288,
3639,
327,
629,
31,
1377,
289,
1377,
727,
453,
7722,
2042,
3092,
569,
273,
261,
52,
7722,
2042,
3092,
13,
6274,
63,
20,
15533,
1377,
727,
453,
7722,
2300,
12562,
273,
569,
18,
588,
14729,
5621,
1377,
327,
353,
3198,
2134,
12,
22181,
16,
2775,
461,
16,
5064,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
353,
3198,
2134,
6094,
12,
52,
7722,
3406,
3021,
16,
4766,
2868,
514,
2775,
461,
16,
4766,
2868,
514,
5064,
13,
288,
1377,
309,
16051,
12,
11516,
1276,
453,
7722,
6094,
3406,
3719,
288,
3639,
327,
629,
31,
1377,
289,
1377,
727,
453,
7722,
6094,
3406,
3496,
273,
3639,
261,
52,
7722,
6094,
3406,
13,
11516,
31,
1377,
727,
453,
7722,
1046,
8526,
2186,
273,
3496,
18,
588,
18888,
3471,
5621,
1377,
309,
261,
6274,
18,
2469,
480,
404,
13,
288,
3639,
327,
629,
31,
1377,
289,
1377,
309,
16051,
12,
6274,
63,
20,
65,
1276,
453,
7722,
2042,
3092,
3719,
288,
3639,
327,
629,
31,
1377,
289,
1377,
727,
453,
7722,
2042,
3092,
569,
273,
2
] |
if( declarations != null ) { for (int i = 0; i < declarations.length; i++) { if( node == declarations[i] ) { if( i == declarations.length - 1 ) declarations[i] = null; else System.arraycopy( declarations, i + 1, declarations, i, declarations.length - 1 - i ); } } } | ArrayUtil.remove(declarations, node); | public void removeDeclaration(IASTNode node) { if( declarations != null ) { for (int i = 0; i < declarations.length; i++) { if( node == declarations[i] ) { if( i == declarations.length - 1 ) declarations[i] = null; else System.arraycopy( declarations, i + 1, declarations, i, declarations.length - 1 - i ); } } } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/6ac289f8203885031a79a3324dc4b14f52460aef/CPPParameter.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/CPPParameter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
6094,
12,
45,
9053,
907,
756,
13,
288,
202,
202,
430,
12,
12312,
480,
446,
262,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
12312,
18,
2469,
31,
277,
27245,
288,
9506,
202,
430,
12,
756,
422,
12312,
63,
77,
65,
262,
288,
6862,
202,
430,
12,
277,
422,
12312,
18,
2469,
300,
404,
262,
25083,
202,
8840,
9642,
63,
77,
65,
273,
446,
31,
6862,
202,
12107,
25083,
202,
3163,
18,
1126,
3530,
12,
12312,
16,
277,
397,
404,
16,
12312,
16,
277,
16,
12312,
18,
2469,
300,
404,
300,
277,
11272,
9506,
202,
97,
1082,
202,
97,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
6094,
12,
45,
9053,
907,
756,
13,
288,
202,
202,
430,
12,
12312,
480,
446,
262,
288,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
12312,
18,
2469,
31,
277,
27245,
288,
9506,
202,
430,
12,
756,
422,
12312,
63,
77,
65,
262,
288,
6862,
202,
430,
12,
277,
422,
12312,
18,
2469,
300,
404,
262,
25083,
202,
8840,
9642,
63,
77,
65,
273,
446,
31,
6862,
202,
12107,
25083,
202,
3163,
18,
1126,
3530,
12,
12312,
16,
277,
397,
404,
16,
12312,
16,
277,
16,
12312,
18,
2469,
300,
404,
300,
277,
11272,
9506,
202,
97,
1082,
202,
97,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
for (int i = 0; i < layers+2; i++) | for (int i = 0; i < layers + 2; i++) | public void split(float v1, float v2, int n) { layers = n; vmin = v1; vmax = v2; qavg = 0.0f; qmin = Float.MAX_VALUE; qmax = Float.MIN_VALUE; if (layers <= 0) return; int nrTotal = data.size(); // The last cell is for v >= vmax float delta = (vmax - vmin) / ((float) layers); sorted = new int[layers+2]; for (int i = 0; i < layers+2; i++) sorted[i] = 0; for (int i = 0; i < nrTotal; i++) { float val = data.get(i); if (qmin > val) qmin = val; if (qmax < val) qmax = val; qavg += data.get(i) / nrTotal; int cell = (int) ((val - vmin) / delta + 1.001f); if (cell < 0) cell = 0; else if (cell >= layers + 1) { if (val > vmax) cell = layers + 1; else cell = layers; } sorted[cell]++; } } | 45433 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45433/2a01af96440a43fab8611a6e5a3d5907e98140ad/QualityFloat.java/clean/amibe/src/org/jcae/mesh/amibe/validation/QualityFloat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1416,
12,
5659,
331,
21,
16,
1431,
331,
22,
16,
509,
290,
13,
202,
95,
202,
202,
10396,
273,
290,
31,
202,
202,
90,
1154,
273,
331,
21,
31,
202,
202,
90,
1896,
273,
331,
22,
31,
202,
202,
85,
14141,
273,
374,
18,
20,
74,
31,
202,
202,
85,
1154,
273,
5450,
18,
6694,
67,
4051,
31,
202,
202,
85,
1896,
273,
5450,
18,
6236,
67,
4051,
31,
202,
202,
430,
261,
10396,
1648,
374,
13,
1082,
202,
2463,
31,
202,
202,
474,
9884,
5269,
273,
501,
18,
1467,
5621,
202,
202,
759,
225,
1021,
1142,
2484,
353,
364,
331,
1545,
17831,
202,
202,
5659,
3622,
273,
261,
90,
1896,
300,
17501,
13,
342,
14015,
5659,
13,
6623,
1769,
202,
202,
10350,
273,
394,
509,
63,
10396,
15,
22,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6623,
15,
22,
31,
277,
27245,
1082,
202,
10350,
63,
77,
65,
273,
374,
31,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
9884,
5269,
31,
277,
27245,
202,
202,
95,
1082,
202,
5659,
1244,
273,
501,
18,
588,
12,
77,
1769,
1082,
202,
430,
261,
85,
1154,
405,
1244,
13,
9506,
202,
85,
1154,
273,
1244,
31,
1082,
202,
430,
261,
85,
1896,
411,
1244,
13,
9506,
202,
85,
1896,
273,
1244,
31,
1082,
202,
85,
14141,
1011,
501,
18,
588,
12,
77,
13,
342,
9884,
5269,
31,
1082,
202,
474,
2484,
273,
261,
474,
13,
14015,
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,
1416,
12,
5659,
331,
21,
16,
1431,
331,
22,
16,
509,
290,
13,
202,
95,
202,
202,
10396,
273,
290,
31,
202,
202,
90,
1154,
273,
331,
21,
31,
202,
202,
90,
1896,
273,
331,
22,
31,
202,
202,
85,
14141,
273,
374,
18,
20,
74,
31,
202,
202,
85,
1154,
273,
5450,
18,
6694,
67,
4051,
31,
202,
202,
85,
1896,
273,
5450,
18,
6236,
67,
4051,
31,
202,
202,
430,
261,
10396,
1648,
374,
13,
1082,
202,
2463,
31,
202,
202,
474,
9884,
5269,
273,
501,
18,
1467,
5621,
202,
202,
759,
225,
1021,
1142,
2484,
353,
364,
331,
1545,
17831,
202,
202,
5659,
3622,
273,
261,
90,
1896,
300,
17501,
13,
342,
2
] |
synchronized boolean doesSaveToCache( DataSourceAndDataSet dsAndDs ) | boolean doesSaveToCache( DataSourceAndDataSet dsAndDs ) | synchronized boolean doesSaveToCache( DataSourceAndDataSet dsAndDs ) { String cacheDirStr = (String) this.cacheMap.get( dsAndDs ); if ( cacheDirStr != null && new File( cacheDirStr ).exists( ) == true ) { return false; } else { this.cacheMap.put( dsAndDs, folderUtil.createSessionTempDir( ) ); return true; } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/29417d2bf721760fe586e6e6083f71cbc951a623/CacheMapManager.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/CacheMapManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
22043,
1250,
1552,
4755,
774,
1649,
12,
12806,
1876,
13676,
3780,
1876,
22831,
262,
202,
95,
202,
202,
780,
19946,
1585,
273,
261,
780,
13,
333,
18,
2493,
863,
18,
588,
12,
3780,
1876,
22831,
11272,
202,
202,
430,
261,
19946,
1585,
480,
446,
597,
394,
1387,
12,
19946,
1585,
262,
18,
1808,
12,
262,
422,
638,
262,
202,
202,
95,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
2211,
18,
2493,
863,
18,
458,
12,
3780,
1876,
22831,
16,
3009,
1304,
18,
2640,
2157,
7185,
1621,
12,
262,
11272,
1082,
202,
2463,
638,
31,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
22043,
1250,
1552,
4755,
774,
1649,
12,
12806,
1876,
13676,
3780,
1876,
22831,
262,
202,
95,
202,
202,
780,
19946,
1585,
273,
261,
780,
13,
333,
18,
2493,
863,
18,
588,
12,
3780,
1876,
22831,
11272,
202,
202,
430,
261,
19946,
1585,
480,
446,
597,
394,
1387,
12,
19946,
1585,
262,
18,
1808,
12,
262,
422,
638,
262,
202,
202,
95,
1082,
202,
2463,
629,
31,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
2211,
18,
2493,
863,
18,
458,
12,
3780,
1876,
22831,
16,
3009,
1304,
18,
2640,
2157,
7185,
1621,
12,
262,
11272,
1082,
202,
2463,
638,
31,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dsTrans = objectStore.getDataSpaceTransaction(appID,loader); active = true; | mainTrans = new DataSpaceTransactionImpl(appID, loader, mainDataSpace, backupDataSpace); keyTrans = new DataSpaceTransactionImpl(appID, loader, mainDataSpace, backupDataSpace); timestampInterrupted = false; | public void start() { dsTrans = objectStore.getDataSpaceTransaction(appID,loader); active = true; } | 48631 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48631/6b40bde05ec81edb76699af7b9a97b68469f7216/TSOTransaction.java/buggy/src/com/sun/gi/objectstore/tso/TSOTransaction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
1435,
288,
202,
202,
2377,
1429,
273,
31182,
18,
588,
751,
3819,
3342,
12,
2910,
734,
16,
6714,
1769,
202,
202,
3535,
273,
638,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
787,
1435,
288,
202,
202,
2377,
1429,
273,
31182,
18,
588,
751,
3819,
3342,
12,
2910,
734,
16,
6714,
1769,
202,
202,
3535,
273,
638,
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
] |
public void constraint(List constraints) throws RecognitionException { Token fb=null; Token f=null; Token con=null; RestrictionDescr rd = null; BaseDescr d = null; FieldConstraintDescr fc = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:966:3: ( ( ( ID ':' )=>fb= ID ':' )? f= ID ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )? ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:966:3: ( ( ID ':' )=>fb= ID ':' )? f= ID ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )? { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:966:3: ( ( ID ':' )=>fb= ID ':' )? int alt34=2; int LA34_0 = input.LA(1); if ( (LA34_0==ID) ) { int LA34_1 = input.LA(2); if ( (LA34_1==39) ) { alt34=1; } } switch (alt34) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:966:5: ( ID ':' )=>fb= ID ':' { fb=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint2009); if (failed) return ; match(input,39,FOLLOW_39_in_constraint2011); if (failed) return ; } break; } f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint2021); if (failed) return ; if ( backtracking==0 ) { if ( fb != null ) { d = new FieldBindingDescr( f.getText(), fb.getText() ); d.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); constraints.add( d ); } fc = new FieldConstraintDescr(f.getText()); fc.setLocation( offset(f.getLine()), f.getCharPositionInLine() ); } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:977:3: ( ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* )? int alt36=2; int LA36_0 = input.LA(1); if ( ((LA36_0>=57 && LA36_0<=65)) ) { alt36=1; } switch (alt36) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:978:4: ( constraint_expression ( ( ('&'|'|') constraint_expression )=> ('&'|'|') constraint_expression )* )=>rd= constraint_expression ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* { pushFollow(FOLLOW_constraint_expression_in_constraint2037); rd=constraint_expression(); _fsp--; if (failed) return ; if ( backtracking==0 ) { fc.addRestriction(rd); constraints.add(fc); } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:983:4: ( ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression )* loop35: do { int alt35=2; int LA35_0 = input.LA(1); if ( ((LA35_0>=55 && LA35_0<=56)) ) { alt35=1; } switch (alt35) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:984:5: ( ('&'|'|') constraint_expression )=>con= ('&'|'|')rd= constraint_expression { con=(Token)input.LT(1); if ( (input.LA(1)>=55 && input.LA(1)<=56) ) { input.consume(); errorRecovery=false;failed=false; } else { if (backtracking>0) {failed=true; return ;} MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint2056); throw mse; } if ( backtracking==0 ) { if (con.getText().equals("&") ) { fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.AND)); } else { fc.addRestriction(new RestrictionConnectiveDescr(RestrictionConnectiveDescr.OR)); } } pushFollow(FOLLOW_constraint_expression_in_constraint2073); rd=constraint_expression(); _fsp--; if (failed) return ; if ( backtracking==0 ) { fc.addRestriction(rd); } } break; default : break loop35; } } while (true); } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/158de3e3177d9b48d45fb4c3fae8404e0f01f690/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
356,
33,
2011,
31,
3639,
1124,
6192,
16198,
9437,
273,
446,
31,
1171,
202,
202,
2171,
16198,
302,
273,
446,
31,
540,
202,
202,
974,
5806,
16198,
8036,
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,
29,
6028,
30,
23,
30,
261,
261,
261,
1599,
3921,
13216,
19192,
33,
1599,
3921,
7851,
284,
33,
1599,
261,
261,
4954,
67,
8692,
261,
261,
7707,
26045,
16637,
96,
6134,
4954,
67,
8692,
13216,
7707,
26045,
16637,
96,
6134,
4954,
67,
8692,
8618,
13216,
13623,
33,
4954,
67,
8692,
261,
261,
7707,
26045,
16637,
96,
6134,
4954,
67,
8692,
13216,
591,
33,
7707,
26045,
16637,
96,
6134,
13623,
33,
4954,
67,
8692,
8618,
7851,
262,
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,
29,
6028,
30,
23,
30,
261,
261,
1599,
3921,
13216,
19192,
33,
1599,
3921,
7851,
284,
33,
1599,
261,
261,
4954,
67,
8692,
261,
261,
7707,
26045,
16637,
96,
6134,
4954,
67,
8692,
13216,
7707,
26045,
16637,
96,
6134,
4954,
67,
8692,
8618,
13216,
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,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
356,
33,
2011,
31,
3639,
1124,
6192,
16198,
9437,
273,
446,
31,
1171,
202,
202,
2171,
16198,
302,
273,
446,
31,
540,
202,
202,
974,
5806,
16198,
8036,
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,
29,
6028,
30,
23,
30,
261,
261,
261,
1599,
3921,
13216,
19192,
33,
1599,
3921,
7851,
284,
33,
1599,
261,
261,
4954,
67,
8692,
261,
2
] |
||
return FONT_SIZES.get( val ) != null || looksLikeALength( val ) || "larger".equals( val ) || "smaller".equals( val ); | return FONT_SIZES.get(val) != null || looksLikeALength(val) || "larger".equals(val) || "smaller".equals(val); | public static boolean looksLikeAFontSize( String val ) { // TODO return FONT_SIZES.get( val ) != null || looksLikeALength( val ) || "larger".equals( val ) || "smaller".equals( val ); } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/e9a600b1e4b5d53ffc19ec58e8455ad0c165e360/Idents.java/clean/src/java/org/xhtmlrenderer/css/constants/Idents.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
10192,
8804,
37,
22688,
12,
514,
1244,
262,
288,
3639,
368,
2660,
3639,
327,
27104,
67,
4574,
55,
18,
588,
12,
1244,
262,
480,
446,
747,
7734,
10192,
8804,
1013,
1288,
12,
1244,
262,
747,
7734,
315,
7901,
693,
9654,
14963,
12,
1244,
262,
747,
315,
12019,
264,
9654,
14963,
12,
1244,
11272,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
760,
1250,
10192,
8804,
37,
22688,
12,
514,
1244,
262,
288,
3639,
368,
2660,
3639,
327,
27104,
67,
4574,
55,
18,
588,
12,
1244,
262,
480,
446,
747,
7734,
10192,
8804,
1013,
1288,
12,
1244,
262,
747,
7734,
315,
7901,
693,
9654,
14963,
12,
1244,
262,
747,
315,
12019,
264,
9654,
14963,
12,
1244,
11272,
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
] |
loadDrivers(MondrianProperties.instance().getJdbcDrivers()); | RolapUtil.loadDrivers(MondrianProperties.instance().getJdbcDrivers()); | static DataSource createDataSource(Util.PropertyList connectInfo) { final String jdbcConnectString = connectInfo.get(RolapConnectionProperties.Jdbc); final String poolNeededString = connectInfo.get(RolapConnectionProperties.PoolNeeded); final boolean poolNeeded; Properties jdbcProperties = getJDBCProperties(connectInfo); String propertyString = jdbcProperties.toString(); if (jdbcConnectString != null) { // Get connection through own pooling datasource String jdbcDrivers = connectInfo.get(RolapConnectionProperties.JdbcDrivers); if (jdbcDrivers != null) { loadDrivers(jdbcDrivers); } loadDrivers(MondrianProperties.instance().getJdbcDrivers()); if (poolNeededString == null) { // JDBC connections are dumb beasts, so we assume they're not // pooled. poolNeeded = true; } else { poolNeeded = poolNeededString.equalsIgnoreCase("true"); } final String jdbcUser = connectInfo.get(RolapConnectionProperties.JdbcUser); final String jdbcPassword = connectInfo.get(RolapConnectionProperties.JdbcPassword); if (jdbcUser != null) { jdbcProperties.put("user", jdbcUser); } if (jdbcPassword != null) { jdbcProperties.put("password", jdbcPassword); } if (!poolNeeded) { // Connection is already pooled; don't pool it again. return new DriverManagerDataSource(jdbcConnectString, jdbcProperties); } if (jdbcConnectString.toLowerCase().indexOf("mysql") > -1) { // mysql driver needs this autoReconnect parameter jdbcProperties.setProperty("autoReconnect", "true"); } // use the DriverManagerConnectionFactory to create connections ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(jdbcConnectString , jdbcProperties); try { return RolapConnectionPool.instance().getPoolingDataSource( jdbcConnectString + propertyString, connectionFactory); } catch (Throwable e) { throw Util.newInternal(e, "Error while creating connection pool (with URI " + jdbcConnectString + ")"); } } final String dataSourceName = connectInfo.get(RolapConnectionProperties.DataSource); if (dataSourceName == null) { throw Util.newInternal( "Connect string '" + connectInfo.toString() + "' must contain either '" + RolapConnectionProperties.Jdbc + "' or '" + RolapConnectionProperties.DataSource + "'"); } if (poolNeededString == null) { // Data sources are fairly smart, so we assume they look after their // own pooling. poolNeeded = false; } else { poolNeeded = poolNeededString.equalsIgnoreCase("true"); } // Get connection from datasource. final DataSource dataSource; try { dataSource = (DataSource) new InitialContext().lookup(dataSourceName); } catch (NamingException e) { throw Util.newInternal(e, "Error while looking up data source (" + dataSourceName + ")"); } if (!poolNeeded) { return dataSource; } ConnectionFactory connectionFactory = new DataSourceConnectionFactory(dataSource); try { return RolapConnectionPool.instance().getPoolingDataSource( dataSourceName, connectionFactory); } catch (Exception e) { throw Util.newInternal(e, "Error while creating connection pool (with URI " + dataSourceName + ")"); } } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/a591b9db7c08ea14759dd4714d93db547aaa7a77/RolapConnection.java/buggy/src/main/mondrian/rolap/RolapConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
12806,
752,
8597,
12,
1304,
18,
1396,
682,
3077,
966,
13,
288,
3639,
727,
514,
16579,
5215,
780,
273,
3077,
966,
18,
588,
12,
4984,
438,
1952,
2297,
18,
25316,
1769,
3639,
727,
514,
2845,
11449,
780,
273,
3077,
966,
18,
588,
12,
4984,
438,
1952,
2297,
18,
2864,
11449,
1769,
3639,
727,
1250,
2845,
11449,
31,
3639,
6183,
16579,
2297,
273,
9285,
13183,
2297,
12,
3612,
966,
1769,
3639,
514,
1272,
780,
273,
16579,
2297,
18,
10492,
5621,
3639,
309,
261,
24687,
5215,
780,
480,
446,
13,
288,
5411,
368,
968,
1459,
3059,
4953,
2845,
310,
9181,
5411,
514,
16579,
26310,
273,
3077,
966,
18,
588,
12,
4984,
438,
1952,
2297,
18,
25316,
26310,
1769,
5411,
309,
261,
24687,
26310,
480,
446,
13,
288,
7734,
1262,
26310,
12,
24687,
26310,
1769,
5411,
289,
5411,
11714,
438,
1304,
18,
945,
26310,
12,
49,
1434,
566,
304,
2297,
18,
1336,
7675,
588,
25316,
26310,
10663,
5411,
309,
261,
6011,
11449,
780,
422,
446,
13,
288,
7734,
368,
16364,
5921,
854,
302,
3592,
506,
689,
87,
16,
1427,
732,
6750,
2898,
4565,
486,
7734,
368,
25007,
18,
7734,
2845,
11449,
273,
638,
31,
5411,
289,
469,
288,
7734,
2845,
11449,
273,
2845,
11449,
780,
18,
14963,
5556,
2932,
3767,
8863,
5411,
289,
5411,
727,
514,
16579,
1299,
273,
3077,
966,
18,
588,
12,
4984,
438,
1952,
2297,
18,
25316,
1299,
1769,
5411,
727,
514,
16579,
3913,
273,
3077,
966,
18,
588,
12,
4984,
438,
1952,
2297,
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,
377,
760,
12806,
752,
8597,
12,
1304,
18,
1396,
682,
3077,
966,
13,
288,
3639,
727,
514,
16579,
5215,
780,
273,
3077,
966,
18,
588,
12,
4984,
438,
1952,
2297,
18,
25316,
1769,
3639,
727,
514,
2845,
11449,
780,
273,
3077,
966,
18,
588,
12,
4984,
438,
1952,
2297,
18,
2864,
11449,
1769,
3639,
727,
1250,
2845,
11449,
31,
3639,
6183,
16579,
2297,
273,
9285,
13183,
2297,
12,
3612,
966,
1769,
3639,
514,
1272,
780,
273,
16579,
2297,
18,
10492,
5621,
3639,
309,
261,
24687,
5215,
780,
480,
446,
13,
288,
5411,
368,
968,
1459,
3059,
4953,
2845,
310,
9181,
5411,
514,
16579,
26310,
273,
3077,
966,
18,
588,
12,
4984,
438,
1952,
2297,
18,
25316,
26310,
1769,
5411,
2
] |
writer.writeByte(FdocaConstants.NGDA_TRIPLET_TYPE); writer.writeByte(FdocaConstants.SQLDTAGRP_LID); } else { writer.writeByte(FdocaConstants.CPT_TRIPLET_TYPE); writer.writeByte(FdocaConstants.NULL_LID); | writer.writeByte(FdocaConstants.NGDA_TRIPLET_TYPE); writer.writeByte(FdocaConstants.SQLDTAGRP_LID); } else { writer.writeByte(FdocaConstants.CPT_TRIPLET_TYPE); writer.writeByte(FdocaConstants.NULL_LID); | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(length); if (first) { writer.writeByte(FdocaConstants.NGDA_TRIPLET_TYPE); writer.writeByte(FdocaConstants.SQLDTAGRP_LID); } else { //continued writer.writeByte(FdocaConstants.CPT_TRIPLET_TYPE); writer.writeByte(FdocaConstants.NULL_LID); } boolean hasRs = (rsmeta != null); // if don't have result, then we look at parameter meta for (int i = colStart; i <= colEnd; i++) { boolean nullable = (hasRs ? (rsmeta.isNullable(i) == rsmeta.columnNullable) : (pmeta.isNullable(i) == JDBC30Translation.PARAMETER_NULLABLE)); int colType = (hasRs ? rsmeta.getColumnType(i) : pmeta.getParameterType(i)); int[] outlen = {-1}; int drdaType = (hasRs ?FdocaConstants.mapJdbcTypeToDrdaType(appRequester,colType,nullable,outlen): stmt.getParamDRDAType(i)); boolean isDecimal = ((drdaType | 1) == DRDAConstants.DRDA_TYPE_NDECIMAL); int precision = 0, scale = 0; if (hasRs) { precision = rsmeta.getPrecision(i); scale = rsmeta.getScale(i); stmt.setRsDRDAType(i,drdaType); stmt.setRsPrecision(i, precision); stmt.setRsScale(i,scale); } else if (isDecimal) { if (stmt.isOutputParam(i)) ((CallableStatement) stmt.ps).registerOutParameter(i,Types.DECIMAL); precision = pmeta.getPrecision(i); scale = pmeta.getScale(i); } if (SanityManager.DEBUG) trace("jdbcType=" + colType + " \tdrdaType=" + Integer.toHexString(drdaType)); // Length or precision and scale for decimal values. writer.writeByte(drdaType); if (isDecimal) { writer.writeByte(precision); writer.writeByte(scale); } else if (outlen[0] != -1) writer.writeShort(outlen[0]); else if (hasRs) writer.writeShort(rsmeta.getColumnDisplaySize(i)); else writer.writeShort(stmt.getParamLen(i)); } } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/977561c9de22d12b40a3a2f79a8df22ba7fc7752/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
3997,
40,
7927,
54,
52,
12,
6331,
9793,
3406,
3480,
16,
10842,
6998,
3597,
3901,
16,
4697,
202,
9538,
1662,
694,
6998,
293,
3901,
16,
9506,
202,
474,
645,
1685,
16,
509,
645,
1638,
16,
1250,
1122,
13,
202,
15069,
16801,
9793,
5752,
503,
16,
6483,
288,
202,
474,
769,
273,
225,
261,
42,
2434,
69,
2918,
18,
3997,
40,
7927,
54,
52,
67,
4935,
67,
40,
2312,
67,
4574,
380,
1875,
4202,
14015,
1293,
1638,
15,
21,
13,
300,
645,
1685,
3719,
397,
890,
31,
202,
6299,
18,
2626,
3216,
12,
2469,
1769,
202,
430,
261,
3645,
13,
288,
202,
565,
2633,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
4960,
9793,
67,
6566,
52,
15146,
67,
2399,
1769,
202,
565,
2633,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
3997,
40,
7927,
54,
52,
67,
28447,
1769,
202,
97,
469,
288,
202,
565,
368,
1213,
267,
5957,
202,
565,
2633,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
39,
1856,
67,
6566,
52,
15146,
67,
2399,
1769,
202,
565,
2633,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
8560,
67,
28447,
1769,
202,
97,
6862,
1082,
565,
202,
6494,
711,
18880,
273,
261,
5453,
3901,
480,
446,
1769,
202,
759,
225,
309,
2727,
1404,
1240,
563,
16,
1508,
732,
2324,
622,
1569,
2191,
202,
1884,
261,
474,
277,
273,
645,
1685,
31,
277,
1648,
645,
1638,
31,
277,
27245,
288,
202,
565,
1250,
8413,
273,
261,
5332,
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,
3997,
40,
7927,
54,
52,
12,
6331,
9793,
3406,
3480,
16,
10842,
6998,
3597,
3901,
16,
4697,
202,
9538,
1662,
694,
6998,
293,
3901,
16,
9506,
202,
474,
645,
1685,
16,
509,
645,
1638,
16,
1250,
1122,
13,
202,
15069,
16801,
9793,
5752,
503,
16,
6483,
288,
202,
474,
769,
273,
225,
261,
42,
2434,
69,
2918,
18,
3997,
40,
7927,
54,
52,
67,
4935,
67,
40,
2312,
67,
4574,
380,
1875,
4202,
14015,
1293,
1638,
15,
21,
13,
300,
645,
1685,
3719,
397,
890,
31,
202,
6299,
18,
2626,
3216,
12,
2469,
1769,
202,
430,
261,
3645,
13,
288,
202,
565,
2633,
18,
2626,
3216,
12,
42,
2434,
69,
2918,
18,
4960,
9793,
67,
2
] |
JFormattedTextField field = new JFormattedTextField(SmackConfiguration.getVersionNumber()); | JFormattedTextField field = new JFormattedTextField(SmackConfiguration.getVersion()); | private void createDebug() { frame = new JFrame("Smack Debug Window"); // Add listener for window closing event frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent evt) { rootWindowClosing(evt); } }); // We'll arrange the UI into tabs. The last tab contains Smack's information. // All the connection debugger tabs will be shown before the Smack info tab. tabbedPane = new JTabbedPane(); // Create the Smack info panel JPanel informationPanel = new JPanel(); informationPanel.setLayout(new BoxLayout(informationPanel, BoxLayout.Y_AXIS)); // Add the Smack version label JPanel versionPanel = new JPanel(); versionPanel.setLayout(new BoxLayout(versionPanel, BoxLayout.X_AXIS)); versionPanel.setMaximumSize(new Dimension(2000, 31)); versionPanel.add(new JLabel(" Smack version: ")); JFormattedTextField field = new JFormattedTextField(SmackConfiguration.getVersionNumber()); field.setEditable(false); field.setBorder(null); versionPanel.add(field); informationPanel.add(versionPanel); // Add the list of installed IQ Providers JPanel iqProvidersPanel = new JPanel(); iqProvidersPanel.setLayout(new GridLayout(1, 1)); iqProvidersPanel.setBorder(BorderFactory.createTitledBorder("Installed IQ Providers")); Vector providers = new Vector(); for (Iterator it = ProviderManager.getIQProviders(); it.hasNext();) { Object provider = it.next(); providers.add( (provider.getClass() == Class.class ? provider : provider.getClass().getName())); } JList list = new JList(providers); iqProvidersPanel.add(new JScrollPane(list)); informationPanel.add(iqProvidersPanel); // Add the list of installed Extension Providers JPanel extensionProvidersPanel = new JPanel(); extensionProvidersPanel.setLayout(new GridLayout(1, 1)); extensionProvidersPanel.setBorder(BorderFactory.createTitledBorder("Installed Extension Providers")); providers = new Vector(); for (Iterator it = ProviderManager.getExtensionProviders(); it.hasNext();) { Object provider = it.next(); providers.add( (provider.getClass() == Class.class ? provider : provider.getClass().getName())); } list = new JList(providers); extensionProvidersPanel.add(new JScrollPane(list)); informationPanel.add(extensionProvidersPanel); tabbedPane.add("Smack Info", informationPanel); // Add pop-up menu. JPopupMenu menu = new JPopupMenu(); JMenuItem menuItem = new JMenuItem("Close"); menuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { // Remove the selected tab pane if it's not the Smack info pane if (tabbedPane.getSelectedIndex() < tabbedPane.getComponentCount() - 1) { int index = tabbedPane.getSelectedIndex(); // Notify to the debugger to stop debugging EnhancedDebugger debugger = (EnhancedDebugger)debuggers.get(index); debugger.cancel(); // Remove the debugger from the root window tabbedPane.remove(debugger.tabbedPane); debuggers.remove(debugger); // Update the root window title frame.setTitle( "Smack Debug Window -- Total connections: " + (tabbedPane.getComponentCount() - 1)); } } }); menu.add(menuItem); // Add listener to the text area so the popup menu can come up. tabbedPane.addMouseListener(new PopupListener(menu)); frame.getContentPane().add(tabbedPane); frame.setSize(650, 400); frame.setVisible(true); } | 1538 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1538/80663d63b004e1e8605e008b64477a37b29cf20f/EnhancedDebuggerWindow.java/buggy/source/org/jivesoftware/smackx/debugger/EnhancedDebuggerWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
2829,
1435,
288,
3639,
2623,
273,
394,
804,
3219,
2932,
9552,
484,
4015,
6076,
8863,
3639,
368,
1436,
2991,
364,
2742,
7647,
871,
540,
2623,
18,
1289,
3829,
2223,
12,
2704,
6076,
4216,
1435,
288,
5411,
1071,
918,
2742,
15745,
12,
3829,
1133,
6324,
13,
288,
7734,
1365,
3829,
15745,
12,
73,
11734,
1769,
5411,
289,
3639,
15549,
3639,
368,
1660,
5614,
2454,
726,
326,
6484,
1368,
10920,
18,
1021,
1142,
3246,
1914,
9425,
484,
1807,
1779,
18,
3639,
368,
4826,
326,
1459,
19977,
10920,
903,
506,
12188,
1865,
326,
9425,
484,
1123,
3246,
18,
540,
3246,
2992,
8485,
273,
394,
804,
5661,
2992,
8485,
5621,
3639,
368,
1788,
326,
9425,
484,
1123,
6594,
540,
24048,
1779,
5537,
273,
394,
24048,
5621,
3639,
1779,
5537,
18,
542,
3744,
12,
2704,
8549,
3744,
12,
13117,
5537,
16,
8549,
3744,
18,
61,
67,
25614,
10019,
3639,
368,
1436,
326,
9425,
484,
1177,
1433,
3639,
24048,
1177,
5537,
273,
394,
24048,
5621,
3639,
1177,
5537,
18,
542,
3744,
12,
2704,
8549,
3744,
12,
1589,
5537,
16,
8549,
3744,
18,
60,
67,
25614,
10019,
3639,
1177,
5537,
18,
542,
13528,
1225,
12,
2704,
13037,
12,
17172,
16,
8231,
10019,
3639,
1177,
5537,
18,
1289,
12,
2704,
21403,
2932,
9425,
484,
1177,
30,
9369,
1769,
3639,
804,
18298,
16157,
652,
273,
394,
804,
18298,
16157,
12,
9552,
484,
1750,
18,
588,
1444,
10663,
3639,
652,
18,
542,
15470,
12,
5743,
1769,
3639,
652,
18,
542,
8107,
12,
2011,
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,
752,
2829,
1435,
288,
3639,
2623,
273,
394,
804,
3219,
2932,
9552,
484,
4015,
6076,
8863,
3639,
368,
1436,
2991,
364,
2742,
7647,
871,
540,
2623,
18,
1289,
3829,
2223,
12,
2704,
6076,
4216,
1435,
288,
5411,
1071,
918,
2742,
15745,
12,
3829,
1133,
6324,
13,
288,
7734,
1365,
3829,
15745,
12,
73,
11734,
1769,
5411,
289,
3639,
15549,
3639,
368,
1660,
5614,
2454,
726,
326,
6484,
1368,
10920,
18,
1021,
1142,
3246,
1914,
9425,
484,
1807,
1779,
18,
3639,
368,
4826,
326,
1459,
19977,
10920,
903,
506,
12188,
1865,
326,
9425,
484,
1123,
3246,
18,
540,
3246,
2992,
8485,
273,
394,
804,
5661,
2992,
8485,
5621,
3639,
368,
1788,
326,
9425,
484,
1123,
6594,
540,
2
] |
ITextViewer textViewer= getViewer(); if (textViewer == null) return Status.CANCEL_STATUS; | String message; Position position= fPositions[i]; | public IStatus run(IProgressMonitor progressMonitor) { fProgressMonitor= progressMonitor; try { if (isCancelled()) return Status.CANCEL_STATUS; ITextViewer textViewer= getViewer(); if (textViewer == null) return Status.CANCEL_STATUS; IDocument document= textViewer.getDocument(); if (document == null) return Status.CANCEL_STATUS; IDocumentProvider documentProvider= getDocumentProvider(); if (documentProvider == null) return Status.CANCEL_STATUS; IAnnotationModel annotationModel= documentProvider.getAnnotationModel(getEditorInput()); if (annotationModel == null) return Status.CANCEL_STATUS; // Add occurrence annotations int length= fPositions.length; Map annotationMap= new HashMap(length); for (int i= 0; i < length; i++) { if (isCancelled()) return Status.CANCEL_STATUS; String message; Position position= fPositions[i]; // Create & add annotation try { message= document.get(position.offset, position.length); } catch (BadLocationException ex) { // Skip this match continue; } annotationMap.put( new Annotation("org.eclipse.jdt.ui.occurrences", false, message), //$NON-NLS-1$ position); } if (isCancelled()) return Status.CANCEL_STATUS; synchronized (getLockObject(annotationModel)) { if (annotationModel instanceof IAnnotationModelExtension) { ((IAnnotationModelExtension)annotationModel).replaceAnnotations(fOccurrenceAnnotations, annotationMap); } else { removeOccurrenceAnnotations(); Iterator iter= annotationMap.entrySet().iterator(); while (iter.hasNext()) { Map.Entry mapEntry= (Map.Entry)iter.next(); annotationModel.addAnnotation((Annotation)mapEntry.getKey(), (Position)mapEntry.getValue()); } } fOccurrenceAnnotations= (Annotation[])annotationMap.keySet().toArray(new Annotation[annotationMap.keySet().size()]); } } finally { fDocument.removeDocumentListener(this); } return Status.OK_STATUS; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/5f8421381da56be7f2f947bf37722810304a95cc/JavaEditor.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
467,
1482,
1086,
12,
45,
5491,
7187,
4007,
7187,
13,
288,
25083,
202,
74,
5491,
7187,
33,
4007,
7187,
31,
25083,
202,
698,
288,
6862,
9506,
202,
430,
261,
291,
21890,
10756,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
9506,
202,
1285,
408,
18415,
977,
18415,
33,
8893,
264,
5621,
4697,
202,
430,
261,
955,
18415,
422,
446,
13,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
9506,
202,
734,
504,
650,
1668,
33,
977,
18415,
18,
588,
2519,
5621,
9506,
202,
430,
261,
5457,
422,
446,
13,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
9506,
202,
734,
504,
650,
2249,
1668,
2249,
33,
9956,
2249,
5621,
9506,
202,
430,
261,
5457,
2249,
422,
446,
13,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
1082,
202,
45,
3257,
1488,
3204,
1488,
33,
1668,
2249,
18,
588,
3257,
1488,
12,
588,
6946,
1210,
10663,
9506,
202,
430,
261,
11495,
1488,
422,
446,
13,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
9506,
202,
759,
1436,
13083,
5617,
9506,
202,
474,
769,
33,
284,
11024,
18,
2469,
31,
9506,
202,
863,
3204,
863,
33,
394,
4317,
12,
2469,
1769,
9506,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
411,
769,
31,
277,
27245,
288,
6862,
25083,
202,
430,
261,
291,
21890,
10756,
25083,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
17322,
202,
202,
780,
883,
31,
6862,
202,
2555,
1754,
33,
284,
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,
467,
1482,
1086,
12,
45,
5491,
7187,
4007,
7187,
13,
288,
25083,
202,
74,
5491,
7187,
33,
4007,
7187,
31,
25083,
202,
698,
288,
6862,
9506,
202,
430,
261,
291,
21890,
10756,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
9506,
202,
1285,
408,
18415,
977,
18415,
33,
8893,
264,
5621,
4697,
202,
430,
261,
955,
18415,
422,
446,
13,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
9506,
202,
734,
504,
650,
1668,
33,
977,
18415,
18,
588,
2519,
5621,
9506,
202,
430,
261,
5457,
422,
446,
13,
6862,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
9506,
202,
734,
504,
650,
2249,
1668,
2249,
33,
9956,
2249,
5621,
9506,
2
] |
buffer.append(">"); | buffer.append(">"); | private static String textToHTML(String string) { StringBuffer buffer= new StringBuffer(string.length()); buffer.append("<pre>"); // $NON-NLS-1$ for (int i= 0; i != string.length(); i++) { char ch= string.charAt(i); switch (ch) { case '&': buffer.append("&"); // $NON-NLS-1$ break; case '<': buffer.append("<"); // $NON-NLS-1$ break; case '>': buffer.append(">"); // $NON-NLS-1$ break; case '\t': buffer.append(" "); // $NON-NLS-1$ break; case '\n': buffer.append("<br>"); // $NON-NLS-1$ break; default: buffer.append(ch); break; } } buffer.append("</pre>"); // $NON-NLS-1$ return buffer.toString(); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/8fd6bb8c14846aef9e72daa8d9eecbcf024df9c0/TemplateProposal.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateProposal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
514,
977,
774,
4870,
12,
780,
533,
13,
288,
202,
202,
780,
1892,
1613,
33,
394,
6674,
12,
1080,
18,
2469,
10663,
202,
202,
4106,
18,
6923,
2932,
32,
1484,
2984,
1769,
368,
271,
3993,
17,
5106,
17,
21,
8,
1082,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
480,
533,
18,
2469,
5621,
277,
27245,
288,
1082,
202,
3001,
462,
33,
533,
18,
3001,
861,
12,
77,
1769,
25083,
202,
9610,
261,
343,
13,
288,
9506,
202,
3593,
5183,
4278,
6862,
202,
4106,
18,
6923,
2932,
10,
931,
4868,
1769,
368,
271,
3993,
17,
5106,
17,
21,
8,
6862,
202,
8820,
31,
6862,
6862,
202,
3593,
2368,
4278,
6862,
202,
4106,
18,
6923,
2932,
10,
5618,
4868,
1769,
368,
271,
3993,
17,
5106,
17,
21,
8,
6862,
202,
8820,
31,
9506,
202,
3593,
7481,
30,
6862,
202,
4106,
18,
6923,
2932,
10,
4521,
4868,
1769,
368,
271,
3993,
17,
5106,
17,
21,
8,
6862,
202,
8820,
31,
9506,
202,
3593,
2337,
88,
4278,
6862,
202,
4106,
18,
6923,
2932,
565,
315,
1769,
368,
271,
3993,
17,
5106,
17,
21,
8,
6862,
202,
8820,
31,
9506,
202,
3593,
2337,
82,
4278,
6862,
202,
4106,
18,
6923,
2932,
32,
2848,
2984,
1769,
368,
271,
3993,
17,
5106,
17,
21,
8,
6862,
202,
8820,
31,
9506,
202,
1886,
30,
6862,
202,
4106,
18,
6923,
12,
343,
1769,
6862,
202,
8820,
31,
1082,
202,
97,
202,
202,
97,
202,
202,
4106,
18,
6923,
2932,
1757,
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,
514,
977,
774,
4870,
12,
780,
533,
13,
288,
202,
202,
780,
1892,
1613,
33,
394,
6674,
12,
1080,
18,
2469,
10663,
202,
202,
4106,
18,
6923,
2932,
32,
1484,
2984,
1769,
368,
271,
3993,
17,
5106,
17,
21,
8,
1082,
202,
1884,
261,
474,
277,
33,
374,
31,
277,
480,
533,
18,
2469,
5621,
277,
27245,
288,
1082,
202,
3001,
462,
33,
533,
18,
3001,
861,
12,
77,
1769,
25083,
202,
9610,
261,
343,
13,
288,
9506,
202,
3593,
5183,
4278,
6862,
202,
4106,
18,
6923,
2932,
10,
931,
4868,
1769,
368,
271,
3993,
17,
5106,
17,
21,
8,
6862,
202,
8820,
31,
6862,
6862,
202,
3593,
2368,
4278,
6862,
202,
4106,
18,
6923,
2
] |
return createLocationAdapter(); } | return createLocationAdapter(); } | public Object caseLocation(Location object) { return createLocationAdapter(); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/NotationAdapterFactory.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation/src/org/eclipse/gmf/runtime/notation/util/NotationAdapterFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
648,
2735,
12,
2735,
733,
13,
288,
9506,
202,
2463,
752,
2735,
4216,
5621,
1082,
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,
1875,
202,
482,
1033,
648,
2735,
12,
2735,
733,
13,
288,
9506,
202,
2463,
752,
2735,
4216,
5621,
1082,
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
] |
ModifierPragma m = Utils.findModifierPragma(rd.pmodifiers,TagConstants.NON_NULL); if (m != null) { int locNN = m.getStartLoc(); Expr r = ResExpr.make(locNN); javafe.tc.FlowInsensitiveChecks.setType(r, ((MethodDecl)rd).returnType); Expr n = LiteralExpr.make(TagConstants.NULLLIT, null, locNN); javafe.tc.FlowInsensitiveChecks.setType(n, Types.nullType); Expr e = BinaryExpr.make(TagConstants.NE, r, n, locNN); javafe.tc.FlowInsensitiveChecks.setType(e, Types.booleanType); ExprModifierPragma emp = ExprModifierPragma.make(TagConstants.ENSURES, e, locNN); emp.errorTag = TagConstants.CHKNONNULLRESULT; result.addElement(emp); | if (rd instanceof MethodDecl) { ModifierPragma m = Utils.findModifierPragma(rd.pmodifiers,TagConstants.NON_NULL); if (m != null) { int locNN = m.getStartLoc(); Expr r = ResExpr.make(locNN); javafe.tc.FlowInsensitiveChecks.setType(r, ((MethodDecl)rd).returnType); Expr n = LiteralExpr.make(TagConstants.NULLLIT, null, locNN); javafe.tc.FlowInsensitiveChecks.setType(n, Types.nullType); Expr e = BinaryExpr.make(TagConstants.NE, r, n, locNN); javafe.tc.FlowInsensitiveChecks.setType(e, Types.booleanType); ExprModifierPragma emp = ExprModifierPragma.make(TagConstants.ENSURES, e, locNN); emp.errorTag = TagConstants.CHKNONNULLRESULT; result.addElement(emp); } | public ModifierPragmaVec getNonNull(RoutineDecl rd) { ModifierPragmaVec result = ModifierPragmaVec.make(2); FormalParaDeclVec args = rd.args; // Check that non_null on parameters is allowed if (rd instanceof MethodDecl) { MethodDecl md = (MethodDecl)rd; // Need to check all overrides, because we may not have processed a // given direct override yet, removing its spurious non_null javafe.util.Set overrides = FlowInsensitiveChecks.getAllOverrides(md); if (overrides != null && !overrides.isEmpty()) { for (int i=0; i<args.size(); ++i) { FormalParaDecl arg = args.elementAt(i); ModifierPragma m = Utils.findModifierPragma(arg,TagConstants.NON_NULL); if (m != null) { // overriding method has non_null for parameter i MethodDecl smd = FlowInsensitiveChecks.getSuperNonNullStatus(md,i,overrides); if (smd != null) { // overridden method does not have non_null for i FormalParaDecl sf = smd.args.elementAt(i); ErrorSet.caution(m.getStartLoc(), "The non_null annotation is ignored because this method overrides a method declaration in which this parameter is not declared non_null: ",sf.getStartLoc()); Utils.removeModifierPragma(arg,TagConstants.NON_NULL); } } } } } // Handle non_null on any parameter for (int i=0; i<args.size(); ++i) { FormalParaDecl arg = args.elementAt(i); ModifierPragma m = Utils.findModifierPragma(arg.pmodifiers,TagConstants.NON_NULL); if (m == null) continue; int locNN = m.getStartLoc(); result.addElement( ExprModifierPragma.make(TagConstants.REQUIRES, NonNullExpr.make(arg,locNN), locNN) ); } // Handle non_null on the result ModifierPragma m = Utils.findModifierPragma(rd.pmodifiers,TagConstants.NON_NULL); if (m != null) { int locNN = m.getStartLoc(); Expr r = ResExpr.make(locNN); javafe.tc.FlowInsensitiveChecks.setType(r, ((MethodDecl)rd).returnType); Expr n = LiteralExpr.make(TagConstants.NULLLIT, null, locNN); javafe.tc.FlowInsensitiveChecks.setType(n, Types.nullType); Expr e = BinaryExpr.make(TagConstants.NE, r, n, locNN); javafe.tc.FlowInsensitiveChecks.setType(e, Types.booleanType); ExprModifierPragma emp = ExprModifierPragma.make(TagConstants.ENSURES, e, locNN); emp.errorTag = TagConstants.CHKNONNULLRESULT; result.addElement(emp); } return result; } | 46634 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46634/f9907000697340852e07bdfcb40d929ae48dc6bc/AnnotationHandler.java/buggy/src/escjava/trunk/ESCTools/Escjava/java/escjava/AnnotationHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12832,
2050,
9454,
12991,
336,
8921,
12,
4583,
558,
3456,
9437,
13,
288,
202,
9829,
2050,
9454,
12991,
563,
273,
12832,
2050,
9454,
12991,
18,
6540,
12,
22,
1769,
202,
12183,
23529,
3456,
12991,
833,
273,
9437,
18,
1968,
31,
202,
759,
2073,
716,
1661,
67,
2011,
603,
1472,
353,
2935,
202,
430,
261,
13623,
1276,
2985,
3456,
13,
288,
202,
565,
2985,
3456,
3481,
273,
261,
1305,
3456,
13,
13623,
31,
202,
565,
368,
12324,
358,
866,
777,
9515,
16,
2724,
732,
2026,
486,
1240,
5204,
279,
202,
565,
368,
864,
2657,
3849,
4671,
16,
9427,
2097,
1694,
1650,
1481,
1661,
67,
2011,
202,
565,
2252,
3030,
18,
1367,
18,
694,
9515,
273,
9473,
21931,
4081,
18,
588,
1595,
13084,
12,
1264,
1769,
202,
565,
309,
261,
19775,
480,
446,
597,
401,
19775,
18,
291,
1921,
10756,
288,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
1968,
18,
1467,
5621,
965,
77,
13,
288,
1082,
565,
478,
1687,
23529,
3456,
1501,
273,
833,
18,
2956,
861,
12,
77,
1769,
1082,
565,
12832,
2050,
9454,
312,
273,
6091,
18,
4720,
9829,
2050,
9454,
12,
3175,
16,
1805,
2918,
18,
3993,
67,
8560,
1769,
1082,
565,
309,
261,
81,
480,
446,
13,
288,
368,
19488,
707,
711,
1661,
67,
2011,
364,
1569,
277,
1082,
202,
1305,
3456,
272,
1264,
273,
9473,
21931,
4081,
18,
588,
8051,
8921,
1482,
12,
1264,
16,
77,
16,
19775,
1769,
1082,
202,
430,
261,
87,
1264,
480,
446,
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,
12832,
2050,
9454,
12991,
336,
8921,
12,
4583,
558,
3456,
9437,
13,
288,
202,
9829,
2050,
9454,
12991,
563,
273,
12832,
2050,
9454,
12991,
18,
6540,
12,
22,
1769,
202,
12183,
23529,
3456,
12991,
833,
273,
9437,
18,
1968,
31,
202,
759,
2073,
716,
1661,
67,
2011,
603,
1472,
353,
2935,
202,
430,
261,
13623,
1276,
2985,
3456,
13,
288,
202,
565,
2985,
3456,
3481,
273,
261,
1305,
3456,
13,
13623,
31,
202,
565,
368,
12324,
358,
866,
777,
9515,
16,
2724,
732,
2026,
486,
1240,
5204,
279,
202,
565,
368,
864,
2657,
3849,
4671,
16,
9427,
2097,
1694,
1650,
1481,
1661,
67,
2011,
202,
565,
2252,
3030,
18,
1367,
18,
694,
9515,
273,
9473,
21931,
4081,
2
] |
public void testUnitsRemovePlayer() { //make sure we know where we are starting PlayerID chretian = m_data.getPlayerList().getPlayerID("chretian"); assertEquals(chretian.getUnits().getUnitCount(), 10); //remove some units Collection units = chretian.getUnits().getUnits(m_data.getUnitTypeList().getUnitType("inf"), 3); Change change = ChangeFactory.removeUnits(chretian, units); change.perform(m_data); assertEquals(chretian.getUnits().getUnitCount(), 7); //invert the change change = change.invert(); change.perform(m_data); assertEquals(chretian.getUnits().getUnitCount(), 10); } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/65dc97c8bd1d73da6a21d79d5ad468e6bb971a9b/ChangeTest.java/clean/src/games/strategy/engine/data/ChangeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
7537,
3288,
12148,
1435,
202,
95,
202,
202,
759,
6540,
3071,
732,
5055,
1625,
732,
854,
5023,
202,
202,
12148,
734,
462,
1349,
2779,
273,
312,
67,
892,
18,
588,
12148,
682,
7675,
588,
12148,
734,
2932,
343,
1349,
2779,
8863,
202,
202,
11231,
8867,
12,
343,
1349,
2779,
18,
588,
7537,
7675,
588,
2802,
1380,
9334,
1728,
1769,
9506,
202,
759,
4479,
2690,
4971,
202,
202,
2532,
4971,
273,
462,
1349,
2779,
18,
588,
7537,
7675,
588,
7537,
12,
81,
67,
892,
18,
588,
2802,
559,
682,
7675,
588,
2802,
559,
2932,
10625,
6,
3631,
890,
1769,
202,
202,
3043,
2549,
273,
7576,
1733,
18,
4479,
7537,
12,
343,
1349,
2779,
16,
4971,
1769,
202,
202,
3427,
18,
16092,
12,
81,
67,
892,
1769,
202,
202,
11231,
8867,
12,
343,
1349,
2779,
18,
588,
7537,
7675,
588,
2802,
1380,
9334,
2371,
1769,
25083,
202,
759,
267,
1097,
326,
2549,
202,
202,
3427,
273,
2549,
18,
267,
1097,
5621,
202,
202,
3427,
18,
16092,
12,
81,
67,
892,
1769,
202,
202,
11231,
8867,
12,
343,
1349,
2779,
18,
588,
7537,
7675,
588,
2802,
1380,
9334,
1728,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
7537,
3288,
12148,
1435,
202,
95,
202,
202,
759,
6540,
3071,
732,
5055,
1625,
732,
854,
5023,
202,
202,
12148,
734,
462,
1349,
2779,
273,
312,
67,
892,
18,
588,
12148,
682,
7675,
588,
12148,
734,
2932,
343,
1349,
2779,
8863,
202,
202,
11231,
8867,
12,
343,
1349,
2779,
18,
588,
7537,
7675,
588,
2802,
1380,
9334,
1728,
1769,
9506,
202,
759,
4479,
2690,
4971,
202,
202,
2532,
4971,
273,
462,
1349,
2779,
18,
588,
7537,
7675,
588,
7537,
12,
81,
67,
892,
18,
588,
2802,
559,
682,
7675,
588,
2802,
559,
2932,
10625,
6,
3631,
890,
1769,
202,
202,
3043,
2549,
273,
7576,
1733,
18,
4479,
7537,
12,
343,
1349,
2779,
16,
4971,
2
] |
||
INSTANCE = this; | public ApplyMylarToNavigatorAction() { super(new InterestFilter()); INSTANCE = this; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e5dab796c6efd0dc2b845a7eaada8eb3254ee0c8/ApplyMylarToNavigatorAction.java/clean/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/internal/ide/ui/actions/ApplyMylarToNavigatorAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5534,
12062,
7901,
774,
22817,
1803,
1435,
288,
202,
202,
9565,
12,
2704,
5294,
395,
1586,
10663,
202,
202,
13341,
273,
333,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5534,
12062,
7901,
774,
22817,
1803,
1435,
288,
202,
202,
9565,
12,
2704,
5294,
395,
1586,
10663,
202,
202,
13341,
273,
333,
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
] |
|
} else { System.err.println("ERROR: no variable is defined. " + res.src + " is not parsed."); | } else { System.err.println( "ERROR: no variable is defined. " + res.src + " is not parsed."); | public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull variables int i; String str; Iterator iter; InputStream inStream; // We get the XML data tree XMLElement data = getXMLTree(); // We get the Packager Packager packager = getPackager(); // We add the variable declaration packager.setVariables(getVariables(data)); // We add the info packager.setInfo(getInfo(data)); // We add the GUIPrefs packager.setGUIPrefs(getGUIPrefs(data)); // We add the language packs iter = getLangpacksCodes(data).iterator(); while (iter.hasNext()) { str = (String) iter.next(); // The language pack - first try to get stream directly (for standalone compiler) inStream = getClass().getResourceAsStream("/bin/langpacks/installer/"+str+".xml"); if (inStream == null) { inStream = new FileInputStream(Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "installer" + File.separator + str + ".xml"); } packager.addLangPack(str, inStream); // The flag - try to get stream for standalone compiler inStream = getClass ().getResourceAsStream("/bin/langpacks/flags/"+str+".gif"); if (inStream == null) { inStream = new FileInputStream(Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "flags" + File.separator + str + ".gif"); } packager.addResource("flag." + str, inStream); inStream.close (); } // We add the resources iter = getResources(data).iterator(); while (iter.hasNext()) { Resource res = (Resource) iter.next(); if (res.parse) { if ((res.src == null) || (res.src_is != null)) { System.err.println("ERROR: cannot parse resource from stream. (Internal error.)"); packager.addResource(res.id, res.src_is); } if (null != varMap) { File resFile = new File(res.src); FileInputStream inFile = new FileInputStream(resFile); BufferedInputStream bin = new BufferedInputStream(inFile, 5120); File parsedFile = File.createTempFile("izpp", null, resFile.getParentFile()); FileOutputStream outFile = new FileOutputStream(parsedFile); BufferedOutputStream bout = new BufferedOutputStream(outFile, 5120); VariableSubstitutor vs = new VariableSubstitutor(varMap); vs.substitute(bin, bout, res.type, res.encoding); bin.close(); bout.close(); inFile = new FileInputStream(parsedFile); packager.addResource(res.id, inFile); inFile.close(); parsedFile.delete(); } else { System.err.println("ERROR: no variable is defined. " + res.src + " is not parsed."); inStream = new FileInputStream(res.src); packager.addResource(res.id, inStream); inStream.close (); } } else { if (res.src != null) { inStream = new FileInputStream(res.src); } else { inStream = res.src_is; } packager.addResource(res.id, inStream); if (res.src != null) inStream.close (); } } // We add the native libraries iter = getNativeLibraries(data).iterator(); while (iter.hasNext()) { NativeLibrary nat = (NativeLibrary) iter.next(); inStream = new FileInputStream(nat.path); packager.addNativeLibrary(nat.name, inStream); } // We add the additionnal jar files content iter = getJars(data).iterator(); while (iter.hasNext()) packager.addJarContent((String) iter.next()); // We add the panels ArrayList panels = getPanels(data); TreeSet panelsCache = new TreeSet(); iter = getPanels(data).iterator(); while (iter.hasNext()) { Panel p = (Panel)iter.next(); // We locate the panel classes directory str = p.className; // first try to get a Jar file for standalone compiler JarInputStream panel_is = null; try { InputStream jarInStream = getClass().getResourceAsStream("/bin/panels/"+str+".jar"); if (jarInStream != null) panel_is = new JarInputStream (jarInStream); } catch (IOException e) { // for now, ignore this - try to read panel classes from filesystem panel_is = null; } if (panel_is != null) { if (panelsCache.contains(str)) continue; panelsCache.add(str); // now add files ZipEntry entry = null; while ((entry = panel_is.getNextEntry()) != null) packager.addPanelClass(entry.getName(), panel_is); } else { File dir = new File(Compiler.IZPACK_HOME + "bin" + File.separator + "panels" + File.separator + str); if (!dir.exists()) throw new Exception(str + " panel does not exist"); // We add each file in the panel folder if (panelsCache.contains(str)) continue; panelsCache.add(str); File[] files = dir.listFiles(); int nf = files.length; for (int j = 0; j < nf; j++) { if (files[j].isDirectory()) continue; FileInputStream inClass = new FileInputStream(files[j]); packager.addPanelClass(files[j].getName(), inClass); } } } // We set the panels order packager.setPanelsOrder(panels); Map storedFiles = new HashMap(); // We add the packs i = 0; //pack counter iter = getPacks(data).iterator(); while (iter.hasNext()) { Pack pack = (Pack) iter.next(); ZipOutputStream zipOut = packager.addPack(i, pack.name, pack.osConstraints, pack.required, pack.description, pack.preselected); zipOut.flush();//make sure buffers are flushed before we start counting ByteCountingOutputStream dos = new ByteCountingOutputStream(zipOut);//stream with byte counter ObjectOutputStream objOut = new ObjectOutputStream(dos); // We write the pack data objOut.writeInt(pack.packFiles.size()); Iterator iter2 = pack.packFiles.iterator(); long packageBytes = 0; while (iter2.hasNext()) { // Initialisations PackSource p = (PackSource) iter2.next(); File f = new File(p.src); FileInputStream in = new FileInputStream(f); long nbytes = f.length(); long mtime = f.lastModified(); String targetFilename = p.getTargetFilename (); // pack paths in canonical (unix) form regardless of current host o/s: if('/' != File.separatorChar) { targetFilename = targetFilename.replace(File.separatorChar, '/'); } // Writing PackFile pf = new PackFile(targetFilename, p.osConstraints, nbytes, mtime, p.override); long[] info = (long[])storedFiles.get(p.src); boolean addFile = true; if (info != null && packager.allowPackFileBackReferences()) { pf.setPreviousPackFileRef((int)info[0],info[1]); addFile = false; } objOut.writeObject(pf); objOut.flush();//make sure it is written long pos = dos.getByteCount();//get the position if (addFile) { byte[] buffer = new byte[5120]; long bytesWritten = 0; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { objOut.write(buffer, 0, bytesInBuffer); bytesWritten += bytesInBuffer; } if (bytesWritten != nbytes) throw new IOException ("File size mismatch when reading " + f); storedFiles.put(p.src,new long[]{i,pos}); } packageBytes += nbytes;//aldo could be not really written we still want to know size. in.close(); } packager.packAdded(i, packageBytes); // Write out information about parsable files objOut.writeInt(pack.parsables.size()); iter2 = pack.parsables.iterator(); while (iter2.hasNext()) objOut.writeObject(iter2.next()); // Write out information about executable files objOut.writeInt(pack.executables.size()); iter2 = pack.executables.iterator(); while (iter2.hasNext()) { objOut.writeObject(iter2.next()); } // Write out information about executable files objOut.writeInt(pack.updatechecks.size()); iter2 = pack.updatechecks.iterator(); while (iter2.hasNext()) { objOut.writeObject(iter2.next()); } // Cleanup objOut.flush(); zipOut.closeEntry(); i++; } // We ask the packager to finish packager.finish(); this.compileFailed = false; } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/47db88bfea6b64e47a33aa3c937b2ce6e8640d56/Compiler.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
9213,
1435,
1216,
1185,
225,
288,
565,
368,
3883,
471,
1842,
30,
2660,
30,
2026,
1699,
5166,
309,
732,
2583,
1045,
2006,
565,
1387,
1026,
273,
394,
1387,
12,
31722,
2934,
588,
10368,
812,
5621,
565,
309,
16051,
1026,
18,
4169,
1994,
1435,
747,
401,
1026,
18,
291,
2853,
10756,
1377,
604,
394,
28227,
2932,
1941,
1026,
1867,
30,
13773,
1969,
1769,
3639,
368,
2672,
2854,
3152,
565,
509,
277,
31,
565,
514,
609,
31,
565,
4498,
1400,
31,
565,
5037,
28987,
31,
565,
368,
1660,
336,
326,
3167,
501,
2151,
565,
1139,
11155,
501,
273,
336,
4201,
2471,
5621,
565,
368,
1660,
336,
326,
7930,
6817,
565,
7930,
6817,
2298,
6817,
273,
30401,
6817,
5621,
565,
368,
1660,
527,
326,
2190,
8266,
565,
2298,
6817,
18,
542,
6158,
12,
588,
6158,
12,
892,
10019,
565,
368,
1660,
527,
326,
1123,
565,
2298,
6817,
18,
542,
966,
12,
588,
966,
12,
892,
10019,
565,
368,
1660,
527,
326,
10978,
1386,
2556,
565,
2298,
6817,
18,
542,
43,
5370,
1386,
2556,
12,
588,
43,
5370,
1386,
2556,
12,
892,
10019,
565,
368,
1660,
527,
326,
2653,
2298,
87,
565,
1400,
273,
24930,
2920,
87,
6295,
12,
892,
2934,
9838,
5621,
565,
1323,
261,
2165,
18,
5332,
2134,
10756,
565,
288,
1377,
609,
273,
261,
780,
13,
1400,
18,
4285,
5621,
1377,
368,
1021,
2653,
2298,
300,
1122,
775,
358,
336,
1407,
5122,
261,
1884,
17676,
5274,
13,
1377,
28987,
273,
2900,
7675,
588,
1420,
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,
918,
1836,
9213,
1435,
1216,
1185,
225,
288,
565,
368,
3883,
471,
1842,
30,
2660,
30,
2026,
1699,
5166,
309,
732,
2583,
1045,
2006,
565,
1387,
1026,
273,
394,
1387,
12,
31722,
2934,
588,
10368,
812,
5621,
565,
309,
16051,
1026,
18,
4169,
1994,
1435,
747,
401,
1026,
18,
291,
2853,
10756,
1377,
604,
394,
28227,
2932,
1941,
1026,
1867,
30,
13773,
1969,
1769,
3639,
368,
2672,
2854,
3152,
565,
509,
277,
31,
565,
514,
609,
31,
565,
4498,
1400,
31,
565,
5037,
28987,
31,
565,
368,
1660,
336,
326,
3167,
501,
2151,
565,
1139,
11155,
501,
273,
336,
4201,
2471,
5621,
565,
368,
1660,
336,
326,
7930,
6817,
565,
7930,
6817,
2298,
6817,
273,
30401,
6817,
2
] |
if (cx.interpreterLineCounting != null) { | if (cx.lastInterpreterFrame != null) { | static String getSourcePositionFromStack(int[] linep) { Context cx = getCurrentContext(); if (cx == null) return null; if (cx.interpreterLineCounting != null) { return Interpreter.getSourcePositionFromStack(cx, linep); } /** * A bit of a hack, but the only way to get filename and line * number from an enclosing frame. */ CharArrayWriter writer = new CharArrayWriter(); RuntimeException re = new RuntimeException(); re.printStackTrace(new PrintWriter(writer)); String s = writer.toString(); int open = -1; int close = -1; int colon = -1; for (int i=0; i < s.length(); i++) { char c = s.charAt(i); if (c == ':') colon = i; else if (c == '(') open = i; else if (c == ')') close = i; else if (c == '\n' && open != -1 && close != -1 && colon != -1 && open < colon && colon < close) { String fileStr = s.substring(open + 1, colon); if (!fileStr.endsWith(".java")) { String lineStr = s.substring(colon + 1, close); try { linep[0] = Integer.parseInt(lineStr); if (linep[0] < 0) { linep[0] = 0; } return fileStr; } catch (NumberFormatException e) { // fall through } } open = close = colon = -1; } } return null; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/344cf0f06ec4e5af67d47361bef20d45c47eb470/Context.java/clean/js/rhino/src/org/mozilla/javascript/Context.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
514,
7889,
2555,
1265,
2624,
12,
474,
8526,
980,
84,
13,
565,
288,
3639,
1772,
9494,
273,
5175,
1042,
5621,
3639,
309,
261,
71,
92,
422,
446,
13,
5411,
327,
446,
31,
3639,
309,
261,
71,
92,
18,
2722,
30010,
3219,
480,
446,
13,
288,
5411,
327,
5294,
11599,
18,
588,
1830,
2555,
1265,
2624,
12,
71,
92,
16,
980,
84,
1769,
3639,
289,
3639,
1783,
540,
380,
432,
2831,
434,
279,
11769,
16,
1496,
326,
1338,
4031,
358,
336,
1544,
471,
980,
540,
380,
1300,
628,
392,
16307,
2623,
18,
540,
1195,
3639,
3703,
1076,
2289,
2633,
273,
394,
3703,
1076,
2289,
5621,
3639,
3235,
283,
273,
394,
3235,
5621,
3639,
283,
18,
1188,
6332,
12,
2704,
14071,
12,
6299,
10019,
3639,
514,
272,
273,
2633,
18,
10492,
5621,
3639,
509,
1696,
273,
300,
21,
31,
3639,
509,
1746,
273,
300,
21,
31,
3639,
509,
13336,
273,
300,
21,
31,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
272,
18,
2469,
5621,
277,
27245,
288,
5411,
1149,
276,
273,
272,
18,
3001,
861,
12,
77,
1769,
5411,
309,
261,
71,
422,
3921,
13,
7734,
13336,
273,
277,
31,
5411,
469,
309,
261,
71,
422,
7321,
13,
7734,
1696,
273,
277,
31,
5411,
469,
309,
261,
71,
422,
5777,
13,
7734,
1746,
273,
277,
31,
5411,
469,
309,
261,
71,
422,
2337,
82,
11,
597,
1696,
480,
300,
21,
597,
1746,
480,
300,
21,
597,
13336,
480,
300,
21,
597,
5397,
1696,
411,
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,
760,
514,
7889,
2555,
1265,
2624,
12,
474,
8526,
980,
84,
13,
565,
288,
3639,
1772,
9494,
273,
5175,
1042,
5621,
3639,
309,
261,
71,
92,
422,
446,
13,
5411,
327,
446,
31,
3639,
309,
261,
71,
92,
18,
2722,
30010,
3219,
480,
446,
13,
288,
5411,
327,
5294,
11599,
18,
588,
1830,
2555,
1265,
2624,
12,
71,
92,
16,
980,
84,
1769,
3639,
289,
3639,
1783,
540,
380,
432,
2831,
434,
279,
11769,
16,
1496,
326,
1338,
4031,
358,
336,
1544,
471,
980,
540,
380,
1300,
628,
392,
16307,
2623,
18,
540,
1195,
3639,
3703,
1076,
2289,
2633,
273,
394,
3703,
1076,
2289,
5621,
3639,
3235,
283,
273,
394,
3235,
5621,
3639,
283,
18,
1188,
6332,
12,
2
] |
text.append(";"); | text.append(";"); | protected String constructHeaderFileContent(String lineDelimiter){ StringBuffer text = new StringBuffer(); boolean extendingBase = false; String baseClassName = getBaseClassName(); String baseClassFileName = ""; if((baseClassName != null) && (baseClassName.length() > 0)) { extendingBase = true; List classElements = findClassElementsInProject(); BasicSearchMatch baseClass = (BasicSearchMatch)findInList(baseClassName, null, classElements);// if(baseClass != null){// IPath baseClassFileLocation = baseClass.getLocation();// IPath newFilePath = getContainerFullPath(linkedResourceGroupForHeader);// baseClassFileName = baseClassName + HEADER_EXT;// } else { baseClassFileName = baseClassName + HEADER_EXT;// } } if(isIncludeGuard()){ text.append("#ifndef "); text.append(getNewClassName().toUpperCase()); text.append("_H"); text.append(lineDelimiter); text.append("#define "); text.append(getNewClassName().toUpperCase()); text.append("_H"); text.append(lineDelimiter); text.append(lineDelimiter); } if(extendingBase){ text.append("#include \""); text.append(baseClassFileName); text.append('\"'); text.append(lineDelimiter); text.append(lineDelimiter); } text.append("class "); text.append(getNewClassName()); if(extendingBase){ text.append(" : "); text.append(getAccess()); text.append(" "); text.append(baseClassName); } text.append("{"); text.append(lineDelimiter); text.append("public:"); text.append(lineDelimiter); text.append(lineDelimiter); // constructor text.append('\t'); text.append(getNewClassName()); text.append("()"); if(isInline()){ text.append(" {}"); text.append(lineDelimiter); }else { text.append(";"); text.append(lineDelimiter); } // destructor text.append('\t'); if(isVirtualDestructor()){ text.append("virtual "); } text.append("~"); text.append(getNewClassName()); text.append("()"); if(isInline()){ text.append(" {}"); text.append(lineDelimiter); }else { text.append(";"); text.append(lineDelimiter); } text.append("};"); text.append(lineDelimiter); if(isIncludeGuard()){ text.append(lineDelimiter); text.append("#endif // "); text.append(getNewClassName().toUpperCase()); text.append("_H"); text.append(lineDelimiter); } return text.toString(); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/1738ff26440cb838b4d42f49cb8d29c4cc9babdf/NewClassWizardPage.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizardPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
514,
4872,
1864,
25391,
12,
780,
980,
12007,
15329,
202,
202,
780,
1892,
977,
273,
394,
6674,
5621,
202,
202,
6494,
27147,
2171,
273,
629,
31,
202,
202,
780,
1026,
3834,
273,
8297,
3834,
5621,
202,
202,
780,
23955,
4771,
273,
1408,
31,
202,
202,
430,
12443,
1969,
3834,
480,
446,
13,
597,
261,
1969,
3834,
18,
2469,
1435,
405,
374,
3719,
202,
202,
95,
1082,
202,
408,
2846,
2171,
273,
638,
31,
1082,
202,
682,
667,
3471,
273,
1104,
797,
3471,
382,
4109,
5621,
1082,
202,
8252,
2979,
2060,
23955,
273,
261,
8252,
2979,
2060,
13,
4720,
24218,
12,
1969,
3834,
16,
446,
16,
667,
3471,
1769,
759,
1082,
202,
430,
12,
1969,
797,
480,
446,
15329,
759,
9506,
202,
45,
743,
23955,
812,
2735,
273,
23955,
18,
588,
2735,
5621,
759,
9506,
202,
45,
743,
394,
5598,
273,
9272,
24173,
12,
17738,
18860,
1290,
1864,
1769,
759,
9506,
202,
1969,
797,
4771,
273,
1026,
3834,
397,
11659,
67,
4142,
31,
759,
1082,
202,
97,
469,
288,
9506,
202,
1969,
797,
4771,
273,
1026,
3834,
397,
11659,
67,
4142,
31,
759,
1082,
202,
97,
202,
202,
97,
9506,
202,
430,
12,
291,
8752,
16709,
10756,
95,
1082,
202,
955,
18,
6923,
2932,
7,
430,
82,
536,
315,
1769,
1082,
202,
955,
18,
6923,
12,
588,
1908,
3834,
7675,
869,
8915,
10663,
1082,
202,
955,
18,
6923,
2932,
67,
44,
8863,
1082,
202,
955,
18,
6923,
12,
1369,
12007,
1769,
1082,
202,
955,
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,
225,
202,
1117,
514,
4872,
1864,
25391,
12,
780,
980,
12007,
15329,
202,
202,
780,
1892,
977,
273,
394,
6674,
5621,
202,
202,
6494,
27147,
2171,
273,
629,
31,
202,
202,
780,
1026,
3834,
273,
8297,
3834,
5621,
202,
202,
780,
23955,
4771,
273,
1408,
31,
202,
202,
430,
12443,
1969,
3834,
480,
446,
13,
597,
261,
1969,
3834,
18,
2469,
1435,
405,
374,
3719,
202,
202,
95,
1082,
202,
408,
2846,
2171,
273,
638,
31,
1082,
202,
682,
667,
3471,
273,
1104,
797,
3471,
382,
4109,
5621,
1082,
202,
8252,
2979,
2060,
23955,
273,
261,
8252,
2979,
2060,
13,
4720,
24218,
12,
1969,
3834,
16,
446,
16,
667,
3471,
1769,
759,
1082,
202,
430,
12,
1969,
797,
480,
2
] |
void encode( DEROutputStream out) | void encode(DEROutputStream out) | void encode( DEROutputStream out) throws IOException { char[] c = string.toCharArray(); ByteArrayOutputStream bOut = new ByteArrayOutputStream(); for (int i = 0; i != c.length; i++) { char ch = c[i]; if (ch < 0x0080) { bOut.write(ch); } else if (ch < 0x0800) { bOut.write(0xc0 | (ch >> 6)); bOut.write(0x80 | (ch & 0x3f)); } else { bOut.write(0xe0 | (ch >> 12)); bOut.write(0x80 | ((ch >> 6) & 0x3F)); bOut.write(0x80 | (ch & 0x3F)); } } out.writeEncoded(UTF8_STRING, bOut.toByteArray()); } | 14767 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14767/89384e0d63dd2968a8f681c1a5f8701a654707a6/DERUTF8String.java/clean/crypto/src/org/bouncycastle/asn1/DERUTF8String.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2017,
12,
3639,
21801,
4632,
225,
596,
13,
3639,
1216,
1860,
565,
288,
3639,
1149,
8526,
5375,
276,
273,
533,
18,
869,
15936,
5621,
3639,
11559,
282,
324,
1182,
273,
394,
11559,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
480,
276,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
1149,
565,
462,
273,
276,
63,
77,
15533,
5411,
309,
261,
343,
411,
374,
92,
713,
3672,
13,
5411,
288,
7734,
324,
1182,
18,
2626,
12,
343,
1769,
5411,
289,
5411,
469,
309,
261,
343,
411,
374,
92,
6840,
713,
13,
5411,
288,
7734,
324,
1182,
18,
2626,
12,
20,
6511,
20,
571,
261,
343,
1671,
1666,
10019,
7734,
324,
1182,
18,
2626,
12,
20,
92,
3672,
571,
261,
343,
473,
374,
92,
23,
74,
10019,
5411,
289,
5411,
469,
5411,
288,
7734,
324,
1182,
18,
2626,
12,
20,
6554,
20,
571,
261,
343,
1671,
2593,
10019,
7734,
324,
1182,
18,
2626,
12,
20,
92,
3672,
571,
14015,
343,
1671,
1666,
13,
473,
374,
92,
23,
42,
10019,
7734,
324,
1182,
18,
2626,
12,
20,
92,
3672,
571,
261,
343,
473,
374,
92,
23,
42,
10019,
5411,
289,
3639,
289,
3639,
596,
18,
2626,
10397,
12,
5159,
28,
67,
5804,
16,
324,
1182,
18,
869,
8826,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
2017,
12,
3639,
21801,
4632,
225,
596,
13,
3639,
1216,
1860,
565,
288,
3639,
1149,
8526,
5375,
276,
273,
533,
18,
869,
15936,
5621,
3639,
11559,
282,
324,
1182,
273,
394,
11559,
5621,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
480,
276,
18,
2469,
31,
277,
27245,
3639,
288,
5411,
1149,
565,
462,
273,
276,
63,
77,
15533,
5411,
309,
261,
343,
411,
374,
92,
713,
3672,
13,
5411,
288,
7734,
324,
1182,
18,
2626,
12,
343,
1769,
5411,
289,
5411,
469,
309,
261,
343,
411,
374,
92,
6840,
713,
13,
5411,
288,
7734,
324,
1182,
18,
2626,
12,
20,
6511,
20,
571,
261,
343,
1671,
1666,
10019,
7734,
324,
1182,
18,
2626,
12,
20,
2
] |
return RubyBoolean.newBoolean(getRuntime(), threadLocalVariables.containsKey(name)); | return getRuntime().newBoolean(threadLocalVariables.containsKey(name)); | public RubyBoolean has_key(IRubyObject key) { String name = keyName(key); return RubyBoolean.newBoolean(getRuntime(), threadLocalVariables.containsKey(name)); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyThread.java/buggy/src/org/jruby/RubyThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
711,
67,
856,
12,
7937,
10340,
921,
498,
13,
288,
3639,
514,
508,
273,
13564,
12,
856,
1769,
3639,
327,
18814,
7675,
2704,
5507,
12,
5930,
2042,
6158,
18,
12298,
653,
12,
529,
10019,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
5507,
711,
67,
856,
12,
7937,
10340,
921,
498,
13,
288,
3639,
514,
508,
273,
13564,
12,
856,
1769,
3639,
327,
18814,
7675,
2704,
5507,
12,
5930,
2042,
6158,
18,
12298,
653,
12,
529,
10019,
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
] |
if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("cleardictstack"); | 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); | protected HashMap constructSystemDict() { HashMap systemDict = new HashMap(); // newpath systemDict.put("newpath", new PACommand() { public void execute(PAContext context) throws PainterException {// if(DebugExecution)System.out.println(""); 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); } } }); // 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; 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)); } }); // scalefont systemDict.put("scalefont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Font)) { throw new PainterException("scalefont: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("scalefont: wrong arguments"); } context.operands.push( ( (Font) data[0]).deriveFont( ( (Number) data[1]). floatValue())); } }); // setfont systemDict.put("setfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Font)) { throw new PainterException("setfont: wrong arguments"); } context.pencil.graphics.setFont( (Font) data[0]); } }); // 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"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("bind: wrong arguments"); } 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]))); } }); // 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)); } }); // 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])); } }); // 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); } context.pencil.graphics.setStroke(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])); } }); // userdict systemDict.put("userdict", 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)) { throw new PainterException("put: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("put: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("put: wrong arguments"); } ( (HashMap) data[0]).put(patoken.value, data[2]); } }); // 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[]; ArrayList list; data = context.popOperands(1); if (! (data[0] instanceof ArrayList)) { throw new PainterException("aload: wrong arguments"); } list = (ArrayList) 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 { if(!PAContext.IgnoreUnknownCommands) context.operands.push(new Double(1.0f));// PdfGraphics2D pdfg2d=(PdfGraphics2D)context.pencil.graphics;//PdfContentByte cb=pdfg2d.getContent();//; } }); // setflat PENDING(uweh):placeholder for now systemDict.put("setflat", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); } }); // 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 { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("initmatrix"); } }); // initclipsystemDict.put("initclip", new PACommand() { public void execute(PAContext context) throws PainterException { 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(randomNumberGenerator.nextInt(231))); context.operands.push(new Integer(Math.abs(randomNumberGenerator.nextInt((1<<31)-1))));// Math.abs(random.nextInt()) } }); // 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(System.currentTimeMillis()));// context.pencil.gsave(); // Wrong! but at the moment not there..// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("save"); } });// restore systemDict.put("restore", new PACommand() { public void execute(PAContext context) throws PainterException {// context.pencil.grestore(); // Wrong! but at the moment not there.. PdfGraphics2D pdfg2d=(PdfGraphics2D)context.pencil.graphics; PdfContentByte cb=pdfg2d.getContent(); cb.restoreState(); Object data[];data = context.popOperands(1);// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("restore"); } });// clear systemDict.put("clear", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("clear"); } }); // readonly systemDict.put("readonly", new PACommand() { public void execute(PAContext context) throws PainterException {// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("readonly"); } });// currentfile systemDict.put("currentfile", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("currentfile"); } }); // filter systemDict.put("filter", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("filter"); } }); // 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(); context.operands.push(new String()); }}); // 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("systemdict"); else { context.operands.push(new Double(60)); context.operands.push(new Double(0)); context.operands.push(new Double(0)); } }});// // systemdict// systemDict.put("systemdict", new PACommand() {// public void execute(PAContext context) throws PainterException {// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("systemdict");// }//});// // statusdict// systemDict.put("statusdict", new PACommand() {// public void execute(PAContext context) throws PainterException {// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("statusdict");// }//});// cleardictstack systemDict.put("cleardictstack", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("cleardictstack"); } }); // 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; } | 3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/e841a8d80b54d639e4e53a6a4fbdd96bb4c9ec7e/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,
759,
3639,
309,
12,
2829,
3210,
13,
3163,
18,
659,
18,
8222,
2932,
8863,
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,
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,
759,
3639,
309,
12,
2829,
3210,
13,
3163,
18,
659,
18,
8222,
2932,
8863,
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,
2
] |
+ "-X\"><query xmlns=\"\"></query></iq>"); | + "-X\"><body></body></message>"); | public void actionPerformed(ActionEvent e) { adhocMessages.setText( "<iq type=\"get\" to=\"\" id=\"" + StringUtils.randomString(5) + "-X\"><query xmlns=\"\"></query></iq>"); } | 47643 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47643/9acdd912d95d1f972f6668737fad4b74d9cd9393/EnhancedDebugger.java/clean/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
1261,
76,
504,
5058,
18,
542,
1528,
12,
13491,
3532,
18638,
618,
5189,
588,
2412,
358,
5189,
2412,
612,
13186,
27573,
397,
5778,
18,
9188,
780,
12,
25,
13,
27573,
397,
3701,
60,
2412,
4438,
3432,
4695,
3432,
4695,
2150,
2984,
1769,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
288,
7734,
1261,
76,
504,
5058,
18,
542,
1528,
12,
13491,
3532,
18638,
618,
5189,
588,
2412,
358,
5189,
2412,
612,
13186,
27573,
397,
5778,
18,
9188,
780,
12,
25,
13,
27573,
397,
3701,
60,
2412,
4438,
3432,
4695,
3432,
4695,
2150,
2984,
1769,
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,
-100,
-100,
-100
] |
System.out.println("Adding "+pattern +" "+action); | protected void addInstanceRules(RuleStore rs) { for(Pattern pattern : rulesMap.keySet()) { Action action = rulesMap.get(pattern); System.out.println("Adding "+pattern +" "+action); rs.addRule(pattern, action); } } | 53733 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53733/cd5686d976f1993d6cc606a0b2d7b9f8ae6f1a31/SimpleConfigurator.java/buggy/logback-core/src/test/java/ch/qos/logback/core/joran/SimpleConfigurator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
527,
1442,
4478,
12,
2175,
2257,
3597,
13,
288,
565,
364,
12,
3234,
1936,
294,
2931,
863,
18,
856,
694,
10756,
288,
1377,
4382,
1301,
273,
2931,
863,
18,
588,
12,
4951,
1769,
6647,
3597,
18,
1289,
2175,
12,
4951,
16,
1301,
1769,
565,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4750,
918,
527,
1442,
4478,
12,
2175,
2257,
3597,
13,
288,
565,
364,
12,
3234,
1936,
294,
2931,
863,
18,
856,
694,
10756,
288,
1377,
4382,
1301,
273,
2931,
863,
18,
588,
12,
4951,
1769,
6647,
3597,
18,
1289,
2175,
12,
4951,
16,
1301,
1769,
565,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
FlatNode[] oldOutputs = outputs; outputs = new FlatNode[oldOutputs.length + 1]; for (int i = 0; i < oldOutputs.length; i++) outputs[i] = oldOutputs[i]; outputs[outputs.length - 1] = node; CType[] oldOutputTypes = outputTypes; outputTypes = new CType[oldOutputTypes.length + 1]; for (int i = 0; i < oldOutputTypes.length; i++) outputTypes[i] = oldOutputTypes[i]; outputTypes[outputTypes.length - 1] = Util.getOutputType(node); | FlatNode[] oldOutputs = outputs; outputs = new FlatNode[oldOutputs.length + 1]; for (int i = 0; i < oldOutputs.length; i++) outputs[i] = oldOutputs[i]; outputs[outputs.length - 1] = node; | public void addNext(FlatNode node, FlatNode next) { assert flatNodes.contains(node); //System.out.println("Add next " + node + " -> " + next); //create a new outputs array with the old outputs + this FlatNode[] oldOutputs = outputs; outputs = new FlatNode[oldOutputs.length + 1]; for (int i = 0; i < oldOutputs.length; i++) outputs[i] = oldOutputs[i]; outputs[outputs.length - 1] = node; //create a new output type array... CType[] oldOutputTypes = outputTypes; outputTypes = new CType[oldOutputTypes.length + 1]; for (int i = 0; i < oldOutputTypes.length; i++) outputTypes[i] = oldOutputTypes[i]; outputTypes[outputTypes.length - 1] = Util.getOutputType(node); nexts.put(node, next); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/31aff989277324400ed1080dc1f4597a89d20d2b/StaticStreamGraph.java/buggy/streams/src/at/dms/kjc/spacedynamic/StaticStreamGraph.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2134,
12,
16384,
907,
756,
16,
20396,
907,
1024,
13,
377,
288,
202,
11231,
3569,
3205,
18,
12298,
12,
2159,
1769,
202,
759,
3163,
18,
659,
18,
8222,
2932,
986,
1024,
315,
397,
756,
397,
315,
317,
315,
397,
1024,
1769,
202,
759,
2640,
279,
394,
6729,
526,
598,
326,
1592,
6729,
397,
333,
202,
16384,
907,
8526,
1592,
13856,
273,
6729,
31,
202,
12295,
273,
394,
20396,
907,
63,
1673,
13856,
18,
2469,
397,
404,
15533,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1592,
13856,
18,
2469,
31,
277,
27245,
202,
565,
6729,
63,
77,
65,
273,
1592,
13856,
63,
77,
15533,
202,
12295,
63,
12295,
18,
2469,
300,
404,
65,
273,
756,
31,
202,
202,
759,
2640,
279,
394,
876,
618,
526,
2777,
202,
39,
559,
8526,
1592,
1447,
2016,
273,
876,
2016,
31,
202,
2844,
2016,
273,
394,
385,
559,
63,
1673,
1447,
2016,
18,
2469,
397,
404,
15533,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1592,
1447,
2016,
18,
2469,
31,
277,
27245,
3196,
565,
876,
2016,
63,
77,
65,
273,
1592,
1447,
2016,
63,
77,
15533,
202,
2844,
2016,
63,
2844,
2016,
18,
2469,
300,
404,
65,
273,
3564,
18,
588,
1447,
559,
12,
2159,
1769,
202,
4285,
87,
18,
458,
12,
2159,
16,
1024,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2134,
12,
16384,
907,
756,
16,
20396,
907,
1024,
13,
377,
288,
202,
11231,
3569,
3205,
18,
12298,
12,
2159,
1769,
202,
759,
3163,
18,
659,
18,
8222,
2932,
986,
1024,
315,
397,
756,
397,
315,
317,
315,
397,
1024,
1769,
202,
759,
2640,
279,
394,
6729,
526,
598,
326,
1592,
6729,
397,
333,
202,
16384,
907,
8526,
1592,
13856,
273,
6729,
31,
202,
12295,
273,
394,
20396,
907,
63,
1673,
13856,
18,
2469,
397,
404,
15533,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
1592,
13856,
18,
2469,
31,
277,
27245,
202,
565,
6729,
63,
77,
65,
273,
1592,
13856,
63,
77,
15533,
202,
12295,
63,
12295,
18,
2469,
300,
404,
65,
2
] |
tlist.setIntN(tlist.gapEnd + 2, index); | tlist.setIntN(tlist.gapEnd + 1, index); | protected void endAttributes() { for (int i = 0; i <= attrCount; i++) { String name = nameStack[3 * i]; String prefix = nameStack[3 * i + 1]; String local = nameStack[3 * i + 2]; boolean isNsNode = name == "xmlns" || prefix == "xmlns"; String uri = isNsNode ? "(namespace-node)" : resolve(prefix); Object type = QName.make(uri, local); if (cons == tlist) { int index = getIndex(name, type); if (i == 0) tlist.setIntN(tlist.gapEnd + 2, index); else if (! isNsNode || namespacePrefixes) tlist.setIntN(startIndexes[i] + 1, index); } else { if (i == 0) cons.beginGroup(name, type); else if (! isNsNode || namespacePrefixes) { cons.beginAttribute(name, type); int start = startIndexes[i]; int end = i < attrCount ? startIndexes[i+1] : tlist.gapStart; tlist.consumeRange(start, end, cons); cons.endAttribute(); } } } if (cons != tlist) { base = cons; // Remove temporarily stored attributes. tlist.clear(); } attrCount = 0; } | 36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/a93515ca9588d082a0786f966cb55d22f85baa21/NamespaceResolver.java/buggy/gnu/xml/NamespaceResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
679,
2498,
1435,
225,
288,
565,
364,
261,
474,
277,
273,
374,
31,
225,
277,
1648,
1604,
1380,
31,
277,
27245,
1377,
288,
202,
780,
508,
273,
508,
2624,
63,
23,
380,
277,
15533,
202,
780,
1633,
273,
508,
2624,
63,
23,
380,
277,
397,
404,
15533,
202,
780,
1191,
273,
508,
2624,
63,
23,
380,
277,
397,
576,
15533,
202,
6494,
8197,
87,
907,
273,
508,
422,
315,
16741,
6,
747,
1633,
422,
315,
16741,
14432,
202,
780,
2003,
273,
8197,
87,
907,
692,
7751,
4937,
17,
2159,
2225,
294,
2245,
12,
3239,
1769,
202,
921,
618,
273,
16723,
18,
6540,
12,
1650,
16,
1191,
1769,
202,
430,
261,
8559,
422,
268,
1098,
13,
202,
225,
288,
202,
565,
509,
770,
273,
8088,
12,
529,
16,
618,
1769,
202,
565,
309,
261,
77,
422,
374,
13,
202,
1377,
268,
1098,
18,
542,
1702,
50,
12,
88,
1098,
18,
14048,
1638,
397,
576,
16,
770,
1769,
202,
565,
469,
309,
16051,
8197,
87,
907,
747,
1981,
11700,
13,
202,
1377,
268,
1098,
18,
542,
1702,
50,
12,
1937,
8639,
63,
77,
65,
397,
404,
16,
770,
1769,
202,
225,
289,
202,
12107,
202,
225,
288,
202,
565,
309,
261,
77,
422,
374,
13,
202,
1377,
1959,
18,
10086,
1114,
12,
529,
16,
618,
1769,
202,
565,
469,
309,
16051,
8197,
87,
907,
747,
1981,
11700,
13,
202,
1377,
288,
202,
202,
8559,
18,
10086,
1499,
12,
529,
16,
618,
1769,
202,
202,
474,
787,
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,
679,
2498,
1435,
225,
288,
565,
364,
261,
474,
277,
273,
374,
31,
225,
277,
1648,
1604,
1380,
31,
277,
27245,
1377,
288,
202,
780,
508,
273,
508,
2624,
63,
23,
380,
277,
15533,
202,
780,
1633,
273,
508,
2624,
63,
23,
380,
277,
397,
404,
15533,
202,
780,
1191,
273,
508,
2624,
63,
23,
380,
277,
397,
576,
15533,
202,
6494,
8197,
87,
907,
273,
508,
422,
315,
16741,
6,
747,
1633,
422,
315,
16741,
14432,
202,
780,
2003,
273,
8197,
87,
907,
692,
7751,
4937,
17,
2159,
2225,
294,
2245,
12,
3239,
1769,
202,
921,
618,
273,
16723,
18,
6540,
12,
1650,
16,
1191,
1769,
202,
430,
261,
8559,
422,
268,
1098,
13,
202,
2
] |
} for (Iterator pathIter = loadPath.iterator(); pathIter.hasNext();) { String entry = pathIter.next().toString(); if (entry.startsWith("jar:")) { JarFile current = (JarFile)jarFiles.get(entry); if(null == current) { try { current = new JarFile(entry.substring(4)); jarFiles.put(entry,current); } catch (FileNotFoundException ignored) { } catch (IOException e) { throw runtime.newIOErrorFromException(e); } | if (current.getJarEntry(name) != null) { try { return new LoadServiceResource(new URL(entry + name), entry + name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); | private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } // ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); JRubyFile file = JRubyFile.create(runtime.getCurrentDirectory(),name); if(file.isFile() && file.isAbsolute()) { try { return new LoadServiceResource(file.toURL(),name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } ClassLoader classLoader = runtime.getJavaSupport().getJavaClassLoader(); String xname = name.replace('\\', '/'); // Look in classpath next (we do not use File as a test since UNC names will match) // Note: Jar resources must always begin with an '/'. if (xname.charAt(0) == '/') { URL loc = classLoader.getResource(xname); // Make sure this is not a directory or unavailable in some way if (isRequireable(loc)) { return new LoadServiceResource(loc, loc.getPath()); } } for (Iterator pathIter = loadPath.iterator(); pathIter.hasNext();) { String entry = pathIter.next().toString(); if (entry.startsWith("jar:")) { JarFile current = (JarFile)jarFiles.get(entry); if(null == current) { try { current = new JarFile(entry.substring(4)); jarFiles.put(entry,current); } catch (FileNotFoundException ignored) { } catch (IOException e) { throw runtime.newIOErrorFromException(e); } } if (current.getJarEntry(name) != null) { try { return new LoadServiceResource(new URL(entry + name), entry + name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } } // // Load from local filesystem // NormalizedFile current = (NormalizedFile)new NormalizedFile(entry, name).getAbsoluteFile(); JRubyFile current = JRubyFile.create(JRubyFile.create(runtime.getCurrentDirectory(),entry).getAbsolutePath(), name); if (current.isFile()) { try { return new LoadServiceResource(current.toURL(), current.getPath()); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } // otherwise, try to load from classpath (Note: Jar resources always uses '/') URL loc = classLoader.getResource(entry.replace('\\', '/') + "/" + xname); // Make sure this is not a directory or unavailable in some way if (isRequireable(loc)) { return new LoadServiceResource(loc, loc.getPath()); } } // Try to load from classpath without prefix. "A/b.rb" will not load as // "./A/b.rb" in a jar file. (Note: Jar resources always uses '/') URL loc = classLoader.getResource(xname); return isRequireable(loc) ? new LoadServiceResource(loc, loc.getPath()) : null; // } catch (MalformedURLException e) { // throw runtime.newIOErrorFromException(e); // } } | 49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/buggy/src/org/jruby/runtime/load/LoadService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
4444,
1179,
1420,
1104,
812,
12,
780,
508,
13,
288,
3639,
368,
3639,
775,
288,
5411,
309,
261,
529,
18,
17514,
1190,
2932,
11930,
2773,
3719,
288,
7734,
775,
288,
10792,
327,
394,
4444,
1179,
1420,
12,
2704,
1976,
12,
529,
3631,
508,
1769,
7734,
289,
1044,
261,
18695,
20160,
425,
13,
288,
10792,
604,
3099,
18,
2704,
4294,
668,
1265,
503,
12,
73,
1769,
7734,
289,
5411,
289,
5411,
368,
5411,
9403,
11138,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
2398,
27974,
10340,
812,
585,
273,
27974,
10340,
812,
18,
2640,
12,
9448,
18,
588,
3935,
2853,
9334,
529,
1769,
5411,
309,
12,
768,
18,
291,
812,
1435,
597,
585,
18,
291,
10368,
10756,
288,
7734,
775,
288,
10792,
327,
394,
4444,
1179,
1420,
12,
768,
18,
869,
1785,
9334,
529,
1769,
7734,
289,
1044,
261,
18695,
20160,
425,
13,
288,
10792,
604,
3099,
18,
2704,
4294,
668,
1265,
503,
12,
73,
1769,
7734,
289,
5411,
289,
4766,
565,
9403,
11138,
273,
3099,
18,
588,
5852,
6289,
7675,
588,
5852,
7805,
5621,
5411,
514,
619,
529,
273,
508,
18,
2079,
2668,
1695,
2187,
2023,
1769,
13491,
368,
10176,
316,
10006,
1024,
261,
1814,
741,
486,
999,
1387,
487,
279,
1842,
3241,
5019,
39,
1257,
903,
845,
13,
5411,
368,
3609,
30,
15644,
2703,
1297,
3712,
2376,
598,
392,
2023,
18,
5411,
309,
261,
92,
529,
18,
3001,
861,
12,
20,
13,
422,
2023,
13,
288,
7734,
1976,
1515,
273,
11138,
18,
588,
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,
4444,
1179,
1420,
1104,
812,
12,
780,
508,
13,
288,
3639,
368,
3639,
775,
288,
5411,
309,
261,
529,
18,
17514,
1190,
2932,
11930,
2773,
3719,
288,
7734,
775,
288,
10792,
327,
394,
4444,
1179,
1420,
12,
2704,
1976,
12,
529,
3631,
508,
1769,
7734,
289,
1044,
261,
18695,
20160,
425,
13,
288,
10792,
604,
3099,
18,
2704,
4294,
668,
1265,
503,
12,
73,
1769,
7734,
289,
5411,
289,
5411,
368,
5411,
9403,
11138,
273,
4884,
18,
2972,
3830,
7675,
29120,
7805,
5621,
2398,
27974,
10340,
812,
585,
273,
27974,
10340,
812,
18,
2640,
12,
9448,
18,
588,
3935,
2853,
9334,
529,
1769,
5411,
309,
12,
768,
18,
291,
812,
1435,
597,
585,
18,
291,
10368,
10756,
2
] |
TypeCode discriminator_type, UnionMember[] members ) | TypeCode discriminator_type, UnionMember[] members ) | public TypeCode create_union_tc(String id, String name, TypeCode discriminator_type, UnionMember[] members ) { recordTypeCode r = new recordTypeCode(TCKind.tk_union); r.setId(id); r.setName(name); r.setDiscriminator_type(discriminator_type); r.setDefaultIndex(0); for (int i = 0; i < members.length; i++) { r.add(members [ i ]); } return r; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/0c6db14fe37c570414a6f9d9ea41538675363ecc/Restricted_ORB.java/buggy/gnu/CORBA/Restricted_ORB.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
30332,
752,
67,
18910,
67,
5111,
12,
780,
612,
16,
514,
508,
16,
21394,
30332,
15819,
67,
723,
16,
21394,
9589,
4419,
8526,
4833,
4766,
262,
225,
288,
565,
1409,
15460,
436,
273,
394,
1409,
15460,
12,
56,
3507,
728,
18,
16099,
67,
18910,
1769,
565,
436,
18,
542,
548,
12,
350,
1769,
565,
436,
18,
542,
461,
12,
529,
1769,
565,
436,
18,
542,
21898,
67,
723,
12,
2251,
11001,
67,
723,
1769,
565,
436,
18,
542,
1868,
1016,
12,
20,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4833,
18,
2469,
31,
277,
27245,
1377,
288,
3639,
436,
18,
1289,
12,
7640,
306,
277,
308,
1769,
1377,
289,
565,
327,
436,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30332,
752,
67,
18910,
67,
5111,
12,
780,
612,
16,
514,
508,
16,
21394,
30332,
15819,
67,
723,
16,
21394,
9589,
4419,
8526,
4833,
4766,
262,
225,
288,
565,
1409,
15460,
436,
273,
394,
1409,
15460,
12,
56,
3507,
728,
18,
16099,
67,
18910,
1769,
565,
436,
18,
542,
548,
12,
350,
1769,
565,
436,
18,
542,
461,
12,
529,
1769,
565,
436,
18,
542,
21898,
67,
723,
12,
2251,
11001,
67,
723,
1769,
565,
436,
18,
542,
1868,
1016,
12,
20,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
4833,
18,
2469,
31,
277,
27245,
1377,
288,
3639,
436,
18,
1289,
12,
7640,
306,
277,
308,
1769,
1377,
289,
565,
327,
436,
31,
2
] |
if ( itemUsed.getItemID() == SorceressLair.PUZZLE_PIECE.getItemID() ) | if ( itemUsed.getItemId() == SorceressLair.PUZZLE_PIECE.getItemId() ) | public void run() { lastUpdate = ""; if ( itemUsed.getItemID() == SorceressLair.PUZZLE_PIECE.getItemID() ) { SorceressLair.completeHedgeMaze(); return; } if ( itemUsed.getCount() < 1 ) return; int price = TradeableItemDatabase.getPriceByID( itemUsed.getItemID() ); if ( price != 0 && !AdventureDatabase.retrieveItem( itemUsed ) ) return; int iterations = 1; if ( itemUsed.getCount() != 1 && consumptionType != ConsumeItemRequest.CONSUME_MULTIPLE && consumptionType != ConsumeItemRequest.CONSUME_RESTORE ) { iterations = itemUsed.getCount(); itemUsed = itemUsed.getInstance( 1 ); } String useTypeAsString = (consumptionType == CONSUME_EAT) ? "Eating" : (consumptionType == CONSUME_DRINK) ? "Drinking" : "Using"; String originalURLString = getURLString(); for ( int i = 1; KoLmafia.permitsContinue() && i <= iterations; ++i ) { constructURLString( originalURLString ); if ( !useOnce( i, iterations, useTypeAsString ) ) return; } if ( KoLmafia.permitsContinue() ) { KoLmafia.updateDisplay( "Finished " + useTypeAsString.toLowerCase() + " " + Math.max( iterations, itemUsed.getCount() ) + " " + itemUsed.getName() + "." ); } } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/db652071b06715a4456f702f081fbe5b47aa5a70/ConsumeItemRequest.java/buggy/src/net/sourceforge/kolmafia/ConsumeItemRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1086,
1435,
202,
95,
202,
202,
2722,
1891,
273,
1408,
31,
202,
202,
430,
261,
761,
6668,
18,
588,
1180,
734,
1435,
422,
348,
280,
2750,
403,
48,
1826,
18,
18061,
27096,
900,
67,
24414,
1441,
18,
588,
1180,
734,
1435,
262,
202,
202,
95,
1082,
202,
55,
280,
2750,
403,
48,
1826,
18,
6226,
44,
7126,
49,
1561,
73,
5621,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
761,
6668,
18,
588,
1380,
1435,
411,
404,
262,
1082,
202,
2463,
31,
202,
202,
474,
6205,
273,
2197,
323,
429,
1180,
4254,
18,
588,
5147,
13331,
12,
761,
6668,
18,
588,
1180,
734,
1435,
11272,
202,
202,
430,
261,
6205,
480,
374,
597,
401,
1871,
616,
594,
4254,
18,
17466,
1180,
12,
761,
6668,
262,
262,
1082,
202,
2463,
31,
202,
202,
474,
11316,
273,
404,
31,
202,
202,
430,
261,
761,
6668,
18,
588,
1380,
1435,
480,
404,
597,
24550,
559,
480,
20418,
1180,
691,
18,
2248,
30590,
67,
24683,
900,
597,
24550,
559,
480,
20418,
1180,
691,
18,
2248,
30590,
67,
12030,
8607,
262,
202,
202,
95,
1082,
202,
19330,
273,
761,
6668,
18,
588,
1380,
5621,
1082,
202,
1726,
6668,
273,
761,
6668,
18,
588,
1442,
12,
404,
11272,
202,
202,
97,
202,
202,
780,
999,
559,
8092,
273,
261,
17664,
375,
559,
422,
3492,
30590,
67,
41,
789,
13,
692,
315,
41,
1776,
6,
294,
1082,
202,
12,
17664,
375,
559,
422,
3492,
30590,
67,
6331,
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,
1086,
1435,
202,
95,
202,
202,
2722,
1891,
273,
1408,
31,
202,
202,
430,
261,
761,
6668,
18,
588,
1180,
734,
1435,
422,
348,
280,
2750,
403,
48,
1826,
18,
18061,
27096,
900,
67,
24414,
1441,
18,
588,
1180,
734,
1435,
262,
202,
202,
95,
1082,
202,
55,
280,
2750,
403,
48,
1826,
18,
6226,
44,
7126,
49,
1561,
73,
5621,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
430,
261,
761,
6668,
18,
588,
1380,
1435,
411,
404,
262,
1082,
202,
2463,
31,
202,
202,
474,
6205,
273,
2197,
323,
429,
1180,
4254,
18,
588,
5147,
13331,
12,
761,
6668,
18,
588,
1180,
734,
1435,
11272,
202,
202,
430,
261,
6205,
480,
374,
2
] |
if( replication > maxReplication ) throw new IOException( "Cannot create file " + src + " on client " + clientMachine + ".\n" + "Requested replication " + replication + " exceeds maximum " + maxReplication ); if( replication < minReplication ) throw new IOException( "Cannot create file " + src + " on client " + clientMachine + ".\n" + "Requested replication " + replication + " is less than the required minimum " + minReplication ); | verifyReplication(src.toString(), replication, clientMachine ); | public synchronized Object[] startFile( UTF8 src, UTF8 holder, UTF8 clientMachine, boolean overwrite, short replication ) throws IOException { try { if (pendingCreates.get(src) != null) { String msg = "Cannot create file " + src + " for " + holder + " on " + clientMachine + " because pendingCreates is non-null."; throw new NameNode.AlreadyBeingCreatedException(msg); } if( replication > maxReplication ) throw new IOException( "Cannot create file " + src + " on client " + clientMachine + ".\n" + "Requested replication " + replication + " exceeds maximum " + maxReplication ); if( replication < minReplication ) throw new IOException( "Cannot create file " + src + " on client " + clientMachine + ".\n" + "Requested replication " + replication + " is less than the required minimum " + minReplication ); if (!dir.isValidToCreate(src)) { if (overwrite) { delete(src); } else { throw new IOException("Can't create file " + src + ", because the filename is invalid."); } } // Get the array of replication targets DatanodeInfo targets[] = chooseTargets(replication, null, clientMachine); if (targets.length < this.minReplication) { throw new IOException("Target-length is " + targets.length + ", below MIN_REPLICATION (" + minReplication+ ")"); } // Reserve space for this pending file pendingCreates.put(src, new FileUnderConstruction(replication, holder, clientMachine)); LOG.fine("Adding " + src + " to pendingCreates for " + holder); synchronized (leases) { Lease lease = (Lease) leases.get(holder); if (lease == null) { lease = new Lease(holder); leases.put(holder, lease); sortedLeases.add(lease); } else { sortedLeases.remove(lease); lease.renew(); sortedLeases.add(lease); } lease.startedCreate(src); } // Create next block Object results[] = new Object[2]; results[0] = allocateBlock(src); results[1] = targets; return results; } catch (IOException ie) { LOG.warning(ie.getMessage()); throw ie; } } | 49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/cae1cf44dac13d6acf7521dba60d821eb3970dc3/FSNamesystem.java/buggy/src/java/org/apache/hadoop/dfs/FSNamesystem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
1033,
8526,
787,
812,
12,
6380,
28,
1705,
16,
4766,
2398,
6380,
28,
10438,
16,
4766,
2398,
6380,
28,
1004,
6981,
16,
4766,
2398,
1250,
6156,
16,
4766,
5411,
3025,
11335,
4766,
6647,
262,
1216,
1860,
288,
1377,
775,
288,
3639,
309,
261,
9561,
2729,
18,
588,
12,
4816,
13,
480,
446,
13,
288,
1850,
514,
1234,
273,
315,
4515,
752,
585,
315,
397,
1705,
397,
315,
364,
315,
397,
10438,
397,
15604,
315,
603,
315,
397,
1004,
6981,
397,
13491,
315,
2724,
4634,
2729,
353,
1661,
17,
2011,
1199,
31,
1850,
604,
394,
1770,
907,
18,
9430,
1919,
310,
6119,
503,
12,
3576,
1769,
3639,
289,
3639,
309,
12,
11335,
405,
943,
8309,
262,
1850,
604,
394,
1860,
12,
5411,
315,
4515,
752,
585,
315,
397,
1705,
397,
315,
603,
1004,
315,
397,
1004,
6981,
397,
3552,
64,
82,
6,
5411,
397,
315,
11244,
11335,
315,
397,
11335,
5411,
397,
315,
14399,
4207,
315,
397,
943,
8309,
11272,
7734,
309,
12,
11335,
411,
1131,
8309,
262,
1850,
604,
394,
1860,
12,
5411,
315,
4515,
752,
585,
315,
397,
1705,
397,
315,
603,
1004,
315,
397,
1004,
6981,
397,
3552,
64,
82,
6,
5411,
397,
315,
11244,
11335,
315,
397,
11335,
5411,
397,
315,
353,
5242,
2353,
326,
1931,
5224,
315,
397,
1131,
8309,
11272,
7734,
309,
16051,
1214,
18,
26810,
774,
1684,
12,
4816,
3719,
288,
1850,
309,
261,
19274,
13,
288,
5411,
1430,
12,
4816,
1769,
1850,
289,
469,
288,
5411,
604,
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,
1033,
8526,
787,
812,
12,
6380,
28,
1705,
16,
4766,
2398,
6380,
28,
10438,
16,
4766,
2398,
6380,
28,
1004,
6981,
16,
4766,
2398,
1250,
6156,
16,
4766,
5411,
3025,
11335,
4766,
6647,
262,
1216,
1860,
288,
1377,
775,
288,
3639,
309,
261,
9561,
2729,
18,
588,
12,
4816,
13,
480,
446,
13,
288,
1850,
514,
1234,
273,
315,
4515,
752,
585,
315,
397,
1705,
397,
315,
364,
315,
397,
10438,
397,
15604,
315,
603,
315,
397,
1004,
6981,
397,
13491,
315,
2724,
4634,
2729,
353,
1661,
17,
2011,
1199,
31,
1850,
604,
394,
1770,
907,
18,
9430,
1919,
310,
6119,
503,
12,
3576,
1769,
3639,
289,
3639,
309,
12,
11335,
405,
943,
8309,
262,
1850,
2
] |
String overrideName = System.getProperty("user.home") + File.separator + ".flyingsaucer" + File.separator + "local.xhtmlrenderer.conf"; File f = new File(overrideName); | File f = new File(overrideFileName); | private void loadOverrideProperties() { try { String overrideName = System.getProperty("user.home") + File.separator + ".flyingsaucer" + File.separator + "local.xhtmlrenderer.conf"; File f = new File(overrideName); if (f.exists()) { fine("Found local config override file " + f.getAbsolutePath()); Properties temp = new Properties(); try { InputStream readStream = new BufferedInputStream(new FileInputStream(f)); temp.load(readStream); } catch (IOException iex) { warning("Error while loading override properties file; skipping.", iex); return; } Enumeration elem = this.properties.keys(); List lp = Collections.list(elem); Collections.sort(lp); Iterator iter = lp.iterator(); int cnt = 0; while (iter.hasNext()) { String key = (String) iter.next(); String val = temp.getProperty(key); if (val != null) { this.properties.setProperty(key, val); finer(" " + key + " -> " + val); cnt++; } } finer("Configuration: " + cnt + " properties overridden from override properties file."); } } catch (SecurityException e) { System.err.println(e.getLocalizedMessage()); } } | 8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/c22ddae25b25fc0eff437949f54979e13da82257/Configuration.java/clean/src/java/org/xhtmlrenderer/util/Configuration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
6618,
2297,
1435,
288,
3639,
775,
288,
5411,
514,
3849,
461,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
8712,
7923,
397,
1387,
18,
11287,
397,
3552,
29670,
899,
8377,
2750,
6,
397,
1387,
18,
11287,
397,
315,
3729,
18,
26341,
14374,
18,
3923,
14432,
5411,
1387,
284,
273,
394,
1387,
12,
10601,
461,
1769,
5411,
309,
261,
74,
18,
1808,
10756,
288,
7734,
11079,
2932,
2043,
1191,
642,
3849,
585,
315,
397,
284,
18,
588,
10368,
743,
10663,
7734,
6183,
1906,
273,
394,
6183,
5621,
7734,
775,
288,
10792,
5037,
855,
1228,
273,
394,
24742,
12,
2704,
11907,
12,
74,
10019,
10792,
1906,
18,
945,
12,
896,
1228,
1769,
7734,
289,
1044,
261,
14106,
277,
338,
13,
288,
10792,
3436,
2932,
668,
1323,
7153,
3849,
1790,
585,
31,
14195,
1199,
16,
277,
338,
1769,
10792,
327,
31,
7734,
289,
7734,
13864,
3659,
273,
333,
18,
4738,
18,
2452,
5621,
7734,
987,
12423,
273,
5737,
18,
1098,
12,
10037,
1769,
7734,
5737,
18,
3804,
12,
9953,
1769,
7734,
4498,
1400,
273,
12423,
18,
9838,
5621,
7734,
509,
7599,
273,
374,
31,
7734,
1323,
261,
2165,
18,
5332,
2134,
10756,
288,
10792,
514,
498,
273,
261,
780,
13,
1400,
18,
4285,
5621,
10792,
514,
1244,
273,
1906,
18,
588,
1396,
12,
856,
1769,
10792,
309,
261,
1125,
480,
446,
13,
288,
13491,
333,
18,
4738,
18,
542,
1396,
12,
856,
16,
1244,
1769,
13491,
574,
264,
2932,
225,
315,
397,
498,
397,
315,
317,
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,
1262,
6618,
2297,
1435,
288,
3639,
775,
288,
5411,
514,
3849,
461,
273,
2332,
18,
588,
1396,
2932,
1355,
18,
8712,
7923,
397,
1387,
18,
11287,
397,
3552,
29670,
899,
8377,
2750,
6,
397,
1387,
18,
11287,
397,
315,
3729,
18,
26341,
14374,
18,
3923,
14432,
5411,
1387,
284,
273,
394,
1387,
12,
10601,
461,
1769,
5411,
309,
261,
74,
18,
1808,
10756,
288,
7734,
11079,
2932,
2043,
1191,
642,
3849,
585,
315,
397,
284,
18,
588,
10368,
743,
10663,
7734,
6183,
1906,
273,
394,
6183,
5621,
7734,
775,
288,
10792,
5037,
855,
1228,
273,
394,
24742,
12,
2704,
11907,
12,
74,
10019,
10792,
1906,
18,
945,
12,
896,
1228,
1769,
7734,
289,
1044,
261,
14106,
2
] |
public void initializePanel(IWContext iwc, TabbedPropertyPanel panel) { try { int count = 0; panel.addTab(new GeneralGroupInfoTab(), count++, iwc); //panel.addTab(new GroupMembershipTab(), 1, iwc); // panel.addTab(new ExtendedGroupMembershipTab(),2,iwc); // temp shit String id = iwc.getParameter(PARAMETERSTRING_GROUP_ID); int groupId = Integer.parseInt(id); Group group = getGroupBusiness(iwc).getGroupByGroupID(groupId); Collection plugins = getGroupBusiness(iwc).getUserGroupPluginsForGroupTypeString(group.getGroupType()); Iterator iter = plugins.iterator(); while (iter.hasNext()) { UserGroupPlugIn element = (UserGroupPlugIn) iter.next(); UserGroupPlugInBusiness pluginBiz = (UserGroupPlugInBusiness) com.idega.business.IBOLookup.getServiceInstance(iwc, Class.forName(element.getBusinessICObject().getClassName())); List tabs = pluginBiz.getGroupPropertiesTabs(group); Iterator tab = tabs.iterator(); while (tab.hasNext()) { UserGroupTab el = (UserGroupTab) tab.next(); panel.addTab(el, count++, iwc); } } } catch (Exception e) { e.printStackTrace(); } } | 53236 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53236/9932b38680684d45abf64e1fdcc9f2ee4300efe9/GroupPropertyWindow.java/buggy/src/java/com/idega/user/presentation/GroupPropertyWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4046,
5537,
12,
45,
59,
1042,
25522,
71,
16,
9483,
2992,
1396,
5537,
6594,
13,
288,
202,
202,
698,
288,
1082,
202,
474,
1056,
273,
374,
31,
1082,
202,
13916,
18,
1289,
5661,
12,
2704,
9544,
1114,
966,
5661,
9334,
1056,
9904,
16,
25522,
71,
1769,
1082,
202,
759,
13916,
18,
1289,
5661,
12,
2704,
3756,
13447,
5661,
9334,
404,
16,
25522,
71,
1769,
1082,
202,
759,
13916,
18,
1289,
5661,
12,
2704,
14094,
1114,
13447,
5661,
9334,
22,
16,
22315,
71,
1769,
1082,
202,
759,
202,
5814,
699,
305,
1082,
202,
780,
612,
273,
25522,
71,
18,
588,
1662,
12,
9819,
5804,
67,
8468,
67,
734,
1769,
1082,
202,
474,
6612,
273,
2144,
18,
2670,
1702,
12,
350,
1769,
1082,
202,
1114,
1041,
273,
11751,
13423,
12,
22315,
71,
2934,
588,
26257,
30876,
12,
27547,
1769,
1082,
202,
2532,
4799,
273,
11751,
13423,
12,
22315,
71,
2934,
588,
21255,
9461,
1290,
1114,
559,
780,
12,
1655,
18,
588,
1114,
559,
10663,
1082,
202,
3198,
1400,
273,
4799,
18,
9838,
5621,
1082,
202,
17523,
261,
2165,
18,
5332,
2134,
10756,
288,
9506,
202,
21255,
1749,
637,
382,
930,
273,
261,
21255,
1749,
637,
382,
13,
1400,
18,
4285,
5621,
9506,
202,
21255,
1749,
637,
382,
13423,
1909,
38,
452,
273,
261,
21255,
1749,
637,
382,
13423,
13,
532,
18,
831,
15833,
18,
24510,
18,
13450,
1741,
4909,
18,
588,
29652,
12,
22315,
71,
16,
1659,
18,
1884,
461,
12,
2956,
18,
588,
13423,
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,
4046,
5537,
12,
45,
59,
1042,
25522,
71,
16,
9483,
2992,
1396,
5537,
6594,
13,
288,
202,
202,
698,
288,
1082,
202,
474,
1056,
273,
374,
31,
1082,
202,
13916,
18,
1289,
5661,
12,
2704,
9544,
1114,
966,
5661,
9334,
1056,
9904,
16,
25522,
71,
1769,
1082,
202,
759,
13916,
18,
1289,
5661,
12,
2704,
3756,
13447,
5661,
9334,
404,
16,
25522,
71,
1769,
1082,
202,
759,
13916,
18,
1289,
5661,
12,
2704,
14094,
1114,
13447,
5661,
9334,
22,
16,
22315,
71,
1769,
1082,
202,
759,
202,
5814,
699,
305,
1082,
202,
780,
612,
273,
25522,
71,
18,
588,
1662,
12,
9819,
5804,
67,
8468,
67,
734,
1769,
1082,
202,
474,
6612,
273,
2144,
18,
2
] |
||
public void visitEnsureNode(Node iVisited) { visit(iVisited); leave(iVisited); } | public void visitEnsureNode(Node iVisited) { visit(iVisited); leave(iVisited); } | public void visitEnsureNode(Node iVisited) { visit(iVisited); leave(iVisited); } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/clean/org/jruby/nodes/NodeVisitorAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
12512,
907,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
1769,
202,
202,
19574,
12,
77,
30019,
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,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3757,
12512,
907,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
1769,
202,
202,
19574,
12,
77,
30019,
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,
-100,
-100,
-100,
-100,
-100
] |
m_paxLogging = new PaxLoggingManager( context ); | m_paxLogging = new OSGIPaxLoggingManager( context ); | public static void setBundleContext( BundleContext context ) { m_paxLogging = new PaxLoggingManager( context ); m_paxLogging.open(); } | 57126 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57126/fbcbc11c7e54d861f68f764f19383345a0d59762/AvalonLogFactory.java/clean/avalon/src/main/java/org/ops4j/pax/logging/avalon/AvalonLogFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
444,
3405,
1042,
12,
8539,
1042,
819,
262,
565,
288,
3639,
312,
67,
84,
651,
7735,
273,
394,
5932,
43,
2579,
651,
7735,
1318,
12,
819,
11272,
3639,
312,
67,
84,
651,
7735,
18,
3190,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
444,
3405,
1042,
12,
8539,
1042,
819,
262,
565,
288,
3639,
312,
67,
84,
651,
7735,
273,
394,
5932,
43,
2579,
651,
7735,
1318,
12,
819,
11272,
3639,
312,
67,
84,
651,
7735,
18,
3190,
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
] |
private void initialize() { GridLayout gridLayout = new GridLayout(); gridLayout.numColumns = 2; gridLayout.horizontalSpacing = 0; gridLayout.verticalSpacing = 0; gridLayout.marginWidth = 0; gridLayout.marginHeight = 0; gridLayout.makeColumnsEqualWidth = false; this.setLayout(gridLayout); setSize(new org.eclipse.swt.graphics.Point(120, 19)); simpleDateFormat.applyPattern("MM/dd/yy h:mm aa"); dateText = new Text(this, SWT.NONE); GridData dateTextGridData = new org.eclipse.swt.layout.GridData(); dateTextGridData.widthHint = 95; dateText.setLayoutData(dateTextGridData); dateText.setText(initialText); dateText.addFocusListener(new FocusListener() {// DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT).format(currentDate)); Calendar calendar = Calendar.getInstance(); public void focusGained(FocusEvent e) { } public void focusLost(FocusEvent e) { Date reminderDate; try { reminderDate = simpleDateFormat.parse(dateText.getText()); calendar.setTime(reminderDate); date = calendar; updateDateText(); } catch (ParseException e1) { updateDateText(); } } }); pickButton = new Button(this, SWT.ARROW | SWT.DOWN); GridData pickButtonGridData = new org.eclipse.swt.layout.GridData(); pickButtonGridData.horizontalAlignment = org.eclipse.swt.layout.GridData.END; pickButton.setLayoutData(pickButtonGridData); pickButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent arg0) { Calendar newCalendar = GregorianCalendar.getInstance(); if(date != null) { newCalendar.setTime(date.getTime()); } Shell shell = null; if (PlatformUI.getWorkbench().getActiveWorkbenchWindow() != null) { shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); } else { shell = new Shell(PlatformUI.getWorkbench().getDisplay()); } DateSelectionDialog dialog = new DateSelectionDialog(shell, newCalendar, DatePicker.TITLE_DIALOG); pickButton.setEnabled(false); dateText.setEnabled(false); int dialogResponse = dialog.open(); newCalendar.setTime(dialog.getDate()); dateSelected(dialogResponse == DateSelectionDialog.CANCEL, newCalendar); // Display display = Display.getCurrent();// showDatePicker((display.getCursorLocation().x), (display.getCursorLocation().y)); } public void widgetDefaultSelected(SelectionEvent arg0) { } }); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/b87e15519c081e59229e2cc383fdeda04c305bf6/DatePicker.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasklist/ui/views/DatePicker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4046,
1435,
288,
1082,
202,
6313,
3744,
3068,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
5222,
3744,
18,
2107,
3380,
273,
576,
31,
202,
202,
5222,
3744,
18,
18396,
18006,
273,
374,
31,
202,
202,
5222,
3744,
18,
17824,
18006,
273,
374,
31,
202,
202,
5222,
3744,
18,
10107,
2384,
273,
374,
31,
202,
202,
5222,
3744,
18,
10107,
2686,
273,
374,
31,
202,
202,
5222,
3744,
18,
6540,
3380,
5812,
2384,
273,
629,
31,
202,
202,
2211,
18,
542,
3744,
12,
5222,
3744,
1769,
202,
202,
542,
1225,
12,
2704,
2358,
18,
20416,
18,
5328,
88,
18,
31586,
18,
2148,
12,
22343,
16,
5342,
10019,
9506,
202,
9647,
11878,
18,
9010,
3234,
2932,
8206,
19,
449,
19,
6795,
366,
30,
7020,
12391,
8863,
202,
202,
712,
1528,
273,
394,
3867,
12,
2211,
16,
348,
8588,
18,
9826,
1769,
9506,
202,
6313,
751,
1509,
1528,
6313,
751,
273,
394,
2358,
18,
20416,
18,
5328,
88,
18,
6741,
18,
6313,
751,
5621,
202,
202,
712,
1528,
6313,
751,
18,
2819,
7002,
273,
16848,
31,
6862,
202,
712,
1528,
18,
542,
3744,
751,
12,
712,
1528,
6313,
751,
1769,
202,
202,
712,
1528,
18,
542,
1528,
12,
6769,
1528,
1769,
202,
202,
712,
1528,
18,
1289,
9233,
2223,
12,
2704,
478,
4560,
2223,
1435,
288,
759,
1082,
202,
11878,
18,
588,
5096,
1442,
12,
11878,
18,
15993,
16,
18371,
18,
15993,
2934,
2139,
12,
2972,
1626,
10019,
25083,
202,
7335,
5686,
273,
5542,
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,
225,
202,
1152,
918,
4046,
1435,
288,
1082,
202,
6313,
3744,
3068,
3744,
273,
394,
7145,
3744,
5621,
202,
202,
5222,
3744,
18,
2107,
3380,
273,
576,
31,
202,
202,
5222,
3744,
18,
18396,
18006,
273,
374,
31,
202,
202,
5222,
3744,
18,
17824,
18006,
273,
374,
31,
202,
202,
5222,
3744,
18,
10107,
2384,
273,
374,
31,
202,
202,
5222,
3744,
18,
10107,
2686,
273,
374,
31,
202,
202,
5222,
3744,
18,
6540,
3380,
5812,
2384,
273,
629,
31,
202,
202,
2211,
18,
542,
3744,
12,
5222,
3744,
1769,
202,
202,
542,
1225,
12,
2704,
2358,
18,
20416,
18,
5328,
88,
18,
31586,
18,
2148,
12,
22343,
16,
5342,
10019,
9506,
202,
9647,
11878,
18,
9010,
3234,
2932,
2
] |
||
public TA_RetCode CDLSHOOTINGSTAR( int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[] ){ double BodyPeriodTotal, ShadowLongPeriodTotal, ShadowVeryShortPeriodTotal; int i, outIdx, BodyTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLSHOOTINGSTAR_Lookback (); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } BodyPeriodTotal = 0; BodyTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) ; ShadowLongPeriodTotal = 0; ShadowLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].avgPeriod) ; ShadowVeryShortPeriodTotal = 0; ShadowVeryShortTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].avgPeriod) ; i = BodyTrailingIdx; while( i < startIdx ) { BodyPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ; i++; } i = ShadowLongTrailingIdx; while( i < startIdx ) { ShadowLongPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ; i++; } i = ShadowVeryShortTrailingIdx; while( i < startIdx ) { ShadowVeryShortPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ; i++; } outIdx = 0; do { if( ( Math.abs ( inClose[i] - inOpen[i] ) ) < ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) != 0.0? BodyPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].avgPeriod) != 0.0? ShadowLongPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) < ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].avgPeriod) != 0.0? ShadowVeryShortPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( (((inOpen[i]) < (inClose[i])) ? (inOpen[i]) : (inClose[i])) > (((inOpen[i-1]) > (inClose[i-1])) ? (inOpen[i-1]) : (inClose[i-1])) ) ) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; BodyPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[BodyTrailingIdx] - inOpen[BodyTrailingIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[BodyTrailingIdx] - inLow[BodyTrailingIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[BodyTrailingIdx] - ( inClose[BodyTrailingIdx] >= inOpen[BodyTrailingIdx] ? inClose[BodyTrailingIdx] : inOpen[BodyTrailingIdx] ) ) + ( ( inClose[BodyTrailingIdx] >= inOpen[BodyTrailingIdx] ? inOpen[BodyTrailingIdx] : inClose[BodyTrailingIdx] ) - inLow[BodyTrailingIdx] ) : 0 ) ) ) ; ShadowLongPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[ShadowLongTrailingIdx] - inOpen[ShadowLongTrailingIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[ShadowLongTrailingIdx] - inLow[ShadowLongTrailingIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[ShadowLongTrailingIdx] - ( inClose[ShadowLongTrailingIdx] >= inOpen[ShadowLongTrailingIdx] ? inClose[ShadowLongTrailingIdx] : inOpen[ShadowLongTrailingIdx] ) ) + ( ( inClose[ShadowLongTrailingIdx] >= inOpen[ShadowLongTrailingIdx] ? inOpen[ShadowLongTrailingIdx] : inClose[ShadowLongTrailingIdx] ) - inLow[ShadowLongTrailingIdx] ) : 0 ) ) ) ; ShadowVeryShortPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[ShadowVeryShortTrailingIdx] - inOpen[ShadowVeryShortTrailingIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[ShadowVeryShortTrailingIdx] - inLow[ShadowVeryShortTrailingIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_ShadowVeryShort.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[ShadowVeryShortTrailingIdx] - ( inClose[ShadowVeryShortTrailingIdx] >= inOpen[ShadowVeryShortTrailingIdx] ? inClose[ShadowVeryShortTrailingIdx] : inOpen[ShadowVeryShortTrailingIdx] ) ) + ( ( inClose[ShadowVeryShortTrailingIdx] >= inOpen[ShadowVeryShortTrailingIdx] ? inOpen[ShadowVeryShortTrailingIdx] : inClose[ShadowVeryShortTrailingIdx] ) - inLow[ShadowVeryShortTrailingIdx] ) : 0 ) ) ) ; i++; BodyTrailingIdx++; ShadowLongTrailingIdx++; ShadowVeryShortTrailingIdx++; } while( i <= endIdx ); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode. TA_SUCCESS;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
385,
8914,
2664,
51,
1974,
1360,
20943,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
3678,
63,
6487,
1645,
316,
8573,
63,
6487,
1645,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
509,
596,
4522,
8526,
262,
95,
1645,
5652,
5027,
5269,
16,
24915,
3708,
5027,
5269,
16,
24915,
58,
627,
4897,
5027,
5269,
31,
509,
277,
16,
596,
4223,
16,
5652,
16808,
4223,
16,
24915,
3708,
16808,
4223,
16,
24915,
58,
627,
4897,
16808,
4223,
16,
2324,
823,
5269,
31,
309,
12,
27108,
411,
374,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
7570,
67,
9199,
31,
309,
12,
261,
409,
4223,
411,
374,
13,
747,
261,
409,
4223,
411,
27108,
3719,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
67,
3932,
67,
15928,
67,
4415,
67,
9199,
31,
2324,
823,
5269,
273,
39,
8914,
2664,
51,
1974,
1360,
20943,
67,
9794,
823,
261,
1769,
309,
12,
27108,
411,
2324,
823,
5269,
262,
27108,
273,
2324,
823,
5269,
31,
309,
12,
27108,
405,
679,
4223,
262,
288,
659,
24059,
4223,
18,
1132,
273,
374,
274,
659,
22816,
1046,
18,
1132,
273,
374,
274,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
12778,
31,
289,
5652,
5027,
5269,
273,
374,
31,
5652,
16808,
4223,
273,
27108,
300,
12,
2211,
18,
71,
464,
298,
2628,
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,
1071,
399,
37,
67,
7055,
1085,
385,
8914,
2664,
51,
1974,
1360,
20943,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
3678,
63,
6487,
1645,
316,
8573,
63,
6487,
1645,
316,
10520,
63,
6487,
1645,
316,
4605,
63,
6487,
490,
4522,
596,
24059,
4223,
16,
490,
4522,
596,
22816,
1046,
16,
509,
596,
4522,
8526,
262,
95,
1645,
5652,
5027,
5269,
16,
24915,
3708,
5027,
5269,
16,
24915,
58,
627,
4897,
5027,
5269,
31,
509,
277,
16,
596,
4223,
16,
5652,
16808,
4223,
16,
24915,
3708,
16808,
4223,
16,
24915,
58,
627,
4897,
16808,
4223,
16,
2324,
823,
5269,
31,
309,
12,
27108,
411,
374,
262,
327,
9833,
67,
7055,
1085,
18,
399,
37,
67,
5069,
2
] |
||
opaqueness = LayerUtils.intFromProperties(properties, prefix + OpaquenessProperty, DEFAULT_OPAQUENESS); | opaqueness = PropUtils.intFromProperties(properties, prefix + OpaquenessProperty, DEFAULT_OPAQUENESS); | public void setProperties(String prefix, java.util.Properties properties) { super.setProperties(prefix, properties); path = properties.getProperty(prefix + ETOPOPathProperty); opaqueness = LayerUtils.intFromProperties(properties, prefix + OpaquenessProperty, DEFAULT_OPAQUENESS); viewType = LayerUtils.intFromProperties(properties, prefix + ETOPOViewTypeProperty, COLOREDSHADING); slopeAdjust = LayerUtils.intFromProperties(properties, prefix + ETOPOSlopeAdjustProperty, DEFAULT_SLOPE_ADJUST); minuteSpacing = LayerUtils.intFromProperties(properties, prefix + ETOPOMinuteSpacingProperty, DEFAULT_MINUTE_SPACING); } | 3071 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3071/cad5e34911e8566aac46e452232802958491764d/ETOPOLayer.java/buggy/src/openmap/com/bbn/openmap/layer/etopo/ETOPOLayer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23126,
12,
780,
1633,
16,
2252,
18,
1367,
18,
2297,
1790,
13,
288,
202,
9565,
18,
542,
2297,
12,
3239,
16,
1790,
1769,
202,
803,
273,
1790,
18,
588,
1396,
12,
3239,
397,
512,
4296,
2419,
743,
1396,
1769,
202,
556,
69,
372,
15681,
273,
12112,
1989,
18,
474,
1265,
2297,
12,
4738,
16,
6862,
1082,
225,
1633,
397,
6066,
69,
372,
15681,
1396,
16,
6862,
1082,
225,
3331,
67,
3665,
37,
3500,
1157,
41,
1260,
1769,
202,
202,
1945,
559,
273,
12112,
1989,
18,
474,
1265,
2297,
12,
4738,
16,
25083,
202,
3239,
397,
512,
4296,
2419,
1767,
559,
1396,
16,
25083,
202,
3865,
1502,
5879,
2664,
30118,
1769,
202,
30320,
10952,
273,
12112,
1989,
18,
474,
1265,
2297,
12,
4738,
16,
6862,
1082,
282,
1633,
397,
512,
4296,
7057,
12232,
10952,
1396,
16,
6862,
1082,
282,
3331,
67,
55,
1502,
1423,
67,
1880,
46,
5996,
1769,
202,
17637,
18006,
273,
12112,
1989,
18,
474,
1265,
2297,
12,
4738,
16,
6862,
1082,
377,
1633,
397,
4518,
3665,
1872,
267,
624,
18006,
1396,
16,
6862,
1082,
377,
3331,
67,
30090,
67,
3118,
2226,
1360,
1769,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23126,
12,
780,
1633,
16,
2252,
18,
1367,
18,
2297,
1790,
13,
288,
202,
9565,
18,
542,
2297,
12,
3239,
16,
1790,
1769,
202,
803,
273,
1790,
18,
588,
1396,
12,
3239,
397,
512,
4296,
2419,
743,
1396,
1769,
202,
556,
69,
372,
15681,
273,
12112,
1989,
18,
474,
1265,
2297,
12,
4738,
16,
6862,
1082,
225,
1633,
397,
6066,
69,
372,
15681,
1396,
16,
6862,
1082,
225,
3331,
67,
3665,
37,
3500,
1157,
41,
1260,
1769,
202,
202,
1945,
559,
273,
12112,
1989,
18,
474,
1265,
2297,
12,
4738,
16,
25083,
202,
3239,
397,
512,
4296,
2419,
1767,
559,
1396,
16,
25083,
202,
3865,
1502,
5879,
2664,
30118,
1769,
202,
30320,
10952,
273,
12112,
1989,
2
] |
void getOidWithOid( String a_oid ) ; | void getOidWithOid( String oid ); | void getOidWithOid( String a_oid ) ; | 17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/385a49334a1b7600eef5534ffcf74cdf77039bf0/OidRegistryMonitor.java/buggy/backend/api/src/java/org/apache/eve/schema/OidRegistryMonitor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
17971,
350,
1190,
19105,
12,
514,
279,
67,
839,
262,
274,
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,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
17971,
350,
1190,
19105,
12,
514,
279,
67,
839,
262,
274,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return (Double) XMLTypeFactory.eINSTANCE.createFromString( XMLTypePackage.eINSTANCE.getDouble( ), | return (Double) XMLTypeFactory.eINSTANCE.createFromString( XMLTypePackage.Literals.DOUBLE, | public Double createPercentageFromString( EDataType eDataType, String initialValue ) { return (Double) XMLTypeFactory.eINSTANCE.createFromString( XMLTypePackage.eINSTANCE.getDouble( ), initialValue ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/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,
3698,
752,
16397,
9193,
12,
20807,
11479,
16,
1082,
202,
780,
11837,
262,
202,
95,
202,
202,
2463,
261,
5265,
13,
3167,
559,
1733,
18,
73,
13341,
18,
2640,
9193,
12,
3167,
559,
2261,
18,
73,
13341,
18,
588,
5265,
12,
262,
16,
9506,
202,
6769,
620,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
202,
482,
3698,
752,
16397,
9193,
12,
20807,
11479,
16,
1082,
202,
780,
11837,
262,
202,
95,
202,
202,
2463,
261,
5265,
13,
3167,
559,
1733,
18,
73,
13341,
18,
2640,
9193,
12,
3167,
559,
2261,
18,
73,
13341,
18,
588,
5265,
12,
262,
16,
9506,
202,
6769,
620,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 static void adjustWhiteSpaceBefore(final ASTNode first, | private static void adjustWhiteSpaceBefore(ASTNode first, | private static void adjustWhiteSpaceBefore(final ASTNode first, final boolean keepBlankLines, final boolean keepLineBreaks, final boolean changeWSBeforeFirstElement, final boolean changeLineFeedsBeforeFirstElement) { CodeStyleSettings settings = CodeStyleSettingsManager.getSettings(first.getPsi().getProject()); final PsiElement psi = first.getPsi(); final PsiFile file = psi.getContainingFile(); final FormattingModelBuilder builder = file.getLanguage().getFormattingModelBuilder(); final FormattingModelBuilder elementBuilder = psi.getLanguage().getFormattingModelBuilder(); final boolean keepWhiteSpaces = settings.HTML_KEEP_WHITESPACES; boolean canModifyWhiteSpaces = canModifyWS(file); if (!canModifyWhiteSpaces) { settings.HTML_KEEP_WHITESPACES = true; } try { if (builder != null && elementBuilder != null) { ASTNode firstNonSpaceLeaf = TreeUtil.findFirstLeaf(first); while (firstNonSpaceLeaf != null && firstNonSpaceLeaf.getElementType() == ElementType.WHITE_SPACE) { firstNonSpaceLeaf = TreeUtil.nextLeaf(firstNonSpaceLeaf); } if (firstNonSpaceLeaf != null) { final int startOffset = firstNonSpaceLeaf.getStartOffset(); final int endOffset = first.getTextRange().getEndOffset(); if (startOffset < endOffset) { FormatterEx.getInstanceEx().adjustTextRange(builder.createModel(file, settings), settings, settings.getIndentOptions(file.getFileType()), new TextRange(startOffset, endOffset), keepBlankLines, keepLineBreaks, changeWSBeforeFirstElement, changeLineFeedsBeforeFirstElement, canModifyWhiteSpaces ? new MyIndentInfoStorage(file, null) : null); } } } } finally { settings.HTML_KEEP_WHITESPACES = keepWhiteSpaces; } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/1275ec977ca41eba8dc854de6acbbbf9b282a5dd/CodeEditUtil.java/buggy/source/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
918,
5765,
23108,
4649,
12,
9053,
907,
1122,
16,
4766,
2398,
727,
1250,
3455,
7796,
5763,
16,
4766,
2398,
727,
1250,
3455,
1670,
26806,
16,
4766,
2398,
727,
1250,
2549,
2651,
4649,
3759,
1046,
16,
727,
1250,
2549,
1670,
8141,
87,
4649,
3759,
1046,
13,
288,
565,
3356,
2885,
2628,
1947,
273,
3356,
2885,
2628,
1318,
18,
588,
2628,
12,
3645,
18,
588,
52,
7722,
7675,
588,
4109,
10663,
565,
727,
453,
7722,
1046,
23921,
273,
1122,
18,
588,
52,
7722,
5621,
565,
727,
453,
7722,
812,
585,
273,
23921,
18,
588,
24344,
812,
5621,
565,
727,
4077,
1787,
1488,
1263,
2089,
273,
585,
18,
588,
3779,
7675,
588,
23974,
1488,
1263,
5621,
565,
727,
4077,
1787,
1488,
1263,
930,
1263,
273,
23921,
18,
588,
3779,
7675,
588,
23974,
1488,
1263,
5621,
565,
727,
1250,
3455,
13407,
12077,
273,
1947,
18,
4870,
67,
6859,
10541,
67,
20767,
55,
31,
565,
1250,
848,
11047,
13407,
12077,
273,
848,
11047,
2651,
12,
768,
1769,
565,
309,
16051,
4169,
11047,
13407,
12077,
13,
288,
1377,
1947,
18,
4870,
67,
6859,
10541,
67,
20767,
55,
273,
638,
31,
565,
289,
565,
775,
288,
1377,
309,
261,
9574,
480,
446,
597,
930,
1263,
480,
446,
13,
288,
3639,
9183,
907,
1122,
3989,
3819,
9858,
273,
4902,
1304,
18,
4720,
3759,
9858,
12,
3645,
1769,
3639,
1323,
261,
3645,
3989,
3819,
9858,
480,
446,
597,
1122,
3989,
3819,
9858,
18,
588,
17481,
1435,
422,
3010,
559,
18,
16861,
67,
6616,
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,
760,
918,
5765,
23108,
4649,
12,
9053,
907,
1122,
16,
4766,
2398,
727,
1250,
3455,
7796,
5763,
16,
4766,
2398,
727,
1250,
3455,
1670,
26806,
16,
4766,
2398,
727,
1250,
2549,
2651,
4649,
3759,
1046,
16,
727,
1250,
2549,
1670,
8141,
87,
4649,
3759,
1046,
13,
288,
565,
3356,
2885,
2628,
1947,
273,
3356,
2885,
2628,
1318,
18,
588,
2628,
12,
3645,
18,
588,
52,
7722,
7675,
588,
4109,
10663,
565,
727,
453,
7722,
1046,
23921,
273,
1122,
18,
588,
52,
7722,
5621,
565,
727,
453,
7722,
812,
585,
273,
23921,
18,
588,
24344,
812,
5621,
565,
727,
4077,
1787,
1488,
1263,
2089,
273,
585,
18,
588,
3779,
7675,
588,
23974,
1488,
1263,
5621,
565,
727,
4077,
2
] |
flags [index] = value; | specified [index] = value; | public void setSpecified (int index, boolean value) { if (index < 0 || index >= getLength ()) throw new ArrayIndexOutOfBoundsException ( "No attribute at index: " + index); flags [index] = value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/Attributes2Impl.java/clean/core/src/classpath/org/org/xml/sax/ext/Attributes2Impl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
17068,
261,
474,
770,
16,
1250,
460,
13,
565,
288,
202,
430,
261,
1615,
411,
374,
747,
770,
1545,
9888,
1832,
13,
202,
565,
604,
394,
1510,
30548,
261,
202,
202,
6,
2279,
1566,
622,
770,
30,
315,
397,
770,
1769,
202,
13827,
306,
1615,
65,
273,
460,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
17068,
261,
474,
770,
16,
1250,
460,
13,
565,
288,
202,
430,
261,
1615,
411,
374,
747,
770,
1545,
9888,
1832,
13,
202,
565,
604,
394,
1510,
30548,
261,
202,
202,
6,
2279,
1566,
622,
770,
30,
315,
397,
770,
1769,
202,
13827,
306,
1615,
65,
273,
460,
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
] |
boolean empty = sbuf.length() == 0; | public String getHostAddress() { StringBuffer sbuf = new StringBuffer(40); for (int i = 0; i < 16; i += 2) { int x = ((ipaddress[i] & 0xFF) << 8) | (ipaddress[i + 1] & 0xFF); boolean empty = sbuf.length() == 0; if (empty) { if (i > 0) sbuf.append("::"); } else sbuf.append(':'); if (x != 0 || i >= 14) sbuf.append(Integer.toHexString(x)); } return sbuf.toString(); } | 1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/da8938ed916c372740026059c97fb8df1daaa3af/Inet6Address.java/buggy/libjava/java/net/Inet6Address.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8580,
1887,
1435,
225,
288,
565,
6674,
2393,
696,
273,
394,
6674,
12,
7132,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2872,
31,
277,
1011,
576,
13,
1377,
288,
202,
474,
619,
273,
14015,
625,
2867,
63,
77,
65,
473,
374,
6356,
13,
2296,
1725,
13,
571,
261,
625,
2867,
63,
77,
397,
404,
65,
473,
374,
6356,
1769,
202,
6494,
1008,
273,
2393,
696,
18,
2469,
1435,
422,
374,
31,
202,
430,
261,
5531,
13,
202,
225,
288,
202,
565,
309,
261,
77,
405,
374,
13,
202,
1377,
2393,
696,
18,
6923,
2932,
30,
2773,
1769,
202,
225,
289,
202,
12107,
202,
225,
2393,
696,
18,
6923,
2668,
2497,
1769,
202,
430,
261,
92,
480,
374,
747,
277,
1545,
5045,
13,
202,
225,
2393,
696,
18,
6923,
12,
4522,
18,
869,
14866,
12,
92,
10019,
1377,
289,
565,
327,
2393,
696,
18,
10492,
5621,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
8580,
1887,
1435,
225,
288,
565,
6674,
2393,
696,
273,
394,
6674,
12,
7132,
1769,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2872,
31,
277,
1011,
576,
13,
1377,
288,
202,
474,
619,
273,
14015,
625,
2867,
63,
77,
65,
473,
374,
6356,
13,
2296,
1725,
13,
571,
261,
625,
2867,
63,
77,
397,
404,
65,
473,
374,
6356,
1769,
202,
6494,
1008,
273,
2393,
696,
18,
2469,
1435,
422,
374,
31,
202,
430,
261,
5531,
13,
202,
225,
288,
202,
565,
309,
261,
77,
405,
374,
13,
202,
1377,
2393,
696,
18,
6923,
2932,
30,
2773,
1769,
202,
225,
289,
202,
12107,
202,
225,
2393,
696,
18,
6923,
2668,
2497,
1769,
202,
2
] |
|
"been received (" + highest_seqno_seen + "); discarding duplicate message"); | "been received (highest received=" + highest_seqno_seen + "); discarding duplicate message"); | private void deliver(Message msg, SequencerHeader hdr) { Address original_sender=hdr.getOriginalSender(); if(original_sender == null) { if(log.isErrorEnabled()) log.error("original sender is null, cannot swap sender address back to original sender"); return; } long msg_seqno=hdr.getSeqno(); // this is the ack for the message sent by myself if(original_sender.equals(local_addr)) { synchronized(forward_table) { forward_table.remove(new Long(msg_seqno)); } } // if msg was already delivered, discard it Long highest_seqno_seen=(Long)received_table.get(original_sender); if(highest_seqno_seen != null) { if(highest_seqno_seen.longValue() >= msg_seqno) { if(log.isWarnEnabled()) log.warn("message seqno (" + original_sender + "::" + msg_seqno + " has already " + "been received (" + highest_seqno_seen + "); discarding duplicate message"); return; } } // update the table with the new seqno received_table.put(original_sender, new Long(msg_seqno)); // pass a copy of the message up the stack Message tmp=msg.copy(true); tmp.setSrc(original_sender); passUp(new Event(Event.MSG, tmp)); } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/fe09dc236190593ad0aef8e89e3bd2d552e775d7/SEQUENCER.java/buggy/src/org/jgroups/protocols/SEQUENCER.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
11795,
12,
1079,
1234,
16,
3265,
372,
23568,
1864,
7723,
13,
288,
3639,
5267,
2282,
67,
15330,
33,
16587,
18,
588,
8176,
12021,
5621,
3639,
309,
12,
8830,
67,
15330,
422,
446,
13,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
7734,
613,
18,
1636,
2932,
8830,
5793,
353,
446,
16,
2780,
7720,
5793,
1758,
1473,
358,
2282,
5793,
8863,
5411,
327,
31,
3639,
289,
3639,
1525,
1234,
67,
5436,
2135,
33,
16587,
18,
588,
6926,
2135,
5621,
3639,
368,
333,
353,
326,
8479,
364,
326,
883,
3271,
635,
3399,
2890,
3639,
309,
12,
8830,
67,
15330,
18,
14963,
12,
3729,
67,
4793,
3719,
288,
5411,
3852,
12,
11565,
67,
2121,
13,
288,
7734,
5104,
67,
2121,
18,
4479,
12,
2704,
3407,
12,
3576,
67,
5436,
2135,
10019,
5411,
289,
3639,
289,
3639,
368,
309,
1234,
1703,
1818,
22112,
16,
10388,
518,
3639,
3407,
9742,
67,
5436,
2135,
67,
15156,
28657,
3708,
13,
15213,
67,
2121,
18,
588,
12,
8830,
67,
15330,
1769,
3639,
309,
12,
8766,
395,
67,
5436,
2135,
67,
15156,
480,
446,
13,
288,
5411,
309,
12,
8766,
395,
67,
5436,
2135,
67,
15156,
18,
5748,
620,
1435,
1545,
1234,
67,
5436,
2135,
13,
288,
7734,
309,
12,
1330,
18,
291,
3160,
1526,
10756,
7734,
613,
18,
8935,
2932,
2150,
30734,
7566,
397,
2282,
67,
15330,
397,
31120,
397,
1234,
67,
5436,
2135,
397,
315,
711,
1818,
315,
397,
13491,
315,
2196,
275,
5079,
261,
8766,
395,
5079,
1546,
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,
11795,
12,
1079,
1234,
16,
3265,
372,
23568,
1864,
7723,
13,
288,
3639,
5267,
2282,
67,
15330,
33,
16587,
18,
588,
8176,
12021,
5621,
3639,
309,
12,
8830,
67,
15330,
422,
446,
13,
288,
5411,
309,
12,
1330,
18,
291,
668,
1526,
10756,
7734,
613,
18,
1636,
2932,
8830,
5793,
353,
446,
16,
2780,
7720,
5793,
1758,
1473,
358,
2282,
5793,
8863,
5411,
327,
31,
3639,
289,
3639,
1525,
1234,
67,
5436,
2135,
33,
16587,
18,
588,
6926,
2135,
5621,
3639,
368,
333,
353,
326,
8479,
364,
326,
883,
3271,
635,
3399,
2890,
3639,
309,
12,
8830,
67,
15330,
18,
14963,
12,
3729,
67,
4793,
3719,
288,
5411,
3852,
12,
11565,
67,
2121,
13,
288,
7734,
2
] |
SaveablesList saveablesList = (SaveablesList) PlatformUI .getWorkbench().getService( ISaveablesLifecycleListener.class); return saveablesList.getOpenModels(); | if(window.getActivePage() != null) { return window.getActivePage().getEditorReferences(); } | public Object[] getChildren(Object parentElement) { if (parentElement instanceof Node) { if (previousNode.equals(parentElement)) { return getPreviousPicks(); } else if (editorNode.equals(parentElement)) { SaveablesList saveablesList = (SaveablesList) PlatformUI .getWorkbench().getService( ISaveablesLifecycleListener.class); return saveablesList.getOpenModels(); } else if (viewNode.equals(parentElement)) { return PlatformUI.getWorkbench().getViewRegistry() .getViews(); } else if (perspectiveNode.equals(parentElement)) { return PlatformUI.getWorkbench().getPerspectiveRegistry() .getPerspectives(); } else if (commandNode.equals(parentElement)) { return commands.toArray(); } else if (preferencesNode.equals(parentElement)) { List elements = PlatformUI.getWorkbench() .getPreferenceManager().getElements( PreferenceManager.PRE_ORDER); Set uniqueElements = new LinkedHashSet(elements); return uniqueElements.toArray(); } else if (menusNode.equals(parentElement)) { MenuManager menu = ((WorkbenchWindow) window) .getMenuBarManager(); Set result = new HashSet(); collectContributions(menu, result); return result.toArray(); } else if (newNode.equals(parentElement)) { IWizardCategory rootCategory = WorkbenchPlugin.getDefault() .getNewWizardRegistry().getRootCategory(); List result = new ArrayList(); collectWizards(rootCategory, result); return result.toArray(); } } if (parentElement == input) { return new Node[] { previousNode, editorNode, viewNode, perspectiveNode, commandNode, menusNode, newNode, preferencesNode }; } return new Object[0]; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/d252125e6eaac6b8d8b22129234b01cb5d6d5a19/CtrlEAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/incubator/CtrlEAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
1033,
8526,
10268,
12,
921,
30363,
13,
288,
1082,
202,
430,
261,
2938,
1046,
1276,
2029,
13,
288,
9506,
202,
430,
261,
11515,
907,
18,
14963,
12,
2938,
1046,
3719,
288,
6862,
202,
2463,
17225,
17968,
87,
5621,
9506,
202,
97,
469,
309,
261,
9177,
907,
18,
14963,
12,
2938,
1046,
3719,
288,
6862,
202,
4755,
1538,
682,
1923,
1538,
682,
273,
261,
4755,
1538,
682,
13,
11810,
5370,
6862,
1082,
202,
18,
588,
2421,
22144,
7675,
588,
1179,
12,
6862,
6862,
202,
45,
4755,
1538,
9977,
2223,
18,
1106,
1769,
6862,
202,
2463,
1923,
1538,
682,
18,
588,
3678,
8430,
5621,
9506,
202,
97,
469,
309,
261,
1945,
907,
18,
14963,
12,
2938,
1046,
3719,
288,
6862,
202,
2463,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
1767,
4243,
1435,
6862,
1082,
202,
18,
588,
9959,
5621,
9506,
202,
97,
469,
309,
261,
10422,
16772,
907,
18,
14963,
12,
2938,
1046,
3719,
288,
6862,
202,
2463,
11810,
5370,
18,
588,
2421,
22144,
7675,
588,
14781,
16772,
4243,
1435,
6862,
1082,
202,
18,
588,
14781,
1181,
3606,
5621,
9506,
202,
97,
469,
309,
261,
3076,
907,
18,
14963,
12,
2938,
1046,
3719,
288,
6862,
202,
2463,
4364,
18,
31447,
5621,
9506,
202,
97,
469,
309,
261,
23219,
907,
18,
14963,
12,
2938,
1046,
3719,
288,
6862,
202,
682,
2186,
273,
11810,
5370,
18,
588,
2421,
22144,
1435,
6862,
1082,
202,
18,
588,
9624,
1318,
7675,
588,
3471,
12,
6862,
6862,
202,
9624,
1318,
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,
3196,
202,
482,
1033,
8526,
10268,
12,
921,
30363,
13,
288,
1082,
202,
430,
261,
2938,
1046,
1276,
2029,
13,
288,
9506,
202,
430,
261,
11515,
907,
18,
14963,
12,
2938,
1046,
3719,
288,
6862,
202,
2463,
17225,
17968,
87,
5621,
9506,
202,
97,
469,
309,
261,
9177,
907,
18,
14963,
12,
2938,
1046,
3719,
288,
6862,
202,
4755,
1538,
682,
1923,
1538,
682,
273,
261,
4755,
1538,
682,
13,
11810,
5370,
6862,
1082,
202,
18,
588,
2421,
22144,
7675,
588,
1179,
12,
6862,
6862,
202,
45,
4755,
1538,
9977,
2223,
18,
1106,
1769,
6862,
202,
2463,
1923,
1538,
682,
18,
588,
3678,
8430,
5621,
9506,
202,
97,
469,
309,
261,
1945,
907,
18,
14963,
12,
2938,
1046,
3719,
2
] |
public void write() { if (filePathField != null) { filePath = filePathField.getText(); } if (filePath == null) { filePath = getFilePathFromUser(); if (filePath == null) { return; } } shpFile = new File(filePath + ".shp"); shxFile = new File(filePath + ".shx"); dbfFile = new File(filePath + ".dbf"); try { //create an esriGraphicList and export it to the // shapefile set if (DEBUG) Debug.output("ESE writing: " + list.size() + " elements"); ShpOutputStream pos = new ShpOutputStream(new FileOutputStream(shpFile)); int[][] indexData = pos.writeGeometry(list); ShxOutputStream xos = new ShxOutputStream(new FileOutputStream(shxFile)); xos.writeIndex(indexData, list.getType()); if (getWriteDBF()) { DbfOutputStream dos = new DbfOutputStream(new FileOutputStream(dbfFile)); dos.writeModel(model); } } catch (Exception e) { handleException(e); } } | 47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/a67a6107615ffa8857ad417cbb073aa1b85195a7/EsriShapeExport.java/clean/src/openmap/com/bbn/openmap/dataAccess/shape/EsriShapeExport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1045,
1435,
288,
5411,
309,
261,
22787,
974,
480,
446,
13,
288,
7734,
4612,
273,
4612,
974,
18,
588,
1528,
5621,
5411,
289,
5411,
309,
261,
22787,
422,
446,
13,
288,
7734,
4612,
273,
22554,
1265,
1299,
5621,
7734,
309,
261,
22787,
422,
446,
13,
288,
10792,
327,
31,
7734,
289,
5411,
289,
5411,
25771,
812,
273,
394,
1387,
12,
22787,
397,
3552,
674,
84,
8863,
5411,
699,
92,
812,
273,
394,
1387,
12,
22787,
397,
3552,
674,
92,
8863,
5411,
1319,
74,
812,
273,
394,
1387,
12,
22787,
397,
3552,
1966,
74,
8863,
5411,
775,
288,
7734,
368,
2640,
392,
5001,
566,
29459,
682,
471,
3359,
518,
358,
326,
7734,
368,
2179,
768,
444,
7734,
309,
261,
9394,
13,
10792,
4015,
18,
2844,
2932,
41,
1090,
7410,
30,
315,
397,
666,
18,
1467,
1435,
397,
315,
2186,
8863,
7734,
2638,
84,
4632,
949,
273,
394,
2638,
84,
4632,
12,
2704,
12942,
12,
674,
84,
812,
10019,
7734,
509,
63,
6362,
65,
770,
751,
273,
949,
18,
2626,
9823,
12,
1098,
1769,
7734,
2638,
92,
4632,
619,
538,
273,
394,
2638,
92,
4632,
12,
2704,
12942,
12,
674,
92,
812,
10019,
7734,
619,
538,
18,
2626,
1016,
12,
1615,
751,
16,
666,
18,
588,
559,
10663,
7734,
309,
261,
588,
3067,
2290,
42,
10756,
288,
10792,
8408,
74,
4632,
16153,
273,
394,
8408,
74,
4632,
12,
2704,
12942,
12,
1966,
74,
812,
10019,
10792,
16153,
18,
2626,
1488,
12,
2284,
1769,
7734,
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,
1045,
1435,
288,
5411,
309,
261,
22787,
974,
480,
446,
13,
288,
7734,
4612,
273,
4612,
974,
18,
588,
1528,
5621,
5411,
289,
5411,
309,
261,
22787,
422,
446,
13,
288,
7734,
4612,
273,
22554,
1265,
1299,
5621,
7734,
309,
261,
22787,
422,
446,
13,
288,
10792,
327,
31,
7734,
289,
5411,
289,
5411,
25771,
812,
273,
394,
1387,
12,
22787,
397,
3552,
674,
84,
8863,
5411,
699,
92,
812,
273,
394,
1387,
12,
22787,
397,
3552,
674,
92,
8863,
5411,
1319,
74,
812,
273,
394,
1387,
12,
22787,
397,
3552,
1966,
74,
8863,
5411,
775,
288,
7734,
368,
2640,
392,
5001,
566,
29459,
682,
471,
3359,
518,
358,
326,
7734,
368,
2179,
768,
444,
7734,
2
] |
||
_t = __t174; | _t = __t176; | public final Expression generalComp(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST generalComp_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST eq = null; org.exist.xquery.parser.XQueryAST neq = null; org.exist.xquery.parser.XQueryAST lt = null; org.exist.xquery.parser.XQueryAST lteq = null; org.exist.xquery.parser.XQueryAST gt = null; org.exist.xquery.parser.XQueryAST gteq = null; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQ: { AST __t170 = _t; eq = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,EQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.EQ); step.setASTNode(eq); path.add(step); _t = __t170; _t = _t.getNextSibling(); break; } case NEQ: { AST __t171 = _t; neq = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,NEQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.NEQ); step.setASTNode(neq); path.add(step); _t = __t171; _t = _t.getNextSibling(); break; } case LT: { AST __t172 = _t; lt = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LT); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.LT); step.setASTNode(lt); path.add(step); _t = __t172; _t = _t.getNextSibling(); break; } case LTEQ: { AST __t173 = _t; lteq = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LTEQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.LTEQ); step.setASTNode(lteq); path.add(step); _t = __t173; _t = _t.getNextSibling(); break; } case GT: { AST __t174 = _t; gt = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,GT); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.GT); step.setASTNode(gt); path.add(step); _t = __t174; _t = _t.getNextSibling(); break; } case GTEQ: { AST __t175 = _t; gteq = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,GTEQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.GTEQ); step.setASTNode(gteq); path.add(step); _t = __t175; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/9aec85412cf9f86cb609358133dd23628306f44a/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
7470,
2945,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
7470,
2945,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
67,
88,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
7555,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1073,
85,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13489,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
328,
736,
85,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
9879,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
314,
736,
85,
273,
446,
31,
6862,
202,
4119,
33,
446,
31,
1082,
202,
743,
4742,
2002,
33,
394,
2666,
4742,
12,
2472,
1769,
1082,
202,
743,
4742,
2145,
33,
394,
2666,
4742,
12,
2472,
1769,
25083,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
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,
5371,
225,
7470,
2945,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
31,
9506,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
7470,
2945,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
13,
67,
88,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
7555,
273,
446,
31,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1073,
2
] |
public vNumeric NLessEq(vDescriptor v) { return mkNumeric().NLessEq(v); } | public vNumeric NLessEq(vDescriptor v) { return Numerate().NLessEq(v); } | public vNumeric NLessEq(vDescriptor v) { return mkNumeric().NLessEq(v); } | 4078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4078/7c7c142010d3eb262b09d6cce80700eab459d133/vValue.java/buggy/jcon/vValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
331,
9902,
423,
15313,
19508,
12,
90,
3187,
331,
13,
202,
95,
327,
5028,
9902,
7675,
50,
15313,
19508,
12,
90,
1769,
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,
1071,
331,
9902,
423,
15313,
19508,
12,
90,
3187,
331,
13,
202,
95,
327,
5028,
9902,
7675,
50,
15313,
19508,
12,
90,
1769,
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
] |
if ( (fFacetsDefined & DatatypeValidator.FACET_PATTERN ) != 0 ) { if ( fRegex == null || fRegex.matches( content) == false ) | if ((fFacetsDefined & DatatypeValidator.FACET_PATTERN ) != 0) { if (fRegex == null || fRegex.matches( content) == false) | private void checkContent( String content, Object state, boolean asBase ) throws InvalidDatatypeValueException { // validate against parent type if any if ( fBaseValidator instanceof AbstractStringValidator ) { // validate content as a base type ((AbstractStringValidator)fBaseValidator).checkContent(content, state, true); } // we check pattern first if ( (fFacetsDefined & DatatypeValidator.FACET_PATTERN ) != 0 ) { if ( fRegex == null || fRegex.matches( content) == false ) throw new InvalidDatatypeValueException("Value '"+content+ "' does not match regular expression facet '" + fPattern + "'." ); } // validate special kinds of token, in place of old pattern matching if (fTokenType != SPECIAL_TOKEN_NONE) { validateToken(fTokenType, content); } // if this is a base validator, we only need to check pattern facet // all other facet were inherited by the derived type if ( asBase ) return; checkValueSpace (content); int length = getLength(content); if ( (fFacetsDefined & DatatypeValidator.FACET_MAXLENGTH) != 0 ) { if ( length > fMaxLength ) { throw new InvalidDatatypeValueException("Value '"+content+ "' with length '"+length+ "' exceeds maximum length facet of '"+fMaxLength+"'."); } } if ( (fFacetsDefined & DatatypeValidator.FACET_MINLENGTH) != 0 ) { if ( length < fMinLength ) { throw new InvalidDatatypeValueException("Value '"+content+ "' with length '"+length+ "' is less than minimum length facet of '"+fMinLength+"'." ); } } if ( (fFacetsDefined & DatatypeValidator.FACET_LENGTH) != 0 ) { if ( length != fLength ) { throw new InvalidDatatypeValueException("Value '"+content+ "' with length '"+length+ "' is not equal to length facet '"+fLength+"'."); } } if ( (fFacetsDefined & DatatypeValidator.FACET_ENUMERATION) != 0 && (fEnumeration != null) ) { if ( fEnumeration.contains( content ) == false ) throw new InvalidDatatypeValueException("Value '"+content+"' must be one of "+fEnumeration); } } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/8973a4e0a87c8b8fcad9e9b1f2a9f9b642609e45/AbstractStringValidator.java/clean/src/org/apache/xerces/impl/v2/datatypes/AbstractStringValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
1350,
12,
514,
913,
16,
1033,
919,
16,
1250,
487,
2171,
262,
565,
1216,
1962,
20228,
9738,
288,
3639,
368,
1954,
5314,
982,
618,
309,
1281,
3639,
309,
261,
284,
2171,
5126,
1276,
4115,
780,
5126,
262,
288,
5411,
368,
1954,
913,
487,
279,
1026,
618,
5411,
14015,
7469,
780,
5126,
13,
74,
2171,
5126,
2934,
1893,
1350,
12,
1745,
16,
919,
16,
638,
1769,
3639,
289,
3639,
368,
732,
866,
1936,
1122,
3639,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
10831,
262,
480,
374,
262,
288,
5411,
309,
261,
284,
6628,
422,
446,
747,
284,
6628,
18,
8436,
12,
913,
13,
422,
629,
262,
7734,
604,
394,
1962,
20228,
9738,
2932,
620,
2119,
15,
1745,
15,
4766,
13491,
2491,
1552,
486,
845,
6736,
2652,
11082,
2119,
397,
284,
3234,
397,
30156,
11272,
3639,
289,
3639,
368,
1954,
4582,
21961,
434,
1147,
16,
316,
3166,
434,
1592,
1936,
3607,
3639,
309,
261,
74,
28675,
480,
22872,
6365,
67,
8412,
67,
9826,
13,
288,
5411,
1954,
1345,
12,
74,
28675,
16,
913,
1769,
3639,
289,
3639,
368,
309,
333,
353,
279,
1026,
4213,
16,
732,
1338,
1608,
358,
866,
1936,
11082,
3639,
368,
777,
1308,
11082,
4591,
12078,
635,
326,
10379,
618,
3639,
309,
261,
487,
2171,
262,
5411,
327,
31,
3639,
866,
620,
3819,
261,
1745,
1769,
3639,
509,
769,
273,
9888,
12,
1745,
1769,
3639,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
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,
866,
1350,
12,
514,
913,
16,
1033,
919,
16,
1250,
487,
2171,
262,
565,
1216,
1962,
20228,
9738,
288,
3639,
368,
1954,
5314,
982,
618,
309,
1281,
3639,
309,
261,
284,
2171,
5126,
1276,
4115,
780,
5126,
262,
288,
5411,
368,
1954,
913,
487,
279,
1026,
618,
5411,
14015,
7469,
780,
5126,
13,
74,
2171,
5126,
2934,
1893,
1350,
12,
1745,
16,
919,
16,
638,
1769,
3639,
289,
3639,
368,
732,
866,
1936,
1122,
3639,
309,
261,
261,
74,
6645,
2413,
8116,
473,
21168,
5126,
18,
11300,
56,
67,
10831,
262,
480,
374,
262,
288,
5411,
309,
261,
284,
6628,
422,
446,
747,
284,
6628,
18,
8436,
12,
913,
13,
422,
629,
262,
7734,
604,
394,
2
] |
public void run() | int response; String strButton = bluej.getExtensionPropertyString(FindBugsPreferences.PROFILE_LABEL,""); if(strButton.equals(FindBugsPreferences.radioCommand[0])) response = JOptionPane.YES_OPTION; else if(strButton.equals(FindBugsPreferences.radioCommand[1])) response = JOptionPane.NO_OPTION; else{ StringBuffer msg = new StringBuffer(); msg.append("The following class" + (notCompiled.size() == 1 ? " is " : "es are ") + "not compiled:\n\n"); for (BClass bc : notCompiled) msg.append(bc.getName() + "\n"); msg.append("\nCompile before running FindBugs?"); response = JOptionPane.showConfirmDialog(null, msg); } switch (response) | public void actionPerformed(ActionEvent evt) { new Thread(new Runnable() { public void run() { try { final SortedBugCollection bugs = RunFindbugs.getBugs(allClassFileNames(pckg.getProject())); SwingUtilities.invokeLater(new Runnable() { public void run() { try { ResultsFrame.getInstance().update(bugs, pckg.getProject()); } catch (Exception e) { Log.recordBug(e); } } }); } catch (Exception e) { Log.recordBug(e); } } }).start(); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/f745dffd41c15da3b78da984683bca8dfe12daf9/RegularMenuBuilder.java/clean/bluej/src/edu/umd/cs/findbugs/bluej/RegularMenuBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
1082,
202,
95,
6862,
9506,
202,
2704,
4884,
12,
2704,
10254,
1435,
9506,
202,
95,
6862,
202,
482,
918,
1086,
1435,
6862,
202,
95,
25083,
202,
698,
25083,
202,
95,
6862,
1082,
202,
6385,
13717,
19865,
2532,
22398,
273,
1939,
3125,
19381,
18,
588,
31559,
12,
454,
797,
812,
1557,
12,
84,
363,
75,
18,
588,
4109,
1435,
10019,
6862,
1082,
202,
6050,
310,
11864,
18,
14407,
20607,
12,
2704,
10254,
1435,
6862,
1082,
202,
95,
6862,
9506,
202,
482,
918,
1086,
1435,
6862,
9506,
202,
95,
6862,
6862,
202,
698,
6862,
6862,
202,
95,
6862,
25083,
202,
3447,
3219,
18,
588,
1442,
7675,
2725,
12,
19381,
16,
293,
363,
75,
18,
588,
4109,
10663,
6862,
6862,
202,
97,
6862,
6862,
202,
14683,
261,
503,
425,
13,
6862,
6862,
202,
95,
6862,
25083,
202,
1343,
18,
3366,
19865,
12,
73,
1769,
6862,
6862,
202,
97,
6862,
9506,
202,
97,
6862,
1082,
202,
22938,
25083,
202,
97,
25083,
202,
14683,
261,
503,
425,
13,
25083,
202,
95,
6862,
1082,
202,
1343,
18,
3366,
19865,
12,
73,
1769,
25083,
202,
97,
6862,
202,
97,
9506,
202,
97,
2934,
1937,
5621,
1082,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
1082,
202,
95,
6862,
9506,
202,
2704,
4884,
12,
2704,
10254,
1435,
9506,
202,
95,
6862,
202,
482,
918,
1086,
1435,
6862,
202,
95,
25083,
202,
698,
25083,
202,
95,
6862,
1082,
202,
6385,
13717,
19865,
2532,
22398,
273,
1939,
3125,
19381,
18,
588,
31559,
12,
454,
797,
812,
1557,
12,
84,
363,
75,
18,
588,
4109,
1435,
10019,
6862,
1082,
202,
6050,
310,
11864,
18,
14407,
20607,
12,
2704,
10254,
1435,
6862,
1082,
202,
95,
6862,
9506,
202,
482,
918,
1086,
1435,
6862,
9506,
202,
95,
6862,
6862,
202,
698,
6862,
6862,
202,
95,
6862,
25083,
202,
3447,
3219,
18,
588,
1442,
7675,
2725,
12,
19381,
16,
293,
2
] |
return getRubyClass().call(this, mid, args, 0); } | return getRubyClass().call(this, mid, args, 0); } | public RubyObject funcall3(RubyId mid, RubyPointer args) { return getRubyClass().call(this, mid, args, 0); } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/addcb75d5d86d9b1fd628d84d22b74cfc41f078e/RubyObject.java/clean/org/jruby/RubyObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
1326,
454,
23,
12,
54,
10340,
548,
7501,
16,
19817,
4926,
833,
13,
288,
3639,
327,
4170,
10340,
797,
7675,
1991,
12,
2211,
16,
7501,
16,
833,
16,
374,
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,
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,
19817,
921,
1326,
454,
23,
12,
54,
10340,
548,
7501,
16,
19817,
4926,
833,
13,
288,
3639,
327,
4170,
10340,
797,
7675,
1991,
12,
2211,
16,
7501,
16,
833,
16,
374,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
setEnctype(null); | private void evaluateExpressions() throws JspException { try { setAction((String) evalAttr("action", getAction(), String.class)); } catch (NullAttributeException ex) { setAction(null); } try { setEnctype((String) evalAttr("enctype", getEnctype(), String.class)); } catch (NullAttributeException ex) { setEnctype(null); } try { setFocus((String) evalAttr("focus", getFocus(), String.class)); } catch (NullAttributeException ex) { setFocus(null); } try { setFocusIndex((String) evalAttr("focusIndex", getFocusIndex(), String.class)); } catch (NullAttributeException ex) { setFocusIndex(null); } try { setMethod((String) evalAttr("method", getMethod(), String.class)); } catch (NullAttributeException ex) { setMethod(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnreset((String) evalAttr("onreset", getOnreset(), String.class)); } catch (NullAttributeException ex) { setOnreset(null); } try { setOnsubmit((String) evalAttr("onsubmit", getOnsubmit(), String.class)); } catch (NullAttributeException ex) { setOnsubmit(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTarget((String) evalAttr("target", getTarget(), String.class)); } catch (NullAttributeException ex) { setTarget(null); } try { setType((String) evalAttr("type", getType(), String.class)); } catch (NullAttributeException ex) { setType(null); } } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/db064e19656421b94aaf753550935d95f44bd5f9/ELFormTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELFormTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
22517,
12443,
780,
13,
5302,
3843,
2932,
1128,
3113,
12473,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
22517,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
664,
12387,
12443,
780,
13,
5302,
3843,
2932,
275,
12387,
3113,
336,
664,
12387,
9334,
29159,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
10402,
289,
3639,
775,
288,
5411,
31480,
12443,
780,
13,
5302,
3843,
2932,
13923,
3113,
2812,
4560,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
31480,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
31480,
1016,
12443,
780,
13,
5302,
3843,
2932,
13923,
1016,
3113,
2812,
4560,
1016,
9334,
4766,
5411,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
31480,
1016,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
19539,
12443,
780,
13,
5302,
3843,
2932,
2039,
3113,
6272,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
19539,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
529,
3113,
1723,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
6788,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
22131,
6208,
12443,
780,
13,
5302,
3843,
2932,
265,
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,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
22517,
12443,
780,
13,
5302,
3843,
2932,
1128,
3113,
12473,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
22517,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
664,
12387,
12443,
780,
13,
5302,
3843,
2932,
275,
12387,
3113,
336,
664,
12387,
9334,
29159,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
10402,
289,
3639,
775,
288,
5411,
31480,
12443,
780,
13,
5302,
3843,
2932,
13923,
3113,
2812,
4560,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
31480,
12,
2011,
1769,
3639,
289,
2
] |
|
return new ResourceSearchItem(resource, true); | return new ResourceItem(resource, true); | protected AbstractSearchItem restoreItemFromMemento(IMemento element) { IResource resource = null; ResourceFactory resourceFactory = new ResourceFactory(); resource = (IResource) resourceFactory.createElement(element); return new ResourceSearchItem(resource, true); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f6a6b077cb5b91dfa306af0b33ea1a4ed7445674/FilteredResourcesSelectionDialog.java/clean/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/FilteredResourcesSelectionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4115,
2979,
1180,
5217,
1180,
1265,
49,
820,
83,
12,
3445,
820,
83,
930,
13,
288,
202,
202,
45,
1420,
1058,
273,
446,
31,
202,
202,
1420,
1733,
1058,
1733,
273,
394,
2591,
1733,
5621,
202,
202,
3146,
273,
261,
45,
1420,
13,
1058,
1733,
18,
2640,
1046,
12,
2956,
1769,
202,
202,
2463,
394,
2591,
2979,
1180,
12,
3146,
16,
638,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
1117,
4115,
2979,
1180,
5217,
1180,
1265,
49,
820,
83,
12,
3445,
820,
83,
930,
13,
288,
202,
202,
45,
1420,
1058,
273,
446,
31,
202,
202,
1420,
1733,
1058,
1733,
273,
394,
2591,
1733,
5621,
202,
202,
3146,
273,
261,
45,
1420,
13,
1058,
1733,
18,
2640,
1046,
12,
2956,
1769,
202,
202,
2463,
394,
2591,
2979,
1180,
12,
3146,
16,
638,
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
] |
throws ComponentConfigurationException | throws ComponentConfigurationException | public Object fromConfiguration( ConverterLookup converterLookup, PlexusConfiguration configuration, Class type, ClassLoader classLoader, ComponentDescriptor componentDescriptor ) throws ComponentConfigurationException { if ( configuration.getChildCount() > 0 ) { //@todo what we should do here? } String value = configuration.getValue( null ); if ( value == null ) { String msg = "Error occured while reading config element '" + configuration.getName() + "' of component " + componentDescriptor.getHumanReadableKey(); throw new ComponentConfigurationException( msg ); } Object retValue = fromString( value ); return retValue; } | 55908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55908/c923ecf665f1769c954774ab50aff9f954b22e6c/AbstractBasicConverter.java/clean/plexus-container-new.old/src/main/java/org/codehaus/plexus/component/configurator/converters/basic/AbstractBasicConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
628,
1750,
12,
14768,
6609,
6027,
6609,
16,
453,
4149,
407,
1750,
1664,
16,
1659,
618,
16,
9403,
11138,
16,
5435,
3187,
1794,
3187,
262,
5411,
1216,
5435,
10737,
565,
288,
3639,
309,
261,
1664,
18,
588,
1763,
1380,
1435,
405,
374,
262,
3639,
288,
5411,
23834,
9012,
4121,
732,
1410,
741,
2674,
35,
3639,
289,
3639,
514,
460,
273,
1664,
18,
24805,
12,
446,
11272,
3639,
309,
261,
460,
422,
446,
262,
3639,
288,
5411,
514,
1234,
273,
315,
668,
16206,
1323,
6453,
642,
930,
2119,
10792,
397,
1664,
18,
17994,
1435,
10792,
397,
2491,
434,
1794,
315,
10792,
397,
1794,
3187,
18,
588,
28201,
14151,
653,
5621,
5411,
604,
394,
5435,
10737,
12,
1234,
11272,
3639,
289,
3639,
1033,
21236,
273,
14855,
12,
460,
11272,
3639,
327,
21236,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
628,
1750,
12,
14768,
6609,
6027,
6609,
16,
453,
4149,
407,
1750,
1664,
16,
1659,
618,
16,
9403,
11138,
16,
5435,
3187,
1794,
3187,
262,
5411,
1216,
5435,
10737,
565,
288,
3639,
309,
261,
1664,
18,
588,
1763,
1380,
1435,
405,
374,
262,
3639,
288,
5411,
23834,
9012,
4121,
732,
1410,
741,
2674,
35,
3639,
289,
3639,
514,
460,
273,
1664,
18,
24805,
12,
446,
11272,
3639,
309,
261,
460,
422,
446,
262,
3639,
288,
5411,
514,
1234,
273,
315,
668,
16206,
1323,
6453,
642,
930,
2119,
10792,
397,
1664,
18,
17994,
1435,
10792,
397,
2491,
434,
1794,
315,
10792,
397,
1794,
3187,
18,
588,
28201,
14151,
653,
5621,
5411,
604,
394,
5435,
10737,
12,
1234,
2
] |
IReportProvider provider = EditorUtil.getReportProvider( this, getEditorInput( ) ); | IReportProvider provider = getProvider( ); | public void doSaveAs( ) { getActivePageInstance( ).doSaveAs( ); setInput( getActivePageInstance( ).getEditorInput( ) ); // update site name IReportProvider provider = EditorUtil.getReportProvider( this, getEditorInput( ) ); if ( provider != null ) { setPartName( provider.getInputPath( getEditorInput( ) ) .lastSegment( ) ); } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/604ce5391dbc451664ffe72c0eb2da50e51bc4ed/MultiPageReportEditor.java/clean/UI/org.eclipse.birt.report.designer.ui.editors/src/org/eclipse/birt/report/designer/ui/editors/MultiPageReportEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
4755,
1463,
12,
262,
202,
95,
202,
202,
588,
3896,
1964,
1442,
12,
262,
18,
2896,
4755,
1463,
12,
11272,
202,
202,
542,
1210,
12,
11960,
1964,
1442,
12,
262,
18,
588,
6946,
1210,
12,
262,
11272,
202,
202,
759,
1089,
2834,
508,
202,
202,
45,
4820,
2249,
2893,
273,
18451,
1304,
18,
588,
4820,
2249,
12,
333,
16,
9506,
202,
588,
6946,
1210,
12,
262,
11272,
202,
202,
430,
261,
2893,
480,
446,
262,
202,
202,
95,
1082,
202,
542,
1988,
461,
12,
2893,
18,
588,
1210,
743,
12,
336,
6946,
1210,
12,
262,
262,
6862,
202,
18,
2722,
4131,
12,
262,
11272,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
918,
741,
4755,
1463,
12,
262,
202,
95,
202,
202,
588,
3896,
1964,
1442,
12,
262,
18,
2896,
4755,
1463,
12,
11272,
202,
202,
542,
1210,
12,
11960,
1964,
1442,
12,
262,
18,
588,
6946,
1210,
12,
262,
11272,
202,
202,
759,
1089,
2834,
508,
202,
202,
45,
4820,
2249,
2893,
273,
18451,
1304,
18,
588,
4820,
2249,
12,
333,
16,
9506,
202,
588,
6946,
1210,
12,
262,
11272,
202,
202,
430,
261,
2893,
480,
446,
262,
202,
202,
95,
1082,
202,
542,
1988,
461,
12,
2893,
18,
588,
1210,
743,
12,
336,
6946,
1210,
12,
262,
262,
6862,
202,
18,
2722,
4131,
12,
262,
11272,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100
] |
return temp; } | return temp; } | public Snapshot getSnapshot(MesquiteFile file) { Snapshot temp = new Snapshot(); if (file == null || file == getProject().getHomeFile()){ for (int i = 0; i< treesVector.size(); i++) { TreeVector trees = (TreeVector)treesVector.elementAt(i); Snapshot fromTrees = trees.getSnapshot(file); if (fromTrees != null && fromTrees.getNumLines() > 0) { temp.addLine("getTreeBlock " + i); // a bit of a danger here that treeblock misidentified temp.addLine("tell It"); temp.incorporate(fromTrees, true); temp.addLine("endTell"); } } } for (int i = 0; i<getNumberOfEmployees(); i++) { MesquiteModule e=(MesquiteModule)getEmployeeVector().elementAt(i); if (e instanceof ManagerAssistant && (e.getModuleWindow()!=null) && e.getModuleWindow().isVisible() && e.getName().equals("Trees List")) { Object o = e.doCommand("getTreeBlock", null, CommandRecord.getRecNSIfNull(), CommandChecker.defaultChecker); if (o !=null && o instanceof TreeVector) { int wh = getTreeBlockNumber((TreeVector)o); temp.addLine("showTrees " + wh, e); } } } for (int i = 0; i<getNumberOfEmployees(); i++) { MesquiteModule e=(MesquiteModule)getEmployeeVector().elementAt(i); if (e instanceof ManagerAssistant && (e.getModuleWindow()!=null) && e.getModuleWindow().isVisible() && e.getName().equals("Tree Blocks List")) { temp.addLine("showTreeBlocks ", e); } } if (showTreeFiller && treeFillerTask !=null) temp.addLine("setTreeSource ", treeFillerTask); return temp; } | 57538 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57538/6415c3612051354f7fa8f1508f4686d6b2783a71/ManageTrees.java/buggy/trunk/Mesquite Project/Source/mesquite/trees/ManageTrees/ManageTrees.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
202,
1071,
10030,
1322,
2551,
12,
49,
281,
372,
1137,
812,
585,
13,
288,
377,
202,
225,
202,
4568,
1906,
273,
394,
10030,
5621,
3196,
202,
430,
261,
768,
422,
446,
747,
585,
422,
11080,
7675,
588,
8684,
812,
10756,
95,
202,
3196,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
32,
11491,
5018,
18,
1467,
5621,
277,
27245,
288,
202,
1875,
202,
2471,
5018,
11491,
273,
261,
2471,
5018,
13,
17204,
5018,
18,
2956,
861,
12,
77,
1769,
21114,
1875,
202,
4568,
628,
26590,
273,
11491,
18,
588,
4568,
12,
768,
1769,
1082,
21114,
225,
202,
430,
261,
2080,
26590,
480,
446,
597,
628,
26590,
18,
588,
2578,
5763,
1435,
405,
374,
13,
288,
1082,
21114,
3196,
202,
5814,
18,
1289,
1670,
2932,
588,
2471,
1768,
315,
397,
277,
1769,
225,
368,
279,
2831,
434,
279,
27308,
2674,
716,
2151,
2629,
7524,
6392,
939,
6862,
202,
5814,
18,
1289,
1670,
2932,
88,
1165,
2597,
8863,
6862,
202,
5814,
18,
267,
3850,
3831,
340,
12,
2080,
26590,
16,
638,
1769,
6862,
202,
5814,
18,
1289,
1670,
2932,
409,
21009,
8863,
202,
1875,
202,
97,
202,
3196,
202,
97,
3196,
202,
97,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
32,
588,
9226,
41,
23377,
25521,
5621,
277,
27245,
288,
1082,
202,
49,
281,
372,
1137,
3120,
425,
28657,
49,
281,
372,
1137,
3120,
13,
588,
41,
27520,
5018,
7675,
2956,
861,
12,
77,
1769,
1082,
202,
430,
261,
73,
1276,
8558,
2610,
17175,
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,
202,
1071,
10030,
1322,
2551,
12,
49,
281,
372,
1137,
812,
585,
13,
288,
377,
202,
225,
202,
4568,
1906,
273,
394,
10030,
5621,
3196,
202,
430,
261,
768,
422,
446,
747,
585,
422,
11080,
7675,
588,
8684,
812,
10756,
95,
202,
3196,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
32,
11491,
5018,
18,
1467,
5621,
277,
27245,
288,
202,
1875,
202,
2471,
5018,
11491,
273,
261,
2471,
5018,
13,
17204,
5018,
18,
2956,
861,
12,
77,
1769,
21114,
1875,
202,
4568,
628,
26590,
273,
11491,
18,
588,
4568,
12,
768,
1769,
1082,
21114,
225,
202,
430,
261,
2080,
26590,
480,
446,
597,
628,
26590,
18,
588,
2578,
5763,
1435,
405,
374,
13,
288,
1082,
21114,
2
] |
public TA_RetCode HT_TRENDMODE( int startIdx, int endIdx, double inReal[], MInteger outBegIdx, MInteger outNbElement, int outInteger[] ){ int outIdx, i; int lookbackTotal, today; double tempReal, tempReal2; double adjustedPrevPeriod, period; int trailingWMAIdx; double periodWMASum, periodWMASub, trailingWMAValue; double smoothedValue; double iTrend1, iTrend2, iTrend3; final double a = 0.0962; final double b = 0.5769; double hilbertTempReal; int hilbertIdx; double []detrender_Odd = new double[3]; ; double []detrender_Even = new double[3]; ; double detrender; double prev_detrender_Odd ; double prev_detrender_Even ; double prev_detrender_input_Odd ; double prev_detrender_input_Even ; double []Q1_Odd = new double[3]; ; double []Q1_Even = new double[3]; ; double Q1; double prev_Q1_Odd ; double prev_Q1_Even ; double prev_Q1_input_Odd ; double prev_Q1_input_Even ; double []jI_Odd = new double[3]; ; double []jI_Even = new double[3]; ; double jI; double prev_jI_Odd ; double prev_jI_Even ; double prev_jI_input_Odd ; double prev_jI_input_Even ; double []jQ_Odd = new double[3]; ; double []jQ_Even = new double[3]; ; double jQ; double prev_jQ_Odd ; double prev_jQ_Even ; double prev_jQ_input_Odd ; double prev_jQ_input_Even ; double Q2, I2, prevQ2, prevI2, Re, Im; double I1ForOddPrev2, I1ForOddPrev3; double I1ForEvenPrev2, I1ForEvenPrev3; double rad2Deg, deg2Rad, constDeg2RadBy360; double todayValue, smoothPeriod; int smoothPrice_Idx = 0; double []smoothPrice; int maxIdx_smoothPrice = ( 50 -1) ; int idx; int DCPeriodInt; double DCPhase, DCPeriod, imagPart, realPart; int daysInTrend, trend; double prevDCPhase, trendline; double prevSine, prevLeadSine, sine, leadSine; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; { smoothPrice = new double[maxIdx_smoothPrice +1]; } ; iTrend1 = iTrend2 = iTrend3 = 0.0; daysInTrend = 0; prevDCPhase = DCPhase = 0.0; prevSine = sine = 0.0; prevLeadSine = leadSine = 0.0; tempReal = Math.atan (1); rad2Deg = 45.0/tempReal; deg2Rad = 1.0/rad2Deg; constDeg2RadBy360 = tempReal*8.0; lookbackTotal = 63 + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_HT_TRENDMODE.ordinal()]) ; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outBegIdx.value = startIdx; trailingWMAIdx = startIdx - lookbackTotal; today = trailingWMAIdx; tempReal = inReal[today++]; periodWMASub = tempReal; periodWMASum = tempReal; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*2.0; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*3.0; trailingWMAValue = 0.0; i = 34; do { tempReal = inReal[today++]; { periodWMASub += tempReal; periodWMASub -= trailingWMAValue; periodWMASum += tempReal*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; } while( --i != 0); hilbertIdx = 0; { detrender_Odd [0] = 0.0; detrender_Odd [1] = 0.0; detrender_Odd [2] = 0.0; detrender_Even [0] = 0.0; detrender_Even [1] = 0.0; detrender_Even [2] = 0.0; detrender = 0.0; prev_detrender_Odd = 0.0; prev_detrender_Even = 0.0; prev_detrender_input_Odd = 0.0; prev_detrender_input_Even = 0.0; } ; { Q1_Odd [0] = 0.0; Q1_Odd [1] = 0.0; Q1_Odd [2] = 0.0; Q1_Even [0] = 0.0; Q1_Even [1] = 0.0; Q1_Even [2] = 0.0; Q1 = 0.0; prev_Q1_Odd = 0.0; prev_Q1_Even = 0.0; prev_Q1_input_Odd = 0.0; prev_Q1_input_Even = 0.0; } ; { jI_Odd [0] = 0.0; jI_Odd [1] = 0.0; jI_Odd [2] = 0.0; jI_Even [0] = 0.0; jI_Even [1] = 0.0; jI_Even [2] = 0.0; jI = 0.0; prev_jI_Odd = 0.0; prev_jI_Even = 0.0; prev_jI_input_Odd = 0.0; prev_jI_input_Even = 0.0; } ; { jQ_Odd [0] = 0.0; jQ_Odd [1] = 0.0; jQ_Odd [2] = 0.0; jQ_Even [0] = 0.0; jQ_Even [1] = 0.0; jQ_Even [2] = 0.0; jQ = 0.0; prev_jQ_Odd = 0.0; prev_jQ_Even = 0.0; prev_jQ_input_Odd = 0.0; prev_jQ_input_Even = 0.0; } ; period = 0.0; outIdx = 0; prevI2 = prevQ2 = 0.0; Re = Im = 0.0; I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; smoothPeriod = 0.0; for( i=0; i < 50 ; i++ ) smoothPrice[i] = 0.0; DCPhase = 0.0; while( today <= endIdx ) { adjustedPrevPeriod = (0.075*period)+0.54; todayValue = inReal[today]; { periodWMASub += todayValue; periodWMASub -= trailingWMAValue; periodWMASum += todayValue*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; smoothPrice[smoothPrice_Idx] = smoothedValue; if( (today%2) == 0 ) { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Even [hilbertIdx]; detrender_Even [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Even ; prev_detrender_Even = b * prev_detrender_input_Even ; detrender += prev_detrender_Even ; prev_detrender_input_Even = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Even [hilbertIdx]; Q1_Even [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Even ; prev_Q1_Even = b * prev_Q1_input_Even ; Q1 += prev_Q1_Even ; prev_Q1_input_Even = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForEvenPrev3; jI = -jI_Even [hilbertIdx]; jI_Even [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Even ; prev_jI_Even = b * prev_jI_input_Even ; jI += prev_jI_Even ; prev_jI_input_Even = I1ForEvenPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Even [hilbertIdx]; jQ_Even [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Even ; prev_jQ_Even = b * prev_jQ_input_Even ; jQ += prev_jQ_Even ; prev_jQ_input_Even = Q1; jQ *= adjustedPrevPeriod; } ; if( ++hilbertIdx == 3 ) hilbertIdx = 0; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); I1ForOddPrev3 = I1ForOddPrev2; I1ForOddPrev2 = detrender; } else { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Odd [hilbertIdx]; detrender_Odd [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Odd ; prev_detrender_Odd = b * prev_detrender_input_Odd ; detrender += prev_detrender_Odd ; prev_detrender_input_Odd = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Odd [hilbertIdx]; Q1_Odd [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Odd ; prev_Q1_Odd = b * prev_Q1_input_Odd ; Q1 += prev_Q1_Odd ; prev_Q1_input_Odd = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForOddPrev3; jI = -jI_Odd [hilbertIdx]; jI_Odd [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Odd ; prev_jI_Odd = b * prev_jI_input_Odd ; jI += prev_jI_Odd ; prev_jI_input_Odd = I1ForOddPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Odd [hilbertIdx]; jQ_Odd [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Odd ; prev_jQ_Odd = b * prev_jQ_input_Odd ; jQ += prev_jQ_Odd ; prev_jQ_input_Odd = Q1; jQ *= adjustedPrevPeriod; } ; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); I1ForEvenPrev3 = I1ForEvenPrev2; I1ForEvenPrev2 = detrender; } Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); prevQ2 = Q2; prevI2 = I2; tempReal = period; if( (Im != 0.0) && (Re != 0.0) ) period = 360.0 / ( Math.atan (Im/Re)*rad2Deg); tempReal2 = 1.5*tempReal; if( period > tempReal2) period = tempReal2; tempReal2 = 0.67*tempReal; if( period < tempReal2 ) period = tempReal2; if( period < 6 ) period = 6; else if( period > 50 ) period = 50; period = (0.2*period) + (0.8 * tempReal); smoothPeriod = (0.33*period)+(0.67*smoothPeriod); prevDCPhase = DCPhase; DCPeriod = smoothPeriod+0.5; DCPeriodInt = (int)DCPeriod; realPart = 0.0; imagPart = 0.0; idx = smoothPrice_Idx; for( i=0; i < DCPeriodInt; i++ ) { tempReal = ((double)i*constDeg2RadBy360)/(double)DCPeriodInt; tempReal2 = smoothPrice[idx]; realPart += Math.sin (tempReal)*tempReal2; imagPart += Math.cos (tempReal)*tempReal2; if( idx == 0 ) idx = 50 -1; else idx--; } tempReal = Math.abs (imagPart); if( tempReal > 0.0 ) DCPhase = Math.atan (realPart/imagPart)*rad2Deg; else if( tempReal <= 0.01 ) { if( realPart < 0.0 ) DCPhase -= 90.0; else if( realPart > 0.0 ) DCPhase += 90.0; } DCPhase += 90.0; DCPhase += 360.0 / smoothPeriod; if( imagPart < 0.0 ) DCPhase += 180.0; if( DCPhase > 315.0 ) DCPhase -= 360.0; prevSine = sine; prevLeadSine = leadSine; sine = Math.sin (DCPhase*deg2Rad); leadSine = Math.sin ((DCPhase+45)*deg2Rad); DCPeriod = smoothPeriod+0.5; DCPeriodInt = (int)DCPeriod; idx = today; tempReal = 0.0; for( i=0; i < DCPeriodInt; i++ ) tempReal += inReal[idx--]; if( DCPeriodInt > 0 ) tempReal = tempReal/(double)DCPeriodInt; trendline = (4.0*tempReal + 3.0*iTrend1 + 2.0*iTrend2 + iTrend3) / 10.0; iTrend3 = iTrend2; iTrend2 = iTrend1; iTrend1 = tempReal; trend = 1; if( ((sine > leadSine) && (prevSine <= prevLeadSine)) || ((sine < leadSine) && (prevSine >= prevLeadSine)) ) { daysInTrend = 0; trend = 0; } daysInTrend++; if( daysInTrend < (0.5*smoothPeriod) ) trend = 0; tempReal = DCPhase - prevDCPhase; if( (smoothPeriod != 0.0) && ((tempReal > (0.67*360.0/smoothPeriod)) && (tempReal < (1.5*360.0/smoothPeriod))) ) { trend = 0; } tempReal = smoothPrice[smoothPrice_Idx]; if( (trendline != 0.0) && ( Math.abs ( (tempReal - trendline)/trendline ) >= 0.015) ) trend = 1; if( today >= startIdx ) { outInteger[outIdx++] = trend; } { smoothPrice_Idx ++; if( smoothPrice_Idx > maxIdx_smoothPrice ) smoothPrice_Idx = 0; } ; today++; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;} | 51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/1a230e9b7099cbd2b7e9eb1294130ca009bfedf4/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
5062,
67,
56,
862,
2908,
7038,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
6955,
63,
6487,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
474,
659,
4522,
63,
5717,
95,
474,
659,
4223,
16,
77,
31,
474,
7330,
823,
5269,
16,
30064,
31,
2896,
440,
278,
30752,
6955,
16,
5814,
6955,
22,
31,
9056,
13362,
329,
9958,
5027,
16,
6908,
31,
474,
26453,
59,
5535,
4223,
31,
9056,
6908,
25173,
3033,
379,
16,
6908,
59,
5535,
1676,
16,
26453,
59,
5535,
620,
31,
2896,
19314,
81,
8595,
329,
620,
31,
9056,
77,
56,
20262,
21,
16,
77,
56,
20262,
22,
16,
77,
56,
20262,
23,
31,
6385,
9056,
69,
33,
20,
18,
5908,
8898,
31,
6385,
9056,
70,
33,
20,
18,
25,
6669,
29,
31,
9056,
76,
330,
25925,
7185,
6955,
31,
267,
451,
330,
25925,
4223,
31,
9056,
8526,
8238,
5902,
67,
51,
449,
33,
2704,
9056,
63,
23,
15533,
31,
9056,
8526,
8238,
5902,
67,
8321,
33,
2704,
9056,
63,
23,
15533,
31,
9056,
8238,
5902,
31,
9056,
10001,
67,
8238,
5902,
67,
51,
449,
31,
9056,
10001,
67,
8238,
5902,
67,
8321,
31,
9056,
10001,
67,
8238,
5902,
67,
2630,
67,
51,
449,
31,
9056,
10001,
67,
8238,
5902,
67,
2630,
67,
8321,
31,
9056,
8526,
53,
21,
67,
51,
449,
33,
2704,
9056,
63,
23,
15533,
31,
9056,
8526,
53,
21,
67,
8321,
33,
2704,
9056,
63,
23,
15533,
31,
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,
9833,
67,
7055,
1085,
5062,
67,
56,
862,
2908,
7038,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
6955,
63,
6487,
49,
4522,
659,
24059,
4223,
16,
49,
4522,
659,
22816,
1046,
16,
474,
659,
4522,
63,
5717,
95,
474,
659,
4223,
16,
77,
31,
474,
7330,
823,
5269,
16,
30064,
31,
2896,
440,
278,
30752,
6955,
16,
5814,
6955,
22,
31,
9056,
13362,
329,
9958,
5027,
16,
6908,
31,
474,
26453,
59,
5535,
4223,
31,
9056,
6908,
25173,
3033,
379,
16,
6908,
59,
5535,
1676,
16,
26453,
59,
5535,
620,
31,
2896,
19314,
81,
8595,
329,
620,
31,
9056,
77,
56,
20262,
21,
16,
77,
56,
20262,
22,
16,
77,
56,
20262,
23,
31,
2
] |
||
public void unloadMatchingFilters() { if (folderTableModel != null) { List allProxies = folderTableModel.getAllProxies(); for (int i = 0; i < allProxies.size(); i++) { MessageProxy mp = (MessageProxy) allProxies.get(i); mp.clearMatchedFilters(); } /* if (loaderThread != null) loaderThread.loadMessages(allProxies); */ if (mMessageLoader != null) mMessageLoader.loadMessages(allProxies); } } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/6d6ba90375f9de34e58b248daf5e8c0025c1433b/FolderInfo.java/buggy/src/net/suberic/pooka/FolderInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
27060,
9517,
5422,
1435,
288,
565,
309,
261,
5609,
1388,
1488,
480,
446,
13,
288,
1377,
987,
777,
21488,
273,
3009,
1388,
1488,
18,
588,
1595,
21488,
5621,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
777,
21488,
18,
1467,
5621,
277,
27245,
288,
3639,
2350,
3886,
6749,
273,
261,
1079,
3886,
13,
777,
21488,
18,
588,
12,
77,
1769,
3639,
6749,
18,
8507,
15400,
5422,
5621,
1377,
289,
5411,
1748,
3639,
309,
261,
6714,
3830,
480,
446,
13,
3639,
4088,
3830,
18,
945,
5058,
12,
454,
21488,
1769,
1377,
1195,
1377,
309,
261,
81,
1079,
2886,
480,
446,
13,
3639,
312,
1079,
2886,
18,
945,
5058,
12,
454,
21488,
1769,
1850,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
27060,
9517,
5422,
1435,
288,
565,
309,
261,
5609,
1388,
1488,
480,
446,
13,
288,
1377,
987,
777,
21488,
273,
3009,
1388,
1488,
18,
588,
1595,
21488,
5621,
1377,
364,
261,
474,
277,
273,
374,
31,
277,
411,
777,
21488,
18,
1467,
5621,
277,
27245,
288,
3639,
2350,
3886,
6749,
273,
261,
1079,
3886,
13,
777,
21488,
18,
588,
12,
77,
1769,
3639,
6749,
18,
8507,
15400,
5422,
5621,
1377,
289,
5411,
1748,
3639,
309,
261,
6714,
3830,
480,
446,
13,
3639,
4088,
3830,
18,
945,
5058,
12,
454,
21488,
1769,
1377,
1195,
1377,
309,
261,
81,
1079,
2886,
480,
446,
13,
3639,
312,
1079,
2886,
18,
945,
5058,
12,
454,
21488,
1769,
1850,
289,
225,
2
] |
||
buf.append('M'); buf.append(' '); buf.append(x); buf.append(' '); buf.append(y); buf.append(' '); while (y < b.getMaximumY() && x < b.getMaximumX()) { | if (segment.isSolid()) { Point p = segment.getPointAt(segment.getLength()); buf.append('L'); buf.append(' '); buf.append(SVGUtils.formatNumberAttribute(p.getX())); buf.append(' '); buf.append(SVGUtils.formatNumberAttribute(p.getY())); buf.append(' '); } else { double length = 0; while (segment.hasNext()) { | protected String getSVGPath(Bounds b, HatchLinePattern pattern, double dotlength) { StringBuffer buf = new StringBuffer(); Point base = pattern.getBasePoint(); Point offset = pattern.getOffsetPoint(); // b.debug();// System.out.println("base:" + base);// System.out.println("baseX:" + pattern.getBaseX() + " baseY:"// + pattern.getBaseY());// System.out.println("offset:" + offset);// System.out.println("offsetX:" + pattern.getOffsetX()// + " offsetY:" + pattern.getOffsetY()); double startx = 0; if (base.getX() < b.getMinimumX()) { startx = base.getX() + Math.abs(offset.getX()) * Math.floor(Math.abs((b.getMinimumX() - base.getX()) / offset.getX())); } else { startx = base.getX() - Math.abs(offset.getX()) * Math.ceil(Math.abs((b.getMinimumX() - base.getX()) / offset.getX())); } double starty = 0; if (base.getY() < b.getMinimumY()) { starty = base.getY() + Math.abs(offset.getY()) * Math.floor(Math.abs((b.getMinimumY() - base.getY()) / offset.getY())); } else { starty = base.getY() - Math.abs(offset.getY()) * Math.ceil(Math.abs((b.getMinimumY() - base.getY()) / offset.getY())); } double angle = pattern.getRotationAngle();// System.out.println("angle:" + pattern.getRotationAngle() + " fix="// + angle);// System.out.println("startx:" + startx + " starty:" + starty); angle = Math.toRadians(angle); double y = starty; double x = startx; double[] dashes = pattern.getPattern(); if (dashes.length > 0) { while (startx < b.getMaximumX() && angle < 90) { y = starty; x = startx; buf.append('M'); buf.append(' '); buf.append(x); buf.append(' '); buf.append(y); buf.append(' '); while (y < b.getMaximumY() && x < b.getMaximumX()) { for (int i = 0; i < dashes.length; i++) { x += Math.cos(angle) * Math.abs(dashes[i]); y += Math.sin(angle) * Math.abs(dashes[i]); if (dashes[i] > 0) { buf.append('L'); buf.append(' '); buf.append(x); buf.append(' '); buf.append(y); buf.append(' '); } else if (dashes[i] < 0) { buf.append('M'); buf.append(' '); buf.append(x); buf.append(' '); buf.append(y); buf.append(' '); } else { // a dot buf.append('l'); buf.append(' '); buf.append(dotlength); buf.append(' '); buf.append(dotlength); buf.append(' '); } } } startx += Math.abs(offset.getX()); } } else { // draw a solid line while(startx<b.getMaximumX()){ buf.append('M'); buf.append(' '); buf.append(startx); buf.append(' '); buf.append(starty); buf.append(' '); x =1/Math.tan(angle)*b.getHeight()+startx; buf.append('L'); buf.append(' '); buf.append(x); buf.append(' '); buf.append(b.getMaximumY()); buf.append(' '); startx += Math.abs(offset.getX()); } } //System.out.println("pattern length:" + buf.length()); return buf.toString(); } | 4096 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4096/97da13d420d72405018ba732b60712bffbfe3482/DXFHatchPattern.java/clean/src/java/org/kabeja/dxf/DXFHatchPattern.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
1322,
9266,
743,
12,
5694,
324,
16,
670,
505,
1670,
3234,
1936,
16,
5411,
1645,
3928,
2469,
13,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
4686,
1026,
273,
1936,
18,
588,
2171,
2148,
5621,
3639,
4686,
1384,
273,
1936,
18,
588,
2335,
2148,
5621,
368,
4202,
324,
18,
4148,
5621,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
1969,
2773,
397,
1026,
1769,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
1969,
60,
2773,
397,
1936,
18,
588,
2171,
60,
1435,
397,
315,
540,
1026,
61,
2773,
759,
7734,
397,
1936,
18,
588,
2171,
61,
10663,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
3348,
2773,
397,
1384,
1769,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
3348,
60,
2773,
397,
1936,
18,
588,
2335,
60,
1435,
759,
7734,
397,
315,
540,
27650,
2773,
397,
1936,
18,
588,
2335,
61,
10663,
3639,
1645,
787,
92,
273,
374,
31,
3639,
309,
261,
1969,
18,
588,
60,
1435,
411,
324,
18,
588,
13042,
60,
10756,
288,
5411,
787,
92,
273,
1026,
18,
588,
60,
1435,
10792,
397,
2361,
18,
5113,
12,
3348,
18,
588,
60,
10756,
10792,
380,
2361,
18,
74,
5807,
12,
10477,
18,
5113,
12443,
70,
18,
588,
13042,
60,
1435,
300,
1026,
18,
588,
60,
10756,
18701,
342,
1384,
18,
588,
60,
1435,
10019,
3639,
289,
469,
288,
5411,
787,
92,
273,
1026,
18,
588,
60,
1435,
10792,
300,
2361,
18,
5113,
12,
3348,
18,
588,
60,
10756,
10792,
380,
2361,
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,
514,
1322,
9266,
743,
12,
5694,
324,
16,
670,
505,
1670,
3234,
1936,
16,
5411,
1645,
3928,
2469,
13,
288,
3639,
6674,
1681,
273,
394,
6674,
5621,
3639,
4686,
1026,
273,
1936,
18,
588,
2171,
2148,
5621,
3639,
4686,
1384,
273,
1936,
18,
588,
2335,
2148,
5621,
368,
4202,
324,
18,
4148,
5621,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
1969,
2773,
397,
1026,
1769,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
1969,
60,
2773,
397,
1936,
18,
588,
2171,
60,
1435,
397,
315,
540,
1026,
61,
2773,
759,
7734,
397,
1936,
18,
588,
2171,
61,
10663,
759,
3639,
2332,
18,
659,
18,
8222,
2932,
3348,
2773,
397,
1384,
1769,
759,
3639,
2332,
18,
659,
2
] |
for(final ListItem li2 : modelItems) { if(li2 instanceof DocumentListItem) { if(!visibleDocuments.contains(((DocumentListItem) li2).getDisplayDocument())) { jListModel.removeElement(li2); | DocumentListItem dli; int touchedIndex; for(int i = 0; i < modelItems.length; i++) { li = modelItems[i]; if(li instanceof DocumentListItem) { dli = (DocumentListItem) li; if(!visibleDocuments.contains(dli.getDisplayDocument())) jListModel.removeElement(li); if(touchedDocuments.contains(dli.getDisplayDocument())) { touchedIndex = touchedDocuments.indexOf(dli.getDisplayDocument()); jListModel.remove(i); jListModel.add(i, ListItem.create(touchedDocuments.get(touchedIndex))); | private void syncDocuments() { // sync the documents with the visible documents visibleDocuments.clear(); visibleDocuments.addAll(documents); ModelFilterManager.filter(visibleDocuments, documentFilter); // sync visible documents with the swing list's model ListItem li; for(int i = 0; i < visibleDocuments.size(); i++) { li = ListItem.create(visibleDocuments.get(i)); if(!jListModel.contains(li)) { jListModel.add(i, li); } } final ListItem[] modelItems = new ListItem[jListModel.size()]; jListModel.copyInto(modelItems); for(final ListItem li2 : modelItems) { if(li2 instanceof DocumentListItem) { if(!visibleDocuments.contains(((DocumentListItem) li2).getDisplayDocument())) { jListModel.removeElement(li2); } } } if(1 > visibleDocuments.size()) { browser.disableHistory(); } else { browser.enableHistory(); } } | 53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/67234915f04d3b29a5dfc235fc76086db0fde01f/BrowserMainDocumentModel.java/buggy/client-ui/src/main/java/com/thinkparity/browser/application/browser/display/avatar/BrowserMainDocumentModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3792,
12922,
1435,
288,
3639,
368,
3792,
326,
7429,
598,
326,
6021,
7429,
3639,
6021,
12922,
18,
8507,
5621,
3639,
6021,
12922,
18,
1289,
1595,
12,
24795,
1769,
3639,
3164,
1586,
1318,
18,
2188,
12,
8613,
12922,
16,
1668,
1586,
1769,
3639,
368,
3792,
6021,
7429,
598,
326,
9028,
666,
1807,
938,
3639,
987,
1180,
4501,
31,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
6021,
12922,
18,
1467,
5621,
277,
27245,
288,
5411,
4501,
273,
987,
1180,
18,
2640,
12,
8613,
12922,
18,
588,
12,
77,
10019,
5411,
309,
12,
5,
78,
682,
1488,
18,
12298,
12,
549,
3719,
288,
7734,
525,
682,
1488,
18,
1289,
12,
77,
16,
4501,
1769,
5411,
289,
3639,
289,
3639,
727,
987,
1180,
8526,
938,
3126,
273,
394,
987,
1180,
63,
78,
682,
1488,
18,
1467,
1435,
15533,
3639,
525,
682,
1488,
18,
3530,
5952,
12,
2284,
3126,
1769,
3639,
364,
12,
6385,
987,
1180,
4501,
22,
294,
938,
3126,
13,
288,
5411,
309,
12,
549,
22,
1276,
4319,
13575,
13,
288,
7734,
309,
12,
5,
8613,
12922,
18,
12298,
12443,
12,
2519,
13575,
13,
4501,
22,
2934,
588,
4236,
2519,
1435,
3719,
288,
10792,
525,
682,
1488,
18,
4479,
1046,
12,
549,
22,
1769,
7734,
289,
5411,
289,
3639,
289,
3639,
309,
12,
21,
405,
6021,
12922,
18,
1467,
10756,
288,
5411,
4748,
18,
8394,
5623,
5621,
3639,
289,
3639,
469,
288,
4748,
18,
7589,
5623,
5621,
289,
565,
289,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3792,
12922,
1435,
288,
3639,
368,
3792,
326,
7429,
598,
326,
6021,
7429,
3639,
6021,
12922,
18,
8507,
5621,
3639,
6021,
12922,
18,
1289,
1595,
12,
24795,
1769,
3639,
3164,
1586,
1318,
18,
2188,
12,
8613,
12922,
16,
1668,
1586,
1769,
3639,
368,
3792,
6021,
7429,
598,
326,
9028,
666,
1807,
938,
3639,
987,
1180,
4501,
31,
3639,
364,
12,
474,
277,
273,
374,
31,
277,
411,
6021,
12922,
18,
1467,
5621,
277,
27245,
288,
5411,
4501,
273,
987,
1180,
18,
2640,
12,
8613,
12922,
18,
588,
12,
77,
10019,
5411,
309,
12,
5,
78,
682,
1488,
18,
12298,
12,
549,
3719,
288,
7734,
525,
682,
1488,
18,
1289,
12,
77,
16,
4501,
1769,
5411,
289,
2
] |
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/QuoteRequestReject.java/clean/src/java/src/quickfix/fix44/QuoteRequestReject.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 static Integer valueOf(int val) | public static Integer valueOf(String s, int radix) | public static Integer valueOf(int val) { if (val < MIN_CACHE || val > MAX_CACHE) return new Integer(val); synchronized (intCache) { if (intCache[val - MIN_CACHE] == null) intCache[val - MIN_CACHE] = new Integer(val); return intCache[val - MIN_CACHE]; } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/217dae2077114aeb271c90f647f5baacd1bf28b4/Integer.java/buggy/core/src/classpath/5.0/java/lang/Integer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
2144,
4323,
12,
780,
272,
16,
509,
19015,
13,
225,
288,
565,
309,
261,
1125,
411,
6989,
67,
8495,
747,
1244,
405,
4552,
67,
8495,
13,
1377,
327,
394,
2144,
12,
1125,
1769,
565,
3852,
261,
474,
1649,
13,
1377,
288,
202,
430,
261,
474,
1649,
63,
1125,
300,
6989,
67,
8495,
65,
422,
446,
13,
202,
225,
509,
1649,
63,
1125,
300,
6989,
67,
8495,
65,
273,
394,
2144,
12,
1125,
1769,
202,
2463,
509,
1649,
63,
1125,
300,
6989,
67,
8495,
15533,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
760,
2144,
4323,
12,
780,
272,
16,
509,
19015,
13,
225,
288,
565,
309,
261,
1125,
411,
6989,
67,
8495,
747,
1244,
405,
4552,
67,
8495,
13,
1377,
327,
394,
2144,
12,
1125,
1769,
565,
3852,
261,
474,
1649,
13,
1377,
288,
202,
430,
261,
474,
1649,
63,
1125,
300,
6989,
67,
8495,
65,
422,
446,
13,
202,
225,
509,
1649,
63,
1125,
300,
6989,
67,
8495,
65,
273,
394,
2144,
12,
1125,
1769,
202,
2463,
509,
1649,
63,
1125,
300,
6989,
67,
8495,
15533,
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
] |
public static RubyClass newClass(IRuby runtime, RubyClass superClass, RubyModule parentClass, String name) { return new RubyClass(runtime, runtime.getClass("Class"), superClass, parentClass, name); | public static RubyClass newClass(IRuby runtime, RubyClass superClass, SinglyLinkedList parentCRef, String name) { return new RubyClass(runtime, runtime.getClass("Class"), superClass, parentCRef, name); | public static RubyClass newClass(IRuby runtime, RubyClass superClass, RubyModule parentClass, String name) { return new RubyClass(runtime, runtime.getClass("Class"), superClass, parentClass, name); } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyClass.java/clean/src/org/jruby/RubyClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
394,
797,
12,
7937,
10340,
3099,
16,
19817,
797,
18846,
16,
19817,
3120,
21366,
16,
514,
508,
13,
288,
3639,
327,
394,
19817,
797,
12,
9448,
16,
3099,
18,
588,
797,
2932,
797,
6,
3631,
18846,
16,
21366,
16,
508,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
394,
797,
12,
7937,
10340,
3099,
16,
19817,
797,
18846,
16,
19817,
3120,
21366,
16,
514,
508,
13,
288,
3639,
327,
394,
19817,
797,
12,
9448,
16,
3099,
18,
588,
797,
2932,
797,
6,
3631,
18846,
16,
21366,
16,
508,
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
] |
Token xsp; xsp = jj_scanpos; if (jj_3R_298()) { jj_scanpos = xsp; if (jj_3R_299()) return true; } if (jj_3R_276()) return true; | if (jj_scan_token(COMMA)) return true; if (jj_3R_260()) return true; | final private boolean jj_3R_295() { Token xsp; xsp = jj_scanpos; if (jj_3R_298()) { jj_scanpos = xsp; if (jj_3R_299()) return true; } if (jj_3R_276()) return true; return false; } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/606e83b0f5c7b0b4f0d05f9c5bcc8d92c81d9342/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
29286,
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,
5540,
28,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
22,
2733,
10756,
327,
638,
31,
565,
289,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
26,
10756,
327,
638,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
54,
67,
29286,
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,
5540,
28,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
22,
2733,
10756,
327,
638,
31,
565,
289,
565,
309,
261,
78,
78,
67,
23,
54,
67,
5324,
26,
10756,
327,
638,
31,
565,
327,
629,
31,
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
] |
vcs.createFile(p("file"), "content"); | vcs.createFile(p("/file"), "content"); | public void testChangingFileContent() { vcs.createFile(p("file"), "content"); vcs.apply(); assertEquals("content", vcs.getEntry(p("file")).getContent()); vcs.changeFileContent(p("file"), "new content"); vcs.apply(); assertEquals("new content", vcs.getEntry(p("file")).getContent()); vcs._revert(); assertEquals("content", vcs.getEntry(p("file")).getContent()); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/8a6fdbc15b3cd4aaa232cf2026aa4a60418c162a/LocalVcsBasicsTest.java/clean/LocalVcs/test/com/intellij/localvcs/LocalVcsBasicsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
782,
18183,
25391,
1435,
288,
565,
20255,
18,
2640,
812,
12,
84,
2932,
19,
768,
6,
3631,
315,
1745,
8863,
565,
20255,
18,
9010,
5621,
565,
1815,
8867,
2932,
1745,
3113,
20255,
18,
588,
1622,
12,
84,
2932,
768,
7923,
2934,
588,
1350,
10663,
565,
20255,
18,
3427,
25391,
12,
84,
2932,
768,
6,
3631,
315,
2704,
913,
8863,
565,
20255,
18,
9010,
5621,
565,
1815,
8867,
2932,
2704,
913,
3113,
20255,
18,
588,
1622,
12,
84,
2932,
768,
7923,
2934,
588,
1350,
10663,
565,
20255,
6315,
266,
1097,
5621,
565,
1815,
8867,
2932,
1745,
3113,
20255,
18,
588,
1622,
12,
84,
2932,
768,
7923,
2934,
588,
1350,
10663,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
782,
18183,
25391,
1435,
288,
565,
20255,
18,
2640,
812,
12,
84,
2932,
19,
768,
6,
3631,
315,
1745,
8863,
565,
20255,
18,
9010,
5621,
565,
1815,
8867,
2932,
1745,
3113,
20255,
18,
588,
1622,
12,
84,
2932,
768,
7923,
2934,
588,
1350,
10663,
565,
20255,
18,
3427,
25391,
12,
84,
2932,
768,
6,
3631,
315,
2704,
913,
8863,
565,
20255,
18,
9010,
5621,
565,
1815,
8867,
2932,
2704,
913,
3113,
20255,
18,
588,
1622,
12,
84,
2932,
768,
7923,
2934,
588,
1350,
10663,
565,
20255,
6315,
266,
1097,
5621,
565,
1815,
8867,
2932,
1745,
3113,
20255,
18,
588,
1622,
12,
84,
2932,
768,
7923,
2934,
588,
1350,
10663,
225,
289,
2,
-100,
-100,
-100,
-100
] |
ResourceValueAnalysis<Resource> analysis = new ResourceValueAnalysis<Resource>(methodGen, cfg, dfs, resourceTracker, resource); Dataflow<ResourceValueFrame, ResourceValueAnalysis<Resource>> dataflow = new Dataflow<ResourceValueFrame, ResourceValueAnalysis<Resource>>(cfg, analysis); dataflow.execute(); | ResourceValueAnalysis<Resource> analysis = new ResourceValueAnalysis<Resource>(methodGen, cfg, dfs, resourceTracker, resource); Dataflow<ResourceValueFrame, ResourceValueAnalysis<Resource>> dataflow = new Dataflow<ResourceValueFrame, ResourceValueAnalysis<Resource>>(cfg, analysis); dataflow.execute(); | public Dataflow<ResourceValueFrame, ResourceValueAnalysis<Resource>> createDataflow(ClassContext classContext, Method method) throws CFGBuilderException, DataflowAnalysisException { MethodGen methodGen = classContext.getMethodGen(method); CFG cfg = classContext.getCFG(method); DepthFirstSearch dfs = classContext.getDepthFirstSearch(method); ResourceValueAnalysis<Resource> analysis = new ResourceValueAnalysis<Resource>(methodGen, cfg, dfs, resourceTracker, resource); Dataflow<ResourceValueFrame, ResourceValueAnalysis<Resource>> dataflow = new Dataflow<ResourceValueFrame, ResourceValueAnalysis<Resource>>(cfg, analysis); dataflow.execute(); return dataflow; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/4748a5a9b76f3dd763ee6bc7755c932a711bd6a6/ResourceValueAnalysisTestDriver.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/ResourceValueAnalysisTestDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
1910,
2426,
32,
1420,
620,
3219,
16,
2591,
620,
9418,
32,
1420,
9778,
752,
751,
2426,
12,
797,
1042,
667,
1042,
16,
2985,
707,
13,
6862,
202,
15069,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
6862,
202,
1305,
7642,
707,
7642,
273,
667,
1042,
18,
588,
1305,
7642,
12,
2039,
1769,
6862,
202,
19727,
2776,
273,
667,
1042,
18,
588,
19727,
12,
2039,
1769,
6862,
202,
6148,
3759,
2979,
13868,
273,
667,
1042,
18,
588,
6148,
3759,
2979,
12,
2039,
1769,
6862,
202,
1420,
620,
9418,
32,
1420,
34,
6285,
273,
25083,
202,
2704,
2591,
620,
9418,
32,
1420,
34,
12,
2039,
7642,
16,
2776,
16,
13868,
16,
1058,
8135,
16,
1058,
1769,
6862,
202,
751,
2426,
32,
1420,
620,
3219,
16,
2591,
620,
9418,
32,
1420,
9778,
501,
2426,
273,
25083,
202,
2704,
1910,
2426,
32,
1420,
620,
3219,
16,
2591,
620,
9418,
32,
1420,
9778,
12,
7066,
16,
6285,
1769,
6862,
202,
892,
2426,
18,
8837,
5621,
6862,
202,
2463,
501,
2426,
31,
9506,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
1910,
2426,
32,
1420,
620,
3219,
16,
2591,
620,
9418,
32,
1420,
9778,
752,
751,
2426,
12,
797,
1042,
667,
1042,
16,
2985,
707,
13,
6862,
202,
15069,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
6862,
202,
1305,
7642,
707,
7642,
273,
667,
1042,
18,
588,
1305,
7642,
12,
2039,
1769,
6862,
202,
19727,
2776,
273,
667,
1042,
18,
588,
19727,
12,
2039,
1769,
6862,
202,
6148,
3759,
2979,
13868,
273,
667,
1042,
18,
588,
6148,
3759,
2979,
12,
2039,
1769,
6862,
202,
1420,
620,
9418,
32,
1420,
34,
6285,
273,
25083,
202,
2704,
2591,
620,
9418,
32,
1420,
34,
12,
2039,
7642,
16,
2776,
16,
13868,
16,
1058,
8135,
16,
1058,
1769,
6862,
2
] |
ruby_class.addMethod((RubyId)node.nd_mid(), defn, noex); | ruby.getRubyClass().addMethod((RubyId)node.nd_mid(), defn, noex); | 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 rom.rb_reg_match2(node.nd_head().nd_lit()); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH2: //return rom.rb_reg_match(eval(node.nd_recv()), eval(node.nd_value())); return getRuby().getNil(); /* nodes for speed-up(literal match) */ case NODE_MATCH3: //VALUE r = eval(node.nd_recv()); //VALUE l = eval(node.nd_value()); //if (r instanceof RubyString) { // return rom.rb_reg_match(l, r); //} else { // return rom.rb_funcall(r, match, 1, l); //} 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_class == null) { throw new RubyTypeException("no class/module to define constant"); } result = eval(self, node.nd_value()); ruby_class.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 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_class == 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_class.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_class == getRuby().getClasses().getObjectClass()) { noex = node.nd_noex(); } else { noex = NOEX_PUBLIC; } if (body != null && origin == ruby_class && (body.nd_noex() & NOEX_UNDEF) != 0) { noex |= NOEX_UNDEF; } NODE defn = node.nd_defn().copyNodeScope(ruby_cref); ruby_class.addMethod((RubyId)node.nd_mid(), defn, noex); // rb_clear_cache_by_id(node.nd_mid()); if (actMethodScope == SCOPE_MODFUNC) { ruby_class.getSingletonClass().addMethod((RubyId)node.nd_mid(), defn, NOEX_PUBLIC); ruby_class.funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } if (ruby_class.isSingleton()) { ruby_class.getInstanceVar("__attached__").funcall(getRuby().intern("singleton_method_added"), ((RubyId)node.nd_mid()).toSymbol()); } else { ruby_class.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_class == null) { throw new RubyTypeException("no class to undef method"); } ruby_class.undef((RubyId)node.nd_mid()); return getRuby().getNil(); case NODE_ALIAS: if (ruby_class == null) { throw new RubyTypeException("no class to make alias"); } ruby_class.aliasMethod((RubyId)node.nd_new(), (RubyId)node.nd_old()); ruby_class.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_class == 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_class.isConstantDefined((RubyId)node.nd_cname())) { rubyClass = (RubyClass)ruby_class.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_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((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_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((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_class == null) { throw new RubyTypeException("no outer class/module"); } RubyModule module = null; if ((ruby_class == getRuby().getClasses().getObjectClass()) && getRuby().isAutoloadDefined((RubyId)node.nd_cname())) { // getRuby().rb_autoload_load(node.nd_cname()); } if (ruby_class.isConstantDefined((RubyId)node.nd_cname())) { module = (RubyModule)ruby_class.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_class.setConstant((RubyId)node.nd_cname(), module); module.setClassPath(ruby_class, ((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)); } } } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyInterpreter.java/clean/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
] |
getLogger( where ).log( level, msg ); } | public static void log( String where, Level level, String msg ) { if ( initPending ) { init(); } getLogger( where ).log( level, msg ); } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/5447a62138e728955d18cb200a72cbc04251c51f/XRLog.java/clean/src/java/org/xhtmlrenderer/util/XRLog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
613,
12,
514,
1625,
16,
4557,
1801,
16,
514,
1234,
262,
288,
565,
309,
261,
1208,
8579,
262,
288,
1377,
1208,
5621,
565,
289,
565,
7156,
12,
1625,
262,
18,
1330,
12,
1801,
16,
1234,
11272,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
760,
918,
613,
12,
514,
1625,
16,
4557,
1801,
16,
514,
1234,
262,
288,
565,
309,
261,
1208,
8579,
262,
288,
1377,
1208,
5621,
565,
289,
565,
7156,
12,
1625,
262,
18,
1330,
12,
1801,
16,
1234,
11272,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
RubyObject value = (RubyObject) getInstanceVariables().remove(id); | RubyObject value = (RubyObject) getInstanceVariables().remove(id); | public RubyObject removeCvar(RubyObject name) { // Wrong Parameter ? RubyId id = getRuby().toId(name); if (!id.isClassId()) { throw new RubyNameException(getRuby(), "wrong class variable name " + name); } if (!isTaint() && getRuby().getSecurityLevel() >= 4) { throw new RubySecurityException( getRuby(), "Insecure: can't remove class variable"); } if (isFrozen()) { throw new RubyFrozenException(getRuby(), "class/module"); } RubyObject value = (RubyObject) getInstanceVariables().remove(id); if (value != null) { return value; } if (isClassVarDefined(id)) { throw new RubyNameException( getRuby(), "cannot remove " + id.toName() + " for " + toName()); } throw new RubyNameException( getRuby(), "class variable " + id.toName() + " not defined for " + toName()); } | 45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
1206,
39,
1401,
12,
54,
10340,
921,
508,
13,
288,
368,
24668,
5498,
692,
202,
202,
54,
10340,
548,
612,
273,
4170,
10340,
7675,
869,
548,
12,
529,
1769,
202,
202,
430,
16051,
350,
18,
291,
797,
548,
10756,
288,
1082,
202,
12849,
394,
19817,
26771,
12,
588,
54,
10340,
9334,
315,
21530,
667,
2190,
508,
315,
397,
508,
1769,
202,
202,
97,
202,
202,
430,
16051,
291,
29048,
1435,
597,
4170,
10340,
7675,
588,
4368,
2355,
1435,
1545,
1059,
13,
288,
1082,
202,
12849,
394,
19817,
24918,
12,
9506,
202,
588,
54,
10340,
9334,
9506,
202,
6,
382,
8869,
30,
848,
1404,
1206,
667,
2190,
8863,
202,
202,
97,
202,
202,
430,
261,
291,
42,
9808,
10756,
288,
1082,
202,
12849,
394,
19817,
42,
9808,
503,
12,
588,
54,
10340,
9334,
315,
1106,
19,
2978,
8863,
202,
202,
97,
202,
202,
54,
10340,
921,
460,
273,
261,
54,
10340,
921,
13,
3694,
6158,
7675,
4479,
12,
350,
1769,
202,
202,
430,
261,
1132,
480,
446,
13,
288,
1082,
202,
2463,
460,
31,
202,
202,
97,
202,
202,
430,
261,
291,
797,
1537,
8116,
12,
350,
3719,
288,
1082,
202,
12849,
394,
19817,
26771,
12,
9506,
202,
588,
54,
10340,
9334,
9506,
202,
6,
12892,
1206,
315,
397,
612,
18,
869,
461,
1435,
397,
315,
364,
315,
397,
358,
461,
10663,
202,
202,
97,
202,
202,
12849,
394,
19817,
26771,
12,
1082,
202,
588,
54,
10340,
9334,
1082,
202,
6,
1106,
2190,
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,
1206,
39,
1401,
12,
54,
10340,
921,
508,
13,
288,
368,
24668,
5498,
692,
202,
202,
54,
10340,
548,
612,
273,
4170,
10340,
7675,
869,
548,
12,
529,
1769,
202,
202,
430,
16051,
350,
18,
291,
797,
548,
10756,
288,
1082,
202,
12849,
394,
19817,
26771,
12,
588,
54,
10340,
9334,
315,
21530,
667,
2190,
508,
315,
397,
508,
1769,
202,
202,
97,
202,
202,
430,
16051,
291,
29048,
1435,
597,
4170,
10340,
7675,
588,
4368,
2355,
1435,
1545,
1059,
13,
288,
1082,
202,
12849,
394,
19817,
24918,
12,
9506,
202,
588,
54,
10340,
9334,
9506,
202,
6,
382,
8869,
30,
848,
1404,
1206,
667,
2190,
8863,
202,
202,
97,
202,
202,
430,
261,
2
] |
butChangeStart = new Button("Change Start..."); | butChangeStart = new Button(Messages.getString("ChatLounge.butChangeStart")); | private void setupStarts() { labStarts = new Label("Starting Positions", Label.CENTER); lisStarts = new List(5); lisStarts.addActionListener(this); butChangeStart = new Button("Change Start..."); butChangeStart.addActionListener(this); panStarts = new Panel(); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); panStarts.setLayout(gridbag); c.fill = GridBagConstraints.BOTH; c.insets = new Insets(1, 1, 1, 1); c.weightx = 1.0; c.weighty = 0.0; c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(labStarts, c); panStarts.add(labStarts); c.weightx = 1.0; c.weighty = 1.0; gridbag.setConstraints(lisStarts, c); panStarts.add(lisStarts); c.weightx = 1.0; c.weighty = 0.0; gridbag.setConstraints(butChangeStart, c); panStarts.add(butChangeStart); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/18ec0036f3c5df3d8fbef60e9dd53cc153fc889e/ChatLounge.java/clean/megamek/src/megamek/client/ui/AWT/ChatLounge.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3875,
11203,
1435,
288,
3639,
11814,
11203,
273,
394,
5287,
2932,
11715,
6818,
5029,
3113,
5287,
18,
19835,
1769,
3639,
328,
291,
11203,
273,
394,
987,
12,
25,
1769,
3639,
328,
291,
11203,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
1496,
3043,
1685,
273,
394,
12569,
12,
5058,
18,
588,
780,
2932,
14163,
48,
465,
908,
18,
12885,
3043,
1685,
7923,
1769,
3639,
1496,
3043,
1685,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
2800,
11203,
273,
394,
23641,
5621,
3639,
7145,
5013,
3744,
3068,
22551,
273,
394,
7145,
5013,
3744,
5621,
3639,
13075,
276,
273,
394,
13075,
5621,
3639,
2800,
11203,
18,
542,
3744,
12,
5222,
22551,
1769,
3639,
276,
18,
5935,
273,
13075,
18,
38,
18307,
31,
3639,
276,
18,
267,
4424,
273,
394,
22300,
12,
21,
16,
404,
16,
404,
16,
404,
1769,
3639,
276,
18,
4865,
92,
273,
404,
18,
20,
31,
3639,
276,
18,
4865,
93,
273,
374,
18,
20,
31,
3639,
276,
18,
5222,
2819,
273,
13075,
18,
862,
5535,
14822,
31,
3639,
3068,
22551,
18,
542,
4878,
12,
7411,
11203,
16,
276,
1769,
3639,
2800,
11203,
18,
1289,
12,
7411,
11203,
1769,
3639,
276,
18,
4865,
92,
273,
404,
18,
20,
31,
3639,
276,
18,
4865,
93,
273,
404,
18,
20,
31,
3639,
3068,
22551,
18,
542,
4878,
12,
80,
291,
11203,
16,
276,
1769,
3639,
2800,
11203,
18,
1289,
12,
80,
291,
11203,
1769,
3639,
276,
18,
4865,
92,
273,
404,
18,
20,
31,
3639,
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,
3875,
11203,
1435,
288,
3639,
11814,
11203,
273,
394,
5287,
2932,
11715,
6818,
5029,
3113,
5287,
18,
19835,
1769,
3639,
328,
291,
11203,
273,
394,
987,
12,
25,
1769,
3639,
328,
291,
11203,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
1496,
3043,
1685,
273,
394,
12569,
12,
5058,
18,
588,
780,
2932,
14163,
48,
465,
908,
18,
12885,
3043,
1685,
7923,
1769,
3639,
1496,
3043,
1685,
18,
1289,
1803,
2223,
12,
2211,
1769,
3639,
2800,
11203,
273,
394,
23641,
5621,
3639,
7145,
5013,
3744,
3068,
22551,
273,
394,
7145,
5013,
3744,
5621,
3639,
13075,
276,
273,
394,
13075,
5621,
3639,
2800,
11203,
18,
542,
3744,
12,
5222,
22551,
1769,
3639,
276,
18,
5935,
273,
13075,
2
] |
Main.protocol.sendShowDocumentCmd( contextID, url.toString() ); | Main.protocol.sendShowDocumentCmd( myID, url.toString() ); | public void showDocument( URL url ) { if( url != null ) Main.protocol.sendShowDocumentCmd( contextID, url.toString() ); } | 1818 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1818/e5817d0232fa324d737a75370dab7be2b3032047/KJASAppletContext.java/clean/khtml/java/org/kde/kjas/server/KJASAppletContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2405,
2519,
12,
1976,
880,
262,
565,
288,
3639,
309,
12,
880,
480,
446,
262,
5411,
12740,
18,
8373,
18,
4661,
5706,
2519,
5931,
12,
3399,
734,
16,
880,
18,
10492,
1435,
225,
11272,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2405,
2519,
12,
1976,
880,
262,
565,
288,
3639,
309,
12,
880,
480,
446,
262,
5411,
12740,
18,
8373,
18,
4661,
5706,
2519,
5931,
12,
3399,
734,
16,
880,
18,
10492,
1435,
225,
11272,
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
] |
messageln( "found " + result.getSize() + " hits in " + (System.currentTimeMillis() - start) + "ms."); nextInSet= 1; | messageln("found " + result.getSize() + " hits in " + (System.currentTimeMillis() - start) + "ms."); nextInSet = 1; | protected boolean process(String line) { if (startGUI) frame.setPath(path); String args[]; if (line.startsWith("find")) { args= new String[2]; args[0]= "find"; args[1]= line.substring(5); } else { StreamTokenizer tok = new StreamTokenizer(new StringReader(line)); tok.resetSyntax(); tok.wordChars(0x21, 0x7FFF); tok.quoteChar('"'); tok.whitespaceChars(0x20, 0x20); List argList = new ArrayList(3); int i= 0; int token; try { while ((token = tok.nextToken()) != StreamTokenizer.TT_EOF ) { if(token == StreamTokenizer.TT_WORD || token == '"') { argList.add(tok.sval); } } } catch (IOException e) { System.err.println("Could not parse command line."); return true; } args = new String[argList.size()]; argList.toArray(args); } String newPath= path; try { if (args[0].equalsIgnoreCase("ls")) { // list collection contents if (properties.getProperty("permissions").equals("true")) { for (int i= 0; i < resources.length; i++) messageln(resources[i]); } else { StringBuffer buf; for (int i= 0; i < resources.length; i++) { buf= new StringBuffer(); int k= 0; for (int j= 0; i < resources.length && j < 5; i++, j++) { buf.append(resources[i] + '\t'); k= j; } if (k == 4 && i < resources.length) i--; messageln(buf.toString()); } } } else if (args[0].equalsIgnoreCase("cd")) { // change current collection completitions.clear(); String tempPath= newPath; Collection temp; if (args.length < 2 || args[1] == null) { tempPath= "/db"; temp = DatabaseManager.getCollection( properties.getProperty("uri") + "/db", properties.getProperty("user"), properties.getProperty("password")); } else { if (args[1].equals("..")) { tempPath= newPath.equals("/db") ? "/db" : tempPath.substring(0, newPath.lastIndexOf("/")); if (tempPath.length() == 0) tempPath= "/db"; } else if (args[1].startsWith("/")) tempPath= args[1]; else tempPath= tempPath + '/' + args[1]; temp= DatabaseManager.getCollection( properties.getProperty("uri") + tempPath, properties.getProperty("user"), properties.getProperty("password")); } if (temp != null) { current= temp; newPath= tempPath; if (startGUI) frame.setPath(newPath); } else { messageln("no such collection."); } getResources(); } else if (args[0].equalsIgnoreCase("get")) { if (args.length < 2) { System.err.println("wrong number of arguments."); return true; } Resource res= retrieve(args[1]); // display document if (res != null) { String data; if (res.getResourceType().equals("XMLResource")) data= (String) res.getContent(); else data= new String((byte[]) res.getContent()); if (startGUI) { frame.setEditable(false); frame.display(data); frame.setEditable(true); } else { String content= data; more(content); } } return true; } else if (args[0].equalsIgnoreCase("find")) { // search if (args.length < 2) { messageln("no query argument found."); return true; } messageln(args[1]); long start= System.currentTimeMillis(); result= find(args[1]); if (result == null) messageln("nothing found"); else messageln( "found " + result.getSize() + " hits in " + (System.currentTimeMillis() - start) + "ms."); nextInSet= 1; } else if (args[0].equalsIgnoreCase("show")) { // show search results if (result == null) { messageln("no result set."); return true; } try { int start= nextInSet; int count= 1; if (args.length > 1) start= Integer.parseInt(args[1]); if (args.length > 2) count= Integer.parseInt(args[2]); final int s= (int) result.getSize(); if (start < 1 || start > s) { messageln("start offset out of range"); return true; } --start; if (start + count > s) count= s - start; nextInSet= start + count + 1; for (int i= start; i < start + count; i++) { Resource r= result.getResource((long) i); if (startGUI) frame.display((String) r.getContent()); else more((String) r.getContent()); } messageln( "displayed items " + (start + 1) + " to " + (start + count) + " of " + result.getSize()); } catch (NumberFormatException nfe) { messageln("wrong argument"); return true; } } else if (args[0].equalsIgnoreCase("mkcol")) { // create collection if (args.length < 2) { messageln("missing argument."); return true; } CollectionManagementService mgtService= (CollectionManagementService) current.getService( "CollectionManagementService", "1.0"); Collection newCollection= mgtService.createCollection(args[1]); if (newCollection == null) messageln("could not create collection."); else messageln("created collection."); // re-read current collection current= DatabaseManager.getCollection( properties.getProperty("uri") + path, properties.getProperty("user"), properties.getProperty("password")); getResources(); } else if (args[0].equalsIgnoreCase("put")) { // put a document or directory into the database if (args.length < 2) { messageln("missing argument."); return true; } boolean r= parse(args[1]); getResources(); return r; } else if (args[0].equalsIgnoreCase("blob")) { // put a document or directory into the database if (args.length < 2) { messageln("missing argument."); return true; } storeBinary(args[1]); getResources(); } else if (args[0].equalsIgnoreCase("rm")) { // remove document if (args.length < 2) { messageln("missing argument."); return true; } remove(args[1]); // re-read current collection current= DatabaseManager.getCollection( properties.getProperty("uri") + path, properties.getProperty("user"), properties.getProperty("password")); getResources(); } else if (args[0].equalsIgnoreCase("rmcol")) { // remove collection if (args.length < 2) { messageln("wrong argument count."); return true; } rmcol(args[1]); // re-read current collection current= DatabaseManager.getCollection( properties.getProperty("uri") + path, properties.getProperty("user"), properties.getProperty("password")); getResources(); } else if (args[0].equalsIgnoreCase("adduser")) { if (args.length < 2) { System.err.println("Usage: adduser name"); return true; } if (startGUI) { messageln("command not supported in GUI mode. Please use the \"Edit users\" menu option."); return true; } try { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); String p1; String p2; while (true) { p1= Readline.readline("password: "); p2= Readline.readline("re-enter password: "); if (p1.equals(p2)) break; else System.out.println( "\nentered passwords differ. Try again..."); } String home= Readline.readline("home collection [none]: "); User user= new User(args[1], p1); if (home != null && home.length() > 0) user.setHome(home); String groups= Readline.readline("enter groups: "); StringTokenizer tok= new StringTokenizer(groups, " ,"); String group; while (tok.hasMoreTokens()) { group= tok.nextToken(); if (group.length() > 0) user.addGroup(group); } mgtService.addUser(user); System.out.println("user " + user + " created."); } catch (Exception e) { System.out.println("ERROR: " + e.getMessage()); e.printStackTrace(); } } else if (args[0].equalsIgnoreCase("users")) { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); User users[]= mgtService.getUsers(); System.out.println("User\t\tGroups"); System.out.println("-----------------------------------------"); for (int i= 0; i < users.length; i++) { System.out.print(users[i].getName() + "\t\t"); for (Iterator j= users[i].getGroups(); j.hasNext();) { System.out.print(j.next()); if (j.hasNext()) System.out.print(", "); } System.out.println(); } } else if (args[0].equalsIgnoreCase("passwd")) { if (startGUI) { messageln("command not supported in GUI mode. Please use the \"Edit users\" menu option."); return true; } if (args.length < 2) { System.out.println("Usage: passwd username"); return true; } try { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); User user= mgtService.getUser(args[1]); if (user == null) { System.out.println("no such user."); return true; } String p1; String p2; while (true) { p1= Readline.readline("password: "); p2= Readline.readline("re-enter password: "); if (p1.equals(p2)) break; else System.out.println( "\nentered passwords differ. Try again..."); } user.setPassword(p1); mgtService.updateUser(user); properties.setProperty("password", p1); } catch (Exception e) { System.err.println("ERROR: " + e.getMessage()); } } else if (args[0].equalsIgnoreCase("chmod")) { if (args.length < 2) { System.out.println("Usage: chmod [resource] mode"); return true; } Collection temp= null; if (args.length == 3) { System.out.println("trying collection: " + args[1]); temp= current.getChildCollection(args[1]); if (temp == null) { System.out.println("\ntrying resource: " + args[1]); Resource r= current.getResource(args[1]); if (r != null) { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); mgtService.chmod(r, args[2]); } else System.err.println( "Resource " + args[1] + " not found."); } else { UserManagementService mgtService= (UserManagementService) temp.getService( "UserManagementService", "1.0"); mgtService.chmod(args[2]); } } else { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); mgtService.chmod(args[1]); } // re-read current collection current= DatabaseManager.getCollection( properties.getProperty("uri") + path, properties.getProperty("user"), properties.getProperty("password")); getResources(); } else if (args[0].equalsIgnoreCase("chown")) { if (args.length < 3) { System.out.println( "Usage: chown username group [resource]"); return true; } Collection temp; if (args.length == 4) temp= current.getChildCollection(args[3]); else temp= current; if (temp != null) { UserManagementService mgtService= (UserManagementService) temp.getService( "UserManagementService", "1.0"); User u= mgtService.getUser(args[1]); if (u == null) { System.out.println("unknown user"); return true; } mgtService.chown(u, args[2]); System.out.println("owner changed."); getResources(); return true; } Resource res= current.getResource(args[3]); if (res != null) { UserManagementService mgtService= (UserManagementService) current.getService( "UserManagementService", "1.0"); User u= mgtService.getUser(args[1]); if (u == null) { System.out.println("unknown user"); return true; } mgtService.chown(res, u, args[2]); getResources(); return true; } System.err.println("Resource " + args[3] + " not found."); } else if (args[0].equalsIgnoreCase("elements")) { System.out.println( "Element occurrences in collection " + current.getName()); System.out.println( "--------------------------------------------" + "-----------"); IndexQueryService service= (IndexQueryService) current.getService( "IndexQueryService", "1.0"); Occurrences[] elements= service.getIndexedElements(true); for (int i= 0; i < elements.length; i++) { System.out.println( formatString( elements[i].getTerm(), Integer.toString(elements[i].getOccurrences()), 50)); } return true; } else if (args[0].equalsIgnoreCase("terms")) { if (args.length < 3) { System.out.println( "Usage: terms sequence-start sequence-end"); return true; } IndexQueryService service= (IndexQueryService) current.getService( "IndexQueryService", "1.0"); Occurrences[] terms= service.scanIndexTerms(args[1], args[2], true); System.out.println( "Element occurrences in collection " + current.getName()); System.out.println( "--------------------------------------------" + "-----------"); for (int i= 0; i < terms.length; i++) { System.out.println( formatString( terms[i].getTerm(), Integer.toString(terms[i].getOccurrences()), 50)); } } else if (args[0].equalsIgnoreCase("xupdate")) { if (startGUI) { messageln("command not supported in GUI mode."); return true; } String lastLine, command= ""; try { while (true) { lastLine= Readline.readline("| "); if (lastLine == null || lastLine.length() == 0) break; command += lastLine; } } catch (EOFException e) { } catch (IOException e) { } String xupdate= "<xu:modifications version=\"1.0\" " + "xmlns:xu=\"http://www.xmldb.org/xupdate\">" + command + "</xu:modifications>"; XUpdateQueryService service= (XUpdateQueryService) current.getService( "XUpdateQueryService", "1.0"); long mods= service.update(xupdate); System.out.println(mods + " modifications processed."); } else if (args[0].equalsIgnoreCase("map")) { StringTokenizer tok= new StringTokenizer(args[1], "= "); String prefix; if (args[1].startsWith("=")) prefix= ""; else { if (tok.countTokens() < 2) { messageln("please specify a namespace/prefix mapping as: prefix=namespaceURI"); return true; } prefix= tok.nextToken(); } String uri= tok.nextToken(); namespaceMappings.put(prefix, uri); } else if (args[0].equalsIgnoreCase("set")) { if (args.length == 1) properties.list(System.out); else try { StringTokenizer tok= new StringTokenizer(args[1], "= "); if (tok.countTokens() < 2) { System.err.println( "please specify a key=value pair"); return true; } String key= tok.nextToken(); String val= tok.nextToken(); System.out.println(key + " = " + val); properties.setProperty(key, val); getResources(); } catch (Exception e) { System.err.println("Exception: " + e.getMessage()); } } else if (args[0].equalsIgnoreCase("shutdown")) { DatabaseInstanceManager mgr= (DatabaseInstanceManager) current.getService( "DatabaseInstanceManager", "1.0"); if (mgr == null) { System.err.println("service is not available"); return true; } mgr.shutdown(); return true; } else if (args[0].equalsIgnoreCase("help") || args[0].equals("?")) displayHelp(); else if (args[0].equalsIgnoreCase("quit")) { return false; } else { System.err.println("unknown command"); return true; } path= newPath; return true; } catch (XMLDBException xde) { xde.printStackTrace(); if (startGUI) ClientFrame.showErrorMessage( "XMLDBException: " + xde.getMessage(), xde); else System.err.println( "XMLDBException: " + xde.getMessage() + " [" + xde.errorCode + "]"); return true; } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/96a020d1e295b0656cc0cf89c67a713d91bb61ad/InteractiveClient.java/clean/src/org/exist/client/InteractiveClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
1207,
12,
780,
980,
13,
288,
202,
202,
430,
261,
1937,
43,
5370,
13,
1082,
202,
3789,
18,
542,
743,
12,
803,
1769,
202,
202,
780,
833,
8526,
31,
202,
202,
430,
261,
1369,
18,
17514,
1190,
2932,
4720,
6,
3719,
288,
1082,
202,
1968,
33,
394,
514,
63,
22,
15533,
1082,
202,
1968,
63,
20,
65,
33,
315,
4720,
14432,
1082,
202,
1968,
63,
21,
65,
33,
980,
18,
28023,
12,
25,
1769,
202,
202,
97,
469,
288,
1082,
202,
1228,
10524,
946,
273,
394,
3961,
10524,
12,
2704,
26227,
12,
1369,
10019,
1082,
202,
17692,
18,
6208,
8070,
5621,
1082,
202,
17692,
18,
1095,
7803,
12,
20,
92,
5340,
16,
374,
92,
27,
2246,
42,
1769,
1082,
202,
17692,
18,
6889,
2156,
2668,
5187,
1769,
1082,
202,
17692,
18,
18777,
7803,
12,
20,
92,
3462,
16,
374,
92,
3462,
1769,
1082,
202,
682,
1501,
682,
273,
394,
2407,
12,
23,
1769,
1082,
202,
474,
277,
33,
374,
31,
1082,
202,
474,
1147,
31,
1082,
202,
698,
288,
9506,
202,
17523,
14015,
2316,
273,
946,
18,
4285,
1345,
10756,
480,
3961,
10524,
18,
1470,
67,
12706,
262,
288,
6862,
202,
430,
12,
2316,
422,
3961,
10524,
18,
1470,
67,
7952,
747,
1147,
422,
4754,
13,
288,
25083,
202,
3175,
682,
18,
1289,
12,
17692,
18,
87,
1125,
1769,
6862,
202,
97,
9506,
202,
97,
1082,
202,
97,
1044,
261,
14106,
425,
13,
288,
9506,
202,
3163,
18,
370,
18,
8222,
2932,
4445,
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,
1117,
1250,
1207,
12,
780,
980,
13,
288,
202,
202,
430,
261,
1937,
43,
5370,
13,
1082,
202,
3789,
18,
542,
743,
12,
803,
1769,
202,
202,
780,
833,
8526,
31,
202,
202,
430,
261,
1369,
18,
17514,
1190,
2932,
4720,
6,
3719,
288,
1082,
202,
1968,
33,
394,
514,
63,
22,
15533,
1082,
202,
1968,
63,
20,
65,
33,
315,
4720,
14432,
1082,
202,
1968,
63,
21,
65,
33,
980,
18,
28023,
12,
25,
1769,
202,
202,
97,
469,
288,
1082,
202,
1228,
10524,
946,
273,
394,
3961,
10524,
12,
2704,
26227,
12,
1369,
10019,
1082,
202,
17692,
18,
6208,
8070,
5621,
1082,
202,
17692,
18,
1095,
7803,
12,
20,
92,
5340,
16,
374,
92,
27,
2
] |
Vertex p = octree.getNearestVertex(n); | Vertex p = octree.getNearestVertex(mesh, n); | public void compute() { logger.debug("Running Fuse"); double [] bmin = new double[3]; double [] bmax = new double[3]; for (int i = 0; i < 3; i++) { bmin[i] = Double.MAX_VALUE; bmax[i] = Double.MIN_VALUE; } for (Iterator it=mesh.getNodesIterator(); it.hasNext(); ) { Vertex n = (Vertex) it.next(); double [] oldp = n.getUV(); for (int i = 0; i < 3; i++) { bmin[i] = Math.min(bmin[i], oldp[i]); bmax[i] = Math.max(bmax[i], oldp[i]); } } // Enlarge the bounding box for (int i = 0; i < 3; i++) { if (bmin[i] > 0.0) bmin[i] *= 0.99; else bmin[i] *= 1.01; if (bmax[i] > 0.0) bmax[i] *= 1.01; else bmax[i] *= 0.99; } Octree octree = new Octree(bmin, bmax); HashMap map = new HashMap(); int nSubst = 0; for (Iterator it = mesh.getNodesIterator(); it.hasNext(); ) { Vertex n = (Vertex) it.next(); if (n.isMutable()) continue; Vertex p = octree.getNearestVertex(n); if (p == null || p.isMutable() || n.distance3D(p) > tolerance) octree.add(n); else { logger.debug("Node "+n+" is removed, it is too close from "+p); nSubst++; map.put(n, p); n.setRef(0); } } logger.debug(""+nSubst+" node(s) are removed"); for (Iterator it = mesh.getFacesIterator(); it.hasNext(); ) { Triangle face = (Triangle) it.next(); for (int j = 0; j < 4; j++) { Vertex n = face.vertex[j]; Vertex p = (Vertex) map.get(n); if (p != null) { face.vertex[j] = p; mesh.removeNode(n); } } } } | 46701 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46701/50370aed291f847c841cdf0c61e381540ff0b136/Fuse.java/buggy/amibe/src/org/jcae/mesh/amibe/algos3d/Fuse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3671,
1435,
202,
95,
202,
202,
4901,
18,
4148,
2932,
7051,
478,
1202,
8863,
202,
202,
9056,
5378,
324,
1154,
273,
394,
1645,
63,
23,
15533,
202,
202,
9056,
5378,
324,
1896,
273,
394,
1645,
63,
23,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
890,
31,
277,
27245,
202,
202,
95,
1082,
202,
70,
1154,
63,
77,
65,
273,
3698,
18,
6694,
67,
4051,
31,
1082,
202,
70,
1896,
63,
77,
65,
273,
3698,
18,
6236,
67,
4051,
31,
202,
202,
97,
202,
202,
1884,
261,
3198,
518,
33,
15557,
18,
588,
3205,
3198,
5621,
518,
18,
5332,
2134,
5621,
262,
202,
202,
95,
1082,
202,
6475,
290,
273,
261,
6475,
13,
518,
18,
4285,
5621,
1082,
202,
9056,
5378,
1592,
84,
273,
290,
18,
588,
20147,
5621,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
890,
31,
277,
27245,
1082,
202,
95,
9506,
202,
70,
1154,
63,
77,
65,
273,
2361,
18,
1154,
12,
70,
1154,
63,
77,
6487,
1592,
84,
63,
77,
19226,
9506,
202,
70,
1896,
63,
77,
65,
273,
2361,
18,
1896,
12,
70,
1896,
63,
77,
6487,
1592,
84,
63,
77,
19226,
1082,
202,
97,
202,
202,
97,
202,
202,
759,
225,
1374,
14095,
326,
7552,
3919,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
890,
31,
277,
27245,
202,
202,
95,
1082,
202,
430,
261,
70,
1154,
63,
77,
65,
405,
374,
18,
20,
13,
9506,
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,
3671,
1435,
202,
95,
202,
202,
4901,
18,
4148,
2932,
7051,
478,
1202,
8863,
202,
202,
9056,
5378,
324,
1154,
273,
394,
1645,
63,
23,
15533,
202,
202,
9056,
5378,
324,
1896,
273,
394,
1645,
63,
23,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
890,
31,
277,
27245,
202,
202,
95,
1082,
202,
70,
1154,
63,
77,
65,
273,
3698,
18,
6694,
67,
4051,
31,
1082,
202,
70,
1896,
63,
77,
65,
273,
3698,
18,
6236,
67,
4051,
31,
202,
202,
97,
202,
202,
1884,
261,
3198,
518,
33,
15557,
18,
588,
3205,
3198,
5621,
518,
18,
5332,
2134,
5621,
262,
202,
202,
95,
1082,
202,
6475,
290,
273,
261,
2
] |
} | } | private void handle_msg_hand() throws IOException { int player; int hand_size; ArrayList hand; /* first read the player whose hand it is */ player = fd_in.read_seat(); /* Find out how many cards in this hand */ hand_size = fd_in.readInt(); /* Reallocate hand structures, if necessary */ increase_max_hand_size(hand_size); hand = this.players[player].hand; /* * Read in all the card values. It's important that we don't change * anything before here so that any functions we call from * increase_max_hand_size won't have inconsistent data. */ hand.clear(); for (int i = 0; i < hand_size; i++) { Card card = fd_in.read_card(); hand.add(card); // this.players[player].u_hand[i].card = card; // this.players[player].u_hand[i].is_valid = true; } log.fine("Received hand message for player " + player + "; " + hand.size() + " cards."); /* Finally, show the hand. */ game.display_hand(player); } | 45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/44e587940db5385974fd6a597a51d634a1b2ab34/Client.java/clean/java/src/ggz/cards/client/Client.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1640,
67,
3576,
67,
2349,
1435,
1216,
1860,
288,
202,
202,
474,
7291,
31,
202,
202,
474,
948,
67,
1467,
31,
202,
202,
19558,
948,
31,
202,
202,
20308,
1122,
855,
326,
7291,
8272,
948,
518,
353,
1195,
202,
202,
14872,
273,
5194,
67,
267,
18,
896,
67,
307,
270,
5621,
202,
202,
20308,
4163,
596,
3661,
4906,
18122,
316,
333,
948,
1195,
202,
202,
2349,
67,
1467,
273,
5194,
67,
267,
18,
896,
1702,
5621,
202,
202,
20308,
868,
16247,
948,
12597,
16,
309,
4573,
1195,
202,
202,
267,
11908,
67,
1896,
67,
2349,
67,
1467,
12,
2349,
67,
1467,
1769,
202,
202,
2349,
273,
333,
18,
1601,
414,
63,
14872,
8009,
2349,
31,
202,
202,
20308,
1082,
380,
2720,
316,
777,
326,
5270,
924,
18,
2597,
1807,
10802,
716,
732,
2727,
1404,
2549,
1082,
380,
6967,
1865,
2674,
1427,
716,
1281,
4186,
732,
745,
628,
1082,
380,
10929,
67,
1896,
67,
2349,
67,
1467,
8462,
1404,
1240,
27403,
501,
18,
1082,
1195,
202,
202,
2349,
18,
8507,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
948,
67,
1467,
31,
277,
27245,
288,
1082,
202,
6415,
5270,
273,
5194,
67,
267,
18,
896,
67,
3327,
5621,
1082,
202,
2349,
18,
1289,
12,
3327,
1769,
1082,
202,
759,
333,
18,
1601,
414,
63,
14872,
8009,
89,
67,
2349,
63,
77,
8009,
3327,
273,
5270,
31,
1082,
202,
759,
333,
18,
1601,
414,
63,
14872,
8009,
89,
67,
2349,
63,
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,
1640,
67,
3576,
67,
2349,
1435,
1216,
1860,
288,
202,
202,
474,
7291,
31,
202,
202,
474,
948,
67,
1467,
31,
202,
202,
19558,
948,
31,
202,
202,
20308,
1122,
855,
326,
7291,
8272,
948,
518,
353,
1195,
202,
202,
14872,
273,
5194,
67,
267,
18,
896,
67,
307,
270,
5621,
202,
202,
20308,
4163,
596,
3661,
4906,
18122,
316,
333,
948,
1195,
202,
202,
2349,
67,
1467,
273,
5194,
67,
267,
18,
896,
1702,
5621,
202,
202,
20308,
868,
16247,
948,
12597,
16,
309,
4573,
1195,
202,
202,
267,
11908,
67,
1896,
67,
2349,
67,
1467,
12,
2349,
67,
1467,
1769,
202,
202,
2349,
273,
333,
18,
1601,
414,
63,
14872,
8009,
2349,
31,
2
] |
public boolean get() { return includeLocalAddressesInNoderefs; } | public int get() { return portNumber; } | public boolean get() { return includeLocalAddressesInNoderefs; } | 50493 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50493/f43dcd3eaa49682824e40c5d428fa750be4517fe/Node.java/buggy/src/freenet/node/Node.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1250,
336,
1435,
288,
9506,
202,
2463,
2341,
2042,
7148,
382,
50,
369,
822,
2556,
31,
1082,
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
] | [
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1250,
336,
1435,
288,
9506,
202,
2463,
2341,
2042,
7148,
382,
50,
369,
822,
2556,
31,
1082,
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
] |
PhaseInfo nextPhase = init ? next.init : next.steady; | FilterInfo next = null; PhaseInfo nextPhase = null; if (i<filterInfo.size()-1) { next = (FilterInfo)filterInfo.get(i+1); nextPhase = init ? next.init : next.steady; } | private static void makeWorkBody(List filterInfo, JBlock statements, boolean init) { // for all the filters... for (int i=0; i<filterInfo.size(); i++) { FilterInfo cur = (FilterInfo)filterInfo.get(i); FilterInfo next = (FilterInfo)filterInfo.get(i); PhaseInfo curPhase = init ? cur.init : cur.steady; PhaseInfo nextPhase = init ? next.init : next.steady; // if the current filter doesn't execute at all, continue // (FIXME this is part of some kind of special case for // filters that don't execute at all in a schedule, I think.) if (curPhase.num==0) { continue; } // if in the steady-state phase, restore the peek values if (!init) { statements.addStatement(makePeekRestore(cur, curPhase)); } // get the filter's work function JMethodDeclaration work = cur.filter.getWork(); // take a deep breath and clone the body of the work function JBlock oldBody = new JBlock(null, work.getStatements(), null); JBlock body = (JBlock)ObjectDeepCloner.deepCopy(oldBody); // mutate <statements> to make them fit for fusion FusingVisitor fuser = new FusingVisitor(curPhase, nextPhase, i!=0, i!=filterInfo.size()-1); for (ListIterator it = body.getStatementIterator(); it.hasNext();){ ((JStatement)it.next()).accept(fuser); } // get <body> into a loop in <statements> statements.addStatement(makeForLoop(body, curPhase.loopCounter, new JIntLiteral(curPhase.num)) ); // get the postlude--copying state to the peek buffer statements.addStatement(makePeekBackup(cur, curPhase)); } } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/20a44f7527ab8cba89cc1c880b34baee8ecd4532/FusePipe.java/buggy/streams/src/at/dms/kjc/sir/lowering/fusion/FusePipe.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1221,
2421,
2250,
12,
682,
1034,
966,
16,
4405,
377,
804,
1768,
6317,
16,
6862,
377,
1250,
1208,
13,
288,
202,
759,
364,
777,
326,
3415,
2777,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
2188,
966,
18,
1467,
5621,
277,
27245,
288,
202,
565,
4008,
966,
662,
273,
261,
1586,
966,
13,
2188,
966,
18,
588,
12,
77,
1769,
202,
565,
4008,
966,
1024,
273,
261,
1586,
966,
13,
2188,
966,
18,
588,
12,
77,
1769,
202,
565,
19459,
966,
662,
11406,
273,
1208,
692,
662,
18,
2738,
294,
662,
18,
334,
684,
93,
31,
202,
565,
19459,
966,
1024,
11406,
273,
1208,
692,
1024,
18,
2738,
294,
1024,
18,
334,
684,
93,
31,
202,
565,
368,
309,
326,
783,
1034,
3302,
1404,
1836,
622,
777,
16,
1324,
202,
565,
368,
261,
25810,
333,
353,
1087,
434,
2690,
3846,
434,
4582,
648,
364,
3196,
565,
368,
3415,
716,
2727,
1404,
1836,
622,
777,
316,
279,
4788,
16,
467,
15507,
12998,
202,
565,
309,
261,
1397,
11406,
18,
2107,
631,
20,
13,
288,
1324,
31,
289,
202,
565,
368,
309,
316,
326,
384,
684,
93,
17,
2019,
6855,
16,
5217,
326,
8032,
924,
202,
565,
309,
16051,
2738,
13,
288,
202,
202,
18393,
18,
1289,
3406,
12,
6540,
30950,
10874,
12,
1397,
16,
662,
11406,
10019,
202,
565,
289,
202,
565,
368,
336,
326,
1034,
1807,
1440,
445,
202,
565,
804,
1305,
6094,
1440,
273,
662,
18,
2188,
18,
588,
2421,
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,
918,
1221,
2421,
2250,
12,
682,
1034,
966,
16,
4405,
377,
804,
1768,
6317,
16,
6862,
377,
1250,
1208,
13,
288,
202,
759,
364,
777,
326,
3415,
2777,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
2188,
966,
18,
1467,
5621,
277,
27245,
288,
202,
565,
4008,
966,
662,
273,
261,
1586,
966,
13,
2188,
966,
18,
588,
12,
77,
1769,
202,
565,
4008,
966,
1024,
273,
261,
1586,
966,
13,
2188,
966,
18,
588,
12,
77,
1769,
202,
565,
19459,
966,
662,
11406,
273,
1208,
692,
662,
18,
2738,
294,
662,
18,
334,
684,
93,
31,
202,
565,
19459,
966,
1024,
11406,
273,
1208,
692,
1024,
18,
2738,
294,
1024,
18,
334,
684,
2
] |
break; /* to replace old version by new */ | break; /* to replace old version by new */ | public boolean fixDocType(Node root) { Node doctype; int guessed = Dict.VERS_HTML40_STRICT, i; if (this.badDoctype) Report.warning(this, null, null, Report.MALFORMED_DOCTYPE); if (this.configuration.XmlOut) return true; doctype = root.findDocType(); if (this.configuration.docTypeMode == Configuration.DOCTYPE_OMIT) { if (doctype != null) Node.discardElement(doctype); return true; } if (this.configuration.docTypeMode == Configuration.DOCTYPE_STRICT) { Node.discardElement(doctype); doctype = null; guessed = Dict.VERS_HTML40_STRICT; } else if (this.configuration.docTypeMode == Configuration.DOCTYPE_LOOSE) { Node.discardElement(doctype); doctype = null; guessed = Dict.VERS_HTML40_LOOSE; } else if (this.configuration.docTypeMode == Configuration.DOCTYPE_AUTO) { if (doctype != null) { if (this.doctype == Dict.VERS_UNKNOWN) return false; switch (this.doctype) { case Dict.VERS_UNKNOWN: return false; case Dict.VERS_HTML20: if ((this.versions & Dict.VERS_HTML20) != 0) return true; break; /* to replace old version by new */ case Dict.VERS_HTML32: if ((this.versions & Dict.VERS_HTML32) != 0) return true; break; /* to replace old version by new */ case Dict.VERS_HTML40_STRICT: if ((this.versions & Dict.VERS_HTML40_STRICT) != 0) return true; break; /* to replace old version by new */ case Dict.VERS_HTML40_LOOSE: if ((this.versions & Dict.VERS_HTML40_LOOSE) != 0) return true; break; /* to replace old version by new */ case Dict.VERS_FRAMES: if ((this.versions & Dict.VERS_FRAMES) != 0) return true; break; /* to replace old version by new */ } /* INCONSISTENT_VERSION warning is now issued by ApparentVersion() */ } /* choose new doctype */ guessed = HTMLVersion(); } if (guessed == Dict.VERS_UNKNOWN) return false; /* for XML use the Voyager system identifier */ if (this.configuration.XmlOut || this.configuration.XmlTags || this.isvoyager) { if (doctype != null) Node.discardElement(doctype); for (i = 0; i < W3CVersion.length; ++i) { if (guessed == W3CVersion[i].code) { fixHTMLNameSpace(root, W3CVersion[i].profile); break; } } return true; } if (doctype == null) { doctype = newNode(Node.DocTypeTag, this.lexbuf, 0, 0); doctype.next = root.content; doctype.parent = root; doctype.prev = null; root.content = doctype; } this.txtstart = this.lexsize; this.txtend = this.lexsize; /* use the appropriate public identifier */ addStringLiteral("html PUBLIC "); if (this.configuration.docTypeMode == Configuration.DOCTYPE_USER && this.configuration.docTypeStr != null) addStringLiteral(this.configuration.docTypeStr); else if (guessed == Dict.VERS_HTML20) addStringLiteral("\"-//IETF//DTD HTML 2.0//EN\""); else { addStringLiteral("\"-//W3C//DTD "); for (i = 0; i < W3CVersion.length; ++i) { if (guessed == W3CVersion[i].code) { addStringLiteral(W3CVersion[i].name); break; } } addStringLiteral("//EN\""); } this.txtend = this.lexsize; doctype.start = this.txtstart; doctype.end = this.txtend; return true; } | 3308 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3308/996a78dda16e68e3ae71e3f24fde1a98bd1c0178/Lexer.java/clean/src/main/org/w3c/tidy/Lexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
2917,
1759,
559,
12,
907,
1365,
13,
565,
288,
3639,
2029,
24909,
31,
3639,
509,
3058,
281,
730,
273,
9696,
18,
21510,
67,
4870,
7132,
67,
30776,
16,
277,
31,
3639,
309,
261,
2211,
18,
8759,
3244,
12387,
13,
5411,
8706,
18,
8551,
12,
2211,
16,
446,
16,
446,
16,
8706,
18,
49,
1013,
7473,
25773,
67,
29824,
1769,
3639,
309,
261,
2211,
18,
7025,
18,
4432,
1182,
13,
5411,
327,
638,
31,
3639,
24909,
273,
1365,
18,
4720,
1759,
559,
5621,
3639,
309,
261,
2211,
18,
7025,
18,
2434,
559,
2309,
422,
4659,
18,
29824,
67,
1872,
1285,
13,
3639,
288,
5411,
309,
261,
2896,
12387,
480,
446,
13,
7734,
2029,
18,
31992,
1046,
12,
2896,
12387,
1769,
5411,
327,
638,
31,
3639,
289,
3639,
309,
261,
2211,
18,
7025,
18,
2434,
559,
2309,
422,
4659,
18,
29824,
67,
30776,
13,
3639,
288,
5411,
2029,
18,
31992,
1046,
12,
2896,
12387,
1769,
5411,
24909,
273,
446,
31,
5411,
3058,
281,
730,
273,
9696,
18,
21510,
67,
4870,
7132,
67,
30776,
31,
3639,
289,
3639,
469,
309,
261,
2211,
18,
7025,
18,
2434,
559,
2309,
422,
4659,
18,
29824,
67,
1502,
51,
1090,
13,
3639,
288,
5411,
2029,
18,
31992,
1046,
12,
2896,
12387,
1769,
5411,
24909,
273,
446,
31,
5411,
3058,
281,
730,
273,
9696,
18,
21510,
67,
4870,
7132,
67,
1502,
51,
1090,
31,
3639,
289,
3639,
469,
309,
261,
2211,
18,
7025,
18,
2434,
559,
2309,
422,
4659,
18,
29824,
67,
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,
2917,
1759,
559,
12,
907,
1365,
13,
565,
288,
3639,
2029,
24909,
31,
3639,
509,
3058,
281,
730,
273,
9696,
18,
21510,
67,
4870,
7132,
67,
30776,
16,
277,
31,
3639,
309,
261,
2211,
18,
8759,
3244,
12387,
13,
5411,
8706,
18,
8551,
12,
2211,
16,
446,
16,
446,
16,
8706,
18,
49,
1013,
7473,
25773,
67,
29824,
1769,
3639,
309,
261,
2211,
18,
7025,
18,
4432,
1182,
13,
5411,
327,
638,
31,
3639,
24909,
273,
1365,
18,
4720,
1759,
559,
5621,
3639,
309,
261,
2211,
18,
7025,
18,
2434,
559,
2309,
422,
4659,
18,
29824,
67,
1872,
1285,
13,
3639,
288,
5411,
309,
261,
2896,
12387,
480,
446,
13,
7734,
2029,
18,
31992,
1046,
12,
2
] |
for (int i = 0; i < data.length; i++) | for (; i < data.length; i++) | protected void insertUpdate(ElementSpec[] data) { if (data[0].getType() == ElementSpec.EndTagType) { // fracture deepest child here BranchElement paragraph = (BranchElement) elementStack.peek(); Element curr = paragraph.getParentElement(); int index = curr.getElementIndex(offset); while (!curr.isLeaf()) { index = curr.getElementIndex(offset); curr = curr.getElement(index); } Element parent = curr.getParentElement(); Element newEl1 = createLeafElement(parent, curr.getAttributes(), curr.getStartOffset(), offset); Element grandParent = parent.getParentElement(); BranchElement nextBranch = (BranchElement) grandParent.getElement (grandParent.getElementIndex(parent.getEndOffset())); Element firstLeaf = nextBranch.getElement(0); while (!firstLeaf.isLeaf()) firstLeaf = firstLeaf.getElement(0); BranchElement parent2 = (BranchElement) firstLeaf.getParentElement(); Element newEl2 = createLeafElement(parent2, firstLeaf.getAttributes(), offset, firstLeaf.getEndOffset()); parent2.replace(0, 1, new Element[] { newEl2 }); ((BranchElement) parent). replace(index, 1, new Element[] { newEl1 }); } for (int i = 0; i < data.length; i++) { BranchElement paragraph = (BranchElement) elementStack.peek(); switch (data[i].getType()) { case ElementSpec.StartTagType: switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: insertFracture(data[i]); break; case ElementSpec.JoinNextDirection: int index = paragraph.getElementIndex(offset); elementStack.push(paragraph.getElement(index)); break; case ElementSpec.OriginateDirection: Element current = (Element) elementStack.peek(); Element newParagraph = insertParagraph((BranchElement) current, offset); elementStack.push(newParagraph); break; default: break; } break; case ElementSpec.EndTagType: elementStack.pop(); break; case ElementSpec.ContentType: insertContentTag(data[i]); break; } } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e661cf1a3762c80fbf5e790baa87062e03571f13/DefaultStyledDocument.java/clean/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2243,
1891,
12,
1046,
1990,
8526,
501,
13,
565,
288,
1377,
309,
261,
892,
63,
20,
8009,
588,
559,
1435,
422,
3010,
1990,
18,
25633,
559,
13,
3639,
288,
1850,
368,
284,
14266,
594,
4608,
395,
1151,
2674,
1850,
15449,
1046,
10190,
273,
261,
7108,
1046,
13,
930,
2624,
18,
347,
3839,
5621,
1850,
3010,
4306,
273,
10190,
18,
588,
3054,
1046,
5621,
1850,
509,
770,
273,
4306,
18,
21336,
1016,
12,
3348,
1769,
1850,
1323,
16051,
17016,
18,
291,
9858,
10756,
5411,
288,
2868,
770,
273,
4306,
18,
21336,
1016,
12,
3348,
1769,
2868,
4306,
273,
4306,
18,
21336,
12,
1615,
1769,
5411,
289,
1850,
3010,
982,
273,
4306,
18,
588,
3054,
1046,
5621,
1850,
3010,
394,
4958,
21,
273,
752,
9858,
1046,
12,
2938,
16,
4766,
2398,
4306,
18,
588,
2498,
9334,
4766,
2398,
4306,
18,
588,
1685,
2335,
9334,
1384,
1769,
1850,
3010,
16225,
3054,
273,
982,
18,
588,
3054,
1046,
5621,
1850,
15449,
1046,
1024,
7108,
273,
2398,
261,
7108,
1046,
13,
16225,
3054,
18,
21336,
2868,
261,
3197,
464,
3054,
18,
21336,
1016,
12,
2938,
18,
588,
1638,
2335,
1435,
10019,
1850,
3010,
1122,
9858,
273,
1024,
7108,
18,
21336,
12,
20,
1769,
1850,
1323,
16051,
3645,
9858,
18,
291,
9858,
10756,
2868,
1122,
9858,
273,
1122,
9858,
18,
21336,
12,
20,
1769,
10792,
15449,
1046,
982,
22,
273,
261,
7108,
1046,
13,
1122,
9858,
18,
588,
3054,
1046,
5621,
1850,
3010,
394,
4958,
22,
273,
2398,
752,
9858,
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,
2243,
1891,
12,
1046,
1990,
8526,
501,
13,
565,
288,
1377,
309,
261,
892,
63,
20,
8009,
588,
559,
1435,
422,
3010,
1990,
18,
25633,
559,
13,
3639,
288,
1850,
368,
284,
14266,
594,
4608,
395,
1151,
2674,
1850,
15449,
1046,
10190,
273,
261,
7108,
1046,
13,
930,
2624,
18,
347,
3839,
5621,
1850,
3010,
4306,
273,
10190,
18,
588,
3054,
1046,
5621,
1850,
509,
770,
273,
4306,
18,
21336,
1016,
12,
3348,
1769,
1850,
1323,
16051,
17016,
18,
291,
9858,
10756,
5411,
288,
2868,
770,
273,
4306,
18,
21336,
1016,
12,
3348,
1769,
2868,
4306,
273,
4306,
18,
21336,
12,
1615,
1769,
5411,
289,
1850,
3010,
982,
273,
4306,
18,
588,
3054,
1046,
5621,
1850,
2
] |
aload(itsOneArgArray); | cfw.addALoad(itsOneArgArray); | private void constructArgArray(int argCount) { if (argCount == 0) { if (itsZeroArgArray >= 0) aload(itsZeroArgArray); else { classFile.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); } } else { if (argCount == 1) { if (itsOneArgArray >= 0) aload(itsOneArgArray); else { push(1); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); } } else { push(argCount); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); } } } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/bd2594e6ebd6d8099b587934641c8f7650d87761/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4872,
4117,
1076,
12,
474,
1501,
1380,
13,
565,
288,
3639,
309,
261,
3175,
1380,
422,
374,
13,
288,
5411,
309,
261,
1282,
7170,
4117,
1076,
1545,
374,
13,
7734,
279,
945,
12,
1282,
7170,
4117,
1076,
1769,
5411,
469,
288,
7734,
29728,
18,
1289,
12,
3216,
1085,
18,
3264,
22741,
16,
13491,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
5576,
3113,
13491,
315,
5531,
2615,
3113,
5158,
21159,
19,
4936,
19,
921,
4868,
1769,
5411,
289,
3639,
289,
3639,
469,
288,
5411,
309,
261,
3175,
1380,
422,
404,
13,
288,
7734,
309,
261,
1282,
3335,
4117,
1076,
1545,
374,
13,
10792,
6080,
91,
18,
1289,
1013,
6189,
12,
1282,
3335,
4117,
1076,
1769,
7734,
469,
288,
10792,
1817,
12,
21,
1769,
10792,
527,
3216,
1085,
12,
3216,
1085,
18,
1258,
7245,
8552,
16,
315,
6290,
19,
4936,
19,
921,
8863,
7734,
289,
5411,
289,
5411,
469,
288,
7734,
1817,
12,
3175,
1380,
1769,
7734,
527,
3216,
1085,
12,
3216,
1085,
18,
1258,
7245,
8552,
16,
315,
6290,
19,
4936,
19,
921,
8863,
5411,
289,
3639,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4872,
4117,
1076,
12,
474,
1501,
1380,
13,
565,
288,
3639,
309,
261,
3175,
1380,
422,
374,
13,
288,
5411,
309,
261,
1282,
7170,
4117,
1076,
1545,
374,
13,
7734,
279,
945,
12,
1282,
7170,
4117,
1076,
1769,
5411,
469,
288,
7734,
29728,
18,
1289,
12,
3216,
1085,
18,
3264,
22741,
16,
13491,
315,
3341,
19,
8683,
15990,
19,
11242,
19,
3651,
5576,
3113,
13491,
315,
5531,
2615,
3113,
5158,
21159,
19,
4936,
19,
921,
4868,
1769,
5411,
289,
3639,
289,
3639,
469,
288,
5411,
309,
261,
3175,
1380,
422,
404,
13,
288,
7734,
309,
261,
1282,
3335,
4117,
1076,
1545,
374,
13,
10792,
6080,
91,
18,
1289,
1013,
6189,
12,
1282,
3335,
4117,
1076,
1769,
2
] |
if ( userName.toNormName().equalsIgnoreCase( PartitionNexus.ADMIN_PRINCIPAL_NORMALIZED ) || !enabled || name.toString().trim().equals( "" ) ) | if ( isPrincipalAnAdministrator( principalDn ) || !enabled || name.toString().trim().equals( "" ) ) | public boolean hasEntry( NextInterceptor next, LdapDN name ) throws NamingException { Invocation invocation = InvocationStack.getInstance().peek(); PartitionNexusProxy proxy = invocation.getProxy(); Attributes entry = proxy.lookup( name, PartitionNexusProxy.LOOKUP_BYPASS ); LdapPrincipal principal = ( ( ServerContext ) invocation.getCaller() ).getPrincipal(); LdapDN userName = principal.getJndiName(); if ( userName.toNormName().equalsIgnoreCase( PartitionNexus.ADMIN_PRINCIPAL_NORMALIZED ) || !enabled || name.toString().trim().equals( "" ) ) // no checks on the rootdse { return next.hasEntry( name ); } Set userGroups = groupCache.getGroups( userName.toNormName() ); Collection tuples = new HashSet(); addPerscriptiveAciTuples( proxy, tuples, name, entry ); addEntryAciTuples( tuples, entry ); addSubentryAciTuples( proxy, tuples, name, entry ); // check that we have browse access to the entry engine.checkPermission( proxy, userGroups, userName, principal.getAuthenticationLevel(), name, null, null, BROWSE_PERMS, tuples, entry ); return next.hasEntry( name ); } | 17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/6dc7c25550e207d74474bfd34d2929fc1e9a06b8/AuthorizationService.java/clean/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1622,
12,
4804,
10281,
1024,
16,
18053,
8609,
508,
262,
1216,
26890,
565,
288,
3639,
11298,
9495,
273,
11298,
2624,
18,
588,
1442,
7675,
347,
3839,
5621,
3639,
12598,
50,
21029,
3886,
2889,
273,
9495,
18,
588,
3886,
5621,
3639,
9055,
1241,
273,
2889,
18,
8664,
12,
508,
16,
12598,
50,
21029,
3886,
18,
1502,
31581,
67,
6486,
10884,
11272,
3639,
18053,
9155,
8897,
273,
261,
261,
3224,
1042,
262,
9495,
18,
588,
11095,
1435,
262,
18,
588,
9155,
5621,
3639,
18053,
8609,
12065,
273,
8897,
18,
588,
46,
22546,
5621,
3639,
309,
261,
12065,
18,
869,
14624,
461,
7675,
14963,
5556,
12,
12598,
50,
21029,
18,
15468,
67,
8025,
23213,
2579,
1013,
67,
15480,
24131,
262,
747,
401,
5745,
5411,
747,
508,
18,
10492,
7675,
5290,
7675,
14963,
12,
1408,
262,
262,
368,
1158,
4271,
603,
326,
1365,
72,
307,
3639,
288,
5411,
327,
1024,
18,
5332,
1622,
12,
508,
11272,
3639,
289,
3639,
1000,
729,
3621,
273,
1041,
1649,
18,
588,
3621,
12,
12065,
18,
869,
14624,
461,
1435,
11272,
3639,
2200,
10384,
273,
394,
6847,
5621,
3639,
527,
14781,
9118,
688,
37,
8450,
25813,
12,
2889,
16,
10384,
16,
508,
16,
1241,
11272,
3639,
527,
1622,
37,
8450,
25813,
12,
10384,
16,
1241,
11272,
3639,
25716,
4099,
37,
8450,
25813,
12,
2889,
16,
10384,
16,
508,
16,
1241,
11272,
3639,
368,
866,
716,
732,
1240,
21670,
2006,
358,
326,
1241,
3639,
4073,
18,
1893,
5041,
12,
2889,
16,
729,
3621,
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,
711,
1622,
12,
4804,
10281,
1024,
16,
18053,
8609,
508,
262,
1216,
26890,
565,
288,
3639,
11298,
9495,
273,
11298,
2624,
18,
588,
1442,
7675,
347,
3839,
5621,
3639,
12598,
50,
21029,
3886,
2889,
273,
9495,
18,
588,
3886,
5621,
3639,
9055,
1241,
273,
2889,
18,
8664,
12,
508,
16,
12598,
50,
21029,
3886,
18,
1502,
31581,
67,
6486,
10884,
11272,
3639,
18053,
9155,
8897,
273,
261,
261,
3224,
1042,
262,
9495,
18,
588,
11095,
1435,
262,
18,
588,
9155,
5621,
3639,
18053,
8609,
12065,
273,
8897,
18,
588,
46,
22546,
5621,
3639,
309,
261,
12065,
18,
869,
14624,
461,
7675,
14963,
5556,
12,
12598,
50,
21029,
18,
15468,
67,
8025,
23213,
2579,
1013,
67,
15480,
2
] |
AST tmp1950_AST_in = (AST)_t; | AST tmp1962_AST_in = (AST)_t; | public final void ddesendstate(AST _t) throws RecognitionException { AST ddesendstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1862 = _t; AST tmp1949_AST_in = (AST)_t; match(_t,DDE); _t = _t.getFirstChild(); AST tmp1950_AST_in = (AST)_t; match(_t,SEND); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp1951_AST_in = (AST)_t; match(_t,SOURCE); _t = _t.getNextSibling(); expression(_t); _t = _retTree; AST tmp1952_AST_in = (AST)_t; match(_t,ITEM); _t = _t.getNextSibling(); expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TIME: { AST __t1864 = _t; AST tmp1953_AST_in = (AST)_t; match(_t,TIME); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1864; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case NOERROR_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp1954_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t1862; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
302,
5489,
409,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
302,
5489,
409,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
2643,
8898,
273,
389,
88,
31,
202,
202,
9053,
1853,
3657,
7616,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
40,
1639,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
3657,
3361,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
21675,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
8692,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
9053,
1853,
3657,
10593,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
6537,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
8692,
24899,
88,
1769,
202,
202,
67,
88,
273,
389,
1349,
2471,
31,
202,
202,
9053,
1853,
3657,
9401,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
12674,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
202,
202,
8692,
24899,
88,
1769,
202,
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,
302,
5489,
409,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
302,
5489,
409,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
9053,
1001,
88,
2643,
8898,
273,
389,
88,
31,
202,
202,
9053,
1853,
3657,
7616,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
40,
1639,
1769,
202,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
202,
202,
9053,
1853,
3657,
3361,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
202,
202,
1916,
24899,
88,
16,
21675,
1769,
2
] |
case Id_toGMTString: return 0; | public int methodArity(int methodId) { if (prototypeFlag) { switch (methodId) { case ConstructorId_UTC: return 1; case ConstructorId_parse: return 1; case Id_constructor: return 1; case Id_toString: return 0; case Id_toTimeString: return 0; case Id_toDateString: return 0; case Id_toLocaleString: return 0; case Id_toLocaleTimeString: return 0; case Id_toLocaleDateString: return 0; case Id_toGMTString: return 0; case Id_toUTCString: return 0; case Id_valueOf: return 0; case Id_getTime: return 0; case Id_getYear: return 0; case Id_getFullYear: return 0; case Id_getUTCFullYear: return 0; case Id_getMonth: return 0; case Id_getUTCMonth: return 0; case Id_getDate: return 0; case Id_getUTCDate: return 0; case Id_getDay: return 0; case Id_getUTCDay: return 0; case Id_getHours: return 0; case Id_getUTCHours: return 0; case Id_getMinutes: return 0; case Id_getUTCMinutes: return 0; case Id_getSeconds: return 0; case Id_getUTCSeconds: return 0; case Id_getMilliseconds: return 0; case Id_getUTCMilliseconds: return 0; case Id_getTimezoneOffset: return 0; case Id_setTime: return 1; case Id_setMilliseconds: return 1; case Id_setUTCMilliseconds: return 1; case Id_setSeconds: return 2; case Id_setUTCSeconds: return 2; case Id_setMinutes: return 3; case Id_setUTCMinutes: return 3; case Id_setHours: return 4; case Id_setUTCHours: return 4; case Id_setDate: return 1; case Id_setUTCDate: return 1; case Id_setMonth: return 2; case Id_setUTCMonth: return 2; case Id_setFullYear: return 3; case Id_setUTCFullYear: return 3; case Id_setYear: return 1; } } return super.methodArity(methodId); } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/dbefc5595ba41854ec04751abfc8db52f70a5796/NativeDate.java/clean/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
707,
686,
560,
12,
474,
707,
548,
13,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
11471,
30,
377,
327,
404,
31,
7734,
648,
11417,
548,
67,
2670,
30,
282,
327,
404,
31,
7734,
648,
3124,
67,
12316,
30,
3639,
327,
404,
31,
1171,
648,
3124,
67,
10492,
30,
6647,
327,
374,
31,
7734,
648,
3124,
67,
869,
950,
780,
30,
4202,
327,
374,
31,
7734,
648,
3124,
67,
869,
1626,
780,
30,
4202,
327,
374,
31,
7734,
648,
3124,
67,
869,
3916,
780,
30,
377,
327,
374,
31,
7734,
648,
3124,
67,
869,
3916,
950,
780,
30,
327,
374,
31,
7734,
648,
3124,
67,
869,
3916,
1626,
780,
30,
327,
374,
31,
1171,
9079,
648,
3124,
67,
869,
11471,
780,
30,
3639,
327,
374,
31,
7734,
648,
3124,
67,
1132,
951,
30,
5411,
327,
374,
31,
7734,
648,
3124,
67,
588,
950,
30,
5411,
327,
374,
31,
7734,
648,
3124,
67,
588,
5593,
30,
5411,
327,
374,
31,
7734,
648,
3124,
67,
588,
5080,
5593,
30,
3639,
327,
374,
31,
7734,
648,
3124,
67,
588,
11471,
5080,
5593,
30,
377,
327,
374,
31,
7734,
648,
3124,
67,
588,
5445,
30,
6647,
327,
374,
31,
7734,
648,
3124,
67,
588,
11471,
5445,
30,
3639,
327,
374,
31,
7734,
648,
3124,
67,
588,
1626,
30,
5411,
327,
374,
31,
7734,
648,
3124,
67,
588,
11471,
1626,
30,
540,
327,
374,
31,
7734,
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,
509,
707,
686,
560,
12,
474,
707,
548,
13,
288,
3639,
309,
261,
18541,
4678,
13,
288,
5411,
1620,
261,
2039,
548,
13,
288,
7734,
648,
11417,
548,
67,
11471,
30,
377,
327,
404,
31,
7734,
648,
11417,
548,
67,
2670,
30,
282,
327,
404,
31,
7734,
648,
3124,
67,
12316,
30,
3639,
327,
404,
31,
1171,
648,
3124,
67,
10492,
30,
6647,
327,
374,
31,
7734,
648,
3124,
67,
869,
950,
780,
30,
4202,
327,
374,
31,
7734,
648,
3124,
67,
869,
1626,
780,
30,
4202,
327,
374,
31,
7734,
648,
3124,
67,
869,
3916,
780,
30,
377,
327,
374,
31,
7734,
648,
3124,
67,
869,
3916,
950,
780,
30,
327,
374,
31,
7734,
648,
3124,
2
] |
|
responseString = "530 " + DSNStatus.getStatus(DSNStatus.PERMANENT, DSNStatus.SECURITY_AUTH) + " Rejected: unauthenticated e-mail from " + session.getRemoteIPAddress() + " is restricted. Contact the postmaster for details."; | responseString = "554 " + DSNStatus.getStatus(DSNStatus.PERMANENT, DSNStatus.SECURITY_OTHER) + " Rejected: message contains a domain listed by " + uRblServer; | public void onMessage(SMTPSession session) { MimeMessage message; // Not scan the message if relaying allowed if (session.isRelayingAllowed() && !checkAuthNetworks) { return; } try { message = session.getMail().getMessage(); HashSet domains = scanMailForDomains(message); Iterator fDomains = domains.iterator(); Iterator uRbl = uriRbl.iterator(); while (fDomains.hasNext()) { String target = fDomains.next().toString(); while (uRbl.hasNext()) { try { String responseString = null; String detail = null; String uRblServer = uRbl.next().toString(); dnsServer.getByName(target + "." + uRblServer); if (getLogger().isInfoEnabled()) { getLogger().info("Message restricted by " + uRblServer + " to SMTP AUTH/postmaster/abuse."); } // we should try to retrieve details if (getDetail) { Collection txt = dnsServer.findTXTRecords(target + "." + uRbl.next()); // Check if we found a txt record if (!txt.isEmpty()) { // Set the detail detail = txt.iterator().next().toString(); } } if (detail != null) { responseString = "530 " + DSNStatus.getStatus(DSNStatus.PERMANENT, DSNStatus.SECURITY_AUTH) + " " + detail; } else { responseString = "530 " + DSNStatus.getStatus(DSNStatus.PERMANENT, DSNStatus.SECURITY_AUTH) + " Rejected: unauthenticated e-mail from " + session.getRemoteIPAddress() + " is restricted. Contact the postmaster for details."; } session.writeResponse(responseString); session.setStopHandlerProcessing(true); session.abortMessage(); } catch (UnknownHostException uhe) { // domain not found. keep processing } } } } catch (MessagingException e) { getLogger().error(e.getMessage()); } catch (IOException e) { getLogger().error(e.getMessage()); } } | 47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/f03a9915e38e06b8fe73ba63e006033583227196/URIRBLHandler.java/clean/src/java/org/apache/james/smtpserver/core/filter/fastfail/URIRBLHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
30002,
12,
55,
14636,
2157,
1339,
13,
288,
3639,
22059,
1079,
883,
31,
5411,
368,
2288,
4135,
326,
883,
309,
18874,
310,
2935,
3639,
309,
261,
3184,
18,
291,
27186,
310,
5042,
1435,
597,
401,
1893,
1730,
19999,
13,
288,
5411,
327,
31,
3639,
289,
7734,
775,
288,
5411,
883,
273,
1339,
18,
588,
6759,
7675,
24906,
5621,
5411,
6847,
10128,
273,
4135,
6759,
1290,
15531,
12,
2150,
1769,
5411,
4498,
284,
15531,
273,
10128,
18,
9838,
5621,
5411,
4498,
582,
54,
3083,
273,
2003,
54,
3083,
18,
9838,
5621,
5411,
1323,
261,
74,
15531,
18,
5332,
2134,
10756,
288,
7734,
514,
1018,
273,
284,
15531,
18,
4285,
7675,
10492,
5621,
7734,
1323,
261,
89,
54,
3083,
18,
5332,
2134,
10756,
288,
10792,
775,
288,
13491,
514,
766,
780,
273,
446,
31,
13491,
514,
7664,
273,
446,
31,
13491,
514,
582,
54,
3083,
2081,
273,
582,
54,
3083,
18,
4285,
7675,
10492,
5621,
4766,
9079,
6605,
2081,
18,
588,
5911,
12,
3299,
397,
4585,
397,
582,
54,
3083,
2081,
1769,
4766,
565,
309,
261,
588,
3328,
7675,
291,
966,
1526,
10756,
288,
18701,
7156,
7675,
1376,
2932,
1079,
15693,
635,
315,
397,
225,
582,
54,
3083,
2081,
397,
315,
358,
18102,
12790,
19,
2767,
7525,
19,
378,
1202,
1199,
1769,
13491,
289,
13491,
368,
732,
1410,
775,
358,
4614,
3189,
13491,
309,
261,
588,
6109,
13,
288,
18701,
2200,
6463,
273,
6605,
2081,
18,
4720,
29399,
6499,
12,
3299,
397,
4585,
397,
582,
54,
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,
30002,
12,
55,
14636,
2157,
1339,
13,
288,
3639,
22059,
1079,
883,
31,
5411,
368,
2288,
4135,
326,
883,
309,
18874,
310,
2935,
3639,
309,
261,
3184,
18,
291,
27186,
310,
5042,
1435,
597,
401,
1893,
1730,
19999,
13,
288,
5411,
327,
31,
3639,
289,
7734,
775,
288,
5411,
883,
273,
1339,
18,
588,
6759,
7675,
24906,
5621,
5411,
6847,
10128,
273,
4135,
6759,
1290,
15531,
12,
2150,
1769,
5411,
4498,
284,
15531,
273,
10128,
18,
9838,
5621,
5411,
4498,
582,
54,
3083,
273,
2003,
54,
3083,
18,
9838,
5621,
5411,
1323,
261,
74,
15531,
18,
5332,
2134,
10756,
288,
7734,
514,
1018,
273,
284,
15531,
18,
4285,
7675,
10492,
5621,
7734,
1323,
261,
89,
54,
2
] |
return propDAOs; } | public Collection<ProcessPropertyDAO> getProperties() { ArrayList<ProcessPropertyDAO> propDAOs = new ArrayList<ProcessPropertyDAO>(_process.getProperties().size()); for (HProcessProperty hproperty : _process.getProperties()) { propDAOs.add(new ProcessPropertyDAOImpl(_sm, hproperty)); } return propDAOs; } | 45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/e4081f282ae2ddc9c22fc84cbce46d579a3ac0dc/ProcessDaoImpl.java/buggy/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/ProcessDaoImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2200,
32,
2227,
1396,
18485,
34,
9392,
1435,
288,
565,
2407,
32,
2227,
1396,
18485,
34,
2270,
9793,
15112,
273,
5411,
394,
2407,
32,
2227,
1396,
18485,
34,
24899,
2567,
18,
588,
2297,
7675,
1467,
10663,
565,
364,
261,
44,
2227,
1396,
366,
4468,
294,
389,
2567,
18,
588,
2297,
10756,
288,
1377,
2270,
9793,
15112,
18,
1289,
12,
2704,
4389,
1396,
18485,
2828,
24899,
4808,
16,
366,
4468,
10019,
565,
289,
565,
327,
2270,
9793,
15112,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2200,
32,
2227,
1396,
18485,
34,
9392,
1435,
288,
565,
2407,
32,
2227,
1396,
18485,
34,
2270,
9793,
15112,
273,
5411,
394,
2407,
32,
2227,
1396,
18485,
34,
24899,
2567,
18,
588,
2297,
7675,
1467,
10663,
565,
364,
261,
44,
2227,
1396,
366,
4468,
294,
389,
2567,
18,
588,
2297,
10756,
288,
1377,
2270,
9793,
15112,
18,
1289,
12,
2704,
4389,
1396,
18485,
2828,
24899,
4808,
16,
366,
4468,
10019,
565,
289,
565,
327,
2270,
9793,
15112,
31,
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
] |
|
iAxisType = getAxisType( axAncillaryBase ); if ( iAxisType != IConstants.TEXT ) | iAncillaryAxisType = getAxisType( axAncillaryBase ); if ( iAncillaryAxisType != IConstants.TEXT ) | public void compute( Bounds bo ) throws ChartException, IllegalArgumentException { bo = bo.scaledInstance( dPointToPixel ); // CONVERSION // TODO compute seriesThickness as per rotation. // dSeriesThickness = // MAINTAIN IN LOCAL VARIABLES FOR PERFORMANCE/CONVENIENCE // TODO initial bounding box constraint, may compute as per the rotation // angle. // Always use zero as start point. double dX = 0;// bo.getLeft( ) + insCA.getLeft( ); double dY = 0;// bo.getTop( ) + insCA.getTop( ); double dW = bo.getWidth( ) - insCA.getLeft( ) - insCA.getRight( ); double dH = bo.getHeight( ) - insCA.getTop( ) - insCA.getBottom( ); // MUST BE 3-D DIMENSION ONLY HERE. iDimension = getDimension( cwa.getDimension( ) ); assert iDimension == IConstants.THREE_D; dXAxisPlotSpacing = cwa.getPlot( ).getHorizontalSpacing( ) * dPointToPixel; // CONVERSION dYAxisPlotSpacing = cwa.getPlot( ).getVerticalSpacing( ) * dPointToPixel; // CONVERSION dZAxisPlotSpacing = dXAxisPlotSpacing; double dStart, dEnd; final Axis[] axa = cwa.getPrimaryBaseAxes( ); final Axis axPrimaryBase = axa[0]; final Axis axPrimaryOrthogonal = cwa.getPrimaryOrthogonalAxis( axPrimaryBase ); final Axis axAncillaryBase = cwa.getAncillaryBaseAxis( axPrimaryBase ); // COMPUTE PRIMARY-BASE-AXIS PROPERTIES AND ITS SCALE AutoScale scPrimaryBase = null; OneAxis oaxPrimaryBase = aax.getPrimaryBase( ); int iAxisType = getAxisType( axPrimaryBase ); Object oaData = null; if ( iAxisType == TEXT || oaxPrimaryBase.isCategoryScale( ) ) { oaData = getTypedDataSet( axPrimaryBase, iAxisType, 0 ); } else if ( ( iAxisType & NUMERICAL ) == NUMERICAL ) { oaData = getMinMax( axPrimaryBase, iAxisType ); } else if ( ( iAxisType & DATE_TIME ) == DATE_TIME ) { oaData = getMinMax( axPrimaryBase, iAxisType ); } DataSetIterator dsi = ( oaData instanceof DataSetIterator ) ? (DataSetIterator) oaData : new DataSetIterator( oaData, iAxisType ); oaData = null; // TODO compute 3d start end point. dStart = ( aax.areAxesSwapped( ) ) ? dY : dX; dEnd = ( aax.areAxesSwapped( ) ) ? dY + dH : dX + dW; Scale sc = axPrimaryBase.getScale( ); scPrimaryBase = AutoScale.computeScale( ids, oaxPrimaryBase, dsi, iAxisType, dStart, dEnd, sc.getMin( ), sc.getMax( ), sc.isSetStep( ) ? new Double( sc.getStep( ) ) : null, axPrimaryBase.getFormatSpecifier( ), rtc, FORWARD ); oaxPrimaryBase.set( scPrimaryBase ); // UPDATE SCALE ON PRIMARY-BASE // AXIS // COMPUTE ANCILLARY-BASE-AXIS PROPERTIES AND ITS SCALE AutoScale scAncillaryBase = null; OneAxis oaxAncillaryBase = aax.getAncillaryBase( ); iAxisType = getAxisType( axAncillaryBase ); oaData = null; if ( iAxisType == TEXT || oaxAncillaryBase.isCategoryScale( ) ) { oaData = getAncillaryDataSet( axAncillaryBase, axPrimaryOrthogonal, iAxisType ); } else if ( ( iAxisType & NUMERICAL ) == NUMERICAL ) { oaData = getMinMax( axAncillaryBase, iAxisType ); } else if ( ( iAxisType & DATE_TIME ) == DATE_TIME ) { oaData = getMinMax( axAncillaryBase, iAxisType ); } dsi = ( oaData instanceof DataSetIterator ) ? (DataSetIterator) oaData : new DataSetIterator( oaData, iAxisType ); oaData = null; // TODO compute 3d start end point, use the same setting as primary base // axis here. dStart = ( aax.areAxesSwapped( ) ) ? dY : dX; dEnd = ( aax.areAxesSwapped( ) ) ? dY + dH : dX + dW; sc = axAncillaryBase.getScale( ); scAncillaryBase = AutoScale.computeScale( ids, oaxAncillaryBase, dsi, iAxisType, dStart, dEnd, sc.getMin( ), sc.getMax( ), sc.isSetStep( ) ? new Double( sc.getStep( ) ) : null, axAncillaryBase.getFormatSpecifier( ), rtc, FORWARD ); oaxAncillaryBase.set( scAncillaryBase ); // UPDATE SCALE ON // ANCILLARY-BASE AXIS // COMPUTE PRIMARY-ORTHOGONAL-AXIS PROPERTIES AND ITS SCALE AutoScale scPrimaryOrthogonal = null; OneAxis oaxPrimaryOrthogonal = aax.getPrimaryOrthogonal( ); iAxisType = getAxisType( axPrimaryOrthogonal ); oaData = null; if ( ( iAxisType & NUMERICAL ) == NUMERICAL || ( iAxisType & DATE_TIME ) == DATE_TIME ) { dsi = new DataSetIterator( getMinMax( axPrimaryOrthogonal, iAxisType ), iAxisType ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_FORMAT, "exception.orthogonal.axis.numerical.datetime", //$NON-NLS-1$ Messages.getResourceBundle( rtc.getULocale( ) ) ); } // TODO compute 3d start end point. dStart = ( aax.areAxesSwapped( ) ) ? dX : dY; dEnd = ( aax.areAxesSwapped( ) ) ? dX + dW : dY + dH; sc = axPrimaryOrthogonal.getScale( ); scPrimaryOrthogonal = AutoScale.computeScale( ids, oaxPrimaryOrthogonal, dsi, iAxisType, dStart, dEnd, sc.getMin( ), sc.getMax( ), sc.isSetStep( ) ? new Double( sc.getStep( ) ) : null, axPrimaryOrthogonal.getFormatSpecifier( ), rtc, FORWARD ); oaxPrimaryOrthogonal.set( scPrimaryOrthogonal ); // UPDATE SCALE ON // PRIMARY-ORTHOGONAL AXIS // TODO here we should ignore the intersection Value/Max setting, always // use the Intersection.Min for 3D chart. the adjustVerticalXXX() should // return a double[] to // indicate a coordinate value. // ITERATIVELY ADJUST THE PRIMARY ORTHOGONAL AXIS POSITION DUE TO THE // SCALE, START/END LABELS double dYAxisLocationOnX = adjustHorizontal( dX, dW, aax ); // Iteratively adjust the ancillary base axis position due to the scale, // start/end // labels. double dYAxisLocationOnZ = adjustAncillary( dX, dW, aax ); // ITERATIVELY ADJUST THE PRIMARY BASE AXIS POSITION DUE TO THE SCALE, // START/END LABELS double dXAxisLocation = adjustVerticalDueToHorizontalPlane( dY, dH, aax ); // TODO Just use XAxisLocation as the ZAxisLocation now. double dZAxisLocation = dXAxisLocation; // SETUP THE FULL DATASET FOR THE PRIMARY ORTHOGONAL AXIS iAxisType = getAxisType( axPrimaryOrthogonal ); oaData = getTypedDataSet( axPrimaryOrthogonal, iAxisType, 0 ); scPrimaryOrthogonal.setData( dsi ); // Setup the full dataset for the ancillary base axis. iAxisType = getAxisType( axAncillaryBase ); if ( iAxisType != IConstants.TEXT ) { scAncillaryBase.setData( getTypedDataSet( axAncillaryBase, iAxisType, 0 ) ); } // SETUP THE FULL DATASET FOR THE PRIMARY ORTHOGONAL AXIS iAxisType = getAxisType( axPrimaryBase ); if ( iAxisType != IConstants.TEXT ) { scPrimaryBase.setData( getTypedDataSet( axPrimaryBase, iAxisType, 0 ) ); } scPrimaryBase.resetShifts( ); scAncillaryBase.resetShifts( ); scPrimaryOrthogonal.resetShifts( ); // UPDATE FOR OVERLAYS final OneAxis axPH = aax.areAxesSwapped( ) ? aax.getPrimaryOrthogonal( ) : aax.getPrimaryBase( ); final OneAxis axPV = aax.areAxesSwapped( ) ? aax.getPrimaryBase( ) : aax.getPrimaryOrthogonal( ); final OneAxis axAB = aax.getAncillaryBase( ); // keep old invocation to ensure compatibility. axPH.setAxisCoordinate( dXAxisLocation ); axPV.setAxisCoordinate( dYAxisLocationOnX ); axAB.setAxisCoordinate( dZAxisLocation ); // set new 3D axis coordinate. this coordinate has been normalized to // Zero-coordinates. axPH.setAxisCoordinate3D( Location3DImpl.create( 0, dXAxisLocation, dYAxisLocationOnZ ) ); axPV.setAxisCoordinate3D( Location3DImpl.create( dYAxisLocationOnX, 0, dYAxisLocationOnZ ) ); axAB.setAxisCoordinate3D( Location3DImpl.create( dYAxisLocationOnX, dZAxisLocation, 0 ) ); boPlotBackground = BoundsImpl.copyInstance( bo ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/088a907c90518d3b343babbab14770d00e175c7b/PlotWith3DAxes.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith3DAxes.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3671,
12,
20382,
800,
262,
1216,
14804,
503,
16,
1082,
202,
31237,
202,
95,
202,
202,
1075,
273,
800,
18,
20665,
1442,
12,
302,
2148,
774,
9037,
11272,
368,
3492,
5757,
202,
202,
759,
2660,
3671,
4166,
1315,
19517,
487,
1534,
6752,
18,
202,
202,
759,
302,
6485,
1315,
19517,
273,
202,
202,
759,
19316,
3217,
6964,
2120,
15234,
22965,
55,
12108,
10950,
4983,
4722,
19,
2248,
58,
1157,
45,
7535,
202,
202,
759,
2660,
2172,
7552,
3919,
4954,
16,
2026,
3671,
487,
1534,
326,
6752,
202,
202,
759,
5291,
18,
202,
202,
759,
14178,
999,
3634,
487,
787,
1634,
18,
202,
202,
9056,
302,
60,
273,
374,
31,
759,
800,
18,
588,
3910,
12,
262,
397,
2763,
3587,
18,
588,
3910,
12,
11272,
202,
202,
9056,
302,
61,
273,
374,
31,
759,
800,
18,
588,
3401,
12,
262,
397,
2763,
3587,
18,
588,
3401,
12,
11272,
202,
202,
9056,
302,
59,
273,
800,
18,
588,
2384,
12,
262,
300,
2763,
3587,
18,
588,
3910,
12,
262,
300,
2763,
3587,
18,
588,
4726,
12,
11272,
202,
202,
9056,
302,
44,
273,
800,
18,
588,
2686,
12,
262,
300,
2763,
3587,
18,
588,
3401,
12,
262,
300,
2763,
3587,
18,
588,
10393,
12,
11272,
202,
202,
759,
10685,
9722,
890,
17,
40,
463,
3114,
3156,
1146,
20747,
670,
29340,
18,
202,
202,
77,
8611,
273,
20283,
12,
14098,
69,
18,
588,
8611,
12,
262,
11272,
202,
202,
11231,
277,
8611,
422,
467,
2918,
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,
225,
202,
482,
918,
3671,
12,
20382,
800,
262,
1216,
14804,
503,
16,
1082,
202,
31237,
202,
95,
202,
202,
1075,
273,
800,
18,
20665,
1442,
12,
302,
2148,
774,
9037,
11272,
368,
3492,
5757,
202,
202,
759,
2660,
3671,
4166,
1315,
19517,
487,
1534,
6752,
18,
202,
202,
759,
302,
6485,
1315,
19517,
273,
202,
202,
759,
19316,
3217,
6964,
2120,
15234,
22965,
55,
12108,
10950,
4983,
4722,
19,
2248,
58,
1157,
45,
7535,
202,
202,
759,
2660,
2172,
7552,
3919,
4954,
16,
2026,
3671,
487,
1534,
326,
6752,
202,
202,
759,
5291,
18,
202,
202,
759,
14178,
999,
3634,
487,
787,
1634,
18,
202,
202,
9056,
302,
60,
273,
374,
31,
759,
800,
18,
588,
3910,
12,
2
] |
Subsets and Splits