rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
return new SFServerSocket(port, secEnv);
return new SFServerSocket(port, bindAddr, secEnv);
public ServerSocket createServerSocket(int port) throws IOException { /* We just configure the final socket and not this server socket, * for this reason we don't need a SSLServerSocketFactory. * However, we have to wrap it to pass the security * context. */ return new SFServerSocket(port, secEnv); }
4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/0b5981ae8092126b9b963abee4a4c38c5c45c6bf/SFServerSocketFactory.java/clean/core/smartfrog/src/org/smartfrog/sfcore/security/SFServerSocketFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3224, 4534, 30920, 4534, 12, 474, 1756, 13, 1216, 1860, 288, 3639, 1748, 1660, 2537, 5068, 326, 727, 2987, 471, 486, 333, 1438, 2987, 16, 540, 380, 364, 333, 3971, 732, 2727, 1404, 1608, 279, 7419, 2081, 4534, 1733, 18, 540, 380, 10724, 16, 732, 1240, 358, 2193, 518, 358, 1342, 326, 4373, 540, 380, 819, 18, 1195, 3639, 327, 394, 21318, 2081, 4534, 12, 655, 16, 1993, 3178, 16, 1428, 3491, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3224, 4534, 30920, 4534, 12, 474, 1756, 13, 1216, 1860, 288, 3639, 1748, 1660, 2537, 5068, 326, 727, 2987, 471, 486, 333, 1438, 2987, 16, 540, 380, 364, 333, 3971, 732, 2727, 1404, 1608, 279, 7419, 2081, 4534, 1733, 18, 540, 380, 10724, 16, 732, 1240, 358, 2193, 518, 358, 1342, 326, 4373, 540, 380, 819, 18, 1195, 3639, 327, 394, 21318, 2081, 4534, 12, 655, 16, 1993, 3178, 16, 1428, 3491, 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 ]
if (!info.exists()) {
if (!store.fetchInfo().exists()) {
public static String getLocationText(IResource resource) { if (!resource.isLocal(IResource.DEPTH_ZERO)) return NOT_LOCAL_TEXT; URI resolvedLocation = resource.getLocationURI(); URI location = resolvedLocation; if (resource.isLinked()) { location = resource.getRawLocationURI(); } if (location == null) { return NOT_EXIST_TEXT; } if (resolvedLocation != null && !isPathVariable(resource)) { // No path variable used. Display the file not exist message // in the location. Fixes bug 33318. IFileInfo info = getFileInfo(location); if (info == null) return UNKNOWN_LABEL; if (!info.exists()) { return NLS.bind(FILE_NOT_EXIST_TEXT, location.toString()); } } return location.toString(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/eb48d331be04e291f334df0895937b2de30fab69/IDEResourceInfoUtils.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/IDEResourceInfoUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 13312, 1528, 12, 45, 1420, 1058, 13, 288, 202, 202, 430, 16051, 3146, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 1082, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 202, 3098, 4640, 2735, 273, 1058, 18, 588, 2735, 3098, 5621, 202, 202, 3098, 2117, 273, 4640, 2735, 31, 202, 202, 430, 261, 3146, 18, 291, 13174, 10756, 288, 1082, 202, 3562, 273, 1058, 18, 588, 4809, 2735, 3098, 5621, 202, 202, 97, 202, 202, 430, 261, 3562, 422, 446, 13, 288, 1082, 202, 2463, 4269, 67, 11838, 67, 5151, 31, 202, 202, 97, 202, 202, 430, 261, 11792, 2735, 480, 446, 597, 401, 291, 743, 3092, 12, 3146, 3719, 288, 1082, 202, 759, 2631, 589, 2190, 1399, 18, 9311, 326, 585, 486, 1005, 883, 1082, 202, 759, 316, 326, 2117, 18, 12139, 281, 7934, 890, 3707, 2643, 18, 1082, 202, 45, 11995, 1123, 273, 6034, 966, 12, 3562, 1769, 1082, 202, 430, 261, 1376, 422, 446, 13, 9506, 202, 2463, 13598, 67, 13545, 31, 1082, 202, 430, 16051, 1376, 18, 1808, 10756, 288, 9506, 202, 2463, 29117, 18, 4376, 12, 3776, 67, 4400, 67, 11838, 67, 5151, 16, 2117, 18, 10492, 10663, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 2117, 18, 10492, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 13312, 1528, 12, 45, 1420, 1058, 13, 288, 202, 202, 430, 16051, 3146, 18, 291, 2042, 12, 45, 1420, 18, 27479, 67, 24968, 3719, 1082, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 202, 3098, 4640, 2735, 273, 1058, 18, 588, 2735, 3098, 5621, 202, 202, 3098, 2117, 273, 4640, 2735, 31, 202, 202, 430, 261, 3146, 18, 291, 13174, 10756, 288, 1082, 202, 3562, 273, 1058, 18, 588, 4809, 2735, 3098, 5621, 202, 202, 97, 202, 202, 430, 261, 3562, 422, 446, 13, 288, 1082, 202, 2463, 4269, 67, 11838, 67, 5151, 31, 202, 202, 97, 202, 202, 430, 261, 11792, 2735, 480, 446, 597, 401, 291, 743, 3092, 12, 3146, 3719, 2 ]
if (incrDecrType == Node.PRE_INC || incrDecrType == Node.POST_INC) {
if ((incrDecrMask & Node.DECR_FLAG) == 0) {
private void visitIncDec(Node node, boolean isInc) { int incrDecrType = node.getExistingIntProp(Node.INCRDECR_PROP); Node child = node.getFirstChild(); switch (child.getType()) { case Token.GETVAR: if (node.getIntProp(Node.ISNUMBER_PROP, -1) != -1) { boolean post = (incrDecrType == Node.POST_INC || incrDecrType == Node.POST_DEC); OptLocalVariable lVar = OptLocalVariable.get(child); short reg = lVar.getJRegister(); cfw.addDLoad(reg); if (post) { cfw.add(ByteCode.DUP2); } cfw.addPush(1.0); if (incrDecrType == Node.PRE_INC || incrDecrType == Node.POST_INC) { cfw.add(ByteCode.DADD); } else { cfw.add(ByteCode.DSUB); } if (!post) { cfw.add(ByteCode.DUP2); } cfw.addDStore(reg); break; } else if (hasVarsInRegs) { boolean post = (incrDecrType == Node.POST_INC || incrDecrType == Node.POST_DEC); OptLocalVariable lVar = OptLocalVariable.get(child); if (lVar == null) lVar = fnCurrent.getVar(child.getString()); short reg = lVar.getJRegister(); cfw.addALoad(reg); if (post) { cfw.add(ByteCode.DUP); } addObjectToDouble(); cfw.addPush(1.0); if (incrDecrType == Node.PRE_INC || incrDecrType == Node.POST_INC) { cfw.add(ByteCode.DADD); } else { cfw.add(ByteCode.DSUB); } addDoubleWrap(); if (!post) { cfw.add(ByteCode.DUP); } cfw.addAStore(reg); break; } // fallthrough case Token.NAME: cfw.addALoad(variableObjectLocal); cfw.addPush(child.getString()); // push name cfw.addPush(incrDecrType); addScriptRuntimeInvoke("nameIncrDecr", "(Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;" +"I)Ljava/lang/Object;"); break; case Token.GETPROP: { Node getPropChild = child.getFirstChild(); generateCodeFromNode(getPropChild, node); generateCodeFromNode(getPropChild.getNext(), node); cfw.addALoad(variableObjectLocal); cfw.addPush(incrDecrType); addScriptRuntimeInvoke("propIncrDecr", "(Ljava/lang/Object;" +"Ljava/lang/String;" +"Lorg/mozilla/javascript/Scriptable;" +"I)Ljava/lang/Object;"); break; } case Token.GETELEM: { Node getElemChild = child.getFirstChild(); generateCodeFromNode(getElemChild, node); generateCodeFromNode(getElemChild.getNext(), node); cfw.addALoad(variableObjectLocal); cfw.addPush(incrDecrType); addScriptRuntimeInvoke("elemIncrDecr", "(Ljava/lang/Object;" +"Ljava/lang/Object;" +"Lorg/mozilla/javascript/Scriptable;" +"I)Ljava/lang/Object;"); break; } case Token.GET_REF: { Node refChild = child.getFirstChild(); generateCodeFromNode(refChild, node); cfw.addPush(incrDecrType); addScriptRuntimeInvoke( "referenceIncrDecr", "(Ljava/lang/Object;I)Ljava/lang/Object;"); break; } default: Codegen.badTree(); } }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/cb3a4fef51dd031baf4bc78bcf8cc452587ea3b7/Codegen.java/buggy/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 14559, 1799, 12, 907, 756, 16, 1250, 8048, 71, 13, 565, 288, 3639, 509, 17633, 1799, 86, 559, 273, 756, 18, 588, 9895, 1702, 4658, 12, 907, 18, 706, 5093, 1639, 5093, 67, 15811, 1769, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 1620, 261, 3624, 18, 588, 559, 10756, 288, 1850, 648, 3155, 18, 3264, 7716, 30, 5411, 309, 261, 2159, 18, 588, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 300, 21, 13, 480, 300, 21, 13, 288, 7734, 1250, 1603, 273, 261, 267, 3353, 1799, 86, 559, 422, 2029, 18, 3798, 67, 23213, 27573, 747, 17633, 1799, 86, 559, 422, 2029, 18, 3798, 67, 1639, 39, 1769, 7734, 12056, 2042, 3092, 328, 1537, 273, 12056, 2042, 3092, 18, 588, 12, 3624, 1769, 7734, 3025, 960, 273, 328, 1537, 18, 588, 46, 3996, 5621, 7734, 6080, 91, 18, 1289, 40, 2563, 12, 1574, 1769, 7734, 309, 261, 2767, 13, 288, 10792, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 30387, 22, 1769, 7734, 289, 7734, 6080, 91, 18, 1289, 7621, 12, 21, 18, 20, 1769, 7734, 309, 261, 267, 3353, 1799, 86, 559, 422, 2029, 18, 3670, 67, 23213, 10792, 747, 17633, 1799, 86, 559, 422, 2029, 18, 3798, 67, 23213, 13, 7734, 288, 10792, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 40, 8355, 1769, 7734, 289, 469, 288, 10792, 6080, 91, 18, 1289, 12, 3216, 1085, 18, 3948, 3457, 1769, 7734, 289, 7734, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3757, 14559, 1799, 12, 907, 756, 16, 1250, 8048, 71, 13, 565, 288, 3639, 509, 17633, 1799, 86, 559, 273, 756, 18, 588, 9895, 1702, 4658, 12, 907, 18, 706, 5093, 1639, 5093, 67, 15811, 1769, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 1620, 261, 3624, 18, 588, 559, 10756, 288, 1850, 648, 3155, 18, 3264, 7716, 30, 5411, 309, 261, 2159, 18, 588, 1702, 4658, 12, 907, 18, 5127, 9931, 67, 15811, 16, 300, 21, 13, 480, 300, 21, 13, 288, 7734, 1250, 1603, 273, 261, 267, 3353, 1799, 86, 559, 422, 2029, 18, 3798, 67, 23213, 27573, 747, 17633, 1799, 86, 559, 422, 2029, 18, 3798, 67, 1639, 39, 1769, 2 ]
this.memory.getRightObjectMemory().size() );
this.memory.getObjectMemory().size() );
public void testRetractObject() { final DefaultFactHandle f0 = (DefaultFactHandle) this.workingMemory.getFactHandleFactory().newFactHandle( "cheese" ); final DefaultFactHandle f1 = (DefaultFactHandle) this.workingMemory.getFactHandleFactory().newFactHandle( "other cheese" ); final ReteTuple tuple0 = new ReteTuple( f0 ); this.node.assertObject( f0, this.context, this.workingMemory ); this.node.assertObject( f1, this.context, this.workingMemory ); assertEquals( 2, this.memory.getRightObjectMemory().size() ); // assert tuple, should add one to left memory this.node.assertTuple( tuple0, this.context, this.workingMemory ); // check memory assertEquals( 1, this.memory.getLeftTupleMemory().size() ); assertEquals( 0, this.sink.getRetracted().size() ); assertEquals( 1, this.sink.getAsserted().size() ); Assert.assertEquals( "Wrong number of elements in matching objects list ", 2, ((Collection) ((DefaultFactHandle) ((Tuple) ((Object[]) this.sink.getAsserted().get( 0 ))[0]).get( 1 )).getObject()).size() ); this.node.retractObject( f1, this.context, this.workingMemory ); assertEquals( 1, this.memory.getRightObjectMemory().size() ); assertEquals( 1, this.sink.getRetracted().size() ); assertEquals( 2, this.sink.getAsserted().size() ); Assert.assertEquals( "Wrong number of elements in matching objects list ", 1, ((Collection) ((DefaultFactHandle) ((Tuple) ((Object[]) this.sink.getAsserted().get( 1 ))[0]).get( 1 )).getObject()).size() ); this.node.retractObject( f0, this.context, this.workingMemory ); assertEquals( 0, this.memory.getRightObjectMemory().size() ); assertEquals( 2, this.sink.getRetracted().size() ); assertEquals( 3, this.sink.getAsserted().size() ); Assert.assertEquals( "Wrong number of elements in matching objects list ", 0, ((Collection) ((DefaultFactHandle) ((Tuple) ((Object[]) this.sink.getAsserted().get( 2 ))[0]).get( 1 )).getObject()).size() ); }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/93fd64d61101a9651da97426a9a5da8033ab5e71/CollectNodeTest.java/buggy/drools-core/src/test/java/org/drools/reteoo/CollectNodeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7055, 14266, 921, 1435, 288, 3639, 727, 2989, 9766, 3259, 284, 20, 273, 261, 1868, 9766, 3259, 13, 333, 18, 20478, 6031, 18, 588, 9766, 3259, 1733, 7675, 2704, 9766, 3259, 12, 315, 18706, 3392, 6, 11272, 3639, 727, 2989, 9766, 3259, 284, 21, 273, 261, 1868, 9766, 3259, 13, 333, 18, 20478, 6031, 18, 588, 9766, 3259, 1733, 7675, 2704, 9766, 3259, 12, 315, 3011, 19315, 3392, 6, 11272, 3639, 727, 534, 12865, 9038, 3193, 20, 273, 394, 534, 12865, 9038, 12, 284, 20, 11272, 3639, 333, 18, 2159, 18, 11231, 921, 12, 284, 20, 16, 27573, 333, 18, 2472, 16, 27573, 333, 18, 20478, 6031, 11272, 3639, 333, 18, 2159, 18, 11231, 921, 12, 284, 21, 16, 27573, 333, 18, 2472, 16, 27573, 333, 18, 20478, 6031, 11272, 3639, 1815, 8867, 12, 576, 16, 8227, 333, 18, 7858, 18, 588, 921, 6031, 7675, 1467, 1435, 11272, 3639, 368, 1815, 3193, 16, 1410, 527, 1245, 358, 2002, 3778, 3639, 333, 18, 2159, 18, 11231, 9038, 12, 3193, 20, 16, 1171, 9079, 333, 18, 2472, 16, 1171, 9079, 333, 18, 20478, 6031, 11272, 3639, 368, 866, 3778, 540, 1815, 8867, 12, 404, 16, 8227, 333, 18, 7858, 18, 588, 3910, 9038, 6031, 7675, 1467, 1435, 11272, 3639, 1815, 8867, 12, 374, 16, 8227, 333, 18, 17074, 18, 588, 7055, 14266, 329, 7675, 1467, 1435, 11272, 3639, 1815, 8867, 12, 404, 16, 8227, 333, 18, 17074, 18, 588, 8213, 329, 7675, 1467, 1435, 11272, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 7055, 14266, 921, 1435, 288, 3639, 727, 2989, 9766, 3259, 284, 20, 273, 261, 1868, 9766, 3259, 13, 333, 18, 20478, 6031, 18, 588, 9766, 3259, 1733, 7675, 2704, 9766, 3259, 12, 315, 18706, 3392, 6, 11272, 3639, 727, 2989, 9766, 3259, 284, 21, 273, 261, 1868, 9766, 3259, 13, 333, 18, 20478, 6031, 18, 588, 9766, 3259, 1733, 7675, 2704, 9766, 3259, 12, 315, 3011, 19315, 3392, 6, 11272, 3639, 727, 534, 12865, 9038, 3193, 20, 273, 394, 534, 12865, 9038, 12, 284, 20, 11272, 3639, 333, 18, 2159, 18, 11231, 921, 12, 284, 20, 16, 27573, 333, 18, 2472, 16, 27573, 333, 18, 20478, 6031, 11272, 3639, 333, 18, 2159, 18, 11231, 921, 2 ]
IASTParameterDeclaration result = createParameterDeclaration(); ((ASTNode) result).setOffsetAndLength(startingOffset, figureEndOffset( declSpec, declarator) - startingOffset); result.setDeclSpecifier(declSpec); declSpec.setParent(result); declSpec.setPropertyInParent(IASTParameterDeclaration.DECL_SPECIFIER); result.setDeclarator(declarator); declarator.setParent(result); declarator.setPropertyInParent(IASTParameterDeclaration.DECLARATOR); return result; }
IASTParameterDeclaration result = createParameterDeclaration(); ((ASTNode) result).setOffsetAndLength(startingOffset, figureEndOffset( declSpec, declarator) - startingOffset); result.setDeclSpecifier(declSpec); declSpec.setParent(result); declSpec.setPropertyInParent(IASTParameterDeclaration.DECL_SPECIFIER); result.setDeclarator(declarator); declarator.setParent(result); declarator.setPropertyInParent(IASTParameterDeclaration.DECLARATOR); return result; }
protected IASTParameterDeclaration parameterDeclaration() throws BacktrackException, EndOfFileException { IToken current = LA(1); int startingOffset = current.getOffset(); IASTDeclSpecifier declSpec = declSpecifierSeq(true); IASTDeclarator declarator = null; if (LT(1) != IToken.tSEMI) declarator = initDeclarator(); if (current == LA(1)) throwBacktrack(current.getOffset(), figureEndOffset(declSpec, declarator) - current.getOffset()); IASTParameterDeclaration result = createParameterDeclaration(); ((ASTNode) result).setOffsetAndLength(startingOffset, figureEndOffset( declSpec, declarator) - startingOffset); result.setDeclSpecifier(declSpec); declSpec.setParent(result); declSpec.setPropertyInParent(IASTParameterDeclaration.DECL_SPECIFIER); result.setDeclarator(declarator); declarator.setParent(result); declarator.setPropertyInParent(IASTParameterDeclaration.DECLARATOR); return result; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8d833f012a81dac41a0d33c7e0f047c1dfe415f2/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 467, 9053, 1662, 6094, 1569, 6094, 1435, 540, 1216, 4297, 4101, 503, 16, 4403, 951, 812, 503, 288, 1377, 467, 1345, 783, 273, 2928, 12, 21, 1769, 1377, 509, 5023, 2335, 273, 783, 18, 588, 2335, 5621, 1377, 467, 9053, 3456, 21416, 3496, 1990, 273, 3496, 21416, 6926, 12, 3767, 1769, 1377, 467, 9053, 31419, 3496, 5880, 273, 446, 31, 1377, 309, 261, 12050, 12, 21, 13, 480, 467, 1345, 18, 88, 1090, 7492, 13, 540, 3496, 5880, 273, 1208, 31419, 5621, 1377, 309, 261, 2972, 422, 2928, 12, 21, 3719, 540, 604, 2711, 4101, 12, 2972, 18, 588, 2335, 9334, 7837, 1638, 2335, 12, 8840, 1990, 16, 9079, 3496, 5880, 13, 9079, 300, 783, 18, 588, 2335, 10663, 1377, 467, 9053, 1662, 6094, 563, 273, 752, 1662, 6094, 5621, 1377, 14015, 9053, 907, 13, 563, 2934, 542, 2335, 1876, 1782, 12, 18526, 2335, 16, 7837, 1638, 2335, 12, 5411, 3496, 1990, 16, 3496, 5880, 13, 5411, 300, 5023, 2335, 1769, 1377, 563, 18, 542, 3456, 21416, 12, 8840, 1990, 1769, 1377, 3496, 1990, 18, 542, 3054, 12, 2088, 1769, 1377, 3496, 1990, 18, 542, 1396, 382, 3054, 12, 45, 9053, 1662, 6094, 18, 23956, 67, 13847, 10591, 1769, 1377, 563, 18, 542, 31419, 12, 8840, 5880, 1769, 1377, 3496, 5880, 18, 542, 3054, 12, 2088, 1769, 1377, 3496, 5880, 18, 542, 1396, 382, 3054, 12, 45, 9053, 1662, 6094, 18, 23956, 985, 3575, 1769, 1377, 327, 563, 31, 282, 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, 565, 4750, 467, 9053, 1662, 6094, 1569, 6094, 1435, 540, 1216, 4297, 4101, 503, 16, 4403, 951, 812, 503, 288, 1377, 467, 1345, 783, 273, 2928, 12, 21, 1769, 1377, 509, 5023, 2335, 273, 783, 18, 588, 2335, 5621, 1377, 467, 9053, 3456, 21416, 3496, 1990, 273, 3496, 21416, 6926, 12, 3767, 1769, 1377, 467, 9053, 31419, 3496, 5880, 273, 446, 31, 1377, 309, 261, 12050, 12, 21, 13, 480, 467, 1345, 18, 88, 1090, 7492, 13, 540, 3496, 5880, 273, 1208, 31419, 5621, 1377, 309, 261, 2972, 422, 2928, 12, 21, 3719, 540, 604, 2711, 4101, 12, 2972, 18, 588, 2335, 9334, 7837, 1638, 2335, 12, 8840, 1990, 16, 9079, 3496, 5880, 13, 9079, 300, 783, 18, 588, 2 ]
assertEquals("Incoorect default info", rCB.getDefaultText(),
assertEquals("Incorrect default info", rCB.getDefaultText(),
public void test02() { String[] defInfo = { "DefaultRealmInfo", "Another default realm info", "Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info Long string for default realm info " }; RealmCallback rCB; StringBuffer sb = new StringBuffer(""); String ss; for (int i = 0; i < prompts.length; i++) { for (int j = 0; j < prompts.length; j++) { rCB = new RealmCallback(prompts[i], defInfo[j]); assertEquals("Incoorect default info", rCB.getDefaultText(), defInfo[j]); assertEquals("Incorrect prompt", rCB.getPrompt(), prompts[i]); assertNull("Not null text", rCB.getText()); sb.replace(0, sb.length(), prompts[i]); sb.append(defInfo[j]); ss = sb.toString(); rCB.setText(ss); assertEquals("Incorrect text", rCB.getText(), ss); rCB.setText(null); assertNull("Not null text", rCB.getText()); } } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/ae46d4668c200c2403f7e7a3e4a3a7f350c99f5a/RealmCallbackTest.java/clean/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/RealmCallbackTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3103, 1435, 288, 3639, 514, 8526, 1652, 966, 273, 288, 7734, 315, 1868, 22545, 966, 3113, 7734, 315, 37, 24413, 805, 11319, 1123, 3113, 7734, 315, 3708, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 315, 289, 31, 3639, 15987, 81, 2428, 436, 8876, 31, 3639, 6674, 2393, 273, 394, 6674, 2932, 8863, 3639, 514, 5202, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 3012, 1092, 18, 2469, 31, 277, 27245, 288, 5411, 364, 261, 474, 525, 273, 374, 31, 525, 411, 3012, 1092, 18, 2469, 31, 525, 27245, 288, 7734, 436, 8876, 273, 394, 15987, 81, 2428, 12, 17401, 1092, 63, 77, 6487, 1652, 966, 63, 78, 19226, 7734, 1815, 8867, 2932, 16268, 805, 1123, 3113, 436, 8876, 18, 588, 1868, 1528, 9334, 13491, 1652, 966, 63, 78, 19226, 7734, 1815, 8867, 2932, 16268, 6866, 3113, 436, 8876, 18, 588, 15967, 9334, 3012, 1092, 63, 77, 19226, 7734, 1815, 2041, 2932, 1248, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3103, 1435, 288, 3639, 514, 8526, 1652, 966, 273, 288, 7734, 315, 1868, 22545, 966, 3113, 7734, 315, 37, 24413, 805, 11319, 1123, 3113, 7734, 315, 3708, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 1123, 3407, 533, 364, 805, 11319, 2 ]
ruby_class = (klass != null) ? klass : block.klass;
ruby.setRubyClass((klass != null) ? klass : block.klass);
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } RubyVarmap.push(ruby); pushClass(); RubyBlock block = rubyBlock.getTmp(); Frame frame = block.frame; frame.setPrev(getRubyFrame()); rubyFrame = frame; VALUE old_cref = ruby_cref; ruby_cref = (NODE)getRubyFrame().getCbase(); RubyScope oldScope = ruby.getRubyScope(); ruby.setRubyScope(block.scope); rubyBlock.pop(); if ((block.flags & RubyBlock.BLOCK_D_SCOPE) != 0) { dynamicVars = new RubyVarmap(null, null, block.dynamicVars); } else { dynamicVars = block.dynamicVars; } ruby_class = (klass != null) ? klass : block.klass; if (klass == null) { self = (RubyObject)block.self; } NODE node = block.body; if (block.var != null) { // try { if (block.var == NODE.ONE) { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() != 0) { throw new RubyArgumentException("wrong # of arguments ("+ ((RubyArray)value).length() + " for 0)"); } } else { if (block.var.nd_type() == NODE_MASGN) { massign(self, block.var, value, acheck); } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } assign(self, block.var, value, acheck); } } // } catch () { // goto pop_state; // } } else { if (acheck && value != null && value instanceof RubyArray && ((RubyArray)value).length() == 1) { value = ((RubyArray)value).entry(0); } } rubyIter.push(block.iter); while (true) { try { if (node == null) { result = ruby.getNil(); } else if (node.nd_type() == NODE_CFUNC || node.nd_type() == NODE_IFUNC) { if (value == null) { value = RubyArray.m_newArray(ruby, 0); } result = ((RubyCallbackMethod)node.nd_cfnc()).execute(value, new RubyObject[] {(RubyObject)node.nd_tval(), self}, ruby); } else { result = eval(self, node); } break; } catch (RedoException rExcptn) { } catch (NextException nExcptn) { result = ruby.getNil(); break; } catch (BreakException bExcptn) { break; } catch (ReturnException rExcptn) { break; } } // pop_state: rubyIter.pop(); popClass(); RubyVarmap.pop(ruby); rubyBlock.setTmp(block); rubyFrame = getRubyFrame().getPrev(); ruby_cref = (NODE)old_cref; // if (ruby_scope->flag & SCOPE_DONT_RECYCLE) // scope_dup(old_scope); ruby.setRubyScope(oldScope); /* * if (state) { * if (!block->tag) { * switch (state & TAG_MASK) { * case TAG_BREAK: * case TAG_RETURN: * jump_tag_but_local_jump(state & TAG_MASK); * break; * } * } * JUMP_TAG(state); * } */ return result; }
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, 2824, 20, 12, 54, 10340, 921, 460, 16, 19817, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 279, 1893, 13, 288, 3639, 19817, 921, 563, 273, 22155, 18, 588, 12616, 5621, 7734, 309, 16051, 12, 291, 1768, 6083, 1435, 747, 17646, 1768, 6083, 10756, 747, 261, 27768, 1768, 422, 446, 3719, 288, 5411, 604, 394, 3235, 2932, 23604, 2566, 596, 434, 1203, 8863, 3639, 289, 7734, 19817, 1537, 1458, 18, 6206, 12, 27768, 1769, 3639, 1817, 797, 5621, 3639, 19817, 1768, 1203, 273, 22155, 1768, 18, 588, 9161, 5621, 7734, 8058, 2623, 273, 1203, 18, 3789, 31, 3639, 2623, 18, 542, 9958, 12, 588, 54, 10340, 3219, 10663, 3639, 22155, 3219, 273, 2623, 31, 7734, 5848, 1592, 67, 71, 1734, 273, 22155, 67, 71, 1734, 31, 3639, 22155, 67, 71, 1734, 273, 261, 8744, 13, 588, 54, 10340, 3219, 7675, 588, 39, 1969, 5621, 7734, 19817, 3876, 1592, 3876, 273, 22155, 18, 588, 54, 10340, 3876, 5621, 3639, 22155, 18, 542, 54, 10340, 3876, 12, 2629, 18, 4887, 1769, 3639, 22155, 1768, 18, 5120, 5621, 7734, 309, 14015, 2629, 18, 7133, 473, 19817, 1768, 18, 11403, 67, 40, 67, 19444, 13, 480, 374, 13, 288, 5411, 5976, 5555, 273, 394, 19817, 1537, 1458, 12, 2011, 16, 446, 16, 1203, 18, 14507, 5555, 1769, 3639, 289, 469, 288, 5411, 5976, 5555, 273, 1203, 18, 14507, 5555, 31, 3639, 289, 7734, 22155, 18, 542, 54, 10340, 797, 12443, 22626, 480, 446, 13, 692, 7352, 294, 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, 2824, 20, 12, 54, 10340, 921, 460, 16, 19817, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 279, 1893, 13, 288, 3639, 19817, 921, 563, 273, 22155, 18, 588, 12616, 5621, 7734, 309, 16051, 12, 291, 1768, 6083, 1435, 747, 17646, 1768, 6083, 10756, 747, 261, 27768, 1768, 422, 446, 3719, 288, 5411, 604, 394, 3235, 2932, 23604, 2566, 596, 434, 1203, 8863, 3639, 289, 7734, 19817, 1537, 1458, 18, 6206, 12, 27768, 1769, 3639, 1817, 797, 5621, 3639, 19817, 1768, 1203, 273, 22155, 1768, 18, 588, 9161, 5621, 7734, 8058, 2623, 273, 1203, 18, 3789, 31, 3639, 2623, 18, 542, 9958, 12, 588, 54, 10340, 3219, 10663, 3639, 22155, 3219, 273, 2623, 31, 7734, 2 ]
public StaticGameLayers() { layers = new LinkedList<Pair<String, LayerRenderer>>(); collisions = new LinkedList<Pair<String, CollisionDetection>>(); tilestore = TileStore.get(); tilestore.add("data/tilesets/zelda_outside_0_chipset.png", 30 * 16); tilestore.add("data/tilesets/zelda_outside_1_chipset.png", 30 * 16); tilestore.add("data/tilesets/zelda_dungeon_0_chipset.png", 30 * 16); tilestore.add("data/tilesets/zelda_dungeon_1_chipset.png", 30 * 16); tilestore.add("data/tilesets/zelda_interior_0_chipset.png", 30 * 16); tilestore.add("data/tilesets/zelda_navigation_chipset.png", 1); tilestore.add("data/tilesets/zelda_objects_chipset.png", 10 * 10); tilestore.add("data/tilesets/zelda_collision_chipset.png", 2); tilestore.add("data/tilesets/zelda_building_0_tileset.png", 30 * 16); tilestore.add("data/tilesets/zelda_outside_2_chipset.png", 30 * 16); tilestore.add("data/tilesets/zelda_interior_1_chipset.png", 30 * 16); area = null; areaChanged = true; }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/5285eeeb365c4124fb1bfe6edb42c67dcdb41a28/StaticGameLayers.java/clean/src/games/stendhal/client/StaticGameLayers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5788, 12496, 9282, 1435, 202, 95, 202, 202, 10396, 33, 2704, 13174, 682, 32, 4154, 32, 780, 16, 4576, 6747, 9778, 5621, 202, 202, 12910, 12682, 33, 2704, 13174, 682, 32, 4154, 32, 780, 16, 13535, 1951, 10214, 9778, 5621, 202, 202, 1025, 25626, 33, 9337, 2257, 18, 588, 5621, 202, 202, 1025, 25626, 18, 1289, 2932, 892, 19, 28366, 2413, 19, 94, 488, 69, 67, 659, 5564, 67, 20, 67, 343, 625, 542, 18, 6446, 3113, 5082, 14, 2313, 1769, 202, 202, 1025, 25626, 18, 1289, 2932, 892, 19, 28366, 2413, 19, 94, 488, 69, 67, 659, 5564, 67, 21, 67, 343, 625, 542, 18, 6446, 3113, 5082, 14, 2313, 1769, 202, 202, 1025, 25626, 18, 1289, 2932, 892, 19, 28366, 2413, 19, 94, 488, 69, 67, 72, 25561, 265, 67, 20, 67, 343, 625, 542, 18, 6446, 3113, 5082, 14, 2313, 1769, 202, 202, 1025, 25626, 18, 1289, 2932, 892, 19, 28366, 2413, 19, 94, 488, 69, 67, 72, 25561, 265, 67, 21, 67, 343, 625, 542, 18, 6446, 3113, 5082, 14, 2313, 1769, 202, 202, 1025, 25626, 18, 1289, 2932, 892, 19, 28366, 2413, 19, 94, 488, 69, 67, 2761, 9659, 67, 20, 67, 343, 625, 542, 18, 6446, 3113, 5082, 14, 2313, 1769, 202, 202, 1025, 25626, 18, 1289, 2932, 892, 19, 28366, 2413, 19, 94, 488, 69, 67, 19537, 67, 343, 625, 542, 18, 6446, 3113, 21, 1769, 202, 202, 1025, 25626, 18, 1289, 2932, 892, 19, 28366, 2413, 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, 5788, 12496, 9282, 1435, 202, 95, 202, 202, 10396, 33, 2704, 13174, 682, 32, 4154, 32, 780, 16, 4576, 6747, 9778, 5621, 202, 202, 12910, 12682, 33, 2704, 13174, 682, 32, 4154, 32, 780, 16, 13535, 1951, 10214, 9778, 5621, 202, 202, 1025, 25626, 33, 9337, 2257, 18, 588, 5621, 202, 202, 1025, 25626, 18, 1289, 2932, 892, 19, 28366, 2413, 19, 94, 488, 69, 67, 659, 5564, 67, 20, 67, 343, 625, 542, 18, 6446, 3113, 5082, 14, 2313, 1769, 202, 202, 1025, 25626, 18, 1289, 2932, 892, 19, 28366, 2413, 19, 94, 488, 69, 67, 659, 5564, 67, 21, 67, 343, 625, 542, 18, 6446, 3113, 5082, 14, 2313, 1769, 202, 202, 1025, 25626, 2 ]
((ru.novosoft.uml.foundation.core.MModelElement) mee.getOldValue())
((MModelElement) mee.getOldValue())
public void propertySet(MElementEvent mee) { critiqueASAP(mee.getSource(), ((ru.novosoft.uml.foundation.core.MModelElement) mee.getOldValue()) .getName()); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/23464f9cbc3169e9d2f1919998cae2c59b514985/Designer.java/buggy/src_new/org/argouml/cognitive/Designer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1272, 694, 12, 12310, 1133, 312, 1340, 13, 288, 3639, 7921, 2161, 3033, 2203, 12, 81, 1340, 18, 588, 1830, 9334, 1082, 377, 14015, 8653, 18, 82, 1527, 538, 4401, 18, 22192, 18, 30493, 18, 3644, 18, 49, 1488, 1046, 13, 312, 1340, 18, 588, 7617, 620, 10756, 1082, 377, 263, 17994, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1272, 694, 12, 12310, 1133, 312, 1340, 13, 288, 3639, 7921, 2161, 3033, 2203, 12, 81, 1340, 18, 588, 1830, 9334, 1082, 377, 14015, 8653, 18, 82, 1527, 538, 4401, 18, 22192, 18, 30493, 18, 3644, 18, 49, 1488, 1046, 13, 312, 1340, 18, 588, 7617, 620, 10756, 1082, 377, 263, 17994, 10663, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
long startFetch = (new Date()).getTime();
public void runFetch() throws BioException, ParseException { // get time long startFetch = (new Date()).getTime(); DAS.startedActivity(this); URL fURL = null; try { String fetchEncoding = "dasgff"; if (DASCapabilities.checkCapable(new URL(dataSource, "../"), DASCapabilities.CAPABILITY_FEATURETABLE, DASCapabilities.CAPABILITY_FEATURETABLE_XFF)) { fetchEncoding = "xff"; } // We don't bother with XML-encoded fetches any more. // Nice idea, but now kind-of redundant. HttpURLConnection huc = null; Set segmentObjs = ticketsBySegment.keySet(); StringBuffer sb = new StringBuffer(); for (Iterator i = segmentObjs.iterator(); i.hasNext(); ) { Object seg = (Object) i.next(); sb.append("segment="); Segment segment = (Segment) seg; sb.append(segment.getID()); if (segment.isBounded()) { sb.append(':'); sb.append(segment.getStart()); sb.append(','); sb.append(segment.getStop()); } if (i.hasNext()) { sb.append(';'); } } String segments = sb.substring(0); // System.err.println("Fetching: " + segments); String encodingRequest = "categorize=yes;"; if (fetchEncoding.equals("dasgff")) { encodingRequest += ""; } else { encodingRequest += "encoding=" + fetchEncoding + ";"; } String typeRequest = ""; if (type != null) { typeRequest = "type=" + type + ";"; } String categoryRequest = ""; if (category != null) { categoryRequest = "category=" + category + ";"; } String queryString = encodingRequest + categoryRequest + typeRequest + segments; // System.err.println("Fetching: " + queryString); // fURL = new URL(dataSource, "features?" + encodingRequest + categoryRequest + typeRequest + segments); // huc = (HttpURLConnection) fURL.openConnection(); // huc.setRequestProperty("Accept-Encoding", "gzip"); fURL = new URL(dataSource, "features"); { int tries = 0; while(true) { huc = (HttpURLConnection) fURL.openConnection(); huc.setRequestMethod("POST"); huc.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); huc.setRequestProperty("Accept-Encoding", "gzip"); huc.setDoOutput(true); OutputStream os = huc.getOutputStream(); PrintStream ps = new PrintStream(os); ps.print(queryString); ps.close(); huc.connect(); tries++; // int status = huc.getHeaderFieldInt("X-DAS-Status", 0); int status = DASSequenceDB.tolerantIntHeader(huc, "X-DAS-Status"); if(status == 200) { break; } else if(tries >= 3) { if (status == 0) { throw new BioRuntimeException("Not a DAS server: " + fURL.toString()); } else if (status != 200) { throw new BioRuntimeException("DAS error (status code = " + status + ") fetching " + fURL.toString() + " with query " + queryString); } } } } // determine if I'm getting a gzipped reply String contentEncoding = huc.getContentEncoding(); InputStream inStream = huc.getInputStream(); if (contentEncoding != null) { if (contentEncoding.indexOf("gzip") != -1) { // we have gzip encoding inStream = new GZIPInputStream(inStream); // System.out.println("gzip encoding!"); } } InputSource is = new InputSource(inStream); is.setSystemId(fURL.toString()); DASFeaturesHandler dfh = new DASFeaturesHandler(ticketsBySegment, this, fetchEncoding); XMLReader parser = DASSequence.nonvalidatingSAXParser(); parser.setContentHandler(new SAX2StAXAdaptor(dfh)); parser.parse(is); doneTickets = dfh.getDoneTickets(); } catch (IOException ex) { throw new ParseException(ex); } catch (SAXException ex) { throw new ParseException(ex, "Error parsing XML from " + fURL); } finally { DAS.completedActivity(this); } }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/dc62a0a7cf481c21c3be647214959067a3b98f61/FeatureFetcher.java/clean/src/org/biojava/bio/program/das/FeatureFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 5005, 1435, 202, 15069, 21209, 503, 16, 10616, 565, 288, 3639, 368, 336, 813, 3639, 1525, 787, 5005, 273, 261, 2704, 2167, 1435, 2934, 588, 950, 5621, 202, 40, 3033, 18, 14561, 6193, 12, 2211, 1769, 202, 1785, 284, 1785, 273, 446, 31, 202, 698, 288, 202, 565, 514, 2158, 4705, 273, 315, 28831, 75, 1403, 14432, 202, 565, 309, 261, 40, 8633, 438, 5756, 18, 1893, 4664, 429, 12, 2704, 1976, 12, 892, 1830, 16, 315, 838, 4898, 3631, 25083, 377, 463, 8633, 438, 5756, 18, 17296, 22879, 67, 18257, 7775, 16, 25083, 377, 463, 8633, 438, 5756, 18, 17296, 22879, 67, 18257, 7775, 67, 60, 2246, 3719, 202, 565, 288, 202, 202, 5754, 4705, 273, 315, 5297, 14432, 202, 565, 289, 202, 565, 368, 1660, 2727, 1404, 23440, 598, 3167, 17, 10787, 17675, 1281, 1898, 18, 202, 565, 368, 423, 1812, 21463, 16, 1496, 2037, 3846, 17, 792, 19530, 18, 202, 565, 19084, 366, 5286, 273, 446, 31, 202, 565, 1000, 3267, 2675, 87, 273, 24475, 858, 4131, 18, 856, 694, 5621, 202, 565, 6674, 2393, 273, 394, 6674, 5621, 202, 565, 364, 261, 3198, 277, 273, 3267, 2675, 87, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 288, 202, 202, 921, 2291, 273, 261, 921, 13, 277, 18, 4285, 5621, 202, 202, 18366, 18, 6923, 2932, 9273, 1546, 1769, 202, 202, 4131, 3267, 273, 261, 4131, 13, 2291, 31, 202, 202, 18366, 18, 6923, 12, 9273, 18, 588, 734, 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, 1086, 5005, 1435, 202, 15069, 21209, 503, 16, 10616, 565, 288, 3639, 368, 336, 813, 3639, 1525, 787, 5005, 273, 261, 2704, 2167, 1435, 2934, 588, 950, 5621, 202, 40, 3033, 18, 14561, 6193, 12, 2211, 1769, 202, 1785, 284, 1785, 273, 446, 31, 202, 698, 288, 202, 565, 514, 2158, 4705, 273, 315, 28831, 75, 1403, 14432, 202, 565, 309, 261, 40, 8633, 438, 5756, 18, 1893, 4664, 429, 12, 2704, 1976, 12, 892, 1830, 16, 315, 838, 4898, 3631, 25083, 377, 463, 8633, 438, 5756, 18, 17296, 22879, 67, 18257, 7775, 16, 25083, 377, 463, 8633, 438, 5756, 18, 17296, 22879, 67, 18257, 7775, 67, 60, 2246, 3719, 202, 565, 288, 202, 202, 5754, 2 ]
results = compare(retEnv, tempPath); assertTrue(results);
compare(retEnv, tempPath);
public void testR2BaseEchoStructArray() throws AxisFault { url = "http://www.whitemesa.net/interop/std"; soapAction = "http://soapinterop.org/"; util = new Round2EchoStructArrayClientUtil(); retEnv = SunRound2Client.sendMsg(util, url, soapAction); tempPath = resFilePath + "WMBaseStructArrayRes.xml"; results = compare(retEnv, tempPath); assertTrue(results); }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/6295a3864398ed319578fb0b345f1adafef73782/WMRound2InteropTest.java/clean/modules/integration/itest/test/interop/whitemesa/round2/WMRound2InteropTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 54, 22, 2171, 19704, 3823, 1076, 1435, 1216, 15509, 7083, 225, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 3350, 1726, 281, 69, 18, 2758, 19, 30376, 19, 5084, 14432, 3639, 9930, 1803, 273, 315, 2505, 2207, 19215, 30376, 18, 3341, 4898, 31, 3639, 1709, 273, 394, 11370, 22, 19704, 3823, 1076, 1227, 1304, 5621, 3639, 325, 3491, 273, 31608, 11066, 22, 1227, 18, 4661, 3332, 12, 1367, 16, 880, 16, 9930, 1803, 1769, 3639, 1906, 743, 273, 400, 5598, 397, 315, 25173, 2171, 3823, 1076, 607, 18, 2902, 14432, 3639, 1686, 273, 3400, 12, 1349, 3491, 16, 1906, 743, 1769, 3639, 1815, 5510, 12, 4717, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 1842, 54, 22, 2171, 19704, 3823, 1076, 1435, 1216, 15509, 7083, 225, 288, 3639, 880, 273, 315, 2505, 2207, 5591, 18, 3350, 1726, 281, 69, 18, 2758, 19, 30376, 19, 5084, 14432, 3639, 9930, 1803, 273, 315, 2505, 2207, 19215, 30376, 18, 3341, 4898, 31, 3639, 1709, 273, 394, 11370, 22, 19704, 3823, 1076, 1227, 1304, 5621, 3639, 325, 3491, 273, 31608, 11066, 22, 1227, 18, 4661, 3332, 12, 1367, 16, 880, 16, 9930, 1803, 1769, 3639, 1906, 743, 273, 400, 5598, 397, 315, 25173, 2171, 3823, 1076, 607, 18, 2902, 14432, 3639, 1686, 273, 3400, 12, 1349, 3491, 16, 1906, 743, 1769, 3639, 1815, 5510, 12, 4717, 1769, 565, 289, 2, -100, -100, -100, -100, -100 ]
s.append(actionCommand).append(",when=").append(when).append("modifiers");
s.append(actionCommand).append(",when=").append(when).append(",modifiers");
public String paramString() { StringBuffer s = new StringBuffer(id == ACTION_PERFORMED ? "ACTION_PERFORMED,cmd=" : "unknown type,cmd="); s.append(actionCommand).append(",when=").append(when).append("modifiers"); int len = s.length(); s.setLength(len + 1); if ((modifiers & META_MASK) != 0) s.append("+Meta"); if ((modifiers & CTRL_MASK) != 0) s.append("+Ctrl"); if ((modifiers & ALT_MASK) != 0) s.append("+Alt"); if ((modifiers & SHIFT_MASK) != 0) s.append("+Shift"); if ((modifiers & InputEvent.ALT_GRAPH_MASK) != 0) s.append("+Alt Graph"); if ((modifiers & InputEvent.BUTTON1_MASK) != 0) s.append("+Button1"); s.setCharAt(len, '='); return s.toString(); }
25337 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25337/6b43349247a03c2f49ef190f3384715289064647/ActionEvent.java/buggy/libjava/java/awt/event/ActionEvent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 579, 780, 1435, 225, 288, 565, 6674, 272, 273, 394, 6674, 12, 350, 422, 11385, 67, 3194, 7473, 25773, 4766, 1377, 692, 315, 12249, 67, 3194, 7473, 25773, 16, 4172, 1546, 4766, 1377, 294, 315, 8172, 618, 16, 4172, 1546, 1769, 565, 272, 18, 6923, 12, 1128, 2189, 2934, 6923, 2932, 16, 13723, 1546, 2934, 6923, 12, 13723, 2934, 6923, 2932, 16, 15432, 8863, 565, 509, 562, 273, 272, 18, 2469, 5621, 565, 272, 18, 542, 1782, 12, 1897, 397, 404, 1769, 565, 309, 14015, 15432, 473, 16970, 67, 11704, 13, 480, 374, 13, 1377, 272, 18, 6923, 2932, 15, 2781, 8863, 565, 309, 14015, 15432, 473, 31568, 48, 67, 11704, 13, 480, 374, 13, 1377, 272, 18, 6923, 2932, 15, 12418, 8863, 565, 309, 14015, 15432, 473, 30939, 67, 11704, 13, 480, 374, 13, 1377, 272, 18, 6923, 2932, 15, 10655, 8863, 565, 309, 14015, 15432, 473, 6122, 17925, 67, 11704, 13, 480, 374, 13, 1377, 272, 18, 6923, 2932, 15, 10544, 8863, 565, 309, 14015, 15432, 473, 2741, 1133, 18, 18255, 67, 24372, 67, 11704, 13, 480, 374, 13, 1377, 272, 18, 6923, 2932, 15, 10655, 5601, 8863, 565, 309, 14015, 15432, 473, 2741, 1133, 18, 20068, 21, 67, 11704, 13, 480, 374, 13, 1377, 272, 18, 6923, 2932, 15, 3616, 21, 8863, 565, 272, 18, 542, 2156, 861, 12, 1897, 16, 5214, 1769, 565, 327, 272, 18, 10492, 5621, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 579, 780, 1435, 225, 288, 565, 6674, 272, 273, 394, 6674, 12, 350, 422, 11385, 67, 3194, 7473, 25773, 4766, 1377, 692, 315, 12249, 67, 3194, 7473, 25773, 16, 4172, 1546, 4766, 1377, 294, 315, 8172, 618, 16, 4172, 1546, 1769, 565, 272, 18, 6923, 12, 1128, 2189, 2934, 6923, 2932, 16, 13723, 1546, 2934, 6923, 12, 13723, 2934, 6923, 2932, 16, 15432, 8863, 565, 509, 562, 273, 272, 18, 2469, 5621, 565, 272, 18, 542, 1782, 12, 1897, 397, 404, 1769, 565, 309, 14015, 15432, 473, 16970, 67, 11704, 13, 480, 374, 13, 1377, 272, 18, 6923, 2932, 15, 2781, 8863, 565, 309, 14015, 15432, 473, 31568, 48, 67, 11704, 13, 480, 374, 13, 1377, 2 ]
return wrap_double(realThis(thisObj, f, true). jsFunction_valueOf());
return wrap_double(realThis(thisObj, f, true).date);
public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { switch (methodId) { case ConstructorId_UTC: return wrap_double(jsStaticFunction_UTC(args)); case ConstructorId_parse: return wrap_double(jsStaticFunction_parse (ScriptRuntime.toString(args, 0))); case Id_constructor: return jsConstructor(args, thisObj == null); case Id_toString: return realThis(thisObj, f, true). jsFunction_toString(); case Id_toTimeString: return realThis(thisObj, f, true). jsFunction_toTimeString(); case Id_toDateString: return realThis(thisObj, f, true). jsFunction_toDateString(); case Id_toLocaleString: return realThis(thisObj, f, true). jsFunction_toLocaleString(); case Id_toLocaleTimeString: return realThis(thisObj, f, true). jsFunction_toLocaleTimeString(); case Id_toLocaleDateString: return realThis(thisObj, f, true). jsFunction_toLocaleDateString(); case Id_toGMTString: case Id_toUTCString: return realThis(thisObj, f, true). jsFunction_toUTCString(); case Id_valueOf: return wrap_double(realThis(thisObj, f, true). jsFunction_valueOf()); case Id_getTime: return wrap_double(realThis(thisObj, f, true). jsFunction_getTime()); case Id_getYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getYear(cx)); case Id_getFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getFullYear()); case Id_getUTCFullYear: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCFullYear()); case Id_getMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getMonth()); case Id_getUTCMonth: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMonth()); case Id_getDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getDate()); case Id_getUTCDate: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDate()); case Id_getDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getDay()); case Id_getUTCDay: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCDay()); case Id_getHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getHours()); case Id_getUTCHours: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCHours()); case Id_getMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getMinutes()); case Id_getUTCMinutes: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMinutes()); case Id_getSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getSeconds()); case Id_getUTCSeconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCSeconds()); case Id_getMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getMilliseconds()); case Id_getUTCMilliseconds: return wrap_double(realThis(thisObj, f, true). jsFunction_getUTCMilliseconds()); case Id_getTimezoneOffset: return wrap_double(realThis(thisObj, f, true). jsFunction_getTimezoneOffset()); case Id_setTime: return wrap_double(realThis(thisObj, f, true). jsFunction_setTime(ScriptRuntime.toNumber(args, 0))); case Id_setMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setMilliseconds(args)); case Id_setUTCMilliseconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMilliseconds(args)); case Id_setSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setSeconds(args)); case Id_setUTCSeconds: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCSeconds(args)); case Id_setMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setMinutes(args)); case Id_setUTCMinutes: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMinutes(args)); case Id_setHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setHours(args)); case Id_setUTCHours: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCHours(args)); case Id_setDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setDate(args)); case Id_setUTCDate: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCDate(args)); case Id_setMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setMonth(args)); case Id_setUTCMonth: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCMonth(args)); case Id_setFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setFullYear(args)); case Id_setUTCFullYear: return wrap_double(realThis(thisObj, f, false). jsFunction_setUTCFullYear(args)); case Id_setYear: return wrap_double(realThis(thisObj, f, true). jsFunction_setYear(ScriptRuntime.toNumber(args, 0))); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/fb69c14ae4e860dfb5b5df7d866e510acca73ed9/NativeDate.java/clean/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 18541, 4678, 13, 288, 5411, 1620, 261, 2039, 548, 13, 288, 7734, 648, 11417, 548, 67, 11471, 30, 5397, 327, 2193, 67, 9056, 12, 2924, 5788, 2083, 67, 11471, 12, 1968, 10019, 7734, 648, 11417, 548, 67, 2670, 30, 5397, 327, 2193, 67, 9056, 12, 2924, 5788, 2083, 67, 2670, 13491, 261, 3651, 5576, 18, 10492, 12, 1968, 16, 374, 3719, 1769, 7734, 648, 3124, 67, 12316, 30, 10792, 327, 3828, 6293, 12, 1968, 16, 15261, 422, 446, 1769, 7734, 648, 3124, 67, 10492, 30, 5397, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 16, 638, 2934, 13491, 3828, 2083, 67, 10492, 5621, 7734, 648, 3124, 67, 869, 950, 780, 30, 5397, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 16, 638, 2934, 13491, 3828, 2083, 67, 869, 950, 780, 5621, 7734, 648, 3124, 67, 869, 1626, 780, 30, 10792, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 16, 638, 2934, 13491, 3828, 2083, 67, 869, 1626, 780, 5621, 7734, 648, 3124, 67, 869, 3916, 780, 30, 5397, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 16, 638, 2934, 13491, 3828, 2083, 67, 869, 3916, 780, 5621, 7734, 648, 3124, 67, 869, 3916, 950, 780, 30, 5397, 327, 2863, 2503, 12, 2211, 2675, 16, 284, 16, 638, 2934, 13491, 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, 1033, 1196, 1305, 3639, 261, 474, 707, 548, 16, 3124, 2083, 284, 16, 540, 1772, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 18541, 4678, 13, 288, 5411, 1620, 261, 2039, 548, 13, 288, 7734, 648, 11417, 548, 67, 11471, 30, 5397, 327, 2193, 67, 9056, 12, 2924, 5788, 2083, 67, 11471, 12, 1968, 10019, 7734, 648, 11417, 548, 67, 2670, 30, 5397, 327, 2193, 67, 9056, 12, 2924, 5788, 2083, 67, 2670, 13491, 261, 3651, 5576, 18, 10492, 12, 1968, 16, 374, 3719, 1769, 7734, 648, 3124, 67, 12316, 30, 10792, 327, 3828, 6293, 12, 1968, 16, 15261, 422, 446, 1769, 7734, 648, 2 ]
int n = t.size(); if (n == 0) return;
int n = t.size(); if (n == 0) return;
public void putAll(Map t) { int n = t.size(); if (n == 0) return; // Expand enough to hold at least n elements without resizing. // We can only resize table by factor of two at a time. // It is faster to rehash with fewer elements, so do it now. for(;;) { Entry[] tab; int max; synchronized(segments[0]) { // must synch on some segment. pick 0. tab = table; max = threshold * CONCURRENCY_LEVEL; } if (n < max) break; resize(0, tab); } for (Iterator it = t.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry) it.next(); put(entry.getKey(), entry.getValue()); } }
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/ConcurrentHashMap.java/buggy/src/java/org/logicalcobwebs/concurrent/ConcurrentHashMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 13497, 12, 863, 268, 13, 288, 565, 509, 290, 273, 268, 18, 1467, 5621, 565, 309, 261, 82, 422, 374, 13, 1377, 327, 31, 565, 368, 16429, 7304, 358, 6887, 622, 4520, 290, 2186, 2887, 400, 6894, 18, 565, 368, 1660, 848, 1338, 7041, 1014, 635, 5578, 434, 2795, 622, 279, 813, 18, 565, 368, 2597, 353, 12063, 358, 283, 2816, 598, 27886, 2186, 16, 1427, 741, 518, 2037, 18, 565, 364, 12, 25708, 13, 288, 1377, 3841, 8526, 3246, 31, 1377, 509, 943, 31, 1377, 3852, 12, 12838, 63, 20, 5717, 288, 368, 1297, 272, 2515, 603, 2690, 3267, 18, 6002, 374, 18, 3639, 3246, 273, 1014, 31, 3639, 943, 273, 5573, 380, 3492, 7509, 25231, 67, 10398, 31, 1377, 289, 1377, 309, 261, 82, 411, 943, 13, 3639, 898, 31, 1377, 7041, 12, 20, 16, 3246, 1769, 565, 289, 565, 364, 261, 3198, 518, 273, 268, 18, 4099, 694, 7675, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 1377, 1635, 18, 1622, 1241, 273, 261, 863, 18, 1622, 13, 518, 18, 4285, 5621, 1377, 1378, 12, 4099, 18, 588, 653, 9334, 1241, 18, 24805, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 13497, 12, 863, 268, 13, 288, 565, 509, 290, 273, 268, 18, 1467, 5621, 565, 309, 261, 82, 422, 374, 13, 1377, 327, 31, 565, 368, 16429, 7304, 358, 6887, 622, 4520, 290, 2186, 2887, 400, 6894, 18, 565, 368, 1660, 848, 1338, 7041, 1014, 635, 5578, 434, 2795, 622, 279, 813, 18, 565, 368, 2597, 353, 12063, 358, 283, 2816, 598, 27886, 2186, 16, 1427, 741, 518, 2037, 18, 565, 364, 12, 25708, 13, 288, 1377, 3841, 8526, 3246, 31, 1377, 509, 943, 31, 1377, 3852, 12, 12838, 63, 20, 5717, 288, 368, 1297, 272, 2515, 603, 2690, 3267, 18, 6002, 374, 18, 3639, 3246, 273, 1014, 31, 3639, 943, 273, 5573, 380, 3492, 7509, 2 ]
decompiler.addToken(Token.NEW); decompiler.addToken(Token.DOT);
private Node xmlInitializer() throws IOException { int tt = ts.getFirstXMLToken(); if (tt != Token.XML && tt != Token.XMLEND) { reportError("msg.syntax"); return null; } /* Make a NEW node to append to. */ Node pnXML = nf.createLeaf(Token.NEW); decompiler.addToken(Token.NEW); decompiler.addToken(Token.DOT); String xml = ts.getString(); boolean fAnonymous = xml.trim().startsWith("<>"); decompiler.addName(fAnonymous ? "XMLList" : "XML"); Node pn = nf.createName(fAnonymous ? "XMLList" : "XML"); nf.addChildToBack(pnXML, pn); pn = null; Node expr; for (;;tt = ts.getNextXMLToken()) { switch (tt) { case Token.XML: xml = ts.getString(); decompiler.addString(xml); mustMatchToken(Token.LC, "msg.syntax"); decompiler.addToken(Token.LC); expr = (peekToken() == Token.RC) ? nf.createString("") : expr(false); mustMatchToken(Token.RC, "msg.syntax"); decompiler.addToken(Token.RC); if (pn == null) { pn = nf.createString(xml); } else { pn = nf.createBinary(Token.ADD, pn, nf.createString(xml)); } int nodeType; if (ts.isXMLAttribute()) { nodeType = Token.ESCXMLATTR; } else { nodeType = Token.ESCXMLTEXT; } expr = nf.createUnary(nodeType, expr); pn = nf.createBinary(Token.ADD, pn, expr); break; case Token.XMLEND: xml = ts.getString(); decompiler.addString(xml); if (pn == null) { pn = nf.createString(xml); } else { pn = nf.createBinary(Token.ADD, pn, nf.createString(xml)); } nf.addChildToBack(pnXML, pn); return pnXML; default: reportError("msg.syntax"); return null; } } }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/0fed473ecf7555dad9d65d89f4933672abd9d7e4/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 2025, 14729, 1435, 1216, 1860, 565, 288, 3639, 509, 3574, 273, 3742, 18, 588, 3759, 4201, 1345, 5621, 3639, 309, 261, 748, 480, 3155, 18, 4201, 597, 3574, 480, 3155, 18, 60, 9687, 2908, 13, 288, 5411, 17887, 2932, 3576, 18, 14308, 8863, 5411, 327, 446, 31, 3639, 289, 3639, 1748, 4344, 279, 12887, 756, 358, 714, 358, 18, 1195, 3639, 2029, 11059, 4201, 273, 13958, 18, 2640, 9858, 12, 1345, 18, 12917, 1769, 3639, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 12917, 1769, 3639, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 17591, 1769, 3639, 514, 2025, 273, 3742, 18, 588, 780, 5621, 3639, 1250, 284, 18792, 273, 2025, 18, 5290, 7675, 17514, 1190, 2932, 32, 2984, 1769, 3639, 443, 9576, 18, 1289, 461, 12, 74, 18792, 692, 315, 4201, 682, 6, 294, 315, 4201, 8863, 3639, 2029, 11059, 273, 13958, 18, 2640, 461, 12, 74, 18792, 692, 315, 4201, 682, 6, 294, 315, 4201, 8863, 3639, 13958, 18, 1289, 1763, 774, 2711, 12, 7449, 4201, 16, 11059, 1769, 3639, 11059, 273, 446, 31, 3639, 2029, 3065, 31, 3639, 364, 261, 25708, 748, 273, 3742, 18, 588, 2134, 4201, 1345, 10756, 288, 5411, 1620, 261, 748, 13, 288, 5411, 648, 3155, 18, 4201, 30, 7734, 2025, 273, 3742, 18, 588, 780, 5621, 7734, 443, 9576, 18, 1289, 780, 12, 2902, 1769, 7734, 1297, 2060, 1345, 12, 1345, 18, 13394, 16, 315, 3576, 18, 14308, 8863, 7734, 443, 9576, 18, 1289, 1345, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 2025, 14729, 1435, 1216, 1860, 565, 288, 3639, 509, 3574, 273, 3742, 18, 588, 3759, 4201, 1345, 5621, 3639, 309, 261, 748, 480, 3155, 18, 4201, 597, 3574, 480, 3155, 18, 60, 9687, 2908, 13, 288, 5411, 17887, 2932, 3576, 18, 14308, 8863, 5411, 327, 446, 31, 3639, 289, 3639, 1748, 4344, 279, 12887, 756, 358, 714, 358, 18, 1195, 3639, 2029, 11059, 4201, 273, 13958, 18, 2640, 9858, 12, 1345, 18, 12917, 1769, 3639, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 12917, 1769, 3639, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 17591, 1769, 3639, 514, 2025, 273, 3742, 18, 588, 780, 5621, 3639, 1250, 284, 18792, 273, 2025, 18, 5290, 7675, 17514, 1190, 2 ]
final Checker c = new Checker(new GlobalProperties(mProps, mStream), new CheckConfiguration[] {aCheckConfig}); final AuditListener listener = new BriefLogger(mStream); c.addListener(listener); return c;
throw new IllegalStateException("not implemented yet");
protected Checker createChecker(CheckConfiguration aCheckConfig) throws Exception { final Checker c = new Checker(new GlobalProperties(mProps, mStream), new CheckConfiguration[] {aCheckConfig}); final AuditListener listener = new BriefLogger(mStream); c.addListener(listener); return c; }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/cff42d4cd7a89827e0454b7c2d0551c820156113/BaseCheckTestCase.java/clean/src/tests/com/puppycrawl/tools/checkstyle/BaseCheckTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 31577, 752, 8847, 12, 1564, 1750, 279, 1564, 809, 13, 3639, 1216, 1185, 565, 288, 3639, 727, 31577, 276, 273, 394, 31577, 12, 2704, 8510, 2297, 12, 81, 5047, 16, 312, 1228, 3631, 4766, 1377, 394, 2073, 1750, 8526, 288, 69, 1564, 809, 22938, 3639, 727, 12975, 2223, 2991, 273, 394, 605, 17802, 3328, 12, 81, 1228, 1769, 3639, 276, 18, 1289, 2223, 12, 12757, 1769, 3639, 327, 276, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 31577, 752, 8847, 12, 1564, 1750, 279, 1564, 809, 13, 3639, 1216, 1185, 565, 288, 3639, 727, 31577, 276, 273, 394, 31577, 12, 2704, 8510, 2297, 12, 81, 5047, 16, 312, 1228, 3631, 4766, 1377, 394, 2073, 1750, 8526, 288, 69, 1564, 809, 22938, 3639, 727, 12975, 2223, 2991, 273, 394, 605, 17802, 3328, 12, 81, 1228, 1769, 3639, 276, 18, 1289, 2223, 12, 12757, 1769, 3639, 327, 276, 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 ]
savings.addAccountPayment(payment1);
TestAccountPaymentEntity.addAccountPayment(payment1,savings);
public void testInterestAdjustment_LastWithdrawalPaymentNullified_WithMinBal() throws Exception { createInitialObjects(); savingsOffering = createSavingsOfferingForIntCalc("prd1", "cfgh", SavingsType.VOLUNTARY.getValue(), Short.valueOf("1"), MeetingConstants.MONTHLY, Short.valueOf("1")); savings = helper.createSavingsAccount(savingsOffering, group, AccountStates.SAVINGS_ACC_APPROVED, userContext); savings.setActivationDate(helper.getDate("20/02/2006")); savings.setNextIntCalcDate(helper.getDate("01/03/2006")); // add deposit trxn Money depositMoney = new Money(currency, "2000.0"); AccountPaymentEntity payment1 = helper.createAccountPaymentToPersist( savings, depositMoney, depositMoney, helper .getDate("20/02/2006"), AccountConstants.ACTION_SAVINGS_DEPOSIT, savings, createdBy, group); savings.addAccountPayment(payment1); savings.setSavingsBalance(depositMoney); savings.update(); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); // add deposit trxn depositMoney = new Money(currency, "1000.0"); Money balanceAmt = new Money(currency, "3000.0"); AccountPaymentEntity payment2 = helper.createAccountPaymentToPersist( savings, depositMoney, balanceAmt, helper.getDate("24/02/2006"), AccountConstants.ACTION_SAVINGS_DEPOSIT, savings, createdBy, group); savings.addAccountPayment(payment2); savings.setSavingsBalance(balanceAmt); savings.update(); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); // add withdrawal trxn Money withrawalAmt = new Money(currency, "500.0"); balanceAmt = new Money(currency, "2500.0"); AccountPaymentEntity payment3 = helper.createAccountPaymentToPersist( savings, withrawalAmt, balanceAmt, helper.getDate("26/02/2006"), AccountConstants.ACTION_SAVINGS_WITHDRAWAL, savings, createdBy, group); savings.addAccountPayment(payment3); savings.setSavingsBalance(balanceAmt); savings.update(); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); savings = savingsPersistence.findById(savings.getAccountId()); Money oldInterest = savings.calculateInterestForAdjustment(helper .getDate("25/02/2006"), null); assertEquals(0.0, oldInterest.getAmountDoubleValue()); savings.updateInterestAccrued(); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); savings = savingsPersistence.findById(savings.getAccountId()); // Min Bal 20/02 - 01/03 = 2000 // Interest 2000*.12*9/365 = 5.9 assertEquals(5.9, savings.getInterestToBePosted() .getAmountDoubleValue()); oldInterest = savings.calculateInterestForAdjustment(helper .getDate("25/02/2006"), null); assertEquals(5.9, oldInterest.getAmountDoubleValue()); HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); savings = savingsPersistence.findById(savings.getAccountId()); savings.setUserContext(userContext); Money amountAdjustedTo = new Money(); try { savings.adjustLastUserAction(amountAdjustedTo, "correction entry"); } catch (ApplicationException ae) { assertTrue(false); } HibernateUtil.commitTransaction(); HibernateUtil.closeSession(); savings = savingsPersistence.findById(savings.getAccountId()); // After Adjustmnet minimum balance has not been changed. // Min Bal 20/02 - 01/03 = 2000 // Interest 2000*.12*9/365 = 5.9 assertEquals(5.9, savings.getInterestToBePosted() .getAmountDoubleValue()); group = savings.getCustomer(); center = group.getParentCustomer(); }
45468 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45468/99eca589a39ecd2dc036535c650daf9d9af9e2fb/TestSavingsBO.java/clean/mifos/test/org/mifos/application/accounts/savings/business/TestSavingsBO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29281, 19985, 67, 3024, 1190, 9446, 287, 6032, 2041, 939, 67, 1190, 2930, 38, 287, 1435, 1082, 202, 15069, 1185, 288, 202, 202, 2640, 4435, 4710, 5621, 202, 202, 87, 27497, 17800, 273, 752, 55, 27497, 17800, 1290, 1702, 25779, 2932, 683, 72, 21, 3113, 315, 7066, 76, 3113, 9506, 202, 55, 27497, 559, 18, 19971, 5321, 6043, 18, 24805, 9334, 7925, 18, 1132, 951, 2932, 21, 6, 3631, 9506, 202, 4667, 21747, 2918, 18, 13942, 7076, 16, 7925, 18, 1132, 951, 2932, 21, 7923, 1769, 202, 202, 87, 27497, 273, 4222, 18, 2640, 55, 27497, 3032, 12, 87, 27497, 17800, 16, 1041, 16, 9506, 202, 3032, 7629, 18, 5233, 58, 1360, 55, 67, 31414, 67, 2203, 3373, 12135, 16, 729, 1042, 1769, 202, 202, 87, 27497, 18, 542, 14857, 1626, 12, 4759, 18, 588, 1626, 2932, 3462, 19, 3103, 19, 6976, 26, 7923, 1769, 202, 202, 87, 27497, 18, 542, 2134, 1702, 25779, 1626, 12, 4759, 18, 588, 1626, 2932, 1611, 19, 4630, 19, 6976, 26, 7923, 1769, 202, 202, 759, 527, 443, 1724, 433, 22695, 202, 202, 23091, 443, 1724, 23091, 273, 394, 16892, 12, 7095, 16, 315, 17172, 18, 20, 8863, 202, 202, 3032, 6032, 1943, 5184, 21, 273, 4222, 18, 2640, 3032, 6032, 774, 12771, 12, 9506, 202, 87, 27497, 16, 443, 1724, 23091, 16, 443, 1724, 23091, 16, 4222, 25083, 202, 18, 588, 1626, 2932, 3462, 19, 3103, 19, 6976, 26, 6, 3631, 9506, 202, 3032, 2918, 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, 1842, 29281, 19985, 67, 3024, 1190, 9446, 287, 6032, 2041, 939, 67, 1190, 2930, 38, 287, 1435, 1082, 202, 15069, 1185, 288, 202, 202, 2640, 4435, 4710, 5621, 202, 202, 87, 27497, 17800, 273, 752, 55, 27497, 17800, 1290, 1702, 25779, 2932, 683, 72, 21, 3113, 315, 7066, 76, 3113, 9506, 202, 55, 27497, 559, 18, 19971, 5321, 6043, 18, 24805, 9334, 7925, 18, 1132, 951, 2932, 21, 6, 3631, 9506, 202, 4667, 21747, 2918, 18, 13942, 7076, 16, 7925, 18, 1132, 951, 2932, 21, 7923, 1769, 202, 202, 87, 27497, 273, 4222, 18, 2640, 55, 27497, 3032, 12, 87, 27497, 17800, 16, 1041, 16, 9506, 202, 3032, 7629, 18, 5233, 58, 1360, 55, 67, 2 ]
TypeBinding defaultValueBinding = defaultValue.resolvedType;
private void generateElementValue( Expression defaultValue, TypeBinding memberValuePairReturnType, int attributeOffset) { Constant constant = defaultValue.constant; TypeBinding defaultValueBinding = defaultValue.resolvedType; if (constant != null && constant != Constant.NotAConstant) { if (memberValuePairReturnType.isArrayType() && !defaultValueBinding.isArrayType()) { // automatic wrapping if (contentsOffset + 1 >= this.contents.length) { resizeContents(1); } contents[contentsOffset++] = (byte) '['; contents[contentsOffset++] = (byte) 0; contents[contentsOffset++] = (byte) 1; } generateElementValue(attributeOffset, defaultValue, constant); } else { if (defaultValueBinding != null) { if (defaultValueBinding.isEnum()) { if (contentsOffset + 5 >= this.contents.length) { resizeContents(5); } contents[contentsOffset++] = (byte) 'e'; FieldBinding fieldBinding = null; if (defaultValue instanceof QualifiedNameReference) { QualifiedNameReference nameReference = (QualifiedNameReference) defaultValue; fieldBinding = (FieldBinding) nameReference.binding; } else if (defaultValue instanceof SingleNameReference) { SingleNameReference nameReference = (SingleNameReference) defaultValue; fieldBinding = (FieldBinding) nameReference.binding; } else { contentsOffset = attributeOffset; } if (fieldBinding != null) { final int enumConstantTypeNameIndex = constantPool.literalIndex(fieldBinding.type.signature()); final int enumConstantNameIndex = constantPool.literalIndex(fieldBinding.name); contents[contentsOffset++] = (byte) (enumConstantTypeNameIndex >> 8); contents[contentsOffset++] = (byte) enumConstantTypeNameIndex; contents[contentsOffset++] = (byte) (enumConstantNameIndex >> 8); contents[contentsOffset++] = (byte) enumConstantNameIndex; } } else if (defaultValueBinding.isAnnotationType()) { if (contentsOffset + 1 >= this.contents.length) { resizeContents(1); } contents[contentsOffset++] = (byte) '@'; generateAnnotation((Annotation) defaultValue, attributeOffset); } else if (defaultValueBinding.isArrayType()) { // array type if (contentsOffset + 1 >= this.contents.length) { resizeContents(1); } contents[contentsOffset++] = (byte) '['; if (defaultValue instanceof ArrayInitializer) { ArrayInitializer arrayInitializer = (ArrayInitializer) defaultValue; int arrayLength = arrayInitializer.expressions != null ? arrayInitializer.expressions.length : 0; contents[contentsOffset++] = (byte) (arrayLength >> 8); contents[contentsOffset++] = (byte) arrayLength; for (int i = 0; i < arrayLength; i++) { generateElementValue(arrayInitializer.expressions[i], attributeOffset); } } else { contentsOffset = attributeOffset; } } else { // class type if (contentsOffset + 3 >= this.contents.length) { resizeContents(3); } contents[contentsOffset++] = (byte) 'c'; if (defaultValue instanceof ClassLiteralAccess) { ClassLiteralAccess classLiteralAccess = (ClassLiteralAccess) defaultValue; final int classInfoIndex = constantPool.literalIndex(classLiteralAccess.targetType.signature()); contents[contentsOffset++] = (byte) (classInfoIndex >> 8); contents[contentsOffset++] = (byte) classInfoIndex; } else { contentsOffset = attributeOffset; } } } else { contentsOffset = attributeOffset; } } }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/97d56944c70dcb61876e816b166a34995344938d/ClassFile.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2103, 1046, 620, 12, 1082, 202, 2300, 4593, 16, 1082, 202, 559, 5250, 3140, 20337, 9102, 16, 1082, 202, 474, 1566, 2335, 13, 288, 202, 202, 6902, 5381, 273, 4593, 18, 14384, 31, 202, 202, 559, 5250, 4593, 5250, 273, 4593, 18, 11792, 559, 31, 202, 202, 430, 261, 14384, 480, 446, 597, 5381, 480, 10551, 18, 1248, 37, 6902, 13, 288, 1082, 202, 430, 261, 5990, 20337, 9102, 18, 291, 27182, 1435, 597, 401, 27652, 5250, 18, 291, 27182, 10756, 288, 9506, 202, 759, 5859, 14702, 9506, 202, 430, 261, 3980, 2335, 397, 404, 1545, 333, 18, 3980, 18, 2469, 13, 288, 6862, 202, 15169, 6323, 12, 21, 1769, 9506, 202, 97, 9506, 202, 3980, 63, 3980, 2335, 9904, 65, 273, 261, 7229, 13, 8375, 31, 9506, 202, 3980, 63, 3980, 2335, 9904, 65, 273, 261, 7229, 13, 374, 31, 9506, 202, 3980, 63, 3980, 2335, 9904, 65, 273, 261, 7229, 13, 404, 31, 1082, 202, 97, 1082, 202, 7163, 1046, 620, 12, 4589, 2335, 16, 4593, 16, 5381, 1769, 202, 202, 97, 469, 288, 1082, 202, 430, 261, 27652, 5250, 480, 446, 13, 288, 9506, 202, 430, 261, 27652, 5250, 18, 291, 3572, 10756, 288, 6862, 202, 430, 261, 3980, 2335, 397, 1381, 1545, 333, 18, 3980, 18, 2469, 13, 288, 25083, 202, 15169, 6323, 12, 25, 1769, 6862, 202, 97, 6862, 202, 3980, 63, 3980, 2335, 9904, 65, 273, 261, 7229, 13, 296, 73, 13506, 6862, 202, 974, 5250, 652, 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, 2103, 1046, 620, 12, 1082, 202, 2300, 4593, 16, 1082, 202, 559, 5250, 3140, 20337, 9102, 16, 1082, 202, 474, 1566, 2335, 13, 288, 202, 202, 6902, 5381, 273, 4593, 18, 14384, 31, 202, 202, 559, 5250, 4593, 5250, 273, 4593, 18, 11792, 559, 31, 202, 202, 430, 261, 14384, 480, 446, 597, 5381, 480, 10551, 18, 1248, 37, 6902, 13, 288, 1082, 202, 430, 261, 5990, 20337, 9102, 18, 291, 27182, 1435, 597, 401, 27652, 5250, 18, 291, 27182, 10756, 288, 9506, 202, 759, 5859, 14702, 9506, 202, 430, 261, 3980, 2335, 397, 404, 1545, 333, 18, 3980, 18, 2469, 13, 288, 6862, 202, 15169, 6323, 12, 21, 1769, 9506, 202, 97, 9506, 202, 2 ]
FileDialog dialog = new FileDialog(getShell()); dialog.setText("Zip File Selection"); String dir = sourceZipText.getText();
DirectoryDialog dialog = new DirectoryDialog(getShell()); dialog.setText("Folder Selection"); dialog.setMessage("Specify the source folder for task data"); String dir = sourceDirText.getText();
public void widgetSelected(SelectionEvent e) { FileDialog dialog = new FileDialog(getShell()); dialog.setText("Zip File Selection"); // dialog.setText("Specify the source zip file for task data"); String dir = sourceZipText.getText(); dialog.setFilterPath(dir); dir = dialog.open(); if (dir == null || dir.equals("")) return; sourceZipText.setText(dir); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/d0d733ba17a3b552dbed35faf2c830ddcf7b59e7/TaskDataImportWizardPage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/TaskDataImportWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 812, 6353, 6176, 273, 394, 1387, 6353, 12, 588, 13220, 10663, 9506, 202, 12730, 18, 542, 1528, 2932, 9141, 1387, 12977, 8863, 9506, 202, 759, 6176, 18, 542, 1528, 2932, 19302, 326, 1084, 3144, 585, 364, 1562, 501, 8863, 9506, 202, 780, 1577, 273, 1084, 9141, 1528, 18, 588, 1528, 5621, 9506, 202, 12730, 18, 542, 1586, 743, 12, 1214, 1769, 9506, 202, 1214, 273, 6176, 18, 3190, 5621, 9506, 202, 430, 261, 1214, 422, 446, 747, 1577, 18, 14963, 2932, 6, 3719, 6862, 202, 2463, 31, 9506, 202, 3168, 9141, 1528, 18, 542, 1528, 12, 1214, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 812, 6353, 6176, 273, 394, 1387, 6353, 12, 588, 13220, 10663, 9506, 202, 12730, 18, 542, 1528, 2932, 9141, 1387, 12977, 8863, 9506, 202, 759, 6176, 18, 542, 1528, 2932, 19302, 326, 1084, 3144, 585, 364, 1562, 501, 8863, 9506, 202, 780, 1577, 273, 1084, 9141, 1528, 18, 588, 1528, 5621, 9506, 202, 12730, 18, 542, 1586, 743, 12, 1214, 1769, 9506, 202, 1214, 273, 6176, 18, 3190, 5621, 9506, 202, 430, 261, 1214, 422, 446, 747, 1577, 18, 14963, 2932, 6, 3719, 6862, 202, 2463, 31, 9506, 202, 3168, 9141, 1528, 18, 542, 1528, 12, 1214, 1769, 1082, 202, 97, 2, -100, -100, -100, -100 ]
= repaintMgr.prepareGraphics(clipRect,
= textArea.repaintMgr.prepareGraphics(clipRect,
public void paint(Graphics _gfx) { Graphics2D gfx = repaintMgr.getGraphics(); gfx.setRenderingHints(renderingHints); fontRenderContext = gfx.getFontRenderContext(); Rectangle clipRect = _gfx.getClipBounds(); Buffer buffer = textArea.getBuffer(); int height = fm.getHeight(); if(height != 0 && buffer.isLoaded()) { long prepareTime = System.currentTimeMillis(); FastRepaintManager.RepaintLines lines = repaintMgr.prepareGraphics(clipRect, textArea.getFirstLine(),gfx); prepareTime = (System.currentTimeMillis() - prepareTime); long linesTime = System.currentTimeMillis(); int numLines = (lines.last - lines.first + 1); int y = lines.first * height; gfx.fillRect(0,y,getWidth(),numLines * height); extensionMgr.paintScreenLineRange(textArea,gfx, lines.first,lines.last,y,height); linesTime = (System.currentTimeMillis() - linesTime); repaintMgr.setFastScroll( clipRect.equals(new Rectangle(0,0, getWidth(),getHeight()))); long blitTime = System.currentTimeMillis(); repaintMgr.paint(_gfx); blitTime = (System.currentTimeMillis() - blitTime); if(Debug.PAINT_TIMER && numLines >= 1) Log.log(Log.DEBUG,this,"repainting " + numLines + " lines took " + prepareTime + "/" + linesTime + "/" + blitTime + " ms"); } else { _gfx.setColor(getBackground()); _gfx.fillRect(clipRect.x,clipRect.y,clipRect.width,clipRect.height); } textArea.updateMaxHorizontalScrollWidth(); } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/50da7935b3bb19b822ce3f63bd8ab62b5c6b07b5/TextAreaPainter.java/clean/org/gjt/sp/jedit/textarea/TextAreaPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 12, 17558, 389, 75, 19595, 13, 202, 95, 202, 202, 17558, 22, 40, 30940, 273, 24962, 9455, 18, 588, 17558, 5621, 202, 202, 75, 19595, 18, 542, 14261, 13368, 12, 5902, 310, 13368, 1769, 202, 202, 5776, 3420, 1042, 273, 30940, 18, 588, 5711, 3420, 1042, 5621, 202, 202, 19463, 6807, 6120, 273, 389, 75, 19595, 18, 588, 15339, 5694, 5621, 202, 202, 1892, 1613, 273, 977, 5484, 18, 588, 1892, 5621, 202, 202, 474, 2072, 273, 10940, 18, 588, 2686, 5621, 202, 202, 430, 12, 4210, 480, 374, 597, 1613, 18, 291, 8835, 10756, 202, 202, 95, 1082, 202, 5748, 2911, 950, 273, 2332, 18, 2972, 28512, 5621, 1082, 202, 12305, 18933, 1598, 1318, 18, 18933, 1598, 5763, 2362, 9506, 202, 33, 24962, 9455, 18, 9366, 17558, 12, 14161, 6120, 16, 9506, 202, 955, 5484, 18, 588, 3759, 1670, 9334, 75, 19595, 1769, 1082, 202, 9366, 950, 273, 261, 3163, 18, 2972, 28512, 1435, 300, 2911, 950, 1769, 1082, 202, 5748, 2362, 950, 273, 2332, 18, 2972, 28512, 5621, 1082, 202, 474, 818, 5763, 273, 261, 3548, 18, 2722, 300, 2362, 18, 3645, 397, 404, 1769, 1082, 202, 474, 677, 273, 2362, 18, 3645, 380, 2072, 31, 1082, 202, 75, 19595, 18, 5935, 6120, 12, 20, 16, 93, 16, 588, 2384, 9334, 2107, 5763, 380, 2072, 1769, 1082, 202, 6447, 9455, 18, 84, 1598, 7956, 1670, 2655, 12, 955, 5484, 16, 75, 19595, 16, 9506, 202, 3548, 18, 3645, 16, 3548, 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, 12574, 12, 17558, 389, 75, 19595, 13, 202, 95, 202, 202, 17558, 22, 40, 30940, 273, 24962, 9455, 18, 588, 17558, 5621, 202, 202, 75, 19595, 18, 542, 14261, 13368, 12, 5902, 310, 13368, 1769, 202, 202, 5776, 3420, 1042, 273, 30940, 18, 588, 5711, 3420, 1042, 5621, 202, 202, 19463, 6807, 6120, 273, 389, 75, 19595, 18, 588, 15339, 5694, 5621, 202, 202, 1892, 1613, 273, 977, 5484, 18, 588, 1892, 5621, 202, 202, 474, 2072, 273, 10940, 18, 588, 2686, 5621, 202, 202, 430, 12, 4210, 480, 374, 597, 1613, 18, 291, 8835, 10756, 202, 202, 95, 1082, 202, 5748, 2911, 950, 273, 2332, 18, 2972, 28512, 5621, 1082, 202, 12305, 18933, 1598, 2 ]
if (newDestFig != null) {
if (newDestFig != null && newSourceFig != null) {
private boolean updateClassifiers() { Object owner = getOwner(); if (owner == null || getLayer() == null) return false; MModelElement newSource = getSource(); MModelElement newDest = getDestination(); Fig currentSourceFig = getSourceFigNode(); Fig currentDestFig = getDestFigNode(); MModelElement currentSource = null; MModelElement currentDestination = null; if (currentSourceFig != null && currentDestFig != null) { currentSource = (MModelElement)currentSourceFig.getOwner(); currentDestination = (MModelElement)currentDestFig.getOwner(); } if (newSource != currentSource || newDest != currentDestination) { Fig newSourceFig = getLayer().presentationFor(newSource); Fig newDestFig = getLayer().presentationFor(newDest); if (newSourceFig == null || newDestFig == null) { delete(); return false; } if (newSourceFig != currentSourceFig || currentSourceFig == null) { setSourceFigNode((FigNode)newSourceFig); setSourcePortFig(newSourceFig); } if (newDestFig != currentDestFig || currentDestFig == null) { setDestFigNode((FigNode)newDestFig); setDestPortFig(newDestFig); } if (newDestFig != null) { ((FigNode)newSourceFig).updateEdges(); } if (newSourceFig != null) { ((FigNode)newDestFig).updateEdges(); } calcBounds(); } return true; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/6c126f6bb4273c28f876b0c02b398da33d934522/FigEdgeModelElement.java/buggy/src_new/org/argouml/uml/diagram/ui/FigEdgeModelElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1089, 10469, 1435, 288, 565, 1033, 3410, 273, 13782, 5621, 565, 309, 261, 8443, 422, 446, 747, 25763, 1435, 422, 446, 13, 327, 629, 31, 3639, 490, 1488, 1046, 394, 1830, 273, 7889, 5621, 565, 490, 1488, 1046, 394, 9378, 273, 17611, 5621, 3639, 478, 360, 783, 1830, 42, 360, 273, 7889, 42, 360, 907, 5621, 565, 478, 360, 783, 9378, 42, 360, 273, 2343, 395, 42, 360, 907, 5621, 565, 490, 1488, 1046, 783, 1830, 273, 446, 31, 565, 490, 1488, 1046, 783, 5683, 273, 446, 31, 565, 309, 261, 2972, 1830, 42, 360, 480, 446, 597, 783, 9378, 42, 360, 480, 446, 13, 288, 9079, 783, 1830, 273, 261, 49, 1488, 1046, 13, 2972, 1830, 42, 360, 18, 588, 5541, 5621, 3639, 783, 5683, 273, 261, 49, 1488, 1046, 13, 2972, 9378, 42, 360, 18, 588, 5541, 5621, 565, 289, 565, 309, 261, 2704, 1830, 480, 783, 1830, 747, 394, 9378, 480, 783, 5683, 13, 288, 3639, 478, 360, 394, 1830, 42, 360, 273, 25763, 7675, 10364, 1290, 12, 2704, 1830, 1769, 3639, 478, 360, 394, 9378, 42, 360, 273, 25763, 7675, 10364, 1290, 12, 2704, 9378, 1769, 3639, 309, 261, 2704, 1830, 42, 360, 422, 446, 747, 394, 9378, 42, 360, 422, 446, 13, 288, 5411, 1430, 5621, 5411, 327, 629, 31, 3639, 289, 3639, 309, 261, 2704, 1830, 42, 360, 480, 783, 1830, 42, 360, 747, 783, 1830, 42, 360, 422, 446, 13, 288, 5411, 18913, 42, 360, 907, 12443, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 1089, 10469, 1435, 288, 565, 1033, 3410, 273, 13782, 5621, 565, 309, 261, 8443, 422, 446, 747, 25763, 1435, 422, 446, 13, 327, 629, 31, 3639, 490, 1488, 1046, 394, 1830, 273, 7889, 5621, 565, 490, 1488, 1046, 394, 9378, 273, 17611, 5621, 3639, 478, 360, 783, 1830, 42, 360, 273, 7889, 42, 360, 907, 5621, 565, 478, 360, 783, 9378, 42, 360, 273, 2343, 395, 42, 360, 907, 5621, 565, 490, 1488, 1046, 783, 1830, 273, 446, 31, 565, 490, 1488, 1046, 783, 5683, 273, 446, 31, 565, 309, 261, 2972, 1830, 42, 360, 480, 446, 597, 783, 9378, 42, 360, 480, 446, 13, 288, 9079, 783, 1830, 273, 261, 49, 1488, 1046, 13, 2972, 2 ]
if (atomInRange != null) {
if (bondInRange != null) { double order = bondInRange.getOrder(); if (order => 3.0) { bondInRange.setOrder(1.0); } else { bondInRange.setOrder(order + 1.0); }; } else { if (atomInRange != null) {
public void mouseReleased(MouseEvent e) { int mouseX = e.getX(), mouseY = e.getY(); /************************************************************************* * DRAWBONDMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.DRAWBOND) { Atom atomInRange, newAtom1, newAtom2; Bond newBond; int startX = r2dm.getPointerVectorStart().x; int startY = r2dm.getPointerVectorStart().y; atomInRange = getAtomInRange(startX, startY); if (atomInRange != null) { newAtom1 = atomInRange; } else { newAtom1 = new Atom(c2dm.getDefaultElementSymbol(), new Point2d(startX,startY)); atomCon.addAtom(newAtom1); } if (wasDragged) { int endX = r2dm.getPointerVectorEnd().x; int endY = r2dm.getPointerVectorEnd().y; atomInRange = getAtomInRange(endX, endY); if (atomInRange != null) { newAtom2 = atomInRange; } else { newAtom2 = new Atom(c2dm.getDefaultElementSymbol(), new Point2d(endX,endY)); atomCon.addAtom(newAtom2); } newBond = new Bond(newAtom1, newAtom2, 1); atomCon.addBond(newBond); } r2dm.fireChange(); } /************************************************************************* * SELECTMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.SELECT && wasDragged) { Atom currentAtom; Bond currentBond; AtomContainer selectedPart = new AtomContainer(); r2dm.setSelectedPart(selectedPart); r2dm.setSelectedPart(getContainedAtoms(r2dm.getSelectRect())); r2dm.setSelectRect(null);// System.out.println("selected stuff "+ selectedPart); } /************************************************************************* * ERASERMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.ERASER) { Atom highlightedAtom = r2dm.getHighlightedAtom(); Bond highlightedBond = r2dm.getHighlightedBond(); if (highlightedAtom != null) { try { atomCon.removeAtom(highlightedAtom); Bond[] conBonds = atomCon.getConnectedBonds(highlightedAtom); for (int i = 0; i < conBonds.length; i++) { atomCon.removeBond(conBonds[i]); } } catch (Exception exc) { exc.printStackTrace(); } } else if (highlightedBond != null) { atomCon.removeBond(highlightedBond); } r2dm.fireChange(); } /************************************************************************* * RINGMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.RING) { Ring newRing; Point2d sharedAtomsCenter; Vector2d ringCenterVector; double bondLength; int pointerMarkX, pointerMarkY; double ringRadius, angle, xDiff, yDiff, distance1 = 0, distance2 = 0; Atom firstAtom, secondAtom, spiroAtom; Point2d conAtomsCenter = null, newPoint1, newPoint2; RingPlacer ringPlacer = new RingPlacer(); int ringSize = c2dm.getRingSize(); String symbol = c2dm.getDefaultElementSymbol(); AtomContainer sharedAtoms = getHighlighted(); /******************** NO ATTACHMENT ************************************/ if (sharedAtoms.getAtomCount() == 0) { sharedAtoms = new AtomContainer(); newRing = new Ring(ringSize, symbol); bondLength = r2dm.getBondLength(); ringRadius = (bondLength / 2) /Math.sin(Math.PI / c2dm.getRingSize()); sharedAtomsCenter = new Point2d(mouseX, mouseY - ringRadius); firstAtom = newRing.getAtomAt(0); firstAtom.setPoint2D(sharedAtomsCenter); sharedAtoms.addAtom(firstAtom); ringCenterVector = new Vector2d(new Point2d(mouseX, mouseY)); ringCenterVector.sub(sharedAtomsCenter); ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); atomCon.add(newRing); } /*********************** SPIRO *****************************************/ else if (sharedAtoms.getAtomCount() == 1) { spiroAtom = sharedAtoms.getAtomAt(0); sharedAtomsCenter = sharedAtoms.get2DCenter(); newRing = createAttachRing(sharedAtoms, ringSize, symbol); bondLength = 50; conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); if (conAtomsCenter.equals(spiroAtom.getPoint2D())) { ringCenterVector = new Vector2d(0, 1); } else { ringCenterVector = new Vector2d(sharedAtomsCenter); ringCenterVector.sub(conAtomsCenter); } ringPlacer.placeSpiroRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed atom from the ring to add only the new placed // atoms to the AtomContainer. try { newRing.removeAtom(spiroAtom); } catch (Exception exc) { exc.printStackTrace(); } atomCon.add(newRing); } /*********************** FUSED *****************************************/ else if (sharedAtoms.getAtomCount() == 2) { sharedAtomsCenter = sharedAtoms.get2DCenter(); // calculate two points that are perpendicular to the highlighted bond // and have a certain distance from the bondcenter firstAtom = sharedAtoms.getAtomAt(0); secondAtom = sharedAtoms.getAtomAt(1); xDiff = secondAtom.getX2D() - firstAtom.getX2D(); yDiff = secondAtom.getY2D() - firstAtom.getY2D(); bondLength = Math.sqrt(Math.pow(xDiff, 2) + Math.pow(yDiff, 2)); angle = GeometryTools.getAngle(xDiff, yDiff); newPoint1 = new Point2d((Math.cos(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle + (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); newPoint2 = new Point2d((Math.cos(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.x, (Math.sin(angle - (Math.PI / 2)) * bondLength / 4) + sharedAtomsCenter.y); if (wasDragged) { // check which one of the two points is nearest to the endpoint of the pointer // vector that was dragged to make the ringCenterVector point into the right direction. pointerMarkX = r2dm.getPointerVectorEnd().x; pointerMarkY = r2dm.getPointerVectorEnd().y; distance1 = -1 * (Math.sqrt(Math.pow(newPoint1.x - pointerMarkX, 2) + Math.pow(newPoint1.y - pointerMarkY, 2))); distance2 = -1 * (Math.sqrt(Math.pow(newPoint2.x - pointerMarkX, 2) + Math.pow(newPoint2.y - pointerMarkY, 2))); r2dm.setPointerVectorStart(null); r2dm.setPointerVectorEnd(null); } else { // check which one of the two points is nearest to the center of the // connected atoms to make the ringCenterVector point into the right direction. conAtomsCenter = getConnectedAtomsCenter(sharedAtoms); distance1 = Math.sqrt(Math.pow(newPoint1.x - conAtomsCenter.x, 2) + Math.pow(newPoint1.y - conAtomsCenter.y, 2)); distance2 = Math.sqrt(Math.pow(newPoint2.x - conAtomsCenter.x, 2) + Math.pow(newPoint2.y - conAtomsCenter.y, 2)); } ringCenterVector = new Vector2d(sharedAtomsCenter); // no ring is attached if the two ditances are equal if (distance1 == distance2) { System.out.println("don't know where to draw the new Ring"); } else { if (distance1 < distance2) { ringCenterVector.sub(newPoint1); } else if (distance2 < distance1) { ringCenterVector.sub(newPoint2); } // construct a new Ring that contains the highlighted bond an its two atoms newRing = createAttachRing(sharedAtoms, ringSize, symbol); // place the new atoms of the new ring to the right position ringPlacer.placeFusedRing(newRing, sharedAtoms, sharedAtomsCenter, ringCenterVector, bondLength); // removes the highlighed bond and its atoms from the ring to add only // the new placed atoms to the AtomContainer. try { newRing.remove(sharedAtoms); } catch (Exception exc) { exc.printStackTrace(); } atomCon.add(newRing); } } r2dm.fireChange(); } /************************************************************************* * LASSOMODE * *************************************************************************/ if (c2dm.getDrawMode() == c2dm.LASSO) { if (wasDragged) { Vector lassoPoints = r2dm.getLassoPoints(); r2dm.addLassoPoint(new Point((Point)lassoPoints.elementAt(0))); int number = lassoPoints.size(); int[] xPoints = new int[number]; int[] yPoints = new int[number]; Point currentPoint; for (int i = 0; i < number; i++) { currentPoint = (Point)lassoPoints.elementAt(i); xPoints[i] = currentPoint.x; yPoints[i] = currentPoint.y; } Polygon polygon = new Polygon(xPoints, yPoints, number); r2dm.setSelectedPart(getContainedAtoms(polygon)); r2dm.getLassoPoints().removeAllElements(); r2dm.fireChange(); } } wasDragged = false; }
1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/140582839d7e1009fd8e33ac1853155e7be004a2/JCPController2D.java/buggy/src/org/openscience/cdk/controller/JCPController2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 7644, 26363, 12, 9186, 1133, 425, 13, 3639, 288, 7734, 509, 7644, 60, 273, 425, 18, 588, 60, 9334, 7644, 61, 273, 425, 18, 588, 61, 5621, 7734, 342, 11125, 1644, 14, 1171, 380, 15604, 463, 10821, 38, 673, 40, 7038, 4766, 565, 380, 1171, 19756, 1644, 19, 7734, 309, 261, 71, 22, 10956, 18, 588, 6493, 2309, 1435, 422, 276, 22, 10956, 18, 40, 10821, 38, 673, 40, 13, 7734, 288, 13491, 7149, 3179, 25277, 16, 394, 3641, 21, 16, 394, 3641, 22, 31, 13491, 605, 1434, 394, 9807, 31, 13491, 509, 787, 60, 273, 436, 22, 10956, 18, 588, 4926, 5018, 1685, 7675, 92, 31, 13491, 509, 787, 61, 273, 436, 22, 10956, 18, 588, 4926, 5018, 1685, 7675, 93, 31, 13491, 3179, 25277, 273, 12358, 25277, 12, 1937, 60, 16, 787, 61, 1769, 13491, 309, 261, 7466, 25277, 480, 446, 13, 7682, 288, 27573, 394, 3641, 21, 273, 3179, 25277, 31, 13491, 289, 13491, 469, 13491, 288, 27573, 394, 3641, 21, 273, 394, 7149, 12, 71, 22, 10956, 18, 588, 1868, 1046, 5335, 9334, 394, 4686, 22, 72, 12, 1937, 60, 16, 1937, 61, 10019, 27573, 3179, 442, 18, 1289, 3641, 12, 2704, 3641, 21, 1769, 13491, 289, 4766, 7734, 309, 261, 17416, 11728, 2423, 13, 13491, 288, 27573, 509, 679, 60, 273, 436, 22, 10956, 18, 588, 4926, 5018, 1638, 7675, 92, 31, 27573, 509, 679, 61, 273, 436, 22, 10956, 18, 588, 4926, 5018, 1638, 7675, 93, 31, 27573, 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, 7644, 26363, 12, 9186, 1133, 425, 13, 3639, 288, 7734, 509, 7644, 60, 273, 425, 18, 588, 60, 9334, 7644, 61, 273, 425, 18, 588, 61, 5621, 7734, 342, 11125, 1644, 14, 1171, 380, 15604, 463, 10821, 38, 673, 40, 7038, 4766, 565, 380, 1171, 19756, 1644, 19, 7734, 309, 261, 71, 22, 10956, 18, 588, 6493, 2309, 1435, 422, 276, 22, 10956, 18, 40, 10821, 38, 673, 40, 13, 7734, 288, 13491, 7149, 3179, 25277, 16, 394, 3641, 21, 16, 394, 3641, 22, 31, 13491, 605, 1434, 394, 9807, 31, 13491, 509, 787, 60, 273, 436, 22, 10956, 18, 588, 4926, 5018, 1685, 7675, 92, 31, 13491, 509, 787, 61, 273, 436, 22, 10956, 18, 2 ]
logger.debug("lastPixleForRequest: " + lastPixelForRequest);
public PlottableChunk[] get(MicroSecondTimeRange requestRange, ChannelId id, int pixelsPerDay) throws SQLException, IOException { int chanDbId; try { chanDbId = chanTable.getDBId(id); } catch(NotFound e) { logger.info("Channel " + ChannelIdUtil.toStringNoDates(id) + " not found"); return new PlottableChunk[0]; } int index = 1; ResultSet rs; synchronized(get) { get.setTimestamp(index++, requestRange.getEndTime().getTimestamp()); get.setTimestamp(index++, requestRange.getBeginTime() .getTimestamp()); get.setInt(index++, chanDbId); get.setInt(index++, pixelsPerDay); rs = get.executeQuery(); } List chunks = new ArrayList(); int requestPixels = getPixels(pixelsPerDay, requestRange); logger.debug("Request made for " + requestPixels + " from " + requestRange + " at " + pixelsPerDay + "ppd"); while(rs.next()) { Timestamp ts = rs.getTimestamp("start_time"); MicroSecondDate rowBeginTime = new MicroSecondDate(ts); logger.debug("rowBeginTime: " + rowBeginTime); int offsetIntoRequestPixels = SimplePlotUtil.getPixel(requestPixels, requestRange, rowBeginTime); logger.debug("offetIntoRequestPixels: " + offsetIntoRequestPixels); int numPixels = rs.getInt("pixel_count"); logger.debug("numPixels: " + numPixels); int firstPixelForRequest = 0; if(offsetIntoRequestPixels < 0) { // This db row has data starting before the request, start at // pertinent point firstPixelForRequest = -1 * offsetIntoRequestPixels; } logger.debug("firstPixelForRequest: " + firstPixelForRequest); int lastPixelForRequest = numPixels; if(offsetIntoRequestPixels + numPixels > requestPixels) { // This row has more data than was requested in it, only get // enough to fill the request lastPixelForRequest = requestPixels - offsetIntoRequestPixels; } logger.debug("lastPixleForRequest: " + lastPixelForRequest); int pixelsUsed = lastPixelForRequest - firstPixelForRequest; logger.debug("pixelsUsed: " + pixelsUsed); int[] x = new int[pixelsUsed * 2]; int[] y = new int[pixelsUsed * 2]; byte[] dataBytes = rs.getBytes("data"); DataInputStream dis = new DataInputStream(new ByteArrayInputStream(dataBytes)); for(int i = 0; i < firstPixelForRequest; i++) { dis.readInt(); dis.readInt(); } for(int i = 0; i < pixelsUsed * 2; i++) { // x[i] = firstPixelForRequest + i / 2; x[i] = firstPixelForRequest + offsetIntoRequestPixels + i / 2; y[i] = dis.readInt(); } if(x.length > 0) { logger.debug("x[0]: " + x[0]); } else { logger.debug("ZERO LENGTH ARRAY!!!"); } Plottable p = new Plottable(x, y); PlottableChunk pc = new PlottableChunk(p, PlottableChunk.getPixel(rowBeginTime, pixelsPerDay) + firstPixelForRequest, PlottableChunk.getJDay(rowBeginTime), PlottableChunk.getYear(rowBeginTime), pixelsPerDay, id); chunks.add(pc); logger.debug("Returning " + pc + " from chunk starting at " + rowBeginTime); } return (PlottableChunk[])chunks.toArray(new PlottableChunk[chunks.size()]); }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/2a34592f4dae30244b54ff78ea76a8557d93e21e/JDBCPlottable.java/buggy/src/edu/sc/seis/fissuresUtil/database/plottable/JDBCPlottable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15211, 2121, 5579, 8526, 336, 12, 13617, 8211, 950, 2655, 590, 2655, 16, 27573, 5307, 548, 612, 16, 27573, 509, 8948, 2173, 4245, 13, 1216, 6483, 16, 5411, 1860, 288, 3639, 509, 3861, 4331, 548, 31, 3639, 775, 288, 5411, 3861, 4331, 548, 273, 3861, 1388, 18, 588, 2290, 548, 12, 350, 1769, 3639, 289, 1044, 12, 2768, 425, 13, 288, 5411, 1194, 18, 1376, 2932, 2909, 315, 397, 5307, 548, 1304, 18, 10492, 2279, 15578, 12, 350, 13, 10792, 397, 315, 486, 1392, 8863, 5411, 327, 394, 15211, 2121, 5579, 63, 20, 15533, 3639, 289, 3639, 509, 770, 273, 404, 31, 3639, 10842, 3597, 31, 3639, 3852, 12, 588, 13, 288, 5411, 336, 18, 542, 4921, 12, 1615, 9904, 16, 590, 2655, 18, 588, 25255, 7675, 588, 4921, 10663, 5411, 336, 18, 542, 4921, 12, 1615, 9904, 16, 590, 2655, 18, 588, 8149, 950, 1435, 10792, 263, 588, 4921, 10663, 5411, 336, 18, 542, 1702, 12, 1615, 9904, 16, 3861, 4331, 548, 1769, 5411, 336, 18, 542, 1702, 12, 1615, 9904, 16, 8948, 2173, 4245, 1769, 5411, 3597, 273, 336, 18, 8837, 1138, 5621, 3639, 289, 3639, 987, 6055, 273, 394, 2407, 5621, 3639, 509, 590, 18079, 273, 1689, 3556, 87, 12, 21084, 2173, 4245, 16, 590, 2655, 1769, 3639, 1194, 18, 4148, 2932, 691, 7165, 364, 315, 397, 590, 18079, 397, 315, 628, 315, 7734, 397, 590, 2655, 397, 315, 622, 315, 397, 8948, 2173, 4245, 397, 315, 11858, 72, 8863, 3639, 1323, 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, 15211, 2121, 5579, 8526, 336, 12, 13617, 8211, 950, 2655, 590, 2655, 16, 27573, 5307, 548, 612, 16, 27573, 509, 8948, 2173, 4245, 13, 1216, 6483, 16, 5411, 1860, 288, 3639, 509, 3861, 4331, 548, 31, 3639, 775, 288, 5411, 3861, 4331, 548, 273, 3861, 1388, 18, 588, 2290, 548, 12, 350, 1769, 3639, 289, 1044, 12, 2768, 425, 13, 288, 5411, 1194, 18, 1376, 2932, 2909, 315, 397, 5307, 548, 1304, 18, 10492, 2279, 15578, 12, 350, 13, 10792, 397, 315, 486, 1392, 8863, 5411, 327, 394, 15211, 2121, 5579, 63, 20, 15533, 3639, 289, 3639, 509, 770, 273, 404, 31, 3639, 10842, 3597, 31, 3639, 3852, 12, 588, 13, 288, 5411, 336, 18, 542, 4921, 2 ]
public IntegerMap getUnitsByType() { IntegerMap units = new IntegerMap(); Iterator iter = getData().getUnitTypeList().iterator(); while(iter.hasNext() ) { UnitType type = (UnitType) iter.next(); int count = getUnitCount(type); if(count > 0) units.put(type,count ); } return units; }
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/dc797864838b13aca4fbf463f7726411d6124917/UnitCollection.java/clean/src/games/strategy/engine/data/UnitCollection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2144, 863, 336, 7537, 14145, 1435, 202, 95, 202, 202, 4522, 863, 4971, 273, 394, 2144, 863, 5621, 202, 202, 3198, 1400, 273, 4303, 7675, 588, 2802, 559, 682, 7675, 9838, 5621, 202, 202, 17523, 12, 2165, 18, 5332, 2134, 1435, 262, 202, 202, 95, 1082, 202, 2802, 559, 618, 273, 261, 2802, 559, 13, 1400, 18, 4285, 5621, 1082, 202, 474, 1056, 273, 19194, 1380, 12, 723, 1769, 1082, 202, 430, 12, 1883, 405, 374, 13, 9506, 202, 7705, 18, 458, 12, 723, 16, 1883, 11272, 202, 202, 97, 202, 202, 2463, 4971, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2144, 863, 336, 7537, 14145, 1435, 202, 95, 202, 202, 4522, 863, 4971, 273, 394, 2144, 863, 5621, 202, 202, 3198, 1400, 273, 4303, 7675, 588, 2802, 559, 682, 7675, 9838, 5621, 202, 202, 17523, 12, 2165, 18, 5332, 2134, 1435, 262, 202, 202, 95, 1082, 202, 2802, 559, 618, 273, 261, 2802, 559, 13, 1400, 18, 4285, 5621, 1082, 202, 474, 1056, 273, 19194, 1380, 12, 723, 1769, 1082, 202, 430, 12, 1883, 405, 374, 13, 9506, 202, 7705, 18, 458, 12, 723, 16, 1883, 11272, 202, 202, 97, 202, 202, 2463, 4971, 31, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
AST __t863 = _t; AST tmp48_AST_in = (AST)_t;
AST __t370 = _t; AST tmp50_AST_in = (AST)_t;
public final Expression generalComp(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST generalComp_AST_in = (AST)_t; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQ: { AST __t860 = _t; AST tmp45_AST_in = (AST)_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); path.add(step); _t = __t860; _t = _t.getNextSibling(); break; } case NEQ: { AST __t861 = _t; AST tmp46_AST_in = (AST)_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); path.add(step); _t = __t861; _t = _t.getNextSibling(); break; } case LT: { AST __t862 = _t; AST tmp47_AST_in = (AST)_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); path.add(step); _t = __t862; _t = _t.getNextSibling(); break; } case LTEQ: { AST __t863 = _t; AST tmp48_AST_in = (AST)_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); path.add(step); _t = __t863; _t = _t.getNextSibling(); break; } case GT: { AST __t864 = _t; AST tmp49_AST_in = (AST)_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); path.add(step); _t = __t864; _t = _t.getNextSibling(); break; } case GTEQ: { AST __t865 = _t; AST tmp50_AST_in = (AST)_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); path.add(step); _t = __t865; _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/722cca774247887cf67fef993c71f848a05e075f/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.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, 9053, 7470, 2945, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 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, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 22426, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 28, 4848, 273, 389, 88, 31, 1082, 202, 9053, 1853, 7950, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 27247, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 4119, 33, 8638, 24899, 88, 16, 4482, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 4119, 33, 8638, 24899, 88, 16, 4083, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 6862, 6862, 202, 4119, 33, 394, 9544, 16059, 12, 2472, 16, 2002, 16, 2145, 16, 5245, 18, 27247, 1769, 25083, 202, 803, 18, 1289, 12, 4119, 1769, 6862, 9506, 202, 67, 88, 273, 1001, 88, 28, 4848, 31, 1082, 202, 67, 88, 273, 389, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 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, 9053, 7470, 2945, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 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, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 22426, 30, 202, 202, 95, 1082, 2 ]
Context cx, Scriptable scope,
Context cx, Scriptable scope,
public abstract Object execMethod(int methodId, IdFunction function, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException;
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/IdScriptable.java/clean/js/rhino/src/org/mozilla/javascript/IdScriptable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 1033, 1196, 1305, 12, 474, 707, 548, 16, 3124, 2083, 445, 16, 11794, 1772, 9494, 16, 22780, 2146, 16, 17311, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 1033, 1196, 1305, 12, 474, 707, 548, 16, 3124, 2083, 445, 16, 11794, 1772, 9494, 16, 22780, 2146, 16, 17311, 22780, 15261, 16, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 31, 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 ]
return "anonymous";
return names[0];
public String jsGet_name() { if (names != null && names[0].length() > 0) return names[0]; Context cx = Context.getCurrentContext(); if (cx != null && cx.getLanguageVersion() == Context.VERSION_1_2) { return ""; } return "anonymous"; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/08455904ae4306d5b7b85aff97fe20120d0c2dcf/NativeFunction.java/buggy/js/rhino/src/org/mozilla/javascript/NativeFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 3828, 967, 67, 529, 1435, 288, 3639, 309, 261, 1973, 480, 446, 597, 1257, 63, 20, 8009, 2469, 1435, 405, 374, 13, 5411, 327, 1257, 63, 20, 15533, 7734, 1772, 9494, 273, 1772, 18, 588, 3935, 1042, 5621, 3639, 309, 261, 71, 92, 480, 446, 597, 9494, 18, 588, 3779, 1444, 1435, 422, 1772, 18, 5757, 67, 21, 67, 22, 13, 288, 5411, 327, 1408, 31, 3639, 289, 3639, 327, 1257, 63, 20, 15533, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 514, 3828, 967, 67, 529, 1435, 288, 3639, 309, 261, 1973, 480, 446, 597, 1257, 63, 20, 8009, 2469, 1435, 405, 374, 13, 5411, 327, 1257, 63, 20, 15533, 7734, 1772, 9494, 273, 1772, 18, 588, 3935, 1042, 5621, 3639, 309, 261, 71, 92, 480, 446, 597, 9494, 18, 588, 3779, 1444, 1435, 422, 1772, 18, 5757, 67, 21, 67, 22, 13, 288, 5411, 327, 1408, 31, 3639, 289, 3639, 327, 1257, 63, 20, 15533, 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 ]
dim.width = dim.width - (dim.width / 4);
dim.width -= (dim.width / 4);
public void panelActivate() { // We clip the panel Dimension dim = parent.getPanelsContainerSize(); dim.width = dim.width - (dim.width / 4); dim.height = 150; setMinimumSize(dim); setMaximumSize(dim); setPreferredSize(dim); parent.lockNextButton(); parent.install(this); }
28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/9619b3a25f43787dc92011111668210e06c00c71/InstallPanel.java/buggy/src/lib/com/izforge/izpack/panels/InstallPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6594, 21370, 1435, 565, 288, 3639, 368, 1660, 6807, 326, 6594, 3639, 13037, 2464, 273, 982, 18, 588, 5537, 87, 2170, 1225, 5621, 3639, 2464, 18, 2819, 3947, 261, 3509, 18, 2819, 342, 1059, 1769, 3639, 2464, 18, 4210, 273, 18478, 31, 3639, 31973, 1225, 12, 3509, 1769, 3639, 10851, 2422, 1225, 12, 3509, 1769, 3639, 31099, 1225, 12, 3509, 1769, 3639, 982, 18, 739, 2134, 3616, 5621, 3639, 982, 18, 5425, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6594, 21370, 1435, 565, 288, 3639, 368, 1660, 6807, 326, 6594, 3639, 13037, 2464, 273, 982, 18, 588, 5537, 87, 2170, 1225, 5621, 3639, 2464, 18, 2819, 3947, 261, 3509, 18, 2819, 342, 1059, 1769, 3639, 2464, 18, 4210, 273, 18478, 31, 3639, 31973, 1225, 12, 3509, 1769, 3639, 10851, 2422, 1225, 12, 3509, 1769, 3639, 31099, 1225, 12, 3509, 1769, 3639, 982, 18, 739, 2134, 3616, 5621, 3639, 982, 18, 5425, 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 ]
public NavigatorPane(boolean doSplash) { _combo = new JComboBox(); _tree = new DisplayTextTree();// _tree = new DnDNavigatorTree();// _toolbar = new Toolbar(); JPanel toolbarPanel = new JPanel(new BorderLayout()); setLayout(new BorderLayout()); _toolbar.add(_combo); _toolbar.add(Actions.NavBack); _toolbar.add(Actions.NavForw); _toolbar.add(Actions.NavConfig); _combo.addItemListener(this); _tree.addMouseListener(new NavigatorMouseListener()); _tree.addTreeSelectionListener(new NavigationTreeSelectionListener()); toolbarPanel.add(_toolbar, BorderLayout.WEST); add(toolbarPanel, BorderLayout.NORTH); add(new JScrollPane(_tree), BorderLayout.CENTER); setPreferredSize( new Dimension( Configuration.getInteger( Argo.KEY_SCREEN_WEST_WIDTH, ProjectBrowser.DEFAULT_COMPONENTWIDTH), 0)); Configuration.addListener(Notation.KEY_USE_GUILLEMOTS, this); Configuration.addListener(Notation.KEY_SHOW_STEREOTYPES, this); ProjectManager.getManager().addPropertyChangeListener(this); if (doSplash) { SplashScreen splash = ProjectBrowser.getInstance().getSplashScreen(); splash.getStatusBar().showStatus( "Making NavigatorPane: Setting Perspectives"); splash.getStatusBar().showProgress(25); } _perspectives = buildPerspectives(); setPerspectives(_perspectives);//NavPerspective.getRegisteredPerspectives()); _navHistory = new Vector(); _historyIndex = 0; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/1de82fde02a61c9bdec214aae29c615c3554fab5/NavigatorPane.java/buggy/src_new/org/argouml/ui/NavigatorPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 423, 13061, 8485, 12, 6494, 741, 16881, 961, 13, 288, 7734, 389, 25053, 273, 394, 804, 22199, 5621, 3639, 389, 3413, 273, 394, 9311, 1528, 2471, 5621, 759, 389, 3413, 273, 394, 463, 82, 8609, 13061, 2471, 5621, 759, 3639, 389, 18849, 273, 394, 13288, 3215, 5621, 3639, 24048, 12748, 5537, 273, 394, 24048, 12, 2704, 30814, 10663, 7734, 18479, 12, 2704, 30814, 10663, 7734, 389, 18849, 18, 1289, 24899, 25053, 1769, 3639, 389, 18849, 18, 1289, 12, 6100, 18, 12599, 2711, 1769, 3639, 389, 18849, 18, 1289, 12, 6100, 18, 12599, 1290, 91, 1769, 3639, 389, 18849, 18, 1289, 12, 6100, 18, 12599, 809, 1769, 7734, 389, 25053, 18, 1289, 1180, 2223, 12, 2211, 1769, 7734, 389, 3413, 18, 1289, 9186, 2223, 12, 2704, 423, 13061, 9186, 2223, 10663, 3639, 389, 3413, 18, 1289, 2471, 6233, 2223, 12, 2704, 22924, 2471, 6233, 2223, 10663, 7734, 12748, 5537, 18, 1289, 24899, 18849, 16, 30814, 18, 31285, 1769, 3639, 527, 12, 18849, 5537, 16, 30814, 18, 50, 28212, 1769, 3639, 527, 12, 2704, 804, 26360, 24899, 3413, 3631, 30814, 18, 19835, 1769, 3639, 31099, 1225, 12, 5411, 394, 13037, 12, 7734, 4659, 18, 588, 4522, 12, 10792, 1201, 3240, 18, 3297, 67, 27908, 67, 31285, 67, 10023, 16, 10792, 5420, 9132, 18, 5280, 67, 22922, 10023, 3631, 7734, 374, 10019, 7734, 4659, 18, 1289, 2223, 12, 14818, 18, 3297, 67, 8001, 67, 30673, 2627, 26817, 1974, 55, 16, 333, 1769, 3639, 4659, 18, 1289, 2223, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 423, 13061, 8485, 12, 6494, 741, 16881, 961, 13, 288, 7734, 389, 25053, 273, 394, 804, 22199, 5621, 3639, 389, 3413, 273, 394, 9311, 1528, 2471, 5621, 759, 389, 3413, 273, 394, 463, 82, 8609, 13061, 2471, 5621, 759, 3639, 389, 18849, 273, 394, 13288, 3215, 5621, 3639, 24048, 12748, 5537, 273, 394, 24048, 12, 2704, 30814, 10663, 7734, 18479, 12, 2704, 30814, 10663, 7734, 389, 18849, 18, 1289, 24899, 25053, 1769, 3639, 389, 18849, 18, 1289, 12, 6100, 18, 12599, 2711, 1769, 3639, 389, 18849, 18, 1289, 12, 6100, 18, 12599, 1290, 91, 1769, 3639, 389, 18849, 18, 1289, 12, 6100, 18, 12599, 809, 1769, 7734, 389, 25053, 18, 1289, 1180, 2223, 12, 2211, 1769, 7734, 2 ]
formComponent.updateModel();
formComponent.modelChanged();
public void formComponent(final FormComponent formComponent) { // Only update the component when it is visible and valid if (formComponent.isVisibleInHierarchy() && formComponent.isValid() ) { // Potentially update the model formComponent.updateModel(); } }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/c3f613a1d24372f28bec4bb387a13fae21585bed/Form.java/clean/wicket/src/java/wicket/markup/html/form/Form.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 646, 1841, 12, 6385, 2748, 1841, 646, 1841, 13, 1082, 202, 95, 9506, 202, 759, 5098, 1089, 326, 1794, 1347, 518, 353, 6021, 471, 923, 9506, 202, 430, 261, 687, 1841, 18, 291, 6207, 382, 12074, 1435, 597, 646, 1841, 18, 26810, 1435, 262, 9506, 202, 95, 6862, 202, 759, 23435, 11220, 1089, 326, 938, 6862, 202, 687, 1841, 18, 2725, 1488, 5621, 9506, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 646, 1841, 12, 6385, 2748, 1841, 646, 1841, 13, 1082, 202, 95, 9506, 202, 759, 5098, 1089, 326, 1794, 1347, 518, 353, 6021, 471, 923, 9506, 202, 430, 261, 687, 1841, 18, 291, 6207, 382, 12074, 1435, 597, 646, 1841, 18, 26810, 1435, 262, 9506, 202, 95, 6862, 202, 759, 23435, 11220, 1089, 326, 938, 6862, 202, 687, 1841, 18, 2725, 1488, 5621, 9506, 202, 97, 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 ]
void compileIllegal(final IGame game, final Entity entity, final MoveStep prev) { final int stepType = getType(); final boolean isInfantry = entity instanceof Infantry; Coords curPos = getPosition(); Coords lastPos = prev.getPosition(); boolean isUnjammingRAC = entity.isUnjammingRAC(); prevStepOnPavement = prev.isPavementStep(); isTurning = prev.isTurning(); isUnloaded = prev.isUnloaded(); // Infantry get a first step if all they've done is spin on the spot. if (isInfantry && (getMpUsed() - getMp()) == 0) { setFirstStep( true ); // getMpUsed() is the MPs used in the whole MovePath // getMp() is the MPs used in the last (illegal) step (this step) // if the difference between the whole path and this step is 0 // then this must be their first step } // guilty until proven innocent movementType = IEntityMovementType.MOVE_ILLEGAL; if(prev.isDiggingIn) { isDiggingIn = true; if(type != MovePath.STEP_TURN_LEFT && type != MovePath.STEP_TURN_RIGHT) { return; //can't move when digging in } movementType = IEntityMovementType.MOVE_LEGAL; } else if (type == MovePath.STEP_DIG_IN || type == MovePath.STEP_FORTIFY) { if(!isInfantry || !isFirstStep()) { return; //can't dig in } Infantry inf = (Infantry)entity; if(inf.getDugIn() != Infantry.DUG_IN_NONE && inf.getDugIn() != Infantry.DUG_IN_COMPLETE) { return; //already dug in } if(game.getBoard().getHex(curPos).containsTerrain(Terrains.FORTIFIED)) { return; //already fortified - pointless } isDiggingIn = true; movementType = IEntityMovementType.MOVE_LEGAL; } // check to see if it's trying to flee and can legally do so. if (type == MovePath.STEP_FLEE && entity.canFlee()) { movementType = IEntityMovementType.MOVE_LEGAL; } // anyone who can and does lay mines is legal if (type == MovePath.STEP_LAY_MINE && entity.canLayMine()) { movementType = IEntityMovementType.MOVE_LEGAL; } if (type == MovePath.STEP_CLIMB_MODE_ON || type == MovePath.STEP_CLIMB_MODE_OFF) { movementType = IEntityMovementType.MOVE_LEGAL; } // check for ejection (always legal?) if (type == MovePath.STEP_EJECT) { movementType = IEntityMovementType.MOVE_NONE; } if (type == MovePath.STEP_SEARCHLIGHT) { movementType = IEntityMovementType.MOVE_LEGAL; } if (type == MovePath.STEP_UNJAM_RAC) { movementType = IEntityMovementType.MOVE_NONE; } // infantry are allowed to clear mines if (type == MovePath.STEP_CLEAR_MINEFIELD && entity instanceof Infantry) { movementType = IEntityMovementType.MOVE_NONE; } // check for valid jump mp if ( parent.isJumping() && getMpUsed() <= entity.getJumpMPWithTerrain() && !isProne() && !isHullDown() && !( entity instanceof Protomech && (entity.getInternal(Protomech.LOC_LEG) == IArmorState.ARMOR_DESTROYED) ) && (!entity.isStuck() || entity.canUnstickByJumping()) ) { movementType = IEntityMovementType.MOVE_JUMP; } // legged Protos may make one facing change if (isFirstStep() && entity instanceof Protomech && (entity.getInternal(Protomech.LOC_LEG) == IArmorState.ARMOR_DESTROYED) && (stepType == MovePath.STEP_TURN_LEFT || stepType == MovePath.STEP_TURN_RIGHT) && !entity.isStuck()) { movementType = IEntityMovementType.MOVE_WALK; } // Infantry that is first stepping and turning is legal if (isInfantry && (stepType == MovePath.STEP_TURN_LEFT || stepType == MovePath.STEP_TURN_RIGHT) && isFirstStep()) { if (parent.isJumping()) { movementType = IEntityMovementType.MOVE_JUMP; } else { movementType = IEntityMovementType.MOVE_WALK; } } int tmpWalkMP = entity.getWalkMP(); if ( parent.getEntity().getMovementMode() == IEntityMovementMode.BIPED_SWIM || parent.getEntity().getMovementMode() == IEntityMovementMode.QUAD_SWIM ) tmpWalkMP = entity.getActiveUMUCount(); if ((parent.getEntity().getMovementMode() == IEntityMovementMode.VTOL) && (getElevation() != 0) && !(parent.getEntity() instanceof VTOL)) { tmpWalkMP = entity.getJumpMP(); } // check for valid walk/run mp if (!parent.isJumping() && !entity.isStuck() && tmpWalkMP > 0 && getMp() > 0) { // Prone mechs can only spend MP to turn or get up if(stepType != MovePath.STEP_TURN_LEFT && stepType != MovePath.STEP_TURN_RIGHT && stepType != MovePath.STEP_GET_UP && (isProne() || isHullDown())) { movementType = IEntityMovementType.MOVE_ILLEGAL; return; } if (getMpUsed() <= tmpWalkMP) { if (parent.getEntity().getMovementMode() == IEntityMovementMode.VTOL && getElevation() > 0) movementType = IEntityMovementType.MOVE_VTOL_WALK; else movementType = IEntityMovementType.MOVE_WALK; // Vehicles moving along pavement get "road bonus" of 1 MP. // N.B. The Ask Precentor Martial forum said that a 4/6 // tank on a road can move 5/7, **not** 5/8. } else if (entity instanceof Tank && !(entity instanceof VTOL) && isOnlyPavement() && getMpUsed() == tmpWalkMP + 1) { // store if we got the pavement Bonus for end of phase // gravity psr movementType = IEntityMovementType.MOVE_WALK; entity.gotPavementBonus = true; } else if (getMpUsed() <= entity.getRunMPwithoutMASC() && !isRunProhibited()) { if (parent.getEntity().getMovementMode() == IEntityMovementMode.VTOL) movementType = IEntityMovementType.MOVE_VTOL_RUN; else movementType = IEntityMovementType.MOVE_RUN; } else if (getMpUsed() <= entity.getRunMP() && !isRunProhibited()) { setUsingMASC(true); Mech m = (Mech) entity; setTargetNumberMASC(m.getMASCTarget()); movementType = IEntityMovementType.MOVE_RUN; } else if ( entity instanceof Tank && !(entity instanceof VTOL) && isOnlyPavement() && getMpUsed() <= (entity.getRunMP() + 1) && !isRunProhibited()) { movementType = IEntityMovementType.MOVE_RUN; // store if we got the pavement Bonus for end of phase // gravity psr entity.gotPavementBonus = true; } } // Free facing changes are legal if((stepType==MovePath.STEP_TURN_LEFT || stepType==MovePath.STEP_TURN_RIGHT) && getMp() == 0) { if(prev == null) movementType = IEntityMovementType.MOVE_WALK; else movementType = prev.movementType; } // Mechs with busted Gyro may make only one facing change if (entity.getBadCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_GYRO, Mech.LOC_CT) > 1 && !isFirstStep() ) { movementType = IEntityMovementType.MOVE_ILLEGAL; } // Mechs with 1 MP are allowed to get up, except // if they've used that 1MP up already if (MovePath.STEP_GET_UP==stepType && 1==entity.getRunMP() && entity.mpUsed < 1 && !entity.isStuck()) { movementType = IEntityMovementType.MOVE_RUN; } // amnesty for the first step if (isFirstStep() && movementType == IEntityMovementType.MOVE_ILLEGAL && entity.getWalkMP() > 0 && !entity.isProne() && !entity.isHullDown() && !entity.isStuck() && stepType == MovePath.STEP_FORWARDS) { movementType = IEntityMovementType.MOVE_RUN; } // Is the entity unloading passengers? if (stepType == MovePath.STEP_UNLOAD) { if (isFirstStep()) { if (getMpUsed() <= entity.getRunMP()) { movementType = IEntityMovementType.MOVE_RUN; if (getMpUsed() <= entity.getWalkMP()) { movementType = IEntityMovementType.MOVE_WALK; } } } // Prone Meks are able to unload, if they have the MP. if (getMpUsed() <= entity.getRunMP() && (entity.isProne() || entity.isHullDown()) && movementType == IEntityMovementType.MOVE_ILLEGAL) { movementType = IEntityMovementType.MOVE_RUN; if (getMpUsed() <= entity.getWalkMP()) { movementType = IEntityMovementType.MOVE_WALK; } } // Can't unload units into prohibited terrain // or into stacking violation. Targetable target = getTarget(game); if (target instanceof Entity) { Entity other = (Entity) target; if (null != Compute.stackingViolation(game, other, curPos, entity) || other.isHexProhibited(game.getBoard().getHex(curPos))) { movementType = IEntityMovementType.MOVE_ILLEGAL; } } else { movementType = IEntityMovementType.MOVE_ILLEGAL; } } // Can't run or jump if unjamming a RAC. if (isUnjammingRAC && (movementType == IEntityMovementType.MOVE_RUN || movementType == IEntityMovementType.MOVE_VTOL_RUN || parent.isJumping())) { movementType = IEntityMovementType.MOVE_ILLEGAL; } // only standing mechs may go prone if (stepType == MovePath.STEP_GO_PRONE && (isProne() || !(entity instanceof Mech) || entity.isStuck())) { movementType = IEntityMovementType.MOVE_ILLEGAL; } // only standing quads may go hull down if (stepType == MovePath.STEP_HULL_DOWN) { if((isProne() || isHullDown() || !(entity instanceof QuadMech || entity instanceof Tank) || entity.isStuck())) { movementType = IEntityMovementType.MOVE_ILLEGAL; } if(entity instanceof Tank && !(game.getBoard().getHex(curPos).containsTerrain(Terrains.FORTIFIED))) { movementType = IEntityMovementType.MOVE_ILLEGAL; } } // initially prone mechs can't charge if((stepType == MovePath.STEP_CHARGE || stepType == MovePath.STEP_DFA) && entity.isProne()) { movementType = IEntityMovementType.MOVE_ILLEGAL; } // check if this movement is illegal for reasons other than points if (!isMovementPossible(game, lastPos, prev.getElevation()) || isUnloaded) { movementType = IEntityMovementType.MOVE_ILLEGAL; } // If the previous step is always illegal, then so is this one if ( prev != null && IEntityMovementType.MOVE_ILLEGAL == prev.movementType ) { movementType = IEntityMovementType.MOVE_ILLEGAL; } // Don't compute danger if the step is illegal. if (movementType == IEntityMovementType.MOVE_ILLEGAL) { return; } int prevEl = getElevation(); if (prev != null) { prevEl = prev.getElevation(); } danger |= Compute.isPilotingSkillNeeded( game, entity.getId(), lastPos, curPos, movementType, isTurning, prevStepOnPavement, prevEl, getElevation()); // getting up is also danger if (stepType == MovePath.STEP_GET_UP) { danger = true; } // set past danger pastDanger |= danger; // Record if we're turning *after* check for danger, // because the danger lies in moving *after* turn. switch (stepType) { case MovePath.STEP_TURN_LEFT : case MovePath.STEP_TURN_RIGHT : setTurning(true); break; case MovePath.STEP_UNLOAD : // Unloading must be the last step. setUnloaded(true); break; default : setTurning(false); break; } // update prone state if (stepType == MovePath.STEP_GO_PRONE) { setProne(true); setHullDown(false); } else if (stepType == MovePath.STEP_GET_UP) { setProne(false); setHullDown(false); } else if (stepType == MovePath.STEP_HULL_DOWN) { setProne(false); setHullDown(true); } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/ba147a76cf586d270b0704ca04f41df327cf1a3f/MoveStep.java/clean/megamek/src/megamek/common/MoveStep.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 4074, 12195, 12, 6385, 467, 12496, 7920, 16, 727, 3887, 1522, 16, 13491, 727, 9933, 4160, 2807, 13, 288, 3639, 727, 509, 2235, 559, 273, 3130, 5621, 3639, 727, 1250, 8048, 74, 304, 698, 273, 1522, 1276, 13648, 304, 698, 31, 3639, 10320, 87, 662, 1616, 273, 14441, 5621, 3639, 10320, 87, 1142, 1616, 273, 2807, 18, 588, 2555, 5621, 3639, 1250, 20488, 78, 301, 11987, 54, 2226, 273, 1522, 18, 291, 984, 78, 301, 11987, 54, 2226, 5621, 3639, 2807, 4160, 1398, 52, 842, 820, 273, 2807, 18, 291, 52, 842, 820, 4160, 5621, 3639, 353, 15858, 310, 273, 2807, 18, 291, 15858, 310, 5621, 3639, 20488, 4230, 273, 2807, 18, 291, 984, 4230, 5621, 7734, 368, 13648, 304, 698, 336, 279, 1122, 2235, 309, 777, 2898, 8081, 2731, 353, 12490, 603, 326, 16463, 18, 3639, 309, 261, 291, 13149, 304, 698, 597, 261, 588, 49, 84, 6668, 1435, 300, 2108, 84, 10756, 422, 374, 13, 288, 5411, 24789, 4160, 12, 638, 11272, 5411, 368, 282, 2108, 84, 6668, 1435, 353, 326, 13480, 87, 1399, 316, 326, 7339, 9933, 743, 5411, 368, 282, 2108, 84, 1435, 353, 326, 13480, 87, 1399, 316, 326, 1142, 261, 31751, 13, 2235, 261, 2211, 2235, 13, 5411, 368, 282, 309, 326, 7114, 3086, 326, 7339, 589, 471, 333, 2235, 353, 374, 5411, 368, 282, 1508, 333, 1297, 506, 3675, 1122, 2235, 10792, 289, 3639, 368, 3058, 330, 4098, 3180, 450, 3995, 316, 31470, 319, 3639, 26017, 559, 273, 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, 918, 4074, 12195, 12, 6385, 467, 12496, 7920, 16, 727, 3887, 1522, 16, 13491, 727, 9933, 4160, 2807, 13, 288, 3639, 727, 509, 2235, 559, 273, 3130, 5621, 3639, 727, 1250, 8048, 74, 304, 698, 273, 1522, 1276, 13648, 304, 698, 31, 3639, 10320, 87, 662, 1616, 273, 14441, 5621, 3639, 10320, 87, 1142, 1616, 273, 2807, 18, 588, 2555, 5621, 3639, 1250, 20488, 78, 301, 11987, 54, 2226, 273, 1522, 18, 291, 984, 78, 301, 11987, 54, 2226, 5621, 3639, 2807, 4160, 1398, 52, 842, 820, 273, 2807, 18, 291, 52, 842, 820, 4160, 5621, 3639, 353, 15858, 310, 273, 2807, 18, 291, 15858, 310, 5621, 3639, 20488, 4230, 273, 2807, 18, 291, 984, 4230, 5621, 7734, 2 ]
if (command.getClass() == ShutdownCommand.class) {
if (command.getClass() == ShutdownInfo.class) {
public void onCommand(Command command) { try { if (command.getClass() == ShutdownCommand.class) { shuttingDown = true; } StubConnection.this.dispatch(command); } catch (Exception e) { onException(new IOException("" + e)); } }
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/a2fc7a2dc05aece8b6c0fcb6fba34d3f4a33f341/StubConnection.java/buggy/activemq-core/src/test/java/org/apache/activemq/broker/StubConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 603, 2189, 12, 2189, 1296, 13, 288, 7734, 775, 288, 10792, 309, 261, 3076, 18, 588, 797, 1435, 422, 17640, 966, 18, 1106, 13, 288, 13491, 24376, 4164, 273, 638, 31, 10792, 289, 10792, 26483, 1952, 18, 2211, 18, 10739, 12, 3076, 1769, 7734, 289, 7734, 1044, 261, 503, 425, 13, 288, 10792, 603, 503, 12, 2704, 1860, 2932, 6, 397, 425, 10019, 7734, 289, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 603, 2189, 12, 2189, 1296, 13, 288, 7734, 775, 288, 10792, 309, 261, 3076, 18, 588, 797, 1435, 422, 17640, 966, 18, 1106, 13, 288, 13491, 24376, 4164, 273, 638, 31, 10792, 289, 10792, 26483, 1952, 18, 2211, 18, 10739, 12, 3076, 1769, 7734, 289, 7734, 1044, 261, 503, 425, 13, 288, 10792, 603, 503, 12, 2704, 1860, 2932, 6, 397, 425, 10019, 7734, 289, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
eNotify(new ENotificationImpl(this, Notification.UNSET, AttributePackage.DATA_POINT_COMPONENT__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet));
eNotify(new ENotificationImpl(this, Notification.UNSET, AttributePackage.DATA_POINT_COMPONENT__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet));
public void unsetType() { DataPointComponentType oldType = type; boolean oldTypeESet = typeESet; type = TYPE_EDEFAULT; typeESet = false; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.UNSET, AttributePackage.DATA_POINT_COMPONENT__TYPE, oldType, TYPE_EDEFAULT, oldTypeESet)); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/DataPointComponentImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/DataPointComponentImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2646, 559, 1435, 565, 288, 3639, 1910, 2148, 28116, 1592, 559, 273, 618, 31, 3639, 1250, 1592, 559, 41, 694, 273, 618, 41, 694, 31, 3639, 618, 273, 3463, 67, 11236, 31, 3639, 618, 41, 694, 273, 629, 31, 3639, 309, 261, 73, 21107, 10756, 5411, 22596, 12, 2704, 19953, 12, 2211, 16, 8050, 18, 2124, 4043, 16, 3601, 2261, 18, 4883, 67, 8941, 67, 22922, 972, 2399, 16, 1592, 559, 16, 3463, 67, 11236, 16, 1592, 559, 41, 694, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 2646, 559, 1435, 565, 288, 3639, 1910, 2148, 28116, 1592, 559, 273, 618, 31, 3639, 1250, 1592, 559, 41, 694, 273, 618, 41, 694, 31, 3639, 618, 273, 3463, 67, 11236, 31, 3639, 618, 41, 694, 273, 629, 31, 3639, 309, 261, 73, 21107, 10756, 5411, 22596, 12, 2704, 19953, 12, 2211, 16, 8050, 18, 2124, 4043, 16, 3601, 2261, 18, 4883, 67, 8941, 67, 22922, 972, 2399, 16, 1592, 559, 16, 3463, 67, 11236, 16, 1592, 559, 41, 694, 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 ]
tmp1 = 1/((.15f+qlsp[i]-qlsp[i-1])*(.15f+qlsp[i]-qlsp[i-1])); tmp2 = 1/((.15f+qlsp[i+1]-qlsp[i])*(.15f+qlsp[i+1]-qlsp[i]));
tmp1 = 1 / ((.15f + qlsp[i] - qlsp[i-1]) * (.15f + qlsp[i] - qlsp[i-1])); tmp2 = 1 / ((.15f + qlsp[i+1] - qlsp[i]) * (.15f + qlsp[i+1] - qlsp[i]));
public final void quant(float[] lsp, float[] qlsp, int order, Bits bits) { int i; float tmp1, tmp2; int id; float[] quant_weight = new float[MAX_LSP_SIZE]; for (i=0;i<order;i++) qlsp[i]=lsp[i]; quant_weight[0] = 1/(qlsp[1]-qlsp[0]); quant_weight[order-1] = 1/(qlsp[order-1]-qlsp[order-2]); for (i=1;i<order-1;i++) { tmp1 = 1/((.15f+qlsp[i]-qlsp[i-1])*(.15f+qlsp[i]-qlsp[i-1])); tmp2 = 1/((.15f+qlsp[i+1]-qlsp[i])*(.15f+qlsp[i+1]-qlsp[i])); quant_weight[i] = tmp1 > tmp2 ? tmp1 : tmp2; } for (i=0;i<order;i++) qlsp[i]-=(.25*i+.25); for (i=0;i<order;i++) qlsp[i]*=256; id = lsp_quant(qlsp, 0, cdbk_nb, NB_CDBK_SIZE, order); bits.pack(id, 6); for (i=0;i<order;i++) qlsp[i]*=2; id = lsp_weight_quant(qlsp, 0, quant_weight, 0, cdbk_nb_low1, NB_CDBK_SIZE_LOW1, 5); bits.pack(id, 6); for (i=0;i<5;i++) qlsp[i]*=2; id = lsp_weight_quant(qlsp, 0, quant_weight, 0, cdbk_nb_low2, NB_CDBK_SIZE_LOW2, 5); bits.pack(id, 6); id = lsp_weight_quant(qlsp, 5, quant_weight, 5, cdbk_nb_high1, NB_CDBK_SIZE_HIGH1, 5); bits.pack(id, 6); for (i=5;i<10;i++) qlsp[i]*=2; id = lsp_weight_quant(qlsp, 5, quant_weight, 5, cdbk_nb_high2, NB_CDBK_SIZE_HIGH2, 5); bits.pack(id, 6); for (i=0;i<order;i++) qlsp[i]*=.00097656; for (i=0;i<order;i++) qlsp[i]=lsp[i]-qlsp[i]; }
6022 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6022/68640e768b66e83c5637a95cc8f41b712d9fea61/NbLspQuant.java/clean/main/trunk/codec/src/main/java/org/xiph/speex/NbLspQuant.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 727, 918, 10251, 12, 5659, 8526, 328, 1752, 16, 1431, 8526, 1043, 80, 1752, 16, 509, 1353, 16, 18690, 4125, 13, 225, 288, 565, 509, 277, 31, 565, 1431, 1853, 21, 16, 1853, 22, 31, 565, 509, 612, 31, 565, 1431, 8526, 10251, 67, 4865, 273, 394, 1431, 63, 6694, 67, 3045, 52, 67, 4574, 15533, 565, 364, 261, 77, 33, 20, 31, 77, 32, 1019, 31, 77, 27245, 1377, 1043, 80, 1752, 63, 77, 65, 33, 80, 1752, 63, 77, 15533, 565, 10251, 67, 4865, 63, 20, 65, 273, 404, 19, 12, 1217, 1752, 63, 21, 65, 17, 1217, 1752, 63, 20, 19226, 565, 10251, 67, 4865, 63, 1019, 17, 21, 65, 273, 404, 19, 12, 1217, 1752, 63, 1019, 17, 21, 65, 17, 1217, 1752, 63, 1019, 17, 22, 19226, 565, 364, 261, 77, 33, 21, 31, 77, 32, 1019, 17, 21, 31, 77, 27245, 288, 1377, 1853, 21, 273, 404, 19, 12, 10604, 3600, 74, 15, 1217, 1752, 63, 77, 65, 17, 1217, 1752, 63, 77, 17, 21, 5717, 14, 10604, 3600, 74, 15, 1217, 1752, 63, 77, 65, 17, 1217, 1752, 63, 77, 17, 21, 5717, 1769, 1377, 1853, 22, 273, 404, 19, 12, 10604, 3600, 74, 15, 1217, 1752, 63, 77, 15, 21, 65, 17, 1217, 1752, 63, 77, 5717, 14, 10604, 3600, 74, 15, 1217, 1752, 63, 77, 15, 21, 65, 17, 1217, 1752, 63, 77, 5717, 1769, 1377, 10251, 67, 4865, 63, 77, 65, 273, 1853, 21, 405, 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, 727, 918, 10251, 12, 5659, 8526, 328, 1752, 16, 1431, 8526, 1043, 80, 1752, 16, 509, 1353, 16, 18690, 4125, 13, 225, 288, 565, 509, 277, 31, 565, 1431, 1853, 21, 16, 1853, 22, 31, 565, 509, 612, 31, 565, 1431, 8526, 10251, 67, 4865, 273, 394, 1431, 63, 6694, 67, 3045, 52, 67, 4574, 15533, 565, 364, 261, 77, 33, 20, 31, 77, 32, 1019, 31, 77, 27245, 1377, 1043, 80, 1752, 63, 77, 65, 33, 80, 1752, 63, 77, 15533, 565, 10251, 67, 4865, 63, 20, 65, 273, 404, 19, 12, 1217, 1752, 63, 21, 65, 17, 1217, 1752, 63, 20, 19226, 565, 10251, 67, 4865, 63, 1019, 17, 21, 65, 273, 404, 19, 12, 2 ]
try {
try {
public String getLocalizedTitle(IWContext iwc) { //Map tree = PageTreeNode.getTree(iwc); BuilderService bservice; ICTreeNode node=null; try { bservice = getBuilderService(iwc); int pageId = bservice.getCurrentPageId(iwc); node = (ICTreeNode)bservice.getPageTree(pageId,iwc.getCurrentUserId()); } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); } if (node != null) { String locName = node.getNodeName(iwc.getCurrentLocale()); if (locName != null && !locName.equals("")) { return locName; } } return getTitle(); }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/4f08b8c845a5f83233ee85bb4cda2c645dd467a4/Page.java/clean/src/java/com/idega/presentation/Page.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 14262, 4247, 12, 45, 59, 1042, 25522, 71, 13, 288, 202, 202, 759, 863, 2151, 273, 3460, 12513, 18, 588, 2471, 12, 22315, 71, 1769, 202, 202, 1263, 1179, 324, 3278, 31, 202, 202, 45, 1268, 992, 907, 756, 33, 2011, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 20015, 273, 23314, 1179, 12, 22315, 71, 1769, 1082, 202, 474, 18720, 273, 324, 3278, 18, 588, 3935, 23053, 12, 22315, 71, 1769, 1082, 202, 2159, 273, 261, 45, 1268, 992, 907, 13, 20015, 18, 588, 1964, 2471, 12, 2433, 548, 16, 22315, 71, 18, 588, 3935, 10502, 10663, 202, 202, 97, 202, 202, 14683, 261, 5169, 503, 425, 13, 202, 202, 95, 1082, 202, 759, 2660, 8064, 17, 11168, 1044, 1203, 1082, 202, 73, 18, 1188, 6332, 5621, 202, 202, 97, 202, 202, 430, 261, 2159, 480, 446, 13, 288, 1082, 202, 780, 1515, 461, 273, 756, 18, 588, 18948, 12, 22315, 71, 18, 588, 3935, 3916, 10663, 1082, 202, 430, 261, 1829, 461, 480, 446, 597, 401, 1829, 461, 18, 14963, 2932, 6, 3719, 288, 9506, 202, 2463, 1515, 461, 31, 1082, 202, 97, 202, 202, 97, 9506, 202, 2463, 10786, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 14262, 4247, 12, 45, 59, 1042, 25522, 71, 13, 288, 202, 202, 759, 863, 2151, 273, 3460, 12513, 18, 588, 2471, 12, 22315, 71, 1769, 202, 202, 1263, 1179, 324, 3278, 31, 202, 202, 45, 1268, 992, 907, 756, 33, 2011, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 20015, 273, 23314, 1179, 12, 22315, 71, 1769, 1082, 202, 474, 18720, 273, 324, 3278, 18, 588, 3935, 23053, 12, 22315, 71, 1769, 1082, 202, 2159, 273, 261, 45, 1268, 992, 907, 13, 20015, 18, 588, 1964, 2471, 12, 2433, 548, 16, 22315, 71, 18, 588, 3935, 10502, 10663, 202, 202, 97, 202, 202, 14683, 261, 5169, 503, 425, 13, 202, 202, 95, 1082, 202, 2 ]
List reports = reporting.getPlugins();
ReportPlugin plugin = (ReportPlugin) i.next();
private void transformPomToReleaseVersionPom( MavenProject project ) throws MojoExecutionException { if ( !getReleaseProgress().verifyCheckpoint( ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ) ) { if ( !isSnapshot( project.getVersion() ) ) { throw new MojoExecutionException( "The project " + project.getGroupId() + ":" + project.getArtifactId() + " isn't a snapshot (" + project.getVersion() + ")." ); } Model model = project.getOriginalModel(); //Rewrite parent version if ( model.getParent() != null ) { Artifact parentArtifact = project.getParentArtifact(); if ( isSnapshot( parentArtifact.getBaseVersion() ) ) { String version = resolveVersion( parentArtifact, "parent", project ); model.getParent().setVersion( version ); } } //Rewrite dependencies section List dependencies = model.getDependencies(); if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); // Avoid in dep mgmt if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } DependencyManagement dependencyManagement = model.getDependencyManagement(); dependencies = dependencyManagement != null ? dependencyManagement.getDependencies() : null; if ( dependencies != null ) { for ( Iterator i = dependencies.iterator(); i.hasNext(); ) { Dependency dep = (Dependency) i.next(); if ( dep.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( dep.getGroupId(), dep.getArtifactId() ); if ( resolvedVersion != null ) { dep.setVersion( resolvedVersion ); } } } } Build build = model.getBuild(); if ( build != null ) { //Rewrite plugins section List plugins = build.getPlugins(); if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); // Avoid in plugin mgmt if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } PluginManagement pluginManagement = build.getPluginManagement(); plugins = pluginManagement != null ? pluginManagement.getPlugins() : null; if ( plugins != null ) { for ( Iterator i = plugins.iterator(); i.hasNext(); ) { Plugin plugin = (Plugin) i.next(); if ( plugin.getVersion() != null ) { String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } } //Rewrite extensions section List extensions = build.getExtensions(); for ( Iterator i = extensions.iterator(); i.hasNext(); ) { Extension ext = (Extension) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( ext.getGroupId(), ext.getArtifactId() ); if ( resolvedVersion != null ) { ext.setVersion( resolvedVersion ); } } } Reporting reporting = model.getReporting(); if ( reporting != null ) { //Rewrite reports section List reports = reporting.getPlugins(); for ( Iterator i = reports.iterator(); i.hasNext(); ) { ReportPlugin plugin = (ReportPlugin) i.next(); String resolvedVersion = getVersionResolver().getResolvedVersion( plugin.getGroupId(), plugin.getArtifactId() ); if ( resolvedVersion != null ) { plugin.setVersion( resolvedVersion ); } } } Writer writer = null; try { writer = new FileWriter( project.getFile() ); project.writeOriginalModel( writer ); } catch ( IOException e ) { throw new MojoExecutionException( "Cannot write released version of pom to: " + project.getFile(), e ); } finally { IOUtil.close( writer ); } try { getReleaseProgress().checkpoint( basedir, ReleaseProgressTracker.CP_POM_TRANSFORMED_FOR_RELEASE ); } catch ( IOException e ) { getLog().warn( "Error writing checkpoint.", e ); } } }
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/22f9a34107d27782bab8e88b50b54708304b73dc/PrepareReleaseMojo.java/buggy/maven-plugins/maven-release-plugin/src/main/java/org/apache/maven/plugins/release/PrepareReleaseMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135, 18, 4258, 67, 52, 1872, 67, 16596, 7473, 25773, 67, 7473, 67, 30762, 262, 262, 3639, 288, 5411, 309, 261, 401, 291, 4568, 12, 1984, 18, 588, 1444, 1435, 262, 262, 5411, 288, 7734, 604, 394, 18780, 12, 315, 1986, 1984, 315, 397, 1984, 18, 588, 8722, 1435, 397, 6153, 397, 10792, 1984, 18, 588, 7581, 548, 1435, 397, 315, 5177, 1404, 279, 4439, 7566, 397, 1984, 18, 588, 1444, 1435, 397, 9369, 1199, 11272, 5411, 289, 5411, 3164, 938, 273, 1984, 18, 588, 8176, 1488, 5621, 5411, 368, 19618, 982, 1177, 5411, 309, 261, 938, 18, 588, 3054, 1435, 480, 446, 262, 5411, 288, 7734, 14022, 982, 7581, 273, 1984, 18, 588, 3054, 7581, 5621, 7734, 309, 261, 353, 4568, 12, 982, 7581, 18, 588, 2171, 1444, 1435, 262, 262, 7734, 288, 10792, 514, 1177, 273, 2245, 1444, 12, 982, 7581, 16, 315, 2938, 3113, 1984, 11272, 10792, 938, 18, 588, 3054, 7675, 542, 1444, 12, 1177, 11272, 7734, 289, 5411, 289, 5411, 368, 19618, 5030, 2442, 5411, 987, 5030, 273, 938, 18, 588, 8053, 5621, 5411, 309, 261, 5030, 480, 446, 262, 5411, 288, 7734, 364, 261, 4498, 277, 273, 5030, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 262, 7734, 288, 10792, 11993, 5993, 273, 261, 7787, 13, 277, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2510, 52, 362, 774, 7391, 1444, 52, 362, 12, 17176, 4109, 1984, 262, 3639, 1216, 18780, 565, 288, 3639, 309, 261, 401, 588, 7391, 5491, 7675, 8705, 14431, 12, 10819, 5491, 8135, 18, 4258, 67, 52, 1872, 67, 16596, 7473, 25773, 67, 7473, 67, 30762, 262, 262, 3639, 288, 5411, 309, 261, 401, 291, 4568, 12, 1984, 18, 588, 1444, 1435, 262, 262, 5411, 288, 7734, 604, 394, 18780, 12, 315, 1986, 1984, 315, 397, 1984, 18, 588, 8722, 1435, 397, 6153, 397, 10792, 1984, 18, 588, 7581, 548, 1435, 397, 315, 5177, 1404, 279, 4439, 7566, 397, 1984, 18, 588, 1444, 1435, 397, 9369, 1199, 11272, 5411, 289, 5411, 3164, 938, 273, 1984, 18, 588, 2 ]
throw new ArgumentError(runtime, "wrong # of arguments(" +
throw runtime.newArgumentError("wrong # of arguments(" +
public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean yieldProc, boolean aValue) { if (! isBlockGiven()) { throw new LocalJumpError(runtime, "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); getFrameStack().push(currentBlock.getFrame()); Scope oldScope = (Scope) getScopeStack().getTop(); getScopeStack().setTop(currentBlock.getScope()); getBlockStack().pop(); dynamicVarsStack.push(currentBlock.getDynamicVariables()); pushClass((klass != null) ? klass : currentBlock.getKlass()); if (klass == null) { self = currentBlock.getSelf(); } Node blockVar = currentBlock.getVar(); if (blockVar != null) { if (blockVar instanceof ZeroArgNode) { // Better not have arguments for a no-arg block. if (yieldProc && arrayLength(value) != 0) { throw new ArgumentError(runtime, "wrong # of arguments(" + ((RubyArray)value).getLength() + "for 0)"); } } else if (blockVar instanceof MultipleAsgnNode) { if (!aValue) { value = sValueToMRHS(value, ((MultipleAsgnNode)blockVar).getHeadNode()); } value = mAssign(self, (MultipleAsgnNode)blockVar, (RubyArray)value, yieldProc); } else { if (aValue) { int length = arrayLength(value); if (length == 0) { value = runtime.getNil(); } else if (length == 1) { value = ((RubyArray)value).first(null); } else { // XXXEnebo - Should be warning not error. //throw new ArgumentError(runtime, "wrong # of arguments(" + // length + "for 1)"); } } else if (value == null) { // XXXEnebo - Should be warning not error. //throw new ArgumentError(runtime, "wrong # of arguments(0 for 1)"); } new AssignmentVisitor(runtime, self).assign(blockVar, value, yieldProc); } } ICallable method = currentBlock.getMethod(); if (method == null) { return runtime.getNil(); } getIterStack().push(currentBlock.getIter()); IRubyObject[] args = ArgsUtil.arrayify(runtime, value); try { while (true) { try { return method.call(runtime, self, null, args, false); } catch (RedoJump rExcptn) { } } } catch (NextJump nExcptn) { IRubyObject nextValue = nExcptn.getNextValue(); return nextValue == null ? runtime.getNil() : nextValue; } finally { getIterStack().pop(); popClass(); dynamicVarsStack.pop(); getBlockStack().setCurrent(currentBlock); getFrameStack().pop(); getScopeStack().setTop(oldScope); dynamicVarsStack.pop(); } }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/870e1da9b41bfdbae259e1fc5f18fc8b76686998/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 2824, 12, 7937, 10340, 921, 460, 16, 15908, 10340, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 2824, 15417, 16, 1250, 24406, 13, 288, 3639, 309, 16051, 31394, 6083, 10756, 288, 5411, 604, 394, 3566, 26743, 668, 12, 9448, 16, 315, 23604, 2566, 596, 434, 1203, 8863, 3639, 289, 3639, 1817, 9791, 5555, 5621, 3639, 3914, 30610, 273, 11902, 2624, 7675, 588, 3935, 5621, 3639, 25396, 2624, 7675, 6206, 12, 2972, 1768, 18, 588, 3219, 10663, 3639, 5468, 1592, 3876, 273, 261, 3876, 13, 19203, 2624, 7675, 588, 3401, 5621, 3639, 19203, 2624, 7675, 542, 3401, 12, 2972, 1768, 18, 588, 3876, 10663, 3639, 11902, 2624, 7675, 5120, 5621, 3639, 5976, 5555, 2624, 18, 6206, 12, 2972, 1768, 18, 588, 9791, 6158, 10663, 3639, 1817, 797, 12443, 22626, 480, 446, 13, 692, 7352, 294, 30610, 18, 588, 47, 459, 10663, 3639, 309, 261, 22626, 422, 446, 13, 288, 5411, 365, 273, 30610, 18, 588, 10084, 5621, 3639, 289, 7734, 2029, 1203, 1537, 273, 30610, 18, 588, 1537, 5621, 3639, 309, 261, 2629, 1537, 480, 446, 13, 288, 5411, 309, 261, 2629, 1537, 1276, 12744, 4117, 907, 13, 288, 7734, 368, 605, 11214, 486, 1240, 1775, 364, 279, 1158, 17, 3175, 1203, 18, 7734, 309, 261, 23604, 15417, 597, 526, 1782, 12, 1132, 13, 480, 374, 13, 288, 5397, 604, 3099, 18, 2704, 1379, 668, 2932, 21530, 468, 434, 1775, 2932, 397, 11794, 14015, 54, 10340, 1076, 13, 1132, 2934, 588, 1782, 1435, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 2824, 12, 7937, 10340, 921, 460, 16, 15908, 10340, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 2824, 15417, 16, 1250, 24406, 13, 288, 3639, 309, 16051, 31394, 6083, 10756, 288, 5411, 604, 394, 3566, 26743, 668, 12, 9448, 16, 315, 23604, 2566, 596, 434, 1203, 8863, 3639, 289, 3639, 1817, 9791, 5555, 5621, 3639, 3914, 30610, 273, 11902, 2624, 7675, 588, 3935, 5621, 3639, 25396, 2624, 7675, 6206, 12, 2972, 1768, 18, 588, 3219, 10663, 3639, 5468, 1592, 3876, 273, 261, 3876, 13, 19203, 2624, 7675, 588, 3401, 5621, 3639, 19203, 2624, 7675, 542, 3401, 12, 2972, 1768, 18, 588, 3876, 10663, 3639, 11902, 2624, 7675, 5120, 5621, 3639, 5976, 5555, 2624, 18, 2 ]
action.setActionDefinitionId("org.eclipse.ui.edit.addBookMark");
action.setActionDefinitionId("org.eclipse.ui.edit.addBookmark");
public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } RetargetAction action = new RetargetAction(getId(), IDEWorkbenchMessages.getString("Workbench.addBookMark")); //$NON-NLS-1$ //$NON-NLS-2$ action.setToolTipText(IDEWorkbenchMessages.getString("Workbench.addBookMarkToolTip")); //$NON-NLS-1$ window.getPartService().addPartListener(action); action.setActionDefinitionId("org.eclipse.ui.edit.addBookMark"); //$NON-NLS-1$ return action; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/d53d3bb4524a8f1535230cedcf4a448d4d56eda5/IDEActionFactory.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/IDEActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 1082, 202, 430, 261, 5668, 422, 446, 13, 288, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 1082, 202, 7055, 826, 1803, 1301, 273, 394, 17100, 826, 1803, 12, 26321, 9334, 1599, 41, 2421, 22144, 5058, 18, 588, 780, 2932, 2421, 22144, 18, 1289, 9084, 3882, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 1082, 202, 1128, 18, 542, 29250, 1528, 12, 10385, 2421, 22144, 5058, 18, 588, 780, 2932, 2421, 22144, 18, 1289, 9084, 3882, 29250, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 5668, 18, 588, 1988, 1179, 7675, 1289, 1988, 2223, 12, 1128, 1769, 1082, 202, 1128, 18, 542, 1803, 21768, 2932, 3341, 18, 20416, 18, 4881, 18, 4619, 18, 1289, 22966, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 1301, 31, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 467, 2421, 22144, 1803, 752, 12, 45, 2421, 22144, 3829, 2742, 13, 288, 1082, 202, 430, 261, 5668, 422, 446, 13, 288, 9506, 202, 12849, 394, 2754, 5621, 1082, 202, 97, 1082, 202, 7055, 826, 1803, 1301, 273, 394, 17100, 826, 1803, 12, 26321, 9334, 1599, 41, 2421, 22144, 5058, 18, 588, 780, 2932, 2421, 22144, 18, 1289, 9084, 3882, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 1082, 202, 1128, 18, 542, 29250, 1528, 12, 10385, 2421, 22144, 5058, 18, 588, 780, 2932, 2421, 22144, 18, 1289, 9084, 3882, 29250, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 5668, 18, 588, 1988, 1179, 7675, 2 ]
boolean isExpr)
int functionType)
public Object createFunction(String name, ObjArray argNames, Object statements, String sourceName, int baseLineno, int endLineno, Object source, boolean isExpr) { if (name == null) { name = ""; } FunctionNode f = (FunctionNode) createFunctionNode(name, statements); f.argNames = argNames; f.setFunctionType(isExpr ? FunctionNode.FUNCTION_EXPRESSION : FunctionNode.FUNCTION_STATEMENT); f.putProp(Node.SOURCENAME_PROP, sourceName); f.putIntProp(Node.BASE_LINENO_PROP, baseLineno); f.putIntProp(Node.END_LINENO_PROP, endLineno); if (source != null) f.putProp(Node.SOURCE_PROP, source); Node result = Node.newString(TokenStream.FUNCTION, name); result.putProp(Node.FUNCTION_PROP, f); return result; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/cb9350e1a2eb151e87843cfcd75986fa06c9fdeb/IRFactory.java/buggy/src/org/mozilla/javascript/IRFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 752, 2083, 12, 780, 508, 16, 18760, 1076, 1501, 1557, 16, 4766, 1033, 6317, 16, 4766, 514, 28337, 16, 509, 1026, 48, 267, 5764, 16, 4766, 509, 679, 48, 267, 5764, 16, 1033, 1084, 16, 4766, 509, 445, 559, 13, 565, 288, 3639, 309, 261, 529, 422, 446, 13, 288, 5411, 508, 273, 1408, 31, 3639, 289, 3639, 4284, 907, 284, 273, 261, 2083, 907, 13, 752, 2083, 907, 12, 529, 16, 6317, 1769, 3639, 284, 18, 3175, 1557, 273, 1501, 1557, 31, 3639, 284, 18, 542, 2083, 559, 12, 291, 4742, 692, 4284, 907, 18, 7788, 67, 19111, 4766, 294, 4284, 907, 18, 7788, 67, 28411, 1769, 3639, 284, 18, 458, 4658, 12, 907, 18, 3584, 1099, 39, 21150, 67, 15811, 16, 28337, 1769, 3639, 284, 18, 458, 1702, 4658, 12, 907, 18, 8369, 67, 20663, 1157, 51, 67, 15811, 16, 1026, 48, 267, 5764, 1769, 3639, 284, 18, 458, 1702, 4658, 12, 907, 18, 4415, 67, 20663, 1157, 51, 67, 15811, 16, 679, 48, 267, 5764, 1769, 3639, 309, 261, 3168, 480, 446, 13, 5411, 284, 18, 458, 4658, 12, 907, 18, 6537, 67, 15811, 16, 1084, 1769, 3639, 2029, 563, 273, 2029, 18, 2704, 780, 12, 1345, 1228, 18, 7788, 16, 508, 1769, 3639, 563, 18, 458, 4658, 12, 907, 18, 7788, 67, 15811, 16, 284, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 752, 2083, 12, 780, 508, 16, 18760, 1076, 1501, 1557, 16, 4766, 1033, 6317, 16, 4766, 514, 28337, 16, 509, 1026, 48, 267, 5764, 16, 4766, 509, 679, 48, 267, 5764, 16, 1033, 1084, 16, 4766, 509, 445, 559, 13, 565, 288, 3639, 309, 261, 529, 422, 446, 13, 288, 5411, 508, 273, 1408, 31, 3639, 289, 3639, 4284, 907, 284, 273, 261, 2083, 907, 13, 752, 2083, 907, 12, 529, 16, 6317, 1769, 3639, 284, 18, 3175, 1557, 273, 1501, 1557, 31, 3639, 284, 18, 542, 2083, 559, 12, 291, 4742, 692, 4284, 907, 18, 7788, 67, 19111, 4766, 294, 4284, 907, 18, 7788, 67, 28411, 1769, 3639, 284, 18, 458, 4658, 12, 907, 18, 2 ]
if ( synPredMatched52 ) {
if ( synPredMatched69 ) {
public final void stepExpr() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST stepExpr_AST = null; boolean synPredMatched52 = false; if (((_tokenSet_1.member(LA(1))))) { int _m52 = mark(); synPredMatched52 = true; inputState.guessing++; try { { { switch ( LA(1)) { case LITERAL_text: { match(LITERAL_text); break; } case LITERAL_node: { match(LITERAL_node); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(LPAREN); } } catch (RecognitionException pe) { synPredMatched52 = false; } rewind(_m52); inputState.guessing--; } if ( synPredMatched52 ) { axisStep(); astFactory.addASTChild(currentAST, returnAST); stepExpr_AST = (AST)currentAST.root; } else { boolean synPredMatched55 = false; if (((_tokenSet_2.member(LA(1))))) { int _m55 = mark(); synPredMatched55 = true; inputState.guessing++; try { { switch ( LA(1)) { case DOLLAR: { match(DOLLAR); break; } case NCNAME: case LITERAL_or: case LITERAL_and: case LITERAL_div: case LITERAL_mod: case LITERAL_text: case LITERAL_node: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: { { qName(); match(LPAREN); } break; } case SELF: { match(SELF); break; } case LPAREN: { match(LPAREN); break; } case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { literal(); break; } case LT: { match(LT); break; } case XML_COMMENT: { match(XML_COMMENT); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } } catch (RecognitionException pe) { synPredMatched55 = false; } rewind(_m55); inputState.guessing--; } if ( synPredMatched55 ) { filterStep(); astFactory.addASTChild(currentAST, returnAST); stepExpr_AST = (AST)currentAST.root; } else if ((_tokenSet_1.member(LA(1)))) { axisStep(); astFactory.addASTChild(currentAST, returnAST); stepExpr_AST = (AST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = stepExpr_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/XPathParser2.java/clean/src/org/exist/parser/XPathParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2235, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 9053, 2235, 4742, 67, 9053, 273, 446, 31, 9506, 202, 6494, 6194, 10391, 15400, 9401, 273, 629, 31, 202, 202, 430, 261, 12443, 67, 2316, 694, 67, 21, 18, 5990, 12, 2534, 12, 21, 3719, 20349, 288, 1082, 202, 474, 389, 81, 9401, 273, 2267, 5621, 1082, 202, 11982, 10391, 15400, 9401, 273, 638, 31, 1082, 202, 2630, 1119, 18, 20885, 310, 9904, 31, 1082, 202, 698, 288, 9506, 202, 95, 9506, 202, 95, 9506, 202, 9610, 261, 2928, 12, 21, 3719, 288, 9506, 202, 3593, 511, 18454, 67, 955, 30, 9506, 202, 95, 6862, 202, 1916, 12, 23225, 67, 955, 1769, 6862, 202, 8820, 31, 9506, 202, 97, 9506, 202, 3593, 511, 18454, 67, 2159, 30, 9506, 202, 95, 6862, 202, 1916, 12, 23225, 67, 2159, 1769, 6862, 202, 8820, 31, 9506, 202, 97, 9506, 202, 1886, 30, 9506, 202, 95, 6862, 202, 12849, 394, 17114, 12, 12050, 12, 21, 3631, 14632, 10663, 9506, 202, 97, 9506, 202, 97, 9506, 202, 97, 9506, 202, 1916, 12, 48, 15111, 1769, 9506, 202, 97, 1082, 202, 97, 1082, 202, 14683, 261, 5650, 7909, 503, 2804, 13, 288, 9506, 202, 11982, 10391, 15400, 9401, 273, 629, 31, 1082, 202, 97, 1082, 202, 266, 10094, 24899, 81, 9401, 1769, 1082, 202, 2630, 1119, 18, 20885, 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, 2235, 4742, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 9053, 2235, 4742, 67, 9053, 273, 446, 31, 9506, 202, 6494, 6194, 10391, 15400, 9401, 273, 629, 31, 202, 202, 430, 261, 12443, 67, 2316, 694, 67, 21, 18, 5990, 12, 2534, 12, 21, 3719, 20349, 288, 1082, 202, 474, 389, 81, 9401, 273, 2267, 5621, 1082, 202, 11982, 10391, 15400, 9401, 273, 638, 31, 1082, 202, 2630, 1119, 18, 20885, 310, 9904, 31, 1082, 202, 698, 288, 9506, 202, 95, 9506, 202, 95, 9506, 202, 9610, 261, 2928, 12, 21, 3719, 288, 9506, 2 ]
value.generateCopy(out);
value.generateCopy(out);
public void generateAssign(PhpWriter out, Expr value, boolean isTop) throws IOException { out.print("env.getVar("); _var.generateString(out); out.print(").set("); value.generateCopy(out); out.print(")"); }
3863 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3863/92d994e624ae20857c4dbff22b28c5c097db357d/VarVarExpr.java/clean/quercus/src/main/java/com/caucho/quercus/expr/VarVarExpr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2103, 4910, 12, 11823, 2289, 596, 16, 8074, 460, 16, 1250, 353, 3401, 13, 565, 1216, 1860, 225, 288, 565, 596, 18, 1188, 2932, 3074, 18, 588, 1537, 2932, 1769, 565, 389, 1401, 18, 7163, 780, 12, 659, 1769, 565, 596, 18, 1188, 2932, 2934, 542, 2932, 1769, 565, 460, 18, 7163, 2951, 12, 659, 1769, 565, 596, 18, 1188, 2932, 2225, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 2103, 4910, 12, 11823, 2289, 596, 16, 8074, 460, 16, 1250, 353, 3401, 13, 565, 1216, 1860, 225, 288, 565, 596, 18, 1188, 2932, 3074, 18, 588, 1537, 2932, 1769, 565, 389, 1401, 18, 7163, 780, 12, 659, 1769, 565, 596, 18, 1188, 2932, 2934, 542, 2932, 1769, 565, 460, 18, 7163, 2951, 12, 659, 1769, 565, 596, 18, 1188, 2932, 2225, 1769, 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 ]
try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { }
if ((string = EvalHelper.evalString("name", getNameExpr(), this, pageContext)) != null) setName(string);
private void evaluateExpressions() throws JspException { try { setFilter(((Boolean) evalAttr("filter", getFilterExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setLabel((String) evalAttr("label", getLabelExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } // Note that in contrast to other elements which have "style" and // "styleClass" attributes, this tag does not have a "styleId" // attribute. This is because this produces the "id" attribute, which // has to be unique document-wide, but this tag can generate more than // one "option" element. Thus, the base tag, "OptionsCollectionTag" // does not support this attribute. try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } }
8610 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8610/161d973cb8d39005faf380ea401e605000b8884b/ELOptionsCollectionTag.java/clean/struts-el/src/share/org/apache/strutsel/taglib/html/ELOptionsCollectionTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 22855, 12443, 12, 5507, 13, 5302, 3843, 2932, 2188, 3113, 12267, 4742, 9334, 4766, 6647, 3411, 18, 1106, 13, 2934, 8227, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 16558, 12443, 780, 13, 5302, 3843, 2932, 1925, 3113, 11237, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 1723, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 7486, 12443, 780, 13, 5302, 3843, 2932, 4468, 3113, 3911, 4742, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 18995, 12443, 780, 13, 5302, 3843, 2932, 4060, 3113, 14210, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 18995, 797, 12443, 780, 13, 5302, 3843, 2932, 4060, 797, 3113, 14210, 797, 4742, 9334, 4766, 2398, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 368, 3609, 716, 316, 23119, 358, 1308, 2186, 1492, 1240, 315, 4060, 6, 471, 3639, 368, 315, 4060, 797, 6, 1677, 16, 333, 1047, 1552, 486, 1240, 279, 315, 4060, 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, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 22855, 12443, 12, 5507, 13, 5302, 3843, 2932, 2188, 3113, 12267, 4742, 9334, 4766, 6647, 3411, 18, 1106, 13, 2934, 8227, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 16558, 12443, 780, 13, 5302, 3843, 2932, 1925, 3113, 11237, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 1723, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 3639, 289, 3639, 775, 288, 5411, 7486, 12443, 780, 2 ]
if (lExpr == null || rExpr == null) {
if (rExpr == null) {
public void visitBinaryExpression(PsiBinaryExpression expression) { startElement(expression); try { DfaValue dfaValue = myFactory.create(expression); if (dfaValue != null) { addInstruction(new PushInstruction(dfaValue)); } else { String op = expression.getOperationSign().getText(); PsiExpression lExpr = expression.getLOperand(); PsiExpression rExpr = expression.getROperand(); if (lExpr == null || rExpr == null) { pushUnknown(); return; } if ("&&".equals(op)) { generateAndExpression(lExpr, rExpr); } else if ("||".equals(op)) { generateOrExpression(lExpr, rExpr); } else if ("^".equals(op) && expression.getType() == PsiType.BOOLEAN) { generateXorExpression(expression, lExpr, rExpr); } else { lExpr.accept(this); rExpr.accept(this); addInstruction(new BinopInstruction(op, expression.isPhysical() ? expression : null)); } } } finally { finishElement(expression); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/451c928168f42672cd8b201286cc3cf33bbe25d8/ControlFlowAnalyzer.java/clean/inspections/impl/com/intellij/codeInspection/dataFlow/ControlFlowAnalyzer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3757, 5905, 2300, 12, 52, 7722, 5905, 2300, 2652, 13, 288, 565, 13591, 12, 8692, 1769, 565, 775, 288, 1377, 463, 507, 620, 23074, 620, 273, 3399, 1733, 18, 2640, 12, 8692, 1769, 1377, 309, 261, 72, 507, 620, 480, 446, 13, 288, 3639, 527, 11983, 12, 2704, 8547, 11983, 12, 72, 507, 620, 10019, 1377, 289, 1377, 469, 288, 3639, 514, 1061, 273, 2652, 18, 588, 2988, 2766, 7675, 588, 1528, 5621, 3639, 453, 7722, 2300, 328, 4742, 273, 2652, 18, 588, 1502, 457, 464, 5621, 3639, 453, 7722, 2300, 436, 4742, 273, 2652, 18, 588, 1457, 457, 464, 5621, 3639, 309, 261, 86, 4742, 422, 446, 13, 288, 1850, 1817, 4874, 5621, 1850, 327, 31, 3639, 289, 3639, 309, 7566, 10, 10, 9654, 14963, 12, 556, 3719, 288, 1850, 2103, 1876, 2300, 12, 80, 4742, 16, 436, 4742, 1769, 3639, 289, 3639, 469, 309, 7566, 20081, 9654, 14963, 12, 556, 3719, 288, 1850, 2103, 23695, 12, 80, 4742, 16, 436, 4742, 1769, 3639, 289, 3639, 469, 309, 7566, 66, 9654, 14963, 12, 556, 13, 597, 2652, 18, 588, 559, 1435, 422, 453, 7722, 559, 18, 17900, 13, 288, 1850, 2103, 60, 280, 2300, 12, 8692, 16, 328, 4742, 16, 436, 4742, 1769, 3639, 289, 3639, 469, 288, 1850, 328, 4742, 18, 9436, 12, 2211, 1769, 1850, 436, 4742, 18, 9436, 12, 2211, 1769, 1850, 527, 11983, 12, 2704, 16827, 556, 11983, 12, 556, 16, 2652, 18, 291, 18136, 1435, 692, 2652, 294, 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, 3757, 5905, 2300, 12, 52, 7722, 5905, 2300, 2652, 13, 288, 565, 13591, 12, 8692, 1769, 565, 775, 288, 1377, 463, 507, 620, 23074, 620, 273, 3399, 1733, 18, 2640, 12, 8692, 1769, 1377, 309, 261, 72, 507, 620, 480, 446, 13, 288, 3639, 527, 11983, 12, 2704, 8547, 11983, 12, 72, 507, 620, 10019, 1377, 289, 1377, 469, 288, 3639, 514, 1061, 273, 2652, 18, 588, 2988, 2766, 7675, 588, 1528, 5621, 3639, 453, 7722, 2300, 328, 4742, 273, 2652, 18, 588, 1502, 457, 464, 5621, 3639, 453, 7722, 2300, 436, 4742, 273, 2652, 18, 588, 1457, 457, 464, 5621, 3639, 309, 261, 86, 4742, 422, 446, 13, 288, 1850, 1817, 4874, 5621, 1850, 327, 2 ]
cls = Class.forName(DP_PROVIDER_CLASS); newSP = (ServiceProvider)cls.newInstance();
cls = Class.forName(DP_PROVIDER_CLASS); newSP = (ServiceProvider)cls.newInstance();
private void registerServices() { // Get root service broker nodeControlService = (NodeControlService) serviceBroker.getService(this, NodeControlService.class, null); if (nodeControlService != null) { rootServiceBroker = nodeControlService.getRootServiceBroker(); if (rootServiceBroker == null) { throw new RuntimeException("Unable to get root service broker"); } } else { // We are running outside a Cougaar node. // No Cougaar services are available. isExecutedWithinNode = false; rootServiceBroker = serviceBroker; /* ******************************** * Logging service */ // NodeAgent has not started the logging service at this point, // but we need it. // Removed because the Logging service is started early in 9.4 LoggingServiceProvider loggingServiceProvider = new LoggingServiceProvider(); rootServiceBroker.addService(LoggingService.class, loggingServiceProvider); rootServiceBroker.addService(LoggingControlService.class, loggingServiceProvider); } System.setProperty("org.cougaar.core.security.isExecutedWithinNode", String.valueOf(isExecutedWithinNode)); this.log = (LoggingService) rootServiceBroker.getService(this, LoggingService.class, null); services = SecurityServiceTable.getInstance(log); if (log.isDebugEnabled()) { log.debug("Registering security services"); } if (log.isDebugEnabled()) { if(mySecurityCommunity!=null) { log.debug("Registering security services for security community "+mySecurityCommunity ); } else { log.error("Un able to get Security community as mySecurityCommunity is Null:"); } } if (log.isInfoEnabled() && isExecutedWithinNode == false) { log.info("Running outside a Cougaar node"); } /* ******************************** * Property service */ ServiceProvider newSP = null; newSP = new SecurityPropertiesServiceProvider(rootServiceBroker, mySecurityCommunity); services.put(SecurityPropertiesService.class, newSP); rootServiceBroker.addService(SecurityPropertiesService.class, newSP); SecurityPropertiesService secprop = (SecurityPropertiesService) AccessController.doPrivileged(new PrivilegedAction() { public Object run() { return rootServiceBroker.getService(this, SecurityPropertiesService.class, null); } }); /* boolean standalone = false; try { standalone = new Boolean(secprop.getProperty( "org.cougaar.core.security.standalone", "false")).booleanValue(); if (!standalone) new NodeInfo().setNodeName(serviceBroker); } catch (Exception ex) { log.warn("Unable to get value of standalone mode"); } */ /* ******************************** * Configuration services */ newSP = new ConfigParserServiceProvider(serviceBroker, mySecurityCommunity); services.put(ConfigParserService.class, newSP); rootServiceBroker.addService(ConfigParserService.class, newSP); /* ******************************** * Encryption services */ /* Certificate Directory lookup services */ newSP = new CertDirectoryServiceProvider(serviceBroker, mySecurityCommunity); services.put(CertDirectoryServiceClient.class, newSP); rootServiceBroker.addService(CertDirectoryServiceClient.class, newSP); newSP = new CertDirectoryServiceProvider(serviceBroker, mySecurityCommunity); services.put(CertDirectoryServiceCA.class, newSP); rootServiceBroker.addService(CertDirectoryServiceCA.class, newSP); newSP = new CertDirectoryServiceProvider(serviceBroker, mySecurityCommunity); services.put(CACertDirectoryService.class, newSP); rootServiceBroker.addService(CACertDirectoryService.class, newSP); newSP = new CertificateSearchServiceProvider(serviceBroker, mySecurityCommunity); services.put(CertificateSearchService.class, newSP); rootServiceBroker.addService(CertificateSearchService.class, newSP); newSP = new CertificateSearchServiceProvider(serviceBroker, mySecurityCommunity); services.put(CACertDirectoryService.class, newSP); rootServiceBroker.addService(CACertDirectoryService.class, newSP); /* Certificate Management service */ // move to certauth to be started in its own component /* newSP = new CertificateManagementServiceProvider(serviceBroker, mySecurityCommunity); services.put(CertificateManagementService.class, newSP); rootServiceBroker.addService(CertificateManagementService.class, newSP); */ /* Starting Certificate Cache service */ newSP = new CertificateCacheServiceProvider(serviceBroker, mySecurityCommunity); services.put(CertificateCacheService.class, newSP); rootServiceBroker.addService(CertificateCacheService.class, newSP); /* Key lookup service */ newSP = new KeyRingServiceProvider(serviceBroker, mySecurityCommunity); services.put(KeyRingService.class, newSP); rootServiceBroker.addService(KeyRingService.class, newSP);/* Starting CRL Cache service */ if (log.isDebugEnabled()) { log.debug("Service broker passed to CRLCacheServiceProvider is :"+serviceBroker.toString()); } newSP = new CRLCacheServiceProvider(serviceBroker, mySecurityCommunity); services.put(CRLCacheService.class, newSP); rootServiceBroker.addService(CRLCacheService.class, newSP); /*CRLCacheService crlCacheService=(CRLCacheService)serviceBroker.getService(this, CRLCacheService.class, null); */ /* Certificate validity service */ newSP = new CertValidityServiceProvider(serviceBroker, mySecurityCommunity); services.put(CertValidityService.class, newSP); rootServiceBroker.addService(CertValidityService.class, newSP); /* Community Protection Service */ newSP = new CommunityProtectionServiceProvider(serviceBroker, mySecurityCommunity); services.put(CommunityProtectionService.class, newSP); rootServiceBroker.addService(CommunityProtectionService.class, newSP); if (isExecutedWithinNode) { /* Persistence Manager Service *//*// newSP = new PersistenceMgrPolicyServiceProvider(serviceBroker, mySecurityCommunity); newSP = null; Class cls = null; try { cls = Class.forName(PMP_PROVIDER_CLASS); newSP = (ServiceProvider)cls.newInstance(); } catch (Exception ex) { log.error("Exception while instantiating " + PMP_PROVIDER_CLASS + ": " + ex); }// newSP = (BaseSecurityServiceProvider)SecurityServiceProviderCache.get(PMP_PROVIDER_CLASS); if (newSP != null) { ((BaseSecurityServiceProvider)newSP).init(serviceBroker, mySecurityCommunity); services.put(PersistenceMgrPolicyService.class, newSP); rootServiceBroker.addService(PersistenceMgrPolicyService.class, newSP); } else { log.error("No persistence policy service provider, the module is not installed."); }*/ /* Encryption Service */ newSP = new EncryptionServiceProvider(serviceBroker, mySecurityCommunity); services.put(EncryptionService.class, newSP); rootServiceBroker.addService(EncryptionService.class, newSP); /* Data protection service *//* boolean dataOn = Boolean.valueOf(System.getProperty("org.cougaar.core.security.dataprotection", "true")).booleanValue(); if (dataOn) {// newSP = new DataProtectionServiceProvider(serviceBroker, mySecurityCommunity); newSP = null; cls = null; try { cls = Class.forName(DP_PROVIDER_CLASS); newSP = (ServiceProvider)cls.newInstance(); } catch (Exception ex) { log.error("Exception while instantiating " + DP_PROVIDER_CLASS + ": " + ex); }// newSP = (BaseSecurityServiceProvider)SecurityServiceProviderCache.get(DP_PROVIDER_CLASS); if (newSP != null) { ((BaseSecurityServiceProvider)newSP).init(serviceBroker, mySecurityCommunity); services.put(DataProtectionService.class, newSP); rootServiceBroker.addService(DataProtectionService.class, newSP); } else { log.error("No data protection service provider, the module is not installed."); } } else { log.warn("Data protection service disabled"); }*/ /* Message protection service */ newSP = new MessageProtectionServiceProvider(serviceBroker, mySecurityCommunity); services.put(MessageProtectionService.class, newSP); rootServiceBroker.addService(MessageProtectionService.class, newSP); /* ******************************** * Identity services */ /* Agent identity service */ newSP = new AgentIdentityServiceProvider(serviceBroker, mySecurityCommunity); services.put(AgentIdentityService.class, newSP); rootServiceBroker.addService(AgentIdentityService.class, newSP); /* ******************************** * Access Control services */ /* ******************************** * Policy services */ newSP = new PolicyBootstrapperServiceProvider(serviceBroker, mySecurityCommunity); services.put(PolicyBootstrapperService.class, newSP); rootServiceBroker.addService(PolicyBootstrapperService.class, newSP);/* if (!org.cougaar.core.security.access.AccessAgentProxy.USE_DAML) { newSP = new AccessControlPolicyServiceProvider(serviceBroker, mySecurityCommunity); services.put(AccessControlPolicyService.class, newSP); rootServiceBroker.addService(AccessControlPolicyService.class, newSP); } */ newSP = new CryptoPolicyServiceProvider(serviceBroker, mySecurityCommunity); services.put(CryptoPolicyService.class, newSP); rootServiceBroker.addService(CryptoPolicyService.class, newSP); // Request the CryptoPolicyService now. This will create the // singleton instance of the CryptoPolicyService, which means // other requests will not have to instantiate a new // CryptoPolicyService. // The CryptoPolicyService registers itself with the guard, // which in turns sends a Relay message to the Policy Domain // manager. // If we didn't do this, we could have deadlock issues. For example, // a component could try to persist the blackboard, which would // lock the blackboard. The distributor would then invoke // the data protection service to protect the blackboard, // and the data protection service would request the // CryptoPolicyService, which would cause the guard to publish a Relay, // but the blackboard is locked. rootServiceBroker.getService(this, CryptoPolicyService.class, null); newSP = new ServletPolicyServiceProvider(serviceBroker, mySecurityCommunity); services.put(ServletPolicyService.class, newSP); rootServiceBroker.addService(ServletPolicyService.class, newSP); /* ******************************** * SSL services *//* newSP = new SSLServiceProvider(serviceBroker, mySecurityCommunity); services.put(SSLService.class, newSP); rootServiceBroker.addService(SSLService.class, newSP); // SSLService and WebserverIdentityService are self started // they offer static functions to get socket factory // in the functions the permission will be checked. rootServiceBroker.getService(this, SSLService.class, null); KeyRingService krs = (KeyRingService) rootServiceBroker.getService(this, KeyRingService.class, null); javax.net.ssl.HttpsURLConnection. setDefaultSSLSocketFactory(new JaasSSLFactory(krs, rootServiceBroker)); krs.finishInitialization(); // configured to use SSL? if (secprop.getProperty(SecurityPropertiesService.WEBSERVER_HTTPS_PORT, null) != null) { if (serviceBroker.hasService(CertificateRequestorService.class)) { registerSSLServices(); } else { if (log.isDebugEnabled()) { log.debug("Registering CQServiceAvailableListener "); } serviceBroker.addServiceListener(new CRServiceAvailableListener ()); } }*/ /* ******************************** * LDAP user administration */ newSP = new UserServiceProvider(serviceBroker); rootServiceBroker.addService(UserService.class, newSP); //serviceBroker.addService(UserService.class, newSP); if(!UserServiceProvider.AGENT_SERVICE) { UserServiceProvider.setRootServiceBroker(rootServiceBroker); } try { org.cougaar.core.security.crypto.ldap.KeyRingJNDIRealm.setNodeServiceBroker(serviceBroker); } catch (Exception e) { if (log.isWarnEnabled()) { log.warn("Unable to initialize KeyRingJNDIRealm", e); } } //serviceBroker.getService(this, UserService.class, null); /********************************** * Security context service * NOTE: This service should only be accessible by the security services codebase */ newSP = new SecurityContextServiceProvider(serviceBroker, mySecurityCommunity); services.put(SecurityContextService.class, newSP); rootServiceBroker.addService(SecurityContextService.class, newSP); /** * Authorization service */ newSP = new AuthorizationServiceProvider(serviceBroker, mySecurityCommunity); services.put(AuthorizationService.class, newSP); rootServiceBroker.addService(AuthorizationService.class, newSP); /* ******************************** * Change the policy to support * DAML */ AuthorizationService authServ = (AuthorizationService) rootServiceBroker. getService(this, AuthorizationService.class, null); DynamicPolicy.install(authServ); } else { KeyRingService krs = (KeyRingService) rootServiceBroker.getService(this, KeyRingService.class, null); log.info("Running in standalone mode"); if (krs != null) { newSP = new UserSSLServiceProvider(serviceBroker, mySecurityCommunity); services.put(UserSSLService.class, newSP); rootServiceBroker.addService(UserSSLService.class, newSP); krs.finishInitialization(); } } LDMService ldms =null; if(serviceBroker.hasService (org.cougaar.planning.service.LDMService.class)){ ldms = (LDMService) rootServiceBroker.getService(this, LDMService.class, null); log.info("LDM Service is available initially in Security Service Provider "); if(ldms!=null){ LDMServesPlugin ldm=ldms.getLDM(); newSP = new CrlManagementServiceProvider(ldm,serviceBroker, mySecurityCommunity); services.put(CrlManagementService.class, newSP); rootServiceBroker.addService(CrlManagementService.class, newSP); } } else { if (log.isDebugEnabled()) { log.debug("Registering LDMServiceAvailableListener "); } serviceBroker.addServiceListener(new LDMServiceAvailableListener ()); } /* if(serviceBroker.hasService(org.cougaar.core.service.BlackboardService.class)){ log.debug("Black Board Service is available initially in Security Service Provider "); } else { log.debug("Registering Black Board Service Listener "); serviceBroker.addServiceListener(new BBServiceAvailableListener()); } */ if (log.isDebugEnabled()) { log.debug("Root service broker is :"+rootServiceBroker.toString()); log.debug("Service broker is :"+ serviceBroker.toString()); } }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/62bd363f955b68d03456231b246aae08d58186aa/SecurityServiceProvider.java/clean/securityservices/src/org/cougaar/core/security/provider/SecurityServiceProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1744, 5676, 1435, 288, 565, 368, 968, 1365, 1156, 8625, 565, 756, 3367, 1179, 273, 261, 907, 3367, 1179, 13, 1377, 1156, 11194, 18, 588, 1179, 12, 2211, 16, 2029, 3367, 1179, 18, 1106, 16, 446, 1769, 565, 309, 261, 2159, 3367, 1179, 480, 446, 13, 288, 1377, 1365, 1179, 11194, 273, 756, 3367, 1179, 18, 588, 2375, 1179, 11194, 5621, 1377, 309, 261, 3085, 1179, 11194, 422, 446, 13, 288, 202, 12849, 394, 3235, 2932, 3370, 358, 336, 1365, 1156, 8625, 8863, 1377, 289, 565, 289, 565, 469, 288, 1377, 368, 1660, 854, 3549, 8220, 279, 7695, 637, 69, 297, 756, 18, 1377, 368, 2631, 7695, 637, 69, 297, 4028, 854, 2319, 18, 1377, 353, 23839, 18949, 907, 273, 629, 31, 1377, 1365, 1179, 11194, 273, 1156, 11194, 31, 1377, 1748, 380, 19482, 27243, 4202, 380, 10253, 1156, 4202, 1195, 1377, 368, 2029, 3630, 711, 486, 5746, 326, 2907, 1156, 622, 333, 1634, 16, 1377, 368, 1496, 732, 1608, 518, 18, 1377, 368, 2663, 9952, 2724, 326, 10253, 1156, 353, 5746, 11646, 316, 2468, 18, 24, 1377, 10253, 16300, 2907, 16300, 273, 202, 1377, 394, 10253, 16300, 5621, 1377, 1365, 1179, 11194, 18, 1289, 1179, 12, 7735, 1179, 18, 1106, 16, 6862, 282, 2907, 16300, 1769, 1377, 1365, 1179, 11194, 18, 1289, 1179, 12, 7735, 3367, 1179, 18, 1106, 16, 6862, 282, 2907, 16300, 1769, 565, 289, 565, 2332, 18, 542, 1396, 2932, 3341, 18, 2894, 637, 69, 297, 18, 3644, 18, 7462, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1744, 5676, 1435, 288, 565, 368, 968, 1365, 1156, 8625, 565, 756, 3367, 1179, 273, 261, 907, 3367, 1179, 13, 1377, 1156, 11194, 18, 588, 1179, 12, 2211, 16, 2029, 3367, 1179, 18, 1106, 16, 446, 1769, 565, 309, 261, 2159, 3367, 1179, 480, 446, 13, 288, 1377, 1365, 1179, 11194, 273, 756, 3367, 1179, 18, 588, 2375, 1179, 11194, 5621, 1377, 309, 261, 3085, 1179, 11194, 422, 446, 13, 288, 202, 12849, 394, 3235, 2932, 3370, 358, 336, 1365, 1156, 8625, 8863, 1377, 289, 565, 289, 565, 469, 288, 1377, 368, 1660, 854, 3549, 8220, 279, 7695, 637, 69, 297, 756, 18, 1377, 368, 2631, 7695, 637, 69, 297, 4028, 854, 2319, 18, 1377, 353, 2 ]
public static void testClose() {
public void testClose() {
public static void testClose() { try { ManagedConnection out=null; Connection in=null; com.limegroup.gnutella.MiniAcceptor acceptor=null; //When receive() or sendQueued() gets IOException, it calls //ConnectionManager.remove(). This in turn calls //ManagedConnection.close(). Our stub does this. ConnectionManager manager=new ConnectionManagerStub(true); //1. Locally closed acceptor=new com.limegroup.gnutella.MiniAcceptor(null, PORT); out=newConnection("localhost", PORT, manager); out.initialize(); in=acceptor.accept(); Assert.that(out.isOpen()); Assert.that(! out.runnerDied()); out.close(); sleep(100); Assert.that(! out.isOpen()); Assert.that(out.runnerDied()); try { Thread.sleep(1000); } catch (InterruptedException e) { } in.close(); //needed to ensure connect below works //2. Remote close: discovered on read acceptor=new com.limegroup.gnutella.MiniAcceptor(null, PORT); out=newConnection("localhost", PORT, manager); out.initialize(); in=acceptor.accept(); Assert.that(out.isOpen()); Assert.that(! out.runnerDied()); in.close(); try { out.receive(); Assert.that(false); } catch (BadPacketException e) { Assert.that(false); } catch (IOException e) { } sleep(100); Assert.that(! out.isOpen()); Assert.that(out.runnerDied()); //3. Remote close: discovered on write. Because of TCP's half-close //semantics, we need TWO writes to discover this. (See unit tests //for Connection.) acceptor=new com.limegroup.gnutella.MiniAcceptor(null, PORT); out=newConnection("localhost", PORT, manager); out.initialize(); in=acceptor.accept(); Assert.that(out.isOpen()); Assert.that(! out.runnerDied()); in.close(); out.send(new PingRequest((byte)3)); out.send(new PingRequest((byte)3)); sleep(100); Assert.that(! out.isOpen()); Assert.that(out.runnerDied()); } catch (IOException e) { fail("Unexpected IO problem"); e.printStackTrace(); } }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/c53e29de6f0dbeee98c7a594140c2c57c0ec69a8/ManagedConnectionTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/ManagedConnectionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4605, 1435, 288, 3639, 775, 288, 5411, 10024, 1952, 596, 33, 2011, 31, 5411, 4050, 316, 33, 2011, 31, 5411, 532, 18, 80, 494, 1655, 18, 1600, 322, 1165, 69, 18, 2930, 77, 5933, 280, 2791, 280, 33, 2011, 31, 18701, 368, 9434, 6798, 1435, 578, 1366, 21039, 1435, 5571, 1860, 16, 518, 4097, 5411, 368, 1952, 1318, 18, 4479, 7675, 225, 1220, 316, 7005, 4097, 5411, 368, 10055, 1952, 18, 4412, 7675, 225, 29613, 7168, 1552, 333, 18, 5411, 4050, 1318, 3301, 33, 2704, 4050, 1318, 11974, 12, 3767, 1769, 5411, 368, 21, 18, 2851, 1230, 4375, 5411, 2791, 280, 33, 2704, 532, 18, 80, 494, 1655, 18, 1600, 322, 1165, 69, 18, 2930, 77, 5933, 280, 12, 2011, 16, 20987, 1769, 5411, 596, 33, 2704, 1952, 2932, 13014, 3113, 20987, 16, 3301, 1769, 5411, 596, 18, 11160, 5621, 13491, 316, 33, 1077, 6757, 18, 9436, 5621, 2398, 5452, 18, 19056, 12, 659, 18, 291, 3678, 10663, 5411, 5452, 18, 19056, 12, 5, 596, 18, 18156, 40, 2092, 10663, 5411, 596, 18, 4412, 5621, 5411, 5329, 12, 6625, 1769, 5411, 5452, 18, 19056, 12, 5, 596, 18, 291, 3678, 10663, 5411, 5452, 18, 19056, 12, 659, 18, 18156, 40, 2092, 10663, 5411, 775, 288, 4884, 18, 19607, 12, 18088, 1769, 289, 1044, 261, 24485, 503, 425, 13, 288, 289, 5411, 316, 18, 4412, 5621, 368, 17471, 358, 3387, 3077, 5712, 6330, 5411, 368, 22, 18, 6304, 1746, 30, 18238, 603, 855, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4605, 1435, 288, 3639, 775, 288, 5411, 10024, 1952, 596, 33, 2011, 31, 5411, 4050, 316, 33, 2011, 31, 5411, 532, 18, 80, 494, 1655, 18, 1600, 322, 1165, 69, 18, 2930, 77, 5933, 280, 2791, 280, 33, 2011, 31, 18701, 368, 9434, 6798, 1435, 578, 1366, 21039, 1435, 5571, 1860, 16, 518, 4097, 5411, 368, 1952, 1318, 18, 4479, 7675, 225, 1220, 316, 7005, 4097, 5411, 368, 10055, 1952, 18, 4412, 7675, 225, 29613, 7168, 1552, 333, 18, 5411, 4050, 1318, 3301, 33, 2704, 4050, 1318, 11974, 12, 3767, 1769, 5411, 368, 21, 18, 2851, 1230, 4375, 5411, 2791, 280, 33, 2704, 532, 18, 80, 494, 1655, 18, 1600, 322, 1165, 69, 18, 2930, 2 ]
for (int i=0; i < pool.length; i++)
for (int i=0; i < pool.length; i++) { if (pool[i] == null || pool[i].equals("")) continue;
public void preModify(Map context, String attrName, Object value, Map attrsToModify, Entry entry, boolean isCreate) throws ServiceException { String[] pool; if (value instanceof String) pool = new String[] { (String) value }; else if (value instanceof String[]) pool = (String[]) value; else throw ServiceException.INVALID_REQUEST(Provisioning.A_zimbraMailHostPool+" not a String or String[]", null); Provisioning prov = Provisioning.getInstance(); for (int i=0; i < pool.length; i++) if (prov.getServerById(pool[i]) == null) throw ServiceException.INVALID_REQUEST("specified "+Provisioning.A_zimbraMailHostPool+" does not correspond to a valid server: "+pool[i], null); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ca099099749af4f84a89ef246c5d94b3291b7914/MailHostPool.java/clean/ZimbraServer/src/java/com/zimbra/cs/account/callback/MailHostPool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 675, 11047, 12, 863, 819, 16, 514, 11583, 16, 1033, 460, 16, 5411, 1635, 3422, 774, 11047, 16, 3841, 1241, 16, 1250, 353, 1684, 13, 1216, 16489, 288, 3639, 514, 8526, 2845, 31, 7734, 309, 261, 1132, 1276, 514, 13, 5411, 2845, 273, 394, 514, 8526, 288, 261, 780, 13, 460, 289, 31, 3639, 469, 309, 261, 1132, 1276, 514, 63, 5717, 5411, 2845, 273, 261, 780, 63, 5717, 460, 31, 3639, 469, 2398, 604, 16489, 18, 9347, 67, 5519, 12, 17485, 18, 37, 67, 94, 381, 15397, 6759, 2594, 2864, 9078, 486, 279, 514, 578, 514, 8526, 3113, 446, 1769, 3639, 26423, 17197, 273, 26423, 18, 588, 1442, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 411, 2845, 18, 2469, 31, 277, 27245, 288, 309, 261, 6011, 63, 77, 65, 422, 446, 747, 2845, 63, 77, 8009, 14963, 2932, 6, 3719, 1324, 31, 2398, 309, 261, 25529, 18, 588, 2081, 5132, 12, 6011, 63, 77, 5717, 422, 446, 13, 10792, 604, 16489, 18, 9347, 67, 5519, 2932, 13827, 13773, 17485, 18, 37, 67, 94, 381, 15397, 6759, 2594, 2864, 9078, 1552, 486, 4325, 358, 279, 923, 1438, 30, 13773, 6011, 63, 77, 6487, 446, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 675, 11047, 12, 863, 819, 16, 514, 11583, 16, 1033, 460, 16, 5411, 1635, 3422, 774, 11047, 16, 3841, 1241, 16, 1250, 353, 1684, 13, 1216, 16489, 288, 3639, 514, 8526, 2845, 31, 7734, 309, 261, 1132, 1276, 514, 13, 5411, 2845, 273, 394, 514, 8526, 288, 261, 780, 13, 460, 289, 31, 3639, 469, 309, 261, 1132, 1276, 514, 63, 5717, 5411, 2845, 273, 261, 780, 63, 5717, 460, 31, 3639, 469, 2398, 604, 16489, 18, 9347, 67, 5519, 12, 17485, 18, 37, 67, 94, 381, 15397, 6759, 2594, 2864, 9078, 486, 279, 514, 578, 514, 8526, 3113, 446, 1769, 3639, 26423, 17197, 273, 26423, 18, 588, 1442, 5621, 3639, 364, 261, 474, 277, 33, 2 ]
if(filtertype.equals(">")) { if(!st.nextToken().equals("=")) { throw new LDAPException("Invalid operator", LDAPException.FILTER_ERROR); } String value = st.nextToken(")").trim(); return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, GREATER_OR_EQUAL), new AttributeValueAssertion( new AttributeDescription(tok), new AssertionValue(escaped2unicode(value))), false); } else if(filtertype.equals("<")) { if(!st.nextToken().equals("=")) { throw new LDAPException("Invalid operator", LDAPException.FILTER_ERROR); } String value = st.nextToken(")").trim(); return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, LESS_OR_EQUAL), new AttributeValueAssertion( new AttributeDescription(tok), new AssertionValue(escaped2unicode(value))), false); } else if(filtertype.equals("~")) { if(!st.nextToken().equals("=")) { throw new LDAPException("Invalid operator", LDAPException.FILTER_ERROR); } String value = st.nextToken(")").trim(); return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, APPROX_MATCH), new AttributeValueAssertion( new AttributeDescription(tok), new AssertionValue(escaped2unicode(value))), false); } else if(filtertype.equals("=")) { String value = st.nextToken(")").trim(); if(value.equals("*")) { return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, false, PRESENT), new AttributeDescription(tok), false); } else if(value.indexOf('*') != -1) { StringTokenizer sub = new StringTokenizer(value, "*", true); ASN1SequenceOf seq = new ASN1SequenceOf(5); int tokCnt = sub.countTokens(); int cnt = 0; while(sub.hasMoreTokens()) { String subTok = sub.nextToken(); cnt++; if(subTok.equals("*")) { } else { if(cnt == 1) { seq.add( new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, false, INITIAL), new LDAPString(escaped2unicode(subTok)), false)); } else if(cnt < tokCnt) { seq.add( new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, false, ANY), new LDAPString(escaped2unicode(subTok)), false)); } else { seq.add( new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, false, FINAL), new LDAPString(escaped2unicode(subTok)), false)); } } } return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, SUBSTRINGS), new SubstringFilter( new AttributeDescription(tok), seq), false); } else { return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, EQUALITY_MATCH), new AttributeValueAssertion( new AttributeDescription(tok), new AssertionValue(escaped2unicode(value))), false); } } else { throw new LDAPException("Invalid operator", LDAPException.FILTER_ERROR); } }
private ASN1Tagged parseFilterComp() throws LDAPException { String tok = st.nextToken("&|!=~><:()").trim(); // get operator or attr name if(tok.equals("&")) { return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, AND), parseFilterList(), false); } else if(tok.equals("|")) { return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, OR), parseFilterList(), false); } else if(tok.equals("!")) { return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, NOT), parseFilter(), false); // maybe change this to true per RFC 2251 4.5.1 } else { // get item (may be: simple / present / substring / extensible) String filtertype = st.nextToken().trim(); // get rel op if(filtertype.equals(">")) { if(!st.nextToken().equals("=")) { throw new LDAPException("Invalid operator", LDAPException.FILTER_ERROR); } String value = st.nextToken(")").trim(); return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, GREATER_OR_EQUAL), new AttributeValueAssertion( new AttributeDescription(tok), new AssertionValue(escaped2unicode(value))), false); } else if(filtertype.equals("<")) { if(!st.nextToken().equals("=")) { throw new LDAPException("Invalid operator", LDAPException.FILTER_ERROR); } String value = st.nextToken(")").trim(); return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, LESS_OR_EQUAL), new AttributeValueAssertion( new AttributeDescription(tok), new AssertionValue(escaped2unicode(value))), false); } else if(filtertype.equals("~")) { if(!st.nextToken().equals("=")) { throw new LDAPException("Invalid operator", LDAPException.FILTER_ERROR); } String value = st.nextToken(")").trim(); return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, APPROX_MATCH), new AttributeValueAssertion( new AttributeDescription(tok), new AssertionValue(escaped2unicode(value))), false); } else if(filtertype.equals("=")) { // look for: simple / present / substring String value = st.nextToken(")").trim(); if(value.equals("*")) { // present return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, false, PRESENT), new AttributeDescription(tok), false); } else if(value.indexOf('*') != -1) { // substring // parse: [initial], *any*, [final] into an ASN1SequenceOf StringTokenizer sub = new StringTokenizer(value, "*", true); ASN1SequenceOf seq = new ASN1SequenceOf(5); int tokCnt = sub.countTokens(); int cnt = 0; while(sub.hasMoreTokens()) { String subTok = sub.nextToken(); cnt++; if(subTok.equals("*")) { // delimiter } else { // value (LDAPString) if(cnt == 1) { // initial seq.add( new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, false, INITIAL), new LDAPString(escaped2unicode(subTok)), false)); } else if(cnt < tokCnt) { // any seq.add( new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, false, ANY), new LDAPString(escaped2unicode(subTok)), false)); } else { // final seq.add( new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, false, FINAL), new LDAPString(escaped2unicode(subTok)), false)); } } } return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, SUBSTRINGS), new SubstringFilter( new AttributeDescription(tok), seq), false); } else { // simple return new ASN1Tagged( new ASN1Identifier(ASN1Identifier.CONTEXT, true, EQUALITY_MATCH), new AttributeValueAssertion( new AttributeDescription(tok), new AssertionValue(escaped2unicode(value))), false); } } else { throw new LDAPException("Invalid operator", LDAPException.FILTER_ERROR); } } }
9947 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9947/b2074950b02e91cf57c7b9f7f2ed1f4404dbf958/RfcFilter.java/clean/com/novell/ldap/rfc2251/RfcFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 18598, 21, 18674, 1109, 1586, 2945, 1435, 1377, 1216, 11916, 503, 282, 288, 1377, 514, 946, 273, 384, 18, 4285, 1345, 2932, 10, 96, 5, 33, 98, 4438, 30, 10031, 2934, 5290, 5621, 368, 336, 3726, 578, 1604, 508, 1377, 309, 12, 17692, 18, 14963, 2932, 10, 6, 3719, 288, 540, 327, 394, 18598, 21, 18674, 12, 5411, 394, 18598, 21, 3004, 12, 22269, 21, 3004, 18, 13181, 16, 638, 16, 4116, 3631, 5411, 1109, 1586, 682, 9334, 5411, 629, 1769, 1377, 289, 1377, 469, 309, 12, 17692, 18, 14963, 2932, 22317, 3719, 288, 540, 327, 394, 18598, 21, 18674, 12, 5411, 394, 18598, 21, 3004, 12, 22269, 21, 3004, 18, 13181, 16, 638, 16, 4869, 3631, 5411, 1109, 1586, 682, 9334, 5411, 629, 1769, 1377, 289, 1377, 469, 309, 12, 17692, 18, 14963, 2932, 4442, 3719, 288, 540, 327, 394, 18598, 21, 18674, 12, 5411, 394, 18598, 21, 3004, 12, 22269, 21, 3004, 18, 13181, 16, 638, 16, 4269, 3631, 5411, 1109, 1586, 9334, 5411, 629, 1769, 368, 6944, 2549, 333, 358, 638, 1534, 8372, 28298, 21, 1059, 18, 25, 18, 21, 1377, 289, 1377, 469, 288, 540, 368, 336, 761, 261, 24877, 506, 30, 4143, 342, 3430, 342, 3019, 342, 1110, 773, 1523, 13, 540, 514, 1034, 723, 273, 384, 18, 4285, 1345, 7675, 5290, 5621, 368, 336, 1279, 1061, 540, 309, 12, 2188, 723, 18, 14963, 2932, 2984, 3719, 288, 5411, 309, 12, 5, 334, 18, 4285, 1345, 7675, 14963, 2932, 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, 565, 3238, 18598, 21, 18674, 1109, 1586, 2945, 1435, 1377, 1216, 11916, 503, 282, 288, 1377, 514, 946, 273, 384, 18, 4285, 1345, 2932, 10, 96, 5, 33, 98, 4438, 30, 10031, 2934, 5290, 5621, 368, 336, 3726, 578, 1604, 508, 1377, 309, 12, 17692, 18, 14963, 2932, 10, 6, 3719, 288, 540, 327, 394, 18598, 21, 18674, 12, 5411, 394, 18598, 21, 3004, 12, 22269, 21, 3004, 18, 13181, 16, 638, 16, 4116, 3631, 5411, 1109, 1586, 682, 9334, 5411, 629, 1769, 1377, 289, 1377, 469, 309, 12, 17692, 18, 14963, 2932, 22317, 3719, 288, 540, 327, 394, 18598, 21, 18674, 12, 5411, 394, 18598, 21, 3004, 12, 22269, 21, 3004, 18, 13181, 16, 638, 16, 4869, 3631, 2 ]
if (!res.isTeamPrivateMember()) {
if (!(res.isTeamPrivateMember() || res.getName().equals(".svn"))) {
private boolean handleResource(IResource res, IResourceDelta delta, IPath copyToPath) { if (null == copyToPath) return false; boolean handled = false; if ((null != delta) && (delta.getKind() == IResourceDelta.REMOVED)) { addTask(new DeleteTask(copyToPath, "build")); handled = true; } else { if (!res.isTeamPrivateMember()) { addTask(new CopyTask(res, copyToPath, "build")); handled = true; } } return handled; }
2575 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2575/480be17e4be6381db443f5d04495da4d910c541f/IncrementalBuilder.java/buggy/projects/wolips/plugins/org.objectstyle.wolips.builder/java/org/objectstyle/wolips/builder/internal/IncrementalBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1640, 1420, 12, 45, 1420, 400, 16, 467, 1420, 9242, 3622, 16, 1082, 202, 45, 743, 29817, 743, 13, 288, 202, 202, 430, 261, 2011, 422, 29817, 743, 13, 1082, 202, 2463, 629, 31, 202, 202, 6494, 7681, 273, 629, 31, 202, 202, 430, 14015, 2011, 480, 3622, 13, 597, 261, 9878, 18, 588, 5677, 1435, 422, 467, 1420, 9242, 18, 11122, 12135, 3719, 288, 1082, 202, 1289, 2174, 12, 2704, 2504, 2174, 12, 3530, 774, 743, 16, 315, 3510, 7923, 1769, 1082, 202, 14387, 273, 638, 31, 202, 202, 97, 469, 288, 1082, 202, 430, 16051, 455, 18, 291, 8689, 6014, 4419, 10756, 288, 9506, 202, 1289, 2174, 12, 2704, 5631, 2174, 12, 455, 16, 29817, 743, 16, 315, 3510, 7923, 1769, 9506, 202, 14387, 273, 638, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 7681, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1640, 1420, 12, 45, 1420, 400, 16, 467, 1420, 9242, 3622, 16, 1082, 202, 45, 743, 29817, 743, 13, 288, 202, 202, 430, 261, 2011, 422, 29817, 743, 13, 1082, 202, 2463, 629, 31, 202, 202, 6494, 7681, 273, 629, 31, 202, 202, 430, 14015, 2011, 480, 3622, 13, 597, 261, 9878, 18, 588, 5677, 1435, 422, 467, 1420, 9242, 18, 11122, 12135, 3719, 288, 1082, 202, 1289, 2174, 12, 2704, 2504, 2174, 12, 3530, 774, 743, 16, 315, 3510, 7923, 1769, 1082, 202, 14387, 273, 638, 31, 202, 202, 97, 469, 288, 1082, 202, 430, 16051, 455, 18, 291, 8689, 6014, 4419, 10756, 288, 9506, 202, 1289, 2174, 12, 2704, 5631, 2174, 12, 455, 2 ]
public final int doStartTag() throws JspException { // transform xml and spit it out try { template.setURIResolver(uriResolver); template.transform(new JDOMSource(doc), new StreamResult(pageContext.getOut())); } catch (TransformerException e) { throw new JspException(e); } return EVAL_BODY_INCLUDE; }
48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/90aeaba69421cd610857772633ea13295af36314/RenderPresentationTag.java/buggy/presentation/tool-lib/src/java/org/theospi/portfolio/presentation/control/RenderPresentationTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6385, 474, 2896, 30512, 1435, 15069, 21796, 503, 95, 759, 6547, 2902, 464, 1752, 305, 305, 659, 698, 95, 3202, 18, 542, 3098, 4301, 12, 1650, 4301, 1769, 3202, 18, 6547, 12, 2704, 46, 8168, 1830, 12, 2434, 3631, 2704, 1228, 1253, 12, 2433, 1042, 18, 588, 1182, 1435, 10019, 97, 14683, 12, 8319, 503, 73, 15329, 12849, 2704, 21796, 503, 12, 73, 1769, 97, 2463, 41, 2669, 67, 16691, 67, 26003, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 6385, 474, 2896, 30512, 1435, 15069, 21796, 503, 95, 759, 6547, 2902, 464, 1752, 305, 305, 659, 698, 95, 3202, 18, 542, 3098, 4301, 12, 1650, 4301, 1769, 3202, 18, 6547, 12, 2704, 46, 8168, 1830, 12, 2434, 3631, 2704, 1228, 1253, 12, 2433, 1042, 18, 588, 1182, 1435, 10019, 97, 14683, 12, 8319, 503, 73, 15329, 12849, 2704, 21796, 503, 12, 73, 1769, 97, 2463, 41, 2669, 67, 16691, 67, 26003, 31, 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 ]
public static Criteria buildExtendedCategoryGroupCriteria(int groupID)
public static Criteria buildExtendedCategoryGroupCriteria(int groupID, int userID)
public static Criteria buildExtendedCategoryGroupCriteria(int groupID) { Criteria c = buildCategoryGroupCriteria(groupID); c.addWantedField("Name"); c.addWantedField("Description"); c.addWantedField("CategoryList"); c.addWantedField("module_execution"); c.addWantedField("CategoryList", "Name"); c.addWantedField("CategoryList", "ClassificationList"); c.addWantedField("CategoryList.ClassificationList", "Valid"); c.addWantedField("CategoryList.ClassificationList", "image"); c.addWantedField("CategoryList", "module_execution"); c.addWantedField("CategoryList.module_execution", "experimenter"); c.addWantedField("CategoryList.ClassificationList", "module_execution"); c.addWantedField("CategoryList.ClassificationList.module_execution", "experimenter"); //Specify which fields we want for the owner. //group mex c.addWantedField("module_execution", "experimenter"); if (groupID != -1) c.addFilter("id", new Integer(groupID)); return c; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/CategoryMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/CategoryMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 8356, 1361, 11456, 4457, 1114, 7231, 12, 474, 30365, 16, 509, 16299, 13, 565, 288, 3639, 8356, 276, 273, 1361, 4457, 1114, 7231, 12, 1655, 734, 1769, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 461, 8863, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 3291, 8863, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 8863, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 2978, 67, 16414, 8863, 7734, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 3113, 315, 461, 8863, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 3113, 315, 19168, 682, 8863, 7734, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 18, 19168, 682, 3113, 315, 1556, 8863, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 18, 19168, 682, 3113, 315, 2730, 8863, 7734, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 3113, 315, 2978, 67, 16414, 8863, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 18, 2978, 67, 16414, 3113, 315, 338, 457, 381, 2328, 8863, 7734, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 18, 19168, 682, 3113, 315, 2978, 67, 16414, 8863, 7734, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 18, 19168, 682, 18, 2978, 67, 16414, 3113, 11794, 315, 338, 457, 381, 2328, 8863, 3639, 368, 19302, 1492, 1466, 732, 2545, 364, 326, 3410, 18, 3639, 368, 1655, 312, 338, 3639, 276, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 8356, 1361, 11456, 4457, 1114, 7231, 12, 474, 30365, 16, 509, 16299, 13, 565, 288, 3639, 8356, 276, 273, 1361, 4457, 1114, 7231, 12, 1655, 734, 1769, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 461, 8863, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 3291, 8863, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 8863, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 2978, 67, 16414, 8863, 7734, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 3113, 315, 461, 8863, 3639, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 3113, 315, 19168, 682, 8863, 7734, 276, 18, 1289, 59, 970, 329, 974, 2932, 4457, 682, 2 ]
jesql.setDescription("This executes the SQL to create table ["+targetDbInfo+"].["+tables[i]+"]");
jesql.setDescription(Messages.getString("Chef.RipDB.JobEntrySQL.Description")+targetDbInfo+"].["+tables[i]+"]");
public boolean ripDB( String jobName, RepositoryDirectory repositoryDirectory, DatabaseMeta srcDbInfo, DatabaseMeta tgtDbInfo, String[] tablesToRip ) { final String[] tables = tablesToRip; final DatabaseMeta sourceDbInfo = srcDbInfo; final DatabaseMeta targetDbInfo = tgtDbInfo; final RepositoryDirectory repdir = repositoryDirectory; final String jobname = jobName; // // Create a new job... // jobMeta=new JobMeta(log); jobMeta.readDatabases(rep); setFilename(null); jobMeta.setName(jobname); jobMeta.setDirectory( repdir ); refreshTree(); refreshGraph(); final Point location = new Point(50, 50); // The start entry... final JobEntryCopy start = jobMeta.findStart(); start.setLocation(new Point(location.x, location.y)); start.setDrawn(); // Create a dialog with a progress indicator! IRunnableWithProgress op = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { monitor.beginTask("Building new job...", tables.length); monitor.worked(0); JobEntryCopy previous = start; // Loop over the table-names... for (int i=0;i<tables.length && !monitor.isCanceled();i++) { monitor.setTaskName("Processing table ["+tables[i]+"]..."); // // Create the new transformation... // String transname = "copy ["+sourceDbInfo+"].["+tables[i]+"] to ["+targetDbInfo+"]"; TransMeta ti = new TransMeta((String)null, transname, null); ti.setDirectory( repdir ); // // Add a note // String note = "Reads information from table ["+tables[i]+"] on database ["+sourceDbInfo+"]"+Const.CR; note+="After that, it writes the information to table ["+tables[i]+"] on database ["+targetDbInfo+"]"; NotePadMeta ni = new NotePadMeta(note, 150, 10, -1, -1); ti.addNote(ni); // // Add the TableInputMeta step... // String fromstepname = "read from ["+tables[i]+"]"; TableInputMeta tii = new TableInputMeta(); tii.setDatabaseMeta( sourceDbInfo ); tii.setSQL( "SELECT * FROM "+tables[i] ); String fromstepid = StepLoader.getInstance().getStepPluginID(tii); StepMeta fromstep = new StepMeta(log, fromstepid, fromstepname, (StepMetaInterface)tii ); fromstep.setLocation(150,100); fromstep.setDraw(true); fromstep.setDescription("Reads information from table ["+tables[i]+"] on database ["+sourceDbInfo+"]"); ti.addStep(fromstep); // // Add the TableOutputMeta step... // String tostepname = "write to ["+tables[i]+"]"; TableOutputMeta toi = new TableOutputMeta(); toi.setDatabase( targetDbInfo ); toi.setTablename( tables[i] ); toi.setCommitSize( 100 ); toi.setTruncateTable( true ); String tostepid = StepLoader.getInstance().getStepPluginID(toi); StepMeta tostep = new StepMeta(log, tostepid, tostepname, (StepMetaInterface)toi ); tostep.setLocation(500,100); tostep.setDraw(true); tostep.setDescription("Write information to table ["+tables[i]+"] on database ["+targetDbInfo+"]"); ti.addStep(tostep); // // Add a hop between the two steps... // TransHopMeta hi = new TransHopMeta(fromstep, tostep); ti.addTransHop(hi); // // Now we generate the SQL needed to run for this transformation. // // First set the limit to 1 to speed things up! String tmpSql = tii.getSQL(); tii.setSQL( tii.getSQL()+sourceDbInfo.getLimitClause(1) ); String sql = ""; try { sql = ti.getSQLStatementsString(); } catch(KettleStepException kse) { throw new InvocationTargetException(kse, "Error getting SQL from transformation ["+ti+"] : "+kse.getMessage()); } // remove the limit tii.setSQL( tmpSql ); // // Now, save the transformation... // try { ti.saveRep(rep); } catch(KettleException dbe) { throw new InvocationTargetException(dbe, "Unable to save transformation to the repository"); } // We can now continue with the population of the job... //////////////////////////////////////////////////////////////////////// location.x=250; if (i>0) location.y += 100; // // We can continue defining the job. // // First the SQL, but only if needed! // If the table exists & has the correct format, nothing is done // if (sql!=null && sql.length()>0) { String jesqlname = "Create table ["+tables[i]+"]"; JobEntrySQL jesql = new JobEntrySQL(jesqlname); jesql.setDatabase(targetDbInfo); jesql.setSQL(sql); jesql.setDescription("This executes the SQL to create table ["+targetDbInfo+"].["+tables[i]+"]"); JobEntryCopy jecsql = new JobEntryCopy(log); jecsql.setEntry(jesql); jecsql.setLocation(new Point(location.x, location.y)); jecsql.setDrawn(); jobMeta.addJobEntry(jecsql); // Add the hop too... JobHopMeta jhi = new JobHopMeta(previous, jecsql); jobMeta.addJobHop(jhi); previous = jecsql; } // // Add the jobentry for the transformation too... // String jetransname = "Copy data to ["+tables[i]+"]"; JobEntryTrans jetrans = new JobEntryTrans(jetransname); jetrans.setTransname(ti.getName()); jetrans.setDirectory(ti.getDirectory()); JobEntryCopy jectrans = new JobEntryCopy(log, jetrans); jectrans.setDescription("This job entry executes the transformation to copy data"+Const.CR+"from: ["+sourceDbInfo+"].["+tables[i]+"]"+Const.CR+"to: ["+targetDbInfo+"].["+tables[i]+"]"); jectrans.setDrawn(); location.x+=400; jectrans.setLocation(new Point(location.x, location.y)); jobMeta.addJobEntry(jectrans); // Add a hop between the last 2 job entries. JobHopMeta jhi2 = new JobHopMeta(previous, jectrans); jobMeta.addJobHop(jhi2); previous = jectrans; monitor.worked( 1 ); } monitor.worked(100); monitor.done(); } }; try { ProgressMonitorDialog pmd = new ProgressMonitorDialog(shell); pmd.run(false, true, op); } catch (InvocationTargetException e) { new ErrorDialog(shell, props, "Error ripping database", "An error occured ripping the database!", e); return false; } catch (InterruptedException e) { new ErrorDialog(shell, props, "Error ripping database", "An error occured ripping the database!", e); return false; } finally { refreshGraph(); refreshTree(); } return true; }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/de88a78f183a1d633bde85cdc58e0fc4c0ee4e56/Chef.java/buggy/kettle/src/be/ibridge/kettle/chef/Chef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 436, 625, 2290, 12, 202, 780, 17833, 16, 15106, 202, 3305, 2853, 3352, 2853, 16, 15106, 202, 4254, 2781, 1705, 4331, 966, 16, 15106, 202, 4254, 2781, 11680, 4331, 966, 16, 15106, 202, 780, 8526, 4606, 774, 54, 625, 25083, 225, 202, 13, 202, 95, 202, 202, 6385, 514, 8526, 4606, 273, 4606, 774, 54, 625, 31, 202, 202, 6385, 5130, 2781, 1084, 4331, 966, 273, 1705, 4331, 966, 31, 202, 202, 6385, 5130, 2781, 1018, 4331, 966, 273, 11680, 4331, 966, 31, 202, 202, 6385, 6281, 2853, 2071, 1214, 273, 3352, 2853, 31, 202, 202, 6385, 514, 1719, 529, 273, 17833, 31, 202, 202, 759, 202, 202, 759, 1788, 279, 394, 1719, 2777, 202, 202, 759, 202, 202, 4688, 2781, 33, 2704, 3956, 2781, 12, 1330, 1769, 202, 202, 4688, 2781, 18, 896, 31635, 12, 14462, 1769, 202, 202, 542, 5359, 12, 2011, 1769, 202, 202, 4688, 2781, 18, 542, 461, 12, 4688, 529, 1769, 202, 202, 4688, 2781, 18, 542, 2853, 12, 2071, 1214, 11272, 202, 202, 9144, 2471, 5621, 202, 202, 9144, 4137, 5621, 9506, 202, 6385, 4686, 2117, 273, 394, 4686, 12, 3361, 16, 6437, 1769, 9506, 202, 759, 1021, 787, 1241, 2777, 202, 202, 6385, 3956, 1622, 2951, 787, 273, 1719, 2781, 18, 4720, 1685, 5621, 202, 202, 1937, 18, 542, 2735, 12, 2704, 4686, 12, 3562, 18, 92, 16, 2117, 18, 93, 10019, 202, 202, 1937, 18, 542, 6493, 82, 5621, 202, 202, 759, 1788, 279, 6176, 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, 1250, 436, 625, 2290, 12, 202, 780, 17833, 16, 15106, 202, 3305, 2853, 3352, 2853, 16, 15106, 202, 4254, 2781, 1705, 4331, 966, 16, 15106, 202, 4254, 2781, 11680, 4331, 966, 16, 15106, 202, 780, 8526, 4606, 774, 54, 625, 25083, 225, 202, 13, 202, 95, 202, 202, 6385, 514, 8526, 4606, 273, 4606, 774, 54, 625, 31, 202, 202, 6385, 5130, 2781, 1084, 4331, 966, 273, 1705, 4331, 966, 31, 202, 202, 6385, 5130, 2781, 1018, 4331, 966, 273, 11680, 4331, 966, 31, 202, 202, 6385, 6281, 2853, 2071, 1214, 273, 3352, 2853, 31, 202, 202, 6385, 514, 1719, 529, 273, 17833, 31, 202, 202, 759, 202, 202, 759, 1788, 279, 394, 1719, 2777, 202, 2 ]
logInfo( "Belief Update Starting for: " + _asset_id );
if ( _logger.isInfoEnabled() ) _logger.info( "Belief Update Starting for: " + _asset_id );
void updateBeliefState( ) throws BelievabilityException { // Iterate over the collection of triggers and compute a // series of belief states until we get to the end of the // list. This final belief state is the one we want. // // This 'no trigger' case should not really hapen, since we // should call this only after adding at least one trigger. // However, better to explicitly check for this and deal with // it gracefully then have the system bomb when the // assumptions are violated. Here we simply do not update the // belief state. // if ( _current_triggers.size() < 1 ) { logInfo( "Ignoring belief update due to zero triggers." ); return; } logInfo( "Belief Update Starting for: " + _asset_id ); // We should first sort this trigger collection, as // everything else here will require it to be sorted. // Collections.sort( _current_triggers, new TriggerComparator() ); logDetail( "Explicit trigger count is " + _current_triggers.size() + " for " + _asset_id ); // Before updating the belief state, we need to check whether // or not we will need to add any implicit diagnoses. Some // sensors do not report infomration when it is the same for // efficiency reasons, so we need to make sure we treat this // case correctly. This works by simply adding extra triggers // to the list at the end. // addImplicitDiagnoses( getLatestCurrentTriggerTime() ); logDetail( "Updating belief based on " + _current_triggers.size() + " triggers for " + _asset_id ); // Handle case where we might be computing the first belief // state. // if ( _last_computed_belief == null ) { // The default belief to use when we have no record of a // previous belief is defined in the constructor, based on // the state of the plugin. // _last_computed_belief = _default_belief; _last_computed_belief.setTimestamp ( getEarliestCurrentTriggerTime() ); } BeliefState latest_belief = _last_computed_belief; logDetail( "Initial belief before trigger list: " + latest_belief.toString() ); // This iterator will return items in ascending order (by // trigger time). // Iterator trigger_iter = _current_triggers.iterator(); while ( trigger_iter.hasNext() ) { BeliefUpdateTrigger trigger = (BeliefUpdateTrigger) trigger_iter.next(); logDetail( "Processing trigger: " + trigger.toString() ); latest_belief = _model_manager.updateBeliefState( latest_belief, trigger ); logDetail( "Belief after trigger: " + latest_belief.toString() ); } // while trigger_iter // Once we have incorporated all the triggers into the // computed belief state, we should clear them out, along with // anything else that is associated with this latency window // we have maintained. // clearTriggerHistory(); _last_computed_belief = latest_belief; // Note that we choose not to worry about what to do with this // belief state here. The decision whether to publish or not // should be made by whatever routine is actually calling this // update method. // logInfo( "Belief Update Ended for: " + _asset_id ); } // method updateBeliefState
11869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11869/b46bccd9c04fcb2db618966e6d9b5841c1fc8c6b/BeliefTriggerHistory.java/buggy/believability/src/org/cougaar/coordinator/believability/BeliefTriggerHistory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1089, 18097, 28515, 1119, 12, 262, 1216, 24907, 1385, 90, 2967, 503, 565, 288, 3639, 368, 11436, 1879, 326, 1849, 434, 11752, 471, 3671, 279, 3639, 368, 4166, 434, 3952, 28515, 5493, 3180, 732, 336, 358, 326, 679, 434, 326, 3639, 368, 666, 18, 225, 1220, 727, 3952, 28515, 919, 353, 326, 1245, 732, 2545, 18, 3639, 368, 3639, 368, 1220, 296, 2135, 3080, 11, 648, 1410, 486, 8654, 5622, 275, 16, 3241, 732, 3639, 368, 1410, 745, 333, 1338, 1839, 6534, 622, 4520, 1245, 3080, 18, 3639, 368, 10724, 16, 7844, 358, 8122, 866, 364, 333, 471, 10490, 598, 3639, 368, 518, 25063, 1508, 1240, 326, 2619, 324, 16659, 1347, 326, 3639, 368, 6287, 573, 854, 26889, 18, 225, 13743, 732, 8616, 741, 486, 1089, 326, 3639, 368, 3952, 28515, 919, 18, 3639, 368, 3639, 309, 261, 389, 2972, 67, 313, 8060, 18, 1467, 1435, 411, 404, 262, 3639, 288, 5411, 613, 966, 12, 315, 21702, 3952, 28515, 1089, 6541, 358, 3634, 11752, 1199, 11272, 5411, 327, 31, 3639, 289, 3639, 309, 261, 389, 4901, 18, 291, 966, 1526, 1435, 262, 389, 4901, 18, 1376, 12, 315, 18097, 28515, 2315, 24591, 364, 30, 315, 397, 389, 9406, 67, 350, 11272, 3639, 368, 1660, 1410, 1122, 1524, 333, 3080, 1849, 16, 487, 3639, 368, 7756, 469, 2674, 903, 2583, 518, 358, 506, 3115, 18, 3639, 368, 3639, 5737, 18, 3804, 12, 389, 2972, 67, 313, 8060, 16, 394, 11321, 5559, 1435, 11272, 7734, 613, 6109, 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, 918, 1089, 18097, 28515, 1119, 12, 262, 1216, 24907, 1385, 90, 2967, 503, 565, 288, 3639, 368, 11436, 1879, 326, 1849, 434, 11752, 471, 3671, 279, 3639, 368, 4166, 434, 3952, 28515, 5493, 3180, 732, 336, 358, 326, 679, 434, 326, 3639, 368, 666, 18, 225, 1220, 727, 3952, 28515, 919, 353, 326, 1245, 732, 2545, 18, 3639, 368, 3639, 368, 1220, 296, 2135, 3080, 11, 648, 1410, 486, 8654, 5622, 275, 16, 3241, 732, 3639, 368, 1410, 745, 333, 1338, 1839, 6534, 622, 4520, 1245, 3080, 18, 3639, 368, 10724, 16, 7844, 358, 8122, 866, 364, 333, 471, 10490, 598, 3639, 368, 518, 25063, 1508, 1240, 326, 2619, 324, 16659, 1347, 326, 3639, 368, 6287, 573, 854, 2 ]
if (FloodfillNetworkDatabaseFacade.floodfillEnabled(getContext())) info.addCapability(FloodfillNetworkDatabaseFacade.CAPACITY_FLOODFILL); if ("true".equalsIgnoreCase(getContext().getProperty(Router.PROP_HIDDEN, "false"))) info.addCapability(RouterInfo.CAPABILITY_HIDDEN);
RouterInfo createRouterInfo() { RouterInfo info = new RouterInfo(); FileOutputStream fos1 = null; FileOutputStream fos2 = null; try { info.setAddresses(getContext().commSystem().createAddresses()); Properties stats = getContext().statPublisher().publishStatistics(); stats.setProperty(RouterInfo.PROP_NETWORK_ID, Router.NETWORK_ID+""); getContext().router().addReachabilityCapability(info); info.setOptions(stats); if (FloodfillNetworkDatabaseFacade.floodfillEnabled(getContext())) info.addCapability(FloodfillNetworkDatabaseFacade.CAPACITY_FLOODFILL); if ("true".equalsIgnoreCase(getContext().getProperty(Router.PROP_HIDDEN, "false"))) info.addCapability(RouterInfo.CAPABILITY_HIDDEN); info.setPeers(new HashSet()); info.setPublished(getCurrentPublishDate(getContext())); RouterIdentity ident = new RouterIdentity(); Certificate cert = getContext().router().createCertificate(); ident.setCertificate(cert); PublicKey pubkey = null; PrivateKey privkey = null; SigningPublicKey signingPubKey = null; SigningPrivateKey signingPrivKey = null; Object keypair[] = getContext().keyGenerator().generatePKIKeypair(); pubkey = (PublicKey)keypair[0]; privkey = (PrivateKey)keypair[1]; Object signingKeypair[] = getContext().keyGenerator().generateSigningKeypair(); signingPubKey = (SigningPublicKey)signingKeypair[0]; signingPrivKey = (SigningPrivateKey)signingKeypair[1]; ident.setPublicKey(pubkey); ident.setSigningPublicKey(signingPubKey); info.setIdentity(ident); info.sign(signingPrivKey); String infoFilename = getContext().router().getConfigSetting(Router.PROP_INFO_FILENAME); if (infoFilename == null) infoFilename = Router.PROP_INFO_FILENAME_DEFAULT; fos1 = new FileOutputStream(infoFilename); info.writeBytes(fos1); String keyFilename = getContext().router().getConfigSetting(Router.PROP_KEYS_FILENAME); if (keyFilename == null) keyFilename = Router.PROP_KEYS_FILENAME_DEFAULT; fos2 = new FileOutputStream(keyFilename); privkey.writeBytes(fos2); signingPrivKey.writeBytes(fos2); pubkey.writeBytes(fos2); signingPubKey.writeBytes(fos2); getContext().keyManager().setSigningPrivateKey(signingPrivKey); getContext().keyManager().setSigningPublicKey(signingPubKey); getContext().keyManager().setPrivateKey(privkey); getContext().keyManager().setPublicKey(pubkey); _log.info("Router info created and stored at " + infoFilename + " with private keys stored at " + keyFilename + " [" + info + "]"); } catch (DataFormatException dfe) { _log.error("Error building the new router information", dfe); } catch (IOException ioe) { _log.error("Error writing out the new router information", ioe); } finally { if (fos1 != null) try { fos1.close(); } catch (IOException ioe) {} if (fos2 != null) try { fos2.close(); } catch (IOException ioe) {} } return info; }
27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/9a820961a2ed3dcae137cdb352fa6df370655c36/CreateRouterInfoJob.java/buggy/router/java/src/net/i2p/router/startup/CreateRouterInfoJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 9703, 966, 752, 8259, 966, 1435, 288, 3639, 9703, 966, 1123, 273, 394, 9703, 966, 5621, 3639, 12942, 17615, 21, 273, 446, 31, 3639, 12942, 17615, 22, 273, 446, 31, 3639, 775, 288, 5411, 1123, 18, 542, 7148, 12, 29120, 7675, 5702, 3163, 7675, 2640, 7148, 10663, 5411, 6183, 3177, 273, 6474, 7675, 5642, 15960, 7675, 6543, 8569, 5621, 5411, 3177, 18, 542, 1396, 12, 8259, 966, 18, 15811, 67, 28047, 67, 734, 16, 9703, 18, 28047, 67, 734, 15, 3660, 1769, 5411, 6474, 7675, 10717, 7675, 1289, 26136, 2967, 17035, 12, 1376, 1769, 5411, 1123, 18, 542, 1320, 12, 5296, 1769, 5411, 309, 261, 42, 383, 369, 5935, 3906, 4254, 12467, 18, 74, 383, 369, 5935, 1526, 12, 29120, 1435, 3719, 7734, 1123, 18, 1289, 17035, 12, 42, 383, 369, 5935, 3906, 4254, 12467, 18, 17296, 30041, 67, 42, 1502, 1212, 29818, 1769, 5411, 309, 7566, 3767, 9654, 14963, 5556, 12, 29120, 7675, 588, 1396, 12, 8259, 18, 15811, 67, 44, 18216, 16, 315, 5743, 6, 20349, 7734, 1123, 18, 1289, 17035, 12, 8259, 966, 18, 17296, 22879, 67, 44, 18216, 1769, 5411, 1123, 18, 542, 14858, 12, 2704, 6847, 10663, 5411, 1123, 18, 542, 16451, 12, 588, 3935, 6024, 1626, 12, 29120, 1435, 10019, 5411, 9703, 4334, 3390, 273, 394, 9703, 4334, 5621, 5411, 6660, 3320, 273, 6474, 7675, 10717, 7675, 2640, 4719, 5621, 5411, 3390, 18, 542, 4719, 12, 7593, 1769, 5411, 11951, 15649, 273, 446, 31, 5411, 14018, 6015, 856, 273, 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, 9703, 966, 752, 8259, 966, 1435, 288, 3639, 9703, 966, 1123, 273, 394, 9703, 966, 5621, 3639, 12942, 17615, 21, 273, 446, 31, 3639, 12942, 17615, 22, 273, 446, 31, 3639, 775, 288, 5411, 1123, 18, 542, 7148, 12, 29120, 7675, 5702, 3163, 7675, 2640, 7148, 10663, 5411, 6183, 3177, 273, 6474, 7675, 5642, 15960, 7675, 6543, 8569, 5621, 5411, 3177, 18, 542, 1396, 12, 8259, 966, 18, 15811, 67, 28047, 67, 734, 16, 9703, 18, 28047, 67, 734, 15, 3660, 1769, 5411, 6474, 7675, 10717, 7675, 1289, 26136, 2967, 17035, 12, 1376, 1769, 5411, 1123, 18, 542, 1320, 12, 5296, 1769, 5411, 309, 261, 42, 383, 369, 5935, 3906, 4254, 12467, 18, 74, 383, 369, 5935, 1526, 2 ]
IMarker marker = (IMarker) obj; String lineNumber = Util.getProperty(name, marker); if (lineNumber.equals("")) { return lineNumber;
ConcreteMarker marker = (ConcreteMarker) obj; if (marker.getLine() < 0) { return "";
public String getValue(Object obj) { if (obj == null || !(obj instanceof IMarker)) { return ""; //$NON-NLS-1$ } IMarker marker = (IMarker) obj; String lineNumber = Util.getProperty(name, marker); if (lineNumber.equals("")) { //$NON-NLS-1$ return lineNumber; } return Messages.format("label." + name, new String[] {lineNumber}); //$NON-NLS-1$ }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ea57ee1b804071939d5791d4c2986826074efe0c/FieldLineNumber.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/FieldLineNumber.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 2366, 12, 921, 1081, 13, 288, 202, 202, 430, 261, 2603, 422, 446, 747, 401, 12, 2603, 1276, 467, 7078, 3719, 288, 1082, 202, 2463, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 3445, 1313, 264, 5373, 273, 261, 3445, 1313, 264, 13, 1081, 31, 202, 202, 780, 13629, 273, 3564, 18, 588, 1396, 12, 529, 16, 5373, 1769, 202, 202, 430, 261, 1369, 1854, 18, 14963, 2932, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 13629, 31, 202, 202, 97, 202, 202, 2463, 4838, 18, 2139, 2932, 1925, 1199, 397, 508, 16, 394, 514, 8526, 288, 1369, 1854, 22938, 4329, 3993, 17, 5106, 17, 21, 8, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 2366, 12, 921, 1081, 13, 288, 202, 202, 430, 261, 2603, 422, 446, 747, 401, 12, 2603, 1276, 467, 7078, 3719, 288, 1082, 202, 2463, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 3445, 1313, 264, 5373, 273, 261, 3445, 1313, 264, 13, 1081, 31, 202, 202, 780, 13629, 273, 3564, 18, 588, 1396, 12, 529, 16, 5373, 1769, 202, 202, 430, 261, 1369, 1854, 18, 14963, 2932, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 13629, 31, 202, 202, 97, 202, 202, 2463, 4838, 18, 2139, 2932, 1925, 1199, 397, 508, 16, 394, 514, 8526, 288, 1369, 1854, 22938, 4329, 3993, 17, 5106, 2 ]
_cancelAction = new AbstractAction(_cancelText) { public void actionPerformed(ActionEvent e) { _finalResult = CANCEL_OPTION; _tree.cancelEditing(); DirectoryChooser.this.setVisible(false); } }; _cancelButton = new JButton(_cancelAction); String key = "dc_cancel"; getRootPane().getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0), key); getRootPane().getActionMap().put(key, _cancelAction);
_cancelButton = new JButton(_cancelText);
private void _init(Component owner, File root, boolean allowMultiple, boolean showHidden) { if (root != null && !root.isDirectory()) { root = root.getAbsoluteFile().getParentFile(); } _treeIsGenerated = false; _forceTreeGenerate = true; _rootFile = root; _defaultSelectedFile = null; _allowMultiple = allowMultiple; _showHidden = showHidden; _finalResult = ERROR_OPTION; _choosableDirs = new LinkedList<FileFilter>(); _normalFileFilters = new LinkedList<FileFilter>(); _fileSelectionListeners = new Hashtable<FileSelectionListener, TreeSelectionListener>(); _fdManager = new DefaultFileDisplayManager(); _offLimits = new HashSet<File>(); File[] shellRoots = (File[])ShellFolder.get("fileChooserComboBoxFolders"); for(File f : shellRoots) { _offLimits.add(f); } Container cp = getContentPane(); cp.setLayout(new BorderLayout()); GridBagLayout layout = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); c.anchor = GridBagConstraints.SOUTHWEST; _topComponentPanel = new JPanel(layout); _topComponentPanel.setBorder(BorderFactory.createEmptyBorder(5,5,0,5)); _topLabel = new JLabel(_topLabelText); layout.setConstraints(_topLabel, c); _topComponentPanel.add(_topLabel); _northPanel = new JPanel(new BorderLayout()); _northPanel.setBorder(BorderFactory.createEmptyBorder(5,5,0,5)); _northPanel.add(_topComponentPanel, BorderLayout.WEST);// _northPanel.add(_newButtonPanel, BorderLayout.EAST); cp.add(_northPanel, BorderLayout.NORTH); _scroller = new JScrollPane(); Border innerBorder = BorderFactory.createBevelBorder(BevelBorder.LOWERED); Border outerBorder = BorderFactory.createEmptyBorder(0,10,0,10); _scroller.setBorder(BorderFactory.createCompoundBorder(outerBorder,innerBorder)); JPanel spanel = new JPanel(new BorderLayout(5,5)); spanel.add(_scroller); cp.add(spanel, BorderLayout.CENTER); _accessoryPanel = new JPanel(new BorderLayout()); _accessoryPanel.setBorder(BorderFactory.createEmptyBorder(0,10,0,10)); _approveButton = new JButton(_approveText); _approveButton.setEnabled(false); _approveButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { // If the button was clicked when none were selected, it's an error. // The error option is default and doesn't need to be set. _tree.cancelEditing(); if (_tree.getSelectionCount() > 0) { _finalResult = APPROVE_OPTION; } DirectoryChooser.this.setVisible(false); } }); getRootPane().setDefaultButton(_approveButton); _cancelAction = new AbstractAction(_cancelText) { public void actionPerformed(ActionEvent e) { _finalResult = CANCEL_OPTION; _tree.cancelEditing(); DirectoryChooser.this.setVisible(false); } }; _cancelButton = new JButton(_cancelAction); String key = "dc_cancel"; getRootPane().getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0), key); getRootPane().getActionMap().put(key, _cancelAction); JPanel _okCancelPanel = new JPanel(new FlowLayout()); _okCancelPanel.add(_approveButton); _okCancelPanel.add(_cancelButton); _newFolderButton = new JButton("Make New Folder"/**,_newFolderIcon**/); _newFolderButton.setEnabled(false); _newFolderButton.setMargin(new Insets(2,2,2,2)); _newFolderButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { launchCreateNewDirectory(); } }); _newButtonPanel = new JPanel(); _newButtonPanel.add(_newFolderButton); _newButtonPanel.setVisible(false); _buttonPanel = new JPanel(new BorderLayout()); _buttonPanel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); _buttonPanel.add(_okCancelPanel, BorderLayout.EAST); _buttonPanel.add(_newButtonPanel, BorderLayout.WEST); _southPanel = new JPanel(new BorderLayout()); _southPanel.add(_accessoryPanel, BorderLayout.CENTER); _southPanel.add(_buttonPanel, BorderLayout.SOUTH); cp.add(_southPanel, BorderLayout.SOUTH); this.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { _finalResult = CANCEL_OPTION; } }); // This sets the root file and generates the tree setRootFile(_rootFile); _treePopup = new JPopupMenu(); _collapseItem = new JMenuItem("Collapse"); _treePopup.add(_collapseItem); _collapseItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { _tree.collapsePath(_tree.getSelectionPath()); } }); _expandItem = new JMenuItem("Expand"); _treePopup.add(_expandItem); _expandItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { _tree.expandPath(_tree.getSelectionPath()); } }); _treePopup.addSeparator(); _popSep = (JPopupMenu.Separator)_treePopup.getComponent(2); _renameItem = new JMenuItem("Rename"); _treePopup.add(_renameItem); _renameItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { _tree.startEditingAtPath(_tree.getSelectionPath()); } }); _deleteItem = new JMenuItem("Delete"); _treePopup.add(_deleteItem); _deleteItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { tryToDeletePath(_tree.getSelectionPath()); } }); _newFolderItem = new JMenuItem("New Folder"); _treePopup.add(_newFolderItem); _newFolderItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { launchCreateNewDirectory(_tree.getSelectionPath()); } }); setEditable(false); setLocationRelativeTo(null); setSize(330, 400); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/ea58ebfcec38aad3c446138f5dc29fb9b0bd55b4/DirectoryChooser.java/buggy/drjava/src/edu/rice/cs/util/swing/DirectoryChooser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 2738, 12, 1841, 3410, 16, 1387, 1365, 16, 1250, 1699, 8438, 16, 1250, 2405, 9345, 13, 288, 565, 309, 261, 3085, 480, 446, 597, 401, 3085, 18, 291, 2853, 10756, 288, 1377, 1365, 273, 1365, 18, 588, 10368, 812, 7675, 588, 3054, 812, 5621, 565, 289, 3639, 389, 3413, 2520, 7823, 273, 629, 31, 565, 389, 5734, 2471, 4625, 273, 638, 31, 565, 389, 3085, 812, 273, 1365, 31, 565, 389, 1886, 7416, 812, 273, 446, 31, 565, 389, 5965, 8438, 273, 1699, 8438, 31, 565, 389, 4500, 9345, 273, 2405, 9345, 31, 565, 389, 6385, 1253, 273, 5475, 67, 7425, 31, 565, 389, 2599, 538, 429, 9872, 273, 394, 10688, 32, 29837, 34, 5621, 565, 389, 6130, 812, 5422, 273, 394, 10688, 32, 29837, 34, 5621, 565, 389, 768, 6233, 5583, 273, 394, 18559, 32, 812, 6233, 2223, 16, 4902, 6233, 2223, 34, 5621, 565, 389, 8313, 1318, 273, 394, 2989, 812, 4236, 1318, 5621, 1377, 389, 3674, 12768, 273, 394, 6847, 32, 812, 34, 5621, 565, 1387, 8526, 5972, 17540, 273, 261, 812, 63, 5717, 13220, 3899, 18, 588, 2932, 768, 17324, 22199, 14885, 8863, 565, 364, 12, 812, 284, 294, 5972, 17540, 13, 288, 1377, 389, 3674, 12768, 18, 1289, 12, 74, 1769, 565, 289, 5411, 4039, 3283, 273, 5154, 8485, 5621, 565, 3283, 18, 542, 3744, 12, 2704, 30814, 10663, 3639, 7145, 5013, 3744, 3511, 273, 394, 7145, 5013, 3744, 5621, 565, 13075, 276, 273, 394, 13075, 5621, 565, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 2738, 12, 1841, 3410, 16, 1387, 1365, 16, 1250, 1699, 8438, 16, 1250, 2405, 9345, 13, 288, 565, 309, 261, 3085, 480, 446, 597, 401, 3085, 18, 291, 2853, 10756, 288, 1377, 1365, 273, 1365, 18, 588, 10368, 812, 7675, 588, 3054, 812, 5621, 565, 289, 3639, 389, 3413, 2520, 7823, 273, 629, 31, 565, 389, 5734, 2471, 4625, 273, 638, 31, 565, 389, 3085, 812, 273, 1365, 31, 565, 389, 1886, 7416, 812, 273, 446, 31, 565, 389, 5965, 8438, 273, 1699, 8438, 31, 565, 389, 4500, 9345, 273, 2405, 9345, 31, 565, 389, 6385, 1253, 273, 5475, 67, 7425, 31, 565, 389, 2599, 538, 429, 9872, 273, 394, 10688, 32, 29837, 34, 5621, 2 ]
{ for (int i = 0; i < a.length; i++) { if (clazz.isInstance(a[i])) { return a[i]; } } return null; }
{ for (int i = 0; i < a.length; i++) { if (clazz.isInstance(a[i])) { return a[i]; } } return null; }
public static Object getFirstInstance(Object[] a, Class clazz) { for (int i = 0; i < a.length; i++) { if (clazz.isInstance(a[i])) { return a[i]; } } return null; }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/XOMUtil.java/buggy/src/main/mondrian/xom/XOMUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 7521, 1442, 12, 921, 8526, 279, 16, 1659, 4003, 13, 202, 95, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 279, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 830, 3638, 18, 291, 1442, 12, 69, 63, 77, 22643, 288, 9506, 202, 2463, 279, 63, 77, 15533, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 446, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 1033, 7521, 1442, 12, 921, 8526, 279, 16, 1659, 4003, 13, 202, 95, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 279, 18, 2469, 31, 277, 27245, 288, 1082, 202, 430, 261, 830, 3638, 18, 291, 1442, 12, 69, 63, 77, 22643, 288, 9506, 202, 2463, 279, 63, 77, 15533, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 446, 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 ]
Mailbox mbox = getMailbox();
Mailbox mbox = getMailbox(ctxt);
public java.util.Collection<CalendarItem> get(DavContext ctxt, TimeRange range) throws ServiceException, DavException { Mailbox mbox = getMailbox(); return mbox.getCalendarItemsForRange(ctxt.getOperationContext(), range.getStart(), range.getEnd(), mId, null); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/6cf456f33a0bab2d58fe8ac83f6e2fc9e0f6cf8d/CalendarCollection.java/clean/ZimbraServer/src/java/com/zimbra/cs/dav/resource/CalendarCollection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 1367, 18, 2532, 32, 7335, 1180, 34, 336, 12, 40, 842, 1042, 14286, 16, 2647, 2655, 1048, 13, 1216, 16489, 16, 463, 842, 503, 288, 202, 202, 30239, 312, 2147, 273, 31991, 2147, 5621, 202, 202, 2463, 312, 2147, 18, 588, 7335, 3126, 1290, 2655, 12, 20364, 18, 588, 2988, 1042, 9334, 1048, 18, 588, 1685, 9334, 1048, 18, 588, 1638, 9334, 312, 548, 16, 446, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2252, 18, 1367, 18, 2532, 32, 7335, 1180, 34, 336, 12, 40, 842, 1042, 14286, 16, 2647, 2655, 1048, 13, 1216, 16489, 16, 463, 842, 503, 288, 202, 202, 30239, 312, 2147, 273, 31991, 2147, 5621, 202, 202, 2463, 312, 2147, 18, 588, 7335, 3126, 1290, 2655, 12, 20364, 18, 588, 2988, 1042, 9334, 1048, 18, 588, 1685, 9334, 1048, 18, 588, 1638, 9334, 312, 548, 16, 446, 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 ]
if (logger.isDebugEnabled()) { logger.debug("Bootstrap onInstall done"); }
public void onInstall() throws JBIException { try { if (logger.isDebugEnabled()) { logger.debug("Bootstrap onInstall"); } doOnInstall(); if (logger.isDebugEnabled()) { logger.debug("Bootstrap onInstall done"); } } catch (JBIException e) { throw e; } catch (Exception e) { throw new JBIException("Error calling onInstall", e); } }
6264 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6264/b8f8770813d11c6b26f6ab876425e14e623ede43/Jsr181Bootstrap.java/clean/servicemix-jsr181/src/main/java/org/apache/servicemix/jsr181/Jsr181Bootstrap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 603, 6410, 1435, 1216, 804, 31558, 503, 288, 3639, 775, 288, 5411, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 7734, 1194, 18, 4148, 2932, 10445, 603, 6410, 8863, 5411, 289, 5411, 741, 1398, 6410, 5621, 5411, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 7734, 1194, 18, 4148, 2932, 10445, 603, 6410, 2731, 8863, 5411, 289, 3639, 289, 1044, 261, 8877, 45, 503, 425, 13, 288, 5411, 604, 425, 31, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 604, 394, 804, 31558, 503, 2932, 668, 4440, 603, 6410, 3113, 425, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 603, 6410, 1435, 1216, 804, 31558, 503, 288, 3639, 775, 288, 5411, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 7734, 1194, 18, 4148, 2932, 10445, 603, 6410, 8863, 5411, 289, 5411, 741, 1398, 6410, 5621, 5411, 309, 261, 4901, 18, 291, 2829, 1526, 10756, 288, 7734, 1194, 18, 4148, 2932, 10445, 603, 6410, 2731, 8863, 5411, 289, 3639, 289, 1044, 261, 8877, 45, 503, 425, 13, 288, 5411, 604, 425, 31, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 604, 394, 804, 31558, 503, 2932, 668, 4440, 603, 6410, 3113, 425, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER && (Report.should_report("parser", 2))) { Report.report(2,"Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassType ::= TypeName // case 15: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 16: InterfaceType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: TypeName ::= identifier // case 17: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 18: TypeName ::= TypeName . identifier // case 18: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 19: ClassName ::= TypeName // case 19: break; // // Rule 20: TypeVariable ::= identifier // case 20: break; // // Rule 21: ArrayType ::= Type [ ] // case 21: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.array(a, pos(), 1)); break; } // // Rule 22: TypeParameter ::= TypeVariable TypeBoundopt // case 22: bad_rule = 22; break; // // Rule 23: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 23: bad_rule = 23; break; // // Rule 24: AdditionalBoundList ::= AdditionalBound // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBound ::= & InterfaceType // case 26: bad_rule = 26; break; // // Rule 27: TypeArguments ::= < ActualTypeArgumentList > // case 27: bad_rule = 27; break; // // Rule 28: ActualTypeArgumentList ::= ActualTypeArgument // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgumentList , ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: Wildcard ::= ? WildcardBoundsOpt // case 30: bad_rule = 30; break; // // Rule 31: WildcardBounds ::= extends ReferenceType // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= super ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: PackageName ::= identifier // case 33: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 34: PackageName ::= PackageName . identifier // case 34: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 35: ExpressionName ::= identifier // case 35: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 36: ExpressionName ::= AmbiguousName . identifier // case 36: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 37: MethodName ::= identifier // case 37: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 38: MethodName ::= AmbiguousName . identifier // case 38: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 39: PackageOrTypeName ::= identifier // case 39: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= PackageOrTypeName . identifier // case 40: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 41: AmbiguousName ::= identifier // case 41: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= AmbiguousName . identifier // case 42: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 43: CompilationUnit ::= PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 43: { PackageNode a = (PackageNode) btParser.getSym(1); List b = (List) btParser.getSym(2), c = (List) btParser.getSym(3); // Add import x10.lang.* by default. Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Import x10LangImport = nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, x10Lang.toString()); b.add(x10LangImport); btParser.setSym1(nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c)); break; } // // Rule 44: ImportDeclarations ::= ImportDeclaration // case 44: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 45: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 45: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 46: TypeDeclarations ::= TypeDeclaration // case 46: { List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(1); if (a != null) l.add(a); btParser.setSym1(l); break; } // // Rule 47: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 47: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 48: PackageDeclaration ::= package PackageName ; // case 48: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 49: ImportDeclaration ::= SingleTypeImportDeclaration // case 49: break; // // Rule 50: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 50: break; // // Rule 51: ImportDeclaration ::= SingleStaticImportDeclaration // case 51: break; // // Rule 52: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 52: break; // // Rule 53: SingleTypeImportDeclaration ::= import TypeName ; // case 53: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 54: TypeImportOnDemandDeclaration ::= import PackageOrTypeName . * ; // case 54: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 55: SingleStaticImportDeclaration ::= import static TypeName . identifier ; // case 55: bad_rule = 55; break; // // Rule 56: StaticImportOnDemandDeclaration ::= import static TypeName . * ; // case 56: bad_rule = 56; break; // // Rule 57: TypeDeclaration ::= ClassDeclaration // case 57: break; // // Rule 58: TypeDeclaration ::= InterfaceDeclaration // case 58: break; // // Rule 59: TypeDeclaration ::= ; // case 59: { btParser.setSym1(null); break; } // // Rule 60: ClassDeclaration ::= NormalClassDeclaration // case 60: break; // // Rule 61: NormalClassDeclaration ::= ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 61: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(4); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 62: ClassModifiers ::= ClassModifier // case 62: break; // // Rule 63: ClassModifiers ::= ClassModifiers ClassModifier // case 63: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 64: ClassModifier ::= public // case 64: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 65: ClassModifier ::= protected // case 65: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 66: ClassModifier ::= private // case 66: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 67: ClassModifier ::= abstract // case 67: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 68: ClassModifier ::= static // case 68: { btParser.setSym1(Flags.STATIC); break; } // // Rule 69: ClassModifier ::= final // case 69: { btParser.setSym1(Flags.FINAL); break; } // // Rule 70: ClassModifier ::= strictfp // case 70: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 71: TypeParameters ::= < TypeParameterList > // case 71: bad_rule = 71; break; // // Rule 72: TypeParameterList ::= TypeParameter // case 72: bad_rule = 72; break; // // Rule 73: TypeParameterList ::= TypeParameterList , TypeParameter // case 73: bad_rule = 73; break; // // Rule 74: Super ::= extends ClassType // case 74: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 75: Interfaces ::= implements InterfaceTypeList // case 75: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 76: InterfaceTypeList ::= InterfaceType // case 76: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 77: InterfaceTypeList ::= InterfaceTypeList , InterfaceType // case 77: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 78: ClassBody ::= { ClassBodyDeclarationsopt } // case 78: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 79: ClassBodyDeclarations ::= ClassBodyDeclaration // case 79: break; // // Rule 80: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 80: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 81: ClassBodyDeclaration ::= ClassMemberDeclaration // case 81: break; // // Rule 82: ClassBodyDeclaration ::= InstanceInitializer // case 82: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 83: ClassBodyDeclaration ::= StaticInitializer // case 83: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 84: ClassBodyDeclaration ::= ConstructorDeclaration // case 84: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 85: ClassMemberDeclaration ::= FieldDeclaration // case 85: break; // // Rule 86: ClassMemberDeclaration ::= MethodDeclaration // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 87: ClassMemberDeclaration ::= ClassDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= InterfaceDeclaration // case 88: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 89: ClassMemberDeclaration ::= ; // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 90: FieldDeclaration ::= FieldModifiersopt Type VariableDeclarators ; // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); d.setFlag(a); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), d.flags, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 91: VariableDeclarators ::= VariableDeclarator // case 91: { List l = new TypedList(new LinkedList(), X10VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: VariableDeclarators ::= VariableDeclarators , VariableDeclarator // case 92: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 93: VariableDeclarator ::= VariableDeclaratorId // case 93: break; // // Rule 94: VariableDeclarator ::= VariableDeclaratorId = VariableInitializer // case 94: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 95: VariableDeclaratorId ::= identifier // case 95: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 96: VariableDeclaratorId ::= VariableDeclaratorId [ ] // case 96: { X10VarDeclarator a = (X10VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 97: VariableDeclaratorId ::= identifier [ IdentifierList ] // case 97: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List paramList = (List) btParser.getSym(3); btParser.setSym1(new X10VarDeclarator(pos(), a.getIdentifier(), paramList)); break; } // // Rule 98: VariableDeclaratorId ::= [ IdentifierList ] // case 98: { String name = polyglot.ext.x10.visit.X10PrettyPrinterVisitor.getId(); List paramList = (List) btParser.getSym(2); btParser.setSym1(new X10VarDeclarator(pos(), name, paramList)); break; } // // Rule 99: VariableInitializer ::= Expression // case 99: break; // // Rule 100: VariableInitializer ::= ArrayInitializer // case 100: break; // // Rule 101: FieldModifiers ::= FieldModifier // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifiers FieldModifier // case 102: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 103: FieldModifier ::= public // case 103: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 104: FieldModifier ::= protected // case 104: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 105: FieldModifier ::= private // case 105: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 106: FieldModifier ::= static // case 106: { btParser.setSym1(Flags.STATIC); break; } // // Rule 107: FieldModifier ::= final // case 107: { btParser.setSym1(Flags.FINAL); break; } // // Rule 108: FieldModifier ::= transient // case 108: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 109: FieldModifier ::= volatile // case 109: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 110: MethodDeclaration ::= MethodHeader MethodBody // case 110: { MethodDecl a = (MethodDecl) btParser.getSym(1); List l = a.formals(); List s = new TypedList(new LinkedList(), Stmt.class, false); Block b = (Block) btParser.getSym(2); for (Iterator i = l.iterator(); i.hasNext(); ) { X10Formal d = (X10Formal) i.next(); if (d.hasExplodedVars()) s.addAll( d.explode()); } if (! s.isEmpty()) { s.addAll(b.statements()); b = b.statements(s); } Flags f = a.flags(); if (f.contains(Flags.ATOMIC)) { List ss = new TypedList(new LinkedList(), Stmt.class, false); ss.add(nf.Atomic(pos(), nf.Here(pos()), b)); b = b.statements(ss); a = a.flags(f.clear(Flags.ATOMIC)); } btParser.setSym1(a.body(b)); break; } // // Rule 111: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 111: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 112: ResultType ::= Type // case 112: break; // // Rule 113: ResultType ::= void // case 113: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 114: MethodDeclarator ::= identifier ( FormalParameterListopt ) // case 114: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 115: MethodDeclarator ::= MethodDeclarator [ ] // case 115: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 116: FormalParameterList ::= LastFormalParameter // case 116: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 117: FormalParameterList ::= FormalParameters , LastFormalParameter // case 117: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 118: FormalParameters ::= FormalParameter // case 118: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameters , FormalParameter // case 119: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 120: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 120: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(3); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 122: VariableModifiers ::= VariableModifiers VariableModifier // case 122: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 123: VariableModifier ::= final // case 123: { btParser.setSym1(Flags.FINAL); break; } // // Rule 124: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 124: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); X10VarDeclarator b = (X10VarDeclarator) btParser.getSym(4); b.setFlag(f); btParser.setSym1(nf.Formal(pos(), nf.array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b)); break; } // // Rule 125: MethodModifiers ::= MethodModifier // case 125: break; // // Rule 126: MethodModifiers ::= MethodModifiers MethodModifier // case 126: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 127: MethodModifier ::= public // case 127: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 128: MethodModifier ::= protected // case 128: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 129: MethodModifier ::= private // case 129: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 130: MethodModifier ::= abstract // case 130: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 131: MethodModifier ::= static // case 131: { btParser.setSym1(Flags.STATIC); break; } // // Rule 132: MethodModifier ::= final // case 132: { btParser.setSym1(Flags.FINAL); break; } // // Rule 133: MethodModifier ::= synchronized // case 133: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 134: MethodModifier ::= native // case 134: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 135: MethodModifier ::= strictfp // case 135: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 136: Throws ::= throws ExceptionTypeList // case 136: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 137: ExceptionTypeList ::= ExceptionType // case 137: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 138: ExceptionTypeList ::= ExceptionTypeList , ExceptionType // case 138: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 139: ExceptionType ::= ClassType // case 139: break; // // Rule 140: MethodBody ::= Block // case 140: break; // // Rule 141: MethodBody ::= ; // case 141: btParser.setSym1(null); break; // // Rule 142: InstanceInitializer ::= Block // case 142: break; // // Rule 143: StaticInitializer ::= static Block // case 143: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 144: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 144: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 145: ConstructorDeclarator ::= SimpleTypeName ( FormalParameterListopt ) // case 145: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 146: SimpleTypeName ::= identifier // case 146: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 147: ConstructorModifiers ::= ConstructorModifier // case 147: break; // // Rule 148: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 148: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 149: ConstructorModifier ::= public // case 149: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 150: ConstructorModifier ::= protected // case 150: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 151: ConstructorModifier ::= private // case 151: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 152: ConstructorBody ::= { ExplicitConstructorInvocationopt BlockStatementsopt } // case 152: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 153: ExplicitConstructorInvocation ::= this ( ArgumentListopt ) ; // case 153: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 154: ExplicitConstructorInvocation ::= super ( ArgumentListopt ) ; // case 154: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 155: ExplicitConstructorInvocation ::= Primary . this ( ArgumentListopt ) ; // case 155: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= Primary . super ( ArgumentListopt ) ; // case 156: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 157: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 157: bad_rule = 157; break; // // Rule 158: EnumBody ::= { EnumConstantsopt ,opt EnumBodyDeclarationsopt } // case 158: bad_rule = 158; break; // // Rule 159: EnumConstants ::= EnumConstant // case 159: bad_rule = 159; break; // // Rule 160: EnumConstants ::= EnumConstants , EnumConstant // case 160: bad_rule = 160; break; // // Rule 161: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 161: bad_rule = 161; break; // // Rule 162: Arguments ::= ( ArgumentListopt ) // case 162: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 163: EnumBodyDeclarations ::= ; ClassBodyDeclarationsopt // case 163: bad_rule = 163; break; // // Rule 164: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 164: break; // // Rule 165: NormalInterfaceDeclaration ::= InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 165: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(4); ClassBody d = (ClassBody) btParser.getSym(5); btParser.setSym1(nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d)); break; } // // Rule 166: InterfaceModifiers ::= InterfaceModifier // case 166: break; // // Rule 167: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 167: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 168: InterfaceModifier ::= public // case 168: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 169: InterfaceModifier ::= protected // case 169: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 170: InterfaceModifier ::= private // case 170: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 171: InterfaceModifier ::= abstract // case 171: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 172: InterfaceModifier ::= static // case 172: { btParser.setSym1(Flags.STATIC); break; } // // Rule 173: InterfaceModifier ::= strictfp // case 173: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 174: ExtendsInterfaces ::= extends InterfaceType // case 174: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 175: ExtendsInterfaces ::= ExtendsInterfaces , InterfaceType // case 175: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 176: InterfaceBody ::= { InterfaceMemberDeclarationsopt } // case 176: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 177: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 177: break; // // Rule 178: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 178: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 179: InterfaceMemberDeclaration ::= ConstantDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 180: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ClassDeclaration // case 181: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 182: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ; // case 183: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 184: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { X10VarDeclarator d = (X10VarDeclarator) i.next(); if (d.hasExplodedVars()) // TODO: Report this exception correctly. throw new Error("Field Declarations may not have exploded variables." + pos()); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, nf.array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 185: ConstantModifiers ::= ConstantModifier // case 185: break; // // Rule 186: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 186: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 187: ConstantModifier ::= public // case 187: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 188: ConstantModifier ::= static // case 188: { btParser.setSym1(Flags.STATIC); break; } // // Rule 189: ConstantModifier ::= final // case 189: { btParser.setSym1(Flags.FINAL); break; } // // Rule 190: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt ; // case 190: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! assert(false); } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, nf.array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 191: AbstractMethodModifiers ::= AbstractMethodModifier // case 191: break; // // Rule 192: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 192: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 193: AbstractMethodModifier ::= public // case 193: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 194: AbstractMethodModifier ::= abstract // case 194: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 195: AnnotationTypeDeclaration ::= InterfaceModifiersopt @ interface identifier AnnotationTypeBody // case 195: bad_rule = 195; break; // // Rule 196: AnnotationTypeBody ::= { AnnotationTypeElementDeclarationsopt } // case 196: bad_rule = 196; break; // // Rule 197: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier ( ) DefaultValueopt ; // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= ; // case 205: bad_rule = 205; break; // // Rule 206: DefaultValue ::= default ElementValue // case 206: bad_rule = 206; break; // // Rule 207: Annotations ::= Annotation // case 207: bad_rule = 207; break; // // Rule 208: Annotations ::= Annotations Annotation // case 208: bad_rule = 208; break; // // Rule 209: Annotation ::= NormalAnnotation // case 209: bad_rule = 209; break; // // Rule 210: Annotation ::= MarkerAnnotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= SingleElementAnnotation // case 211: bad_rule = 211; break; // // Rule 212: NormalAnnotation ::= @ TypeName ( ElementValuePairsopt ) // case 212: bad_rule = 212; break; // // Rule 213: ElementValuePairs ::= ElementValuePair // case 213: bad_rule = 213; break; // // Rule 214: ElementValuePairs ::= ElementValuePairs , ElementValuePair // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePair ::= SimpleName = ElementValue // case 215: bad_rule = 215; break; // // Rule 216: SimpleName ::= identifier // case 216: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 217: ElementValue ::= ConditionalExpression // case 217: bad_rule = 217; break; // // Rule 218: ElementValue ::= Annotation // case 218: bad_rule = 218; break; // // Rule 219: ElementValue ::= ElementValueArrayInitializer // case 219: bad_rule = 219; break; // // Rule 220: ElementValueArrayInitializer ::= { ElementValuesopt ,opt } // case 220: bad_rule = 220; break; // // Rule 221: ElementValues ::= ElementValue // case 221: bad_rule = 221; break; // // Rule 222: ElementValues ::= ElementValues , ElementValue // case 222: bad_rule = 222; break; // // Rule 223: MarkerAnnotation ::= @ TypeName // case 223: bad_rule = 223; break; // // Rule 224: SingleElementAnnotation ::= @ TypeName ( ElementValue ) // case 224: bad_rule = 224; break; // // Rule 225: ArrayInitializer ::= { VariableInitializersopt ,opt } // case 225: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 226: VariableInitializers ::= VariableInitializer // case 226: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 227: VariableInitializers ::= VariableInitializers , VariableInitializer // case 227: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 228: Block ::= { BlockStatementsopt } // case 228: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 229: BlockStatements ::= BlockStatement // case 229: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 230: BlockStatements ::= BlockStatements BlockStatement // case 230: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 231: BlockStatement ::= LocalVariableDeclarationStatement // case 231: break; // // Rule 232: BlockStatement ::= ClassDeclaration // case 232: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= Statement // case 233: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 234: LocalVariableDeclarationStatement ::= LocalVariableDeclaration ; // case 234: break; // // Rule 235: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 235: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); List s = new TypedList(new LinkedList(), Stmt.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { X10VarDeclarator d = (X10VarDeclarator) i.next(); d.setFlag( flags ); // use d.flags below and not flags, setFlag may change it. l.add(nf.LocalDecl(d.pos, d.flags, nf.array(a, pos(d), d.dims), d.name, d.init)); if (d.hasExplodedVars()) s.addAll( d.explode() ); } l.addAll(s); btParser.setSym1(l); break; } // // Rule 236: Statement ::= StatementWithoutTrailingSubstatement // case 236: break; // // Rule 237: Statement ::= LabeledStatement // case 237: break; // // Rule 238: Statement ::= IfThenStatement // case 238: break; // // Rule 239: Statement ::= IfThenElseStatement // case 239: break; // // Rule 240: Statement ::= WhileStatement // case 240: break; // // Rule 241: Statement ::= ForStatement // case 241: break; // // Rule 242: StatementWithoutTrailingSubstatement ::= Block // case 242: break; // // Rule 243: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= AssertStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= DoStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= BreakStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= TryStatement // case 253: break; // // Rule 254: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 254: break; // // Rule 255: StatementNoShortIf ::= LabeledStatementNoShortIf // case 255: break; // // Rule 256: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 256: break; // // Rule 257: StatementNoShortIf ::= WhileStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= ForStatementNoShortIf // case 258: break; // // Rule 259: IfThenStatement ::= if ( Expression ) Statement // case 259: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 260: IfThenElseStatement ::= if ( Expression ) StatementNoShortIf else Statement // case 260: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 261: IfThenElseStatementNoShortIf ::= if ( Expression ) StatementNoShortIf else StatementNoShortIf // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 262: EmptyStatement ::= ; // case 262: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 263: LabeledStatement ::= identifier : Statement // case 263: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 264: LabeledStatementNoShortIf ::= identifier : StatementNoShortIf // case 264: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 265: ExpressionStatement ::= StatementExpression ; // case 265: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 266: StatementExpression ::= Assignment // case 266: break; // // Rule 267: StatementExpression ::= PreIncrementExpression // case 267: break; // // Rule 268: StatementExpression ::= PreDecrementExpression // case 268: break; // // Rule 269: StatementExpression ::= PostIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PostDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= MethodInvocation // case 271: break; // // Rule 272: StatementExpression ::= ClassInstanceCreationExpression // case 272: break; // // Rule 273: AssertStatement ::= assert Expression ; // case 273: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 274: AssertStatement ::= assert Expression : Expression ; // case 274: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 275: SwitchStatement ::= switch ( Expression ) SwitchBlock // case 275: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 276: SwitchBlock ::= { SwitchBlockStatementGroupsopt SwitchLabelsopt } // case 276: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 277: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 277: break; // // Rule 278: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 278: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 279: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 280: SwitchLabels ::= SwitchLabel // case 280: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 281: SwitchLabels ::= SwitchLabels SwitchLabel // case 281: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 282: SwitchLabel ::= case ConstantExpression : // case 282: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 283: SwitchLabel ::= case EnumConstant : // case 283: bad_rule = 283; break; // // Rule 284: SwitchLabel ::= default : // case 284: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 285: EnumConstant ::= identifier // case 285: bad_rule = 285; break; // // Rule 286: WhileStatement ::= while ( Expression ) Statement // case 286: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 287: WhileStatementNoShortIf ::= while ( Expression ) StatementNoShortIf // case 287: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 288: DoStatement ::= do Statement while ( Expression ) ; // case 288: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 289: ForStatement ::= BasicForStatement // case 289: break; // // Rule 290: ForStatement ::= EnhancedForStatement // case 290: break; // // Rule 291: BasicForStatement ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) Statement // case 291: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 292: ForStatementNoShortIf ::= for ( ForInitopt ; Expressionopt ; ForUpdateopt ) StatementNoShortIf // case 292: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 293: ForInit ::= StatementExpressionList // case 293: break; // // Rule 294: ForInit ::= LocalVariableDeclaration // case 294: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 295: ForUpdate ::= StatementExpressionList // case 295: break; // // Rule 296: StatementExpressionList ::= StatementExpression // case 296: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 297: StatementExpressionList ::= StatementExpressionList , StatementExpression // case 297: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 298: BreakStatement ::= break identifieropt ; // case 298: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 299: ContinueStatement ::= continue identifieropt ; // case 299: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 300: ReturnStatement ::= return Expressionopt ; // case 300: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 301: ThrowStatement ::= throw Expression ; // case 301: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 302: SynchronizedStatement ::= synchronized ( Expression ) Block // case 302: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 303: TryStatement ::= try Block Catches // case 303: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 304: TryStatement ::= try Block Catchesopt Finally // case 304: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 305: Catches ::= CatchClause // case 305: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 306: Catches ::= Catches CatchClause // case 306: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 307: CatchClause ::= catch ( FormalParameter ) Block // case 307: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 308: Finally ::= finally Block // case 308: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 309: Primary ::= PrimaryNoNewArray // case 309: break; // // Rule 310: Primary ::= ArrayCreationExpression // case 310: break; // // Rule 311: PrimaryNoNewArray ::= Literal // case 311: break; // // Rule 312: PrimaryNoNewArray ::= Type . class // case 312: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 313: PrimaryNoNewArray ::= void . class // case 313: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 314: PrimaryNoNewArray ::= this // case 314: { btParser.setSym1(nf.This(pos())); break; } // // Rule 315: PrimaryNoNewArray ::= ClassName . this // case 315: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 316: PrimaryNoNewArray ::= ( Expression ) // case 316: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 317: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 317: break; // // Rule 318: PrimaryNoNewArray ::= FieldAccess // case 318: break; // // Rule 319: PrimaryNoNewArray ::= MethodInvocation // case 319: break; // // Rule 320: PrimaryNoNewArray ::= ArrayAccess // case 320: break; // // Rule 321: Literal ::= IntegerLiteral // case 321: { polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 322: Literal ::= LongLiteral // case 322: { polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1)); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 323: Literal ::= FloatingPointLiteral // case 323: { polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 324: Literal ::= DoubleLiteral // case 324: { polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 325: Literal ::= BooleanLiteral // case 325: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 326: Literal ::= CharacterLiteral // case 326: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 327: Literal ::= StringLiteral // case 327: { polyglot.lex.StringLiteral a = string_lit(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), a.getValue())); break; } // // Rule 328: Literal ::= null // case 328: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 329: BooleanLiteral ::= true // case 329: break; // // Rule 330: BooleanLiteral ::= false // case 330: break; // // Rule 331: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt // case 331: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 332: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ClassBodyopt // case 332: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 333: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ClassBodyopt // case 333: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 334: ArgumentList ::= Expression // case 334: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 335: ArgumentList ::= ArgumentList , Expression // case 335: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 336: DimExprs ::= DimExpr // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: DimExprs ::= DimExprs DimExpr // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 338: DimExpr ::= [ Expression ] // case 338: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 339: Dims ::= [ ] // case 339: { btParser.setSym1(new Integer(1)); break; } // // Rule 340: Dims ::= Dims [ ] // case 340: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 341: FieldAccess ::= Primary . identifier // case 341: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 342: FieldAccess ::= super . identifier // case 342: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 343: FieldAccess ::= ClassName . super . identifier // case 343: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 344: MethodInvocation ::= MethodName ( ArgumentListopt ) // case 344: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 345: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) // case 345: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 346: MethodInvocation ::= super . identifier ( ArgumentListopt ) // case 346: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 347: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) // case 347: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 348: PostfixExpression ::= Primary // case 348: break; // // Rule 349: PostfixExpression ::= ExpressionName // case 349: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 350: PostfixExpression ::= PostIncrementExpression // case 350: break; // // Rule 351: PostfixExpression ::= PostDecrementExpression // case 351: break; // // Rule 352: PostIncrementExpression ::= PostfixExpression ++ // case 352: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 353: PostDecrementExpression ::= PostfixExpression -- // case 353: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 354: UnaryExpression ::= PreIncrementExpression // case 354: break; // // Rule 355: UnaryExpression ::= PreDecrementExpression // case 355: break; // // Rule 356: UnaryExpression ::= + UnaryExpression // case 356: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 357: UnaryExpression ::= - UnaryExpression // case 357: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 359: PreIncrementExpression ::= ++ UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 360: PreDecrementExpression ::= -- UnaryExpression // case 360: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 361: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 361: break; // // Rule 362: UnaryExpressionNotPlusMinus ::= ~ UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= ! UnaryExpression // case 363: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 365: MultiplicativeExpression ::= UnaryExpression // case 365: break; // // Rule 366: MultiplicativeExpression ::= MultiplicativeExpression * UnaryExpression // case 366: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 367: MultiplicativeExpression ::= MultiplicativeExpression / UnaryExpression // case 367: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression % UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 369: AdditiveExpression ::= MultiplicativeExpression // case 369: break; // // Rule 370: AdditiveExpression ::= AdditiveExpression + MultiplicativeExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 371: AdditiveExpression ::= AdditiveExpression - MultiplicativeExpression // case 371: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 372: ShiftExpression ::= AdditiveExpression // case 372: break; // // Rule 373: ShiftExpression ::= ShiftExpression << AdditiveExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 374: ShiftExpression ::= ShiftExpression > > AdditiveExpression // case 374: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 375: ShiftExpression ::= ShiftExpression > > > AdditiveExpression // case 375: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 376: RelationalExpression ::= ShiftExpression // case 376: break; // // Rule 377: RelationalExpression ::= RelationalExpression < ShiftExpression // case 377: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 378: RelationalExpression ::= RelationalExpression > ShiftExpression // case 378: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 379: RelationalExpression ::= RelationalExpression <= ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression > = ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 381: EqualityExpression ::= RelationalExpression // case 381: break; // // Rule 382: EqualityExpression ::= EqualityExpression == RelationalExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 383: EqualityExpression ::= EqualityExpression != RelationalExpression // case 383: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 384: AndExpression ::= EqualityExpression // case 384: break; // // Rule 385: AndExpression ::= AndExpression & EqualityExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 386: ExclusiveOrExpression ::= AndExpression // case 386: break; // // Rule 387: ExclusiveOrExpression ::= ExclusiveOrExpression ^ AndExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 388: InclusiveOrExpression ::= ExclusiveOrExpression // case 388: break; // // Rule 389: InclusiveOrExpression ::= InclusiveOrExpression | ExclusiveOrExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 390: ConditionalAndExpression ::= InclusiveOrExpression // case 390: break; // // Rule 391: ConditionalAndExpression ::= ConditionalAndExpression && InclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 392: ConditionalOrExpression ::= ConditionalAndExpression // case 392: break; // // Rule 393: ConditionalOrExpression ::= ConditionalOrExpression || ConditionalAndExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 394: ConditionalExpression ::= ConditionalOrExpression // case 394: break; // // Rule 395: ConditionalExpression ::= ConditionalOrExpression ? Expression : ConditionalExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 396: AssignmentExpression ::= ConditionalExpression // case 396: break; // // Rule 397: AssignmentExpression ::= Assignment // case 397: break; // // Rule 398: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 398: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 399: LeftHandSide ::= ExpressionName // case 399: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 400: LeftHandSide ::= FieldAccess // case 400: break; // // Rule 401: LeftHandSide ::= ArrayAccess // case 401: break; // // Rule 402: AssignmentOperator ::= = // case 402: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 403: AssignmentOperator ::= *= // case 403: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 404: AssignmentOperator ::= /= // case 404: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 405: AssignmentOperator ::= %= // case 405: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= += // case 406: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= -= // case 407: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= <<= // case 408: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= > > = // case 409: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= > > > = // case 410: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= &= // case 411: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= ^= // case 412: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= |= // case 413: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 414: Expression ::= AssignmentExpression // case 414: break; // // Rule 415: ConstantExpression ::= Expression // case 415: break; // // Rule 416: Dimsopt ::= $Empty // case 416: { btParser.setSym1(new Integer(0)); break; } // // Rule 417: Dimsopt ::= Dims // case 417: break; // // Rule 418: Catchesopt ::= $Empty // case 418: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 419: Catchesopt ::= Catches // case 419: break; // // Rule 420: identifieropt ::= $Empty // case 420: btParser.setSym1(null); break; // // Rule 421: identifieropt ::= identifier // case 421: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 422: ForUpdateopt ::= $Empty // case 422: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 423: ForUpdateopt ::= ForUpdate // case 423: break; // // Rule 424: Expressionopt ::= $Empty // case 424: btParser.setSym1(null); break; // // Rule 425: Expressionopt ::= Expression // case 425: break; // // Rule 426: ForInitopt ::= $Empty // case 426: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 427: ForInitopt ::= ForInit // case 427: break; // // Rule 428: SwitchLabelsopt ::= $Empty // case 428: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 429: SwitchLabelsopt ::= SwitchLabels // case 429: break; // // Rule 430: SwitchBlockStatementGroupsopt ::= $Empty // case 430: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 431: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 431: break; // // Rule 432: VariableModifiersopt ::= $Empty // case 432: { btParser.setSym1(Flags.NONE); break; } // // Rule 433: VariableModifiersopt ::= VariableModifiers // case 433: break; // // Rule 434: VariableInitializersopt ::= $Empty // case 434: btParser.setSym1(null); break; // // Rule 435: VariableInitializersopt ::= VariableInitializers // case 435: break; // // Rule 436: ElementValuesopt ::= $Empty // case 436: btParser.setSym1(null); break; // // Rule 437: ElementValuesopt ::= ElementValues // case 437: bad_rule = 437; break; // // Rule 438: ElementValuePairsopt ::= $Empty // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuePairsopt ::= ElementValuePairs // case 439: bad_rule = 439; break; // // Rule 440: DefaultValueopt ::= $Empty // case 440: btParser.setSym1(null); break; // // Rule 441: DefaultValueopt ::= DefaultValue // case 441: break; // // Rule 442: AnnotationTypeElementDeclarationsopt ::= $Empty // case 442: btParser.setSym1(null); break; // // Rule 443: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 443: bad_rule = 443; break; // // Rule 444: AbstractMethodModifiersopt ::= $Empty // case 444: { btParser.setSym1(Flags.NONE); break; } // // Rule 445: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 445: break; // // Rule 446: ConstantModifiersopt ::= $Empty // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: ConstantModifiersopt ::= ConstantModifiers // case 447: break; // // Rule 448: InterfaceMemberDeclarationsopt ::= $Empty // case 448: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 449: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 449: break; // // Rule 450: ExtendsInterfacesopt ::= $Empty // case 450: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 451: ExtendsInterfacesopt ::= ExtendsInterfaces // case 451: break; // // Rule 452: InterfaceModifiersopt ::= $Empty // case 452: { btParser.setSym1(Flags.NONE); break; } // // Rule 453: InterfaceModifiersopt ::= InterfaceModifiers // case 453: break; // // Rule 454: ClassBodyopt ::= $Empty // case 454: btParser.setSym1(null); break; // // Rule 455: ClassBodyopt ::= ClassBody // case 455: break; // // Rule 456: Argumentsopt ::= $Empty // case 456: btParser.setSym1(null); break; // // Rule 457: Argumentsopt ::= Arguments // case 457: bad_rule = 457; break; // // Rule 458: EnumBodyDeclarationsopt ::= $Empty // case 458: btParser.setSym1(null); break; // // Rule 459: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 459: bad_rule = 459; break; // // Rule 460: ,opt ::= $Empty // case 460: btParser.setSym1(null); break; // // Rule 461: ,opt ::= , // case 461: break; // // Rule 462: EnumConstantsopt ::= $Empty // case 462: btParser.setSym1(null); break; // // Rule 463: EnumConstantsopt ::= EnumConstants // case 463: bad_rule = 463; break; // // Rule 464: ArgumentListopt ::= $Empty // case 464: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 465: ArgumentListopt ::= ArgumentList // case 465: break; // // Rule 466: BlockStatementsopt ::= $Empty // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 467: BlockStatementsopt ::= BlockStatements // case 467: break; // // Rule 468: ExplicitConstructorInvocationopt ::= $Empty // case 468: btParser.setSym1(null); break; // // Rule 469: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 469: break; // // Rule 470: ConstructorModifiersopt ::= $Empty // case 470: { btParser.setSym1(Flags.NONE); break; } // // Rule 471: ConstructorModifiersopt ::= ConstructorModifiers // case 471: break; // // Rule 472: ...opt ::= $Empty // case 472: btParser.setSym1(null); break; // // Rule 473: ...opt ::= ... // case 473: break; // // Rule 474: FormalParameterListopt ::= $Empty // case 474: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 475: FormalParameterListopt ::= FormalParameterList // case 475: break; // // Rule 476: Throwsopt ::= $Empty // case 476: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 477: Throwsopt ::= Throws // case 477: break; // // Rule 478: MethodModifiersopt ::= $Empty // case 478: { btParser.setSym1(Flags.NONE); break; } // // Rule 479: MethodModifiersopt ::= MethodModifiers // case 479: break; // // Rule 480: FieldModifiersopt ::= $Empty // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: FieldModifiersopt ::= FieldModifiers // case 481: break; // // Rule 482: ClassBodyDeclarationsopt ::= $Empty // case 482: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 483: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 483: break; // // Rule 484: Interfacesopt ::= $Empty // case 484: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 485: Interfacesopt ::= Interfaces // case 485: break; // // Rule 486: Superopt ::= $Empty // case 486: btParser.setSym1(null); break; // // Rule 487: Superopt ::= Super // case 487: break; // // Rule 488: TypeParametersopt ::= $Empty // case 488: btParser.setSym1(null); break; // // Rule 489: TypeParametersopt ::= TypeParameters // case 489: break; // // Rule 490: ClassModifiersopt ::= $Empty // case 490: { btParser.setSym1(Flags.NONE); break; } // // Rule 491: ClassModifiersopt ::= ClassModifiers // case 491: break; // // Rule 492: Annotationsopt ::= $Empty // case 492: btParser.setSym1(null); break; // // Rule 493: Annotationsopt ::= Annotations // case 493: bad_rule = 493; break; // // Rule 494: TypeDeclarationsopt ::= $Empty // case 494: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 495: TypeDeclarationsopt ::= TypeDeclarations // case 495: break; // // Rule 496: ImportDeclarationsopt ::= $Empty // case 496: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 497: ImportDeclarationsopt ::= ImportDeclarations // case 497: break; // // Rule 498: PackageDeclarationopt ::= $Empty // case 498: btParser.setSym1(null); break; // // Rule 499: PackageDeclarationopt ::= PackageDeclaration // case 499: break; // // Rule 500: WildcardBoundsOpt ::= $Empty // case 500: btParser.setSym1(null); break; // // Rule 501: WildcardBoundsOpt ::= WildcardBounds // case 501: bad_rule = 501; break; // // Rule 502: AdditionalBoundListopt ::= $Empty // case 502: btParser.setSym1(null); break; // // Rule 503: AdditionalBoundListopt ::= AdditionalBoundList // case 503: bad_rule = 503; break; // // Rule 504: TypeBoundopt ::= $Empty // case 504: btParser.setSym1(null); break; // // Rule 505: TypeBoundopt ::= TypeBound // case 505: bad_rule = 505; break; // // Rule 506: TypeArgumentsopt ::= $Empty // case 506: btParser.setSym1(null); break; // // Rule 507: TypeArgumentsopt ::= TypeArguments // case 507: bad_rule = 507; break; // // Rule 508: Type ::= DataType PlaceTypeSpecifieropt // case 508: { // Just parse the placetype and drop it for now. break; } // // Rule 509: Type ::= nullable < Type > // case 509: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 510: Type ::= future < Type > // case 510: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 511: DataType ::= PrimitiveType // case 511: break; // // Rule 512: DataType ::= ClassOrInterfaceType // case 512: break; // // Rule 513: DataType ::= ArrayType // case 513: break; // // Rule 514: PlaceTypeSpecifier ::= @ PlaceType // case 514: break; // // Rule 515: PlaceType ::= place // case 515: break; // // Rule 516: PlaceType ::= activity // case 516: break; // // Rule 517: PlaceType ::= method // case 517: break; // // Rule 518: PlaceType ::= current // case 518: break; // // Rule 519: PlaceType ::= PlaceExpression // case 519: break; // // Rule 520: ClassOrInterfaceType ::= TypeName DepParametersopt // case 520: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(b == null ? t : nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 521: DepParameters ::= ( DepParameterExpr ) // case 521: break; // // Rule 522: DepParameterExpr ::= ArgumentList WhereClauseopt // case 522: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 523: DepParameterExpr ::= WhereClause // case 523: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 524: WhereClause ::= : Expression // case 524: break; // // Rule 526: X10ArrayType ::= Type [ . ] // case 526: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 527: X10ArrayType ::= Type reference [ . ] // case 527: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 528: X10ArrayType ::= Type value [ . ] // case 528: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 529: X10ArrayType ::= Type [ DepParameterExpr ] // case 529: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 530: X10ArrayType ::= Type reference [ DepParameterExpr ] // case 530: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 531: X10ArrayType ::= Type value [ DepParameterExpr ] // case 531: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 532: ObjectKind ::= value // case 532: bad_rule = 532; break; // // Rule 533: ObjectKind ::= reference // case 533: bad_rule = 533; break; // // Rule 534: MethodModifier ::= atomic // case 534: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 535: MethodModifier ::= extern // case 535: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 536: ClassDeclaration ::= ValueClassDeclaration // case 536: break; // // Rule 537: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 537: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 538: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 538: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 539: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ ] ArrayInitializer // case 539: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 540: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] // case 540: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 541: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] Expression // case 541: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); Expr initializer = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 542: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt [ Expression ] ( FormalParameter ) MethodBody // case 542: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr distr = (Expr) btParser.getSym(5); X10Formal f = (X10Formal) btParser.getSym(8); Block body = (Block) btParser.getSym(10); New initializer = makeInitializer( pos(btParser.getFirstToken(7), btParser.getLastToken(10)), a, f, body ); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, distr, initializer)); break; } // // Rule 543: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] // case 543: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(6); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 544: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt [ Expression ] Expression // case 544: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(4) != null); Expr c = (Expr) btParser.getSym(6); Expr d = (Expr) btParser.getSym(8); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 545: X10ArrayInitializer ::= Expression // case 545: break; // Sigh this is not trivial to do just yet :-( // // Rule 546: X10ArrayInitializer ::= ( FormalParameter ) MethodBody // case 546: bad_rule = 546; break; // // Rule 547: ArrayBaseType ::= PrimitiveType // case 547: break; // // Rule 548: ArrayBaseType ::= ClassOrInterfaceType // case 548: break; // // Rule 549: ArrayAccess ::= ExpressionName [ ArgumentList ] // case 549: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 550: ArrayAccess ::= PrimaryNoNewArray [ ArgumentList ] // case 550: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 551: Statement ::= NowStatement // case 551: break; // // Rule 552: Statement ::= ClockedStatement // case 552: break; // // Rule 553: Statement ::= AsyncStatement // case 553: break; // // Rule 554: Statement ::= AtomicStatement // case 554: break; // // Rule 555: Statement ::= WhenStatement // case 555: break; // // Rule 556: Statement ::= ForEachStatement // case 556: break; // // Rule 557: Statement ::= AtEachStatement // case 557: break; // // Rule 558: Statement ::= FinishStatement // case 558: break; // // Rule 559: StatementWithoutTrailingSubstatement ::= NextStatement // case 559: break; // // Rule 560: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 560: break; // // Rule 561: StatementNoShortIf ::= NowStatementNoShortIf // case 561: break; // // Rule 562: StatementNoShortIf ::= ClockedStatementNoShortIf // case 562: break; // // Rule 563: StatementNoShortIf ::= AsyncStatementNoShortIf // case 563: break; // // Rule 564: StatementNoShortIf ::= AtomicStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= WhenStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= ForEachStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtEachStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= FinishStatementNoShortIf // case 568: break; // // Rule 569: NowStatement ::= now ( Clock ) Statement // case 569: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 570: ClockedStatement ::= clocked ( ClockList ) Statement // case 570: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 571: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 571: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 572: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 572: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 573: WhenStatement ::= when ( Expression ) Statement // case 573: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 574: WhenStatement ::= WhenStatement or ( Expression ) Statement // case 574: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 575: ForEachStatement ::= foreach ( FormalParameter : Expression ) Statement // case 575: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 576: AtEachStatement ::= ateach ( FormalParameter : Expression ) Statement // case 576: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 577: EnhancedForStatement ::= for ( FormalParameter : Expression ) Statement // case 577: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 578: FinishStatement ::= finish Statement // case 578: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 579: NowStatementNoShortIf ::= now ( Clock ) StatementNoShortIf // case 579: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 580: ClockedStatementNoShortIf ::= clocked ( ClockList ) StatementNoShortIf // case 580: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 581: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 581: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 582: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 582: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 583: WhenStatementNoShortIf ::= when ( Expression ) StatementNoShortIf // case 583: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 584: WhenStatementNoShortIf ::= WhenStatement or ( Expression ) StatementNoShortIf // case 584: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); When.Branch wb = nf.WhenBranch(pos(btParser.getFirstToken(2), btParser.getLastToken(6)), e, s); w.add(wb); btParser.setSym1(w); break; } // // Rule 585: ForEachStatementNoShortIf ::= foreach ( FormalParameter : Expression ) StatementNoShortIf // case 585: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 586: AtEachStatementNoShortIf ::= ateach ( FormalParameter : Expression ) StatementNoShortIf // case 586: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 587: EnhancedForStatementNoShortIf ::= for ( FormalParameter : Expression ) StatementNoShortIf // case 587: { X10Formal f = (X10Formal) btParser.getSym(3); Formal ff = f.flags(f.flags().Final()); // make it final Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), ff, e, f.hasExplodedVars() ? nf.Block(pos(), f.explode(s)) : s); btParser.setSym1(x); break; } // // Rule 588: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 588: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 589: PlaceExpressionSingleList ::= ( PlaceExpression ) // case 589: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 590: PlaceExpression ::= here // case 590: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 591: PlaceExpression ::= this // case 591: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 592: PlaceExpression ::= Expression // case 592: break; // // Rule 593: PlaceExpression ::= ArrayAccess // case 593: bad_rule = 593; break; // // Rule 594: NextStatement ::= next ; // case 594: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 595: AwaitStatement ::= await Expression ; // case 595: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 596: ClockList ::= Clock // case 596: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 597: ClockList ::= ClockList , Clock // case 597: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 598: Clock ::= identifier // case 598: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 599: CastExpression ::= ( Type ) UnaryExpressionNotPlusMinus // case 599: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 600: MethodInvocation ::= Primary -> identifier ( ArgumentListopt ) // case 600: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 601: RelationalExpression ::= RelationalExpression instanceof Type // case 601: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 602: ExpressionName ::= here // case 602: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return ((X10NodeFactory) nf).Here(pos); } }); break; } // // Rule 603: IdentifierList ::= IdentifierList , identifier // case 603: { List l = (List) btParser.getSym(1); polyglot.lex.Identifier a = id(btParser.getToken(3)); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 604: IdentifierList ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); List l = new TypedList(new LinkedList(), Name.class, false); l.add(new Name(nf, ts, pos(), a.getIdentifier())); btParser.setSym1(l); break; } // // Rule 605: Primary ::= FutureExpression // case 605: break; // // Rule 606: Primary ::= [ ArgumentList ] // case 606: { Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); Name x10LangPoint = new Name(nf, ts, pos(), x10Lang, "point"); Name x10LangPointFactory = new Name(nf, ts, pos(), x10LangPoint, "factory"); Name x10LangPointFactoryPoint = new Name(nf, ts, pos(), x10LangPointFactory, "point"); List a = (List) btParser.getSym(2); Tuple tuple = nf.Tuple(pos(), x10LangPointFactoryPoint, x10LangRegionFactoryRegion, a); btParser.setSym1(tuple); break; } // // Rule 607: AssignmentExpression ::= Expression -> Expression // case 607: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); //System.out.println("Distribution:" + a + "|" + b + "|"); // x10.lang.region.factory.region( ArgumentList ) // Construct the MethodName Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangDistribution = new Name(nf, ts, pos(), x10Lang, "distribution"); Name x10LangDistributionFactory = new Name(nf, ts, pos(), x10LangDistribution, "factory"); Name x10LangDistributionFactoryConstant = new Name(nf, ts, pos(), x10LangDistributionFactory, "constant"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call call = nf.Call(pos(), x10LangDistributionFactoryConstant.prefix.toReceiver(), "constant", l); btParser.setSym1(call); break; } // // Rule 608: Primary ::= Expression : Expression // case 608: { Expr a = (Expr) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); Name x10 = new Name(nf, ts, pos(), "x10"); Name x10Lang = new Name(nf, ts, pos(), x10, "lang"); Name x10LangRegion = new Name(nf, ts, pos(), x10Lang, "region"); Name x10LangRegionFactory = new Name(nf, ts, pos(), x10LangRegion, "factory"); Name x10LangRegionFactoryRegion = new Name(nf, ts, pos(), x10LangRegionFactory, "region"); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(a); l.add(b); Call regionCall = nf.Call( pos(), x10LangRegionFactoryRegion.prefix.toReceiver(), "region", l ); btParser.setSym1(regionCall); break; } // // Rule 609: FutureExpression ::= future PlaceExpressionSingleListopt { Expression } // case 609: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 610: FieldModifier ::= mutable // case 610: { btParser.setSym1(Flags.MUTABLE); break; } // // Rule 611: FieldModifier ::= const // case 611: { btParser.setSym1(Flags.PUBLIC.set(Flags.STATIC).set(Flags.FINAL)); break; } // // Rule 612: FunExpression ::= fun Type ( FormalParameterListopt ) { Expression } // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName ( ArgumentListopt ) ( ArgumentListopt ) // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName . super . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName . identifier ( ArgumentListopt ) ( ArgumentListopt ) // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName . new identifier ( ArgumentListopt ) ( ArgumentListopt ) ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= $Empty // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= $Empty // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= $Empty // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= $Empty // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= $Empty // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: PlaceExpressionSingleListopt ::= $Empty // case 631: btParser.setSym1(null); break; // // Rule 632: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 632: break; // // Rule 633: ArgumentListopt ::= $Empty // case 633: btParser.setSym1(null); break; // // Rule 634: ArgumentListopt ::= ArgumentList // case 634: break; // // Rule 635: DepParametersopt ::= $Empty // case 635: btParser.setSym1(null); break; // // Rule 636: DepParametersopt ::= DepParameters // case 636: break; // // Rule 637: Unsafeopt ::= $Empty // case 637: btParser.setSym1(null); break; // // Rule 638: Unsafeopt ::= unsafe // case 638: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } // // Rule 639: ParamIdopt ::= $Empty // case 639: btParser.setSym1(null); break; // // Rule 640: ParamIdopt ::= identifier // case 640: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/0c6c148f7be6e4cc0e87c12a307232047c894d1b/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 2756, 493, 33, 26765, 5411, 368, 5411, 648, 404, 30, 288, 377, 309, 261, 683, 87, 1228, 18, 588, 5677, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 480, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 16606, 540, 597, 261, 4820, 18, 13139, 67, 6006, 2932, 4288, 3113, 576, 20349, 288, 540, 8706, 18, 6006, 12, 22, 10837, 2678, 7005, 310, 4932, 315, 397, 15604, 846, 87, 1228, 18, 17994, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 15604, 315, 622, 315, 397, 15604, 846, 87, 1228, 18, 588, 1670, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 15604, 6153, 397, 15604, 846, 87, 1228, 18, 588, 1494, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 397, 15604, 315, 1368, 392, 2756, 8863, 1377, 289, 7734, 898, 31, 5411, 289, 1171, 368, 5411, 368, 6781, 576, 30, 225, 14488, 559, 493, 33, 16980, 559, 5411, 368, 5411, 648, 576, 30, 7734, 898, 31, 2398, 368, 5411, 368, 6781, 890, 30, 225, 14488, 559, 493, 33, 1250, 5411, 368, 5411, 648, 890, 30, 288, 7734, 10921, 2678, 18, 542, 11901, 21, 12, 82, 74, 18, 15512, 559, 907, 12, 917, 9334, 3742, 18, 5507, 1435, 10019, 7734, 898, 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, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, 6781, 404, 30, 225, 2756, 493, 33, 26765, 5411, 368, 5411, 648, 404, 30, 288, 377, 309, 261, 683, 87, 1228, 18, 588, 5677, 12, 23602, 2678, 18, 588, 1345, 12, 21, 3719, 480, 1139, 2163, 26954, 2942, 18, 56, 47, 67, 16606, 540, 597, 261, 4820, 18, 13139, 67, 6006, 2932, 4288, 3113, 576, 20349, 288, 540, 8706, 18, 6006, 12, 22, 10837, 2678, 7005, 310, 4932, 315, 397, 15604, 846, 87, 1228, 18, 17994, 12, 23602, 2678, 18, 588, 1345, 12, 2 ]
return comparer; }
return comparer; }
public IElementComparer getComparer() { return comparer; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/dc85f0b1334fe6aa79c5c32e8024d573af99e0d2/StructuredViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 467, 1046, 799, 21804, 336, 799, 21804, 1435, 288, 3639, 327, 532, 21804, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 467, 1046, 799, 21804, 336, 799, 21804, 1435, 288, 3639, 327, 532, 21804, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public ArrayList getOperationOutPhases() {
public ArrayList getOperationOutPhases() throws DeploymentException {
public ArrayList getOperationOutPhases() { ArrayList oprationOUTPhases = new ArrayList(); for (int i = 0; i < OUTPhases.size(); i++) { String phaseName = (String) OUTPhases.get(i); if (PhaseMetadata.PHASE_TRANSPORT_OUT.equals(phaseName)) { } else { oprationOUTPhases.add(new Phase(phaseName)); } } oprationOUTPhases.add(new Phase(PhaseMetadata.PHASE_POLICY_DETERMINATION)); oprationOUTPhases.add(new Phase(PhaseMetadata.PHASE_MESSAGE_OUT)); return oprationOUTPhases; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/82a9d67c04aa32c5051b5f1e651b821947a0c7ec/PhasesInfo.java/clean/modules/core/src/org/apache/axis2/deployment/util/PhasesInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2407, 21162, 1182, 3731, 3304, 1435, 1216, 8587, 503, 288, 3639, 2407, 320, 683, 367, 5069, 3731, 3304, 273, 394, 2407, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 8210, 3731, 3304, 18, 1467, 5621, 277, 27245, 288, 5411, 514, 6855, 461, 273, 261, 780, 13, 8210, 3731, 3304, 18, 588, 12, 77, 1769, 5411, 309, 261, 11406, 2277, 18, 8939, 4429, 67, 8989, 31943, 67, 5069, 18, 14963, 12, 13961, 461, 3719, 288, 5411, 289, 469, 288, 7734, 320, 683, 367, 5069, 3731, 3304, 18, 1289, 12, 2704, 19459, 12, 13961, 461, 10019, 5411, 289, 3639, 289, 3639, 320, 683, 367, 5069, 3731, 3304, 18, 1289, 12, 2704, 19459, 12, 11406, 2277, 18, 8939, 4429, 67, 26366, 67, 40, 1584, 654, 6236, 2689, 10019, 3639, 320, 683, 367, 5069, 3731, 3304, 18, 1289, 12, 2704, 19459, 12, 11406, 2277, 18, 8939, 4429, 67, 8723, 67, 5069, 10019, 3639, 327, 320, 683, 367, 5069, 3731, 3304, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2407, 21162, 1182, 3731, 3304, 1435, 1216, 8587, 503, 288, 3639, 2407, 320, 683, 367, 5069, 3731, 3304, 273, 394, 2407, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 8210, 3731, 3304, 18, 1467, 5621, 277, 27245, 288, 5411, 514, 6855, 461, 273, 261, 780, 13, 8210, 3731, 3304, 18, 588, 12, 77, 1769, 5411, 309, 261, 11406, 2277, 18, 8939, 4429, 67, 8989, 31943, 67, 5069, 18, 14963, 12, 13961, 461, 3719, 288, 5411, 289, 469, 288, 7734, 320, 683, 367, 5069, 3731, 3304, 18, 1289, 12, 2704, 19459, 12, 13961, 461, 10019, 5411, 289, 3639, 289, 3639, 320, 683, 367, 5069, 3731, 3304, 18, 1289, 12, 2704, 19459, 12, 11406, 2277, 18, 2 ]
IWorkbenchWindow windows[] = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { IWorkbenchPage pages[] = windows[i].getPages(); for (int j = 0; j < pages.length; j++) { isClosing = isClosing && pages[j].closeAllEditors(false); } } }
IWorkbenchWindow windows[] = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { IWorkbenchPage pages[] = windows[i].getPages(); for (int j = 0; j < pages.length; j++) { isClosing = isClosing && pages[j].closeAllEditors(false); } } }
public void run() { IWorkbenchWindow windows[] = getWorkbenchWindows(); for (int i = 0; i < windows.length; i++) { IWorkbenchPage pages[] = windows[i].getPages(); for (int j = 0; j < pages.length; j++) { isClosing = isClosing && pages[j].closeAllEditors(false); } } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9337b828e86179850647141c34d497be28275ed2/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 10792, 467, 2421, 22144, 3829, 9965, 8526, 273, 29026, 22144, 10399, 5621, 10792, 364, 261, 474, 277, 273, 374, 31, 277, 411, 9965, 18, 2469, 31, 277, 27245, 288, 13491, 467, 2421, 22144, 1964, 4689, 8526, 273, 9965, 63, 77, 8009, 588, 5716, 5621, 13491, 364, 261, 474, 525, 273, 374, 31, 525, 411, 4689, 18, 2469, 31, 525, 27245, 288, 18701, 353, 15745, 273, 353, 15745, 4766, 565, 597, 4689, 63, 78, 8009, 4412, 1595, 4666, 1383, 12, 5743, 1769, 13491, 289, 10792, 289, 7734, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 10792, 467, 2421, 22144, 3829, 9965, 8526, 273, 29026, 22144, 10399, 5621, 10792, 364, 261, 474, 277, 273, 374, 31, 277, 411, 9965, 18, 2469, 31, 277, 27245, 288, 13491, 467, 2421, 22144, 1964, 4689, 8526, 273, 9965, 63, 77, 8009, 588, 5716, 5621, 13491, 364, 261, 474, 525, 273, 374, 31, 525, 411, 4689, 18, 2469, 31, 525, 27245, 288, 18701, 353, 15745, 273, 353, 15745, 4766, 565, 597, 4689, 63, 78, 8009, 4412, 1595, 4666, 1383, 12, 5743, 1769, 13491, 289, 10792, 289, 7734, 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 ]
protected static String generateDocumentFromReport( HttpServletRequest request )
protected static String generateDocumentFromReport( HttpServletRequest request )
protected static String generateDocumentFromReport( HttpServletRequest request ) { String fileName = getReport( request ); if ( fileName.indexOf( '.' ) >= 0 ) { fileName = fileName.substring( 0, fileName.lastIndexOf( '.' ) ) + SUFFIX_REPORT_DOCUMENT; } else { fileName = fileName + SUFFIX_REPORT_DOCUMENT; } return fileName; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/5c8dd96b2b7249db362e597132210258101979a5/ParameterAccessor.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 514, 2103, 2519, 1265, 4820, 12, 9984, 590, 262, 202, 95, 202, 202, 780, 3968, 273, 22452, 12, 590, 11272, 202, 202, 430, 261, 3968, 18, 31806, 12, 2611, 262, 1545, 374, 262, 202, 202, 95, 1082, 202, 17812, 273, 3968, 18, 28023, 12, 374, 16, 3968, 18, 2722, 31985, 12, 2611, 262, 262, 6862, 202, 15, 11726, 13144, 67, 22710, 67, 18450, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 17812, 273, 3968, 397, 11726, 13144, 67, 22710, 67, 18450, 31, 202, 202, 97, 202, 202, 2463, 3968, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 514, 2103, 2519, 1265, 4820, 12, 9984, 590, 262, 202, 95, 202, 202, 780, 3968, 273, 22452, 12, 590, 11272, 202, 202, 430, 261, 3968, 18, 31806, 12, 2611, 262, 1545, 374, 262, 202, 202, 95, 1082, 202, 17812, 273, 3968, 18, 28023, 12, 374, 16, 3968, 18, 2722, 31985, 12, 2611, 262, 262, 6862, 202, 15, 11726, 13144, 67, 22710, 67, 18450, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 17812, 273, 3968, 397, 11726, 13144, 67, 22710, 67, 18450, 31, 202, 202, 97, 202, 202, 2463, 3968, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if(pathIndex >= path.size()) continue; nextState = (NFAState)path.get(pathIndex); if(t.target.stateNumber == nextState.stateNumber) {
if(pathIndex >= path.size()) {
public void addPath(List path, boolean disabled, Map skippedStates) { List elements = new ArrayList(); /** path contains a list of NFAState states (from ANTLR): they represent * all the states along the path. The graphical representation of the NFA/SD * does not necessarily contains all the states of the path because the representation * can be simplified to remove all unecessary states. * The problem here is to use the information stored in the transition of the * graphical representation to figure out exactly which graphical node corresponds * to the path. */ /*System.out.println("***"); for (Iterator iterator = path.iterator(); iterator.hasNext();) { NFAState state = (NFAState)iterator.next(); System.out.println(state+" - "+state.getEnclosingRule()); } */ NFAState state; GNode node; NFAState nextState = null; GNode nextNode = null; for(pathIndex = 0; pathIndex < path.size(); pathIndex++) { if(pathIndex == 0) { nextState = (NFAState)path.get(pathIndex); nextNode = findNodeForStateNumber(nextState.stateNumber); if(nextNode == null) { // A path can start from anywhere in the graph. It might happen // that the starting state of the path has been skipped by // the optimization in FAFactory. We use the skippedStates mapping // to find out what is the parent state of the skipped state. FAState parentState = (FAState) skippedStates.get(new Integer(nextState.stateNumber)); if(parentState == null) { System.err.println("[GGraphGroup] Starting path state "+nextState.stateNumber+"["+nextState.getEnclosingRule()+"] cannot be found in the graph"); return; } else { nextNode = findNodeForStateNumber(parentState.stateNumber); } } continue; } else { state = nextState; node = nextNode; } nextState = (NFAState)path.get(pathIndex); nextNode = findNodeForStateNumber(nextState.stateNumber); GNode externalNode = null; if(nextNode == null) { // The state has probably been skipped during the graphical rendering. // Find the next non-skipped state. FATransition t = getNodeTransitionToNextNonSkippedState(node, path); if(t == null) { // No transition found. Look in the skipped states mapping because // it might be possible that the next state is in another rule but // cannot be found because it has been skipped. FAState parentState = (FAState) skippedStates.get(new Integer(nextState.stateNumber)); if(parentState == null) { // OK. The node really does not exist. Continue by skipping it. nextNode = node; continue; } else { nextNode = findNodeForStateNumber(parentState.stateNumber); } } else { // pathIndex can be out of range because getNodeTransitionToNextNonSkippedState() // is incrementing it if(pathIndex >= path.size()) continue; nextState = (NFAState)path.get(pathIndex); if(t.target.stateNumber == nextState.stateNumber) { nextNode = findNodeForStateNumber(t.target.stateNumber); } else { // The only case that the target state of the transition if not // the next state of the path is when the next state of the path // is in another rule. In this case, the target state of the transition // will contain a negative state number indicating an external rule reference: // this external rule reference is added by AW during rendering and is not // part of any ANTLR NFA. // This node is the node representing the external rule reference // before jumping outside of the rule externalNode = findNodeForStateNumber(t.target.stateNumber); // This node is the first node in the other rule nextNode = findNodeForStateNumber(nextState.stateNumber); } } } if(state == null || node == null || nextNode == null) continue; if(state.getEnclosingRule().equals(nextState.getEnclosingRule())) addNextElementInSameRule(elements, node, nextNode, nextState); else addNextElementInOtherRule(elements, node, externalNode, nextNode, nextState); } if(nextNode != null) elements.add(GPathElement.createElement(nextNode)); pathGroup.addPath(new GPath(elements, disabled)); }
51505 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51505/a9bc47322d1939bfaf2495b323b937058358135e/GGraphGroup.java/buggy/src/org/antlr/works/visualization/graphics/graph/GGraphGroup.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 25505, 12, 682, 589, 16, 1250, 5673, 16, 1635, 9700, 7629, 13, 288, 3639, 987, 2186, 273, 394, 2407, 5621, 3639, 1783, 589, 1914, 279, 666, 434, 423, 2046, 1119, 5493, 261, 2080, 27274, 16018, 4672, 2898, 2406, 540, 380, 777, 326, 5493, 7563, 326, 589, 18, 1021, 2667, 1706, 4335, 434, 326, 423, 2046, 19, 9903, 540, 380, 1552, 486, 23848, 1914, 777, 326, 5493, 434, 326, 589, 2724, 326, 4335, 540, 380, 848, 506, 20482, 358, 1206, 777, 640, 4128, 5493, 18, 540, 380, 1021, 6199, 2674, 353, 358, 999, 326, 1779, 4041, 316, 326, 6007, 434, 326, 540, 380, 2667, 1706, 4335, 358, 7837, 596, 8950, 1492, 2667, 1706, 756, 13955, 540, 380, 358, 326, 589, 18, 540, 1195, 3639, 1748, 3163, 18, 659, 18, 8222, 2932, 636, 7388, 1769, 3639, 364, 261, 3198, 2775, 273, 589, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 288, 5411, 423, 2046, 1119, 919, 273, 261, 50, 2046, 1119, 13, 9838, 18, 4285, 5621, 5411, 2332, 18, 659, 18, 8222, 12, 2019, 9078, 300, 13773, 2019, 18, 588, 21594, 2175, 10663, 3639, 289, 1195, 3639, 423, 2046, 1119, 919, 31, 3639, 611, 907, 756, 31, 3639, 423, 2046, 1119, 25509, 273, 446, 31, 3639, 611, 907, 22858, 273, 446, 31, 3639, 364, 12, 803, 1016, 273, 374, 31, 589, 1016, 411, 589, 18, 1467, 5621, 589, 1016, 27245, 288, 5411, 309, 12, 803, 1016, 422, 374, 13, 288, 7734, 25509, 273, 261, 50, 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, 25505, 12, 682, 589, 16, 1250, 5673, 16, 1635, 9700, 7629, 13, 288, 3639, 987, 2186, 273, 394, 2407, 5621, 3639, 1783, 589, 1914, 279, 666, 434, 423, 2046, 1119, 5493, 261, 2080, 27274, 16018, 4672, 2898, 2406, 540, 380, 777, 326, 5493, 7563, 326, 589, 18, 1021, 2667, 1706, 4335, 434, 326, 423, 2046, 19, 9903, 540, 380, 1552, 486, 23848, 1914, 777, 326, 5493, 434, 326, 589, 2724, 326, 4335, 540, 380, 848, 506, 20482, 358, 1206, 777, 640, 4128, 5493, 18, 540, 380, 1021, 6199, 2674, 353, 358, 999, 326, 1779, 4041, 316, 326, 6007, 434, 326, 540, 380, 2667, 1706, 4335, 358, 7837, 596, 8950, 1492, 2667, 1706, 756, 13955, 540, 380, 2 ]
AST tmp878_AST_in = (AST)_t;
AST tmp877_AST_in = (AST)_t;
public final void createbrowsestate(AST _t) throws RecognitionException { AST createbrowsestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t306 = _t; AST tmp876_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); AST tmp877_AST_in = (AST)_t; match(_t,BROWSE); _t = _t.getNextSibling(); fld(_t,CQ.UPDATING); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t308 = _t; AST tmp878_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp879_AST_in = (AST)_t; match(_t,WIDGETPOOL); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t308; _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASSIGN: case NOERROR_KW: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp880_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASSIGN: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ASSIGN: { assign_opt(_t); _t = _retTree; break; } case EOF: case PERIOD: case TRIGGERS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRIGGERS: { triggerphrase(_t); _t = _retTree; break; } case EOF: case PERIOD: { break; } default: { throw new NoViableAltException(_t); } } } state_end(_t); _t = _retTree; _t = __t306; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/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, 752, 70, 3870, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 70, 3870, 395, 340, 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, 29490, 273, 389, 88, 31, 202, 202, 9053, 1853, 28, 6669, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 9344, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 28, 4700, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 38, 11226, 1090, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 19794, 24899, 88, 16, 39, 53, 18, 3079, 11102, 1360, 1769, 202, 202, 67, 88, 273, 389, 1349, 2471, 31, 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, 2120, 67, 30134, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 5082, 28, 273, 389, 88, 31, 1082, 202, 9053, 1853, 28, 8285, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 706, 67, 30134, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 9053, 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, 752, 70, 3870, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 752, 70, 3870, 395, 340, 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, 29490, 273, 389, 88, 31, 202, 202, 9053, 1853, 28, 6669, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 9344, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 28, 4700, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 38, 11226, 2 ]
while(this.returnValue == -1) {
while (this.returnValue == -1) {
void interrupted(Context cx) { synchronized(swingMonitor) { if(java.awt.EventQueue.isDispatchThread()) { dispatcherIsWaiting++; if(nonDispatcherWaiting) { // Another thread is stopped in the debugger // process events until it resumes and we // can enter java.awt.EventQueue eventQ = java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue(); while(nonDispatcherWaiting) { try { AWTEvent event = eventQ.getNextEvent(); if(event instanceof ActiveEvent) { ((ActiveEvent)event).dispatch(); } else { Object source = event.getSource(); if(source instanceof Component) { Component comp = (Component)source; // Suppress Window/InputEvent's that aren't // directed to the Debugger // if(!(event instanceof InputEvent || //event instanceof WindowEvent)|| //shouldDispatchTo(comp)) { comp.dispatchEvent(event); //} } else if(source instanceof MenuComponent) { ((MenuComponent)source).dispatchEvent(event); } } if(this.returnValue == EXIT) { return; } swingMonitor.wait(1); } catch(InterruptedException exc) { return; } } } } else { while(isInterrupted || dispatcherIsWaiting > 0) { try { swingMonitor.wait(); } catch(InterruptedException exc) { return; } } nonDispatcherWaiting = true; } isInterrupted = true; } do { currentContext = cx; DebuggableEngine engine = cx.getDebuggableEngine(); Thread thread = Thread.currentThread(); statusBar.setText("Thread: " + thread.toString()); ThreadState state = (ThreadState)threadState.get(thread); int stopAtFrameDepth = -1; if(state != null) { stopAtFrameDepth = state.stopAtFrameDepth; } if(runToCursorFile != null && thread == runToCursorThread) { int frameCount = engine.getFrameCount(); if(frameCount > 0) { DebugFrame frame = engine.getFrame(0); String sourceName = frame.getSourceName(); if(sourceName != null) { if(sourceName.equals(runToCursorFile)) { int lineNumber = frame.getLineNumber(); if(lineNumber == runToCursorLine) { stopAtFrameDepth = -1; runToCursorFile = null; } else { FileWindow w = getFileWindow(sourceName); if(w == null || !w.isBreakPoint(lineNumber)) { return; } else { runToCursorFile = null; } } } } } else { } } if(stopAtFrameDepth > 0) { if (engine.getFrameCount() > stopAtFrameDepth) { break; } } if(state != null) { state.stopAtFrameDepth = -1; } threadState.remove(thread); int frameCount = engine.getFrameCount(); this.frameIndex = frameCount -1; int line = 0; if(frameCount == 0) { break; } DebugFrame frame = engine.getFrame(0); String fileName = frame.getSourceName(); engine.setBreakNextLine(false); line = frame.getLineNumber(); int enterCount = 0; boolean isDispatchThread = java.awt.EventQueue.isDispatchThread(); if(!isDispatchThread) { // detach cx from its thread so the debugger (in the awt // dispatcher thread) can enter it if necessary cx.exit(); while(Context.getCurrentContext() != null) { Context.exit(); enterCount++; } } if(fileName != null && !fileName.equals("<stdin>")) { FileWindow w = (FileWindow)getFileWindow(fileName); if(w != null) { SetFilePosition action = new SetFilePosition(this, w, line); swingInvoke(action); } else { Vector v = (Vector)sourceNames.get(fileName); String source = ((SourceEntry)v.elementAt(0)).source.toString(); CreateFileWindow action = new CreateFileWindow(this, fileName, source, line); swingInvoke(action); } } else { if(console.isVisible()) { final JSInternalConsole finalConsole = console; swingInvoke(new Runnable() { public void run() { finalConsole.show(); } }); } } swingInvoke(new EnterInterrupt(this, cx)); swingInvoke(new UpdateContext(this, cx)); int returnValue; if(!isDispatchThread) { synchronized(monitor) { this.returnValue = -1; try { while(this.returnValue == -1) { monitor.wait(); } returnValue = this.returnValue; } catch(InterruptedException exc) { break; } } } else { java.awt.EventQueue eventQ = java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue(); this.returnValue = -1; while(this.returnValue == -1) { try { AWTEvent event = eventQ.getNextEvent(); if(event instanceof ActiveEvent) { ((ActiveEvent)event).dispatch(); } else { Object source = event.getSource(); if(source instanceof Component) { Component comp = (Component)source; // Suppress Window/InputEvent's that aren't // directed to the Debugger // if(!(event instanceof InputEvent || //event instanceof WindowEvent)|| // shouldDispatchTo(comp)) { //comp.dispatchEvent(event); //} comp.dispatchEvent(event); } else if(source instanceof MenuComponent) { ((MenuComponent)source).dispatchEvent(event); } } } catch(InterruptedException exc) { } } returnValue = this.returnValue; } swingInvoke(new ExitInterrupt(this)); if(!isDispatchThread) { // reattach cx to its thread Context current; if((current = Context.enter(cx)) != cx) { System.out.println("debugger error: cx = " + cx + " current = " + current); } while(enterCount > 0) { Context.enter(); enterCount--; } } switch(returnValue) { case STEP_OVER: engine.setBreakNextLine(true); stopAtFrameDepth = engine.getFrameCount(); if(state == null) { state = new ThreadState(); } state.stopAtFrameDepth = stopAtFrameDepth; threadState.put(thread, state); break; case STEP_INTO: engine.setBreakNextLine(true); if(state != null) { state.stopAtFrameDepth = -1; } break; case STEP_OUT: stopAtFrameDepth = engine.getFrameCount() -1; if(stopAtFrameDepth > 0) { engine.setBreakNextLine(true); if(state == null) { state = new ThreadState(); } state.stopAtFrameDepth = stopAtFrameDepth; threadState.put(thread, state); } break; case RUN_TO_CURSOR: engine.setBreakNextLine(true); if(state != null) { state.stopAtFrameDepth = -1; } break; } } while(false); synchronized(swingMonitor) { isInterrupted = false; if(java.awt.EventQueue.isDispatchThread()) { dispatcherIsWaiting--; } else { nonDispatcherWaiting = false; } swingMonitor.notifyAll(); } }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 15711, 12, 1042, 9494, 13, 288, 3639, 3852, 12, 5328, 310, 7187, 13, 288, 5411, 309, 12, 6290, 18, 2219, 88, 18, 1133, 3183, 18, 291, 5325, 3830, 10756, 288, 7734, 7393, 2520, 15946, 9904, 31, 7734, 309, 12, 5836, 6681, 15946, 13, 288, 10792, 368, 432, 24413, 2650, 353, 9627, 316, 326, 19977, 10792, 368, 1207, 2641, 3180, 518, 400, 6411, 471, 732, 10792, 368, 848, 6103, 10792, 2252, 18, 2219, 88, 18, 1133, 3183, 871, 53, 225, 273, 13491, 2252, 18, 2219, 88, 18, 6364, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 3163, 1133, 3183, 5621, 10792, 1323, 12, 5836, 6681, 15946, 13, 288, 13491, 775, 288, 18701, 432, 8588, 1133, 871, 273, 871, 53, 18, 588, 2134, 1133, 5621, 18701, 309, 12, 2575, 1276, 8857, 1133, 13, 288, 27573, 14015, 3896, 1133, 13, 2575, 2934, 10739, 5621, 18701, 289, 469, 288, 27573, 1033, 1084, 273, 871, 18, 588, 1830, 5621, 27573, 309, 12, 3168, 1276, 5435, 13, 288, 4766, 565, 5435, 1161, 273, 261, 1841, 13, 3168, 31, 27573, 368, 4598, 6076, 19, 1210, 1133, 1807, 716, 11526, 1404, 27573, 368, 20830, 358, 326, 28645, 4766, 565, 368, 309, 12, 5, 12, 2575, 1276, 2741, 1133, 747, 4766, 565, 368, 2575, 1276, 6076, 1133, 14047, 96, 4766, 565, 368, 13139, 5325, 774, 12, 2919, 3719, 288, 4766, 565, 1161, 18, 10739, 1133, 12, 2575, 1769, 27573, 19363, 27573, 289, 469, 309, 12, 3168, 1276, 9809, 1841, 13, 288, 4766, 565, 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, 377, 918, 15711, 12, 1042, 9494, 13, 288, 3639, 3852, 12, 5328, 310, 7187, 13, 288, 5411, 309, 12, 6290, 18, 2219, 88, 18, 1133, 3183, 18, 291, 5325, 3830, 10756, 288, 7734, 7393, 2520, 15946, 9904, 31, 7734, 309, 12, 5836, 6681, 15946, 13, 288, 10792, 368, 432, 24413, 2650, 353, 9627, 316, 326, 19977, 10792, 368, 1207, 2641, 3180, 518, 400, 6411, 471, 732, 10792, 368, 848, 6103, 10792, 2252, 18, 2219, 88, 18, 1133, 3183, 871, 53, 225, 273, 13491, 2252, 18, 2219, 88, 18, 6364, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 3163, 1133, 3183, 5621, 10792, 1323, 12, 5836, 6681, 15946, 13, 288, 13491, 775, 288, 18701, 432, 8588, 1133, 871, 273, 871, 2 ]
return (int) buffer[offset++]; }
offset++; prevStart = lineStart; lineStart = offset; lineno++; return '\n';
int read() throws IOException { for(;;) { if (end == offset && !fill()) return -1; // Do only a bitmask + branch per character, at the cost of // three branches per low-bits-only (or 2028/9) character. if ((buffer[offset] & '\udfd0') == 0) { if (buffer[offset] == '\r') { // if the next character is a newline, skip past it. if ((offset + 1) < end) { if (buffer[offset + 1] == '\n') offset++; } else { // set a flag for fill(), in case the first char of the // next fill is a newline. lastWasCR = true; } } else { if ((buffer[offset] == '\n') || (buffer[offset] == Character.LINE_SEPARATOR) // 2028 || (buffer[offset] == Character.PARAGRAPH_SEPARATOR)) // 2029 { offset++; prevStart = lineStart; lineStart = offset; lineno++; return '\n'; } return (int) buffer[offset++]; } } if ((buffer[offset] >= 128) && Character.getType(buffer[offset]) == Character.FORMAT) { hadCFSinceStringStart = true; offset++; } else break; } return (int) buffer[offset++]; }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/345804582d82aee83fae0e98b24fbc8a73b8af3d/LineBuffer.java/buggy/js/rhino/org/mozilla/javascript/LineBuffer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 855, 1435, 1216, 1860, 288, 202, 202, 1884, 12, 25708, 13, 288, 1082, 202, 430, 261, 409, 422, 1384, 597, 401, 5935, 10756, 9506, 565, 327, 300, 21, 31, 1082, 202, 759, 2256, 1338, 279, 24941, 397, 3803, 1534, 3351, 16, 622, 326, 6991, 434, 1082, 202, 759, 8925, 11483, 1534, 4587, 17, 6789, 17, 3700, 261, 280, 26599, 28, 19, 29, 13, 3351, 18, 5411, 309, 14015, 4106, 63, 3348, 65, 473, 2337, 1100, 8313, 20, 6134, 422, 374, 13, 288, 9506, 565, 309, 261, 4106, 63, 3348, 65, 422, 2337, 86, 6134, 288, 9506, 3639, 368, 309, 326, 1024, 3351, 353, 279, 9472, 16, 2488, 8854, 518, 18, 9506, 3639, 309, 14015, 3348, 397, 404, 13, 411, 679, 13, 288, 9506, 5411, 309, 261, 4106, 63, 3348, 397, 404, 65, 422, 2337, 82, 6134, 9506, 7734, 1384, 9904, 31, 9506, 3639, 289, 469, 288, 9506, 5411, 368, 444, 279, 2982, 364, 3636, 9334, 316, 648, 326, 1122, 1149, 434, 326, 9506, 5411, 368, 1024, 3636, 353, 279, 9472, 18, 9506, 5411, 1142, 14992, 5093, 273, 638, 31, 9506, 3639, 289, 9506, 565, 289, 7734, 469, 288, 5397, 309, 14015, 4106, 63, 3348, 65, 422, 2337, 82, 6134, 11794, 747, 261, 4106, 63, 3348, 65, 422, 6577, 18, 5997, 67, 4550, 13, 368, 26599, 28, 18701, 747, 261, 4106, 63, 3348, 65, 422, 6577, 18, 2778, 1781, 54, 18045, 67, 4550, 3719, 368, 26599, 29, 10792, 288, 9506, 5411, 1384, 9904, 31, 9506, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 509, 855, 1435, 1216, 1860, 288, 202, 202, 1884, 12, 25708, 13, 288, 1082, 202, 430, 261, 409, 422, 1384, 597, 401, 5935, 10756, 9506, 565, 327, 300, 21, 31, 1082, 202, 759, 2256, 1338, 279, 24941, 397, 3803, 1534, 3351, 16, 622, 326, 6991, 434, 1082, 202, 759, 8925, 11483, 1534, 4587, 17, 6789, 17, 3700, 261, 280, 26599, 28, 19, 29, 13, 3351, 18, 5411, 309, 14015, 4106, 63, 3348, 65, 473, 2337, 1100, 8313, 20, 6134, 422, 374, 13, 288, 9506, 565, 309, 261, 4106, 63, 3348, 65, 422, 2337, 86, 6134, 288, 9506, 3639, 368, 309, 326, 1024, 3351, 353, 279, 9472, 16, 2488, 8854, 518, 18, 9506, 3639, 309, 14015, 3348, 397, 404, 2 ]
public long getSyncEventsReceived() {
public long getSyncEventsReceived() {
public long getSyncEventsReceived() { return statistics.getSyncEventsReceived(); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/de57e83604ff70600cd4eb94962f10f49e5fe102/ComponentStats.java/clean/mule/src/java/org/mule/management/mbeans/ComponentStats.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 1322, 1209, 3783, 8872, 1435, 565, 288, 3639, 327, 7691, 18, 588, 4047, 3783, 8872, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 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, 377, 1071, 1525, 1322, 1209, 3783, 8872, 1435, 565, 288, 3639, 327, 7691, 18, 588, 4047, 3783, 8872, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void parse(int depth, long offset, long length) throws IOException { while (offset < length) { in.seek(offset); // first 4 bytes are the atom size long atomSize = DataTools.read4UnsignedBytes(in, little); // read the atom type byte[] four = new byte[4]; in.read(four); String atomType = new String(four); // if atomSize is 1, then there is an 8 byte extended size if (atomSize == 1) { atomSize = DataTools.read8SignedBytes(in, little); } if (atomSize < 0) { System.out.println("Invalid atom size : " + atomSize); } byte[] data = new byte[0]; // if this is a container atom, parse the children if (isContainer(atomType)) { parse(depth++, in.getFilePointer(), offset + atomSize); } else { if (atomSize == 0) atomSize = in.length(); data = new byte[(int) atomSize]; in.read(data); if (atomType.equals("mdat")) { // we've found the pixel data pixels = data; } else if (atomType.equals("tkhd")) { // we've found the dimensions int off = 74; width = DataTools.bytesToInt(data, off, little); off += 4; height = DataTools.bytesToInt(data, off, little); } else if (atomType.equals("stco")) { // we've found the plane offsets int numPlanes = DataTools.bytesToInt(data, 4, little); if (numPlanes != numImages) { int off = DataTools.bytesToInt(data, 8, little); offsets.add(new Integer(off)); for (int i=1; i<numImages; i++) { if ((chunkSizes.size() > 0) && (i < chunkSizes.size())) { rawSize = ((Integer) chunkSizes.get(i)).intValue(); } else i = numImages; off += rawSize; offsets.add(new Integer(off)); } } else { int j = 8; for (int i=0; i<numPlanes; i++) { offsets.add(new Integer(DataTools.bytesToInt(data, j, little))); j += 4; } } } else if (atomType.equals("stsd")) { // found video codec and pixel depth information codec = new String(data, 12, 4); int fieldsPerPlane = DataTools.bytesToInt(data, 102, 1, little); interlaced = fieldsPerPlane == 2; bitsPerPixel = DataTools.bytesToInt(data, 90, 2, little); metadata.put("Codec", codec); metadata.put("Bits per pixel", new Integer(bitsPerPixel)); } else if (atomType.equals("stsz")) { // found the number of planes rawSize = DataTools.bytesToInt(data, 4, 4, little); numImages = DataTools.bytesToInt(data, 8, 4, little); if (rawSize == 0) { for (int b=0; b<numImages; b++) { chunkSizes.add(new Integer(DataTools.bytesToInt( data, 8+b*4, 4, little))); } } } else if (atomType.equals("stts")) { int fps = DataTools.bytesToInt(data, 12, 4, little); metadata.put("Frames per second", new Integer(fps)); } } if (atomSize == 0) offset = in.length(); else offset += atomSize; // if a 'udta' atom, skip ahead 4 bytes if (atomType.equals("udta")) offset += 4; if (DEBUG) print(depth, atomSize, atomType, data); } }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/91859a26506b8a1d312b398da2c3ecd94e02fa60/QTReader.java/clean/loci/formats/QTReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1109, 12, 474, 3598, 16, 1525, 1384, 16, 1525, 769, 13, 1216, 1860, 288, 565, 1323, 261, 3348, 411, 769, 13, 288, 1377, 316, 18, 16508, 12, 3348, 1769, 1377, 368, 1122, 1059, 1731, 854, 326, 3179, 963, 1377, 1525, 3179, 1225, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 267, 16, 12720, 1769, 1377, 368, 855, 326, 3179, 618, 1377, 1160, 8526, 12792, 273, 394, 1160, 63, 24, 15533, 1377, 316, 18, 896, 12, 74, 477, 1769, 1377, 514, 3179, 559, 273, 394, 514, 12, 74, 477, 1769, 1377, 368, 309, 3179, 1225, 353, 404, 16, 1508, 1915, 353, 392, 1725, 1160, 7021, 963, 1377, 309, 261, 7466, 1225, 422, 404, 13, 288, 3639, 3179, 1225, 273, 1910, 10348, 18, 896, 28, 12294, 2160, 12, 267, 16, 12720, 1769, 1377, 289, 1377, 309, 261, 7466, 1225, 411, 374, 13, 288, 3639, 2332, 18, 659, 18, 8222, 2932, 1941, 3179, 963, 294, 315, 397, 3179, 1225, 1769, 1377, 289, 1377, 1160, 8526, 501, 273, 394, 1160, 63, 20, 15533, 1377, 368, 309, 333, 353, 279, 1478, 3179, 16, 1109, 326, 2325, 1377, 309, 261, 291, 2170, 12, 7466, 559, 3719, 288, 3639, 1109, 12, 5979, 9904, 16, 316, 18, 29925, 4926, 9334, 1384, 397, 3179, 1225, 1769, 1377, 289, 1377, 469, 288, 3639, 309, 261, 7466, 1225, 422, 374, 13, 3179, 1225, 273, 316, 18, 2469, 5621, 3639, 501, 273, 394, 1160, 63, 12, 474, 13, 3179, 1225, 15533, 3639, 316, 18, 896, 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, 1109, 12, 474, 3598, 16, 1525, 1384, 16, 1525, 769, 13, 1216, 1860, 288, 565, 1323, 261, 3348, 411, 769, 13, 288, 1377, 316, 18, 16508, 12, 3348, 1769, 1377, 368, 1122, 1059, 1731, 854, 326, 3179, 963, 1377, 1525, 3179, 1225, 273, 1910, 10348, 18, 896, 24, 13290, 2160, 12, 267, 16, 12720, 1769, 1377, 368, 855, 326, 3179, 618, 1377, 1160, 8526, 12792, 273, 394, 1160, 63, 24, 15533, 1377, 316, 18, 896, 12, 74, 477, 1769, 1377, 514, 3179, 559, 273, 394, 514, 12, 74, 477, 1769, 1377, 368, 309, 3179, 1225, 353, 404, 16, 1508, 1915, 353, 392, 1725, 1160, 7021, 963, 1377, 309, 261, 7466, 1225, 422, 404, 13, 288, 3639, 2 ]
DatanodeDescriptor cur = (DatanodeDescriptor) it.next();
DatanodeInfo cur = (DatanodeInfo) it.next();
private void proccessOverReplicatedBlock( Block block, short replication ) { TreeSet containingNodes = (TreeSet) blocksMap.get(block); if( containingNodes == null ) return; Vector nonExcess = new Vector(); for (Iterator it = containingNodes.iterator(); it.hasNext(); ) { DatanodeDescriptor cur = (DatanodeDescriptor) it.next(); TreeSet excessBlocks = (TreeSet) excessReplicateMap.get(cur.getStorageID()); if (excessBlocks == null || ! excessBlocks.contains(block)) { nonExcess.add(cur); } } chooseExcessReplicates(nonExcess, block, replication); }
49935 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49935/31110f7bc418d9db1c4939fac608b96725b3b0db/FSNamesystem.java/clean/src/java/org/apache/hadoop/dfs/FSNamesystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 450, 850, 4851, 426, 20140, 1768, 12, 3914, 1203, 16, 3025, 11335, 262, 288, 1377, 19461, 4191, 3205, 273, 261, 2471, 694, 13, 4398, 863, 18, 588, 12, 2629, 1769, 1377, 309, 12, 4191, 3205, 422, 446, 262, 3639, 327, 31, 1377, 5589, 1661, 424, 614, 273, 394, 5589, 5621, 1377, 364, 261, 3198, 518, 273, 4191, 3205, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 1850, 26739, 966, 662, 273, 261, 5139, 14085, 966, 13, 518, 18, 4285, 5621, 1850, 19461, 23183, 6450, 273, 261, 2471, 694, 13, 23183, 426, 1780, 340, 863, 18, 588, 12, 1397, 18, 588, 3245, 734, 10663, 1850, 309, 261, 338, 614, 6450, 422, 446, 747, 401, 23183, 6450, 18, 12298, 12, 2629, 3719, 288, 2868, 1661, 424, 614, 18, 1289, 12, 1397, 1769, 1850, 289, 1377, 289, 1377, 9876, 424, 614, 426, 1780, 815, 12, 5836, 424, 614, 16, 1203, 16, 11335, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 450, 850, 4851, 426, 20140, 1768, 12, 3914, 1203, 16, 3025, 11335, 262, 288, 1377, 19461, 4191, 3205, 273, 261, 2471, 694, 13, 4398, 863, 18, 588, 12, 2629, 1769, 1377, 309, 12, 4191, 3205, 422, 446, 262, 3639, 327, 31, 1377, 5589, 1661, 424, 614, 273, 394, 5589, 5621, 1377, 364, 261, 3198, 518, 273, 4191, 3205, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 1850, 26739, 966, 662, 273, 261, 5139, 14085, 966, 13, 518, 18, 4285, 5621, 1850, 19461, 23183, 6450, 273, 261, 2471, 694, 13, 23183, 426, 1780, 340, 863, 18, 588, 12, 1397, 18, 588, 3245, 734, 10663, 1850, 309, 261, 338, 614, 6450, 422, 446, 747, 401, 23183, 2 ]
files[1].getPresentableUrl(), files[2].getPresentableUrl()});
files[1].getPresentableUrl(), files[2].getPresentableUrl()});
public void actionPerformed(AnActionEvent e) { DataContext context = e.getDataContext(); VirtualFile[] files = (VirtualFile[])context.getData(DataConstants.VIRTUAL_FILE_ARRAY); if (files == null || files.length != 3){ return; } DiffRequestFactory diffRequestFactory = PeerFactory.getInstance().getDiffRequestFactory(); VirtualFile file = files[1]; if(FileDocumentManager.getInstance().getDocument(files[0]) != null && FileDocumentManager.getInstance().getDocument(files[1]) != null && FileDocumentManager.getInstance().getDocument(files[2]) != null){ String originalText = createValidContent(FileDocumentManager.getInstance().getDocument(file).getText()); String leftText = FileDocumentManager.getInstance().getDocument(files[0]).getText(); String rightText = FileDocumentManager.getInstance().getDocument(files[2]).getText(); Project project = (Project)context.getData(DataConstants.PROJECT); final MergeRequest diffData = diffRequestFactory.createMergeRequest(leftText, rightText, originalText, file, project, ActionButtonPresentation.createApplyButton()); diffData.setVersionTitles(new String[]{files[0].getPresentableUrl(), files[1].getPresentableUrl(), files[2].getPresentableUrl()}); diffData.setWindowTitle(DiffBundle.message("merge.files.dialog.title")); diffData.setHelpId("cvs.merge"); DiffManager.getInstance().getDiffTool().show(diffData); } else { Messages.showErrorDialog(DiffBundle.message("merge.dialog.cannot.load.file.error.message", ""), DiffBundle.message("merge.files.dialog.title")); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/b6f949bd73cd0bf50707caab02f05f8c3532dd8b/MergeFilesAction.java/buggy/source/com/intellij/openapi/diff/actions/MergeFilesAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 26100, 12, 979, 1803, 1133, 425, 13, 288, 565, 1910, 1042, 819, 273, 425, 18, 588, 751, 1042, 5621, 565, 7269, 812, 8526, 1390, 273, 261, 6466, 812, 63, 5717, 2472, 18, 588, 751, 12, 751, 2918, 18, 26854, 67, 3776, 67, 8552, 1769, 565, 309, 261, 2354, 422, 446, 747, 1390, 18, 2469, 480, 890, 15329, 1377, 327, 31, 565, 289, 565, 13008, 691, 1733, 3122, 691, 1733, 273, 10669, 1733, 18, 588, 1442, 7675, 588, 5938, 691, 1733, 5621, 565, 7269, 812, 585, 273, 1390, 63, 21, 15533, 565, 309, 12, 812, 2519, 1318, 18, 588, 1442, 7675, 588, 2519, 12, 2354, 63, 20, 5717, 480, 446, 597, 1387, 2519, 1318, 18, 588, 1442, 7675, 588, 2519, 12, 2354, 63, 21, 5717, 480, 446, 597, 1387, 2519, 1318, 18, 588, 1442, 7675, 588, 2519, 12, 2354, 63, 22, 5717, 480, 446, 15329, 1377, 514, 2282, 1528, 273, 752, 1556, 1350, 12, 812, 2519, 1318, 18, 588, 1442, 7675, 588, 2519, 12, 768, 2934, 588, 1528, 10663, 1377, 514, 2002, 1528, 273, 1387, 2519, 1318, 18, 588, 1442, 7675, 588, 2519, 12, 2354, 63, 20, 65, 2934, 588, 1528, 5621, 1377, 514, 2145, 1528, 273, 1387, 2519, 1318, 18, 588, 1442, 7675, 588, 2519, 12, 2354, 63, 22, 65, 2934, 588, 1528, 5621, 1377, 5420, 1984, 273, 261, 4109, 13, 2472, 18, 588, 751, 12, 751, 2918, 18, 17147, 1769, 1377, 727, 8964, 691, 3122, 751, 273, 3122, 691, 1733, 18, 2640, 6786, 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, 26100, 12, 979, 1803, 1133, 425, 13, 288, 565, 1910, 1042, 819, 273, 425, 18, 588, 751, 1042, 5621, 565, 7269, 812, 8526, 1390, 273, 261, 6466, 812, 63, 5717, 2472, 18, 588, 751, 12, 751, 2918, 18, 26854, 67, 3776, 67, 8552, 1769, 565, 309, 261, 2354, 422, 446, 747, 1390, 18, 2469, 480, 890, 15329, 1377, 327, 31, 565, 289, 565, 13008, 691, 1733, 3122, 691, 1733, 273, 10669, 1733, 18, 588, 1442, 7675, 588, 5938, 691, 1733, 5621, 565, 7269, 812, 585, 273, 1390, 63, 21, 15533, 565, 309, 12, 812, 2519, 1318, 18, 588, 1442, 7675, 588, 2519, 12, 2354, 63, 20, 5717, 480, 446, 597, 1387, 2519, 1318, 18, 588, 1442, 2 ]
public RubyString id2name() { return RubySymbol.getSymbol(runtime, value).to_s();
public IRubyObject id2name() { return RubySymbol.getSymbol(runtime, value).convertToString();
public RubyString id2name() { return RubySymbol.getSymbol(runtime, value).to_s(); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/cc20d41e6031b7e9c9ed46676d32e45334ed0d53/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 612, 22, 529, 1435, 288, 3639, 327, 19817, 5335, 18, 588, 5335, 12, 9448, 16, 460, 2934, 869, 67, 87, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 780, 612, 22, 529, 1435, 288, 3639, 327, 19817, 5335, 18, 588, 5335, 12, 9448, 16, 460, 2934, 869, 67, 87, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Point point = computePopUpLocation(event.widget.getDisplay()); displayContext(context, point.x, point.y);
if (context != null) { Point point = computePopUpLocation(event.widget .getDisplay()); displayContext(context, point.x, point.y); }
public void helpRequested(HelpEvent event) { if (getHelpUI() != null) { IContext context = HelpSystem.getContext(contextId); Point point = computePopUpLocation(event.widget.getDisplay()); displayContext(context, point.x, point.y); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1de64426c16a2f3ec3974ce5211036fcb71f7e16/WorkbenchHelp.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/help/WorkbenchHelp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 2809, 11244, 12, 6696, 1133, 871, 13, 288, 9506, 202, 430, 261, 588, 6696, 5370, 1435, 480, 446, 13, 288, 6862, 202, 45, 1042, 819, 273, 11288, 3163, 18, 29120, 12, 2472, 548, 1769, 6862, 202, 2148, 1634, 273, 3671, 7049, 1211, 2735, 12, 2575, 18, 6587, 18, 588, 4236, 10663, 6862, 202, 5417, 1042, 12, 2472, 16, 1634, 18, 92, 16, 1634, 18, 93, 1769, 9506, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 2809, 11244, 12, 6696, 1133, 871, 13, 288, 9506, 202, 430, 261, 588, 6696, 5370, 1435, 480, 446, 13, 288, 6862, 202, 45, 1042, 819, 273, 11288, 3163, 18, 29120, 12, 2472, 548, 1769, 6862, 202, 2148, 1634, 273, 3671, 7049, 1211, 2735, 12, 2575, 18, 6587, 18, 588, 4236, 10663, 6862, 202, 5417, 1042, 12, 2472, 16, 1634, 18, 92, 16, 1634, 18, 93, 1769, 9506, 202, 97, 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 ]
icode = (type == Token.INC) ? Icode_PROPINC : Icode_PROPDEC;
String property = getPropChild.getString(); int op = (type == Token.INC) ? Icode_PROPINC : Icode_PROPDEC; iCodeTop = addStringOp(op, property, iCodeTop);
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; int savedStackDepth = itsStackDepth; int stackDelta = 0; // expected stack change for subtree code boolean stackShouldBeZero = false; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.getFunctionType() != FunctionNode.FUNCTION_STATEMENT) { stackDelta = 1; // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start iCodeTop = addIndexOp(Icode_CLOSURE, fnIndex, iCodeTop); stackChange(1); } else { stackShouldBeZero = true; } break; } case Token.SCRIPT : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : // Skip case condition child = child.getNext(); // fallthrough case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.EMPTY : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.WITH : ++itsWithDepth; stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsWithDepth; break; case Token.LOCAL_BLOCK : stackShouldBeZero = true; if ((itsLocalTop & ~0xFF) != 0) { throw Context.reportRuntimeError( "Program too complex (out of locals)"); } node.putIntProp(Node.LOCAL_PROP, itsLocalTop); ++itsLocalTop; if (itsLocalTop > itsData.itsMaxLocals) { itsData.itsMaxLocals = itsLocalTop; } iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsLocalTop; break; case Token.LOCAL_LOAD : { stackDelta = 1; int localIndex = getLocalBlockRef(node); iCodeTop = addIndexOp(Token.LOCAL_LOAD, localIndex, iCodeTop); stackChange(1); break; } case Token.COMMA : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { if (1 != itsStackDepth - savedStackDepth) Kit.codeBug(); iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.INIT_LIST : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { if (1 != itsStackDepth - savedStackDepth) Kit.codeBug(); iCodeTop = addIcode(Icode_DUP, iCodeTop); // No stack adjusting: USE_STACK in subtree will do it iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; } break; case Token.USE_STACK: // Indicates that stack was modified externally, // like placed catch object stackDelta = 1; itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.SWITCH : { stackShouldBeZero = true; Node.Jump switchNode = (Node.Jump)node; iCodeTop = updateLineNumber(switchNode, iCodeTop); iCodeTop = generateICode(child, iCodeTop); ObjArray cases = (ObjArray) switchNode.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.SHEQ, iCodeTop); itsStackDepth--; Node.Target target = new Node.Target(); thisCase.addChildAfter(target, first); // If true, Icode_IFEQ_POP will jump and remove case value // from stack iCodeTop = addGoto(target, Icode_IFEQ_POP, iCodeTop); itsStackDepth--; } iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; Node defaultNode = (Node) switchNode.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node.Target defaultTarget = new Node.Target(); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node.Target breakTarget = switchNode.target; iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : stackShouldBeZero = true; markTargetLabel((Node.Target)node, iCodeTop); break; case Token.NEW : case Token.CALL : { stackDelta = 1; if (type == Token.NEW) { iCodeTop = generateICode(child, iCodeTop); } else { iCodeTop = generateCallFunAndThis(child, iCodeTop); if (itsStackDepth - savedStackDepth != 2) Kit.codeBug(); } int argCount = 0; while ((child = child.getNext()) != null) { iCodeTop = generateICode(child, iCodeTop); ++argCount; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addIndexOp(Icode_CALLSPECIAL, argCount, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addIndexOp(type, argCount, iCodeTop); } // adjust stack if (type == Token.NEW) { // f, args -> results itsStackDepth -= argCount; } else { // f, thisObj, args -> results itsStackDepth -= (argCount + 1); } if (argCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = argCount; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { stackShouldBeZero = true; Node.Target target = ((Node.Jump)node).target; iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { stackShouldBeZero = true; Node.Target target = ((Node.Jump)node).target; iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.FINALLY : { stackShouldBeZero = true; // Account for incomming exception or GOTOSUB address ++itsStackDepth; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int finallyRegister = getLocalBlockRef(node); iCodeTop = addIndexOp(Token.LOCAL_SAVE, finallyRegister, iCodeTop); itsStackDepth--; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (itsStackDepth != 0) Kit.codeBug(); child = child.getNext(); } iCodeTop = addIndexOp(Icode_RETSUB, finallyRegister, iCodeTop); break; } case Token.AND : case Token.OR : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addIcode(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int afterSecondJumpStart = iCodeTop; int jump = (type == Token.AND) ? Token.IFNE : Token.IFEQ; iCodeTop = addForwardGoto(jump, iCodeTop); itsStackDepth--; iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(afterSecondJumpStart, iCodeTop); break; } case Token.HOOK : { stackDelta = 1; Node ifThen = child.getNext(); Node ifElse = ifThen.getNext(); iCodeTop = generateICode(child, iCodeTop); int elseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); itsStackDepth--; iCodeTop = generateICode(ifThen, iCodeTop); int afterElseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(elseJumpStart, iCodeTop); itsStackDepth = savedStackDepth; iCodeTop = generateICode(ifElse, iCodeTop); resolveForwardGoto(afterElseJumpStart, iCodeTop); break; } case Token.GETPROP : stackDelta = 1; iCodeTop = visitGetProp(iCodeTop, node, child, false); break; case Token.GETELEM : stackDelta = 1; iCodeTop = visitGetElem(iCodeTop, node, child, false); break; case Token.DELPROP : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.ADD : case Token.SUB : case Token.MOD : case Token.DIV : case Token.MUL : case Token.EQ: case Token.NE: case Token.SHEQ: case Token.SHNE: case Token.IN : case Token.INSTANCEOF : case Token.LE : case Token.LT : case Token.GE : case Token.GT : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(type, iCodeTop); itsStackDepth--; break; case Token.POS : case Token.NEG : case Token.NOT : case Token.BITNOT : case Token.TYPEOF : case Token.VOID : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); if (type == Token.VOID) { iCodeTop = addToken(Token.POP, iCodeTop); iCodeTop = addToken(Token.UNDEFINED, iCodeTop); } else { iCodeTop = addToken(type, iCodeTop); } break; case Token.SETPROP : case Token.SETPROP_OP : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); int special = node.getIntProp(Node.SPECIAL_PROP_PROP, 0); if (special != 0) { if (type == Token.SETPROP_OP) { iCodeTop = addIcode(Icode_DUP, iCodeTop); if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_GETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_GETSCOPEPARENT, iCodeTop); } else { throw badTree(node); } // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_SETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_SETPARENT, iCodeTop); } else { throw badTree(node); } itsStackDepth--; } else { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); if (type == Token.SETPROP_OP) { iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : case Token.SETELEM_OP : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); if (type == Token.SETELEM_OP) { iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETELEM, iCodeTop); itsStackDepth--; // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.SETELEM, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addStringOp(Token.SETNAME, firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOFNAME : { stackDelta = 1; String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { iCodeTop = addStringOp(Icode_TYPEOFNAME, name, iCodeTop); stackChange(1); } else { iCodeTop = addToken(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); stackChange(1); iCodeTop = addToken(Token.TYPEOF, iCodeTop); } break; } case Token.BINDNAME : case Token.NAME : case Token.STRING : stackDelta = 1; iCodeTop = addStringOp(type, node.getString(), iCodeTop); stackChange(1); break; case Token.INC : case Token.DEC : { stackDelta = 1; int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addIcode(Icode_SCOPE, iCodeTop); iCodeTop = addStringOp(Token.STRING, name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addIcode(type == Token.INC ? Icode_PROPINC : Icode_PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addIcode(type == Token.INC ? Icode_VARINC : Icode_VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); int icode; if (childType == Token.GETPROP) { icode = (type == Token.INC) ? Icode_PROPINC : Icode_PROPDEC; } else { icode = (type == Token.INC) ? Icode_ELEMINC : Icode_ELEMDEC; } iCodeTop = addIcode(icode, iCodeTop); itsStackDepth--; break; } default : { iCodeTop = addStringOp(type == Token.INC ? Icode_NAMEINC : Icode_NAMEDEC, child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { stackDelta = 1; double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addToken(Token.ZERO, iCodeTop); // Check for negative zero if (1.0 / num < 0.0) { iCodeTop = addToken(Token.NEG, iCodeTop); } } else if (inum == 1) { iCodeTop = addToken(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addIcode(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addIcode(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { int index = getDoubleIndex(num); iCodeTop = addIndexOp(Token.NUMBER, index, iCodeTop); } stackChange(1); break; } case Token.POPV : stackShouldBeZero = true; // fallthrough case Token.POP : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(type, iCodeTop); itsStackDepth--; break; case Token.ENTERWITH : stackShouldBeZero = true; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.ENTERWITH, iCodeTop); itsStackDepth--; break; case Token.CATCH_SCOPE : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addStringOp(Token.CATCH_SCOPE, node.getString(), iCodeTop); break; case Token.LEAVEWITH : stackShouldBeZero = true; iCodeTop = addToken(Token.LEAVEWITH, iCodeTop); break; case Token.TRY : { stackShouldBeZero = true; Node.Jump tryNode = (Node.Jump)node; int exceptionObjectLocal = getLocalBlockRef(tryNode); Node catchTarget = tryNode.target; Node finallyTarget = tryNode.getFinally(); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (tryEnd >= 0) Kit.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel((Node.Target)child, iCodeTop); generated = true; } else if (child == finallyTarget) { if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel((Node.Target)child, iCodeTop); generated = true; } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth, exceptionObjectLocal); break; } case Token.THROW : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.THROW, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); itsStackDepth--; break; case Token.RETURN : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addIcode(Icode_RETUNDEF, iCodeTop); } break; case Token.RETURN_POPV : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = addToken(Token.RETURN_POPV, iCodeTop); break; case Token.GETVAR : { stackDelta = 1; String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addIcode(Icode_SCOPE, iCodeTop); iCodeTop = addStringOp(Token.STRING, name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addToken(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { stackDelta = 1; if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addToken(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.NULL: case Token.THIS: case Token.THISFN: case Token.FALSE: case Token.TRUE: case Token.UNDEFINED: stackDelta = 1; iCodeTop = addToken(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUM_INIT : stackShouldBeZero = true; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addIndexOp(Token.ENUM_INIT, getLocalBlockRef(node), iCodeTop); stackChange(-1); break; case Token.ENUM_NEXT : case Token.ENUM_ID : stackDelta = 1; iCodeTop = addIndexOp(type, getLocalBlockRef(node), iCodeTop); stackChange(1); break; case Token.REGEXP : { stackDelta = 1; int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addIndexOp(Token.REGEXP, index, iCodeTop); stackChange(1); break; } case Token.ARRAYLIT: case Token.OBJECTLIT: stackDelta = 1; iCodeTop = visitLiteral(iCodeTop, node, child); break; default : throw badTree(node); } if (stackDelta != itsStackDepth - savedStackDepth) { //System.out.println("Bad stack delta: type="+Token.name(type)+" expected="+stackDelta+" real="+ (itsStackDepth - savedStackDepth)); Kit.codeBug(); } if (stackShouldBeZero && !(stackDelta == 0 && itsStackDepth == 0)) { Kit.codeBug(); } return iCodeTop; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/03911d128e17ed128bb1934f6e59ce577eb60acc/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 509, 5198, 2624, 6148, 273, 2097, 2624, 6148, 31, 3639, 509, 2110, 9242, 273, 374, 31, 368, 2665, 2110, 2549, 364, 12773, 981, 3639, 1250, 2110, 14309, 1919, 7170, 273, 629, 31, 3639, 1620, 261, 723, 13, 288, 5411, 648, 3155, 18, 7788, 294, 288, 7734, 509, 2295, 1016, 273, 756, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 7734, 4284, 907, 2295, 273, 2728, 1162, 5372, 18, 588, 2083, 907, 12, 4293, 1016, 1769, 7734, 309, 261, 4293, 18, 588, 2083, 559, 1435, 480, 4284, 907, 18, 7788, 67, 28411, 13, 288, 10792, 2110, 9242, 273, 404, 31, 10792, 368, 5098, 445, 8041, 578, 445, 2652, 10792, 368, 6317, 4260, 7213, 981, 4979, 394, 445, 10792, 368, 733, 603, 2110, 487, 445, 6317, 854, 6454, 10792, 368, 622, 2728, 19, 915, 787, 10792, 277, 1085, 3401, 273, 26794, 3817, 12, 45, 710, 67, 22693, 55, 4830, 16, 2295, 1016, 16, 277, 1085, 3401, 1769, 10792, 2110, 3043, 12, 21, 1769, 7734, 289, 469, 288, 10792, 2110, 14309, 1919, 7170, 273, 638, 31, 7734, 289, 7734, 898, 31, 5411, 289, 5411, 648, 3155, 18, 10885, 294, 7734, 2110, 14309, 1919, 7170, 273, 638, 31, 7734, 277, 1085, 3401, 273, 1089, 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, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 509, 5198, 2624, 6148, 273, 2097, 2624, 6148, 31, 3639, 509, 2110, 9242, 273, 374, 31, 368, 2665, 2110, 2549, 364, 12773, 981, 3639, 1250, 2110, 14309, 1919, 7170, 273, 629, 31, 3639, 1620, 261, 723, 13, 288, 5411, 648, 3155, 18, 7788, 294, 288, 7734, 509, 2295, 1016, 273, 756, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 7734, 4284, 907, 2295, 273, 2728, 1162, 5372, 18, 588, 2083, 907, 12, 2 ]
throw new EJBException("Cannot lookup SB_Auth: " +e);
throw new RemoteException("Cannot lookup SB_Auth: " +e);
public String getAboutMe(String username, String password) { int uid = -1; Integer userId; String html = ""; // Authenticate the user SB_AuthHome authHome = null; SB_Auth auth = null; try { authHome = (SB_AuthHome)PortableRemoteObject.narrow(initialContext.lookup("java:comp/env/ejb/SB_Auth"), SB_AuthHome.class); auth = authHome.create(); } catch (Exception e) { throw new EJBException("Cannot lookup SB_Auth: " +e); } try { uid = auth.authenticate(username, password); } catch (Exception e) { throw new EJBException("Authentication failed: " +e); } if (uid == -1) { html = (" You don't have an account on RUBiS!<br>You have to register first.<br>"); return html; } // Try to find the user corresponding to the userId UserHome uHome; try { userId = new Integer (uid); uHome = (UserHome)PortableRemoteObject.narrow(initialContext.lookup("java:comp/env/ejb/User"), UserHome.class); } catch (Exception e) { throw new EJBException("Cannot lookup User: " +e+"<br>"); } try { User u = uHome.findByPrimaryKey(new UserPK(userId)); html = u.getHTMLGeneralUserInformation(); } catch (Exception e) { throw new EJBException("This user does not exist (got exception: " +e+")<br>"); } // Try to find the comments corresponding for this user CommentHome cHome; try { cHome = (CommentHome)PortableRemoteObject.narrow(initialContext.lookup("java:comp/env/ejb/Comment"), CommentHome.class); } catch (Exception e) { throw new EJBException("Cannot lookup Comment: " +e+"<br>"); } // Retrieve ItemHome ItemHome iHome; try { iHome = (ItemHome)PortableRemoteObject.narrow(initialContext.lookup("java:comp/env/ejb/Item"), ItemHome.class); } catch (Exception e) { throw new EJBException("Cannot lookup item: " +e+"<br>"); } // Connecting to Query Home thru JNDI QueryHome qHome; try { qHome = (QueryHome)PortableRemoteObject.narrow(initialContext.lookup("java:comp/env/ejb/Query"), QueryHome.class); } catch (Exception e) { throw new EJBException("Cannot lookup Query: " +e+"<br>"); } try { html = html.concat(listItem(userId, iHome)); html = html.concat(listBoughtItems(userId, iHome)); html = html.concat(listWonItems(userId, iHome, qHome)); html = html.concat(listBids(userId, username, password, iHome, qHome)); html = html.concat(listComments(cHome, userId, uHome)); } catch (Exception e) { throw new EJBException("Cannot lookup Query: " +e+"<br>"); } return html; }
5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/69c37257a1581e015b5a8a01582a0f0d4a10936c/SB_AboutMeBean.java/buggy/EJB_Session_facade/edu/rice/rubis/beans/SB_AboutMeBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 4506, 70, 659, 4667, 12, 780, 2718, 16, 514, 2201, 13, 282, 288, 565, 509, 4555, 273, 300, 21, 31, 565, 2144, 6249, 31, 565, 514, 1729, 273, 1408, 31, 565, 368, 26644, 326, 729, 565, 348, 38, 67, 1730, 8684, 1357, 8684, 273, 446, 31, 565, 348, 38, 67, 1730, 1357, 273, 446, 31, 565, 775, 377, 288, 1377, 1357, 8684, 273, 261, 14541, 67, 1730, 8684, 13, 2617, 429, 5169, 921, 18, 82, 7815, 12, 6769, 1042, 18, 8664, 2932, 6290, 30, 2919, 19, 3074, 19, 73, 10649, 19, 14541, 67, 1730, 6, 3631, 348, 38, 67, 1730, 8684, 18, 1106, 1769, 1377, 1357, 273, 1357, 8684, 18, 2640, 5621, 565, 289, 377, 1044, 261, 503, 425, 13, 565, 288, 1377, 604, 394, 18361, 2932, 4515, 3689, 348, 38, 67, 1730, 30, 315, 397, 73, 1769, 565, 289, 565, 775, 377, 288, 1377, 4555, 273, 1357, 18, 22035, 12, 5053, 16, 2201, 1769, 565, 289, 377, 1044, 261, 503, 425, 13, 565, 288, 1377, 604, 394, 12157, 503, 2932, 6492, 2535, 30, 315, 397, 73, 1769, 565, 289, 565, 309, 261, 1911, 422, 300, 21, 13, 565, 288, 1377, 1729, 273, 7566, 4554, 2727, 1404, 1240, 392, 2236, 603, 534, 3457, 77, 55, 5, 32, 2848, 34, 6225, 1240, 358, 1744, 1122, 22782, 2848, 2984, 1769, 1377, 327, 1729, 31, 565, 289, 565, 368, 6161, 358, 1104, 326, 729, 4656, 358, 326, 6249, 1377, 2177, 8684, 582, 8684, 31, 1377, 775, 4202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 4506, 70, 659, 4667, 12, 780, 2718, 16, 514, 2201, 13, 282, 288, 565, 509, 4555, 273, 300, 21, 31, 565, 2144, 6249, 31, 565, 514, 1729, 273, 1408, 31, 565, 368, 26644, 326, 729, 565, 348, 38, 67, 1730, 8684, 1357, 8684, 273, 446, 31, 565, 348, 38, 67, 1730, 1357, 273, 446, 31, 565, 775, 377, 288, 1377, 1357, 8684, 273, 261, 14541, 67, 1730, 8684, 13, 2617, 429, 5169, 921, 18, 82, 7815, 12, 6769, 1042, 18, 8664, 2932, 6290, 30, 2919, 19, 3074, 19, 73, 10649, 19, 14541, 67, 1730, 6, 3631, 348, 38, 67, 1730, 8684, 18, 1106, 1769, 1377, 1357, 273, 1357, 8684, 18, 2640, 5621, 565, 289, 377, 1044, 2 ]
reservedWords.add(s.toUpperCase()); }
reservedWords.add(s.toUpperCase()); }
public void defineReserved(String s) { reservedWords.add(s.toUpperCase()); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4426, 10435, 12, 780, 272, 13, 288, 202, 202, 18898, 7363, 18, 1289, 12, 87, 18, 869, 8915, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4426, 10435, 12, 780, 272, 13, 288, 202, 202, 18898, 7363, 18, 1289, 12, 87, 18, 869, 8915, 10663, 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 ]
if (Debug.DEBUG_FLUSH) showPending("Message delivered");
if (DEBUG_FLUSH) showPending("Message delivered");
synchronized void messageDelivered(Message m) { --outstandingMessages; if (Debug.DEBUG_FLUSH) showPending("Message delivered"); if (outstandingMessages <= 0) notify(); }
7172 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7172/a04cafc2ce9b16fb5c636f6e74cae41ca733b5bd/MessageTransportServiceProxy.java/buggy/mtsstd/src/org/cougaar/mts/std/MessageTransportServiceProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 918, 883, 20813, 329, 12, 1079, 312, 13, 288, 202, 413, 659, 15167, 5058, 31, 202, 430, 261, 2829, 18, 9394, 67, 42, 31959, 13, 2405, 8579, 2932, 1079, 22112, 8863, 202, 430, 261, 659, 15167, 5058, 1648, 374, 13, 5066, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3852, 918, 883, 20813, 329, 12, 1079, 312, 13, 288, 202, 413, 659, 15167, 5058, 31, 202, 430, 261, 2829, 18, 9394, 67, 42, 31959, 13, 2405, 8579, 2932, 1079, 22112, 8863, 202, 430, 261, 659, 15167, 5058, 1648, 374, 13, 5066, 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 ]
if(index > minValue && index < maxValue) return true;
if((index > minValue) && (index < maxValue)) return true;
public synchronized boolean remove(int index) { Logger.minor(this, "Removing "+index+" - min="+minValue+" max="+maxValue); if(contents.remove(new Integer(index)) != null) { if(index > minValue && index < maxValue) return true; if(contents.size() == 0) { minValue = maxValue = -1; notifyAll(); return true; } if(index == maxValue) { for(int i=maxValue;i>=minValue;i--) { Integer ii = new Integer(i); if(contents.containsKey(ii)) { maxValue = i; notifyAll(); return true; } } // Still here - WTF? notifyAll(); throw new IllegalStateException("Still here! (a)"); } if(index == minValue) { for(int i=minValue;i<=maxValue;i++) { Integer ii = new Integer(i); if(contents.containsKey(ii)) { minValue = i; notifyAll(); return true; } } // Still here - WTF? notifyAll(); throw new IllegalStateException("Still here! (b)"); } notifyAll(); throw new IllegalStateException("impossible"); } return false; }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/LimitedRangeIntByteArrayMap.java/buggy/src/freenet/support/LimitedRangeIntByteArrayMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1250, 1206, 12, 474, 770, 13, 288, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 18939, 13773, 1615, 9078, 300, 1131, 1546, 15, 1154, 620, 9078, 943, 1546, 15, 1896, 620, 1769, 3639, 309, 12, 3980, 18, 4479, 12, 2704, 2144, 12, 1615, 3719, 480, 446, 13, 288, 5411, 309, 12443, 1615, 405, 20533, 13, 597, 261, 1615, 411, 18666, 3719, 327, 638, 31, 5411, 309, 12, 3980, 18, 1467, 1435, 422, 374, 13, 288, 7734, 20533, 273, 18666, 273, 300, 21, 31, 7734, 5066, 1595, 5621, 7734, 327, 638, 31, 5411, 289, 5411, 309, 12, 1615, 422, 18666, 13, 288, 7734, 364, 12, 474, 277, 33, 1896, 620, 31, 77, 34, 33, 1154, 620, 31, 77, 413, 13, 288, 10792, 2144, 6072, 273, 394, 2144, 12, 77, 1769, 10792, 309, 12, 3980, 18, 12298, 653, 12, 2835, 3719, 288, 13491, 18666, 273, 277, 31, 13491, 5066, 1595, 5621, 13491, 327, 638, 31, 10792, 289, 7734, 289, 7734, 368, 934, 737, 2674, 300, 678, 17963, 35, 7734, 5066, 1595, 5621, 7734, 604, 394, 5477, 2932, 510, 737, 2674, 5, 261, 69, 2225, 1769, 5411, 289, 5411, 309, 12, 1615, 422, 20533, 13, 288, 7734, 364, 12, 474, 277, 33, 1154, 620, 31, 77, 32, 33, 1896, 620, 31, 77, 27245, 288, 10792, 2144, 6072, 273, 394, 2144, 12, 77, 1769, 10792, 309, 12, 3980, 18, 12298, 653, 12, 2835, 3719, 288, 13491, 20533, 273, 277, 31, 13491, 5066, 1595, 5621, 13491, 327, 638, 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, 377, 1071, 3852, 1250, 1206, 12, 474, 770, 13, 288, 3639, 4242, 18, 17364, 12, 2211, 16, 315, 18939, 13773, 1615, 9078, 300, 1131, 1546, 15, 1154, 620, 9078, 943, 1546, 15, 1896, 620, 1769, 3639, 309, 12, 3980, 18, 4479, 12, 2704, 2144, 12, 1615, 3719, 480, 446, 13, 288, 5411, 309, 12443, 1615, 405, 20533, 13, 597, 261, 1615, 411, 18666, 3719, 327, 638, 31, 5411, 309, 12, 3980, 18, 1467, 1435, 422, 374, 13, 288, 7734, 20533, 273, 18666, 273, 300, 21, 31, 7734, 5066, 1595, 5621, 7734, 327, 638, 31, 5411, 289, 5411, 309, 12, 1615, 422, 18666, 13, 288, 7734, 364, 12, 474, 277, 33, 1896, 620, 31, 77, 34, 33, 1154, 620, 31, 2 ]
public boolean isCurrent(RubyId rubyId) { if (id == null || id.intValue() == 0) { return false; } else if (rubyId.equals(id)) { return true; } else if (next != null) { return next.isCurrent(rubyId);
public static boolean isCurrent(Ruby ruby, RubyId rubyId) { RubyVarmap vars = ruby.getDynamicVars(); while (vars != null) { if (vars.id == null || vars.id.intValue() == 0) { break; } if (vars.id == rubyId) { return true; } vars = vars.next;
public boolean isCurrent(RubyId rubyId) { if (id == null || id.intValue() == 0) { return false; } else if (rubyId.equals(id)) { return true; } else if (next != null) { return next.isCurrent(rubyId); } return false; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyVarmap.java/clean/org/jruby/interpreter/RubyVarmap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 25694, 12, 54, 10340, 548, 22155, 548, 13, 288, 3639, 309, 261, 350, 422, 446, 747, 612, 18, 474, 620, 1435, 422, 374, 13, 288, 5411, 327, 629, 31, 3639, 289, 469, 309, 261, 27768, 548, 18, 14963, 12, 350, 3719, 288, 5411, 327, 638, 31, 3639, 289, 469, 309, 261, 4285, 480, 446, 13, 288, 5411, 327, 1024, 18, 291, 3935, 12, 27768, 548, 1769, 3639, 289, 3639, 327, 629, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 25694, 12, 54, 10340, 548, 22155, 548, 13, 288, 3639, 309, 261, 350, 422, 446, 747, 612, 18, 474, 620, 1435, 422, 374, 13, 288, 5411, 327, 629, 31, 3639, 289, 469, 309, 261, 27768, 548, 18, 14963, 12, 350, 3719, 288, 5411, 327, 638, 31, 3639, 289, 469, 309, 261, 4285, 480, 446, 13, 288, 5411, 327, 1024, 18, 291, 3935, 12, 27768, 548, 1769, 3639, 289, 3639, 327, 629, 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 ]
Value v = cssEngine.parsePropertyValue(name, value);
Value v = cssEngine.parsePropertyValue (SVGStylableElement.this, name, value);
public void propertyChanged(String name, String value, String prio) throws DOMException { int idx = cssEngine.getPropertyIndex(name); for (int i = 0; i < declaration.size(); i++) { if (idx == declaration.getIndex(i)) { Value v = cssEngine.parsePropertyValue(name, value); declaration.put(i, v, idx, prio.length() > 0); mutate = true; setAttributeNS(null, SVG_STYLE_ATTRIBUTE, declaration.toString(cssEngine)); mutate = false; return; } } Value v = cssEngine.parsePropertyValue(name, value); declaration.append(v, idx, prio.length() > 0); mutate = true; setAttributeNS(null, SVG_STYLE_ATTRIBUTE, declaration.toString(cssEngine)); mutate = false; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/afba8819b87561594e7cbedb56be4d15fbbfe279/SVGStylableElement.java/clean/sources/org/apache/batik/dom/svg/SVGStylableElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1272, 5033, 12, 780, 508, 16, 514, 460, 16, 514, 14705, 83, 13, 5411, 1216, 4703, 503, 288, 5411, 509, 2067, 273, 3747, 4410, 18, 588, 1396, 1016, 12, 529, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 8266, 18, 1467, 5621, 277, 27245, 288, 7734, 309, 261, 3465, 422, 8266, 18, 588, 1016, 12, 77, 3719, 288, 10792, 1445, 331, 273, 3747, 4410, 18, 2670, 16107, 261, 26531, 24273, 80, 429, 1046, 18, 2211, 16, 508, 16, 460, 1769, 10792, 8266, 18, 458, 12, 77, 16, 331, 16, 2067, 16, 14705, 83, 18, 2469, 1435, 405, 374, 1769, 10792, 15887, 273, 638, 31, 10792, 4730, 3156, 12, 2011, 16, 11281, 67, 15066, 67, 11616, 16, 4766, 282, 8266, 18, 10492, 12, 5212, 4410, 10019, 10792, 15887, 273, 629, 31, 10792, 327, 31, 7734, 289, 5411, 289, 5411, 1445, 331, 273, 3747, 4410, 18, 2670, 16107, 261, 26531, 24273, 80, 429, 1046, 18, 2211, 16, 508, 16, 460, 1769, 5411, 8266, 18, 6923, 12, 90, 16, 2067, 16, 14705, 83, 18, 2469, 1435, 405, 374, 1769, 5411, 15887, 273, 638, 31, 5411, 4730, 3156, 12, 2011, 16, 11281, 67, 15066, 67, 11616, 16, 21821, 8266, 18, 10492, 12, 5212, 4410, 10019, 5411, 15887, 273, 629, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1272, 5033, 12, 780, 508, 16, 514, 460, 16, 514, 14705, 83, 13, 5411, 1216, 4703, 503, 288, 5411, 509, 2067, 273, 3747, 4410, 18, 588, 1396, 1016, 12, 529, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 8266, 18, 1467, 5621, 277, 27245, 288, 7734, 309, 261, 3465, 422, 8266, 18, 588, 1016, 12, 77, 3719, 288, 10792, 1445, 331, 273, 3747, 4410, 18, 2670, 16107, 261, 26531, 24273, 80, 429, 1046, 18, 2211, 16, 508, 16, 460, 1769, 10792, 8266, 18, 458, 12, 77, 16, 331, 16, 2067, 16, 14705, 83, 18, 2469, 1435, 405, 374, 1769, 10792, 15887, 273, 638, 31, 10792, 4730, 3156, 12, 2011, 16, 11281, 67, 15066, 2 ]
b.toString() + "\".", "22003", -413); }
b.toString() + "\".", "22003", -413); }
private int bigDecimalToPackedDecimalBytes (java.math.BigDecimal b, int precision, int scale) throws SQLException { int declaredPrecision = precision; int declaredScale = scale; // packed decimal may only be up to 31 digits. if (declaredPrecision > 31) { // this is a bugcheck only !!! clearDdm (); throw new java.sql.SQLException ("Packed decimal may only be up to 31 digits!"); } // get absolute unscaled value of the BigDecimal as a String. String unscaledStr = b.unscaledValue().abs().toString(); // get precision of the BigDecimal. int bigPrecision = unscaledStr.length(); if (bigPrecision > 31) { clearDdm (); throw new SQLException ("The numeric literal \"" + b.toString() + "\" is not valid because its value is out of range.", "42820", -405); } int bigScale = b.scale(); int bigWholeIntegerLength = bigPrecision - bigScale; if ( (bigWholeIntegerLength > 0) && (!unscaledStr.equals ("0")) ) { // if whole integer part exists, check if overflow. int declaredWholeIntegerLength = declaredPrecision - declaredScale; if (bigWholeIntegerLength > declaredWholeIntegerLength) { clearDdm (); throw new SQLException ("Overflow occurred during numeric data type conversion of \"" + b.toString() + "\".", "22003", -413); } } // convert the unscaled value to a packed decimal bytes. // get unicode '0' value. int zeroBase = '0'; // start index in target packed decimal. int packedIndex = declaredPrecision-1; // start index in source big decimal. int bigIndex; if (bigScale >= declaredScale) { // If target scale is less than source scale, // discard excessive fraction. // set start index in source big decimal to ignore excessive fraction. bigIndex = bigPrecision-1-(bigScale-declaredScale); if (bigIndex < 0) { // all digits are discarded, so only process the sign nybble. bytes[offset+(packedIndex+1)/2] = (byte) ( (b.signum()>=0)?12:13 ); // sign nybble } else { // process the last nybble together with the sign nybble. bytes[offset+(packedIndex+1)/2] = (byte) ( ( (unscaledStr.charAt(bigIndex)-zeroBase) << 4 ) + // last nybble ( (b.signum()>=0)?12:13 ) ); // sign nybble } packedIndex-=2; bigIndex-=2; } else { // If target scale is greater than source scale, // pad the fraction with zero. // set start index in source big decimal to pad fraction with zero. bigIndex = declaredScale-bigScale-1; // process the sign nybble. bytes[offset+(packedIndex+1)/2] = (byte) ( (b.signum()>=0)?12:13 ); // sign nybble for (packedIndex-=2, bigIndex-=2; bigIndex>=0; packedIndex-=2, bigIndex-=2) bytes[offset+(packedIndex+1)/2] = (byte) 0; if (bigIndex == -1) { bytes[offset+(packedIndex+1)/2] = (byte) ( (unscaledStr.charAt(bigPrecision-1)-zeroBase) << 4 ); // high nybble packedIndex-=2; bigIndex = bigPrecision-3; } else { bigIndex = bigPrecision-2; } } // process the rest. for (; bigIndex>=0; packedIndex-=2, bigIndex-=2) { bytes[offset+(packedIndex+1)/2] = (byte) ( ( (unscaledStr.charAt(bigIndex)-zeroBase) << 4 ) + // high nybble ( unscaledStr.charAt(bigIndex+1)-zeroBase ) ); // low nybble } // process the first nybble when there is one left. if (bigIndex == -1) { bytes[offset+(packedIndex+1)/2] = (byte) (unscaledStr.charAt(0) - zeroBase); packedIndex-=2; } // pad zero in front of the big decimal if necessary. for (; packedIndex>=-1; packedIndex-=2) bytes[offset+(packedIndex+1)/2] = (byte) 0; return declaredPrecision/2 + 1; }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/977561c9de22d12b40a3a2f79a8df22ba7fc7752/DDMWriter.java/clean/java/drda/org/apache/derby/impl/drda/DDMWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 29741, 774, 4420, 329, 5749, 2160, 261, 6290, 18, 15949, 18, 29436, 324, 16, 4766, 7734, 509, 6039, 16, 509, 3159, 13, 3639, 1216, 6483, 288, 3639, 509, 7886, 15410, 273, 6039, 31, 3639, 509, 7886, 5587, 273, 3159, 31, 3639, 368, 12456, 6970, 2026, 1338, 506, 731, 358, 8231, 6815, 18, 3639, 309, 261, 16571, 15410, 405, 8231, 13, 288, 368, 333, 353, 279, 7934, 1893, 1338, 401, 8548, 2398, 2424, 40, 10956, 261, 1769, 5411, 604, 394, 2252, 18, 4669, 18, 23116, 7566, 4420, 329, 6970, 2026, 1338, 506, 731, 358, 8231, 6815, 4442, 1769, 3639, 289, 3639, 368, 336, 4967, 16804, 12825, 460, 434, 326, 8150, 487, 279, 514, 18, 3639, 514, 16804, 12825, 1585, 273, 324, 18, 318, 20665, 620, 7675, 5113, 7675, 10492, 5621, 3639, 368, 336, 6039, 434, 326, 8150, 18, 3639, 509, 5446, 15410, 273, 16804, 12825, 1585, 18, 2469, 5621, 3639, 309, 261, 14002, 15410, 405, 8231, 13, 288, 5411, 2424, 40, 10956, 261, 1769, 5411, 604, 394, 6483, 7566, 1986, 6389, 7158, 11843, 397, 4766, 565, 324, 18, 10492, 1435, 397, 4766, 565, 7023, 353, 486, 923, 2724, 2097, 460, 353, 596, 434, 1048, 1199, 16, 4766, 565, 315, 24, 6030, 3462, 3113, 4766, 565, 300, 24, 6260, 1769, 3639, 289, 3639, 509, 5446, 5587, 273, 324, 18, 5864, 5621, 3639, 509, 5446, 2888, 790, 4522, 1782, 273, 5446, 15410, 300, 5446, 5587, 31, 3639, 309, 261, 261, 14002, 2888, 790, 4522, 1782, 405, 374, 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, 509, 29741, 774, 4420, 329, 5749, 2160, 261, 6290, 18, 15949, 18, 29436, 324, 16, 4766, 7734, 509, 6039, 16, 509, 3159, 13, 3639, 1216, 6483, 288, 3639, 509, 7886, 15410, 273, 6039, 31, 3639, 509, 7886, 5587, 273, 3159, 31, 3639, 368, 12456, 6970, 2026, 1338, 506, 731, 358, 8231, 6815, 18, 3639, 309, 261, 16571, 15410, 405, 8231, 13, 288, 368, 333, 353, 279, 7934, 1893, 1338, 401, 8548, 2398, 2424, 40, 10956, 261, 1769, 5411, 604, 394, 2252, 18, 4669, 18, 23116, 7566, 4420, 329, 6970, 2026, 1338, 506, 731, 358, 8231, 6815, 4442, 1769, 3639, 289, 3639, 368, 336, 4967, 16804, 12825, 460, 434, 326, 8150, 487, 279, 514, 18, 3639, 514, 16804, 2 ]
sb.append(days).append("d");
sb.append(days).append('d');
public static String formatTime(long timeInterval, int maxTerms, boolean withSecondFractions) { StringBuffer sb = new StringBuffer(64); long l = timeInterval; int termCount = 0; // int weeks = (int)(l / ((long)7*24*60*60*1000)); if (weeks > 0) { sb.append(weeks).append("w"); termCount++; l = l - ((long)weeks * ((long)7*24*60*60*1000)); } // int days = (int)(l / ((long)24*60*60*1000)); if (days > 0) { sb.append(days).append("d"); termCount++; l = l - ((long)days * ((long)24*60*60*1000)); } if(termCount >= maxTerms) { return sb.toString(); } // int hours = (int)(l / ((long)60*60*1000)); if (hours > 0) { sb.append(hours).append("h"); termCount++; l = l - ((long)hours * ((long)60*60*1000)); } if(termCount >= maxTerms) { return sb.toString(); } // int minutes = (int)(l / ((long)60*1000)); if (minutes > 0) { sb.append(minutes).append("m"); termCount++; l = l - ((long)minutes * ((long)60*1000)); } if(termCount >= maxTerms) { return sb.toString(); } if(withSecondFractions && ((maxTerms - termCount) >= 2)) { if (l > 0) { double fractionalSeconds = ((double) l) / ((double) 1000.0); DecimalFormat fix3 = new DecimalFormat("0.000"); sb.append(fix3.format(fractionalSeconds)).append("s"); termCount++; l = l - ((long)fractionalSeconds * (long)1000); } } else { int seconds = (int)(l / (long)1000); if (seconds > 0) { sb.append(seconds).append("s"); termCount++; l = l - ((long)seconds * (long)1000); } } // return sb.toString(); }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/62fd59041864b4ed1f43adc676de6bfb5ea977f3/TimeUtil.java/buggy/src/freenet/support/TimeUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 950, 12, 5748, 813, 4006, 16, 509, 943, 11673, 16, 1250, 598, 8211, 13724, 87, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 1105, 1769, 202, 202, 5748, 328, 273, 813, 4006, 31, 202, 202, 474, 2481, 1380, 273, 374, 31, 202, 202, 759, 202, 202, 474, 17314, 273, 261, 474, 21433, 80, 342, 14015, 5748, 13, 27, 14, 3247, 14, 4848, 14, 4848, 14, 18088, 10019, 202, 202, 430, 261, 10741, 87, 405, 374, 13, 288, 5411, 2393, 18, 6923, 12, 10741, 87, 2934, 6923, 2932, 91, 8863, 1082, 225, 2481, 1380, 9904, 31, 1082, 225, 328, 273, 328, 300, 14015, 5748, 13, 10741, 87, 380, 14015, 5748, 13, 27, 14, 3247, 14, 4848, 14, 4848, 14, 18088, 10019, 202, 202, 97, 202, 202, 759, 202, 202, 474, 4681, 273, 261, 474, 21433, 80, 342, 14015, 5748, 13, 3247, 14, 4848, 14, 4848, 14, 18088, 10019, 202, 202, 430, 261, 9810, 405, 374, 13, 288, 5411, 2393, 18, 6923, 12, 9810, 2934, 6923, 2932, 72, 8863, 1082, 225, 2481, 1380, 9904, 31, 1082, 225, 328, 273, 328, 300, 14015, 5748, 13, 9810, 380, 14015, 5748, 13, 3247, 14, 4848, 14, 4848, 14, 18088, 10019, 202, 202, 97, 202, 202, 430, 12, 6408, 1380, 1545, 943, 11673, 13, 288, 1082, 225, 327, 2393, 18, 10492, 5621, 202, 202, 97, 202, 202, 759, 202, 202, 474, 7507, 273, 261, 474, 21433, 80, 342, 14015, 5748, 13, 4848, 14, 4848, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 740, 950, 12, 5748, 813, 4006, 16, 509, 943, 11673, 16, 1250, 598, 8211, 13724, 87, 13, 288, 202, 202, 780, 1892, 2393, 273, 394, 6674, 12, 1105, 1769, 202, 202, 5748, 328, 273, 813, 4006, 31, 202, 202, 474, 2481, 1380, 273, 374, 31, 202, 202, 759, 202, 202, 474, 17314, 273, 261, 474, 21433, 80, 342, 14015, 5748, 13, 27, 14, 3247, 14, 4848, 14, 4848, 14, 18088, 10019, 202, 202, 430, 261, 10741, 87, 405, 374, 13, 288, 5411, 2393, 18, 6923, 12, 10741, 87, 2934, 6923, 2932, 91, 8863, 1082, 225, 2481, 1380, 9904, 31, 1082, 225, 328, 273, 328, 300, 14015, 5748, 13, 10741, 87, 380, 14015, 5748, 13, 2 ]
}
displayGeneratedNodes(); }
public DataMapTree(TreeModel model, SoarWorkingMemoryModel _swmm) { super(model); swmm = _swmm; s_DataMapTree = this; getSelectionModel().setSelectionMode(TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION); DragSource.getDefaultDragSource().createDefaultDragGestureRecognizer(this,DnDConstants.ACTION_LINK | DnDConstants.ACTION_COPY_OR_MOVE,dgListener); setAutoscrolls(true); registerKeyboardAction(new ActionListener() { public void actionPerformed(ActionEvent e) { removeEdge(); } }, KeyStroke.getKeyStroke(KeyEvent.VK_BACK_SPACE, 0), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); registerKeyboardAction(new ActionListener() { public void actionPerformed(ActionEvent e) { removeEdge(); } }, KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); registerKeyboardAction(new ActionListener() { public void actionPerformed(ActionEvent e) { SoarVertex theVertex = ((FakeTreeNode)getSelectionPath().getLastPathComponent()).getEnumeratingVertex(); if (theVertex.isEditable()) { editValue(); } } }, KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); addMouseListener(new MouseAdapter() { // Open the rules associated with invalid generated node public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { FakeTreeNode ftn = (FakeTreeNode)getSelectionPath().getLastPathComponent(); NamedEdge ne = ftn.getEdge(); if(ne.isGenerated() && (ne.getNode() != null)) { (ne.getNode()).openRules(MainFrame.getMainFrame(), ne.getLine()); } } } public void mousePressed(MouseEvent e) { if (e.isPopupTrigger()) { suggestShowContextMenu(e.getX(),e.getY()); } } public void mouseReleased(MouseEvent e) { if(e.isPopupTrigger()) { suggestShowContextMenu(e.getX(),e.getY()); } } }); } // end of DataMapTree constructor
47007 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47007/d9311230f82f4404a6caf7a2cb902c26b0b86646/DataMapTree.java/clean/OldSoar/trunk/visualsoar/Source/edu/umich/visualsoar/datamap/DataMapTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1910, 863, 2471, 12, 2471, 1488, 938, 16, 6155, 297, 14836, 6031, 1488, 389, 5328, 7020, 13, 288, 202, 202, 9565, 12, 2284, 1769, 202, 202, 5328, 7020, 273, 389, 5328, 7020, 31, 565, 272, 67, 31982, 2471, 273, 333, 31, 202, 202, 588, 6233, 1488, 7675, 542, 6233, 2309, 12, 2471, 6233, 1488, 18, 13498, 6067, 3047, 57, 21667, 67, 26557, 67, 1090, 15445, 1769, 202, 202, 11728, 1830, 18, 588, 1868, 11728, 1830, 7675, 2640, 1868, 11728, 43, 16704, 28131, 12, 2211, 16, 19053, 40, 2918, 18, 12249, 67, 10554, 571, 463, 82, 40, 2918, 18, 12249, 67, 24875, 67, 916, 67, 16537, 16, 72, 75, 2223, 1769, 202, 202, 542, 21023, 71, 2693, 87, 12, 3767, 1769, 202, 202, 4861, 17872, 1803, 12, 2704, 25962, 1435, 288, 9506, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 6862, 202, 4479, 6098, 5621, 9506, 202, 97, 1082, 202, 5779, 1082, 202, 653, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 8720, 67, 6616, 16, 374, 3631, 1082, 202, 12557, 1157, 67, 4722, 882, 916, 67, 3932, 67, 3313, 39, 20093, 67, 22922, 1769, 202, 202, 4861, 17872, 1803, 12, 2704, 25962, 1435, 288, 9506, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 288, 6862, 202, 4479, 6098, 5621, 9506, 202, 97, 1082, 202, 5779, 1082, 202, 653, 14602, 18, 588, 653, 14602, 12, 653, 1133, 18, 58, 47, 67, 6460, 16, 374, 3631, 1082, 202, 12557, 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, 1910, 863, 2471, 12, 2471, 1488, 938, 16, 6155, 297, 14836, 6031, 1488, 389, 5328, 7020, 13, 288, 202, 202, 9565, 12, 2284, 1769, 202, 202, 5328, 7020, 273, 389, 5328, 7020, 31, 565, 272, 67, 31982, 2471, 273, 333, 31, 202, 202, 588, 6233, 1488, 7675, 542, 6233, 2309, 12, 2471, 6233, 1488, 18, 13498, 6067, 3047, 57, 21667, 67, 26557, 67, 1090, 15445, 1769, 202, 202, 11728, 1830, 18, 588, 1868, 11728, 1830, 7675, 2640, 1868, 11728, 43, 16704, 28131, 12, 2211, 16, 19053, 40, 2918, 18, 12249, 67, 10554, 571, 463, 82, 40, 2918, 18, 12249, 67, 24875, 67, 916, 67, 16537, 16, 72, 75, 2223, 1769, 202, 202, 542, 21023, 71, 2693, 2 ]
design = new BirtViewerReportDesignHandle( null, reportRunnable .getReportName( ) );
{ design = new BirtViewerReportDesignHandle( reportRunnable ); }
protected void __initParameters( HttpServletRequest request ) throws Exception { IViewerReportDesignHandle design = null; IReportRunnable reportRunnable = null; IReportDocument reportDocumentInstance = ReportEngineService .getInstance( ).openReportDocument( this.reportDesignName, this.reportDocumentName ); if ( reportDocumentInstance != null ) { reportRunnable = reportDocumentInstance.getReportRunnable( ); reportDocumentInstance.close( ); } if ( reportRunnable != null ) design = new BirtViewerReportDesignHandle( null, reportRunnable .getReportName( ) ); else design = getDesignHandle( request ); InputOptions options = new InputOptions( ); options.setOption( InputOptions.OPT_REQUEST, request ); options.setOption( InputOptions.OPT_LOCALE, locale ); Collection parameterList = this.getReportService( ) .getParameterDefinitions( design, options ); // TODO: Change parameters to be Map, not HashMap this.parameters = (HashMap) getParsedParameters( design, parameterList, request, options ); this.missingParameter = validateParameters( parameterList, this.parameters ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/593a2a26389f37c225fb92d1cef17318272cc832/BaseAttributeBean.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/BaseAttributeBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1001, 2738, 2402, 12, 9984, 590, 262, 1082, 202, 15069, 1185, 202, 95, 202, 202, 45, 18415, 4820, 15478, 3259, 8281, 273, 446, 31, 202, 202, 45, 4820, 20013, 2605, 20013, 273, 446, 31, 202, 202, 45, 4820, 2519, 2605, 2519, 1442, 273, 8706, 4410, 1179, 9506, 202, 18, 588, 1442, 12, 262, 18, 3190, 4820, 2519, 12, 333, 18, 6006, 15478, 461, 16, 25083, 202, 2211, 18, 6006, 2519, 461, 11272, 202, 202, 430, 261, 2605, 2519, 1442, 480, 446, 262, 202, 202, 95, 1082, 202, 6006, 20013, 273, 2605, 2519, 1442, 18, 588, 4820, 20013, 12, 11272, 1082, 202, 6006, 2519, 1442, 18, 4412, 12, 11272, 202, 202, 97, 202, 202, 430, 261, 2605, 20013, 480, 446, 262, 1082, 202, 16934, 273, 394, 605, 2714, 18415, 4820, 15478, 3259, 12, 446, 16, 2605, 20013, 6862, 202, 18, 588, 4820, 461, 12, 262, 11272, 202, 202, 12107, 1082, 202, 16934, 273, 2343, 281, 724, 3259, 12, 590, 11272, 202, 202, 1210, 1320, 702, 273, 394, 2741, 1320, 12, 11272, 202, 202, 2116, 18, 542, 1895, 12, 2741, 1320, 18, 15620, 67, 5519, 16, 590, 11272, 202, 202, 2116, 18, 542, 1895, 12, 2741, 1320, 18, 15620, 67, 25368, 16, 2573, 11272, 202, 202, 2532, 1569, 682, 273, 333, 18, 588, 4820, 1179, 12, 262, 9506, 202, 18, 588, 1662, 7130, 12, 8281, 16, 702, 11272, 202, 202, 759, 2660, 30, 7576, 1472, 358, 506, 1635, 16, 486, 4317, 202, 202, 2211, 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, 918, 1001, 2738, 2402, 12, 9984, 590, 262, 1082, 202, 15069, 1185, 202, 95, 202, 202, 45, 18415, 4820, 15478, 3259, 8281, 273, 446, 31, 202, 202, 45, 4820, 20013, 2605, 20013, 273, 446, 31, 202, 202, 45, 4820, 2519, 2605, 2519, 1442, 273, 8706, 4410, 1179, 9506, 202, 18, 588, 1442, 12, 262, 18, 3190, 4820, 2519, 12, 333, 18, 6006, 15478, 461, 16, 25083, 202, 2211, 18, 6006, 2519, 461, 11272, 202, 202, 430, 261, 2605, 2519, 1442, 480, 446, 262, 202, 202, 95, 1082, 202, 6006, 20013, 273, 2605, 2519, 1442, 18, 588, 4820, 20013, 12, 11272, 1082, 202, 6006, 2519, 1442, 18, 4412, 12, 11272, 202, 202, 97, 202, 202, 430, 261, 2 ]
URL pluginManifest = allBundles[i].getEntry("plugin.xml"); if (pluginManifest == null) pluginManifest = allBundles[i].getEntry("fragment.xml");
URL pluginManifest = EclipseBundleListener.getExtensionURL(allBundles[i], false);
public long getContributionsTimestamp() { BundleContext context = Activator.getContext(); if (context == null) return 0; // If the check config prop is false or not set then exit if (!"true".equalsIgnoreCase(context.getProperty(IRegistryConstants.PROP_CHECK_CONFIG))) //$NON-NLS-1$ return 0; Bundle[] allBundles = context.getBundles(); long result = 0; for (int i = 0; i < allBundles.length; i++) { URL pluginManifest = allBundles[i].getEntry("plugin.xml"); //$NON-NLS-1$ if (pluginManifest == null) pluginManifest = allBundles[i].getEntry("fragment.xml"); //$NON-NLS-1$ if (pluginManifest == null) continue; try { URLConnection connection = pluginManifest.openConnection(); result ^= connection.getLastModified() + allBundles[i].getBundleId(); } catch (IOException e) { return 0; } } return result; }
13530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13530/111c21650b352430f21b5c8cf71cb9759417ed21/RegistryStrategyOSGI.java/buggy/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/osgi/RegistryStrategyOSGI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 336, 442, 15326, 4921, 1435, 288, 202, 202, 3405, 1042, 819, 273, 26939, 639, 18, 29120, 5621, 202, 202, 430, 261, 2472, 422, 446, 13, 1082, 202, 2463, 374, 31, 202, 202, 759, 971, 326, 866, 642, 2270, 353, 629, 578, 486, 444, 1508, 2427, 202, 202, 430, 261, 4442, 3767, 9654, 14963, 5556, 12, 2472, 18, 588, 1396, 12, 45, 4243, 2918, 18, 15811, 67, 10687, 67, 7203, 20349, 4329, 3993, 17, 5106, 17, 21, 8, 26924, 202, 2463, 374, 31, 202, 202, 3405, 8526, 777, 16151, 273, 819, 18, 588, 16151, 5621, 202, 202, 5748, 563, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 777, 16151, 18, 2469, 31, 277, 27245, 288, 1082, 202, 1785, 1909, 9121, 273, 777, 16151, 63, 77, 8009, 588, 1622, 2932, 4094, 18, 2902, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 430, 261, 4094, 9121, 422, 446, 13, 9506, 202, 4094, 9121, 273, 777, 16151, 63, 77, 8009, 588, 1622, 2932, 11956, 18, 2902, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 430, 261, 4094, 9121, 422, 446, 13, 9506, 202, 17143, 31, 1082, 202, 698, 288, 9506, 202, 14790, 1459, 273, 1909, 9121, 18, 3190, 1952, 5621, 9506, 202, 2088, 10352, 1459, 18, 588, 14747, 1435, 397, 777, 16151, 63, 77, 8009, 588, 3405, 548, 5621, 1082, 202, 97, 1044, 261, 14106, 425, 13, 288, 9506, 202, 2463, 374, 31, 1082, 202, 97, 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, 1525, 336, 442, 15326, 4921, 1435, 288, 202, 202, 3405, 1042, 819, 273, 26939, 639, 18, 29120, 5621, 202, 202, 430, 261, 2472, 422, 446, 13, 1082, 202, 2463, 374, 31, 202, 202, 759, 971, 326, 866, 642, 2270, 353, 629, 578, 486, 444, 1508, 2427, 202, 202, 430, 261, 4442, 3767, 9654, 14963, 5556, 12, 2472, 18, 588, 1396, 12, 45, 4243, 2918, 18, 15811, 67, 10687, 67, 7203, 20349, 4329, 3993, 17, 5106, 17, 21, 8, 26924, 202, 2463, 374, 31, 202, 202, 3405, 8526, 777, 16151, 273, 819, 18, 588, 16151, 5621, 202, 202, 5748, 563, 273, 374, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 777, 16151, 18, 2 ]
public void setByteOrder (ByteOrder byteOrder)
public void setByteOrder(ByteOrder byteOrder)
public void setByteOrder (ByteOrder byteOrder) { this.byteOrder = byteOrder; }
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/42b143f8e2002d1d01907e490d5a5025c34c7be2/ImageInputStreamImpl.java/buggy/libjava/javax/imageio/stream/ImageInputStreamImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3216, 2448, 12, 3216, 2448, 25410, 13, 225, 288, 565, 333, 18, 7229, 2448, 273, 25410, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3216, 2448, 12, 3216, 2448, 25410, 13, 225, 288, 565, 333, 18, 7229, 2448, 273, 25410, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
info = new BugzillaReportNode(value, hit, isExact);
info = new BugzillaReportElement(value, hit, isExact);
private List<BugzillaReportNode> getDoiList(List<BugzillaSearchHit> results) { List<BugzillaReportNode> doiList = new ArrayList<BugzillaReportNode>(); boolean isExact = (scope == BugzillaMylarSearch.FULLY_QUAL || scope == BugzillaMylarSearch.LOCAL_QUAL) ? true : false; BugzillaReportNode info = null; // go through all of the results and create a DoiInfo list for (BugzillaSearchHit hit : results) { try { float value = 0; info = new BugzillaReportNode(value, hit, isExact); // only download the bug for the exact matches // downloading bugs kills the time - can we do this elsewhere? - // different thread? persistant? // if(isExact){ // // get the bug report for the doi info item // BugReport b = BugzillaRepositoryUtil.getInstance().getBug( // hit.getId()); // // add the bug to the doi info for future use // info.setBug(b); // } } catch (Exception e) { MylarStatusHandler.log(e, "search failed"); } finally { doiList.add(info); } } return doiList; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/558d58605a0fbb2adb69fc938209c46cfe02bf81/BugzillaMylarSearchOperation.java/clean/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/bugs/search/BugzillaMylarSearchOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 987, 32, 19865, 15990, 4820, 907, 34, 11165, 77, 682, 12, 682, 32, 19865, 15990, 2979, 13616, 34, 1686, 13, 288, 202, 202, 682, 32, 19865, 15990, 4820, 907, 34, 25183, 682, 273, 394, 2407, 32, 19865, 15990, 4820, 907, 34, 5621, 202, 202, 6494, 353, 14332, 273, 261, 4887, 422, 16907, 15990, 12062, 7901, 2979, 18, 18111, 61, 67, 8729, 747, 2146, 422, 16907, 15990, 12062, 7901, 2979, 18, 14922, 67, 8729, 13, 692, 638, 9506, 202, 30, 629, 31, 202, 202, 19865, 15990, 4820, 907, 1123, 273, 446, 31, 202, 202, 759, 1960, 3059, 777, 434, 326, 1686, 471, 752, 279, 2256, 77, 966, 666, 202, 202, 1884, 261, 19865, 15990, 2979, 13616, 6800, 294, 1686, 13, 288, 1082, 202, 698, 288, 9506, 202, 5659, 460, 273, 374, 31, 9506, 202, 1376, 273, 394, 16907, 15990, 4820, 907, 12, 1132, 16, 6800, 16, 353, 14332, 1769, 9506, 202, 759, 1338, 4224, 326, 7934, 364, 326, 5565, 1885, 9506, 202, 759, 23742, 22398, 8673, 87, 326, 813, 300, 848, 732, 741, 333, 25795, 35, 300, 9506, 202, 759, 3775, 2650, 35, 3898, 970, 35, 9506, 202, 759, 309, 12, 291, 14332, 15329, 9506, 202, 759, 368, 336, 326, 7934, 2605, 364, 326, 25183, 1123, 761, 9506, 202, 759, 16907, 4820, 324, 273, 16907, 15990, 3305, 1304, 18, 588, 1442, 7675, 588, 19865, 12, 9506, 202, 759, 6800, 18, 26321, 10663, 9506, 202, 759, 368, 527, 326, 7934, 358, 326, 25183, 1123, 364, 3563, 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, 987, 32, 19865, 15990, 4820, 907, 34, 11165, 77, 682, 12, 682, 32, 19865, 15990, 2979, 13616, 34, 1686, 13, 288, 202, 202, 682, 32, 19865, 15990, 4820, 907, 34, 25183, 682, 273, 394, 2407, 32, 19865, 15990, 4820, 907, 34, 5621, 202, 202, 6494, 353, 14332, 273, 261, 4887, 422, 16907, 15990, 12062, 7901, 2979, 18, 18111, 61, 67, 8729, 747, 2146, 422, 16907, 15990, 12062, 7901, 2979, 18, 14922, 67, 8729, 13, 692, 638, 9506, 202, 30, 629, 31, 202, 202, 19865, 15990, 4820, 907, 1123, 273, 446, 31, 202, 202, 759, 1960, 3059, 777, 434, 326, 1686, 471, 752, 279, 2256, 77, 966, 666, 202, 202, 1884, 261, 19865, 15990, 2979, 13616, 6800, 2 ]
Category log = ThreadCategory.getInstance();
Category log = ThreadCategory.getInstance(getClass());
public synchronized void stop() { m_status = STOP_PENDING; m_scheduler.stop(); m_receiver.close(); Iterator iter = getServiceMonitors().values().iterator(); while (iter.hasNext()) { ServiceMonitor sm = (ServiceMonitor) iter.next(); sm.release(); } m_scheduler = null; m_status = STOPPED; Category log = ThreadCategory.getInstance(); if (log.isDebugEnabled()) log.debug("stop: Poller stopped"); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/8858682ed67097eb548e41ccbc9497ff4c06b1cd/Poller.java/buggy/src/services/org/opennms/netmgt/poller/Poller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 2132, 1435, 288, 3639, 312, 67, 2327, 273, 17815, 67, 25691, 31, 3639, 312, 67, 19972, 18, 5681, 5621, 3639, 312, 67, 24454, 18, 4412, 5621, 3639, 4498, 1400, 273, 6373, 11415, 13704, 7675, 2372, 7675, 9838, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 1956, 7187, 3029, 273, 261, 1179, 7187, 13, 1400, 18, 4285, 5621, 5411, 3029, 18, 9340, 5621, 3639, 289, 3639, 312, 67, 19972, 273, 446, 31, 3639, 312, 67, 2327, 273, 17815, 12120, 31, 3639, 9856, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, 797, 10663, 3639, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 5411, 613, 18, 4148, 2932, 5681, 30, 6730, 749, 9627, 8863, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 3852, 918, 2132, 1435, 288, 3639, 312, 67, 2327, 273, 17815, 67, 25691, 31, 3639, 312, 67, 19972, 18, 5681, 5621, 3639, 312, 67, 24454, 18, 4412, 5621, 3639, 4498, 1400, 273, 6373, 11415, 13704, 7675, 2372, 7675, 9838, 5621, 3639, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 1956, 7187, 3029, 273, 261, 1179, 7187, 13, 1400, 18, 4285, 5621, 5411, 3029, 18, 9340, 5621, 3639, 289, 3639, 312, 67, 19972, 273, 446, 31, 3639, 312, 67, 2327, 273, 17815, 12120, 31, 3639, 9856, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, 797, 10663, 3639, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 5411, 613, 18, 4148, 2932, 5681, 30, 6730, 749, 9627, 8863, 2 ]
public final void initScriptFunction(Context cx, Scriptable scope, String functionName)
public final void initScriptFunction(Context cx, Scriptable scope)
public final void initScriptFunction(Context cx, Scriptable scope, String functionName) { this.functionName = functionName; ScriptRuntime.setFunctionProtoAndParent(this, scope); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/bcf9f007878d03ecebb8f7a68970dc86c51376f1/NativeFunction.java/clean/js/rhino/src/org/mozilla/javascript/NativeFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1208, 3651, 2083, 12, 1042, 9494, 16, 22780, 2146, 16, 29159, 514, 14117, 13, 565, 288, 3639, 333, 18, 915, 461, 273, 14117, 31, 3639, 7739, 5576, 18, 542, 2083, 6262, 1876, 3054, 12, 2211, 16, 2146, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1208, 3651, 2083, 12, 1042, 9494, 16, 22780, 2146, 16, 29159, 514, 14117, 13, 565, 288, 3639, 333, 18, 915, 461, 273, 14117, 31, 3639, 7739, 5576, 18, 542, 2083, 6262, 1876, 3054, 12, 2211, 16, 2146, 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 ]
setActive(false, forceVisibility); }
setActive(false, forceVisibility); }
public void deactivate(boolean forceVisibility) { setActive(false, forceVisibility); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f1c8b0aa355c00a6c82a289c808984de6778bfca/EditorActionBars.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/EditorActionBars.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18790, 12, 6494, 2944, 10135, 13, 288, 3639, 20669, 12, 5743, 16, 2944, 10135, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18790, 12, 6494, 2944, 10135, 13, 288, 3639, 20669, 12, 5743, 16, 2944, 10135, 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 ]
storeResult("Queue15", result.getTestTime());
Execution execution = createExecution("Queue15"); execution.addMeasurement(new Measurement("msgsReceivedPerSec", (double)(numMessages * 1000) / result.getTestTime())); pm.saveExecution(execution);
public void testQueue15() { log.info("Running test Queue15"); //First drain the destination runJob(createDefaultDrainJob(testQueueName)); //Now fill it with 10000 messages FillJob fillJob = createDefaultFillJob(testQueueName, 10000); fillJob.setDeliveryMode(DeliveryMode.PERSISTENT); fillJob.setMsgSize(1024); fillJob.setMf(new BytesMessageMessageFactory()); runJob(fillJob); ReceiverJob receiver = createDefaultReceiverJob(testQueueName); //This should always be true String selector = "JMSMessageID IS NOT NULL AND NonExistentProperty IS NULL"; receiver.setTransacted(false); receiver.setAckMode(Session.AUTO_ACKNOWLEDGE); receiver.setSelector(selector); JobTimings result = runJob(receiver); storeResult("Queue15", result.getTestTime()); log.info("Test Queue15 finished"); }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/96f752d06dba37742f7716ee54f31f1982df763e/PerfRunner.java/clean/tests/src/org/jboss/test/messaging/jms/perf/PerfRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 3183, 3600, 1435, 282, 288, 1377, 613, 18, 1376, 2932, 7051, 1842, 7530, 3600, 8863, 5411, 368, 3759, 15427, 326, 2929, 1377, 1086, 2278, 12, 2640, 1868, 26896, 2278, 12, 3813, 30975, 10019, 5411, 368, 8674, 3636, 518, 598, 12619, 2743, 1377, 14192, 2278, 3636, 2278, 273, 27346, 8026, 2278, 12, 3813, 30975, 16, 12619, 1769, 1377, 3636, 2278, 18, 542, 8909, 2309, 12, 8909, 2309, 18, 3194, 28175, 1769, 1377, 3636, 2278, 18, 542, 3332, 1225, 12, 2163, 3247, 1769, 1377, 3636, 2278, 18, 542, 49, 74, 12, 2704, 5985, 1079, 1079, 1733, 10663, 1377, 1086, 2278, 12, 5935, 2278, 1769, 5411, 31020, 2278, 5971, 273, 27346, 12952, 2278, 12, 3813, 30975, 1769, 5411, 368, 2503, 1410, 3712, 506, 638, 1377, 514, 3451, 273, 315, 46, 3537, 1079, 734, 4437, 4269, 3206, 4116, 3858, 4786, 319, 1396, 4437, 3206, 14432, 1377, 5971, 18, 542, 1429, 25487, 12, 5743, 1769, 1377, 5971, 18, 542, 11931, 2309, 12, 2157, 18, 18909, 67, 3649, 27091, 6687, 7113, 1769, 1377, 5971, 18, 542, 4320, 12, 9663, 1769, 5411, 3956, 10178, 899, 563, 273, 1086, 2278, 12, 24454, 1769, 5411, 8687, 4588, 273, 752, 3210, 2932, 3183, 3600, 8863, 225, 4588, 18, 1289, 17933, 12, 2704, 26589, 2932, 27439, 8872, 2173, 2194, 3113, 261, 9056, 21433, 2107, 5058, 380, 4336, 13, 342, 563, 18, 588, 4709, 950, 1435, 10019, 7430, 18, 5688, 3210, 12, 16414, 1769, 5411, 613, 18, 1376, 2932, 4709, 7530, 3600, 6708, 8863, 282, 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, 1071, 918, 1842, 3183, 3600, 1435, 282, 288, 1377, 613, 18, 1376, 2932, 7051, 1842, 7530, 3600, 8863, 5411, 368, 3759, 15427, 326, 2929, 1377, 1086, 2278, 12, 2640, 1868, 26896, 2278, 12, 3813, 30975, 10019, 5411, 368, 8674, 3636, 518, 598, 12619, 2743, 1377, 14192, 2278, 3636, 2278, 273, 27346, 8026, 2278, 12, 3813, 30975, 16, 12619, 1769, 1377, 3636, 2278, 18, 542, 8909, 2309, 12, 8909, 2309, 18, 3194, 28175, 1769, 1377, 3636, 2278, 18, 542, 3332, 1225, 12, 2163, 3247, 1769, 1377, 3636, 2278, 18, 542, 49, 74, 12, 2704, 5985, 1079, 1079, 1733, 10663, 1377, 1086, 2278, 12, 5935, 2278, 1769, 5411, 31020, 2278, 5971, 273, 27346, 12952, 2278, 12, 3813, 30975, 1769, 5411, 2 ]
private void createShowErrorAction() { showErrorAction = new Action(ProgressMessages.getString("ProgressView.ShowErrorAction")) {//$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.jface.action.Action#run() */ public void run() { ISelection rawSelection = errorViewer.getSelection(); if (rawSelection != null && rawSelection instanceof IStructuredSelection) { IStructuredSelection selection = (IStructuredSelection) rawSelection; if (selection.size() == 1) { ErrorInfo element = (ErrorInfo) selection.getFirstElement(); ErrorDialog.openError( getShell(), element.getDisplayString(), element.getErrorStatus().getMessage(), element.getErrorStatus()); } } } }; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/79affe799a135d6a5f97d8db851f32eb63fcbe7f/ErrorNotificationDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ErrorNotificationDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 2640, 5706, 668, 1803, 1435, 95, 1082, 202, 4500, 668, 1803, 33, 2704, 1803, 12, 5491, 5058, 18, 588, 780, 2932, 5491, 1767, 18, 5706, 668, 1803, 6, 3719, 95, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 20308, 12, 5836, 17, 24060, 13, 202, 14, 36, 5946, 3341, 18, 20416, 18, 78, 865, 18, 1128, 18, 1803, 7, 2681, 1435, 202, 5549, 1082, 202, 482, 6459, 2681, 1435, 95, 9506, 202, 45, 6233, 1899, 6233, 33, 1636, 18415, 18, 588, 6233, 5621, 9506, 202, 430, 12, 1899, 6233, 5, 33, 2011, 10, 10, 1899, 6233, 1336, 792, 45, 30733, 6233, 15329, 6862, 202, 45, 30733, 6233, 10705, 28657, 45, 30733, 6233, 13, 1899, 6233, 31, 6862, 202, 430, 12, 10705, 18, 1467, 1435, 631, 21, 15329, 25083, 202, 668, 966, 2956, 28657, 668, 966, 13, 10705, 18, 588, 3759, 1046, 5621, 25083, 202, 668, 6353, 18, 3190, 668, 12, 6862, 1082, 202, 588, 13220, 9334, 6862, 1082, 202, 2956, 18, 588, 4236, 780, 9334, 6862, 1082, 202, 2956, 18, 588, 668, 1482, 7675, 24906, 9334, 6862, 1082, 202, 2956, 18, 588, 668, 1482, 10663, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 202, 202, 20451, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6459, 2640, 5706, 668, 1803, 1435, 95, 1082, 202, 4500, 668, 1803, 33, 2704, 1803, 12, 5491, 5058, 18, 588, 780, 2932, 5491, 1767, 18, 5706, 668, 1803, 6, 3719, 95, 759, 8, 3993, 17, 5106, 17, 21, 8, 202, 20308, 12, 5836, 17, 24060, 13, 202, 14, 36, 5946, 3341, 18, 20416, 18, 78, 865, 18, 1128, 18, 1803, 7, 2681, 1435, 202, 5549, 1082, 202, 482, 6459, 2681, 1435, 95, 9506, 202, 45, 6233, 1899, 6233, 33, 1636, 18415, 18, 588, 6233, 5621, 9506, 202, 430, 12, 1899, 6233, 5, 33, 2011, 10, 10, 1899, 6233, 1336, 792, 45, 30733, 6233, 15329, 6862, 202, 45, 30733, 6233, 10705, 28657, 45, 30733, 6233, 13, 1899, 2 ]
List itemsToReturn = new Vector(); List itemsToRemove = new Vector();
List<BioMatter> itemsToReturn = new Vector<BioMatter>(); List<BioMatter> itemsToRemove = new Vector<BioMatter>();
public BioMatter[] takeBioMatterMass(float pMass) { if (pMass <= 0) return new BioMatter[0]; List itemsToReturn = new Vector(); List itemsToRemove = new Vector(); float collectedMass = 0f; for (Iterator iter = currentBiomassItems.iterator(); iter.hasNext() && (collectedMass <= pMass);) { BioMatter currentBioMatter = (BioMatter) (iter.next()); float massStillNeeded = pMass - collectedMass; //we need to get more bio matter if (currentBioMatter.mass < massStillNeeded) { itemsToReturn.add(currentBioMatter); itemsToRemove.add(currentBioMatter); collectedMass += currentBioMatter.mass; } //we have enough, let's cut up the biomass (if too much) else if (currentBioMatter.mass >= massStillNeeded) { float fractionOfOriginal = massStillNeeded / currentBioMatter.mass; BioMatter partialReturnedBioMatter = new BioMatter( massStillNeeded, currentBioMatter.inedibleFraction, currentBioMatter.edibleWaterContent * fractionOfOriginal, currentBioMatter.inedibleWaterContent * fractionOfOriginal, currentBioMatter.type); currentBioMatter.mass -= partialReturnedBioMatter.mass; itemsToReturn.add(partialReturnedBioMatter); if (currentBioMatter.mass <= 0) itemsToRemove.add(currentBioMatter); collectedMass += partialReturnedBioMatter.mass; } } //Remove items from List for (Iterator iter = itemsToRemove.iterator(); iter.hasNext();) { currentBiomassItems.remove(iter.next()); } currentLevel -= collectedMass; //return the array BioMatter[] emptyArray = new BioMatter[0]; BioMatter[] returnArray = (BioMatter[]) (itemsToReturn .toArray(emptyArray)); if (returnArray == null) return emptyArray; else return returnArray; }
5015 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5015/397a74b47f2f52b66dbe5e307fb37ee5e164487d/BiomassStoreImpl.java/clean/BIOSIM/src/com/traclabs/biosim/server/simulation/food/BiomassStoreImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 21209, 49, 9293, 8526, 4862, 38, 1594, 49, 9293, 18060, 12, 5659, 293, 18060, 13, 288, 3639, 309, 261, 84, 18060, 1648, 374, 13, 5411, 327, 394, 21209, 49, 9293, 63, 20, 15533, 3639, 987, 1516, 27014, 273, 394, 5589, 5621, 3639, 987, 1516, 12765, 273, 394, 5589, 5621, 3639, 1431, 12230, 18060, 273, 374, 74, 31, 3639, 364, 261, 3198, 1400, 273, 783, 38, 14642, 428, 3126, 18, 9838, 5621, 1400, 18, 5332, 2134, 1435, 7734, 597, 261, 14676, 329, 18060, 1648, 293, 18060, 1769, 13, 288, 5411, 21209, 49, 9293, 783, 38, 1594, 49, 9293, 273, 261, 38, 1594, 49, 9293, 13, 261, 2165, 18, 4285, 10663, 5411, 1431, 8039, 510, 737, 11449, 273, 293, 18060, 300, 12230, 18060, 31, 5411, 368, 1814, 1608, 358, 336, 1898, 25091, 15177, 5411, 309, 261, 2972, 38, 1594, 49, 9293, 18, 10424, 411, 8039, 510, 737, 11449, 13, 288, 7734, 1516, 27014, 18, 1289, 12, 2972, 38, 1594, 49, 9293, 1769, 7734, 1516, 12765, 18, 1289, 12, 2972, 38, 1594, 49, 9293, 1769, 7734, 12230, 18060, 1011, 783, 38, 1594, 49, 9293, 18, 10424, 31, 5411, 289, 5411, 368, 1814, 1240, 7304, 16, 2231, 1807, 6391, 731, 326, 10054, 362, 428, 261, 430, 4885, 9816, 13, 5411, 469, 309, 261, 2972, 38, 1594, 49, 9293, 18, 10424, 1545, 8039, 510, 737, 11449, 13, 288, 7734, 1431, 8330, 951, 8176, 273, 8039, 510, 737, 11449, 13491, 342, 783, 38, 1594, 49, 9293, 18, 10424, 31, 7734, 21209, 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, 21209, 49, 9293, 8526, 4862, 38, 1594, 49, 9293, 18060, 12, 5659, 293, 18060, 13, 288, 3639, 309, 261, 84, 18060, 1648, 374, 13, 5411, 327, 394, 21209, 49, 9293, 63, 20, 15533, 3639, 987, 1516, 27014, 273, 394, 5589, 5621, 3639, 987, 1516, 12765, 273, 394, 5589, 5621, 3639, 1431, 12230, 18060, 273, 374, 74, 31, 3639, 364, 261, 3198, 1400, 273, 783, 38, 14642, 428, 3126, 18, 9838, 5621, 1400, 18, 5332, 2134, 1435, 7734, 597, 261, 14676, 329, 18060, 1648, 293, 18060, 1769, 13, 288, 5411, 21209, 49, 9293, 783, 38, 1594, 49, 9293, 273, 261, 38, 1594, 49, 9293, 13, 261, 2165, 18, 4285, 10663, 5411, 1431, 8039, 510, 737, 11449, 273, 293, 2 ]
this.message_extra=MessageExtraFactory.Get(message);
this.reply = reply;
private Renderer(Message message) throws IOException { this.message=message; this.message_extra=MessageExtraFactory.Get(message); inpipe=new PipedInputStream(); outpipe=new PipedOutputStream(inpipe); Thread t=new Thread(this); t.start(); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/b13c667b376deb4a8f2c235ffd847b57616d23c4/Renderer.java/buggy/grendel/sources/grendel/renderer/Renderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 17589, 12, 1079, 883, 13, 1216, 1860, 225, 288, 565, 333, 18, 2150, 33, 2150, 31, 565, 333, 18, 10629, 273, 4332, 31, 565, 12789, 3151, 33, 2704, 29305, 329, 4348, 5621, 565, 596, 14772, 33, 2704, 29305, 329, 4632, 12, 267, 14772, 1769, 565, 4884, 268, 33, 2704, 4884, 12, 2211, 1769, 565, 268, 18, 1937, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3238, 17589, 12, 1079, 883, 13, 1216, 1860, 225, 288, 565, 333, 18, 2150, 33, 2150, 31, 565, 333, 18, 10629, 273, 4332, 31, 565, 12789, 3151, 33, 2704, 29305, 329, 4348, 5621, 565, 596, 14772, 33, 2704, 29305, 329, 4632, 12, 267, 14772, 1769, 565, 4884, 268, 33, 2704, 4884, 12, 2211, 1769, 565, 268, 18, 1937, 5621, 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 ]
monitor.done();
monitor.done();
public void copyFiles(final String[] fileNames, IContainer destination){ alwaysOverwrite = false; // if it is a project, see if it is open if (destination.getType() == IResource.PROJECT && !((IProject)destination).isOpen()) { displayError(WorkbenchMessages.getString("CopyFilesAndFoldersOperation.destinationAccessError")); //$NON-NLS-1$ return; } final IPath destinationPath = destination.getFullPath(); WorkspaceModifyOperation op = new WorkspaceModifyOperation() { public void execute(IProgressMonitor monitor) { // Checks only required if this is an exisiting container path. boolean copyWithAutoRename = false; IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); if (root.exists(destinationPath)) { IContainer container = (IContainer) root.findMember(destinationPath); monitor.beginTask("", fileNames.length); //$NON-NLS-1$ for (int k = 0; k < fileNames.length; k++) performFileImport(new SubProgressMonitor(monitor, 1), container, fileNames[k]); monitor.done(); } } }; try { new ProgressMonitorDialog(parentShell).run(true, true, op); } catch (InterruptedException e) { return; } catch (InvocationTargetException e) { // CoreExceptions are collected above, but unexpected runtime exceptions and errors may still occur. Platform.getPlugin(PlatformUI.PLUGIN_ID).getLog().log( StatusUtil.newStatus( IStatus.ERROR, null, MessageFormat.format("Exception in {0}.performCopy(): {1}", new Object[] {getClass().getName(),e.getTargetException()}), //$NON-NLS-1$ null)); displayError(WorkbenchMessages.format("CopyFilesAndFoldersOperation.internalError", new Object[] {e.getTargetException().getMessage()})); //$NON-NLS-1$ } // If errors occurred, open an Error dialog if (errorStatus != null) { ErrorDialog.openError( parentShell, WorkbenchMessages.getString("CopyFilesAndFoldersOperation.copyFailedTitle"), //$NON-NLS-1$ null, // no special message errorStatus); errorStatus = null; } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/bf752ac27dbe2a869d9900197181599a8561dc6a/CopyFilesAndFoldersOperation.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1610, 2697, 12, 6385, 514, 8526, 27375, 16, 467, 2170, 2929, 15329, 202, 202, 17737, 20832, 273, 629, 31, 1082, 202, 759, 309, 518, 353, 279, 1984, 16, 2621, 309, 518, 353, 1696, 202, 202, 430, 261, 10590, 18, 588, 559, 1435, 422, 467, 1420, 18, 17147, 597, 401, 12443, 45, 4109, 13, 10590, 2934, 291, 3678, 10756, 288, 1082, 202, 5417, 668, 12, 2421, 22144, 5058, 18, 588, 780, 2932, 2951, 2697, 1876, 14885, 2988, 18, 10590, 1862, 668, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 31, 202, 202, 97, 25083, 202, 6385, 467, 743, 30617, 273, 2929, 18, 588, 24173, 5621, 1082, 202, 8241, 11047, 2988, 1061, 273, 394, 14396, 11047, 2988, 1435, 288, 1082, 202, 482, 918, 1836, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 759, 13074, 1338, 1931, 309, 333, 353, 392, 431, 291, 305, 310, 1478, 589, 18, 9506, 202, 6494, 1610, 1190, 4965, 16019, 273, 629, 31, 9506, 202, 45, 8241, 2375, 1365, 273, 8128, 3773, 18, 588, 8241, 7675, 588, 2375, 5621, 9506, 202, 430, 261, 3085, 18, 1808, 12, 10590, 743, 3719, 288, 6862, 202, 45, 2170, 1478, 273, 261, 45, 2170, 13, 1365, 18, 4720, 4419, 12, 10590, 743, 1769, 6862, 202, 10259, 18, 10086, 2174, 2932, 3113, 27375, 18, 2469, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 1884, 261, 474, 417, 273, 374, 31, 417, 411, 27375, 18, 2469, 31, 417, 27245, 25083, 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, 1610, 2697, 12, 6385, 514, 8526, 27375, 16, 467, 2170, 2929, 15329, 202, 202, 17737, 20832, 273, 629, 31, 1082, 202, 759, 309, 518, 353, 279, 1984, 16, 2621, 309, 518, 353, 1696, 202, 202, 430, 261, 10590, 18, 588, 559, 1435, 422, 467, 1420, 18, 17147, 597, 401, 12443, 45, 4109, 13, 10590, 2934, 291, 3678, 10756, 288, 1082, 202, 5417, 668, 12, 2421, 22144, 5058, 18, 588, 780, 2932, 2951, 2697, 1876, 14885, 2988, 18, 10590, 1862, 668, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2463, 31, 202, 202, 97, 25083, 202, 6385, 467, 743, 30617, 273, 2929, 18, 588, 24173, 5621, 1082, 202, 8241, 11047, 2988, 1061, 273, 2 ]
public void test1() {
public void test1() {
public void test1() { executeTarget("test1"); File f = new File(getProjectDir(), "copytest1.tmp"); if ( !f.exists()) { fail("Copy failed"); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0627b1a3b8acd78a6f9ea15d0bb1bdf03fcb6043/CopyTest.java/clean/src/testcases/org/apache/tools/ant/taskdefs/CopyTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 21, 1435, 288, 540, 1836, 2326, 2932, 3813, 21, 8863, 3639, 1387, 284, 273, 394, 1387, 12, 588, 4109, 1621, 9334, 315, 3530, 3813, 21, 18, 5645, 8863, 3639, 309, 261, 401, 74, 18, 1808, 10756, 288, 5411, 2321, 2932, 2951, 2535, 8863, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1842, 21, 1435, 288, 540, 1836, 2326, 2932, 3813, 21, 8863, 3639, 1387, 284, 273, 394, 1387, 12, 588, 4109, 1621, 9334, 315, 3530, 3813, 21, 18, 5645, 8863, 3639, 309, 261, 401, 74, 18, 1808, 10756, 288, 5411, 2321, 2932, 2951, 2535, 8863, 3639, 289, 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 ]
if (isNeverDisplayedJob(event.getJob())) {
if (isNeverDisplayedJob(event.getJob())) {
private void updateFor(IJobChangeEvent event) { if (isNeverDisplayedJob(event.getJob())) { return; } if (jobs.containsKey(event.getJob())) { refreshJobInfo(getJobInfo(event.getJob())); } else { addJobInfo(new JobInfo(event.getJob())); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/0e7fbc26f7d1b7769a0721c71fd17572c8432fd5/ProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 3238, 918, 1089, 1290, 12, 45, 2278, 20930, 871, 13, 288, 7734, 309, 261, 291, 50, 6084, 4236, 329, 2278, 12, 2575, 18, 588, 2278, 1435, 3719, 288, 6862, 202, 2463, 31, 9506, 202, 97, 7734, 309, 261, 10088, 18, 12298, 653, 12, 2575, 18, 588, 2278, 1435, 3719, 288, 6862, 202, 9144, 2278, 966, 12, 588, 2278, 966, 12, 2575, 18, 588, 2278, 1435, 10019, 9506, 202, 97, 469, 288, 10792, 527, 2278, 966, 12, 2704, 3956, 966, 12, 2575, 18, 588, 2278, 1435, 10019, 7734, 289, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2398, 3238, 918, 1089, 1290, 12, 45, 2278, 20930, 871, 13, 288, 7734, 309, 261, 291, 50, 6084, 4236, 329, 2278, 12, 2575, 18, 588, 2278, 1435, 3719, 288, 6862, 202, 2463, 31, 9506, 202, 97, 7734, 309, 261, 10088, 18, 12298, 653, 12, 2575, 18, 588, 2278, 1435, 3719, 288, 6862, 202, 9144, 2278, 966, 12, 588, 2278, 966, 12, 2575, 18, 588, 2278, 1435, 10019, 9506, 202, 97, 469, 288, 10792, 527, 2278, 966, 12, 2704, 3956, 966, 12, 2575, 18, 588, 2278, 1435, 10019, 7734, 289, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void prolog() throws RecognitionException { String name = null; String packageName = ""; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:95:17: ( opt_eol (name= package_statement )? ( import_statement )* ( expander )? ( global )* ( function )* opt_eol ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:95:17: opt_eol (name= package_statement )? ( import_statement )* ( expander )? ( global )* ( function )* opt_eol { following.push(FOLLOW_opt_eol_in_prolog104); opt_eol(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:96:17: (name= package_statement )? int alt3=2; int LA3_0 = input.LA(1); if ( LA3_0==14 ) { alt3=1; } else if ( LA3_0==-1||LA3_0==EOL||(LA3_0>=16 && LA3_0<=19)||LA3_0==25||LA3_0==27 ) { alt3=2; } else { NoViableAltException nvae = new NoViableAltException("96:17: (name= package_statement )?", 3, 0, input); throw nvae; } switch (alt3) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:96:19: name= package_statement { following.push(FOLLOW_package_statement_in_prolog112); name=package_statement(); following.pop(); packageName = name; } break; } this.packageDescr = new PackageDescr( name ); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:100:17: ( import_statement )* loop4: do { int alt4=2; int LA4_0 = input.LA(1); if ( LA4_0==16 ) { alt4=1; } switch (alt4) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:100:17: import_statement { following.push(FOLLOW_import_statement_in_prolog125); import_statement(); following.pop(); } break; default : break loop4; } } while (true); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:101:17: ( expander )? int alt5=2; int LA5_0 = input.LA(1); if ( LA5_0==17 ) { alt5=1; } else if ( LA5_0==-1||LA5_0==EOL||(LA5_0>=18 && LA5_0<=19)||LA5_0==25||LA5_0==27 ) { alt5=2; } else { NoViableAltException nvae = new NoViableAltException("101:17: ( expander )?", 5, 0, input); throw nvae; } switch (alt5) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:101:17: expander { following.push(FOLLOW_expander_in_prolog130); expander(); following.pop(); } break; } // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:102:17: ( global )* loop6: do { int alt6=2; int LA6_0 = input.LA(1); if ( LA6_0==18 ) { alt6=1; } switch (alt6) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:102:17: global { following.push(FOLLOW_global_in_prolog136); global(); following.pop(); } break; default : break loop6; } } while (true); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:103:17: ( function )* loop7: do { int alt7=2; int LA7_0 = input.LA(1); if ( LA7_0==19 ) { alt7=1; } switch (alt7) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:103:17: function { following.push(FOLLOW_function_in_prolog141); function(); following.pop(); } break; default : break loop7; } } while (true); following.push(FOLLOW_opt_eol_in_prolog146); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/98b0281519badd8cb1b48eb12934438a300e99b8/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 450, 1330, 1435, 1216, 9539, 288, 6647, 514, 508, 273, 446, 31, 540, 202, 202, 780, 9929, 273, 1408, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 8778, 30, 4033, 30, 261, 2153, 67, 30951, 261, 529, 33, 2181, 67, 11516, 7851, 261, 1930, 67, 11516, 8618, 261, 4542, 264, 7851, 261, 2552, 8618, 261, 445, 8618, 2153, 67, 30951, 262, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 8778, 30, 4033, 30, 2153, 67, 30951, 261, 529, 33, 2181, 67, 11516, 7851, 261, 1930, 67, 11516, 8618, 261, 4542, 264, 7851, 261, 2552, 8618, 261, 445, 8618, 2153, 67, 30951, 5411, 288, 5411, 3751, 18, 6206, 12, 29890, 67, 3838, 67, 30951, 67, 267, 67, 685, 1330, 21869, 1769, 5411, 2153, 67, 30951, 5621, 5411, 3751, 18, 5120, 5621, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 10525, 30, 4033, 30, 261, 529, 33, 2181, 67, 11516, 7851, 5411, 509, 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, 450, 1330, 1435, 1216, 9539, 288, 6647, 514, 508, 273, 446, 31, 540, 202, 202, 780, 9929, 273, 1408, 31, 540, 202, 3639, 775, 288, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 4816, 19, 5254, 19, 4683, 19, 3341, 19, 12215, 19, 4936, 19, 72, 1321, 18, 75, 30, 8778, 30, 4033, 30, 261, 2153, 67, 30951, 261, 529, 33, 2181, 67, 11516, 7851, 261, 1930, 67, 11516, 8618, 261, 4542, 264, 7851, 261, 2552, 8618, 261, 445, 8618, 2153, 67, 30951, 262, 5411, 368, 342, 6588, 19, 70, 947, 19, 12922, 19, 14915, 19, 10649, 8464, 7482, 19, 12215, 17, 9576, 19, 2 ]
public void run(String[] args) throws IOException, SAXException, AmqpParseException, AmqpTypeMappingException, AmqpTemplateException, TargetDirectoryException, IllegalAccessException, InvocationTargetException { File[] modelTemplateFiles = new File[]{}; File[] classTemplateFiles = new File[]{}; File[] methodTemplateFiles = new File[]{}; File[] fieldTemplateFiles = new File[]{}; String outDir = "out"; if (args[0].compareToIgnoreCase("-c") == 0) { // *** C++ generation *** System.out.println("C++ generation mode."); generator = new CppGenerator(versionSet); constants = new AmqpConstantSet(generator); domainMap = new AmqpDomainMap(generator); model = new AmqpModel(generator); modelTemplateFiles = new File[] { new File("templ.cpp/AMQP_ServerOperations.h.tmpl"), new File("templ.cpp/AMQP_ClientOperations.h.tmpl"), new File("templ.cpp/AMQP_ServerProxy.h.tmpl"), new File("templ.cpp/AMQP_ClientProxy.h.tmpl"), new File("templ.cpp/AMQP_ServerProxy.cpp.tmpl"), new File("templ.cpp/AMQP_ClientProxy.cpp.tmpl"), new File("templ.cpp/AMQP_Constants.h.tmpl")// new File("templ.cpp/AMQP_ServerHandlerImpl.h.tmpl"),// new File("templ.cpp/AMQP_ClientHandlerImpl.h.tmpl"),// new File("templ.cpp/AMQP_ServerHandlerImpl.cpp.tmpl"),// new File("templ.cpp/AMQP_ClientHandlerImpl.cpp.tmpl"),// new File("templ.cpp/amqp_methods.h.tmpl"),// new File("templ.cpp/amqp_methods.cpp.tmpl") }; methodTemplateFiles = new File[] { new File("templ.cpp/MethodBodyClass.h.tmpl") }; outDir += ".cpp"; } else if (args[0].compareToIgnoreCase("-j") == 0) { // *** Java generation *** System.out.println("Java generation mode."); generator = new JavaGenerator(versionSet); constants = new AmqpConstantSet(generator); domainMap = new AmqpDomainMap(generator); model = new AmqpModel(generator); modelTemplateFiles = new File[] { new File("templ.java/MethodRegistryClass.tmpl"), new File("templ.java/AmqpConstantsClass.tmpl") }; classTemplateFiles = new File[] { new File("templ.java/PropertyContentHeaderClass.tmpl") }; methodTemplateFiles = new File[] { new File("templ.java/MethodBodyClass.tmpl") }; outDir += ".java"; } else { System.err.println("ERROR: Required argument specifying language (C++ [-c] or Java [-j]) missing."); usage(); } if (modelTemplateFiles.length == 0 && classTemplateFiles.length == 0 && methodTemplateFiles.length == 0 && fieldTemplateFiles.length == 0) System.err.println(" WARNING: No template files."); // 1. Suck in all the XML spec files provided on the command line. System.out.println("Analyzing XML Specification files:"); for (int i=1; i<args.length; i++) { File f = new File(args[i]); if (f.exists()) { // 1a. Initialize dom System.out.print(" \"" + args[i] + "\":"); Document doc = docBuilder.parse(new File(args[i])); Node amqpNode = Utils.findChild(doc, Utils.ELEMENT_AMQP); // 1b. Extract version (major and minor) from the XML file int major = Utils.getNamedIntegerAttribute(amqpNode, Utils.ATTRIBUTE_MAJOR); int minor = Utils.getNamedIntegerAttribute(amqpNode, Utils.ATTRIBUTE_MINOR); AmqpVersion version = new AmqpVersion(major, minor); System.out.println(" Found version " + version.toString() + "."); versionSet.add(version); // 1c. Extract domains constants.addFromNode(amqpNode, 0, version); // 1d. Extract domains domainMap.addFromNode(amqpNode, 0, version); // 1e. Extract class/method/field heirarchy model.addFromNode(amqpNode, 0, version); } else System.err.println("ERROR: AMQP XML file \"" + args[i] + "\" not found."); }// *** DEBUG INFO *** Uncomment bits from this block to see lots of stuff....// System.out.println();// System.out.println("*** Debug output ***");// System.out.println();// constants.print(System.out, 0, 2);// System.out.println();// versionSet.print(System.out, 0, 2);// System.out.println();// domainMap.print(System.out, 0, 2);// System.out.println();// model.print(System.out, 0, 2);// System.out.println();// System.out.println("*** End debug output ***");// System.out.println(); // 2. Load up all templates generator.initializeTemplates(modelTemplateFiles, classTemplateFiles, methodTemplateFiles, fieldTemplateFiles); // 3. Generate output generator.generate(new File(outDir)); System.out.println("Files generated: " + generator.getNumberGeneratedFiles()); System.out.println("Done."); }
45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/7d6dfda5954b0b096de0328a7572348f2770687d/Main.java/clean/qpid/gentools/org/apache/qpid/gentools/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 780, 8526, 833, 13, 202, 202, 15069, 225, 202, 14106, 16, 9506, 202, 55, 2501, 503, 16, 9506, 202, 9864, 14166, 13047, 16, 9506, 202, 9864, 14166, 559, 3233, 503, 16, 9506, 202, 9864, 14166, 2283, 503, 16, 9506, 202, 2326, 2853, 503, 16, 9506, 202, 12195, 9773, 16, 1082, 202, 9267, 14950, 202, 95, 202, 202, 812, 8526, 938, 2283, 2697, 273, 394, 1387, 8526, 2916, 31, 202, 202, 812, 8526, 667, 2283, 2697, 273, 394, 1387, 8526, 2916, 31, 202, 202, 812, 8526, 707, 2283, 2697, 273, 394, 1387, 8526, 2916, 31, 202, 202, 812, 8526, 652, 2283, 2697, 273, 394, 1387, 8526, 2916, 31, 202, 202, 780, 596, 1621, 273, 315, 659, 14432, 9506, 202, 430, 261, 1968, 63, 20, 8009, 9877, 774, 5556, 2932, 17, 71, 7923, 422, 374, 13, 202, 202, 95, 1082, 202, 759, 18852, 385, 9904, 9377, 18852, 1082, 202, 3163, 18, 659, 18, 8222, 2932, 39, 9904, 9377, 1965, 1199, 1769, 1082, 202, 8812, 273, 394, 385, 11858, 3908, 12, 1589, 694, 1769, 13358, 273, 394, 3986, 14166, 6902, 694, 12, 8812, 1769, 1082, 202, 4308, 863, 273, 394, 3986, 14166, 3748, 863, 12, 8812, 1769, 1082, 202, 2284, 273, 394, 3986, 14166, 1488, 12, 8812, 1769, 25083, 202, 2284, 2283, 2697, 273, 394, 1387, 8526, 1082, 202, 95, 9506, 202, 2704, 1387, 2932, 27380, 18, 4057, 84, 19, 2192, 53, 52, 67, 2081, 9343, 18, 76, 18, 24717, 6, 3631, 9506, 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, 1086, 12, 780, 8526, 833, 13, 202, 202, 15069, 225, 202, 14106, 16, 9506, 202, 55, 2501, 503, 16, 9506, 202, 9864, 14166, 13047, 16, 9506, 202, 9864, 14166, 559, 3233, 503, 16, 9506, 202, 9864, 14166, 2283, 503, 16, 9506, 202, 2326, 2853, 503, 16, 9506, 202, 12195, 9773, 16, 1082, 202, 9267, 14950, 202, 95, 202, 202, 812, 8526, 938, 2283, 2697, 273, 394, 1387, 8526, 2916, 31, 202, 202, 812, 8526, 667, 2283, 2697, 273, 394, 1387, 8526, 2916, 31, 202, 202, 812, 8526, 707, 2283, 2697, 273, 394, 1387, 8526, 2916, 31, 202, 202, 812, 8526, 652, 2283, 2697, 273, 394, 1387, 8526, 2916, 31, 202, 202, 780, 596, 1621, 273, 2 ]
public void selectPart(IPresentablePart toSelect) { if (toSelect == current) { return; } IPresentablePart oldPart = current; current = toSelect; if (current != null) { paneFolder.setSelection(indexOf(current)); current.setVisible(true); updateCloseButton(); setControlSize(); } if (oldPart != null) { oldPart.setVisible(false); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/90e82b23e403f06d9c0ee530b7f79295eca79b07/R21BasicStackPresentation.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21BasicStackPresentation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2027, 1988, 12, 2579, 1581, 429, 1988, 358, 3391, 13, 288, 202, 202, 430, 261, 869, 3391, 422, 783, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2579, 1581, 429, 1988, 1592, 1988, 273, 783, 31, 202, 202, 2972, 273, 358, 3391, 31, 9506, 202, 430, 261, 2972, 480, 446, 13, 288, 1082, 202, 29009, 3899, 18, 542, 6233, 12, 31806, 12, 2972, 10019, 1082, 202, 2972, 18, 542, 6207, 12, 3767, 1769, 1082, 202, 2725, 4605, 3616, 5621, 1082, 202, 542, 3367, 1225, 5621, 202, 202, 97, 202, 202, 430, 261, 1673, 1988, 480, 446, 13, 288, 1082, 202, 1673, 1988, 18, 542, 6207, 12, 5743, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 2027, 1988, 12, 2579, 1581, 429, 1988, 358, 3391, 13, 288, 202, 202, 430, 261, 869, 3391, 422, 783, 13, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 2579, 1581, 429, 1988, 1592, 1988, 273, 783, 31, 202, 202, 2972, 273, 358, 3391, 31, 9506, 202, 430, 261, 2972, 480, 446, 13, 288, 1082, 202, 29009, 3899, 18, 542, 6233, 12, 31806, 12, 2972, 10019, 1082, 202, 2972, 18, 542, 6207, 12, 3767, 1769, 1082, 202, 2725, 4605, 3616, 5621, 1082, 202, 542, 3367, 1225, 5621, 202, 202, 97, 202, 202, 430, 261, 1673, 1988, 480, 446, 13, 288, 1082, 202, 1673, 1988, 18, 542, 6207, 12, 5743, 1769, 202, 202, 97, 202, 2 ]