rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
} else { try { return (RubyArray) other.convertType(RubyArray.class, "Array", "to_ary"); } catch (Exception ex) { throw new ArgumentError(other.getRuntime(), "can't convert arg to Array: " + ex.getMessage()); } | } try { return (RubyArray) other.convertType(RubyArray.class, "Array", "to_ary"); } catch (Exception ex) { throw new ArgumentError(other.getRuntime(), "can't convert arg to Array: " + ex.getMessage()); | public static RubyArray arrayValue(IRubyObject other) { if (other instanceof RubyArray) { return (RubyArray) other; } else { try { return (RubyArray) other.convertType(RubyArray.class, "Array", "to_ary"); } catch (Exception ex) { throw new ArgumentError(other.getRuntime(), "can't convert arg to Array: " + ex.getMessage()); } } } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/f5c9a1ebd775712f2dc086acfce1a14a123ec632/RubyArray.java/buggy/src/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
1076,
526,
620,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
1076,
13,
288,
5411,
327,
261,
54,
10340,
1076,
13,
1308,
31,
3639,
289,
469,
288,
5411,
775,
288,
7734,
327,
261,
54,
10340,
1076,
13,
1308,
18,
6283,
559,
12,
54,
10340,
1076,
18,
1106,
16,
315,
1076,
3113,
315,
869,
67,
814,
8863,
5411,
289,
1044,
261,
503,
431,
13,
288,
7734,
604,
394,
9236,
12,
3011,
18,
588,
5576,
9334,
315,
4169,
1404,
1765,
1501,
358,
1510,
30,
315,
397,
431,
18,
24906,
10663,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
1076,
526,
620,
12,
7937,
10340,
921,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
19817,
1076,
13,
288,
5411,
327,
261,
54,
10340,
1076,
13,
1308,
31,
3639,
289,
469,
288,
5411,
775,
288,
7734,
327,
261,
54,
10340,
1076,
13,
1308,
18,
6283,
559,
12,
54,
10340,
1076,
18,
1106,
16,
315,
1076,
3113,
315,
869,
67,
814,
8863,
5411,
289,
1044,
261,
503,
431,
13,
288,
7734,
604,
394,
9236,
12,
3011,
18,
588,
5576,
9334,
315,
4169,
1404,
1765,
1501,
358,
1510,
30,
315,
397,
431,
18,
24906,
10663,
5411,
289,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
removeChildProperty(entry.getName()); | removeChildProperty(propName); | public void removeMixin(QName mixinName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException { // check state of this instance sanityCheck(); // make sure this node is checked-out if (!internalIsCheckedOut()) { String msg = safeGetJCRPath() + ": cannot remove a mixin node type from a checked-in node"; log.debug(msg); throw new VersionException(msg); } // check protected flag if (definition.isProtected()) { String msg = safeGetJCRPath() + ": cannot remove a mixin node type from a protected node"; log.debug(msg); throw new ConstraintViolationException(msg); } // check lock status checkLock(); // check if mixin is assigned if (!((NodeState) state).getMixinTypeNames().contains(mixinName)) { throw new NoSuchNodeTypeException(); } NodeTypeManagerImpl ntMgr = session.getNodeTypeManager(); NodeTypeRegistry ntReg = ntMgr.getNodeTypeRegistry(); // build effective node type of remaining mixin's & primary type Set remainingMixins = new HashSet(((NodeState) state).getMixinTypeNames()); // remove name of target mixin remainingMixins.remove(mixinName); EffectiveNodeType entRemaining; try { // remaining mixin's HashSet set = new HashSet(remainingMixins); // primary type set.add(nodeType.getQName()); // build effective node type representing primary type including remaining mixin's entRemaining = ntReg.getEffectiveNodeType((QName[]) set.toArray(new QName[set.size()])); } catch (NodeTypeConflictException ntce) { throw new ConstraintViolationException(ntce.getMessage()); } /** * mix:referenceable needs special handling because it has * special semantics: * it can only be removed if there no more references to this node */ NodeTypeImpl mixin = ntMgr.getNodeType(mixinName); if ((MIX_REFERENCEABLE.equals(mixinName) || mixin.isDerivedFrom(MIX_REFERENCEABLE)) && !entRemaining.includesNodeType(MIX_REFERENCEABLE)) { // removing this mixin would effectively remove mix:referenceable: // make sure no references exist PropertyIterator iter = getReferences(); if (iter.hasNext()) { throw new ConstraintViolationException(mixinName + " can not be removed: the node is being referenced" + " through at least one property of type REFERENCE"); } } // modify the state of this node NodeState thisState = (NodeState) getOrCreateTransientItemState(); thisState.setMixinTypeNames(remainingMixins); // set jcr:mixinTypes property setMixinTypesProperty(remainingMixins); // shortcut if (mixin.getChildNodeDefinitions().length == 0 && mixin.getPropertyDefinitions().length == 0) { // the node type has neither property nor child node definitions, // i.e. we're done return; } // walk through properties and child nodes and remove those that have been // defined by the specified mixin type // use temp array to avoid ConcurrentModificationException ArrayList tmp = new ArrayList(thisState.getPropertyEntries()); Iterator iter = tmp.iterator(); while (iter.hasNext()) { NodeState.PropertyEntry entry = (NodeState.PropertyEntry) iter.next(); PropertyImpl prop = (PropertyImpl) itemMgr.getItem(new PropertyId(thisState.getUUID(), entry.getName())); // check if property has been defined by mixin type (or one of its supertypes) NodeTypeImpl declaringNT = (NodeTypeImpl) prop.getDefinition().getDeclaringNodeType(); if (!entRemaining.includesNodeType(declaringNT.getQName())) { // the remaining effective node type doesn't include the // node type that declared this property, it is thus safe // to remove it removeChildProperty(entry.getName()); } } // use temp array to avoid ConcurrentModificationException tmp = new ArrayList(thisState.getChildNodeEntries()); iter = tmp.iterator(); while (iter.hasNext()) { NodeState.ChildNodeEntry entry = (NodeState.ChildNodeEntry) iter.next(); NodeImpl node = (NodeImpl) itemMgr.getItem(new NodeId(entry.getUUID())); // check if node has been defined by mixin type (or one of its supertypes) NodeTypeImpl declaringNT = (NodeTypeImpl) node.getDefinition().getDeclaringNodeType(); if (!entRemaining.includesNodeType(declaringNT.getQName())) { // the remaining effective node type doesn't include the // node type that declared this child node, it is thus safe // to remove it removeChildNode(entry.getName(), entry.getIndex()); } } } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/67840f7252c5512aba28fcfcfc1d42f58e0c0e03/NodeImpl.java/buggy/src/java/org/apache/jackrabbit/core/NodeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
14439,
12,
13688,
11682,
461,
13,
5411,
1216,
5823,
907,
14144,
16,
4049,
503,
16,
5411,
10770,
27052,
16,
3488,
503,
16,
13367,
288,
3639,
368,
866,
919,
434,
333,
791,
3639,
16267,
1564,
5621,
3639,
368,
1221,
3071,
333,
756,
353,
5950,
17,
659,
3639,
309,
16051,
7236,
2520,
11454,
1182,
10756,
288,
5411,
514,
1234,
273,
4183,
967,
46,
5093,
743,
1435,
10792,
397,
6398,
2780,
1206,
279,
11682,
756,
618,
628,
279,
5950,
17,
267,
756,
14432,
5411,
613,
18,
4148,
12,
3576,
1769,
5411,
604,
394,
4049,
503,
12,
3576,
1769,
3639,
289,
3639,
368,
866,
4750,
2982,
3639,
309,
261,
6907,
18,
291,
15933,
10756,
288,
5411,
514,
1234,
273,
4183,
967,
46,
5093,
743,
1435,
10792,
397,
6398,
2780,
1206,
279,
11682,
756,
618,
628,
279,
4750,
756,
14432,
5411,
613,
18,
4148,
12,
3576,
1769,
5411,
604,
394,
10770,
27052,
12,
3576,
1769,
3639,
289,
3639,
368,
866,
2176,
1267,
3639,
866,
2531,
5621,
3639,
368,
866,
309,
11682,
353,
6958,
3639,
309,
16051,
12443,
907,
1119,
13,
919,
2934,
588,
14439,
559,
1557,
7675,
12298,
12,
81,
10131,
461,
3719,
288,
5411,
604,
394,
5823,
907,
14144,
5621,
3639,
289,
3639,
20896,
1318,
2828,
9513,
9455,
273,
1339,
18,
588,
15101,
1318,
5621,
3639,
20896,
4243,
9513,
1617,
273,
9513,
9455,
18,
588,
15101,
4243,
5621,
3639,
368,
1361,
11448,
756,
618,
434,
4463,
11682,
1807,
473,
3354,
618,
3639,
1000,
4463,
21294,
2679,
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,
1071,
918,
1206,
14439,
12,
13688,
11682,
461,
13,
5411,
1216,
5823,
907,
14144,
16,
4049,
503,
16,
5411,
10770,
27052,
16,
3488,
503,
16,
13367,
288,
3639,
368,
866,
919,
434,
333,
791,
3639,
16267,
1564,
5621,
3639,
368,
1221,
3071,
333,
756,
353,
5950,
17,
659,
3639,
309,
16051,
7236,
2520,
11454,
1182,
10756,
288,
5411,
514,
1234,
273,
4183,
967,
46,
5093,
743,
1435,
10792,
397,
6398,
2780,
1206,
279,
11682,
756,
618,
628,
279,
5950,
17,
267,
756,
14432,
5411,
613,
18,
4148,
12,
3576,
1769,
5411,
604,
394,
4049,
503,
12,
3576,
1769,
3639,
289,
3639,
368,
866,
4750,
2982,
3639,
309,
261,
6907,
18,
291,
15933,
10756,
288,
5411,
514,
1234,
273,
2
] |
synchronized(localeMap) { | synchronized (localeMap) { | protected String getLookupMapName( HttpServletRequest request, String keyName, ActionMapping mapping) throws ServletException { // Based on this request's Locale get the lookupMap Map lookupMap = null; synchronized(localeMap) { Locale userLocale = this.getLocale(request); lookupMap = (Map) this.localeMap.get(userLocale); if (lookupMap == null) { lookupMap = this.initLookupMap(request, userLocale); this.localeMap.put(userLocale, lookupMap); } } // Find the key for the resource String key = (String) lookupMap.get(keyName); if (key == null) { String message = messages.getMessage( "dispatch.resource", mapping.getPath(), keyName); throw new ServletException(message); } // Find the method name String methodName = (String) keyMethodMap.get(key); if (methodName == null) { String message = messages.getMessage( "dispatch.lookup", mapping.getPath(), key); throw new ServletException(message); } return methodName; } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/53b94d4a26eca04d2cbfe5be214b8f1af92d61c5/LookupDispatchAction.java/buggy/src/share/org/apache/struts/actions/LookupDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
336,
6609,
863,
461,
12,
3639,
9984,
590,
16,
3639,
514,
13564,
16,
3639,
4382,
3233,
2874,
13,
3639,
1216,
16517,
288,
3639,
368,
25935,
603,
333,
590,
1807,
6458,
336,
326,
3689,
863,
3639,
1635,
3689,
863,
273,
446,
31,
3639,
3852,
261,
6339,
863,
13,
288,
5411,
6458,
729,
3916,
273,
333,
18,
588,
3916,
12,
2293,
1769,
5411,
3689,
863,
273,
261,
863,
13,
333,
18,
6339,
863,
18,
588,
12,
1355,
3916,
1769,
5411,
309,
261,
8664,
863,
422,
446,
13,
288,
7734,
3689,
863,
273,
333,
18,
2738,
6609,
863,
12,
2293,
16,
729,
3916,
1769,
7734,
333,
18,
6339,
863,
18,
458,
12,
1355,
3916,
16,
3689,
863,
1769,
5411,
289,
3639,
289,
3639,
368,
4163,
326,
498,
364,
326,
1058,
3639,
514,
498,
273,
261,
780,
13,
3689,
863,
18,
588,
12,
856,
461,
1769,
3639,
309,
261,
856,
422,
446,
13,
288,
5411,
514,
883,
273,
2743,
18,
24906,
12,
10792,
315,
10739,
18,
3146,
3113,
2874,
18,
588,
743,
9334,
13564,
1769,
5411,
604,
394,
16517,
12,
2150,
1769,
3639,
289,
3639,
368,
4163,
326,
707,
508,
3639,
514,
4918,
273,
261,
780,
13,
498,
1305,
863,
18,
588,
12,
856,
1769,
3639,
309,
261,
2039,
461,
422,
446,
13,
288,
5411,
514,
883,
273,
2743,
18,
24906,
12,
10792,
315,
10739,
18,
8664,
3113,
2874,
18,
588,
743,
9334,
498,
1769,
5411,
604,
394,
16517,
12,
2150,
1769,
3639,
289,
3639,
327,
4918,
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,
4750,
514,
336,
6609,
863,
461,
12,
3639,
9984,
590,
16,
3639,
514,
13564,
16,
3639,
4382,
3233,
2874,
13,
3639,
1216,
16517,
288,
3639,
368,
25935,
603,
333,
590,
1807,
6458,
336,
326,
3689,
863,
3639,
1635,
3689,
863,
273,
446,
31,
3639,
3852,
261,
6339,
863,
13,
288,
5411,
6458,
729,
3916,
273,
333,
18,
588,
3916,
12,
2293,
1769,
5411,
3689,
863,
273,
261,
863,
13,
333,
18,
6339,
863,
18,
588,
12,
1355,
3916,
1769,
5411,
309,
261,
8664,
863,
422,
446,
13,
288,
7734,
3689,
863,
273,
333,
18,
2738,
6609,
863,
12,
2293,
16,
729,
3916,
1769,
7734,
333,
18,
6339,
863,
18,
458,
12,
1355,
3916,
16,
3689,
863,
1769,
5411,
2
] |
try { stmt = con.createStatement(); stmt.executeUpdate(createTableStatement); } catch (Exception e) { logger.error("error creating table with this sql: " + createTableStatement); logger.error("", e); } finally { try { stmt.close(); } catch (Exception e) { } | else { try { stmt = con.createStatement(); stmt.executeUpdate(createTableStatement); } catch (Exception e) { logger.error("error creating table with this sql: " + createTableStatement); logger.error("", e); } finally { try { stmt.close(); } catch (Exception e) { } } | protected void createTable(String createTableStatement) { if (createTableScript) tableScriptOut.println(createTableStatement + propertiesHandler.properties.getStatementTerminator()); try { stmt = con.createStatement(); stmt.executeUpdate(createTableStatement); } catch (Exception e) { logger.error("error creating table with this sql: " + createTableStatement); logger.error("", e); } finally { try { stmt.close(); } catch (Exception e) { } } } | 48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/455019b53d423242c62ebf2277e511e11616c414/DbLoader.java/clean/warehouse/api-impl/src/java/org/theospi/portfolio/util/db/DbLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
225,
918,
19565,
12,
780,
19565,
3406,
13,
288,
3639,
309,
261,
2640,
1388,
3651,
13,
6647,
1014,
3651,
1182,
18,
8222,
12,
2640,
1388,
3406,
397,
1790,
1503,
18,
4738,
18,
588,
3406,
31868,
10663,
3639,
775,
288,
5411,
3480,
273,
356,
18,
2640,
3406,
5621,
5411,
3480,
18,
8837,
1891,
12,
2640,
1388,
3406,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
1194,
18,
1636,
2932,
1636,
4979,
1014,
598,
333,
1847,
30,
315,
397,
19565,
3406,
1769,
5411,
1194,
18,
1636,
2932,
3113,
425,
1769,
3639,
289,
3095,
288,
5411,
775,
288,
7734,
3480,
18,
4412,
5621,
5411,
289,
1044,
261,
503,
425,
13,
288,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
225,
918,
19565,
12,
780,
19565,
3406,
13,
288,
3639,
309,
261,
2640,
1388,
3651,
13,
6647,
1014,
3651,
1182,
18,
8222,
12,
2640,
1388,
3406,
397,
1790,
1503,
18,
4738,
18,
588,
3406,
31868,
10663,
3639,
775,
288,
5411,
3480,
273,
356,
18,
2640,
3406,
5621,
5411,
3480,
18,
8837,
1891,
12,
2640,
1388,
3406,
1769,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
1194,
18,
1636,
2932,
1636,
4979,
1014,
598,
333,
1847,
30,
315,
397,
19565,
3406,
1769,
5411,
1194,
18,
1636,
2932,
3113,
425,
1769,
3639,
289,
3095,
288,
5411,
775,
288,
7734,
3480,
18,
4412,
5621,
5411,
289,
1044,
261,
503,
425,
13,
288,
5411,
289,
3639,
289,
565,
289,
2,
-100
] |
return new ZipCodeBaseEntry(entry); | return new ZipFileCodeBaseEntry(this, entry); | public ICodeBaseEntry lookupResource(String resourceName) throws ResourceNotFoundException { ZipEntry entry = zipFile.getEntry(resourceName); if (entry == null) { throw new ResourceNotFoundException(resourceName); } return new ZipCodeBaseEntry(entry); } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/89082d6c13fa5370dcb9e9de500ed89ed61ed3b4/ZipFileCodeBase.java/clean/findbugs/src/java/edu/umd/cs/findbugs/classfile/impl/ZipFileCodeBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1085,
2171,
1622,
3689,
1420,
12,
780,
9546,
13,
1216,
16676,
288,
202,
202,
9141,
1622,
1241,
273,
19450,
18,
588,
1622,
12,
3146,
461,
1769,
202,
202,
430,
261,
4099,
422,
446,
13,
288,
1082,
202,
12849,
394,
16676,
12,
3146,
461,
1769,
202,
202,
97,
202,
202,
2463,
394,
8603,
1085,
2171,
1622,
12,
4099,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1085,
2171,
1622,
3689,
1420,
12,
780,
9546,
13,
1216,
16676,
288,
202,
202,
9141,
1622,
1241,
273,
19450,
18,
588,
1622,
12,
3146,
461,
1769,
202,
202,
430,
261,
4099,
422,
446,
13,
288,
1082,
202,
12849,
394,
16676,
12,
3146,
461,
1769,
202,
202,
97,
202,
202,
2463,
394,
8603,
1085,
2171,
1622,
12,
4099,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case 'i': | case (byte) 'i': | public java.sql.ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String types[]) throws SQLException { // Handle default value for types if(types==null) types = defaultTableTypes; if(tableNamePattern==null) tableNamePattern="%"; // the field descriptors for the new ResultSet Field f[] = new Field[5]; java.sql.ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, 32); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, 32); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, 32); f[3] = new Field(connection, "TABLE_TYPE", iVarcharOid, 32); f[4] = new Field(connection, "REMARKS", iVarcharOid, 32); // Now form the query StringBuffer sql = new StringBuffer("select relname,oid,relkind from pg_class where ("); boolean notFirst=false; for(int i=0;i<types.length;i++) { for(int j=0;j<getTableTypes.length;j++) if(getTableTypes[j][0].equals(types[i])) { if(notFirst) sql.append(" or "); sql.append(getTableTypes[j][1]); notFirst=true; } } // Added by Stefan Andreasen <[email protected]> // Now take the pattern into account sql.append(") and relname like '"); sql.append(tableNamePattern.toLowerCase()); sql.append("' order by relkind, relname"); // Now run the query r = connection.ExecSQL(sql.toString()); byte remarks[]; while (r.next()) { byte[][] tuple = new byte[5][0]; // Fetch the description for the table (if any) java.sql.ResultSet dr = connection.ExecSQL("select description from pg_description where objoid="+r.getInt(2)); if(((org.postgresql.ResultSet)dr).getTupleCount()==1) { dr.next(); remarks = dr.getBytes(1); } else remarks = defaultRemarks; dr.close(); String relKind; switch (r.getBytes(3)[0]) { case 'r': relKind = "TABLE"; break; case 'i': relKind = "INDEX"; break; case 'S': relKind = "SEQUENCE"; break; case 'v': relKind = "VIEW"; break; default: relKind = null; } tuple[0] = null; // Catalog name tuple[1] = null; // Schema name tuple[2] = r.getBytes(1); // Table name tuple[3] = (relKind==null) ? null : relKind.getBytes(); // Table type tuple[4] = remarks; // Remarks v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); } | 46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/5abaa779c46eef880c993aad5266e64ad754904e/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
29002,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
1953,
63,
5717,
1216,
6483,
225,
288,
565,
368,
5004,
805,
460,
364,
1953,
565,
309,
12,
2352,
631,
2011,
13,
1377,
1953,
273,
805,
1388,
2016,
31,
3639,
309,
12,
18033,
3234,
631,
2011,
13,
1377,
4775,
3234,
11613,
14432,
3639,
368,
326,
652,
14215,
364,
326,
394,
10842,
565,
2286,
284,
8526,
273,
394,
2286,
63,
25,
15533,
565,
2252,
18,
4669,
18,
13198,
436,
31,
202,
759,
10842,
364,
326,
3063,
843,
716,
732,
1608,
358,
741,
565,
5589,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
3639,
284,
63,
20,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
14130,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
21,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
55,
10390,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
22,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
1985,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
23,
65,
273,
394,
2286,
12,
4071,
16,
315,
7775,
67,
2399,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
565,
284,
63,
24,
65,
273,
394,
2286,
12,
4071,
16,
315,
862,
12693,
55,
3113,
277,
58,
22483,
19105,
16,
3847,
1769,
3639,
368,
4494,
646,
326,
843,
565,
6674,
1847,
273,
394,
6674,
2932,
4025,
1279,
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,
2252,
18,
4669,
18,
13198,
29002,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
1953,
63,
5717,
1216,
6483,
225,
288,
565,
368,
5004,
805,
460,
364,
1953,
565,
309,
12,
2352,
631,
2011,
13,
1377,
1953,
273,
805,
1388,
2016,
31,
3639,
309,
12,
18033,
3234,
631,
2011,
13,
1377,
4775,
3234,
11613,
14432,
3639,
368,
326,
652,
14215,
364,
326,
394,
10842,
565,
2286,
284,
8526,
273,
394,
2286,
63,
25,
15533,
565,
2252,
18,
4669,
18,
13198,
436,
31,
202,
759,
10842,
364,
326,
3063,
843,
716,
732,
1608,
358,
741,
565,
5589,
331,
273,
394,
5589,
5621,
202,
202,
759,
1021,
394,
10842,
3193,
10769,
3639,
284,
63,
2
] |
Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getName(); | final Member member0 = getMemberArg(evaluator, args, 0, true); final Member member1 = getMemberArg(evaluator, args, 1, true); if (member0.isNull() || member1.isNull()) { return Collections.EMPTY_LIST; } if (member0.getLevel() != member1.getLevel()) { throw newEvalException(this, "Members must belong to the same level"); } return FunUtil.memberRange(evaluator, member0, member1); | public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getName(); } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/d30fc76ba1dd95b09e0c26541bfae317c6bef4e1/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
8611,
4968,
273,
20283,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
638,
1769,
9506,
202,
2463,
4968,
18,
17994,
5621,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
1033,
5956,
12,
15876,
18256,
16,
7784,
8526,
833,
13,
288,
9506,
202,
8611,
4968,
273,
20283,
4117,
12,
14168,
639,
16,
833,
16,
374,
16,
638,
1769,
9506,
202,
2463,
4968,
18,
17994,
5621,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public boolean hasLastData() { | public synchronized boolean hasLastData() { | public boolean hasLastData() { return this.lastRequestData != null; } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/a6a9cc01004d94d4bdefc0b76c0bdb1962187369/USKFetcher.java/buggy/src/freenet/client/async/USKFetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
711,
3024,
751,
1435,
288,
202,
202,
2463,
333,
18,
2722,
17031,
480,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
711,
3024,
751,
1435,
288,
202,
202,
2463,
333,
18,
2722,
17031,
480,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 String parseXML(String srcUrl) throws GDEMException{ | public String parseXML(String srcUrl) throws DCMException{ | public String parseXML(String srcUrl) throws GDEMException{ InputFile src=null; InputStream input = null; try{ src = new InputFile(srcUrl); input = src.getSrcInputStream(); return parseXML(input); } catch (MalformedURLException mfe ) { throw new GDEMException("Bad URL : " + mfe.toString()); } catch (IOException ioe ) { throw new GDEMException("Error opening URL " + ioe.toString()); } finally{ try{ if (input!=null) input.close(); } catch(Exception e){} } } | 6392 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6392/7fae66d08a999c83396d5085d755189bf2247794/InputAnalyser.java/buggy/src/eionet/gdem/conversion/ssr/InputAnalyser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1109,
4201,
12,
780,
1705,
1489,
13,
1216,
463,
9611,
503,
95,
565,
2741,
812,
1705,
33,
2011,
31,
565,
5037,
810,
273,
446,
31,
565,
775,
95,
1377,
1705,
273,
394,
2741,
812,
12,
4816,
1489,
1769,
1377,
810,
273,
1705,
18,
588,
7740,
4348,
5621,
1377,
327,
1109,
4201,
12,
2630,
1769,
565,
289,
1044,
261,
18695,
20160,
312,
3030,
262,
288,
1377,
604,
394,
611,
1639,
49,
503,
2932,
6434,
1976,
294,
315,
397,
312,
3030,
18,
10492,
10663,
565,
289,
1044,
261,
14106,
10847,
262,
288,
1377,
604,
394,
611,
1639,
49,
503,
2932,
668,
10890,
1976,
315,
397,
10847,
18,
10492,
10663,
565,
289,
565,
3095,
95,
1377,
775,
95,
3639,
309,
261,
2630,
5,
33,
2011,
13,
810,
18,
4412,
5621,
202,
565,
289,
202,
565,
1044,
12,
503,
425,
13,
2916,
565,
289,
1377,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
1109,
4201,
12,
780,
1705,
1489,
13,
1216,
463,
9611,
503,
95,
565,
2741,
812,
1705,
33,
2011,
31,
565,
5037,
810,
273,
446,
31,
565,
775,
95,
1377,
1705,
273,
394,
2741,
812,
12,
4816,
1489,
1769,
1377,
810,
273,
1705,
18,
588,
7740,
4348,
5621,
1377,
327,
1109,
4201,
12,
2630,
1769,
565,
289,
1044,
261,
18695,
20160,
312,
3030,
262,
288,
1377,
604,
394,
611,
1639,
49,
503,
2932,
6434,
1976,
294,
315,
397,
312,
3030,
18,
10492,
10663,
565,
289,
1044,
261,
14106,
10847,
262,
288,
1377,
604,
394,
611,
1639,
49,
503,
2932,
668,
10890,
1976,
315,
397,
10847,
18,
10492,
10663,
565,
289,
565,
3095,
95,
1377,
775,
95,
3639,
2
] |
match = ((osName.indexOf("mac") > -1) && !(osName.endsWith("x"))); | match = ((osName.indexOf("mac") > -1)); | public boolean matchCurrentSystem() { boolean match = true; String osName = System.getProperty("os.name").toLowerCase(); if ((arch != null) && (arch.length() != 0)) { match = System.getProperty("os.arch").toLowerCase().equals(arch); } if (match && (version != null) && (version.length() != 0)) { match = System.getProperty("os.version").toLowerCase().equals(version); } if (match && (name != null) && (name.length() != 0)) { match = osName.equals(name); } if (match && (family != null)) { if (family.equals("windows")) { match = (osName.indexOf("windows") > -1); } else if (family.equals("mac")) { match = ((osName.indexOf("mac") > -1) && !(osName.endsWith("x"))); } else if (family.equals("unix")) { String pathSep = System.getProperty("path.separator"); match = ( osName.lastIndexOf("unix") > -1 || osName.lastIndexOf("linux") > -1 || osName.lastIndexOf("solaris") > -1 || osName.lastIndexOf("sunos") > -1 || osName.lastIndexOf("aix") > -1 || osName.lastIndexOf("hpux") > -1 || osName.lastIndexOf("hp-ux") > -1 || osName.lastIndexOf("irix") > -1 || osName.lastIndexOf("bsd") > -1 || ((pathSep.equals(":") && (!osName.startsWith("mac") || osName.endsWith("x")))) ); } } return match && ((family != null) || (name != null) || (version != null) || (arch != null)); } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/eec0fbaab314c2d79ea8d693ab2becee41090d68/OsConstraint.java/buggy/src/lib/com/izforge/izpack/util/OsConstraint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
845,
3935,
3163,
1435,
225,
288,
565,
1250,
845,
273,
638,
31,
565,
514,
1140,
461,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
20387,
869,
5630,
5621,
565,
309,
14015,
991,
480,
446,
13,
597,
261,
991,
18,
2469,
1435,
480,
374,
3719,
565,
288,
1377,
845,
273,
2332,
18,
588,
1396,
2932,
538,
18,
991,
20387,
869,
5630,
7675,
14963,
12,
991,
1769,
565,
289,
565,
309,
261,
1916,
597,
261,
1589,
480,
446,
13,
597,
261,
1589,
18,
2469,
1435,
480,
374,
3719,
565,
288,
1377,
845,
273,
2332,
18,
588,
1396,
2932,
538,
18,
1589,
20387,
869,
5630,
7675,
14963,
12,
1589,
1769,
565,
289,
565,
309,
261,
1916,
597,
261,
529,
480,
446,
13,
597,
261,
529,
18,
2469,
1435,
480,
374,
3719,
565,
288,
1377,
845,
273,
1140,
461,
18,
14963,
12,
529,
1769,
565,
289,
565,
309,
261,
1916,
597,
261,
9309,
480,
446,
3719,
565,
288,
1377,
309,
261,
9309,
18,
14963,
2932,
13226,
6,
3719,
1377,
288,
3639,
845,
273,
261,
538,
461,
18,
31806,
2932,
13226,
7923,
405,
300,
21,
1769,
1377,
289,
1377,
469,
309,
261,
9309,
18,
14963,
2932,
5821,
6,
3719,
1377,
288,
3639,
845,
273,
14015,
538,
461,
18,
31806,
2932,
5821,
7923,
405,
300,
21,
10019,
1377,
289,
1377,
469,
309,
261,
9309,
18,
14963,
2932,
21136,
6,
3719,
1377,
288,
3639,
514,
589,
5097,
273,
2332,
18,
588,
1396,
2932,
803,
18,
11287,
8863,
3639,
845,
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,
282,
1071,
1250,
845,
3935,
3163,
1435,
225,
288,
565,
1250,
845,
273,
638,
31,
565,
514,
1140,
461,
273,
2332,
18,
588,
1396,
2932,
538,
18,
529,
20387,
869,
5630,
5621,
565,
309,
14015,
991,
480,
446,
13,
597,
261,
991,
18,
2469,
1435,
480,
374,
3719,
565,
288,
1377,
845,
273,
2332,
18,
588,
1396,
2932,
538,
18,
991,
20387,
869,
5630,
7675,
14963,
12,
991,
1769,
565,
289,
565,
309,
261,
1916,
597,
261,
1589,
480,
446,
13,
597,
261,
1589,
18,
2469,
1435,
480,
374,
3719,
565,
288,
1377,
845,
273,
2332,
18,
588,
1396,
2932,
538,
18,
1589,
20387,
869,
5630,
7675,
14963,
12,
1589,
1769,
565,
289,
565,
309,
261,
1916,
597,
261,
2
] |
Token xsp; xsp = jj_scanpos; if (jj_3R_165()) { jj_scanpos = xsp; if (jj_3R_166()) return true; } | if (jj_3R_60()) return true; | final private boolean jj_3R_108() { Token xsp; xsp = jj_scanpos; if (jj_3R_165()) { jj_scanpos = xsp; if (jj_3R_166()) return true; } return false; } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/2c4cc3303f04cdb3883f34b25cfe841b0bdf1fb5/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
21770,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
28275,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
23553,
10756,
327,
638,
31,
565,
289,
565,
327,
629,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
54,
67,
21770,
1435,
288,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
28275,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
23553,
10756,
327,
638,
31,
565,
289,
565,
327,
629,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
code = DefaultFECCodeFactory.getDefault().createFECCode(k,n); Logger.minor(this, "FEC impl is "+code); | encoder = DefaultFECCodeFactory.getDefault().createFECCode(k,n); | public StandardOnionFECCodec(int k, int n) { this.k = k; this.n = n; code = DefaultFECCodeFactory.getDefault().createFECCode(k,n); Logger.minor(this, "FEC impl is "+code); // revert to below if above causes JVM crashes //code = new PureCode(k,n); } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/b68b5432790bd0dc05355cf52ec6166eb2cceed9/StandardOnionFECCodec.java/buggy/src/freenet/client/StandardOnionFECCodec.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8263,
1398,
285,
42,
7228,
11008,
12,
474,
417,
16,
509,
290,
13,
288,
202,
202,
2211,
18,
79,
273,
417,
31,
202,
202,
2211,
18,
82,
273,
290,
31,
202,
202,
710,
273,
2989,
42,
7228,
1085,
1733,
18,
588,
1868,
7675,
2640,
42,
7228,
1085,
12,
79,
16,
82,
1769,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
42,
7228,
9380,
353,
13773,
710,
1769,
202,
202,
759,
15226,
358,
5712,
309,
5721,
14119,
14131,
4422,
7690,
202,
202,
759,
710,
273,
394,
16616,
1085,
12,
79,
16,
82,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8263,
1398,
285,
42,
7228,
11008,
12,
474,
417,
16,
509,
290,
13,
288,
202,
202,
2211,
18,
79,
273,
417,
31,
202,
202,
2211,
18,
82,
273,
290,
31,
202,
202,
710,
273,
2989,
42,
7228,
1085,
1733,
18,
588,
1868,
7675,
2640,
42,
7228,
1085,
12,
79,
16,
82,
1769,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
42,
7228,
9380,
353,
13773,
710,
1769,
202,
202,
759,
15226,
358,
5712,
309,
5721,
14119,
14131,
4422,
7690,
202,
202,
759,
710,
273,
394,
16616,
1085,
12,
79,
16,
82,
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
] |
void installKeyboardActions() | protected void installKeyboardActions() | void installKeyboardActions() { } | 1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/7878167de36c868f3f4b0f507094bb155efbb199/BasicListUI.java/clean/libjava/javax/swing/plaf/basic/BasicListUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3799,
17872,
6100,
1435,
225,
288,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
3799,
17872,
6100,
1435,
225,
288,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
warn("StartElement"); | logger.debug("StartElement"); | public void startElement (String uri, String local, String raw, Attributes atts) { String name = raw; warn("StartElement"); setCurrentElement(name); switch (CurrentElement) { case ATOM : warn("T1"); for (int i = 0; i < atts.getLength(); i++) { warn("T2"); if (atts.getQName(i).equals("id")) { warn("T3 " + atts.getValue(i)); elid.addElement(atts.getValue(i)); warn("T3 " + elid); } } warn("T4"); break; case BOND : warn("B1"); for (int i = 0; i < atts.getLength(); i++) { warn("B2 " + atts.getQName(i) + "=" + atts.getValue(i)); if (atts.getQName(i).equals("id")) { bondid.addElement(atts.getValue(i)); warn("B3 " + bondid); } } stereoGiven = false; warn("B4"); curRef = 0; break; case COORDINATE2 : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) { BUILTIN = atts.getValue(i); warn("Valid element coord found, builtin: " + atts.getValue(i)); } } break; case COORDINATE3 : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) { BUILTIN = atts.getValue(i); } } break; case STRING : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) { BUILTIN = atts.getValue(i); } else if (atts.getQName(i).equals("title")) { elementTitle = atts.getValue(i); } } break; case FLOAT : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) { BUILTIN = atts.getValue(i); } else if (atts.getQName(i).equals("title")) { elementTitle = atts.getValue(i); } } break; case ATOMARRAY : break; case INTEGERARRAY : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) BUILTIN = atts.getValue(i); } break; case STRINGARRAY : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) BUILTIN = atts.getValue(i); } break; case FLOATARRAY : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) BUILTIN = atts.getValue(i); if (atts.getQName(i).equals("title")) elementTitle = atts.getValue(i); } break; case MOLECULE : elsym = new Vector(); elid = new Vector(); x3 = new Vector(); y3 = new Vector(); z3 = new Vector(); BUILTIN = ""; cdo.startObject("Molecule"); cdo.startObject("Frame"); for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("id")) cdo.setObjectProperty("Frame", "title", atts.getValue(i)); } break; case CRYSTAL: cdo.startObject("Crystal"); break; case LIST : break; } } | 46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/e04a2bbd6afdac34488441c1ce22ad5f73d254ff/Convention.java/buggy/org/openscience/cdk/io/cml/Convention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13591,
261,
780,
2003,
16,
514,
1191,
16,
514,
1831,
16,
9055,
15687,
13,
288,
202,
780,
508,
273,
1831,
31,
202,
8935,
2932,
1685,
1046,
8863,
202,
542,
3935,
1046,
12,
529,
1769,
202,
9610,
261,
3935,
1046,
13,
288,
202,
3593,
27460,
294,
540,
202,
565,
1894,
2932,
56,
21,
8863,
202,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
15687,
18,
588,
1782,
5621,
277,
27245,
288,
202,
202,
8935,
2932,
56,
22,
8863,
202,
202,
430,
261,
270,
3428,
18,
588,
13688,
12,
77,
2934,
14963,
2932,
350,
6,
3719,
288,
1082,
565,
1894,
2932,
56,
23,
315,
397,
15687,
18,
24805,
12,
77,
10019,
6647,
1082,
565,
415,
350,
18,
1289,
1046,
12,
270,
3428,
18,
24805,
12,
77,
10019,
1082,
565,
1894,
2932,
56,
23,
315,
397,
415,
350,
1769,
6647,
202,
202,
97,
202,
565,
289,
202,
565,
1894,
2932,
56,
24,
8863,
202,
565,
898,
31,
202,
3593,
605,
673,
40,
294,
540,
202,
565,
1894,
2932,
38,
21,
8863,
202,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
15687,
18,
588,
1782,
5621,
277,
27245,
288,
202,
202,
8935,
2932,
38,
22,
315,
397,
15687,
18,
588,
13688,
12,
77,
13,
397,
9671,
397,
15687,
18,
24805,
12,
77,
10019,
6647,
202,
202,
430,
261,
270,
3428,
18,
588,
13688,
12,
77,
2934,
14963,
2932,
350,
6,
3719,
288,
1082,
565,
8427,
350,
18,
1289,
1046,
12,
270,
3428,
18,
24805,
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,
13591,
261,
780,
2003,
16,
514,
1191,
16,
514,
1831,
16,
9055,
15687,
13,
288,
202,
780,
508,
273,
1831,
31,
202,
8935,
2932,
1685,
1046,
8863,
202,
542,
3935,
1046,
12,
529,
1769,
202,
9610,
261,
3935,
1046,
13,
288,
202,
3593,
27460,
294,
540,
202,
565,
1894,
2932,
56,
21,
8863,
202,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
15687,
18,
588,
1782,
5621,
277,
27245,
288,
202,
202,
8935,
2932,
56,
22,
8863,
202,
202,
430,
261,
270,
3428,
18,
588,
13688,
12,
77,
2934,
14963,
2932,
350,
6,
3719,
288,
1082,
565,
1894,
2932,
56,
23,
315,
397,
15687,
18,
24805,
12,
77,
10019,
6647,
1082,
565,
415,
350,
2
] |
StringBuffer term = new StringBuffer(); for (int j = 0; j < expr.length(); j++) if (Character.isLetterOrDigit(expr.charAt(j))) term.append(expr.charAt(j)); else break; StringValue startTerm = null; if(term.length() > 0) { startTerm = new StringValue(term.toString()); } TermMatcher comparator = new RegexMatcher(expr, type); | StringValue startTerm = null; if (expr.startsWith("^")) { StringBuffer term = new StringBuffer(); for (int j = 1; j < expr.length(); j++) if (Character.isLetterOrDigit(expr.charAt(j))) term.append(expr.charAt(j)); else break; if(term.length() > 0) { startTerm = new StringValue(term.toString()); } } TermMatcher comparator = new RegexMatcher(expr, type, flags); | public NodeSet match(DocumentSet docs, NodeSet contextSet, String expr, int type) throws TerminatedException, EXistException { // if the regexp starts with a char sequence, we restrict the index scan to entries starting with // the same sequence. Otherwise, we have to scan the whole index. StringBuffer term = new StringBuffer(); for (int j = 0; j < expr.length(); j++) if (Character.isLetterOrDigit(expr.charAt(j))) term.append(expr.charAt(j)); else break; StringValue startTerm = null; if(term.length() > 0) { startTerm = new StringValue(term.toString()); } TermMatcher comparator = new RegexMatcher(expr, type); NodeSet result = new ExtArrayNodeSet(); RegexCallback callback = new RegexCallback(docs, contextSet, result, comparator); Lock lock = db.getLock(); for (Iterator iter = docs.getCollectionIterator(); iter.hasNext();) { Collection collection = (Collection) iter.next(); short collectionId = collection.getId(); byte[] key; if(startTerm != null) key = startTerm.serialize(collectionId); else { key = new byte[3]; ByteConversion.shortToByte(collectionId, key, 0); key[2] = (byte) Type.STRING; } IndexQuery query = new IndexQuery(IndexQuery.TRUNC_RIGHT, new Value(key)); try { lock.acquire(); try { db.query(query, callback); } catch (IOException ioe) { LOG.debug(ioe); } catch (BTreeException bte) { LOG.debug(bte); } } catch (LockException e) { LOG.debug(e); } finally { lock.release(); } } return result; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1f6cf110832ac05723273b5fb05467a7b5704d07/NativeValueIndex.java/buggy/src/org/exist/storage/NativeValueIndex.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
694,
845,
12,
2519,
694,
3270,
16,
2029,
694,
819,
694,
16,
514,
3065,
16,
509,
618,
13,
565,
1216,
6820,
7458,
503,
16,
5675,
376,
503,
288,
377,
202,
759,
309,
326,
7195,
2542,
598,
279,
1149,
3102,
16,
732,
13108,
326,
770,
4135,
358,
3222,
5023,
598,
377,
202,
759,
326,
1967,
3102,
18,
5272,
16,
732,
1240,
358,
4135,
326,
7339,
770,
18,
377,
202,
780,
1892,
2481,
273,
394,
6674,
5621,
202,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
3065,
18,
2469,
5621,
525,
27245,
1082,
202,
430,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
8638,
18,
3001,
861,
12,
78,
20349,
9506,
202,
6408,
18,
6923,
12,
8638,
18,
3001,
861,
12,
78,
10019,
1082,
202,
12107,
9506,
202,
8820,
31,
202,
202,
19733,
787,
4065,
273,
446,
31,
202,
202,
430,
12,
6408,
18,
2469,
1435,
405,
374,
13,
288,
1082,
202,
1937,
4065,
273,
394,
18595,
12,
6408,
18,
10492,
10663,
202,
202,
97,
9506,
202,
4065,
6286,
8862,
273,
394,
15078,
6286,
12,
8638,
16,
618,
1769,
3639,
2029,
694,
563,
273,
394,
6419,
1076,
907,
694,
5621,
3639,
15078,
2428,
1348,
273,
394,
15078,
2428,
12,
8532,
16,
819,
694,
16,
563,
16,
8862,
1769,
3639,
3488,
2176,
273,
1319,
18,
588,
2531,
5621,
3639,
364,
261,
3198,
1400,
273,
3270,
18,
588,
2532,
3198,
5621,
1400,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
2532,
1849,
273,
261,
2532,
13,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
694,
845,
12,
2519,
694,
3270,
16,
2029,
694,
819,
694,
16,
514,
3065,
16,
509,
618,
13,
565,
1216,
6820,
7458,
503,
16,
5675,
376,
503,
288,
377,
202,
759,
309,
326,
7195,
2542,
598,
279,
1149,
3102,
16,
732,
13108,
326,
770,
4135,
358,
3222,
5023,
598,
377,
202,
759,
326,
1967,
3102,
18,
5272,
16,
732,
1240,
358,
4135,
326,
7339,
770,
18,
377,
202,
780,
1892,
2481,
273,
394,
6674,
5621,
202,
202,
1884,
261,
474,
525,
273,
374,
31,
525,
411,
3065,
18,
2469,
5621,
525,
27245,
1082,
202,
430,
261,
7069,
18,
291,
13938,
1162,
10907,
12,
8638,
18,
3001,
861,
12,
78,
20349,
9506,
202,
6408,
18,
6923,
12,
2
] |
Statement statement = drdaStmt.getStatement(); statement.clearWarnings(); if (pendingStatementTimeout >= 0) { statement.setQueryTimeout(pendingStatementTimeout); pendingStatementTimeout = -1; } | Statement statement = drdaStmt.getStatement(); statement.clearWarnings(); if (pendingStatementTimeout >= 0) { statement.setQueryTimeout(pendingStatementTimeout); pendingStatementTimeout = -1; } | private int parseEXCSQLIMM() throws DRDAProtocolException,SQLException { int codePoint; reader.markCollection(); Pkgnamcsn pkgnamcsn = null; codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { // optional case CodePoint.RDBNAM: setDatabase(CodePoint.EXCSQLIMM); break; // required case CodePoint.PKGNAMCSN: pkgnamcsn = parsePKGNAMCSN(); break; case CodePoint.RDBCMTOK: parseRDBCMTOK(); break; //optional case CodePoint.MONITOR: parseMONITOR(); break; default: invalidCodePoint(codePoint); } codePoint = reader.getCodePoint(); } DRDAStatement drdaStmt = database.getDefaultStatement(pkgnamcsn); // initialize statement for reuse drdaStmt.initialize(); String sqlStmt = parseEXECSQLIMMobjects(); Statement statement = drdaStmt.getStatement(); statement.clearWarnings(); if (pendingStatementTimeout >= 0) { statement.setQueryTimeout(pendingStatementTimeout); pendingStatementTimeout = -1; } int updCount = statement.executeUpdate(sqlStmt); return updCount; } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/d2989b7c8e85d8e5237ca2f36344eb4f163a426b/DRDAConnThread.java/clean/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
2294,
39,
3997,
3445,
49,
1435,
1216,
16801,
9793,
5752,
503,
16,
23116,
565,
288,
202,
474,
18614,
31,
202,
10530,
18,
3355,
2532,
5621,
202,
7789,
1600,
301,
2143,
82,
2365,
1600,
301,
2143,
82,
273,
446,
31,
202,
710,
2148,
273,
2949,
18,
588,
31536,
5621,
202,
17523,
261,
710,
2148,
480,
300,
21,
13,
202,
565,
288,
202,
202,
9610,
261,
710,
2148,
13,
1082,
565,
288,
1082,
202,
759,
3129,
1082,
565,
648,
3356,
2148,
18,
54,
2290,
50,
2192,
30,
1082,
202,
542,
4254,
12,
31536,
18,
2294,
39,
3997,
3445,
49,
1769,
1082,
202,
8820,
31,
1082,
202,
759,
1931,
1082,
565,
648,
3356,
2148,
18,
8784,
8318,
2192,
4596,
50,
30,
1082,
202,
5465,
1600,
301,
2143,
82,
273,
1109,
8784,
8318,
2192,
4596,
50,
5621,
1082,
202,
8820,
31,
1082,
565,
648,
3356,
2148,
18,
54,
13183,
6152,
3141,
30,
1082,
202,
2670,
54,
13183,
6152,
3141,
5621,
1082,
202,
8820,
31,
1082,
202,
759,
10444,
1082,
565,
648,
3356,
2148,
18,
17667,
30153,
30,
1082,
202,
2670,
17667,
30153,
5621,
1082,
202,
8820,
31,
1082,
565,
805,
30,
1082,
202,
5387,
31536,
12,
710,
2148,
1769,
1082,
565,
289,
202,
202,
710,
2148,
273,
2949,
18,
588,
31536,
5621,
202,
565,
289,
202,
6331,
9793,
3406,
5081,
2414,
8952,
273,
225,
2063,
18,
588,
1868,
3406,
12,
5465,
1600,
301,
2143,
82,
1769,
202,
759,
4046,
3021,
364,
11827,
202,
3069,
2414,
8952,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
1109,
2294,
39,
3997,
3445,
49,
1435,
1216,
16801,
9793,
5752,
503,
16,
23116,
565,
288,
202,
474,
18614,
31,
202,
10530,
18,
3355,
2532,
5621,
202,
7789,
1600,
301,
2143,
82,
2365,
1600,
301,
2143,
82,
273,
446,
31,
202,
710,
2148,
273,
2949,
18,
588,
31536,
5621,
202,
17523,
261,
710,
2148,
480,
300,
21,
13,
202,
565,
288,
202,
202,
9610,
261,
710,
2148,
13,
1082,
565,
288,
1082,
202,
759,
3129,
1082,
565,
648,
3356,
2148,
18,
54,
2290,
50,
2192,
30,
1082,
202,
542,
4254,
12,
31536,
18,
2294,
39,
3997,
3445,
49,
1769,
1082,
202,
8820,
31,
1082,
202,
759,
1931,
1082,
565,
648,
3356,
2148,
18,
8784,
8318,
2192,
2
] |
runQueryCheckResult(query, expected); | assertQueryReturns(query, expected); | public void testLinRegPointQuarter() { String query = "WITH MEMBER [Measures].[Test] as " + nl + " 'LinRegPoint(" + nl + " Rank(Time.CurrentMember, Time.CurrentMember.Level.Members)," + nl + " Descendants([Time].[1997], [Time].[Quarter]), " + nl + "[Measures].[Store Sales], " + nl + " Rank(Time.CurrentMember, Time.CurrentMember.Level.Members))' " + nl + "SELECT " + nl + "{[Measures].[Test],[Measures].[Store Sales]} ON ROWS, " + nl + "{[Time].[1997].Children} ON COLUMNS " + nl + "FROM Sales"; String expected = "Axis #0:" + nl + "{}" + nl + "Axis #1:" + nl + "{[Time].[1997].[Q1]}" + nl + "{[Time].[1997].[Q2]}" + nl + "{[Time].[1997].[Q3]}" + nl + "{[Time].[1997].[Q4]}" + nl + "Axis #2:" + nl + "{[Measures].[Test]}" + nl + "{[Measures].[Store Sales]}" + nl + "Row #0: 134,299.22" + nl + "Row #0: 138,972.76" + nl + "Row #0: 143,646.30" + nl + "Row #0: 148,319.85" + nl + "Row #1: 139,628.35" + nl + "Row #1: 132,666.27" + nl + "Row #1: 140,271.89" + nl + "Row #1: 152,671.62" + nl; runQueryCheckResult(query, expected); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3041f930b5fc4bf6aa3339845b828801c1d8b366/FunctionTest.java/clean/testsrc/main/mondrian/olap/fun/FunctionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
48,
267,
1617,
2148,
928,
14153,
1435,
288,
3639,
514,
843,
273,
315,
9147,
18990,
6271,
306,
23177,
1823,
8009,
63,
4709,
65,
487,
315,
397,
7741,
397,
7734,
315,
225,
296,
48,
267,
1617,
2148,
2932,
397,
7741,
397,
7734,
315,
565,
534,
2304,
12,
950,
18,
3935,
4419,
16,
2647,
18,
3935,
4419,
18,
2355,
18,
6918,
3631,
6,
397,
7741,
397,
7734,
315,
565,
13913,
409,
4388,
3816,
950,
8009,
63,
19818,
27,
6487,
306,
950,
8009,
63,
928,
14153,
65,
3631,
315,
397,
7741,
397,
5397,
5158,
23177,
1823,
8009,
63,
2257,
25996,
6487,
315,
397,
7741,
397,
7734,
315,
565,
534,
2304,
12,
950,
18,
3935,
4419,
16,
2647,
18,
3935,
4419,
18,
2355,
18,
6918,
13,
2506,
315,
397,
7741,
397,
7734,
315,
4803,
315,
397,
7741,
397,
7734,
4144,
63,
23177,
1823,
8009,
63,
4709,
6487,
63,
23177,
1823,
8009,
63,
2257,
25996,
18322,
6229,
6525,
2651,
16,
315,
397,
7741,
397,
7734,
4144,
63,
950,
8009,
63,
19818,
27,
8009,
4212,
97,
6229,
5597,
19639,
315,
397,
7741,
397,
7734,
315,
11249,
25996,
14432,
3639,
514,
2665,
273,
315,
6558,
468,
20,
2773,
397,
7741,
397,
7734,
13034,
397,
7741,
397,
7734,
315,
6558,
468,
21,
2773,
397,
7741,
397,
7734,
4144,
63,
950,
8009,
63,
19818,
27,
8009,
63,
53,
21,
20817,
397,
7741,
397,
7734,
4144,
63,
950,
8009,
63,
19818,
27,
8009,
63,
53,
22,
20817,
397,
7741,
397,
7734,
4144,
63,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
48,
267,
1617,
2148,
928,
14153,
1435,
288,
3639,
514,
843,
273,
315,
9147,
18990,
6271,
306,
23177,
1823,
8009,
63,
4709,
65,
487,
315,
397,
7741,
397,
7734,
315,
225,
296,
48,
267,
1617,
2148,
2932,
397,
7741,
397,
7734,
315,
565,
534,
2304,
12,
950,
18,
3935,
4419,
16,
2647,
18,
3935,
4419,
18,
2355,
18,
6918,
3631,
6,
397,
7741,
397,
7734,
315,
565,
13913,
409,
4388,
3816,
950,
8009,
63,
19818,
27,
6487,
306,
950,
8009,
63,
928,
14153,
65,
3631,
315,
397,
7741,
397,
5397,
5158,
23177,
1823,
8009,
63,
2257,
25996,
6487,
315,
397,
7741,
397,
7734,
315,
565,
534,
2304,
12,
950,
18,
3935,
4419,
16,
2647,
18,
2
] |
data = context.popNumberOperands(4); float[] fv = new float[4]; fv[0] = (float) data[0]; fv[1] = (float) data[1]; fv[2] = (float) data[2]; fv[3] = (float) data[3]; rd = (int) (255 * Math.max(0, 1 - fv[0] - fv[3])); gr = (int) (255 * Math.max(0, 1 - fv[1] - fv[3])); bl = (int) (255 * Math.max(0, 1 - fv[2] - fv[3])); context.pencil.graphics.setPaint(new Color(rd, gr, bl)); | data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); | public void execute(PAContext context) throws PainterException { double data[]; int rd, gr, bl; data = context.popNumberOperands(4); float[] fv = new float[4]; fv[0] = (float) data[0]; fv[1] = (float) data[1]; fv[2] = (float) data[2]; fv[3] = (float) data[3]; rd = (int) (255 * Math.max(0, 1 - fv[0] - fv[3])); gr = (int) (255 * Math.max(0, 1 - fv[1] - fv[3])); bl = (int) (255 * Math.max(0, 1 - fv[2] - fv[3])); context.pencil.graphics.setPaint(new Color(rd, gr, bl)); } | 6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/a70285238d45643e095fbf1c5a17749c92b693e7/PAContext.java/clean/src/com/lowagie/text/pdf/codec/postscript/PAContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
509,
9437,
16,
3821,
16,
2811,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
24,
1769,
3639,
1431,
8526,
10097,
273,
394,
1431,
63,
24,
15533,
3639,
10097,
63,
20,
65,
273,
261,
5659,
13,
501,
63,
20,
15533,
3639,
10097,
63,
21,
65,
273,
261,
5659,
13,
501,
63,
21,
15533,
3639,
10097,
63,
22,
65,
273,
261,
5659,
13,
501,
63,
22,
15533,
3639,
10097,
63,
23,
65,
273,
261,
5659,
13,
501,
63,
23,
15533,
3639,
9437,
273,
261,
474,
13,
261,
10395,
380,
2361,
18,
1896,
12,
20,
16,
404,
300,
10097,
63,
20,
65,
300,
10097,
63,
23,
5717,
1769,
3639,
3821,
273,
261,
474,
13,
261,
10395,
380,
2361,
18,
1896,
12,
20,
16,
404,
300,
10097,
63,
21,
65,
300,
10097,
63,
23,
5717,
1769,
3639,
2811,
273,
261,
474,
13,
261,
10395,
380,
2361,
18,
1896,
12,
20,
16,
404,
300,
10097,
63,
22,
65,
300,
10097,
63,
23,
5717,
1769,
3639,
819,
18,
84,
21620,
18,
31586,
18,
542,
12699,
12,
2704,
5563,
12,
13623,
16,
3821,
16,
2811,
10019,
1377,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
509,
9437,
16,
3821,
16,
2811,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
24,
1769,
3639,
1431,
8526,
10097,
273,
394,
1431,
63,
24,
15533,
3639,
10097,
63,
20,
65,
273,
261,
5659,
13,
501,
63,
20,
15533,
3639,
10097,
63,
21,
65,
273,
261,
5659,
13,
501,
63,
21,
15533,
3639,
10097,
63,
22,
65,
273,
261,
5659,
13,
501,
63,
22,
15533,
3639,
10097,
63,
23,
65,
273,
261,
5659,
13,
501,
63,
23,
15533,
3639,
9437,
273,
261,
474,
13,
261,
10395,
380,
2361,
18,
1896,
12,
20,
16,
404,
300,
10097,
2
] |
if (start-end > estimate) { VM.sysWriteln("Bad estimate: "+(start-end)+" "+estimate+" "+p); | if (end-start > estimate) { VM.sysWriteln("Bad estimate: "+(end-start)+" "+estimate+" "+p); VM.sysWrite("\tMachine code: "); asm.writeLastInstruction(start); VM.sysWriteln(); | public static final int generateCode(OPT_IR ir, boolean shouldPrint) { int count = 0; for (OPT_Instruction p = ir.firstInstructionInCodeOrder(); p != null; p = p.nextInstructionInCodeOrder()) { p.setmcOffset( - ++count); } OPT_Assembler asm = new OPT_Assembler(count, shouldPrint); for (OPT_Instruction p = ir.firstInstructionInCodeOrder(); p != null; p = p.nextInstructionInCodeOrder()) { int start = asm.getMachineCodeIndex(); int estimate = estimateSize(p); try { asm.doInst(p); } catch (RuntimeException e) { System.err.println("Failed while assembling "+p.toString()); ir.printInstructions(); int end = asm.getMachineCodeIndex(); if (start-end > estimate) { VM.sysWriteln("Bad estimate: "+(start-end)+" "+estimate+" "+p); } VM._assert(false); } int end = asm.getMachineCodeIndex(); if (start-end > estimate) { VM.sysWriteln("Bad estimate: "+(start-end)+" "+estimate+" "+p); } } ir.MIRInfo.machinecode = asm.getMachineCodes(); return ir.MIRInfo.machinecode.length(); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/4b6cce272910fc84be3dfa581c1c43294e111b42/OPT_AssemblerBase.java/buggy/rvm/src/vm/arch/intel/compilers/optimizing/ir/conversions/mir2mc/OPT_AssemblerBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
727,
509,
2103,
1085,
12,
15620,
67,
7937,
9482,
16,
1250,
1410,
5108,
13,
288,
565,
509,
1056,
273,
374,
31,
565,
364,
261,
15620,
67,
11983,
293,
273,
9482,
18,
3645,
11983,
382,
1085,
2448,
5621,
1850,
293,
480,
446,
31,
293,
273,
293,
18,
4285,
11983,
382,
1085,
2448,
10756,
4202,
288,
3639,
293,
18,
542,
13952,
2335,
12,
300,
965,
1883,
1769,
1377,
289,
1850,
16456,
67,
1463,
5747,
749,
20415,
273,
394,
16456,
67,
1463,
5747,
749,
12,
1883,
16,
1410,
5108,
1769,
565,
364,
261,
15620,
67,
11983,
293,
273,
9482,
18,
3645,
11983,
382,
1085,
2448,
5621,
1850,
293,
480,
446,
31,
293,
273,
293,
18,
4285,
11983,
382,
1085,
2448,
10756,
4202,
288,
3639,
509,
787,
273,
20415,
18,
588,
6981,
1085,
1016,
5621,
3639,
509,
11108,
273,
11108,
1225,
12,
84,
1769,
3639,
775,
288,
1850,
20415,
18,
2896,
10773,
12,
84,
1769,
3639,
289,
1044,
261,
11949,
425,
13,
288,
1850,
2332,
18,
370,
18,
8222,
2932,
2925,
1323,
20489,
2456,
13773,
84,
18,
10492,
10663,
1850,
9482,
18,
1188,
26712,
5621,
1850,
509,
679,
273,
20415,
18,
588,
6981,
1085,
1016,
5621,
1850,
309,
261,
1937,
17,
409,
405,
11108,
13,
288,
5411,
8251,
18,
9499,
4913,
292,
82,
2932,
6434,
11108,
30,
13773,
12,
1937,
17,
409,
13,
9078,
13773,
23562,
9078,
13773,
84,
1769,
1850,
289,
1850,
8251,
6315,
11231,
12,
5743,
1769,
3639,
289,
3639,
509,
679,
273,
20415,
18,
588,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
727,
509,
2103,
1085,
12,
15620,
67,
7937,
9482,
16,
1250,
1410,
5108,
13,
288,
565,
509,
1056,
273,
374,
31,
565,
364,
261,
15620,
67,
11983,
293,
273,
9482,
18,
3645,
11983,
382,
1085,
2448,
5621,
1850,
293,
480,
446,
31,
293,
273,
293,
18,
4285,
11983,
382,
1085,
2448,
10756,
4202,
288,
3639,
293,
18,
542,
13952,
2335,
12,
300,
965,
1883,
1769,
1377,
289,
1850,
16456,
67,
1463,
5747,
749,
20415,
273,
394,
16456,
67,
1463,
5747,
749,
12,
1883,
16,
1410,
5108,
1769,
565,
364,
261,
15620,
67,
11983,
293,
273,
9482,
18,
3645,
11983,
382,
1085,
2448,
5621,
1850,
293,
480,
446,
31,
293,
273,
293,
18,
4285,
11983,
382,
1085,
2
] |
logger.debug("Object property set..."); | if (debug) logger.debug("Object property set..."); | public void setObjectProperty(String objectType, String propertyType, String propertyValue) { logger.debug("objectType: " + objectType); logger.debug("propType: " + propertyType); logger.debug("property: " + propertyValue); if (objectType == null) { logger.error("Cannot add property for null object"); return; } if (propertyType == null) { logger.error("Cannot add property for null property type"); return; } if (propertyValue == null) { logger.warn("Will not add null property"); return; } if (objectType.equals("Molecule")) { if (propertyType.equals("id")) { currentMolecule.setID(propertyValue); } } else if (objectType.equals("PseudoAtom")) { if (propertyType.equals("label")) { if (!(currentAtom instanceof PseudoAtom)) { currentAtom = new PseudoAtom(currentAtom); } ((PseudoAtom)currentAtom).setLabel(propertyValue); } } else if (objectType.equals("Atom")) { if (propertyType.equals("type")) { if (propertyValue.equals("R") && !(currentAtom instanceof PseudoAtom)) { currentAtom = new PseudoAtom(currentAtom); } currentAtom.setSymbol(propertyValue); } else if (propertyType.equals("x2")) { currentAtom.setX2D(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("y2")) { currentAtom.setY2D(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("x3")) { currentAtom.setX3D(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("y3")) { currentAtom.setY3D(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("z3")) { currentAtom.setZ3D(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("formalCharge")) { currentAtom.setFormalCharge(new Integer(propertyValue).intValue()); } else if (propertyType.equals("charge")) { currentAtom.setCharge(new Double(propertyValue).doubleValue()); } else if (propertyType.equals("hydrogenCount")) { currentAtom.setHydrogenCount(new Integer(propertyValue).intValue()); } else if (propertyType.equals("dictRef")) { currentAtom.setProperty("org.openscience.cdk.dict", propertyValue); } else if (propertyType.equals("atomicNumber")) { currentAtom.setAtomicNumber(Integer.parseInt(propertyValue)); } else if (propertyType.equals("massNumber")) { currentAtom.setMassNumber(Integer.parseInt(propertyValue)); } else if (propertyType.equals("id")) { logger.debug("id" + propertyValue); currentAtom.setID(propertyValue); atomEnumeration.put(propertyValue, new Integer(numberOfAtoms)); } } else if (objectType.equals("Bond")) { if (propertyType.equals("atom1")) { bond_a1 = new Integer(propertyValue).intValue(); } else if (propertyType.equals("atom2")) { bond_a2 = new Integer(propertyValue).intValue(); } else if (propertyType.equals("id")) { logger.debug("id: " + propertyValue); bond_id = propertyValue; } else if (propertyType.equals("order")) { try { bond_order = Double.parseDouble(propertyValue); } catch (Exception e) { logger.error("Cannot convert to double: " + propertyValue); bond_order = 1.0; } } else if (propertyType.equals("stereo")) { if (propertyValue.equals("H")) { bond_stereo = CDKConstants.STEREO_BOND_DOWN; } else if (propertyValue.equals("W")) { bond_stereo = CDKConstants.STEREO_BOND_UP; } } } else if (objectType.equals("Reaction")) { if (propertyType.equals("id")) { currentReaction.setID(propertyValue); } } else if (objectType.equals("SetOfReactions")) { if (propertyType.equals("id")) { currentSetOfReactions.setID(propertyValue); } } else if (objectType.equals("Reactant")) { if (propertyType.equals("id")) { currentMolecule.setID(propertyValue); } } else if (objectType.equals("Product")) { if (propertyType.equals("id")) { currentMolecule.setID(propertyValue); } } else if (objectType.equals("Crystal")) { // set these variables if (currentMolecule instanceof Crystal) { Crystal current = (Crystal)currentMolecule; if (propertyType.equals("spacegroup")) { logger.debug("Setting crystal spacegroup to: " + propertyValue); current.setSpaceGroup(propertyValue); } else if (propertyType.equals("z")) { try { logger.debug("Setting z to: " + propertyValue); current.setZ(Integer.parseInt(propertyValue)); } catch (NumberFormatException exception) { logger.error("Error in format of Z value"); } } } else { logger.warn("Cannot add crystal cell parameters to a non " + "Crystal class!"); } } else if (objectType.equals("a-axis") || objectType.equals("b-axis") || objectType.equals("c-axis")) { // set these variables if (currentMolecule instanceof Crystal) { Crystal current = (Crystal)currentMolecule; logger.debug("Setting axis (" + objectType + "): " + propertyValue); if (propertyType.equals("x")) { crystal_axis_x = Double.parseDouble(propertyValue); } else if (propertyType.equals("y")) { crystal_axis_y = Double.parseDouble(propertyValue); } else if (propertyType.equals("z")) { crystal_axis_z = Double.parseDouble(propertyValue); } } else { logger.warn("Cannot add crystal cell parameters to a non " + "Crystal class!"); } } logger.debug("Object property set..."); }; | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/85b1def8500569c307eef07a73f9886549ea9364/ChemFileCDO.java/clean/src/org/openscience/cdk/io/cml/ChemFileCDO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
20530,
1396,
12,
780,
16400,
16,
514,
21076,
16,
21394,
514,
12337,
13,
288,
1377,
1194,
18,
4148,
2932,
1612,
559,
30,
315,
397,
16400,
1769,
1377,
1194,
18,
4148,
2932,
5986,
559,
30,
315,
397,
21076,
1769,
1377,
1194,
18,
4148,
2932,
4468,
30,
315,
397,
12337,
1769,
5411,
309,
261,
1612,
559,
422,
446,
13,
288,
1850,
1194,
18,
1636,
2932,
4515,
527,
1272,
364,
446,
733,
8863,
1850,
327,
31,
1377,
289,
1377,
309,
261,
4468,
559,
422,
446,
13,
288,
1850,
1194,
18,
1636,
2932,
4515,
527,
1272,
364,
446,
1272,
618,
8863,
1850,
327,
31,
1377,
289,
1377,
309,
261,
4468,
620,
422,
446,
13,
288,
1850,
1194,
18,
8935,
2932,
13670,
486,
527,
446,
1272,
8863,
1850,
327,
31,
1377,
289,
5411,
309,
261,
1612,
559,
18,
14963,
2932,
29669,
6,
3719,
288,
3639,
309,
261,
4468,
559,
18,
14963,
2932,
350,
6,
3719,
288,
1850,
783,
29669,
18,
542,
734,
12,
4468,
620,
1769,
3639,
289,
1377,
289,
469,
309,
261,
1612,
559,
18,
14963,
2932,
26716,
3641,
6,
3719,
288,
3639,
309,
261,
4468,
559,
18,
14963,
2932,
1925,
6,
3719,
288,
5411,
309,
16051,
12,
2972,
3641,
1276,
453,
9091,
3641,
3719,
288,
7734,
783,
3641,
273,
394,
453,
9091,
3641,
12,
2972,
3641,
1769,
5411,
289,
5411,
14015,
26716,
3641,
13,
2972,
3641,
2934,
542,
2224,
12,
4468,
620,
1769,
3639,
289,
1377,
289,
469,
309,
261,
1612,
559,
18,
14963,
2932,
3641,
6,
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,
20530,
1396,
12,
780,
16400,
16,
514,
21076,
16,
21394,
514,
12337,
13,
288,
1377,
1194,
18,
4148,
2932,
1612,
559,
30,
315,
397,
16400,
1769,
1377,
1194,
18,
4148,
2932,
5986,
559,
30,
315,
397,
21076,
1769,
1377,
1194,
18,
4148,
2932,
4468,
30,
315,
397,
12337,
1769,
5411,
309,
261,
1612,
559,
422,
446,
13,
288,
1850,
1194,
18,
1636,
2932,
4515,
527,
1272,
364,
446,
733,
8863,
1850,
327,
31,
1377,
289,
1377,
309,
261,
4468,
559,
422,
446,
13,
288,
1850,
1194,
18,
1636,
2932,
4515,
527,
1272,
364,
446,
1272,
618,
8863,
1850,
327,
31,
1377,
289,
1377,
309,
261,
4468,
620,
422,
446,
13,
288,
1850,
1194,
18,
8935,
2932,
2
] |
architectFrame.project.getDDLGenerator().writeDDL (architectFrame.playpen.getDatabase()); | showPreview(architectFrame.project.getDDLGenerator(), d); | public void actionPerformed(ActionEvent e) { final JDialog d = new JDialog(ArchitectFrame.getMainInstance(), "Export DDL Script"); JPanel cp = new JPanel(new BorderLayout(12,12)); cp.setBorder(BorderFactory.createEmptyBorder(12,12,12,12)); final DDLExportPanel ddlPanel = new DDLExportPanel(architectFrame.project); cp.add(ddlPanel, BorderLayout.CENTER); JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); JButton okButton = new JButton("Ok"); okButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { try { ddlPanel.applyChanges(); architectFrame.project.getDDLGenerator().writeDDL (architectFrame.playpen.getDatabase()); } catch (Exception ex) { JOptionPane.showMessageDialog (architectFrame, "Can't export DDL: "+ex.getMessage()); logger.error("Got exception while exporting DDL", ex); } d.setVisible(false); } }); buttonPanel.add(okButton); JButton cancelButton = new JButton("Cancel"); cancelButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { ddlPanel.discardChanges(); d.setVisible(false); } }); buttonPanel.add(cancelButton); cp.add(buttonPanel, BorderLayout.SOUTH); d.setContentPane(cp); d.pack(); d.setVisible(true); } | 53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/2e3ba94f6a7c61b7a6cdb81034c1e8edaf65eb9a/ExportDDLAction.java/buggy/src/ca/sqlpower/architect/swingui/ExportDDLAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
26100,
12,
1803,
1133,
425,
13,
288,
202,
202,
6385,
804,
6353,
302,
273,
394,
804,
6353,
12,
12269,
15004,
3219,
18,
588,
6376,
1442,
9334,
6862,
25083,
225,
315,
6144,
26597,
7739,
8863,
202,
202,
46,
5537,
3283,
273,
394,
24048,
12,
2704,
30814,
12,
2138,
16,
2138,
10019,
202,
202,
4057,
18,
542,
8107,
12,
8107,
1733,
18,
2640,
1921,
8107,
12,
2138,
16,
2138,
16,
2138,
16,
2138,
10019,
202,
202,
6385,
26597,
6144,
5537,
24183,
5537,
273,
394,
26597,
6144,
5537,
12,
991,
15004,
3219,
18,
4406,
1769,
202,
202,
4057,
18,
1289,
12,
449,
80,
5537,
16,
30814,
18,
19835,
1769,
9506,
202,
46,
5537,
3568,
5537,
273,
394,
24048,
12,
2704,
9473,
3744,
12,
5249,
3744,
18,
11847,
10019,
9506,
202,
46,
3616,
1529,
3616,
273,
394,
28804,
2932,
8809,
8863,
202,
202,
601,
3616,
18,
1289,
1803,
2223,
12,
2704,
25962,
1435,
288,
9506,
202,
482,
918,
26100,
12,
1803,
1133,
6324,
13,
288,
6862,
202,
698,
288,
25083,
202,
449,
80,
5537,
18,
9010,
7173,
5621,
25083,
202,
991,
15004,
3219,
18,
4406,
18,
588,
21293,
3908,
7675,
2626,
21293,
6862,
1082,
202,
12,
991,
15004,
3219,
18,
1601,
1907,
18,
588,
4254,
10663,
6862,
202,
97,
1044,
261,
503,
431,
13,
288,
25083,
202,
46,
1895,
8485,
18,
4500,
1079,
6353,
6862,
1082,
202,
12,
991,
15004,
3219,
16,
6862,
9506,
315,
2568,
1404,
3359,
26597,
30,
13773,
338,
18,
24906,
10663,
25083,
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,
26100,
12,
1803,
1133,
425,
13,
288,
202,
202,
6385,
804,
6353,
302,
273,
394,
804,
6353,
12,
12269,
15004,
3219,
18,
588,
6376,
1442,
9334,
6862,
25083,
225,
315,
6144,
26597,
7739,
8863,
202,
202,
46,
5537,
3283,
273,
394,
24048,
12,
2704,
30814,
12,
2138,
16,
2138,
10019,
202,
202,
4057,
18,
542,
8107,
12,
8107,
1733,
18,
2640,
1921,
8107,
12,
2138,
16,
2138,
16,
2138,
16,
2138,
10019,
202,
202,
6385,
26597,
6144,
5537,
24183,
5537,
273,
394,
26597,
6144,
5537,
12,
991,
15004,
3219,
18,
4406,
1769,
202,
202,
4057,
18,
1289,
12,
449,
80,
5537,
16,
30814,
18,
19835,
1769,
9506,
202,
46,
5537,
3568,
5537,
273,
394,
24048,
2
] |
public void constraint(List constraints) throws RecognitionException { Token fb=null; Token f=null; Token op=null; Token bvc=null; String lc = null; String rvc = null; PatternDescr d = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:445:17: ( opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= literal_constraint | rvc= retval_constraint ) opt_eol ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:445:17: opt_eol (fb= ID opt_eol ':' opt_eol )? f= ID opt_eol op= ('=='|'>'|'>='|'<'|'<='|'!='|'contains'|'matches') opt_eol (bvc= ID | lc= literal_constraint | rvc= retval_constraint ) opt_eol { following.push(FOLLOW_opt_eol_in_constraint1445); opt_eol(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:446:17: (fb= ID opt_eol ':' opt_eol )? int alt42=2; alt42 = dfa42.predict(input); switch (alt42) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:446:19: fb= ID opt_eol ':' opt_eol { fb=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1453); following.push(FOLLOW_opt_eol_in_constraint1455); opt_eol(); following.pop(); match(input,29,FOLLOW_29_in_constraint1457); following.push(FOLLOW_opt_eol_in_constraint1459); opt_eol(); following.pop(); } break; } f=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1469); if ( fb != null ) { System.err.println( "fb: " + fb.getText() ); System.err.println( " f: " + f.getText() ); d = new FieldBindingDescr( f.getText(), fb.getText() ); System.err.println( "fbd: " + d ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } following.push(FOLLOW_opt_eol_in_constraint1479); opt_eol(); following.pop(); op=(Token)input.LT(1); if ( input.LA(1)==37||(input.LA(1)>=39 && input.LA(1)<=45) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_constraint1486); throw mse; } following.push(FOLLOW_opt_eol_in_constraint1558); opt_eol(); following.pop(); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:469:41: (bvc= ID | lc= literal_constraint | rvc= retval_constraint ) int alt43=3; switch ( input.LA(1) ) { case ID: alt43=1; break; case INT: case STRING: case FLOAT: alt43=2; break; case 20: alt43=3; break; default: NoViableAltException nvae = new NoViableAltException("469:41: (bvc= ID | lc= literal_constraint | rvc= retval_constraint )", 43, 0, input); throw nvae; } switch (alt43) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:469:49: bvc= ID { bvc=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_constraint1576); d = new BoundVariableDescr( f.getText(), op.getText(), bvc.getText() ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 2 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:476:49: lc= literal_constraint { following.push(FOLLOW_literal_constraint_in_constraint1601); lc=literal_constraint(); following.pop(); d = new LiteralDescr( f.getText(), op.getText(), lc ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; case 3 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:482:49: rvc= retval_constraint { following.push(FOLLOW_retval_constraint_in_constraint1621); rvc=retval_constraint(); following.pop(); d = new ReturnValueDescr( f.getText(), op.getText(), rvc ); d.setLocation( f.getLine(), f.getCharPositionInLine() ); constraints.add( d ); } break; } following.push(FOLLOW_opt_eol_in_constraint1642); 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,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
1061,
33,
2011,
31,
3639,
3155,
324,
4227,
33,
2011,
31,
3639,
514,
9109,
273,
446,
31,
3639,
514,
436,
4227,
273,
446,
31,
540,
202,
202,
3234,
16198,
302,
273,
446,
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,
6334,
25,
30,
4033,
30,
261,
2153,
67,
30951,
261,
19192,
33,
1599,
2153,
67,
30951,
3921,
2153,
67,
30951,
7851,
284,
33,
1599,
2153,
67,
30951,
1061,
33,
7707,
18920,
16637,
1870,
16637,
34,
2218,
16637,
32,
11,
16637,
32,
2218,
16637,
5,
2218,
16637,
12298,
11,
16637,
8436,
6134,
2153,
67,
30951,
261,
70,
4227,
33,
1599,
571,
9109,
33,
7158,
67,
13364,
571,
436,
4227,
33,
5221,
67,
13364,
262,
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,
6334,
25,
30,
4033,
30,
2153,
67,
30951,
261,
19192,
33,
1599,
2153,
67,
30951,
3921,
2153,
67,
30951,
7851,
284,
33,
1599,
2153,
67,
30951,
1061,
33,
7707,
18920,
16637,
1870,
16637,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4954,
12,
682,
6237,
13,
1216,
9539,
288,
6647,
3155,
12754,
33,
2011,
31,
3639,
3155,
284,
33,
2011,
31,
3639,
3155,
1061,
33,
2011,
31,
3639,
3155,
324,
4227,
33,
2011,
31,
3639,
514,
9109,
273,
446,
31,
3639,
514,
436,
4227,
273,
446,
31,
540,
202,
202,
3234,
16198,
302,
273,
446,
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,
6334,
25,
30,
4033,
30,
261,
2153,
67,
30951,
261,
19192,
33,
1599,
2153,
67,
30951,
3921,
2153,
67,
2
] |
||
super(parent, axis); } | super(parent, axis); } | RowBuilder(Element parent, Axis axis) { super(parent, axis); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/DOMBuilder.java/buggy/src/main/mondrian/web/taglib/DOMBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1999,
1263,
12,
1046,
982,
16,
15509,
2654,
13,
288,
1082,
202,
9565,
12,
2938,
16,
2654,
1769,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3196,
202,
1999,
1263,
12,
1046,
982,
16,
15509,
2654,
13,
288,
1082,
202,
9565,
12,
2938,
16,
2654,
1769,
202,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} else if (!forceUnlock && (lock.getType() == CmsLock.C_TYPE_INHERITED || lock.getType() == CmsLock.C_TYPE_SHARED_INHERITED)) { throw new CmsLockException("Unable to unlock resource due to an inherited lock of a parent folder", CmsLockException.C_RESOURCE_LOCKED_INHERITED); | public CmsLock removeResource(CmsDriverManager driverManager, CmsRequestContext context, String resourcename, boolean forceUnlock) throws CmsException { CmsLock lock = getLock(driverManager, context, resourcename); CmsResource sibling = null; if (lock.isNullLock()) { return null; } else if (!forceUnlock && (!lock.getUserId().equals(context.currentUser().getId()) || lock.getProjectId() != context.currentProject().getId())) { throw new CmsLockException("Unable to unlock resource, resource is locked by another user and/or in another project", CmsLockException.C_RESOURCE_LOCKED_BY_OTHER_USER); } else if (lock.getType() == CmsLock.C_TYPE_EXCLUSIVE) { return (CmsLock) m_exclusiveLocks.remove(resourcename); } else if (lock.getType() == CmsLock.C_TYPE_SHARED_EXCLUSIVE) { // fetch all siblings of the resource to the same content record // to identify the exclusive locked sibling List siblings = driverManager.getAllSiblings(context, resourcename); for (int i = 0; i < siblings.size(); i++) { sibling = (CmsResource) siblings.get(i); if (m_exclusiveLocks.containsKey(sibling.getFullResourceName())) { // remove the exclusive locked sibling m_exclusiveLocks.remove(sibling.getFullResourceName()); break; } } return lock; } else if (!forceUnlock && (lock.getType() == CmsLock.C_TYPE_INHERITED || lock.getType() == CmsLock.C_TYPE_SHARED_INHERITED)) { throw new CmsLockException("Unable to unlock resource due to an inherited lock of a parent folder", CmsLockException.C_RESOURCE_LOCKED_INHERITED); } return null; } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/b44a4982ca3e261d3682b99322fbe48401126c22/CmsLockDispatcher.java/clean/src/org/opencms/lock/CmsLockDispatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
2531,
1206,
1420,
12,
4747,
4668,
1318,
3419,
1318,
16,
2149,
21426,
819,
16,
514,
31174,
1069,
16,
1250,
2944,
7087,
13,
1216,
11228,
288,
3639,
2149,
2531,
2176,
273,
22206,
12,
7407,
1318,
16,
819,
16,
31174,
1069,
1769,
3639,
7630,
10841,
273,
446,
31,
3639,
309,
261,
739,
18,
291,
2041,
2531,
10756,
288,
5411,
327,
446,
31,
3639,
289,
469,
309,
16051,
5734,
7087,
597,
16051,
739,
18,
588,
10502,
7675,
14963,
12,
2472,
18,
2972,
1299,
7675,
26321,
10756,
747,
2176,
18,
588,
4109,
548,
1435,
480,
819,
18,
2972,
4109,
7675,
26321,
1435,
3719,
288,
5411,
604,
394,
2149,
2531,
503,
2932,
3370,
358,
7186,
1058,
16,
1058,
353,
8586,
635,
4042,
729,
471,
19,
280,
316,
4042,
1984,
3113,
2149,
2531,
503,
18,
39,
67,
11395,
67,
6589,
2056,
67,
6486,
67,
23940,
67,
4714,
1769,
3639,
289,
469,
309,
261,
739,
18,
588,
559,
1435,
422,
2149,
2531,
18,
39,
67,
2399,
67,
2294,
11686,
24870,
13,
288,
5411,
327,
261,
4747,
2531,
13,
312,
67,
23792,
19159,
18,
4479,
12,
455,
20989,
1069,
1769,
3639,
289,
469,
309,
261,
739,
18,
588,
559,
1435,
422,
2149,
2531,
18,
39,
67,
2399,
67,
8325,
5879,
67,
2294,
11686,
24870,
13,
288,
5411,
368,
2158,
777,
14692,
434,
326,
1058,
358,
326,
1967,
913,
1409,
5411,
368,
358,
9786,
326,
12060,
8586,
10841,
5411,
987,
14692,
273,
3419,
1318,
18,
588,
1595,
31555,
12,
2472,
16,
31174,
1069,
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,
2149,
2531,
1206,
1420,
12,
4747,
4668,
1318,
3419,
1318,
16,
2149,
21426,
819,
16,
514,
31174,
1069,
16,
1250,
2944,
7087,
13,
1216,
11228,
288,
3639,
2149,
2531,
2176,
273,
22206,
12,
7407,
1318,
16,
819,
16,
31174,
1069,
1769,
3639,
7630,
10841,
273,
446,
31,
3639,
309,
261,
739,
18,
291,
2041,
2531,
10756,
288,
5411,
327,
446,
31,
3639,
289,
469,
309,
16051,
5734,
7087,
597,
16051,
739,
18,
588,
10502,
7675,
14963,
12,
2472,
18,
2972,
1299,
7675,
26321,
10756,
747,
2176,
18,
588,
4109,
548,
1435,
480,
819,
18,
2972,
4109,
7675,
26321,
1435,
3719,
288,
5411,
604,
394,
2149,
2531,
503,
2932,
3370,
358,
7186,
1058,
16,
1058,
353,
8586,
635,
2
] |
|
public void setUp() throws RuleSetNotFoundException { rule = findRule("optimizations", "LocalVariableCouldBeFinal"); } | public void setUp() { rule = findRule("optimizations", "LocalVariableCouldBeFinal"); } | public void setUp() throws RuleSetNotFoundException { rule = findRule("optimizations", "LocalVariableCouldBeFinal"); } | 45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/4e45de9075eeb015245ff09f8f8c58cf0f98bbf3/LocalVariableCouldBeFinalTest.java/buggy/pmd/regress/test/net/sourceforge/pmd/rules/optimization/LocalVariableCouldBeFinalTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
1216,
6781,
694,
3990,
288,
3639,
1720,
273,
1104,
2175,
2932,
16689,
7089,
3113,
315,
2042,
3092,
4445,
1919,
7951,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
24292,
1435,
1216,
6781,
694,
3990,
288,
3639,
1720,
273,
1104,
2175,
2932,
16689,
7089,
3113,
315,
2042,
3092,
4445,
1919,
7951,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int cur = (i + index) % count; InetAddress iaddr = addr.getIntroducerHost(cur); int iport = addr.getIntroducerPort(cur); byte ikey[] = addr.getIntroducerKey(cur); long tag = addr.getIntroducerTag(cur); | InetAddress iaddr = addr.getIntroducerHost(i); int iport = addr.getIntroducerPort(i); byte ikey[] = addr.getIntroducerKey(i); long tag = addr.getIntroducerTag(i); | public UDPPacket buildRelayRequest(UDPTransport transport, OutboundEstablishState state, SessionKey ourIntroKey) { UDPAddress addr = state.getRemoteAddress(); int count = addr.getIntroducerCount(); if (count <= 0) return null; int index = _context.random().nextInt(count); for (int i = 0; i < count; i++) { int cur = (i + index) % count; InetAddress iaddr = addr.getIntroducerHost(cur); int iport = addr.getIntroducerPort(cur); byte ikey[] = addr.getIntroducerKey(cur); long tag = addr.getIntroducerTag(cur); if ( (ikey == null) || (iport <= 0) || (iaddr == null) || (tag <= 0) ) { if (_log.shouldLog(_log.WARN)) _log.warn("Cannot build a relay request to " + state.getRemoteIdentity().calculateHash().toBase64() + ", as their UDP address is invalid: addr=" + addr + " index=" + cur); continue; } if (transport.isValid(iaddr.getAddress())) return buildRelayRequest(iaddr, iport, ikey, tag, ourIntroKey, state.getIntroNonce(), true); } return null; } | 27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/f62a6d3ce62f74ec5ba9efaec36f641552bf2ef9/PacketBuilder.java/buggy/router/java/src/net/i2p/router/transport/udp/PacketBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
16230,
6667,
1361,
27186,
691,
12,
20352,
6568,
4736,
16,
2976,
3653,
9122,
23385,
1119,
919,
16,
3877,
653,
3134,
1702,
303,
653,
13,
288,
3639,
16230,
1887,
3091,
273,
919,
18,
588,
5169,
1887,
5621,
3639,
509,
1056,
273,
3091,
18,
588,
1702,
303,
2544,
2750,
1380,
5621,
3639,
309,
261,
1883,
1648,
374,
13,
5411,
327,
446,
31,
3639,
509,
770,
273,
389,
2472,
18,
9188,
7675,
4285,
1702,
12,
1883,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1056,
31,
277,
27245,
288,
5411,
509,
662,
273,
261,
77,
397,
770,
13,
738,
1056,
31,
5411,
14218,
277,
4793,
273,
3091,
18,
588,
1702,
303,
2544,
2750,
2594,
12,
1397,
1769,
5411,
509,
277,
655,
273,
3091,
18,
588,
1702,
303,
2544,
2750,
2617,
12,
1397,
1769,
5411,
1160,
277,
856,
8526,
273,
3091,
18,
588,
1702,
303,
2544,
2750,
653,
12,
1397,
1769,
5411,
1525,
1047,
273,
3091,
18,
588,
1702,
303,
2544,
2750,
1805,
12,
1397,
1769,
5411,
309,
261,
261,
77,
856,
422,
446,
13,
747,
261,
625,
499,
1648,
374,
13,
747,
261,
77,
4793,
422,
446,
13,
747,
261,
2692,
1648,
374,
13,
262,
288,
7734,
309,
261,
67,
1330,
18,
13139,
1343,
24899,
1330,
18,
27999,
3719,
10792,
389,
1330,
18,
8935,
2932,
4515,
1361,
279,
18874,
590,
358,
315,
397,
919,
18,
588,
5169,
4334,
7675,
11162,
2310,
7675,
869,
2171,
1105,
1435,
27573,
397,
3104,
487,
3675,
16230,
1758,
353,
2057,
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,
16230,
6667,
1361,
27186,
691,
12,
20352,
6568,
4736,
16,
2976,
3653,
9122,
23385,
1119,
919,
16,
3877,
653,
3134,
1702,
303,
653,
13,
288,
3639,
16230,
1887,
3091,
273,
919,
18,
588,
5169,
1887,
5621,
3639,
509,
1056,
273,
3091,
18,
588,
1702,
303,
2544,
2750,
1380,
5621,
3639,
309,
261,
1883,
1648,
374,
13,
5411,
327,
446,
31,
3639,
509,
770,
273,
389,
2472,
18,
9188,
7675,
4285,
1702,
12,
1883,
1769,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1056,
31,
277,
27245,
288,
5411,
509,
662,
273,
261,
77,
397,
770,
13,
738,
1056,
31,
5411,
14218,
277,
4793,
273,
3091,
18,
588,
1702,
303,
2544,
2750,
2594,
12,
1397,
1769,
2
] |
loadDefaults(request, next, this.pageInfo); | loadDefaults(request, next, pageInfo); | public ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) { ModelAndView next = new ModelAndView("wiki"); try { if (!StringUtils.hasText(request.getParameter("topicVersionId"))) { history(request, next); } else { viewVersion(request, next); } } catch (Exception e) { viewError(request, next, e); } loadDefaults(request, next, this.pageInfo); return next; } | 50517 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50517/d21041c0f41f31ecaa9760e7617d74e59bdfbd87/HistoryServlet.java/clean/src/java/org/jamwiki/servlets/HistoryServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3164,
1876,
1767,
15713,
3061,
12,
2940,
18572,
590,
16,
12446,
766,
13,
288,
202,
202,
1488,
1876,
1767,
1024,
273,
394,
3164,
1876,
1767,
2932,
13044,
8863,
202,
202,
698,
288,
1082,
202,
430,
16051,
780,
1989,
18,
5332,
1528,
12,
2293,
18,
588,
1662,
2932,
10476,
28039,
6,
20349,
288,
9506,
202,
8189,
12,
2293,
16,
1024,
1769,
1082,
202,
97,
469,
288,
9506,
202,
1945,
1444,
12,
2293,
16,
1024,
1769,
1082,
202,
97,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
1945,
668,
12,
2293,
16,
1024,
16,
425,
1769,
202,
202,
97,
202,
202,
945,
7019,
12,
2293,
16,
1024,
16,
333,
18,
2433,
966,
1769,
202,
202,
2463,
1024,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3164,
1876,
1767,
15713,
3061,
12,
2940,
18572,
590,
16,
12446,
766,
13,
288,
202,
202,
1488,
1876,
1767,
1024,
273,
394,
3164,
1876,
1767,
2932,
13044,
8863,
202,
202,
698,
288,
1082,
202,
430,
16051,
780,
1989,
18,
5332,
1528,
12,
2293,
18,
588,
1662,
2932,
10476,
28039,
6,
20349,
288,
9506,
202,
8189,
12,
2293,
16,
1024,
1769,
1082,
202,
97,
469,
288,
9506,
202,
1945,
1444,
12,
2293,
16,
1024,
1769,
1082,
202,
97,
202,
202,
97,
1044,
261,
503,
425,
13,
288,
1082,
202,
1945,
668,
12,
2293,
16,
1024,
16,
425,
1769,
202,
202,
97,
202,
202,
945,
7019,
12,
2293,
16,
1024,
16,
333,
18,
2433,
966,
1769,
202,
202,
2
] |
throw new PSQLException("postgresql.con.misc",encoding.decode(pgStream.Receive(l_elen-4))); | throw new PSQLException("postgresql.con.misc", PSQLState.CONNECTION_REJECTED, PSQLException.parseServerError(encoding.decode(pgStream.Receive(l_elen-4)))); | private void openConnectionV3(String p_host, int p_port, Properties p_info, String p_database, String p_url, Driver p_d, String p_password) throws SQLException { PGProtocolVersionMajor = 3; if (Driver.logDebug) Driver.debug("Using Protocol Version3"); // Now we need to construct and send an ssl startup packet try { if (useSSL) { if (Driver.logDebug) Driver.debug("Asking server if it supports ssl"); pgStream.SendInteger(8,4); pgStream.SendInteger(80877103,4); // now flush the ssl packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int beresp = pgStream.ReceiveChar(); if (Driver.logDebug) Driver.debug("Server response was (S=Yes,N=No): "+(char)beresp); switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // throw new PSQLException("postgresql.con.misc", pgStream.ReceiveString(encoding)); case 'N': // Server does not support ssl throw new PSQLException("postgresql.con.sslnotsupported"); case 'S': // Server supports ssl if (Driver.logDebug) Driver.debug("server does support ssl"); Driver.makeSSL(pgStream); break; default: throw new PSQLException("postgresql.con.sslfail"); } } } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } // Now we need to construct and send a startup packet try { new StartupPacket(PGProtocolVersionMajor, PGProtocolVersionMinor, PG_USER, p_database).writeTo(pgStream); // now flush the startup packets to the backend pgStream.flush(); // Now get the response from the backend, either an error message // or an authentication request int areq = -1; // must have a value here do { int beresp = pgStream.ReceiveChar(); String salt = null; byte [] md5Salt = new byte[4]; switch (beresp) { case 'E': // An error occured, so pass the error message to the // user. // // The most common one to be thrown here is: // "User authentication failed" // int l_elen = pgStream.ReceiveIntegerR(4); if (l_elen > 30000) { //if the error length is > than 30000 we assume this is really a v2 protocol //server so try again with a v2 connection //need to create a new connection and try again try { pgStream = new PGStream(p_host, p_port); } catch (ConnectException cex) { // Added by Peter Mount <[email protected]> // ConnectException is thrown when the connection cannot be made. // we trap this an return a more meaningful message for the end user throw new PSQLException ("postgresql.con.refused"); } catch (IOException e) { throw new PSQLException ("postgresql.con.failed", e); } openConnectionV2(p_host, p_port, p_info, p_database, p_url, p_d, p_password); return; } throw new PSQLException("postgresql.con.misc",encoding.decode(pgStream.Receive(l_elen-4))); case 'R': // Get the message length int l_msgLen = pgStream.ReceiveIntegerR(4); // Get the type of request areq = pgStream.ReceiveIntegerR(4); // Get the crypt password salt if there is one if (areq == AUTH_REQ_CRYPT) { byte[] rst = new byte[2]; rst[0] = (byte)pgStream.ReceiveChar(); rst[1] = (byte)pgStream.ReceiveChar(); salt = new String(rst, 0, 2); if (Driver.logDebug) Driver.debug("Crypt salt=" + salt); } // Or get the md5 password salt if there is one if (areq == AUTH_REQ_MD5) { md5Salt[0] = (byte)pgStream.ReceiveChar(); md5Salt[1] = (byte)pgStream.ReceiveChar(); md5Salt[2] = (byte)pgStream.ReceiveChar(); md5Salt[3] = (byte)pgStream.ReceiveChar(); salt = new String(md5Salt, 0, 4); if (Driver.logDebug) Driver.debug("MD5 salt=" + salt); } // now send the auth packet switch (areq) { case AUTH_REQ_OK: break; case AUTH_REQ_KRB4: if (Driver.logDebug) Driver.debug("postgresql: KRB4"); throw new PSQLException("postgresql.con.kerb4"); case AUTH_REQ_KRB5: if (Driver.logDebug) Driver.debug("postgresql: KRB5"); throw new PSQLException("postgresql.con.kerb5"); case AUTH_REQ_SCM: if (Driver.logDebug) Driver.debug("postgresql: SCM"); throw new PSQLException("postgresql.con.scm"); case AUTH_REQ_PASSWORD: if (Driver.logDebug) Driver.debug("postgresql: PASSWORD"); pgStream.SendChar('p'); pgStream.SendInteger(5 + p_password.length(), 4); pgStream.Send(p_password.getBytes()); pgStream.SendChar(0); pgStream.flush(); break; case AUTH_REQ_CRYPT: if (Driver.logDebug) Driver.debug("postgresql: CRYPT"); String crypted = UnixCrypt.crypt(salt, p_password); pgStream.SendChar('p'); pgStream.SendInteger(5 + crypted.length(), 4); pgStream.Send(crypted.getBytes()); pgStream.SendChar(0); pgStream.flush(); break; case AUTH_REQ_MD5: if (Driver.logDebug) Driver.debug("postgresql: MD5"); byte[] digest = MD5Digest.encode(PG_USER, p_password, md5Salt); pgStream.SendChar('p'); pgStream.SendInteger(5 + digest.length, 4); pgStream.Send(digest); pgStream.SendChar(0); pgStream.flush(); break; default: throw new PSQLException("postgresql.con.auth", new Integer(areq)); } break; default: throw new PSQLException("postgresql.con.authfail"); } } while (areq != AUTH_REQ_OK); } catch (IOException e) { throw new PSQLException("postgresql.con.failed", e); } int beresp; do { beresp = pgStream.ReceiveChar(); switch (beresp) { case 'Z': //ready for query break; case 'K': int l_msgLen = pgStream.ReceiveIntegerR(4); if (l_msgLen != 12) throw new PSQLException("postgresql.con.setup"); pid = pgStream.ReceiveIntegerR(4); ckey = pgStream.ReceiveIntegerR(4); break; case 'E': int l_elen = pgStream.ReceiveIntegerR(4); throw new PSQLException("postgresql.con.backend",encoding.decode(pgStream.Receive(l_elen-4))); case 'N': int l_nlen = pgStream.ReceiveIntegerR(4); addWarning(encoding.decode(pgStream.Receive(l_nlen-4))); break; case 'S': //TODO: handle parameter status messages int l_len = pgStream.ReceiveIntegerR(4); String l_pStatus = encoding.decode(pgStream.Receive(l_len-4)); if (Driver.logDebug) Driver.debug("ParameterStatus="+ l_pStatus); break; default: if (Driver.logDebug) Driver.debug("invalid state="+ (char)beresp); throw new PSQLException("postgresql.con.setup"); } } while (beresp != 'Z'); // read ReadyForQuery if (pgStream.ReceiveIntegerR(4) != 5) throw new PSQLException("postgresql.con.setup"); //TODO: handle transaction status char l_tStatus = (char)pgStream.ReceiveChar(); // "pg_encoding_to_char(1)" will return 'EUC_JP' for a backend compiled with multibyte, // otherwise it's hardcoded to 'SQL_ASCII'. // If the backend doesn't know about multibyte we can't assume anything about the encoding // used, so we denote this with 'UNKNOWN'. //Note: begining with 7.2 we should be using pg_client_encoding() which //is new in 7.2. However it isn't easy to conditionally call this new //function, since we don't yet have the information as to what server //version we are talking to. Thus we will continue to call //getdatabaseencoding() until we drop support for 7.1 and older versions //or until someone comes up with a conditional way to run one or //the other function depending on server version that doesn't require //two round trips to the server per connection final String encodingQuery = "case when pg_encoding_to_char(1) = 'SQL_ASCII' then 'UNKNOWN' else getdatabaseencoding() end"; // Set datestyle and fetch db encoding in a single call, to avoid making // more than one round trip to the backend during connection startup. BaseResultSet resultSet = execSQL("set datestyle to 'ISO'; select version(), " + encodingQuery + ";"); if (! resultSet.next()) { throw new PSQLException("postgresql.con.failed", "failed getting backend encoding"); } String version = resultSet.getString(1); dbVersionNumber = extractVersionNumber(version); String dbEncoding = resultSet.getString(2); encoding = Encoding.getEncoding(dbEncoding, p_info.getProperty("charSet")); //In 7.3 we are forced to do a second roundtrip to handle the case //where a database may not be running in autocommit mode //jdbc by default assumes autocommit is on until setAutoCommit(false) //is called. Therefore we need to ensure a new connection is //initialized to autocommit on. //We also set the client encoding so that the driver only needs //to deal with utf8. We can only do this in 7.3 because multibyte //support is now always included if (haveMinimumServerVersion("7.3")) { BaseResultSet acRset = //TODO: if protocol V3 we can set the client encoding in startup execSQL("set client_encoding = 'UNICODE'"); //set encoding to be unicode encoding = Encoding.getEncoding("UNICODE", null); } // Initialise object handling initObjectTypes(); // Mark the connection as ok, and cleanup PG_STATUS = CONNECTION_OK; } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/0378a269f3ab3c44e67b14f96414b6ca95263263/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
24982,
58,
23,
12,
780,
293,
67,
2564,
16,
509,
293,
67,
655,
16,
6183,
293,
67,
1376,
16,
514,
293,
67,
6231,
16,
514,
293,
67,
718,
16,
9396,
293,
67,
72,
16,
514,
293,
67,
3664,
13,
1216,
6483,
202,
225,
288,
202,
202,
18679,
28252,
17581,
273,
890,
31,
202,
202,
430,
261,
4668,
18,
1330,
2829,
13,
1082,
202,
4668,
18,
4148,
2932,
7736,
4547,
4049,
23,
8863,
202,
202,
759,
4494,
732,
1608,
358,
4872,
471,
1366,
392,
5832,
11850,
4414,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
261,
1202,
6745,
13,
288,
9506,
202,
430,
261,
4668,
18,
1330,
2829,
13,
6862,
202,
4668,
18,
4148,
2932,
23663,
310,
1438,
309,
518,
6146,
5832,
8863,
9506,
202,
8365,
1228,
18,
3826,
4522,
12,
28,
16,
24,
1769,
9506,
202,
8365,
1228,
18,
3826,
4522,
12,
3672,
28,
4700,
23494,
16,
24,
1769,
9506,
202,
759,
2037,
3663,
326,
5832,
12640,
358,
326,
4221,
9506,
202,
8365,
1228,
18,
11330,
5621,
9506,
202,
759,
4494,
336,
326,
766,
628,
326,
4221,
16,
3344,
392,
555,
883,
9506,
202,
759,
578,
392,
5107,
590,
9506,
202,
474,
324,
11737,
84,
273,
7184,
1228,
18,
11323,
2156,
5621,
9506,
202,
430,
261,
4668,
18,
1330,
2829,
13,
6862,
202,
4668,
18,
4148,
2932,
2081,
766,
1703,
261,
55,
33,
22352,
16,
50,
33,
2279,
4672,
13773,
12,
3001,
13,
744,
281,
84,
1769,
9506,
202,
9610,
261,
744,
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,
24982,
58,
23,
12,
780,
293,
67,
2564,
16,
509,
293,
67,
655,
16,
6183,
293,
67,
1376,
16,
514,
293,
67,
6231,
16,
514,
293,
67,
718,
16,
9396,
293,
67,
72,
16,
514,
293,
67,
3664,
13,
1216,
6483,
202,
225,
288,
202,
202,
18679,
28252,
17581,
273,
890,
31,
202,
202,
430,
261,
4668,
18,
1330,
2829,
13,
1082,
202,
4668,
18,
4148,
2932,
7736,
4547,
4049,
23,
8863,
202,
202,
759,
4494,
732,
1608,
358,
4872,
471,
1366,
392,
5832,
11850,
4414,
202,
202,
698,
202,
202,
95,
1082,
202,
430,
261,
1202,
6745,
13,
288,
9506,
202,
430,
261,
4668,
18,
1330,
2829,
13,
6862,
202,
4668,
18,
4148,
2932,
2
] |
hprintFoldClose(); } } | hprintFoldClose(); } } | private void copyPrologueFileToHeader() { String prologue = getCGenerationParameters().getPrologue(); if (prologue != null) { hprintFoldOpen("prologue"); InputStream stream; try { stream = new FileInputStream(prologue); while (true) { int b = stream.read(); if (b == -1) { break; } hwrite(b); } } catch (FileNotFoundException e) { System.out.println("Could not find prologue file"); System.exit(1); } catch (IOException e) { System.out.println("Could not read from prologue file"); System.exit(1); } hprintFoldClose(); } } | 3664 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3664/dfc73e34bff6e386ff1bb2959e83fe3849358bb0/APIGenerator.java/buggy/apigen/src/apigen/gen/c/APIGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1610,
626,
1330,
344,
812,
774,
1864,
1435,
288,
3639,
514,
450,
1330,
344,
273,
1927,
13842,
2402,
7675,
588,
626,
1330,
344,
5621,
3639,
309,
261,
685,
1330,
344,
480,
446,
13,
288,
5411,
366,
1188,
15592,
3678,
2932,
685,
1330,
344,
8863,
5411,
5037,
1407,
31,
5411,
775,
288,
7734,
1407,
273,
394,
11907,
12,
685,
1330,
344,
1769,
7734,
1323,
261,
3767,
13,
288,
10792,
509,
324,
273,
1407,
18,
896,
5621,
10792,
309,
261,
70,
422,
300,
21,
13,
288,
13491,
898,
31,
10792,
289,
10792,
366,
2626,
12,
70,
1769,
7734,
289,
5411,
289,
1044,
261,
812,
3990,
425,
13,
288,
7734,
2332,
18,
659,
18,
8222,
2932,
4445,
486,
1104,
450,
1330,
344,
585,
8863,
7734,
2332,
18,
8593,
12,
21,
1769,
5411,
289,
1044,
261,
14106,
425,
13,
288,
7734,
2332,
18,
659,
18,
8222,
2932,
4445,
486,
855,
628,
450,
1330,
344,
585,
8863,
7734,
2332,
18,
8593,
12,
21,
1769,
5411,
289,
5411,
366,
1188,
15592,
4605,
5621,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1610,
626,
1330,
344,
812,
774,
1864,
1435,
288,
3639,
514,
450,
1330,
344,
273,
1927,
13842,
2402,
7675,
588,
626,
1330,
344,
5621,
3639,
309,
261,
685,
1330,
344,
480,
446,
13,
288,
5411,
366,
1188,
15592,
3678,
2932,
685,
1330,
344,
8863,
5411,
5037,
1407,
31,
5411,
775,
288,
7734,
1407,
273,
394,
11907,
12,
685,
1330,
344,
1769,
7734,
1323,
261,
3767,
13,
288,
10792,
509,
324,
273,
1407,
18,
896,
5621,
10792,
309,
261,
70,
422,
300,
21,
13,
288,
13491,
898,
31,
10792,
289,
10792,
366,
2626,
12,
70,
1769,
7734,
289,
5411,
289,
1044,
261,
812,
3990,
425,
13,
288,
7734,
2332,
18,
659,
18,
8222,
2932,
4445,
486,
1104,
2
] |
getViewer().refresh(); | ((MarkerAdapter) getViewerInput()).scheduleMarkerCalculation(); | private IAction getFlatAction() { IAction flatAction = new Action() { /* * (non-Javadoc) * * @see org.eclipse.jface.action.Action#getStyle() */ public int getStyle() { return AS_RADIO_BUTTON; } /* * (non-Javadoc) * * @see org.eclipse.jface.action.Action#getText() */ public String getText() { return MarkerMessages.ProblemView_flatMenu; } /* * (non-Javadoc) * * @see org.eclipse.jface.action.Action#getImageDescriptor() */ public ImageDescriptor getImageDescriptor() { return IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_LCL_FLAT_LAYOUT); } /* * (non-Javadoc) * * @see org.eclipse.jface.action.Action#runWithEvent(org.eclipse.swt.widgets.Event) */ public void runWithEvent(Event event) { if (isChecked()) { IDEWorkbenchPlugin .getDefault() .getPluginPreferences() .setValue( IDEInternalPreferences.PROBLEMS_HIERARCHAL_MODE, false); regenerateLayout(); getViewer().setSorter(buildSorter()); getViewer().refresh(); } } }; flatAction.setChecked(!isHierarchalMode()); return flatAction; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/37b8e551c368c0ea13a0c34840143e15ad8d93db/ProblemView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1803,
336,
16384,
1803,
1435,
288,
202,
202,
45,
1803,
3569,
1803,
273,
394,
4382,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1128,
18,
1803,
7,
588,
2885,
1435,
9506,
1195,
1082,
202,
482,
509,
14210,
1435,
288,
9506,
202,
2463,
5355,
67,
28829,
4294,
67,
20068,
31,
1082,
202,
97,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1128,
18,
1803,
7,
588,
1528,
1435,
9506,
1195,
1082,
202,
482,
514,
6701,
1435,
288,
9506,
202,
2463,
14742,
5058,
18,
13719,
1767,
67,
15401,
4599,
31,
1082,
202,
97,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1128,
18,
1803,
7,
588,
2040,
3187,
1435,
9506,
1195,
1082,
202,
482,
3421,
3187,
10567,
3187,
1435,
288,
9506,
202,
2463,
1599,
41,
3061,
2421,
22144,
8946,
25083,
202,
18,
588,
2040,
3187,
12,
10385,
3061,
2421,
22144,
8946,
18,
3445,
43,
67,
48,
5017,
67,
42,
12190,
67,
7868,
5069,
1769,
1082,
202,
97,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1128,
18,
1803,
7,
2681,
1190,
1133,
12,
3341,
18,
20416,
18,
5328,
88,
18,
18148,
18,
1133,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1803,
336,
16384,
1803,
1435,
288,
202,
202,
45,
1803,
3569,
1803,
273,
394,
4382,
1435,
288,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1128,
18,
1803,
7,
588,
2885,
1435,
9506,
1195,
1082,
202,
482,
509,
14210,
1435,
288,
9506,
202,
2463,
5355,
67,
28829,
4294,
67,
20068,
31,
1082,
202,
97,
1082,
202,
20308,
9506,
380,
261,
5836,
17,
24060,
13,
9506,
380,
4697,
380,
632,
5946,
2358,
18,
20416,
18,
78,
865,
18,
1128,
18,
1803,
7,
588,
1528,
1435,
9506,
1195,
1082,
202,
482,
514,
6701,
1435,
288,
9506,
202,
2463,
14742,
5058,
18,
13719,
2
] |
jDelay.setText("" + props.getIntProperty(SLIDESHOW_DELAY)); | jDelay.setValue(props.getIntProperty(SLIDESHOW_DELAY) * 1000); jTransition.setValue(props.getIntProperty(SLIDESHOW_TRANSITION_DURATION)); | public void readProperties(PropertiesFile props) { jProgress.setSelectedItem(new LocationItem(props.getIntProperty(SLIDESHOW_PROGRESS))); jCaption.setSelectedItem(new LocationItem(props.getIntProperty(SLIDESHOW_CAPTION))); jExtra.setSelectedItem(new LocationItem(props.getIntProperty(SLIDESHOW_EXTRA))); jUrl.setSelectedItem(new LocationItem(props.getIntProperty(SLIDESHOW_URL))); jLowRez.setSelected(props.getBooleanProperty(SLIDESHOW_LOWREZ)); jRandom.setSelected(props.getBooleanProperty(SLIDESHOW_RANDOM)); jNoStretch.setSelected(props.getBooleanProperty(SLIDESHOW_NOSTRETCH)); jPreloadAll.setSelected(props.getBooleanProperty(SLIDESHOW_PRELOADALL)); jLoop.setSelected(props.getBooleanProperty(SLIDESHOW_LOOP)); jDelay.setText("" + props.getIntProperty(SLIDESHOW_DELAY)); Color color = props.getColorProperty(SLIDESHOW_COLOR); jOverride.setSelected(color != null); jBackgroundColor.setSelectedColor(color); jProgress.setEnabled(! props.isOverridden(SLIDESHOW_PROGRESS)); jCaption.setEnabled(! props.isOverridden(SLIDESHOW_CAPTION)); jExtra.setEnabled(! props.isOverridden(SLIDESHOW_EXTRA)); jUrl.setEnabled(! props.isOverridden(SLIDESHOW_URL)); jLowRez.setEnabled(! props.isOverridden(SLIDESHOW_LOWREZ)); jRandom.setEnabled(! props.isOverridden(SLIDESHOW_RANDOM)); jNoStretch.setEnabled(! props.isOverridden(SLIDESHOW_NOSTRETCH)); jPreloadAll.setEnabled(! props.isOverridden(SLIDESHOW_PRELOADALL)); jLoop.setEnabled(! props.isOverridden(SLIDESHOW_LOOP)); jDelay.setEnabled(! props.isOverridden(SLIDESHOW_DELAY)); jOverride.setEnabled(! props.isOverridden(SLIDESHOW_COLOR)); jBackgroundColor.setEnabled(! props.isOverridden(SLIDESHOW_COLOR)); } | 9402 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9402/9cd3a9936cec8bf69237006c0e4e1ca78f583d85/SlideshowPanel.java/buggy/com/gallery/GalleryRemote/prefs/SlideshowPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
855,
2297,
12,
2297,
812,
3458,
13,
288,
202,
202,
78,
5491,
18,
542,
7416,
1180,
12,
2704,
7050,
1180,
12,
9693,
18,
588,
1702,
1396,
12,
4559,
10385,
16677,
67,
24022,
3719,
1769,
202,
202,
78,
21158,
18,
542,
7416,
1180,
12,
2704,
7050,
1180,
12,
9693,
18,
588,
1702,
1396,
12,
4559,
10385,
16677,
67,
3587,
3725,
3719,
1769,
202,
202,
78,
7800,
18,
542,
7416,
1180,
12,
2704,
7050,
1180,
12,
9693,
18,
588,
1702,
1396,
12,
4559,
10385,
16677,
67,
22639,
3719,
1769,
202,
202,
78,
1489,
18,
542,
7416,
1180,
12,
2704,
7050,
1180,
12,
9693,
18,
588,
1702,
1396,
12,
4559,
10385,
16677,
67,
1785,
3719,
1769,
202,
202,
78,
10520,
426,
94,
18,
542,
7416,
12,
9693,
18,
588,
5507,
1396,
12,
4559,
10385,
16677,
67,
4130,
862,
62,
10019,
202,
202,
78,
8529,
18,
542,
7416,
12,
9693,
18,
588,
5507,
1396,
12,
4559,
10385,
16677,
67,
54,
28159,
10019,
202,
202,
78,
2279,
510,
20783,
18,
542,
7416,
12,
9693,
18,
588,
5507,
1396,
12,
4559,
10385,
16677,
67,
3417,
882,
10238,
1792,
10019,
202,
202,
78,
1386,
945,
1595,
18,
542,
7416,
12,
9693,
18,
588,
5507,
1396,
12,
4559,
10385,
16677,
67,
3670,
7783,
4685,
10019,
202,
202,
78,
6452,
18,
542,
7416,
12,
9693,
18,
588,
5507,
1396,
12,
4559,
10385,
16677,
67,
28677,
10019,
202,
202,
78,
6763,
18,
542,
1528,
2932,
6,
397,
3458,
18,
588,
1702,
1396,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
855,
2297,
12,
2297,
812,
3458,
13,
288,
202,
202,
78,
5491,
18,
542,
7416,
1180,
12,
2704,
7050,
1180,
12,
9693,
18,
588,
1702,
1396,
12,
4559,
10385,
16677,
67,
24022,
3719,
1769,
202,
202,
78,
21158,
18,
542,
7416,
1180,
12,
2704,
7050,
1180,
12,
9693,
18,
588,
1702,
1396,
12,
4559,
10385,
16677,
67,
3587,
3725,
3719,
1769,
202,
202,
78,
7800,
18,
542,
7416,
1180,
12,
2704,
7050,
1180,
12,
9693,
18,
588,
1702,
1396,
12,
4559,
10385,
16677,
67,
22639,
3719,
1769,
202,
202,
78,
1489,
18,
542,
7416,
1180,
12,
2704,
7050,
1180,
12,
9693,
18,
588,
1702,
1396,
12,
4559,
10385,
16677,
67,
1785,
3719,
1769,
202,
202,
2
] |
else if ( artifact.getArtifactId().equals( TOOLS_ARTIFACT_ID ) || artifact.getGroupId().equals( TOOLS_GROUP_ID ) ) | else if ( artifact.getArtifactId().equals( TOOLS_ARTIFACT_ID ) && artifact.getGroupId().equals( TOOLS_GROUP_ID ) ) | private void setBootstrapArtifacts() throws MojoFailureException { Artifact artifact = null; Iterator artifacts = project.getDependencyArtifacts().iterator(); while ( artifacts.hasNext() ) { artifact = ( Artifact ) artifacts.next(); if ( artifact.getArtifactId().equals( BOOTSTRAPPER_ARTIFACT_ID ) || artifact.getGroupId().equals( BOOTSTRAPPER_GROUP_ID ) ) { getLog().info( "Found bootstrapper dependency with version: " + artifact.getVersion() ); bootstrapper = artifact; } else if ( artifact.getArtifactId().equals( LOGGER_ARTIFACT_ID ) || artifact.getGroupId().equals( LOGGER_GROUP_ID ) ) { getLog().info( "Found logger dependency with version: " + artifact.getVersion() ); logger = artifact; } else if ( artifact.getArtifactId().equals( DAEMON_ARTIFACT_ID ) || artifact.getGroupId().equals( DAEMON_GROUP_ID ) ) { getLog().info( "Found daemon dependency with version: " + artifact.getVersion() ); daemon = artifact; } /** HACK! * @todo clean me up * @see http://issues.apache.org/jira/browse/DIREVE-333 */ else if ( artifact.getArtifactId().equals( TOOLS_ARTIFACT_ID ) || artifact.getGroupId().equals( TOOLS_GROUP_ID ) ) { getLog().info( "Found tools dependency with version: " + artifact.getVersion() ); tools = artifact; } } if ( bootstrapper == null ) { throw new MojoFailureException( "Bootstrapper dependency artifact required: " + BOOTSTRAPPER_GROUP_ID + ":" + BOOTSTRAPPER_ARTIFACT_ID ); } if ( logger == null ) { throw new MojoFailureException( "Logger dependency artifact required: " + LOGGER_GROUP_ID + ":" + LOGGER_ARTIFACT_ID ); } if ( daemon == null ) { throw new MojoFailureException( "Daemon dependency artifact required: " + DAEMON_GROUP_ID + ":" + DAEMON_ARTIFACT_ID ); } } | 54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/8e4145d0d9cfde2b46617537a089d9af227d91af/ServiceInstallersMojo.java/buggy/installers-plugin/src/main/java/org/apache/directory/daemon/installers/ServiceInstallersMojo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
444,
10445,
16981,
1435,
1216,
15931,
14389,
565,
288,
3639,
14022,
6462,
273,
446,
31,
3639,
4498,
16259,
273,
1984,
18,
588,
7787,
16981,
7675,
9838,
5621,
3639,
1323,
261,
16259,
18,
5332,
2134,
1435,
262,
3639,
288,
5411,
6462,
273,
261,
14022,
262,
16259,
18,
4285,
5621,
5411,
309,
261,
6462,
18,
588,
7581,
548,
7675,
14963,
12,
9784,
1974,
3902,
2203,
3194,
67,
4928,
45,
11625,
67,
734,
262,
747,
6462,
18,
588,
8722,
7675,
14963,
12,
9784,
1974,
3902,
2203,
3194,
67,
8468,
67,
734,
262,
262,
5411,
288,
7734,
9189,
7675,
1376,
12,
315,
2043,
7065,
457,
4904,
598,
1177,
30,
315,
397,
6462,
18,
588,
1444,
1435,
11272,
7734,
7065,
457,
273,
6462,
31,
5411,
289,
5411,
469,
309,
261,
6462,
18,
588,
7581,
548,
7675,
14963,
12,
4145,
67,
4928,
45,
11625,
67,
734,
262,
747,
6462,
18,
588,
8722,
7675,
14963,
12,
4145,
67,
8468,
67,
734,
262,
262,
5411,
288,
7734,
9189,
7675,
1376,
12,
315,
2043,
1194,
4904,
598,
1177,
30,
315,
397,
6462,
18,
588,
1444,
1435,
11272,
7734,
1194,
273,
6462,
31,
5411,
289,
5411,
469,
309,
261,
6462,
18,
588,
7581,
548,
7675,
14963,
12,
463,
37,
3375,
673,
67,
4928,
45,
11625,
67,
734,
262,
747,
6462,
18,
588,
8722,
7675,
14963,
12,
463,
37,
3375,
673,
67,
8468,
67,
734,
262,
262,
5411,
288,
7734,
9189,
7675,
1376,
12,
315,
2043,
8131,
4904,
598,
1177,
30,
315,
397,
6462,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
444,
10445,
16981,
1435,
1216,
15931,
14389,
565,
288,
3639,
14022,
6462,
273,
446,
31,
3639,
4498,
16259,
273,
1984,
18,
588,
7787,
16981,
7675,
9838,
5621,
3639,
1323,
261,
16259,
18,
5332,
2134,
1435,
262,
3639,
288,
5411,
6462,
273,
261,
14022,
262,
16259,
18,
4285,
5621,
5411,
309,
261,
6462,
18,
588,
7581,
548,
7675,
14963,
12,
9784,
1974,
3902,
2203,
3194,
67,
4928,
45,
11625,
67,
734,
262,
747,
6462,
18,
588,
8722,
7675,
14963,
12,
9784,
1974,
3902,
2203,
3194,
67,
8468,
67,
734,
262,
262,
5411,
288,
7734,
9189,
7675,
1376,
12,
315,
2043,
7065,
457,
4904,
598,
1177,
30,
315,
397,
6462,
18,
588,
1444,
1435,
11272,
7734,
7065,
457,
2
] |
TopicRequestor(TopicSession session, Topic topic) throws JMSException { this.session = session; this.topic = topic; tempTopic = session.createTemporaryTopic(); publisher = session.createPublisher(topic); subscriber = session.createSubscriber(tempTopic); | public TopicRequestor(TopicSession session, Topic topic) throws JMSException { super(); setSession(session); setTopic(topic); setTemporaryTopic(session.createTemporaryTopic()); setPublisher(session.createPublisher(topic)); setSubscriber(session.createSubscriber(getTemporaryTopic())); | TopicRequestor(TopicSession session, Topic topic) throws JMSException { this.session = session; this.topic = topic; tempTopic = session.createTemporaryTopic(); publisher = session.createPublisher(topic); subscriber = session.createSubscriber(tempTopic); } | 8608 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8608/7f6299004b6fd07dd9a880e63ccd2378de31ada1/TopicRequestor.java/clean/jms/src/java/javax/jms/TopicRequestor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
11789,
691,
280,
12,
6657,
2157,
1339,
16,
11789,
3958,
13,
1216,
20343,
288,
3639,
333,
18,
3184,
273,
1339,
31,
3639,
333,
18,
10476,
273,
3958,
31,
3639,
1906,
6657,
273,
1339,
18,
2640,
11685,
6657,
5621,
3639,
12855,
273,
1339,
18,
2640,
15960,
12,
10476,
1769,
3639,
9467,
273,
1339,
18,
2640,
11118,
12,
5814,
6657,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2398,
11789,
691,
280,
12,
6657,
2157,
1339,
16,
11789,
3958,
13,
1216,
20343,
288,
3639,
333,
18,
3184,
273,
1339,
31,
3639,
333,
18,
10476,
273,
3958,
31,
3639,
1906,
6657,
273,
1339,
18,
2640,
11685,
6657,
5621,
3639,
12855,
273,
1339,
18,
2640,
15960,
12,
10476,
1769,
3639,
9467,
273,
1339,
18,
2640,
11118,
12,
5814,
6657,
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
] |
super(new JCheckBox()); this.mColoredJTable = mColoredJTable; jCheckBox = new JCheckBox(); jCheckBox.setHorizontalAlignment(JCheckBox.CENTER); jCheckBox.setOpaque(true); jCheckBox.setBorderPainted(true); jCheckBox.setBorder(mLineBorder); jCheckBox.setBackground(focusBackgroundColor); jCheckBox.setFocusable(false); jCheckBox.addActionListener(this); jComboBox = new JComboBox(); jComboBox.setFont(font); jComboBox.setOpaque(true); jComboBox.setBorder(mLineBorder); jComboBox.setFocusable(false); jComboBox.addActionListener(this); jTextField = new JTextField(); jTextField.setEditable(true); jTextField.setFont(font); jTextField.setHorizontalAlignment(JTextField.LEFT); jTextField.setOpaque(true); jTextField.setBorder(mLineBorder); jTextField.setBackground(focusGrey); jTextField.setSelectionColor(highlightColor); jTextField.addCaretListener(this); mPasswordField = new MPasswordField(); mPasswordField.setEditable(true); mPasswordField.setFont(font); mPasswordField.setHorizontalAlignment(JTextField.LEFT); mPasswordField.setOpaque(true); mPasswordField.setBorder(mLineBorder); mPasswordField.setBackground(focusGrey); mPasswordField.setSelectionColor(highlightColor); mPasswordField.addActionListener(this); mPasswordField.addCaretListener(this); jSlider = new JSlider(); jSlider.setOpaque(false); jSlider.setFocusable(false); jSlider.setMajorTickSpacing(25); jSlider.setMinorTickSpacing(10); jSlider.setPaintLabels(true); jSlider.setFont(new java.awt.Font("Default", 0, 10)); jSlider.setBorder(mLineBorder); jSlider.setBackground(new Color(0f, 0f, 0f, 0f)); jSlider.addChangeListener(this); jSpinner = new JSpinner(); jSpinner.setFocusable(true); jSpinner.setOpaque(false); jSpinner.setFont(new java.awt.Font("Default", 0, 10)); jSpinner.setBorder(mLineBorder); jSpinner.getEditor().setOpaque(false); ((JSpinner.DefaultEditor)jSpinner.getEditor()).getTextField().setOpaque(false); } | super(new JCheckBox()); this.mColoredJTable = mColoredJTable; jCheckBox = new JCheckBox(); jCheckBox.setHorizontalAlignment(JCheckBox.CENTER); jCheckBox.setOpaque(true); jCheckBox.setBorderPainted(true); jCheckBox.setBorder(mLineBorder); jCheckBox.setBackground(focusBackgroundColor); jCheckBox.setFocusable(false); jCheckBox.addActionListener(this); jComboBox = new JComboBox(); jComboBox.setFont(font); jComboBox.setOpaque(true); jComboBox.setBorder(mLineBorder); jComboBox.setFocusable(false); jComboBox.addActionListener(this); jTextField = new JTextField(); jTextField.setEditable(true); jTextField.setFont(font); jTextField.setHorizontalAlignment(JTextField.LEFT); jTextField.setOpaque(true); jTextField.setBorder(mLineBorder); jTextField.setBackground(focusGrey); jTextField.setSelectionColor(highlightColor); jTextField.addCaretListener(this); mPasswordField = new MPasswordField(); mPasswordField.setEditable(true); mPasswordField.setFont(font); mPasswordField.setHorizontalAlignment(JTextField.LEFT); mPasswordField.setOpaque(true); mPasswordField.setBorder(mLineBorder); mPasswordField.setBackground(focusGrey); mPasswordField.setSelectionColor(highlightColor); mPasswordField.addActionListener(this); mPasswordField.addCaretListener(this); jSlider = new JSlider(); jSlider.setOpaque(false); jSlider.setFocusable(false); jSlider.setMajorTickSpacing(25); jSlider.setMinorTickSpacing(10); jSlider.setPaintLabels(true); jSlider.setFont(new java.awt.Font("Default", 0, 10)); jSlider.setBorder(mLineBorder); jSlider.setBackground(new Color(0f, 0f, 0f, 0f)); jSlider.addChangeListener(this); jSpinner = new JSpinner(); jSpinner.setFocusable(true); jSpinner.setOpaque(false); jSpinner.setFont(new java.awt.Font("Default", 0, 10)); jSpinner.setBorder(mLineBorder); jSpinner.getEditor().setOpaque(false); ((JSpinner.DefaultEditor)jSpinner.getEditor()).getTextField().setOpaque(false); jSpinner.addChangeListener(this); jSpinner.addKeyListener(this); } | public MColoredTableCellEditor(MColoredJTable mColoredJTable){ super(new JCheckBox()); this.mColoredJTable = mColoredJTable; //this.setClickCountToStart(1); jCheckBox = new JCheckBox(); jCheckBox.setHorizontalAlignment(JCheckBox.CENTER); jCheckBox.setOpaque(true); jCheckBox.setBorderPainted(true); jCheckBox.setBorder(mLineBorder); jCheckBox.setBackground(focusBackgroundColor); jCheckBox.setFocusable(false); jCheckBox.addActionListener(this); jComboBox = new JComboBox(); jComboBox.setFont(font); jComboBox.setOpaque(true); jComboBox.setBorder(mLineBorder); jComboBox.setFocusable(false); jComboBox.addActionListener(this); jTextField = new JTextField(); jTextField.setEditable(true); jTextField.setFont(font); jTextField.setHorizontalAlignment(JTextField.LEFT); jTextField.setOpaque(true); jTextField.setBorder(mLineBorder); jTextField.setBackground(focusGrey); jTextField.setSelectionColor(highlightColor); jTextField.addCaretListener(this); mPasswordField = new MPasswordField(); mPasswordField.setEditable(true); mPasswordField.setFont(font); mPasswordField.setHorizontalAlignment(JTextField.LEFT); mPasswordField.setOpaque(true); mPasswordField.setBorder(mLineBorder); mPasswordField.setBackground(focusGrey); //jTextField.set mPasswordField.setSelectionColor(highlightColor); mPasswordField.addActionListener(this); mPasswordField.addCaretListener(this); jSlider = new JSlider(); jSlider.setOpaque(false); jSlider.setFocusable(false); jSlider.setMajorTickSpacing(25); jSlider.setMinorTickSpacing(10); jSlider.setPaintLabels(true); jSlider.setFont(new java.awt.Font("Default", 0, 10)); jSlider.setBorder(mLineBorder); jSlider.setBackground(new Color(0f, 0f, 0f, 0f)); jSlider.addChangeListener(this); jSpinner = new JSpinner(); jSpinner.setFocusable(true); jSpinner.setOpaque(false); // jSpinner.setBackground(new Color(0f, 0f, 0f, 0f)); jSpinner.setFont(new java.awt.Font("Default", 0, 10)); jSpinner.setBorder(mLineBorder); jSpinner.getEditor().setOpaque(false); // jSpinner.getEditor().setBackground(new Color(0f, 0f, 0f, 0f)); // jSpinner.getTextField().setOpaque(false); ((JSpinner.DefaultEditor)jSpinner.getEditor()).getTextField().setOpaque(false); // ((JSpinner.DefaultEditor)jSpinner.getEditor()).getTextField().setBackground(new Color(0f, 0f, 0f, 0f)); // jSpinner.addChangeListener(this); // jSpinner.addKeyListener(this); } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/ff039aa0a88558bd57c3af5130d7d059b60c42c3/MColoredTableCellEditor.java/buggy/gui/main/com/metavize/gui/widgets/coloredTable/MColoredTableCellEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
490,
914,
7653,
1388,
4020,
6946,
12,
49,
914,
7653,
46,
1388,
312,
914,
7653,
46,
1388,
15329,
5411,
2240,
12,
2704,
804,
19174,
10663,
5411,
333,
18,
81,
914,
7653,
46,
1388,
273,
312,
914,
7653,
46,
1388,
31,
5411,
368,
2211,
18,
542,
6563,
1380,
28939,
12,
21,
1769,
4766,
565,
525,
19174,
273,
394,
804,
19174,
5621,
5411,
525,
19174,
18,
542,
14457,
11535,
12,
46,
19174,
18,
19835,
1769,
5411,
525,
19174,
18,
542,
3817,
14886,
12,
3767,
1769,
5411,
525,
19174,
18,
542,
8107,
12699,
329,
12,
3767,
1769,
5411,
525,
19174,
18,
542,
8107,
12,
81,
1670,
8107,
1769,
5411,
525,
19174,
18,
542,
8199,
12,
13923,
21699,
1769,
5411,
525,
19174,
18,
542,
9233,
429,
12,
5743,
1769,
5411,
525,
19174,
18,
1289,
1803,
2223,
12,
2211,
1769,
13491,
525,
22199,
273,
394,
804,
22199,
5621,
5411,
525,
22199,
18,
542,
5711,
12,
5776,
1769,
5411,
525,
22199,
18,
542,
3817,
14886,
12,
3767,
1769,
5411,
525,
22199,
18,
542,
8107,
12,
81,
1670,
8107,
1769,
5411,
525,
22199,
18,
542,
9233,
429,
12,
5743,
1769,
5411,
525,
22199,
18,
1289,
1803,
2223,
12,
2211,
1769,
5411,
525,
16157,
273,
394,
804,
16157,
5621,
5411,
525,
16157,
18,
542,
15470,
12,
3767,
1769,
5411,
525,
16157,
18,
542,
5711,
12,
5776,
1769,
5411,
525,
16157,
18,
542,
14457,
11535,
12,
46,
16157,
18,
10066,
1769,
5411,
525,
16157,
18,
542,
3817,
14886,
12,
3767,
1769,
5411,
525,
16157,
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,
490,
914,
7653,
1388,
4020,
6946,
12,
49,
914,
7653,
46,
1388,
312,
914,
7653,
46,
1388,
15329,
5411,
2240,
12,
2704,
804,
19174,
10663,
5411,
333,
18,
81,
914,
7653,
46,
1388,
273,
312,
914,
7653,
46,
1388,
31,
5411,
368,
2211,
18,
542,
6563,
1380,
28939,
12,
21,
1769,
4766,
565,
525,
19174,
273,
394,
804,
19174,
5621,
5411,
525,
19174,
18,
542,
14457,
11535,
12,
46,
19174,
18,
19835,
1769,
5411,
525,
19174,
18,
542,
3817,
14886,
12,
3767,
1769,
5411,
525,
19174,
18,
542,
8107,
12699,
329,
12,
3767,
1769,
5411,
525,
19174,
18,
542,
8107,
12,
81,
1670,
8107,
1769,
5411,
525,
19174,
18,
542,
8199,
12,
13923,
21699,
1769,
5411,
525,
2
] |
if (VM.VerifyAssertions) VM._assert(resolvedMember == null); | if (it.toString().startsWith("javax.naming.NamingException.rootException")) (new Throwable()).printStackTrace(); if (VM.VerifyAssertions && resolvedMember != null) VM._assert(false, "non-null " + resolvedMember + " of " + this + " when trying to set it to " + it); | final void setResolvedMember(VM_Field it) { if (VM.VerifyAssertions) VM._assert(resolvedMember == null); resolvedMember = it; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/765c7bea6a95304312a0e4400ed41d89116c4d99/VM_FieldReference.java/buggy/rvm/src/vm/classLoader/VM_FieldReference.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
444,
12793,
4419,
12,
7397,
67,
974,
518,
13,
288,
377,
309,
261,
305,
18,
10492,
7675,
17514,
1190,
2932,
28384,
18,
82,
7772,
18,
24102,
503,
18,
3085,
503,
6,
3719,
261,
2704,
4206,
1435,
2934,
1188,
6332,
5621,
225,
309,
261,
7397,
18,
8097,
8213,
1115,
597,
4640,
4419,
480,
446,
13,
8251,
6315,
11231,
12,
5743,
16,
315,
5836,
17,
2011,
315,
397,
4640,
4419,
397,
315,
434,
315,
397,
333,
397,
315,
1347,
8374,
358,
444,
518,
358,
315,
397,
518,
1769,
565,
4640,
4419,
273,
518,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
918,
444,
12793,
4419,
12,
7397,
67,
974,
518,
13,
288,
377,
309,
261,
305,
18,
10492,
7675,
17514,
1190,
2932,
28384,
18,
82,
7772,
18,
24102,
503,
18,
3085,
503,
6,
3719,
261,
2704,
4206,
1435,
2934,
1188,
6332,
5621,
225,
309,
261,
7397,
18,
8097,
8213,
1115,
597,
4640,
4419,
480,
446,
13,
8251,
6315,
11231,
12,
5743,
16,
315,
5836,
17,
2011,
315,
397,
4640,
4419,
397,
315,
434,
315,
397,
333,
397,
315,
1347,
8374,
358,
444,
518,
358,
315,
397,
518,
1769,
565,
4640,
4419,
273,
518,
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
] |
if (high <= 0) { return 0; } return getRandom().nextInt(high); | return getRandom().nextInt(); | public static int getRandomInt(final int high) { // // Sanity check. If 'high' is <= 0, a IllegalArgumentException will be thrown // if (high <= 0) { return 0; } return getRandom().nextInt(high); } | 48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/0046268ccbe3b940e07de4848c70da1f75db1925/Globals.java/buggy/code/src/java/pcgen/core/Globals.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
20581,
1702,
12,
6385,
509,
3551,
13,
202,
95,
202,
202,
759,
202,
202,
759,
23123,
866,
18,
971,
296,
8766,
11,
353,
1648,
374,
16,
279,
2754,
903,
506,
6718,
202,
202,
759,
202,
202,
430,
261,
8766,
1648,
374,
13,
202,
202,
95,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
2463,
20581,
7675,
4285,
1702,
12,
8766,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
20581,
1702,
12,
6385,
509,
3551,
13,
202,
95,
202,
202,
759,
202,
202,
759,
23123,
866,
18,
971,
296,
8766,
11,
353,
1648,
374,
16,
279,
2754,
903,
506,
6718,
202,
202,
759,
202,
202,
430,
261,
8766,
1648,
374,
13,
202,
202,
95,
1082,
202,
2463,
374,
31,
202,
202,
97,
202,
202,
2463,
20581,
7675,
4285,
1702,
12,
8766,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
_loop313: | _loop315: | public final void compElemBody() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST compElemBody_AST = null; { boolean synPredMatched308 = false; if (((LA(1)==LITERAL_namespace))) { int _m308 = mark(); synPredMatched308 = true; inputState.guessing++; try { { match(LITERAL_namespace); ncnameOrKeyword(); match(LCURLY); } } catch (RecognitionException pe) { synPredMatched308 = false; } rewind(_m308); inputState.guessing--; } if ( synPredMatched308 ) { localNamespaceDecl(); astFactory.addASTChild(currentAST, returnAST); } else if ((_tokenSet_0.member(LA(1)))) { exprSingle(); astFactory.addASTChild(currentAST, returnAST); } else { throw new NoViableAltException(LT(1), getFilename()); } } { _loop313: do { if ((LA(1)==COMMA)) { match(COMMA); { boolean synPredMatched312 = false; if (((LA(1)==LITERAL_namespace))) { int _m312 = mark(); synPredMatched312 = true; inputState.guessing++; try { { match(LITERAL_namespace); ncnameOrKeyword(); match(LCURLY); } } catch (RecognitionException pe) { synPredMatched312 = false; } rewind(_m312); inputState.guessing--; } if ( synPredMatched312 ) { localNamespaceDecl(); astFactory.addASTChild(currentAST, returnAST); } else if ((_tokenSet_0.member(LA(1)))) { exprSingle(); astFactory.addASTChild(currentAST, returnAST); } else { throw new NoViableAltException(LT(1), getFilename()); } } } else { break _loop313; } } while (true); } compElemBody_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = compElemBody_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b779c75ce0b21b86c9e0bdc063e6252c8bd1072c/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1161,
7498,
2250,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1161,
7498,
2250,
67,
9053,
273,
446,
31,
9506,
202,
95,
202,
202,
6494,
6194,
10391,
15400,
5082,
28,
273,
629,
31,
202,
202,
430,
261,
12443,
2534,
12,
21,
13,
631,
23225,
67,
4937,
20349,
288,
1082,
202,
474,
389,
81,
5082,
28,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
5082,
28,
273,
638,
31,
1082,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
1082,
202,
698,
288,
9506,
202,
95,
9506,
202,
1916,
12,
23225,
67,
4937,
1769,
9506,
202,
14202,
529,
1162,
8736,
5621,
9506,
202,
1916,
12,
13394,
1785,
61,
1769,
9506,
202,
97,
1082,
202,
97,
1082,
202,
14683,
261,
5650,
7909,
503,
2804,
13,
288,
9506,
202,
11982,
10391,
15400,
5082,
28,
273,
629,
31,
1082,
202,
97,
1082,
202,
266,
10094,
24899,
81,
5082,
28,
1769,
1082,
202,
2630,
1119,
18,
20885,
310,
413,
31,
202,
202,
97,
202,
202,
430,
261,
6194,
10391,
15400,
5082,
28,
262,
288,
1082,
202,
3729,
3402,
3456,
5621,
1082,
202,
689,
1733,
18,
1289,
9053,
1763,
12,
2972,
9053,
16,
327,
9053,
1769,
202,
202,
97,
202,
202,
12107,
309,
14015,
67,
2316,
694,
67,
20,
18,
5990,
12,
2534,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1161,
7498,
2250,
1435,
1216,
9539,
16,
3155,
1228,
503,
16,
10172,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
3341,
18,
7398,
18,
92,
2271,
18,
4288,
18,
60,
1138,
9053,
1161,
7498,
2250,
67,
9053,
273,
446,
31,
9506,
202,
95,
202,
202,
6494,
6194,
10391,
15400,
5082,
28,
273,
629,
31,
202,
202,
430,
261,
12443,
2534,
12,
21,
13,
631,
23225,
67,
4937,
20349,
288,
1082,
202,
474,
389,
81,
5082,
28,
273,
2267,
5621,
1082,
202,
11982,
10391,
15400,
5082,
28,
273,
638,
31,
1082,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
1082,
202,
2
] |
FileReader r = new FileReader("etc/examples/thresholds.xml"); ThresholdingConfigFactory.setInstance(new ThresholdingConfigFactory(r)); r.close(); | Resource config = new ClassPathResource("/test-thresholds.xml"); Reader r = new InputStreamReader(config.getInputStream()); ThresholdingConfigFactory.setInstance(new ThresholdingConfigFactory(r)); r.close(); | protected void setUp() throws Exception { super.setUp(); MockLogAppender.setupLogging();// TODO: Finish pulling up into ThresholderTestCase like LatencyThresholderTest and finish writing the test case!! setupDatabase(); // set this so we don't get exceptions in the log RrdConfig.setProperties(new Properties()); m_mockRrdStrategy = mock(RrdStrategy.class); RrdUtils.setStrategy((RrdStrategy)m_mockRrdStrategy.proxy()); m_mockRrdStrategy.expects(atLeastOnce()).method("initialize"); FileReader r = new FileReader("etc/examples/thresholds.xml"); ThresholdingConfigFactory.setInstance(new ThresholdingConfigFactory(r)); r.close(); m_iface = new IPv4NetworkInterface(InetAddress.getByName("192.168.1.1")); m_serviceParameters = new HashMap(); m_serviceParameters.put("svcName", "ICMP"); m_parameters = new HashMap(); m_parameters.put("thresholding-group", "icmp-latency"); ThresholdingConfigFactory.getInstance().getGroup("icmp-latency").setRrdRepository("/tmp"); SnmpThresholder m_thresholder = new SnmpThresholder(); m_thresholder.initialize(m_serviceParameters); m_thresholder.initialize(m_iface, m_parameters); } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/97865c9c37d5bce76e35ad63fa7184c71d7f1b20/SnmpThresholderTest.java/buggy/opennms-services/src/test/java/org/opennms/netmgt/threshd/SnmpThresholderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
7734,
7867,
1343,
17302,
18,
8401,
7735,
5621,
759,
202,
6241,
30,
18560,
6892,
310,
731,
1368,
935,
1955,
1498,
4709,
2449,
3007,
11134,
2075,
1315,
1955,
1498,
4709,
471,
4076,
7410,
326,
1842,
648,
8548,
3639,
3875,
4254,
5621,
202,
202,
759,
444,
333,
1427,
732,
2727,
1404,
336,
4798,
316,
326,
613,
3639,
534,
13623,
809,
18,
542,
2297,
12,
2704,
6183,
10663,
3639,
312,
67,
22851,
54,
13623,
4525,
273,
5416,
12,
54,
13623,
4525,
18,
1106,
1769,
3639,
534,
13623,
1989,
18,
542,
4525,
12443,
54,
13623,
4525,
13,
81,
67,
22851,
54,
13623,
4525,
18,
5656,
10663,
3639,
312,
67,
22851,
54,
13623,
4525,
18,
12339,
87,
12,
270,
17319,
12212,
1435,
2934,
2039,
2932,
11160,
8863,
202,
202,
812,
2514,
436,
273,
394,
23010,
2932,
14175,
19,
16858,
19,
8699,
87,
18,
2902,
8863,
3639,
27139,
310,
809,
1733,
18,
542,
1442,
12,
2704,
27139,
310,
809,
1733,
12,
86,
10019,
3639,
436,
18,
4412,
5621,
3639,
312,
67,
31479,
273,
394,
7853,
24,
27413,
12,
382,
278,
1887,
18,
588,
5911,
2932,
15561,
18,
23329,
18,
21,
18,
21,
7923,
1769,
3639,
312,
67,
3278,
2402,
273,
394,
4317,
5621,
3639,
312,
67,
3278,
2402,
18,
458,
2932,
30992,
461,
3113,
315,
2871,
4566,
8863,
3639,
312,
67,
3977,
273,
394,
4317,
5621,
3639,
312,
67,
3977,
18,
458,
2932,
8699,
310,
17,
1655,
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,
24292,
1435,
1216,
1185,
288,
202,
202,
9565,
18,
542,
1211,
5621,
7734,
7867,
1343,
17302,
18,
8401,
7735,
5621,
759,
202,
6241,
30,
18560,
6892,
310,
731,
1368,
935,
1955,
1498,
4709,
2449,
3007,
11134,
2075,
1315,
1955,
1498,
4709,
471,
4076,
7410,
326,
1842,
648,
8548,
3639,
3875,
4254,
5621,
202,
202,
759,
444,
333,
1427,
732,
2727,
1404,
336,
4798,
316,
326,
613,
3639,
534,
13623,
809,
18,
542,
2297,
12,
2704,
6183,
10663,
3639,
312,
67,
22851,
54,
13623,
4525,
273,
5416,
12,
54,
13623,
4525,
18,
1106,
1769,
3639,
534,
13623,
1989,
18,
542,
4525,
12443,
54,
13623,
4525,
13,
81,
67,
22851,
54,
13623,
4525,
18,
5656,
10663,
3639,
2
] |
if (thisTimeZone == null) { thisTimeZone = java.util.TimeZone.getDefault(); LocalTZA = thisTimeZone.getRawOffset(); } | public static void finishInit(Scriptable scope, FunctionObject ctor, Scriptable proto) throws PropertyException { // initialization of cached values moved to static initializers. // alias toUTCString to toGMTString ((ScriptableObject) proto).defineProperty("toGMTString", proto.get("toUTCString", proto), ScriptableObject.DONTENUM); // Set some method length values. // These functions need to be varargs, because their behavior // depends on the number of arguments they are called with. String[] specialLengthNames = { "setSeconds", "setUTCSeconds", "setMinutes", "setUTCMinutes", "setHours", "setUTCHours", "setMonth", "setUTCMonth", "setFullYear", "setUTCFullYear", }; short[] specialLengthValues = { 2, 2, 3, 3, 4, 4, 2, 2, 3, 3, }; for (int i=0; i < specialLengthNames.length; i++) { Object obj = proto.get(specialLengthNames[i], proto); ((FunctionObject) obj).setLength(specialLengthValues[i]); } // Set the value of the prototype Date to NaN ('invalid date'); ((NativeDate)proto).date = ScriptRuntime.NaN; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/828b731af9229d7d777a6a7055206a0d6ac8aaa5/NativeDate.java/buggy/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
5621,
3566,
21647,
37,
273,
333,
16760,
18,
588,
4809,
2335,
5621,
289,
309,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
5621,
3566,
21647,
37,
273,
333,
16760,
18,
588,
4809,
2335,
5621,
289,
309,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
5621,
3566,
21647,
37,
273,
333,
16760,
18,
588,
4809,
2335,
5621,
289,
309,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
5621,
3566,
21647,
37,
273,
333,
16760,
18,
588,
4809,
2335,
5621,
289,
1071,
430,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
5621,
3566,
21647,
37,
273,
333,
16760,
18,
588,
4809,
2335,
5621,
289,
760,
430,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
5621,
3566,
21647,
37,
273,
333,
16760,
18,
588,
4809,
2335,
5621,
289,
918,
430,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
5621,
3566,
21647,
37,
273,
333,
16760,
18,
588,
4809,
2335,
5621,
289,
4076,
2570,
12,
3651,
429,
430,
261,
2211,
16760,
422,
446,
13,
288,
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,
309,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
5621,
3566,
21647,
37,
273,
333,
16760,
18,
588,
4809,
2335,
5621,
289,
309,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
5621,
3566,
21647,
37,
273,
333,
16760,
18,
588,
4809,
2335,
5621,
289,
309,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
5621,
3566,
21647,
37,
273,
333,
16760,
18,
588,
4809,
2335,
5621,
289,
309,
261,
2211,
16760,
422,
446,
13,
288,
282,
333,
16760,
273,
2252,
18,
1367,
18,
16760,
18,
588,
1868,
2
] |
|
} else if(cmd.equals("Open")) { | } else if (cmd.equals("Open")) { | void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); int returnValue = -1; if(cmd.equals("Cut") || cmd.equals("Copy") || cmd.equals("Paste")) { JInternalFrame f = getSelectedFrame(); if(f != null && f instanceof ActionListener) { ((ActionListener)f).actionPerformed(e); } } else if(cmd.equals("Step Over")) { returnValue = STEP_OVER; } else if(cmd.equals("Step Into")) { returnValue = STEP_INTO; } else if(cmd.equals("Step Out")) { returnValue = STEP_OUT; } else if(cmd.equals("Go")) { returnValue = GO; } else if(cmd.equals("Break")) { doBreak(); } else if(cmd.equals("Run to Cursor")) { returnValue = RUN_TO_CURSOR; } else if(cmd.equals("Exit")) { Exit(); } else if(cmd.equals("Open")) { Scriptable scope = getScope(); if(scope == null) { MessageDialogWrapper.showMessageDialog(this, "Can't compile scripts: no scope available", "Open", JOptionPane.ERROR_MESSAGE); } else { String fileName = chooseFile("Select a file to compile"); if(fileName != null) { new Thread(new OpenFile(this, scope, fileName)).start(); } } } else if(cmd.equals("Load")) { Scriptable scope = getScope(); if(scope == null) { MessageDialogWrapper.showMessageDialog(this, "Can't run scripts: no scope available", "Run", JOptionPane.ERROR_MESSAGE); } else { String fileName = chooseFile("Select a file to execute"); if(fileName != null) { new Thread(new LoadFile(this, scope, fileName)).start(); } } } else if(cmd.equals("More Windows...")) { MoreWindows dlg = new MoreWindows(this, fileWindows, "Window", "Files"); dlg.showDialog(this); } else if(cmd.equals("Console")) { if(console.isIcon()) { desk.getDesktopManager().deiconifyFrame(console); } console.show(); desk.getDesktopManager().activateFrame(console); console.consoleTextArea.requestFocus(); } else if(cmd.equals("Cut")) { } else if(cmd.equals("Copy")) { } else if(cmd.equals("Paste")) { } else if(cmd.equals("Go to function...")) { FindFunction dlg = new FindFunction(this, functionMap, "Go to function", "Function"); dlg.showDialog(this); } else if(cmd.equals("Tile")) { JInternalFrame[] frames = desk.getAllFrames(); int count = frames.length; int rows, cols; rows = cols = (int)Math.sqrt(count); if(rows*cols < count) { cols++; if(rows * cols < count) { rows++; } } Dimension size = desk.getSize(); int w = size.width/cols; int h = size.height/rows; int x = 0; int y = 0; for(int i = 0; i < rows; i++) { for(int j = 0; j < cols; j++) { int index = (i*cols) + j; if(index >= frames.length) { break; } JInternalFrame f = frames[index]; try { f.setIcon(false); f.setMaximum(false); } catch (Exception exc) { } desk.getDesktopManager().setBoundsForFrame(f, x, y, w, h); x += w; } y += h; x = 0; } } else if(cmd.equals("Cascade")) { JInternalFrame[] frames = desk.getAllFrames(); int count = frames.length; int x, y, w, h; x = y = 0; h = desk.getHeight(); int d = h / count; if(d > 30) d = 30; for(int i = count -1; i >= 0; i--, x += d, y += d) { JInternalFrame f = frames[i]; try { f.setIcon(false); f.setMaximum(false); } catch (Exception exc) { } Dimension dimen = f.getPreferredSize(); w = dimen.width; h = dimen.height; desk.getDesktopManager().setBoundsForFrame(f, x, y, w, h); } } else { Object obj = getFileWindow(cmd); if(obj != null) { FileWindow w = (FileWindow)obj; try { if(w.isIcon()) { w.setIcon(false); } w.setVisible(true); w.moveToFront(); w.setSelected(true); } catch(Exception exc) { } } } if(returnValue != -1) { if(currentWindow != null) currentWindow.setPosition(-1); synchronized(monitor) { this.returnValue = returnValue; monitor.notify(); } } } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
509,
7750,
273,
300,
21,
31,
3639,
309,
12,
4172,
18,
14963,
2932,
15812,
7923,
747,
1797,
18,
14963,
2932,
2951,
7923,
747,
1797,
18,
14963,
2932,
52,
14725,
6,
3719,
288,
5411,
804,
3061,
3219,
284,
273,
16625,
3219,
5621,
5411,
309,
12,
74,
480,
446,
597,
284,
1276,
25962,
13,
288,
7734,
14015,
1803,
2223,
13,
74,
2934,
1128,
13889,
12,
73,
1769,
5411,
289,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
10752,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
12959,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
657,
869,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
3217,
51,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
2976,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
5069,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
5741,
6,
3719,
288,
5411,
7750,
273,
12389,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
7634,
6,
3719,
288,
5411,
741,
7634,
5621,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
1997,
358,
13949,
6,
3719,
288,
5411,
7750,
273,
15484,
67,
4296,
67,
7509,
55,
916,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
6767,
6,
3719,
288,
5411,
9500,
5621,
3639,
289,
469,
309,
261,
4172,
18,
14963,
2932,
3678,
6,
3719,
288,
5411,
22780,
2146,
273,
19203,
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,
26100,
12,
1803,
1133,
425,
13,
288,
3639,
514,
1797,
273,
425,
18,
588,
1803,
2189,
5621,
3639,
509,
7750,
273,
300,
21,
31,
3639,
309,
12,
4172,
18,
14963,
2932,
15812,
7923,
747,
1797,
18,
14963,
2932,
2951,
7923,
747,
1797,
18,
14963,
2932,
52,
14725,
6,
3719,
288,
5411,
804,
3061,
3219,
284,
273,
16625,
3219,
5621,
5411,
309,
12,
74,
480,
446,
597,
284,
1276,
25962,
13,
288,
7734,
14015,
1803,
2223,
13,
74,
2934,
1128,
13889,
12,
73,
1769,
5411,
289,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
10752,
6,
3719,
288,
5411,
7750,
273,
25538,
67,
12959,
31,
3639,
289,
469,
309,
12,
4172,
18,
14963,
2932,
4160,
657,
2
] |
public final Size compute( IDisplayServer xs, Chart cm, SeriesDefinition[] seda, RunTimeContext rtc ) throws ChartException { // THREE CASES: // 1. ALL SERIES IN ONE ARRAYLIST // 2. ONE SERIES PER ARRAYLIST // 3. ALL OTHERS final Legend lg = cm.getLegend( ); if ( !lg.isSetOrientation( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.legend.orientation.horzvert", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } if ( !lg.isSetDirection( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.legend.direction.tblr", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } // INITIALIZATION OF VARS USED IN FOLLOWING LOOPS final Orientation orientation = lg.getOrientation( ); final Direction direction = lg.getDirection( ); final double maxWrappingSize = lg.getWrappingSize( ); Label la = LabelImpl.create( ); la.setCaption( TextImpl.copyInstance( lg.getText( ) ) ); ClientArea ca = lg.getClientArea( ); LineAttributes lia = ca.getOutline( ); double dSeparatorThickness = lia.getThickness( ); double dWidth = 0, dHeight = 0; la.getCaption( ).setValue( "X" ); //$NON-NLS-1$ final ITextMetrics itm = xs.getTextMetrics( la ); double dItemHeight = itm.getFullHeight( ); Series se; ArrayList al; double dScale = xs.getDpiResolution( ) / 72d; Insets insCA = ca.getInsets( ).scaledInstance( dScale ); final boolean bPaletteByCategory = ( cm.getLegend( ) .getItemType( ) .getValue( ) == LegendItemType.CATEGORIES ); Series seBase; final List legendItems = new ArrayList( ); // Get maximum block width/height available Block bl = cm.getBlock( ); Bounds boFull = bl.getBounds( ).scaledInstance( dScale ); Insets ins = bl.getInsets( ).scaledInstance( dScale ); Insets lgIns = lg.getInsets( ).scaledInstance( dScale ); double dAvailableWidth = boFull.getWidth( ) - ins.getLeft( ) - ins.getRight( ) - lgIns.getLeft( ) - lgIns.getRight( ); double dAvailableHeight = boFull.getHeight( ) - ins.getTop( ) - ins.getBottom( ) - lgIns.getTop( ) - lgIns.getBottom( ) - cm.getTitle( ) .getBounds( ) .scaledInstance( dScale ) .getHeight( ); // Calculate if minSlice applicable. boolean bMinSliceDefined = false; String sMinSliceLabel = null; boolean bMinSliceApplied = false; int[] filteredMinSliceEntry = null; if ( cm instanceof ChartWithoutAxes ) { bMinSliceDefined = ( (ChartWithoutAxes) cm ).isSetMinSlice( ); sMinSliceLabel = ( (ChartWithoutAxes) cm ).getMinSliceLabel( ); if ( sMinSliceLabel == null || sMinSliceLabel.length( ) == 0 ) { sMinSliceLabel = IConstants.UNDEFINED_STRING; } else { sMinSliceLabel = rtc.externalizedMessage( sMinSliceLabel ); } } // calculate if need an extra legend item when minSlice defined. if ( bMinSliceDefined && bPaletteByCategory && cm instanceof ChartWithoutAxes ) { Map renders = rtc.getSeriesRenderers( ); if ( renders != null && !( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS SeriesDefinition sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); SeriesDefinition[] sdOrtho = (SeriesDefinition[]) sdBase.getSeriesDefinitions( ) .toArray( new SeriesDefinition[0] ); DataSetIterator dsiOrtho = null; BaseRenderer br; boolean started = false; ENTRANCE: for ( int i = 0; i < sdOrtho.length; i++ ) { Series[] alRuntimeSeries = (Series[]) sdOrtho[i].getRunTimeSeries( ) .toArray( new Series[0] ); for ( int j = 0; j < alRuntimeSeries.length; j++ ) { try { dsiOrtho = new DataSetIterator( alRuntimeSeries[j].getDataSet( ) ); LegendItemRenderingHints lirh = (LegendItemRenderingHints) renders.get( alRuntimeSeries[j] ); if ( lirh == null ) { filteredMinSliceEntry = null; break ENTRANCE; } br = lirh.getRenderer( ); // ask each render for filtered min slice info int[] fsa = br.getFilteredMinSliceEntry( dsiOrtho ); if ( fsa != null && fsa.length > 0 ) { bMinSliceApplied = true; } if ( !started ) { started = true; filteredMinSliceEntry = fsa; } else { // get duplicate indices for all renderers filteredMinSliceEntry = getDuplicateIndices( fsa, filteredMinSliceEntry ); if ( filteredMinSliceEntry == null || filteredMinSliceEntry.length == 0 ) { filteredMinSliceEntry = null; break ENTRANCE; } } } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } } } // assign a zero-length array for successive convenience if ( filteredMinSliceEntry == null ) { filteredMinSliceEntry = new int[0]; } } } // COMPUTATIONS HERE MUST BE IN SYNC WITH THE ACTUAL RENDERER if ( orientation.getValue( ) == Orientation.VERTICAL ) { double dW, dMaxW = 0; double dRealHeight = 0, dExtraWidth = 0, dDeltaHeight; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { return SizeImpl.create( 0, 0 ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { return SizeImpl.create( 0, 0 ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } FormatSpecifier fs = null; if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int pos = -1; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); pos++; // filter the not-used legend. if ( bMinSliceApplied && Arrays.binarySearch( filteredMinSliceEntry, pos ) >= 0 ) { continue; } String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dWidth + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dWidth = dFWidth; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dWidth = Math.max( dFWidth, dWidth ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), pos ) ); } // compute the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dWidth + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dWidth = dFWidth; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dWidth = Math.max( dFWidth, dWidth ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_MINSLICE_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dsiBase.size( ) ) ); } dWidth += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + insCA.getRight( ) + dExtraWidth; dHeight = Math.max( dRealHeight, dHeight ); } else if ( direction.getValue( ) == Direction.TOP_BOTTOM ) { // (VERTICAL => TB) dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dW = bb.getWidth( ); double dFHeight = bb.getHeight( ); double dExtraHeight = 0; String extraText = null; dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dW = Math.max( dW, itm.getFullWidth( ) ); dExtraHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dDeltaHeight += dExtraHeight + 2; } } if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = dW; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dMaxW = Math.max( dW, dMaxW ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dW, dFHeight, la.getCaption( ).getValue( ), dExtraHeight, extraText ) ); } // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dHeight += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( dExtraWidth, dHeight - dSeparatorThickness / 2 ), dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2, 0, null, 0, null ) ); } } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING + MAX // ITEM WIDTH + RIGHT INSETS dWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + dMaxW + insCA.getRight( ) + dExtraWidth; dHeight = Math.max( dRealHeight, dHeight ); } else if ( direction.getValue( ) == Direction.LEFT_RIGHT ) { // (VERTICAL => LR) dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dW = bb.getWidth( ); double dFHeight = bb.getHeight( ); double dExtraHeight = 0; String extraText = null; dDeltaHeight = insCA.getTop( ) + dFHeight + insCA.getBottom( ); if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dW = Math.max( dW, itm.getFullWidth( ) ); dExtraHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dDeltaHeight += itm.getFullHeight( ) + 2; } } if ( dHeight + dDeltaHeight > dAvailableHeight ) { dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = dW; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = dDeltaHeight; } else { dMaxW = Math.max( dW, dMaxW ); dHeight += dDeltaHeight; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dExtraWidth, dHeight - dDeltaHeight ), dW, dFHeight, la.getCaption( ).getValue( ), dExtraHeight, extraText ) ); } dExtraWidth += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dRealHeight = Math.max( dRealHeight, dHeight ); dHeight = 0; // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dExtraWidth += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( dExtraWidth - dSeparatorThickness / 2, 0 ), 0, dRealHeight, null, 0, null ) ); } } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING + // MAX ITEM WIDTH + RIGHT INSETS dWidth += dExtraWidth; dHeight = Math.max( dRealHeight, dHeight ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.direction", //$NON-NLS-1$ new Object[]{ direction.getName( ) }, Messages.getResourceBundle( xs.getULocale( ) ) ); } } else if ( orientation.getValue( ) == Orientation.HORIZONTAL ) { double dH, dMaxH = 0; double dRealWidth = 0, dExtraHeight = 0, dDeltaWidth; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.base.axis.no.series.definitions", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.base.axis.no.series.definitions", //$NON-NLS-1$ Messages.getResourceBundle( xs.getULocale( ) ) ); } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } FormatSpecifier fs = null; if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int pos = -1; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); pos++; // filter the not-used legend. if ( bMinSliceApplied && Arrays.binarySearch( filteredMinSliceEntry, pos ) >= 0 ) { continue; } String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaWidth = insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dHeight = dFHeight; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dHeight = Math.max( dFHeight, dHeight ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), pos ) ); } // compute the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } double dFWidth = bb.getWidth( ); double dFHeight = bb.getHeight( ); dDeltaWidth = insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dHeight = dFHeight; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dHeight = Math.max( dFHeight, dHeight ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_MINSLICE_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dsiBase.size( ) ) ); } dHeight += dExtraHeight + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dWidth = Math.max( dWidth, dRealWidth ); } else if ( direction.getValue( ) == Direction.TOP_BOTTOM ) { // (HORIZONTAL => TB) dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { dWidth = 0; al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dH = bb.getHeight( ); double dFHeight = dH; double dFWidth = bb.getWidth( ); double dEHeight = 0; String extraText = null; dDeltaWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ) + dHorizontalSpacing; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dEHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dH += dEHeight + 2; dDeltaWidth = Math.max( dDeltaWidth, itm.getFullWidth( ) ); } } if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = dH; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dMaxH = Math.max( dH, dMaxH ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dEHeight, extraText ) ); } dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = 0; // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dHeight += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( 0, dExtraHeight - dSeparatorThickness / 2 ), dRealWidth, 0, null, 0, null ) ); } } dHeight += dExtraHeight; dWidth = Math.max( dRealWidth, dWidth ); } else if ( direction.getValue( ) == Direction.LEFT_RIGHT ) { // (HORIZONTAL => LR) dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { se = (Series) al.get( i ); Object obj = se.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } dH = bb.getHeight( ); double dFHeight = dH; double dFWidth = bb.getWidth( ); double dEHeight = 0; String extraText = null; dDeltaWidth = insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ) + dHorizontalSpacing; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( se.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } Label seLabel = LabelImpl.copyInstance( se.getLabel( ) ); seLabel.getCaption( ).setValue( valueText ); itm.reuse( seLabel ); dEHeight = itm.getFullHeight( ); extraText = seLabel.getCaption( ).getValue( ); dH += dEHeight + 2; dDeltaWidth = Math.max( dDeltaWidth, itm.getFullWidth( ) ); } } if ( dWidth + dDeltaWidth > dAvailableWidth ) { dExtraHeight += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = dH; dRealWidth = Math.max( dRealWidth, dWidth ); dWidth = dDeltaWidth; } else { dMaxH = Math.max( dH, dMaxH ); dWidth += dDeltaWidth; } legendItems.add( new LegendItemHints( LEGEND_ENTRY, new Point( dWidth - dDeltaWidth, dExtraHeight ), dFWidth, dFHeight, la.getCaption( ).getValue( ), dEHeight, extraText ) ); } // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 && ( lg.getSeparator( ) == null || lg.getSeparator( ) .isVisible( ) ) ) { dWidth += dSeparatorThickness; legendItems.add( new LegendItemHints( LEGEND_SEPERATOR, new Point( dWidth - dSeparatorThickness / 2, dExtraHeight ), 0, dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing, null, 0, null ) ); } } dHeight += insCA.getTop( ) + dVerticalSpacing + insCA.getBottom( ) + dMaxH + dExtraHeight; dWidth = Math.max( dRealWidth, dWidth ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.direction", //$NON-NLS-1$ new Object[]{ direction }, Messages.getResourceBundle( xs.getULocale( ) ) ); } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, "exception.illegal.rendering.orientation", //$NON-NLS-1$ new Object[]{ orientation }, Messages.getResourceBundle( xs.getULocale( ) ) ); } // consider legend title size. Label lgTitle = lg.getTitle( ); Size titleSize = null; if ( lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ) ) { lgTitle = LabelImpl.copyInstance( lgTitle ); // handle external resource string final String sPreviousValue = lgTitle.getCaption( ).getValue( ); lgTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, lgTitle, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } int iTitlePos = lg.getTitlePosition( ).getValue( ); // swap left/right if ( rtc.isRightToLeft( ) ) { if ( iTitlePos == Position.LEFT ) { iTitlePos = Position.RIGHT; } else if ( iTitlePos == Position.RIGHT ) { iTitlePos = Position.LEFT; } } switch ( iTitlePos ) { case Position.ABOVE : case Position.BELOW : dHeight += bb.getHeight( ); dWidth = Math.max( dWidth, bb.getWidth( ) ); break; case Position.LEFT : case Position.RIGHT : dWidth += bb.getWidth( ); dHeight = Math.max( dHeight, bb.getHeight( ) ); break; } titleSize = SizeImpl.create( bb.getWidth( ), bb.getHeight( ) ); } itm.dispose( ); // DISPOSE RESOURCE AFTER USE if ( rtc != null ) { LegendItemHints[] liha = (LegendItemHints[]) legendItems.toArray( new LegendItemHints[0] ); // update context hints here. LegendLayoutHints lilh = new LegendLayoutHints( SizeImpl.create( dWidth, dHeight ), titleSize, bMinSliceApplied, sMinSliceLabel, liha ); rtc.setLegendLayoutHints( lilh ); } sz = SizeImpl.create( dWidth, dHeight ); return sz; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/884fca6e22402dcddc733533b41c7c07536a4a06/LegendBuilder.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/LegendBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
6321,
3671,
12,
1599,
291,
1601,
2081,
9280,
16,
14804,
5003,
16,
1082,
202,
6485,
1852,
8526,
24336,
69,
16,
1939,
950,
1042,
436,
5111,
262,
1216,
14804,
503,
202,
95,
202,
202,
759,
18979,
18403,
55,
30,
202,
202,
759,
404,
18,
8061,
7758,
8805,
2120,
15623,
14884,
7085,
202,
202,
759,
576,
18,
15623,
7758,
8805,
10950,
14884,
7085,
202,
202,
759,
890,
18,
8061,
531,
2455,
11367,
202,
202,
6385,
17167,
409,
15266,
273,
5003,
18,
588,
16812,
12,
11272,
202,
202,
430,
261,
401,
23623,
18,
291,
694,
14097,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
13990,
2689,
16,
6862,
202,
6,
4064,
18,
16292,
18,
19235,
18,
76,
280,
94,
1097,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
5058,
18,
588,
18731,
12,
9280,
18,
588,
57,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
430,
261,
401,
23623,
18,
291,
694,
8212,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
503,
18,
13990,
2689,
16,
6862,
202,
6,
4064,
18,
16292,
18,
9855,
18,
16187,
86,
3113,
4329,
3993,
17,
5106,
17,
21,
8,
6862,
202,
5058,
18,
588,
18731,
12,
9280,
18,
588,
57,
3916,
12,
262,
262,
11272,
202,
202,
97,
202,
202,
759,
12584,
15154,
2689,
15932,
8350,
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,
6321,
3671,
12,
1599,
291,
1601,
2081,
9280,
16,
14804,
5003,
16,
1082,
202,
6485,
1852,
8526,
24336,
69,
16,
1939,
950,
1042,
436,
5111,
262,
1216,
14804,
503,
202,
95,
202,
202,
759,
18979,
18403,
55,
30,
202,
202,
759,
404,
18,
8061,
7758,
8805,
2120,
15623,
14884,
7085,
202,
202,
759,
576,
18,
15623,
7758,
8805,
10950,
14884,
7085,
202,
202,
759,
890,
18,
8061,
531,
2455,
11367,
202,
202,
6385,
17167,
409,
15266,
273,
5003,
18,
588,
16812,
12,
11272,
202,
202,
430,
261,
401,
23623,
18,
291,
694,
14097,
12,
262,
262,
202,
202,
95,
1082,
202,
12849,
394,
14804,
503,
12,
14804,
4410,
3773,
18,
734,
16,
6862,
202,
7984,
2
] |
||
public void render(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception { ToolSession toolSession = SessionManager.getCurrentToolSession(); Tool tool = ToolManager.getCurrentTool(); String url = (String) toolSession.getAttribute( tool.getId() + Tool.HELPER_DONE_URL); toolSession.removeAttribute(tool.getId() + Tool.HELPER_DONE_URL); String pathObj = (String)toolSession.getAttribute(tool.getId() + "thetoolPath"); toolSession.removeAttribute(tool.getId() + "thetoolPath"); if(toolSession.getAttribute(ALTERNATE_DONE_URL_MAP) != null) { String path = ""; Object altObj = toolSession.getAttribute(ALTERNATE_DONE_URL); Map urlMap = (Map)toolSession.getAttribute(ALTERNATE_DONE_URL_MAP); if(altObj != null) { url = (String) urlMap.get((String)altObj); if(pathObj != null) { path = (String) pathObj; } if(!url.startsWith("/")) url = path + "/" + url; } toolSession.removeAttribute(ALTERNATE_DONE_URL_MAP); toolSession.removeAttribute(ALTERNATE_DONE_URL); } setUrl(url); if (getModelPrefix() == null) { setModelPrefix(""); } super.render(model, request, response); } | 48996 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48996/06e4a4d7751926b4d55dd8b7960a5fc1eac9da59/ToolFinishedView.java/buggy/common/tool-lib/src/java/org/theospi/utils/mvc/impl/ToolFinishedView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
5902,
12,
863,
2284,
16,
2940,
18572,
2293,
16,
2940,
4745,
607,
500,
550,
281,
575,
13,
15069,
503,
95,
6364,
2157,
6738,
2157,
33,
2157,
1318,
18,
588,
3935,
6364,
2157,
5621,
6364,
6738,
33,
6364,
1318,
18,
588,
3935,
6364,
5621,
780,
718,
28657,
780,
13,
6738,
2157,
18,
588,
1499,
12,
6738,
18,
26321,
1435,
15,
6364,
18,
20264,
3194,
67,
26875,
67,
1785,
1769,
6738,
2157,
18,
4479,
1499,
12,
6738,
18,
26321,
1435,
15,
6364,
18,
20264,
3194,
67,
26875,
67,
1785,
1769,
780,
803,
2675,
28657,
780,
13,
6738,
2157,
18,
588,
1499,
12,
6738,
18,
26321,
1435,
9078,
451,
278,
1371,
743,
8863,
6738,
2157,
18,
4479,
1499,
12,
6738,
18,
26321,
1435,
9078,
451,
278,
1371,
743,
8863,
430,
12,
6738,
2157,
18,
588,
1499,
12,
1013,
6519,
1777,
67,
26875,
67,
1785,
67,
8352,
13,
5,
33,
2011,
15329,
780,
803,
1546,
14432,
921,
2390,
2675,
33,
6738,
2157,
18,
588,
1499,
12,
1013,
6519,
1777,
67,
26875,
67,
1785,
1769,
863,
718,
863,
28657,
863,
13,
6738,
2157,
18,
588,
1499,
12,
1013,
6519,
1777,
67,
26875,
67,
1785,
67,
8352,
1769,
430,
12,
2390,
2675,
5,
33,
2011,
15329,
718,
28657,
780,
13,
718,
863,
18,
588,
12443,
780,
13,
2390,
2675,
1769,
430,
12,
803,
2675,
5,
33,
2011,
15329,
803,
28657,
780,
13,
803,
2675,
31,
97,
430,
12,
5,
718,
18,
17514,
1190,
2932,
4898,
3719,
718,
33,
803,
9078,
4898,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
5902,
12,
863,
2284,
16,
2940,
18572,
2293,
16,
2940,
4745,
607,
500,
550,
281,
575,
13,
15069,
503,
95,
6364,
2157,
6738,
2157,
33,
2157,
1318,
18,
588,
3935,
6364,
2157,
5621,
6364,
6738,
33,
6364,
1318,
18,
588,
3935,
6364,
5621,
780,
718,
28657,
780,
13,
6738,
2157,
18,
588,
1499,
12,
6738,
18,
26321,
1435,
15,
6364,
18,
20264,
3194,
67,
26875,
67,
1785,
1769,
6738,
2157,
18,
4479,
1499,
12,
6738,
18,
26321,
1435,
15,
6364,
18,
20264,
3194,
67,
26875,
67,
1785,
1769,
780,
803,
2675,
28657,
780,
13,
6738,
2157,
18,
588,
1499,
12,
6738,
18,
26321,
1435,
9078,
451,
278,
1371,
743,
8863,
6738,
2157,
18,
4479,
1499,
12,
6738,
2
] |
||
Rectangle r = wrR.intersection(srcR); if(!r.isEmpty()){ | if (wrR.intersects(srcR)) { Rectangle r = wrR.intersection(srcR); | public WritableRaster copyData(WritableRaster wr) { // Get my source. CachableRed src = (CachableRed)getSources().get(0); Rectangle srcR = src.getBounds(); Rectangle wrR = wr.getBounds(); Rectangle r = wrR.intersection(srcR); if(!r.isEmpty()){ // Limit the raster I send to my source to his rect. WritableRaster srcWR; srcWR = wr.createWritableChild(r.x, r.y, r.width, r.height, r.x, r.y, null); src.copyData(srcWR); } if (padMode == PadMode.ZERO_PAD) { handleZero(wr); } else if (padMode == PadMode.REPLICATE) { handleReplicate(wr); } else if (padMode == PadMode.WRAP) { handleWrap(wr); } return wr; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/dc27dc059ad1f52f55dd6cd5923eef7671a40cb7/PadRed.java/buggy/sources/org/apache/batik/refimpl/gvt/filter/PadRed.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14505,
18637,
1610,
751,
12,
12061,
18637,
12408,
13,
288,
3639,
368,
968,
3399,
1084,
18,
3639,
23782,
429,
3715,
1705,
273,
261,
11309,
429,
3715,
13,
588,
8628,
7675,
588,
12,
20,
1769,
3639,
13264,
1705,
54,
273,
1705,
18,
588,
5694,
5621,
3639,
13264,
12408,
54,
225,
273,
12408,
18,
588,
5694,
5621,
3639,
13264,
436,
273,
12408,
54,
18,
30231,
12,
4816,
54,
1769,
3639,
309,
12,
5,
86,
18,
291,
1921,
10756,
95,
5411,
368,
7214,
326,
12553,
467,
1366,
358,
3399,
1084,
358,
18423,
4917,
18,
5411,
14505,
18637,
1705,
7181,
31,
5411,
1705,
7181,
273,
12408,
18,
2640,
12061,
1763,
12,
86,
18,
92,
16,
436,
18,
93,
16,
436,
18,
2819,
16,
436,
18,
4210,
16,
4766,
6647,
436,
18,
92,
16,
436,
18,
93,
16,
446,
1769,
5411,
1705,
18,
3530,
751,
12,
4816,
7181,
1769,
3639,
289,
3639,
309,
261,
6982,
2309,
422,
30961,
2309,
18,
24968,
67,
17962,
13,
288,
5411,
1640,
7170,
12,
91,
86,
1769,
3639,
289,
469,
309,
261,
6982,
2309,
422,
30961,
2309,
18,
28879,
26042,
13,
288,
5411,
1640,
426,
1780,
340,
12,
91,
86,
1769,
3639,
289,
469,
309,
261,
6982,
2309,
422,
30961,
2309,
18,
27664,
13,
288,
5411,
1640,
2964,
12,
91,
86,
1769,
3639,
289,
3639,
327,
12408,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14505,
18637,
1610,
751,
12,
12061,
18637,
12408,
13,
288,
3639,
368,
968,
3399,
1084,
18,
3639,
23782,
429,
3715,
1705,
273,
261,
11309,
429,
3715,
13,
588,
8628,
7675,
588,
12,
20,
1769,
3639,
13264,
1705,
54,
273,
1705,
18,
588,
5694,
5621,
3639,
13264,
12408,
54,
225,
273,
12408,
18,
588,
5694,
5621,
3639,
13264,
436,
273,
12408,
54,
18,
30231,
12,
4816,
54,
1769,
3639,
309,
12,
5,
86,
18,
291,
1921,
10756,
95,
5411,
368,
7214,
326,
12553,
467,
1366,
358,
3399,
1084,
358,
18423,
4917,
18,
5411,
14505,
18637,
1705,
7181,
31,
5411,
1705,
7181,
273,
12408,
18,
2640,
12061,
1763,
12,
86,
18,
92,
16,
436,
18,
93,
16,
436,
18,
2
] |
packet.toXML(), | formatXML(packet.toXML()), | private void addSentPacketToTable(SimpleDateFormat dateFormatter, Packet packet) { String messageType = null; String to = packet.getTo(); String type = ""; Icon packetTypeIcon; sentPackets++; if (packet instanceof IQ) { packetTypeIcon = iqPacketIcon; messageType = "IQ Sent (class=" + packet.getClass().getName() + ")"; type = ((IQ) packet).getType().toString(); sentIQPackets++; } else if (packet instanceof Message) { packetTypeIcon = messagePacketIcon; messageType = "Message Sent"; type = ((Message) packet).getType().toString(); sentMessagePackets++; } else if (packet instanceof Presence) { packetTypeIcon = presencePacketIcon; messageType = "Presence Sent"; type = ((Presence) packet).getType().toString(); sentPresencePackets++; } else { packetTypeIcon = unknownPacketTypeIcon; messageType = packet.getClass().getName()+ " Sent"; sentOtherPackets++; } messagesTable.addRow( new Object[] { packet.toXML(), dateFormatter.format(new Date()), packetSentIcon, packetTypeIcon, messageType, type, to, ""}); // Update the statistics table updateStatistics(); } | 52005 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52005/878aee904393c62651527642b23dc553a8ce14d3/EnhancedDebugger.java/buggy/source/org/jivesoftware/smackx/debugger/EnhancedDebugger.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
7828,
6667,
774,
1388,
12,
5784,
11878,
1509,
5074,
16,
11114,
4414,
13,
288,
3639,
514,
22402,
273,
446,
31,
3639,
514,
358,
273,
4414,
18,
588,
774,
5621,
3639,
514,
618,
273,
1408,
31,
3639,
16011,
4414,
559,
5554,
31,
3639,
3271,
27328,
9904,
31,
3639,
309,
261,
11482,
1276,
26950,
13,
288,
5411,
4414,
559,
5554,
273,
24288,
6667,
5554,
31,
5411,
22402,
273,
315,
45,
53,
16695,
261,
1106,
1546,
397,
4414,
18,
588,
797,
7675,
17994,
1435,
397,
7310,
31,
5411,
618,
273,
14015,
45,
53,
13,
4414,
2934,
588,
559,
7675,
10492,
5621,
5411,
3271,
45,
53,
27328,
9904,
31,
3639,
289,
3639,
469,
309,
261,
11482,
1276,
2350,
13,
288,
5411,
4414,
559,
5554,
273,
883,
6667,
5554,
31,
5411,
22402,
273,
315,
1079,
16695,
14432,
5411,
618,
273,
14015,
1079,
13,
4414,
2934,
588,
559,
7675,
10492,
5621,
5411,
3271,
1079,
27328,
9904,
31,
3639,
289,
3639,
469,
309,
261,
11482,
1276,
31517,
13,
288,
5411,
4414,
559,
5554,
273,
9805,
6667,
5554,
31,
5411,
22402,
273,
315,
22590,
16695,
14432,
5411,
618,
273,
14015,
22590,
13,
4414,
2934,
588,
559,
7675,
10492,
5621,
5411,
3271,
22590,
27328,
9904,
31,
3639,
289,
3639,
469,
288,
5411,
4414,
559,
5554,
273,
5917,
6667,
559,
5554,
31,
5411,
22402,
273,
4414,
18,
588,
797,
7675,
17994,
1435,
15,
315,
16695,
14432,
5411,
3271,
8290,
27328,
9904,
31,
3639,
289,
3639,
2743,
1388,
18,
1289,
1999,
12,
5411,
394,
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,
527,
7828,
6667,
774,
1388,
12,
5784,
11878,
1509,
5074,
16,
11114,
4414,
13,
288,
3639,
514,
22402,
273,
446,
31,
3639,
514,
358,
273,
4414,
18,
588,
774,
5621,
3639,
514,
618,
273,
1408,
31,
3639,
16011,
4414,
559,
5554,
31,
3639,
3271,
27328,
9904,
31,
3639,
309,
261,
11482,
1276,
26950,
13,
288,
5411,
4414,
559,
5554,
273,
24288,
6667,
5554,
31,
5411,
22402,
273,
315,
45,
53,
16695,
261,
1106,
1546,
397,
4414,
18,
588,
797,
7675,
17994,
1435,
397,
7310,
31,
5411,
618,
273,
14015,
45,
53,
13,
4414,
2934,
588,
559,
7675,
10492,
5621,
5411,
3271,
45,
53,
27328,
9904,
31,
3639,
289,
3639,
469,
309,
261,
11482,
1276,
2350,
13,
2
] |
private float flushLines() throws DocumentException { // checks if the ArrayList with the lines is not null if (lines == null) { return 0; } //add by Jin-Hsia Yang boolean newline=false; //end add by Jin-Hsia Yang // checks if a new Line has to be made. if (line != null && line.size() > 0) { lines.add(line); line = new PdfLine(indentLeft(), indentRight(), alignment, leading); //add by Jin-Hsia Yang newline=true; //end add by Jin-Hsia Yang } // checks if the ArrayList with the lines is empty if (lines.size() == 0) { return 0; } // initialisation of some parameters Object currentValues[] = new Object[2]; PdfFont currentFont = null; float displacement = 0; PdfLine l; PdfChunk chunk; Float lastBaseFactor = new Float(0); currentValues[1] = lastBaseFactor; // looping over all the lines for (Iterator i = lines.iterator(); i.hasNext(); ) { // this is a line in the loop l = (PdfLine) i.next(); if(isParagraphE && isNewpage && newline) { newline=false; text.moveText(l.indentLeft() - indentLeft() + listIndentLeft + paraIndent,-l.height()); } else { text.moveText(l.indentLeft() - indentLeft() + listIndentLeft, -l.height()); } // is the line preceeded by a symbol? if (l.listSymbol() != null) { chunk = l.listSymbol(); text.moveText(- l.listIndent(), 0); if (chunk.font().compareTo(currentFont) != 0) { currentFont = chunk.font(); text.setFontAndSize(currentFont.getFont(), currentFont.size()); } if (chunk.color() != null) { Color color = chunk.color(); text.setColorFill(color); text.showText(chunk.toString()); text.resetRGBColorFill(); } else if (chunk.isImage()) { Image image = chunk.getImage(); float matrix[] = image.matrix(); float xMarker = text.getXTLM(); float yMarker = text.getYTLM(); matrix[Image.CX] = xMarker + chunk.getImageOffsetX() - matrix[Image.CX]; matrix[Image.CY] = yMarker + chunk.getImageOffsetY() - matrix[Image.CY]; addImage(graphics, image, matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]); } else { text.showText(chunk.toString()); } text.moveText(l.listIndent(), 0); } currentValues[0] = currentFont; writeLineToContent(l, text, graphics, currentValues, writer.getSpaceCharRatio()); currentFont = (PdfFont)currentValues[0]; displacement += l.height(); if (indentLeft() - listIndentLeft != l.indentLeft()) { text.moveText(indentLeft() - l.indentLeft() - listIndentLeft, 0); } } lines = new ArrayList(); return displacement; } | 4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/fc8401dd1711447f11f6e8c19e480f4cdb4a37a0/PdfDocument.java/clean/src/com/lowagie/text/pdf/PdfDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1431,
3663,
5763,
1435,
1216,
4319,
503,
288,
7734,
368,
4271,
309,
326,
2407,
598,
326,
2362,
353,
486,
446,
3639,
309,
261,
3548,
422,
446,
13,
288,
5411,
327,
374,
31,
3639,
289,
7734,
368,
1289,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
3639,
1250,
9472,
33,
5743,
31,
3639,
368,
409,
527,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
7734,
368,
4271,
309,
279,
394,
5377,
711,
358,
506,
7165,
18,
3639,
309,
261,
1369,
480,
446,
597,
980,
18,
1467,
1435,
405,
374,
13,
288,
5411,
2362,
18,
1289,
12,
1369,
1769,
5411,
980,
273,
394,
9989,
1670,
12,
9355,
3910,
9334,
3504,
4726,
9334,
8710,
16,
7676,
1769,
13491,
368,
1289,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
5411,
9472,
33,
3767,
31,
5411,
368,
409,
527,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
10792,
289,
7734,
368,
4271,
309,
326,
2407,
598,
326,
2362,
353,
1008,
3639,
309,
261,
3548,
18,
1467,
1435,
422,
374,
13,
288,
5411,
327,
374,
31,
3639,
289,
7734,
368,
2172,
10742,
434,
2690,
1472,
3639,
1033,
783,
1972,
8526,
273,
394,
1033,
63,
22,
15533,
3639,
9989,
5711,
783,
5711,
273,
446,
31,
3639,
1431,
1015,
15917,
273,
374,
31,
3639,
9989,
1670,
328,
31,
3639,
9989,
5579,
2441,
31,
3639,
5450,
1142,
2171,
6837,
273,
394,
5450,
12,
20,
1769,
3639,
783,
1972,
63,
21,
65,
273,
1142,
2171,
6837,
31,
3639,
368,
25004,
1879,
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,
1431,
3663,
5763,
1435,
1216,
4319,
503,
288,
7734,
368,
4271,
309,
326,
2407,
598,
326,
2362,
353,
486,
446,
3639,
309,
261,
3548,
422,
446,
13,
288,
5411,
327,
374,
31,
3639,
289,
7734,
368,
1289,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
3639,
1250,
9472,
33,
5743,
31,
3639,
368,
409,
527,
635,
804,
267,
17,
44,
87,
1155,
1624,
539,
7734,
368,
4271,
309,
279,
394,
5377,
711,
358,
506,
7165,
18,
3639,
309,
261,
1369,
480,
446,
597,
980,
18,
1467,
1435,
405,
374,
13,
288,
5411,
2362,
18,
1289,
12,
1369,
1769,
5411,
980,
273,
394,
9989,
1670,
12,
9355,
3910,
9334,
3504,
4726,
9334,
8710,
16,
7676,
1769,
13491,
2
] |
||
collection.setCollectionTable( associatedClass.getTable() ); | if(!property.isManyToMany()) collection.setCollectionTable( associatedClass.getTable() ); | private static void bindCollectionSecondPass(GrailsDomainClassProperty property, Mappings mappings, Map persistentClasses, Collection collection, Map inheritedMetas) { PersistentClass associatedClass = null; // Configure one-to-many if(collection.isOneToMany()) { OneToMany oneToMany = (OneToMany)collection.getElement(); String associatedClassName = oneToMany.getReferencedEntityName(); associatedClass = (PersistentClass)persistentClasses.get(associatedClassName); // if there is no persistent class for the association throw // exception if(associatedClass == null) { throw new MappingException( "Association references unmapped class: " + oneToMany.getReferencedEntityName() ); } oneToMany.setAssociatedClass( associatedClass ); collection.setCollectionTable( associatedClass.getTable() ); collection.setLazy(true); // is it sorted? if(SortedSet.class.isAssignableFrom(property.getType())) { collection.setSorted(true); } LOG.info( "Mapping collection: " + collection.getRole() + " -> " + collection.getCollectionTable().getName() ); } // setup the primary key references KeyValue keyValue; String propertyRef = collection.getReferencedPropertyName(); // this is to support mapping by a property if(propertyRef == null) { keyValue = collection.getOwner().getIdentifier(); } else { keyValue = (KeyValue)collection.getOwner().getProperty( propertyRef ).getValue(); } DependantValue key = new DependantValue(collection.getCollectionTable(), keyValue); key.setTypeName(null); // if(property.isBidirectional()) { GrailsDomainClassProperty otherSide = property.getOtherSide(); if(otherSide.isManyToOne()) { collection.setInverse(true); Iterator mappedByColumns = associatedClass.getProperty( otherSide.getName() ).getValue().getColumnIterator(); while(mappedByColumns.hasNext()) { Column column = (Column)mappedByColumns.next(); linkValueUsingAColumnCopy(otherSide,column,key); } } } else { bindSimpleValue( property,key,mappings ); } collection.setKey( key ); // make required and non-updateable key.setNullable(false); key.setUpdateable(false); // if we have a many-to-many if(property.isManyToMany()) { ManyToOne element = new ManyToOne( collection.getCollectionTable() ); collection.setElement(element); bindManyToOne(property,element, mappings); } else if ( property.isOneToMany() && !property.isBidirectional() ) { // for non-inverse one-to-many, with a not-null fk, add a backref! OneToMany oneToMany = (OneToMany) collection.getElement(); String entityName = oneToMany.getReferencedEntityName(); PersistentClass referenced = mappings.getClass( entityName ); Backref prop = new Backref(); prop.setEntityName(property.getDomainClass().getFullName()); prop.setName('_' + property.getDomainClass().getShortName() + '_' + property.getName() + "Backref" ); prop.setUpdateable( true ); prop.setInsertable( true ); prop.setCollectionRole( collection.getRole() ); prop.setValue( collection.getKey() ); prop.setOptional( true ); referenced.addProperty( prop ); } } | 51576 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51576/6c47cbe485713fe8d2b500632651590033abed59/GrailsDomainBinder.java/buggy/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1993,
2532,
8211,
6433,
12,
14571,
14573,
3748,
797,
1396,
1272,
16,
1635,
4675,
7990,
16,
1635,
9195,
4818,
16,
2200,
1849,
16,
1635,
12078,
30853,
13,
288,
202,
202,
11906,
797,
3627,
797,
273,
446,
31,
202,
202,
759,
11758,
1245,
17,
869,
17,
9353,
202,
202,
430,
12,
5548,
18,
291,
3335,
12601,
10756,
288,
1082,
202,
3335,
12601,
1245,
12601,
273,
261,
3335,
12601,
13,
5548,
18,
21336,
5621,
1082,
202,
780,
3627,
3834,
273,
1245,
12601,
18,
588,
22344,
19441,
5621,
25083,
202,
28441,
797,
273,
261,
11906,
797,
13,
19393,
4818,
18,
588,
12,
28441,
3834,
1769,
1082,
202,
759,
309,
1915,
353,
1158,
9195,
667,
364,
326,
6384,
604,
1082,
202,
759,
1520,
1082,
202,
430,
12,
28441,
797,
422,
446,
13,
288,
9506,
202,
12849,
394,
30896,
12,
315,
7174,
5351,
640,
13654,
667,
30,
315,
397,
1245,
12601,
18,
588,
22344,
19441,
1435,
11272,
1082,
202,
97,
25083,
202,
476,
12601,
18,
542,
19233,
797,
12,
3627,
797,
11272,
1082,
202,
5548,
18,
542,
2532,
1388,
12,
3627,
797,
18,
588,
1388,
1435,
11272,
1082,
202,
5548,
18,
542,
14443,
12,
3767,
1769,
25083,
202,
759,
353,
518,
3115,
35,
1082,
202,
430,
12,
11739,
694,
18,
1106,
18,
291,
7961,
1265,
12,
4468,
18,
588,
559,
1435,
3719,
288,
9506,
202,
5548,
18,
542,
11739,
12,
3767,
1769,
1082,
202,
97,
25083,
202,
4842,
18,
1376,
12,
315,
3233,
1849,
30,
315,
6862,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
1993,
2532,
8211,
6433,
12,
14571,
14573,
3748,
797,
1396,
1272,
16,
1635,
4675,
7990,
16,
1635,
9195,
4818,
16,
2200,
1849,
16,
1635,
12078,
30853,
13,
288,
202,
202,
11906,
797,
3627,
797,
273,
446,
31,
202,
202,
759,
11758,
1245,
17,
869,
17,
9353,
202,
202,
430,
12,
5548,
18,
291,
3335,
12601,
10756,
288,
1082,
202,
3335,
12601,
1245,
12601,
273,
261,
3335,
12601,
13,
5548,
18,
21336,
5621,
1082,
202,
780,
3627,
3834,
273,
1245,
12601,
18,
588,
22344,
19441,
5621,
25083,
202,
28441,
797,
273,
261,
11906,
797,
13,
19393,
4818,
18,
588,
12,
28441,
3834,
1769,
1082,
202,
759,
309,
1915,
353,
1158,
9195,
667,
364,
326,
6384,
2
] |
reloadProjectItem.setMnemonic('R'); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; consoleSplitter = new javax.swing.JSplitPane(); viewPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); reportPanel = new javax.swing.JPanel(); editProjectPanel = new javax.swing.JPanel(); jarFileLabel = new javax.swing.JLabel(); jarNameTextField = new javax.swing.JTextField(); addJarButton = new javax.swing.JButton(); jarFileListLabel = new javax.swing.JLabel(); sourceDirLabel = new javax.swing.JLabel(); srcDirTextField = new javax.swing.JTextField(); addSourceDirButton = new javax.swing.JButton(); sourceDirListLabel = new javax.swing.JLabel(); removeJarButton = new javax.swing.JButton(); removeSrcDirButton = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); browseJarButton = new javax.swing.JButton(); browseSrcDirButton = new javax.swing.JButton(); editProjectLabel = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); findBugsButton = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jarFileListScrollPane = new javax.swing.JScrollPane(); jarFileList = new javax.swing.JList(); sourceDirListScrollPane = new javax.swing.JScrollPane(); sourceDirList = new javax.swing.JList(); classpathEntryLabel = new javax.swing.JLabel(); classpathEntryListLabel = new javax.swing.JLabel(); classpathEntryTextField = new javax.swing.JTextField(); browseClasspathEntryButton = new javax.swing.JButton(); addClasspathEntryButton = new javax.swing.JButton(); removeClasspathEntryButton = new javax.swing.JButton(); classpathEntryListScrollPane = new javax.swing.JScrollPane(); classpathEntryList = new javax.swing.JList(); jSeparator5 = new javax.swing.JSeparator(); sourceUpButton = new javax.swing.JButton(); sourceDownButton = new javax.swing.JButton(); classpathUpButton = new javax.swing.JButton(); classpathDownButton = new javax.swing.JButton(); bugTreePanel = new javax.swing.JPanel(); bugTreeBugDetailsSplitter = new javax.swing.JSplitPane(); groupByTabbedPane = new javax.swing.JTabbedPane(); byClassScrollPane = new javax.swing.JScrollPane(); byClassBugTree = new javax.swing.JTree(); byPackageScrollPane = new javax.swing.JScrollPane(); byPackageBugTree = new javax.swing.JTree(); byBugTypeScrollPane = new javax.swing.JScrollPane(); byBugTypeBugTree = new javax.swing.JTree(); bySummary = new javax.swing.JScrollPane(); bugSummaryEditorPane = new javax.swing.JEditorPane(); bugDetailsTabbedPane = new javax.swing.JTabbedPane(); bugDescriptionScrollPane = new javax.swing.JScrollPane(); bugDescriptionEditorPane = new javax.swing.JEditorPane(); sourceTextAreaScrollPane = new javax.swing.JScrollPane(); sourceTextArea = new javax.swing.JTextArea(); annotationTextAreaScrollPane = new javax.swing.JScrollPane(); annotationTextArea = new javax.swing.JTextArea(); consoleScrollPane = new javax.swing.JScrollPane(); consoleMessageArea = new javax.swing.JTextArea(); urlLabel = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); logoLabel = new javax.swing.JLabel(); growBoxSpacer = new javax.swing.JLabel(); theMenuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newProjectItem = new javax.swing.JMenuItem(); openProjectItem = new javax.swing.JMenuItem(); recentProjectsMenu = new javax.swing.JMenu(); closeProjectItem = new javax.swing.JMenuItem(); jSeparator9 = new javax.swing.JSeparator(); saveProjectItem = new javax.swing.JMenuItem(); saveProjectAsItem = new javax.swing.JMenuItem(); reloadProjectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); loadBugsItem = new javax.swing.JMenuItem(); saveBugsItem = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JSeparator(); exitItem = new javax.swing.JMenuItem(); viewMenu = new javax.swing.JMenu(); viewConsoleItem = new javax.swing.JCheckBoxMenuItem(); viewBugDetailsItem = new javax.swing.JCheckBoxMenuItem(); fullDescriptionsItem = new javax.swing.JCheckBoxMenuItem(); jSeparator7 = new javax.swing.JSeparator(); lowPriorityButton = new javax.swing.JRadioButtonMenuItem(); lowPriorityButton.setText(L10N.getLocalString("menu.lowpriority_item", "Low Priority")); mediumPriorityButton = new javax.swing.JRadioButtonMenuItem(); highPriorityButton = new javax.swing.JRadioButtonMenuItem(); jSeparator8 = new javax.swing.JSeparator(); viewProjectItem = new javax.swing.JRadioButtonMenuItem(); viewBugsItem = new javax.swing.JRadioButtonMenuItem(); settingsMenu = new javax.swing.JMenu(); configureDetectorsItem = new javax.swing.JMenuItem(); helpMenu = new javax.swing.JMenu(); aboutItem = new javax.swing.JMenuItem(); getContentPane().setLayout(new java.awt.GridBagLayout()); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); consoleSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); consoleSplitter.setResizeWeight(1.0); consoleSplitter.setOneTouchExpandable(true); consoleSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { consoleSplitterPropertyChange(evt); } }); viewPanel.setLayout(new java.awt.CardLayout()); viewPanel.add(emptyPanel, "EmptyPanel"); viewPanel.add(reportPanel, "ReportPanel"); editProjectPanel.setLayout(new java.awt.GridBagLayout()); jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileLabel.setText("Archive or directory:"); jarFileLabel.setText(L10N.getLocalString("dlg.jarfile_lbl", "Archive or Directory:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileLabel, gridBagConstraints); jarNameTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jarNameTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(jarNameTextField, gridBagConstraints); addJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); addJarButton.setText("Add"); addJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); addJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); addJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); addJarButton.setText(L10N.getLocalString("dlg.add_btn", "Add")); addJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Archives/directories:"); jarFileListLabel.setText(L10N.getLocalString("dlg.jarlist_lbl", "Archives/Directories:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source directory:"); sourceDirLabel.setText(L10N.getLocalString("dlg.srcfile_lbl", "Source directory:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setText(L10N.getLocalString("dlg.add_btn", "Add")); addSourceDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSourceDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 8; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source directories:"); sourceDirListLabel.setText(L10N.getLocalString("dlg.srclist_lbl", "Source directories:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeJarButton.setText(L10N.getLocalString("dlg.remove_btn", "Remove")); removeJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeJarButton, gridBagConstraints); removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeSrcDirButton.setText("Remove"); removeSrcDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setText(L10N.getLocalString("dlg.remove_btn", "Remove")); removeSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeSrcDirButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator1, gridBagConstraints); browseJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseJarButton.setText("Browse"); browseJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseJarButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse")); browseJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 2; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseJarButton, gridBagConstraints); browseSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseSrcDirButton.setText("Browse"); browseSrcDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse")); browseSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 8; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseSrcDirButton, gridBagConstraints); editProjectLabel.setBackground(new java.awt.Color(0, 0, 204)); editProjectLabel.setFont(new java.awt.Font("Dialog", 1, 24)); editProjectLabel.setForeground(new java.awt.Color(255, 255, 255)); editProjectLabel.setText("Project"); editProjectLabel.setOpaque(true); editProjectLabel.setText(L10N.getLocalString("dlg.project_lbl", "Project")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; editProjectPanel.add(editProjectLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator2, gridBagConstraints); findBugsButton.setMnemonic('B'); findBugsButton.setText("Find Bugs!"); findBugsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findBugsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 21; gridBagConstraints.gridwidth = 4; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(findBugsButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 14; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator4, gridBagConstraints); jarFileListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); jarFileList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); jarFileList.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListScrollPane.setViewportView(jarFileList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.4; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListScrollPane, gridBagConstraints); sourceDirListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); sourceDirList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); sourceDirList.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListScrollPane.setViewportView(sourceDirList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.1; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListScrollPane, gridBagConstraints); classpathEntryLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryLabel.setText("Classpath entry:"); classpathEntryLabel.setText(L10N.getLocalString("dlg.classpathfile_lbl", "Classpath entry:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 15; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryLabel, gridBagConstraints); classpathEntryListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryListLabel.setText("Classpath entries:"); classpathEntryListLabel.setText(L10N.getLocalString("dlg.classpathlist_lbl", "Classpath entries:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 16; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryListLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 15; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(classpathEntryTextField, gridBagConstraints); browseClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseClasspathEntryButton.setText("Browse"); browseClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse")); browseClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 15; editProjectPanel.add(browseClasspathEntryButton, gridBagConstraints); addClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); addClasspathEntryButton.setText("Add"); addClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setText(L10N.getLocalString("dlg.add_btn", "Add")); addClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 15; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(addClasspathEntryButton, gridBagConstraints); removeClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeClasspathEntryButton.setText("Remove"); removeClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setText(L10N.getLocalString("dlg.remove_btn", "Remove")); removeClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 16; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(removeClasspathEntryButton, gridBagConstraints); classpathEntryListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); classpathEntryList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); classpathEntryList.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryListScrollPane.setViewportView(classpathEntryList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 16; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.1; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(classpathEntryListScrollPane, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 20; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0); editProjectPanel.add(jSeparator5, gridBagConstraints); sourceUpButton.setFont(new java.awt.Font("Dialog", 0, 12)); sourceUpButton.setText("Up"); sourceUpButton.setMaximumSize(new java.awt.Dimension(90, 25)); sourceUpButton.setMinimumSize(new java.awt.Dimension(90, 25)); sourceUpButton.setPreferredSize(new java.awt.Dimension(90, 25)); sourceUpButton.setText(L10N.getLocalString("dlg.up_btn", "Up")); sourceUpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sourceUpButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 10; gridBagConstraints.weighty = 0.2; editProjectPanel.add(sourceUpButton, gridBagConstraints); sourceDownButton.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDownButton.setText("Down"); sourceDownButton.setMaximumSize(new java.awt.Dimension(90, 25)); sourceDownButton.setMinimumSize(new java.awt.Dimension(90, 25)); sourceDownButton.setPreferredSize(new java.awt.Dimension(90, 25)); sourceDownButton.setText(L10N.getLocalString("dlg.down_btn", "Down")); sourceDownButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sourceDownButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 11; editProjectPanel.add(sourceDownButton, gridBagConstraints); classpathUpButton.setFont(new java.awt.Font("Dialog", 0, 12)); classpathUpButton.setText("Up"); classpathUpButton.setMaximumSize(new java.awt.Dimension(90, 25)); classpathUpButton.setMinimumSize(new java.awt.Dimension(90, 25)); classpathUpButton.setPreferredSize(new java.awt.Dimension(90, 25)); classpathUpButton.setText(L10N.getLocalString("dlg.up_btn", "Up")); classpathUpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { classpathUpButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 17; gridBagConstraints.weighty = 0.2; editProjectPanel.add(classpathUpButton, gridBagConstraints); classpathDownButton.setFont(new java.awt.Font("Dialog", 0, 12)); classpathDownButton.setText("Down"); classpathDownButton.setMaximumSize(new java.awt.Dimension(90, 25)); classpathDownButton.setMinimumSize(new java.awt.Dimension(90, 25)); classpathDownButton.setPreferredSize(new java.awt.Dimension(90, 25)); classpathDownButton.setText(L10N.getLocalString("dlg.down_btn", "Down")); classpathDownButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { classpathDownButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 18; editProjectPanel.add(classpathDownButton, gridBagConstraints); viewPanel.add(editProjectPanel, "EditProjectPanel"); bugTreePanel.setLayout(new java.awt.GridBagLayout()); bugTreeBugDetailsSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); bugTreeBugDetailsSplitter.setResizeWeight(1.0); bugTreeBugDetailsSplitter.setOneTouchExpandable(true); bugTreeBugDetailsSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { bugTreeBugDetailsSplitterPropertyChange(evt); } }); byClassScrollPane.setViewportView(byClassBugTree); groupByTabbedPane.addTab("By Class", byClassScrollPane); byPackageScrollPane.setViewportView(byPackageBugTree); groupByTabbedPane.addTab("By Package", byPackageScrollPane); byBugTypeScrollPane.setViewportView(byBugTypeBugTree); groupByTabbedPane.addTab("By Bug Type", byBugTypeScrollPane); bySummary.setViewportView(bugSummaryEditorPane); groupByTabbedPane.addTab("Summary", bySummary); bugTreeBugDetailsSplitter.setTopComponent(groupByTabbedPane); bugDescriptionEditorPane.setEditable(false); bugDescriptionScrollPane.setViewportView(bugDescriptionEditorPane); bugDetailsTabbedPane.addTab("Details", bugDescriptionScrollPane); sourceTextAreaScrollPane.setMinimumSize(new java.awt.Dimension(22, 180)); sourceTextAreaScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); sourceTextArea.setEditable(false); sourceTextArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); sourceTextArea.setEnabled(false); sourceTextAreaScrollPane.setViewportView(sourceTextArea); bugDetailsTabbedPane.addTab("Source code", sourceTextAreaScrollPane); annotationTextAreaScrollPane.setViewportView(annotationTextArea); bugDetailsTabbedPane.addTab("Annotations", annotationTextAreaScrollPane); bugTreeBugDetailsSplitter.setBottomComponent(bugDetailsTabbedPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; bugTreePanel.add(bugTreeBugDetailsSplitter, gridBagConstraints); viewPanel.add(bugTreePanel, "BugTree"); consoleSplitter.setTopComponent(viewPanel); { equalizeControls(new JComponent[] { browseJarButton, browseSrcDirButton, browseClasspathEntryButton, addJarButton, addSourceDirButton, addClasspathEntryButton, removeJarButton, removeSrcDirButton, removeClasspathEntryButton, sourceUpButton, sourceDownButton, classpathUpButton, classpathDownButton }); groupByTabbedPane.setTitleAt(0, L10N.getLocalString("dlg.byclass_tab", "By Class")); groupByTabbedPane.setTitleAt(1, L10N.getLocalString("dlg.bypackage_tab", "By Package")); groupByTabbedPane.setTitleAt(2, L10N.getLocalString("dlg.bybugtype_tab", "By Bug Type")); groupByTabbedPane.setTitleAt(3, L10N.getLocalString("dlg.summary_tab", "Summary")); bugDetailsTabbedPane.setTitleAt(0, L10N.getLocalString("dlg.details_tab", "Details")); bugDetailsTabbedPane.setTitleAt(1, L10N.getLocalString("dlg.sourcecode_tab", "Source Code")); bugDetailsTabbedPane.setTitleAt(2, L10N.getLocalString("dlg.annotations_tab", "Annotations")); } consoleScrollPane.setMinimumSize(new java.awt.Dimension(22, 100)); consoleScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); consoleMessageArea.setBackground(new java.awt.Color(204, 204, 204)); consoleMessageArea.setEditable(false); consoleMessageArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); consoleMessageArea.setMinimumSize(new java.awt.Dimension(0, 0)); consoleMessageArea.setAutoscrolls(false); consoleScrollPane.setViewportView(consoleMessageArea); consoleSplitter.setBottomComponent(consoleScrollPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(consoleSplitter, gridBagConstraints); urlLabel.setFont(new java.awt.Font("Dialog", 0, 12)); urlLabel.setText("FindBugs - http://findbugs.sourceforge.net/"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 0); getContentPane().add(urlLabel, gridBagConstraints); jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.X_AXIS)); jPanel1.add(logoLabel); growBoxSpacer.setMaximumSize(new java.awt.Dimension(16, 16)); jPanel1.add(growBoxSpacer); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHEAST; gridBagConstraints.insets = new java.awt.Insets(2, 0, 2, 2); getContentPane().add(jPanel1, gridBagConstraints); theMenuBar.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setMnemonic('F'); fileMenu.setText("File"); fileMenu.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setText(L10N.getLocalString("menu.file_menu", "File")); fileMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { fileMenuMenuSelected(evt); } }); newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setMnemonic('N'); newProjectItem.setText("New Project"); newProjectItem.setText(L10N.getLocalString("menu.new_item", "New Project")); newProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newProjectItemActionPerformed(evt); } }); fileMenu.add(newProjectItem); openProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); openProjectItem.setMnemonic('O'); openProjectItem.setText("Open Project..."); openProjectItem.setText(L10N.getLocalString("menu.open_item", "Open Project...")); openProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openProjectItemActionPerformed(evt); } }); fileMenu.add(openProjectItem); recentProjectsMenu.setMnemonic('E'); recentProjectsMenu.setText("Recent Projects"); recentProjectsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); recentProjectsMenu.setText(L10N.getLocalString("menu.recent_menu", "Recent Projects...")); rebuildRecentProjectsMenu(); fileMenu.add(recentProjectsMenu); closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); closeProjectItem.setMnemonic('C'); closeProjectItem.setText("Close Project"); closeProjectItem.setText(L10N.getLocalString("menu.close_item", "Close")); closeProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeProjectItemActionPerformed(evt); } }); fileMenu.add(closeProjectItem); fileMenu.add(jSeparator9); saveProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectItem.setMnemonic('S'); saveProjectItem.setText("Save Project"); saveProjectItem.setText(L10N.getLocalString("menu.save_item", "Save Project")); saveProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectItemActionPerformed(evt); } }); fileMenu.add(saveProjectItem); saveProjectAsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectAsItem.setMnemonic('A'); saveProjectAsItem.setText("Save Project As..."); saveProjectAsItem.setText(L10N.getLocalString("menu.saveas_item", "Save Project As...")); saveProjectAsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectAsItemActionPerformed(evt); } }); fileMenu.add(saveProjectAsItem); reloadProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); reloadProjectItem.setMnemonic('R'); reloadProjectItem.setText("Reload Project"); reloadProjectItem.setText(L10N.getLocalString("menu.reload_item", "Reload Project")); reloadProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { reloadProjectItemActionPerformed(evt); } }); fileMenu.add(reloadProjectItem); fileMenu.add(jSeparator3); loadBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); loadBugsItem.setMnemonic('L'); loadBugsItem.setText("Load Bugs..."); loadBugsItem.setText(L10N.getLocalString("menu.loadbugs_item", "Load Bugs...")); loadBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { loadBugsItemActionPerformed(evt); } }); fileMenu.add(loadBugsItem); saveBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveBugsItem.setMnemonic('B'); saveBugsItem.setText("Save Bugs"); saveBugsItem.setText(L10N.getLocalString("menu.savebugs_item", "Save Bugs...")); saveBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveBugsItemActionPerformed(evt); } }); fileMenu.add(saveBugsItem); fileMenu.add(jSeparator6); exitItem.setFont(new java.awt.Font("Dialog", 0, 12)); exitItem.setMnemonic('X'); exitItem.setText("Exit"); exitItem.setText(L10N.getLocalString("menu.exit_item", "Exit")); exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); theMenuBar.add(fileMenu); viewMenu.setMnemonic('V'); viewMenu.setText("View"); viewMenu.setFont(new java.awt.Font("Dialog", 0, 12)); viewMenu.setText(L10N.getLocalString("menu.view_menu", "View")); viewMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { viewMenuMenuSelected(evt); } }); viewConsoleItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewConsoleItem.setMnemonic('C'); viewConsoleItem.setText("Console"); viewConsoleItem.setText(L10N.getLocalString("menu.console_item", "Console")); viewConsoleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewConsoleItemActionPerformed(evt); } }); viewMenu.add(viewConsoleItem); viewBugDetailsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugDetailsItem.setMnemonic('D'); viewBugDetailsItem.setSelected(true); viewBugDetailsItem.setText("Bug Details"); viewBugDetailsItem.setText(L10N.getLocalString("menu.bugdetails_item", "Bug Details")); viewBugDetailsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugDetailsItemActionPerformed(evt); } }); viewMenu.add(viewBugDetailsItem); fullDescriptionsItem.setFont(new java.awt.Font("Dialog", 0, 12)); fullDescriptionsItem.setMnemonic('F'); fullDescriptionsItem.setSelected(true); fullDescriptionsItem.setText("Full Descriptions"); fullDescriptionsItem.setText(L10N.getLocalString("menu.fulldescriptions_item", "Full Descriptions")); fullDescriptionsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fullDescriptionsItemActionPerformed(evt); } }); viewMenu.add(fullDescriptionsItem); viewMenu.add(jSeparator7); lowPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); lowPriorityButton.setMnemonic('L'); lowPriorityButton.setText("Low Priority"); lowPriorityButton.setText(L10N.getLocalString("menu.lowpriority_item", "Low Priority")); lowPriorityButton.setSelected(priorityThreshold == Detector.LOW_PRIORITY); lowPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { lowPriorityButtonActionPerformed(evt); } }); viewMenu.add(lowPriorityButton); mediumPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); mediumPriorityButton.setMnemonic('M'); mediumPriorityButton.setText("Medium Priority"); mediumPriorityButton.setText(L10N.getLocalString("menu.mediumpriority_item", "Medium Priority")); mediumPriorityButton.setSelected(priorityThreshold == Detector.NORMAL_PRIORITY); mediumPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mediumPriorityButtonActionPerformed(evt); } }); viewMenu.add(mediumPriorityButton); highPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); highPriorityButton.setMnemonic('H'); highPriorityButton.setText("High Priority"); highPriorityButton.setText(L10N.getLocalString("menu.highpriority_item", "High Priority")); highPriorityButton.setSelected(priorityThreshold == Detector.HIGH_PRIORITY); highPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { highPriorityButtonActionPerformed(evt); } }); viewMenu.add(highPriorityButton); viewMenu.add(jSeparator8); viewProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewProjectItem.setText("View Project Details"); viewProjectItem.setEnabled(false); viewProjectItem.setText(L10N.getLocalString("menu.viewprojectdetails_item", "View Project Details")); viewProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewProjectItemActionPerformed(evt); } }); viewMenu.add(viewProjectItem); viewBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugsItem.setText("View Bugs"); viewBugsItem.setEnabled(false); viewBugsItem.setText(L10N.getLocalString("menu.viewbugs_item", "View Bugs")); viewBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugsItemActionPerformed(evt); } }); viewMenu.add(viewBugsItem); theMenuBar.add(viewMenu); settingsMenu.setMnemonic('S'); settingsMenu.setText("Settings"); settingsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); settingsMenu.setText(L10N.getLocalString("menu.settings_menu", "Settings")); configureDetectorsItem.setFont(new java.awt.Font("Dialog", 0, 12)); configureDetectorsItem.setMnemonic('C'); configureDetectorsItem.setText("Configure Detectors..."); configureDetectorsItem.setText(L10N.getLocalString("menu.configure_item", "Configure Detectors")); configureDetectorsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { configureDetectorsItemActionPerformed(evt); } }); settingsMenu.add(configureDetectorsItem); theMenuBar.add(settingsMenu); helpMenu.setMnemonic('H'); helpMenu.setText("Help"); helpMenu.setFont(new java.awt.Font("Dialog", 0, 12)); helpMenu.setText(L10N.getLocalString("menu.help_menu", "Help")); aboutItem.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setMnemonic('A'); aboutItem.setText("About..."); aboutItem.setText(L10N.getLocalString("menu.about_item", "About...")); aboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aboutItemActionPerformed(evt); } }); helpMenu.add(aboutItem); theMenuBar.add(helpMenu); setJMenuBar(theMenuBar); pack(); }//GEN-END:initComponents | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/fb9db786c49e8a31baf12894ef55b2c9ce521f5b/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
202,
202,
6290,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
202,
202,
8698,
26738,
273,
394,
6863,
18,
5328,
310,
18,
46,
5521,
8485,
5621,
202,
202,
1945,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
5531,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
6006,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
4619,
4109,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
11930,
812,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
202,
202,
11930,
461,
16157,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
202,
202,
1289,
10813,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
202,
202,
11930,
26098,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
202,
202,
3168,
1621,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
202,
202,
4816,
1621,
16157,
273,
394,
6863,
18,
5328,
310,
18,
46,
16157,
5621,
202,
202,
1289,
1830,
1621,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
202,
202,
3168,
1621,
682,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
202,
202,
4479,
10813,
3616,
273,
394,
6863,
18,
5328,
310,
18,
46,
3616,
5621,
202,
202,
4479,
7740,
1621,
3616,
273,
394,
6863,
18,
5328,
310,
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,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
202,
202,
6290,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
202,
202,
8698,
26738,
273,
394,
6863,
18,
5328,
310,
18,
46,
5521,
8485,
5621,
202,
202,
1945,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
5531,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
6006,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
4619,
4109,
5537,
273,
394,
6863,
18,
5328,
310,
18,
46,
5537,
5621,
202,
202,
11930,
812,
2224,
273,
394,
6863,
18,
5328,
310,
18,
46,
2224,
5621,
202,
202,
11930,
461,
16157,
273,
2
] |
|
public void cleanRepository( RepositoryCleanerConfiguration configuration ) throws Exception { File reportsBase = formatReportsBase( configuration.getReportsPath() ); File sourceRepositoryBase = normalizeSourceRepositoryBase( configuration.getSourceRepositoryPath() ); File targetRepositoryBase = normalizeTargetRepositoryBase( configuration.getTargetRepositoryPath() ); boolean mailReport = false; // do not proceed if we cannot produce reports, or if the repository is // invalid. if ( reportsBase != null && sourceRepositoryBase != null && targetRepositoryBase != null ) { Logger logger = getLogger(); FileReporter repoReporter = null; try { repoReporter = new FileReporter( reportsBase, "repository.report.txt" ); ArtifactDiscoverer artifactDiscoverer = null; List artifacts = null; PathLister kickoutLister = null; PathLister excludeLister = null; try { artifactDiscoverer = (ArtifactDiscoverer) container.lookup( ArtifactDiscoverer.ROLE, configuration .getSourceRepositoryLayout() ); if ( logger.isInfoEnabled() ) { logger.info( "Discovering artifacts." ); } try { File kickoutsList = new File(reportsBase, "kickouts.txt"); File excludesList = new File(reportsBase, "excludes.txt"); kickoutLister = new PathLister(kickoutsList); excludeLister = new PathLister(excludesList); artifacts = artifactDiscoverer.discoverArtifacts( sourceRepositoryBase, repoReporter, configuration.getBlacklistedPatterns(), excludeLister, kickoutLister ); } catch ( Exception e ) { repoReporter.error( "Error discovering artifacts in source repository.", e ); } } finally { if ( artifactDiscoverer != null ) { container.release( artifactDiscoverer ); } excludeLister.close(); kickoutLister.close(); } if ( artifacts != null ) { ArtifactRepositoryLayout sourceLayout = null; ArtifactRepositoryLayout targetLayout = null; try { sourceLayout = (ArtifactRepositoryLayout) container.lookup( ArtifactRepositoryLayout.ROLE, configuration .getSourceRepositoryLayout() ); ArtifactRepository sourceRepo = new ArtifactRepository( "source", "file://" + sourceRepositoryBase.getAbsolutePath(), sourceLayout ); targetLayout = (ArtifactRepositoryLayout) container.lookup( ArtifactRepositoryLayout.ROLE, configuration .getTargetRepositoryLayout() ); ArtifactRepository targetRepo = new ArtifactRepository( "target", "file://" + targetRepositoryBase.getAbsolutePath(), targetLayout ); if ( logger.isInfoEnabled() ) { logger.info( "Rewriting POMs and artifact files." ); } artifactIndexer.writeAritfactIndex( artifacts, targetRepositoryBase ); rewriteArtifactsAndPoms( artifacts, sourceRepo, targetRepo, configuration, reportsBase, sourceRepositoryBase, targetRepositoryBase, repoReporter ); } finally { if ( sourceLayout != null ) { container.release( sourceLayout ); } if ( targetLayout != null ) { container.release( targetLayout ); } } } if ( repoReporter.hasError() && logger.isErrorEnabled() ) { logger.error( "Error encountered while converting source repository to target repository." ); } if ( repoReporter.hasWarning() && logger.isWarnEnabled() ) { logger .warn( "Warning encountered while rewriting one or more artifacts from source repository to target repository." ); } if ( repoReporter.hasError() ) { mailReport = true; } } finally { if ( repoReporter != null ) { repoReporter.close(); } } if ( mailReport && configuration.mailErrorReport() ) { String reportContents = readReportFile( repoReporter.getReportFile() ); MailMessage message = new MailMessage(); message.setContent( reportContents ); message.setSubject( configuration.getErrorReportSubject() ); message.setFrom( configuration.getErrorReportFromName(), configuration.getErrorReportFromAddress() ); message.setSendDate( new Date() ); message.addTo( configuration.getErrorReportToName(), configuration.getErrorReportToAddress() ); mailSender.send( message ); } } } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/6e51d420ed174d20446e7387dab144f9c1a9eed0/RepositoryCleaner.java/buggy/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/RepositoryCleaner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2721,
3305,
12,
6281,
7605,
264,
1750,
1664,
262,
3639,
1216,
1185,
565,
288,
3639,
1387,
10557,
2171,
273,
740,
18631,
2171,
12,
1664,
18,
588,
18631,
743,
1435,
11272,
3639,
1387,
1084,
3305,
2171,
273,
3883,
1830,
3305,
2171,
12,
1664,
18,
588,
1830,
3305,
743,
1435,
11272,
3639,
1387,
1018,
3305,
2171,
273,
3883,
2326,
3305,
2171,
12,
1664,
18,
588,
2326,
3305,
743,
1435,
11272,
3639,
1250,
4791,
4820,
273,
629,
31,
3639,
368,
741,
486,
11247,
309,
732,
2780,
11402,
10557,
16,
578,
309,
326,
3352,
353,
3639,
368,
2057,
18,
3639,
309,
261,
10557,
2171,
480,
446,
597,
1084,
3305,
2171,
480,
446,
597,
1018,
3305,
2171,
480,
446,
262,
3639,
288,
5411,
4242,
1194,
273,
7156,
5621,
5411,
1387,
13289,
3538,
13289,
273,
446,
31,
5411,
775,
5411,
288,
7734,
3538,
13289,
273,
394,
1387,
13289,
12,
10557,
2171,
16,
315,
9071,
18,
6006,
18,
5830,
6,
11272,
7734,
14022,
26082,
264,
6462,
26082,
264,
273,
446,
31,
7734,
987,
16259,
273,
446,
31,
27573,
2666,
18391,
23228,
659,
18391,
273,
446,
31,
7734,
2666,
18391,
4433,
18391,
273,
446,
31,
27573,
775,
7734,
288,
10792,
6462,
26082,
264,
273,
261,
7581,
26082,
264,
13,
1478,
18,
8664,
12,
14022,
26082,
264,
18,
16256,
16,
1664,
13491,
263,
588,
1830,
3305,
3744,
1435,
11272,
10792,
309,
261,
1194,
18,
291,
966,
1526,
1435,
262,
10792,
288,
13491,
1194,
18,
1376,
12,
315,
26082,
310,
16259,
1199,
11272,
10792,
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,
2721,
3305,
12,
6281,
7605,
264,
1750,
1664,
262,
3639,
1216,
1185,
565,
288,
3639,
1387,
10557,
2171,
273,
740,
18631,
2171,
12,
1664,
18,
588,
18631,
743,
1435,
11272,
3639,
1387,
1084,
3305,
2171,
273,
3883,
1830,
3305,
2171,
12,
1664,
18,
588,
1830,
3305,
743,
1435,
11272,
3639,
1387,
1018,
3305,
2171,
273,
3883,
2326,
3305,
2171,
12,
1664,
18,
588,
2326,
3305,
743,
1435,
11272,
3639,
1250,
4791,
4820,
273,
629,
31,
3639,
368,
741,
486,
11247,
309,
732,
2780,
11402,
10557,
16,
578,
309,
326,
3352,
353,
3639,
368,
2057,
18,
3639,
309,
261,
10557,
2171,
480,
446,
597,
1084,
3305,
2171,
480,
446,
597,
1018,
3305,
2171,
480,
446,
262,
3639,
2
] |
||
mLog.info("indexNote("+note+")"); try { String toIndex = note.getContent(); | synchronized(getLock()) { if (mLog.isDebugEnabled()) { mLog.debug("indexNote("+note+")"); } try { String toIndex = note.getContent(); | synchronized public void indexNote(Mailbox mbox, IndexItem redo, boolean deleteFirst, int mailItemId, Note note) throws ServiceException { initAnalyzer(mbox); mLog.info("indexNote("+note+")"); try { String toIndex = note.getContent(); if (mLog.isDebugEnabled()) { mLog.debug("Note value=\""+toIndex+"\""); } if (deleteFirst) { try { deleteDocuments(new int[] { mailItemId }); } catch(IOException e) { mLog.debug("indexNote ignored IOException deleting documents (index does not exist yet?)", e); } } Document doc = new Document(); doc.add(Field.UnStored(LuceneFields.L_CONTENT, toIndex)); String subj = toIndex.toLowerCase(); String name = (subj != null && subj.length() > DbMailItem.MAX_SENDER_LENGTH ? subj.substring(0, DbMailItem.MAX_SENDER_LENGTH) : subj); doc.add(Field.UnStored(LuceneFields.L_H_SUBJECT, subj)); doc.add(Field.Keyword(LuceneFields.L_MAILBOX_BLOB_ID, Integer.toString(mailItemId))); doc.add(Field.Text(LuceneFields.L_PARTNAME, LuceneFields.L_PARTNAME_NOTE)); doc.add(new Field(LuceneFields.L_SORT_SUBJECT, subj.toUpperCase(), false/*store*/, true/*index*/, false /*token*/)); doc.add(new Field(LuceneFields.L_SORT_NAME, name.toUpperCase(), false/*store*/, true/*index*/, false /*token*/));// String dateString = DateField.timeToString(note.getDate());// mLog.debug("Note date is: "+dateString);// doc.add(Field.Text(LuceneFields.L_DATE, dateString)); addDocument(redo, doc, mailItemId, note.getDate(), false); } catch (IOException e) { throw ServiceException.FAILURE("indexNote caught IOException", e); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/9f6861227b0f9808a28547edf4255cb279354a1d/MailboxIndex.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/MailboxIndex.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
1071,
918,
770,
8067,
12,
30239,
312,
2147,
16,
3340,
1180,
24524,
16,
1250,
1430,
3759,
16,
509,
4791,
17673,
16,
3609,
4721,
13,
565,
1216,
16489,
288,
3639,
1208,
12803,
12,
81,
2147,
1769,
3639,
312,
1343,
18,
1376,
2932,
1615,
8067,
2932,
15,
7652,
9078,
2225,
1769,
3639,
775,
288,
5411,
514,
20209,
273,
4721,
18,
588,
1350,
5621,
5411,
309,
261,
81,
1343,
18,
291,
2829,
1526,
10756,
288,
7734,
312,
1343,
18,
4148,
2932,
8067,
460,
13186,
15,
869,
1016,
9078,
8530,
1769,
5411,
289,
5411,
309,
261,
3733,
3759,
13,
288,
7734,
775,
288,
10792,
1430,
12922,
12,
2704,
509,
8526,
288,
4791,
17673,
15549,
7734,
289,
1044,
12,
14106,
425,
13,
288,
10792,
312,
1343,
18,
4148,
2932,
1615,
8067,
5455,
1860,
12993,
7429,
261,
1615,
1552,
486,
1005,
4671,
35,
2225,
16,
425,
1769,
7734,
289,
5411,
289,
5411,
4319,
997,
273,
394,
4319,
5621,
5411,
997,
18,
1289,
12,
974,
18,
984,
18005,
12,
19763,
2314,
18,
48,
67,
9689,
16,
20209,
10019,
5411,
514,
15333,
273,
20209,
18,
869,
5630,
5621,
5411,
514,
508,
273,
261,
1717,
78,
480,
446,
597,
15333,
18,
2469,
1435,
405,
8408,
6759,
1180,
18,
6694,
67,
1090,
18556,
67,
7096,
692,
15333,
18,
28023,
12,
20,
16,
8408,
6759,
1180,
18,
6694,
67,
1090,
18556,
67,
7096,
13,
294,
15333,
1769,
5411,
997,
18,
1289,
12,
974,
18,
984,
18005,
12,
19763,
2314,
18,
48,
67,
44,
67,
8362,
5304,
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,
3852,
1071,
918,
770,
8067,
12,
30239,
312,
2147,
16,
3340,
1180,
24524,
16,
1250,
1430,
3759,
16,
509,
4791,
17673,
16,
3609,
4721,
13,
565,
1216,
16489,
288,
3639,
1208,
12803,
12,
81,
2147,
1769,
3639,
312,
1343,
18,
1376,
2932,
1615,
8067,
2932,
15,
7652,
9078,
2225,
1769,
3639,
775,
288,
5411,
514,
20209,
273,
4721,
18,
588,
1350,
5621,
5411,
309,
261,
81,
1343,
18,
291,
2829,
1526,
10756,
288,
7734,
312,
1343,
18,
4148,
2932,
8067,
460,
13186,
15,
869,
1016,
9078,
8530,
1769,
5411,
289,
5411,
309,
261,
3733,
3759,
13,
288,
7734,
775,
288,
10792,
1430,
12922,
12,
2704,
509,
8526,
288,
4791,
17673,
15549,
7734,
289,
1044,
12,
14106,
425,
13,
2
] |
eDynamicUnset( eFeature ); | super.eUnset( featureID ); | public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case ComponentPackage.MARKER_LINE__LINE_ATTRIBUTES : setLineAttributes( (LineAttributes) null ); return; case ComponentPackage.MARKER_LINE__VALUE : setValue( (DataElement) null ); return; case ComponentPackage.MARKER_LINE__LABEL : setLabel( (Label) null ); return; case ComponentPackage.MARKER_LINE__LABEL_ANCHOR : unsetLabelAnchor( ); return; case ComponentPackage.MARKER_LINE__FORMAT_SPECIFIER : setFormatSpecifier( (FormatSpecifier) null ); return; } eDynamicUnset( eFeature ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/MarkerLineImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/MarkerLineImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
5435,
2261,
18,
25989,
67,
5997,
972,
5997,
67,
22308,
294,
9506,
202,
542,
1670,
2498,
12,
261,
1670,
2498,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
18,
25989,
67,
5997,
972,
4051,
294,
9506,
202,
542,
620,
12,
261,
751,
1046,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
18,
25989,
67,
5997,
972,
13545,
294,
9506,
202,
542,
2224,
12,
261,
2224,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
18,
25989,
67,
5997,
972,
13545,
67,
20360,
916,
294,
9506,
202,
18579,
2224,
11605,
12,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
18,
25989,
67,
5997,
972,
7254,
67,
13847,
10591,
294,
9506,
202,
542,
1630,
21416,
12,
261,
1630,
21416,
13,
446,
11272,
9506,
202,
2463,
31,
202,
202,
97,
202,
202,
73,
9791,
13250,
12,
425,
4595,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
5435,
2261,
18,
25989,
67,
5997,
972,
5997,
67,
22308,
294,
9506,
202,
542,
1670,
2498,
12,
261,
1670,
2498,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
18,
25989,
67,
5997,
972,
4051,
294,
9506,
202,
542,
620,
12,
261,
751,
1046,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
18,
25989,
67,
5997,
972,
13545,
294,
9506,
202,
542,
2224,
12,
261,
2224,
13,
446,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
5435,
2261,
2
] |
ctx.uskManager.getFetcher(usk.copy(-usk.suggestedEdition), ctx, parent); | ctx.uskManager.getFetcher(usk.copy(-usk.suggestedEdition), ctx, parent, false); | private static ClientGetState uskCreate(ClientGetter parent, GetCompletionCallback cb, ClientMetadata clientMetadata, USK usk, LinkedList metaStrings, FetcherContext ctx, ArchiveContext actx, int maxRetries, int recursionLevel, boolean dontTellClientGet, Object token, boolean isEssential, Bucket returnBucket) throws FetchException { if(usk.suggestedEdition >= 0) { // Return the latest known version but at least suggestedEdition. long edition = ctx.uskManager.lookup(usk); if(edition <= usk.suggestedEdition) { // Transition to SingleFileFetcher GetCompletionCallback myCB = new USKProxyCompletionCallback(usk, ctx.uskManager, cb); // Want to update the latest known good iff the fetch succeeds. SingleFileFetcher sf = new SingleFileFetcher(parent, myCB, clientMetadata, usk.getSSK(usk.suggestedEdition), metaStrings, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, false, returnBucket); // Background fetch ctx.uskManager.startTemporaryBackgroundFetcher(usk); return sf; } else { cb.onFailure(new FetchException(FetchException.PERMANENT_REDIRECT, usk.copy(edition).getURI().addMetaStrings(metaStrings)), null); return null; } } else { // Do a thorough, blocking search USKFetcher fetcher = ctx.uskManager.getFetcher(usk.copy(-usk.suggestedEdition), ctx, parent); if(isEssential) parent.addMustSucceedBlocks(1); fetcher.addCallback(new MyUSKFetcherCallback(parent, cb, clientMetadata, usk, metaStrings, ctx, actx, maxRetries, recursionLevel, dontTellClientGet, token, returnBucket)); return fetcher; } } | 46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/ba61984610fbdc6ae89adf37e39660cc27c3f343/SingleFileFetcher.java/buggy/src/freenet/client/async/SingleFileFetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
2445,
967,
1119,
584,
79,
1684,
12,
1227,
8461,
982,
16,
968,
11238,
2428,
2875,
16,
2445,
2277,
1004,
2277,
16,
587,
11129,
584,
79,
16,
10688,
2191,
7957,
16,
8065,
264,
1042,
1103,
16,
13124,
1042,
1328,
92,
16,
509,
30222,
16,
509,
13917,
2355,
16,
1250,
14046,
21009,
1227,
967,
16,
1033,
1147,
16,
1250,
353,
41,
1049,
2001,
16,
7408,
327,
4103,
13,
1216,
8065,
503,
288,
202,
202,
430,
12,
407,
79,
18,
87,
28892,
41,
1460,
1545,
374,
13,
288,
1082,
202,
759,
2000,
326,
4891,
4846,
1177,
1496,
622,
4520,
22168,
41,
1460,
18,
1082,
202,
5748,
28432,
273,
1103,
18,
407,
79,
1318,
18,
8664,
12,
407,
79,
1769,
1082,
202,
430,
12,
329,
608,
1648,
584,
79,
18,
87,
28892,
41,
1460,
13,
288,
9506,
202,
759,
16515,
358,
10326,
812,
16855,
9506,
202,
967,
11238,
2428,
3399,
8876,
273,
6862,
202,
2704,
587,
11129,
3886,
11238,
2428,
12,
407,
79,
16,
1103,
18,
407,
79,
1318,
16,
2875,
1769,
9506,
202,
759,
678,
970,
358,
1089,
326,
4891,
4846,
7494,
21437,
326,
2158,
21933,
18,
9506,
202,
5281,
812,
16855,
9033,
273,
4405,
202,
2704,
10326,
812,
16855,
12,
2938,
16,
3399,
8876,
16,
1004,
2277,
16,
584,
79,
18,
588,
1260,
47,
12,
407,
79,
18,
87,
28892,
41,
1460,
3631,
6862,
1082,
202,
3901,
7957,
16,
1103,
16,
1328,
92,
16,
30222,
16,
13917,
2355,
16,
14046,
21009,
1227,
967,
16,
6862,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
2445,
967,
1119,
584,
79,
1684,
12,
1227,
8461,
982,
16,
968,
11238,
2428,
2875,
16,
2445,
2277,
1004,
2277,
16,
587,
11129,
584,
79,
16,
10688,
2191,
7957,
16,
8065,
264,
1042,
1103,
16,
13124,
1042,
1328,
92,
16,
509,
30222,
16,
509,
13917,
2355,
16,
1250,
14046,
21009,
1227,
967,
16,
1033,
1147,
16,
1250,
353,
41,
1049,
2001,
16,
7408,
327,
4103,
13,
1216,
8065,
503,
288,
202,
202,
430,
12,
407,
79,
18,
87,
28892,
41,
1460,
1545,
374,
13,
288,
1082,
202,
759,
2000,
326,
4891,
4846,
1177,
1496,
622,
4520,
22168,
41,
1460,
18,
1082,
202,
5748,
28432,
273,
1103,
18,
407,
79,
1318,
18,
8664,
12,
407,
79,
2
] |
virtualElements[index] = DISPLAYED_TOKEN; | public void handleEvent(Event event) { TableItem item = (TableItem) event.item; int index = table.indexOf(item); Object element = virtualElements[index]; if(element == null) throw new NullPointerException(); //If we get a call back for one we //are already showing don't continue if(element == DISPLAYED_TOKEN) return; associate(element,item); updateItem(item,element); virtualElements[index] = DISPLAYED_TOKEN; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/26a611d43063dcb5b7000e649fa3f08fea0b088e/TableViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1640,
1133,
12,
1133,
871,
13,
288,
6862,
202,
1388,
1180,
761,
273,
261,
1388,
1180,
13,
871,
18,
1726,
31,
6862,
202,
474,
770,
273,
1014,
18,
31806,
12,
1726,
1769,
6862,
25083,
202,
921,
930,
273,
5024,
3471,
63,
1615,
15533,
6862,
202,
430,
12,
2956,
422,
446,
13,
25083,
202,
12849,
394,
10108,
5621,
6862,
202,
759,
2047,
732,
336,
279,
745,
1473,
364,
1245,
732,
6862,
202,
759,
834,
1818,
17253,
2727,
1404,
1324,
6862,
202,
430,
12,
2956,
422,
25214,
2056,
67,
8412,
13,
25083,
202,
2463,
31,
6862,
202,
11577,
12,
2956,
16,
1726,
1769,
6862,
202,
2725,
1180,
12,
1726,
16,
2956,
1769,
6862,
202,
12384,
3471,
63,
1615,
65,
273,
25214,
2056,
67,
8412,
31,
9506,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1640,
1133,
12,
1133,
871,
13,
288,
6862,
202,
1388,
1180,
761,
273,
261,
1388,
1180,
13,
871,
18,
1726,
31,
6862,
202,
474,
770,
273,
1014,
18,
31806,
12,
1726,
1769,
6862,
25083,
202,
921,
930,
273,
5024,
3471,
63,
1615,
15533,
6862,
202,
430,
12,
2956,
422,
446,
13,
25083,
202,
12849,
394,
10108,
5621,
6862,
202,
759,
2047,
732,
336,
279,
745,
1473,
364,
1245,
732,
6862,
202,
759,
834,
1818,
17253,
2727,
1404,
1324,
6862,
202,
430,
12,
2956,
422,
25214,
2056,
67,
8412,
13,
25083,
202,
2463,
31,
6862,
202,
11577,
12,
2956,
16,
1726,
1769,
6862,
202,
2725,
1180,
12,
1726,
16,
2956,
1769,
6862,
202,
12384,
3471,
63,
2
] |
|
public org.quickfix.field.MaturityMonthYear getMaturityMonthYear() throws FieldNotFound { org.quickfix.field.MaturityMonthYear value = new org.quickfix.field.MaturityMonthYear(); | public quickfix.field.MaturityMonthYear getMaturityMonthYear() throws FieldNotFound { quickfix.field.MaturityMonthYear value = new quickfix.field.MaturityMonthYear(); | public org.quickfix.field.MaturityMonthYear getMaturityMonthYear() throws FieldNotFound { org.quickfix.field.MaturityMonthYear value = new org.quickfix.field.MaturityMonthYear(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityListRequest.java/buggy/src/java/src/quickfix/fix44/SecurityListRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
5445,
5593,
2108,
270,
2336,
5445,
5593,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
5445,
5593,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
5445,
5593,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
5445,
5593,
2108,
270,
2336,
5445,
5593,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
5445,
5593,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
15947,
2336,
5445,
5593,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.serviceprovider = builder; this.oContext = oContext; | this.wizardContext = wizardContext; | public MultipleSeriesSelectorComponent( Chart chart, EList[] seriesDefnsArray, IUIServiceProvider builder, Object oContext, String sTitle, ISelectDataCustomizeUI selectDataUI ) { super( ); this.chart = chart; this.seriesDefnsArray = seriesDefnsArray; this.serviceprovider = builder; this.oContext = oContext; this.sTitle = sTitle; this.selectDataUI = selectDataUI; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/28738ea1377c73d595430451bea56e1444db4233/MultipleSeriesSelectorComponent.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/data/MultipleSeriesSelectorComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13531,
6485,
4320,
1841,
12,
14804,
4980,
16,
1082,
202,
41,
682,
8526,
4166,
3262,
2387,
1076,
16,
467,
5370,
16300,
2089,
16,
1082,
202,
921,
320,
1042,
16,
514,
272,
4247,
16,
467,
3391,
751,
3802,
554,
5370,
2027,
751,
5370,
262,
202,
95,
202,
202,
9565,
12,
11272,
202,
202,
2211,
18,
11563,
273,
4980,
31,
202,
202,
2211,
18,
10222,
3262,
2387,
1076,
273,
4166,
3262,
2387,
1076,
31,
202,
202,
2211,
18,
3278,
6778,
273,
2089,
31,
202,
202,
2211,
18,
83,
1042,
273,
320,
1042,
31,
202,
202,
2211,
18,
87,
4247,
273,
272,
4247,
31,
202,
202,
2211,
18,
4025,
751,
5370,
273,
2027,
751,
5370,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
13531,
6485,
4320,
1841,
12,
14804,
4980,
16,
1082,
202,
41,
682,
8526,
4166,
3262,
2387,
1076,
16,
467,
5370,
16300,
2089,
16,
1082,
202,
921,
320,
1042,
16,
514,
272,
4247,
16,
467,
3391,
751,
3802,
554,
5370,
2027,
751,
5370,
262,
202,
95,
202,
202,
9565,
12,
11272,
202,
202,
2211,
18,
11563,
273,
4980,
31,
202,
202,
2211,
18,
10222,
3262,
2387,
1076,
273,
4166,
3262,
2387,
1076,
31,
202,
202,
2211,
18,
3278,
6778,
273,
2089,
31,
202,
202,
2211,
18,
83,
1042,
273,
320,
1042,
31,
202,
202,
2211,
18,
87,
4247,
273,
272,
4247,
31,
202,
202,
2211,
18,
4025,
751,
5370,
273,
2027,
751,
5370,
31,
202,
97,
2,
-100
] |
_activity.getBreakDownElements().remove(this) ; this.getSuperActivities().remove(_activity) ; | _activity.getBreakDownElements().remove(this); this.getSuperActivities().remove(_activity); | public void removeFromActivity(Activity _activity) { _activity.getBreakDownElements().remove(this) ; this.getSuperActivities().remove(_activity) ; } | 55530 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55530/ada5e58810278c12f653155b2eebc09f228846a3/BreakdownElement.java/clean/woops2/trunk/src/woops2/model/breakdownelement/BreakdownElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
22386,
6193,
12,
6193,
389,
9653,
13,
288,
202,
202,
67,
9653,
18,
588,
7634,
4164,
3471,
7675,
4479,
12,
2211,
13,
274,
202,
202,
2211,
18,
588,
8051,
21101,
7675,
4479,
24899,
9653,
13,
274,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
22386,
6193,
12,
6193,
389,
9653,
13,
288,
202,
202,
67,
9653,
18,
588,
7634,
4164,
3471,
7675,
4479,
12,
2211,
13,
274,
202,
202,
2211,
18,
588,
8051,
21101,
7675,
4479,
24899,
9653,
13,
274,
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
] |
public final void setNeedsStaticLink() | public final void setNeedsStaticLink(boolean needsStaticLink) | public final void setNeedsStaticLink() { int old = flags; flags |= NEEDS_STATIC_LINK; // If this needs an environment (closure), then its callers do too. if ((old & NEEDS_STATIC_LINK) == 0 && nameDecl != null) setCallersNeedStaticLink(); } | 36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/029ff49133dff616f511934c8d41c65d2bf3690d/LambdaExp.java/buggy/gnu/expr/LambdaExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
727,
918,
444,
26419,
5788,
2098,
12,
6494,
4260,
5788,
2098,
13,
225,
288,
565,
509,
1592,
273,
2943,
31,
565,
2943,
5626,
12901,
2056,
55,
67,
22741,
67,
10554,
31,
565,
368,
971,
333,
4260,
392,
3330,
261,
20823,
3631,
1508,
2097,
19932,
741,
4885,
18,
565,
309,
14015,
1673,
473,
12901,
2056,
55,
67,
22741,
67,
10554,
13,
422,
374,
597,
508,
3456,
480,
446,
13,
1377,
444,
1477,
414,
14112,
5788,
2098,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
282,
1071,
727,
918,
444,
26419,
5788,
2098,
12,
6494,
4260,
5788,
2098,
13,
225,
288,
565,
509,
1592,
273,
2943,
31,
565,
2943,
5626,
12901,
2056,
55,
67,
22741,
67,
10554,
31,
565,
368,
971,
333,
4260,
392,
3330,
261,
20823,
3631,
1508,
2097,
19932,
741,
4885,
18,
565,
309,
14015,
1673,
473,
12901,
2056,
55,
67,
22741,
67,
10554,
13,
422,
374,
597,
508,
3456,
480,
446,
13,
1377,
444,
1477,
414,
14112,
5788,
2098,
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
] |
}); | }, ModalityState.NON_MMODAL); | public void fileTypesChanged(FileTypeEvent e){ // this invokeLater guaranties that this code will be invoked after // PSI gets the same event. ApplicationManager.getApplication().invokeLater(new Runnable(){ public void run(){ // [vova] It's very important to pass null as project. Each TODO view shows own progress // window. It causes frame switching. final ProgressWindow progressWindow=new ProgressWindow(false,null); progressWindow.setTitle("Looking for TODOs..."); progressWindow.setText("Please wait..."); final Runnable process=new Runnable(){ public void run(){ if (myAllTodos == null) return; ApplicationManager.getApplication().runReadAction( new Runnable(){ public void run(){ myAllTodos.rebuildCache(); myCurrentFileTodos.rebuildCache(); } } ); ApplicationManager.getApplication().invokeLater(new Runnable(){ public void run(){ myAllTodos.updateTree(); myCurrentFileTodos.updateTree(); } }, ModalityState.NON_MMODAL); } }; Thread thread=new Thread( new Runnable(){ public void run(){ ProgressManager.getInstance().runProcess(process,progressWindow); } }, "Todo finder" ); thread.start(); } }); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/5ee47b0e2b7b518474087287f2e5f65e14dd6ab1/TodoView.java/buggy/source/com/intellij/ide/todo/TodoView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
585,
2016,
5033,
12,
28941,
1133,
425,
15329,
1377,
368,
333,
4356,
20607,
3058,
297,
970,
606,
716,
333,
981,
903,
506,
8187,
1839,
1377,
368,
453,
2320,
5571,
326,
1967,
871,
18,
1377,
4257,
1318,
18,
588,
3208,
7675,
14407,
20607,
12,
2704,
10254,
1435,
95,
5411,
1071,
918,
1086,
1435,
95,
2868,
368,
306,
90,
16739,
65,
2597,
1807,
8572,
10802,
358,
1342,
446,
487,
1984,
18,
8315,
2660,
1476,
17975,
4953,
4007,
2868,
368,
2742,
18,
2597,
14119,
2623,
30882,
18,
2868,
727,
10980,
3829,
4007,
3829,
33,
2704,
10980,
3829,
12,
5743,
16,
2011,
1769,
2868,
4007,
3829,
18,
542,
4247,
2932,
9794,
310,
364,
2660,
87,
7070,
1769,
2868,
4007,
3829,
18,
542,
1528,
2932,
8496,
2529,
7070,
1769,
2868,
727,
10254,
1207,
33,
2704,
10254,
1435,
95,
7734,
1071,
918,
1086,
1435,
95,
5375,
309,
261,
4811,
1595,
56,
369,
538,
422,
446,
13,
327,
31,
5375,
4257,
1318,
18,
588,
3208,
7675,
2681,
1994,
1803,
12,
10792,
394,
10254,
1435,
95,
8227,
1071,
918,
1086,
1435,
95,
13491,
3399,
1595,
56,
369,
538,
18,
266,
3510,
1649,
5621,
13491,
3399,
3935,
812,
56,
369,
538,
18,
266,
3510,
1649,
5621,
8227,
289,
10792,
289,
5375,
11272,
5375,
4257,
1318,
18,
588,
3208,
7675,
14407,
20607,
12,
2704,
10254,
1435,
95,
4766,
565,
1071,
918,
1086,
1435,
95,
4766,
1377,
3399,
1595,
56,
369,
538,
18,
2725,
2471,
5621,
4766,
1377,
3399,
3935,
812,
56,
369,
538,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
585,
2016,
5033,
12,
28941,
1133,
425,
15329,
1377,
368,
333,
4356,
20607,
3058,
297,
970,
606,
716,
333,
981,
903,
506,
8187,
1839,
1377,
368,
453,
2320,
5571,
326,
1967,
871,
18,
1377,
4257,
1318,
18,
588,
3208,
7675,
14407,
20607,
12,
2704,
10254,
1435,
95,
5411,
1071,
918,
1086,
1435,
95,
2868,
368,
306,
90,
16739,
65,
2597,
1807,
8572,
10802,
358,
1342,
446,
487,
1984,
18,
8315,
2660,
1476,
17975,
4953,
4007,
2868,
368,
2742,
18,
2597,
14119,
2623,
30882,
18,
2868,
727,
10980,
3829,
4007,
3829,
33,
2704,
10980,
3829,
12,
5743,
16,
2011,
1769,
2868,
4007,
3829,
18,
542,
4247,
2932,
9794,
310,
364,
2660,
87,
7070,
1769,
2868,
4007,
3829,
2
] |
return Py.id(im_self) < Py.id(mother.im_self) ? -1 : 1; | return System.identityHashCode(im_self) < System.identityHashCode(mother.im_self) ? -1 : 1; | public int __cmp__(PyObject other) { if (other instanceof PyMethod) { PyMethod mother = (PyMethod)other; if (im_self != mother.im_self) return Py.id(im_self) < Py.id(mother.im_self) ? -1 : 1; if (im_func != mother.im_func) return Py.id(im_func) < Py.id(mother.im_func) ? -1 : 1; return 0; } return -2; } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/7d9e768b4639a7bb13d86526723c91807f89902a/PyMethod.java/clean/org/python/core/PyMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1001,
9625,
972,
12,
9413,
921,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
4707,
1305,
13,
288,
5411,
4707,
1305,
312,
3011,
273,
261,
9413,
1305,
13,
3011,
31,
5411,
309,
261,
381,
67,
2890,
480,
312,
3011,
18,
381,
67,
2890,
13,
7734,
327,
2332,
18,
10781,
21952,
12,
381,
67,
2890,
13,
411,
2332,
18,
10781,
21952,
12,
81,
3011,
18,
381,
67,
2890,
13,
692,
300,
21,
294,
404,
31,
5411,
309,
261,
381,
67,
644,
480,
312,
3011,
18,
381,
67,
644,
13,
7734,
327,
4707,
18,
350,
12,
381,
67,
644,
13,
411,
4707,
18,
350,
12,
81,
3011,
18,
381,
67,
644,
13,
692,
300,
21,
294,
404,
31,
5411,
327,
374,
31,
3639,
289,
3639,
327,
300,
22,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1001,
9625,
972,
12,
9413,
921,
1308,
13,
288,
3639,
309,
261,
3011,
1276,
4707,
1305,
13,
288,
5411,
4707,
1305,
312,
3011,
273,
261,
9413,
1305,
13,
3011,
31,
5411,
309,
261,
381,
67,
2890,
480,
312,
3011,
18,
381,
67,
2890,
13,
7734,
327,
2332,
18,
10781,
21952,
12,
381,
67,
2890,
13,
411,
2332,
18,
10781,
21952,
12,
81,
3011,
18,
381,
67,
2890,
13,
692,
300,
21,
294,
404,
31,
5411,
309,
261,
381,
67,
644,
480,
312,
3011,
18,
381,
67,
644,
13,
7734,
327,
4707,
18,
350,
12,
381,
67,
644,
13,
411,
4707,
18,
350,
12,
81,
3011,
18,
381,
67,
644,
13,
692,
300,
21,
294,
404,
31,
2
] |
this.currentFontName = ""; this.currentFontSize = 0; | body = page.getBody(); before = page.getBefore(); after = page.getAfter(); start = page.getStart(); end = page.getEnd(); | public void renderPage(Page page) {if ( debug )System.out.println("PCLRenderer.renderPage() page.Height() = " + page.getHeight()); BodyAreaContainer body; AreaContainer before, after, start, end; if ( paperheight > 0 && divisions == -1 ) divisions = paperheight / (page.getHeight() / 100);if ( debug )System.out.println("PCLRenderer.renderPage() paperheight=" + paperheight + " divisions=" + divisions); // Set top margin. //float fullmargin = 0; if ( divisions > 0 ) fullmargin = paperheight * curdiv / divisions; if ( topmargin > 0 ) fullmargin += topmargin;if ( debug )System.out.println("PCLRenderer.renderPage() curdiv=" + curdiv + " fullmargin=" + fullmargin); //if ( fullmargin > 0 ) // currentStream.add("\033&l" + (fullmargin / 15f) + "c1e8C"); //this.currentYPosition = fullmargin * 100; if ( paperheight > 0 ) pageHeight = (paperheight / divisions) + fullmargin; else pageHeight = page.getHeight() / 100;if ( debug )System.out.println("PCLRenderer.renderPage() Set currentYPosition=" + this.currentYPosition); if ( leftmargin > 0 && curdiv == 0 ) currentStream.add("\033&k" + (leftmargin / 6f) + "H\033&a1L\033&k12H"); body = page.getBody(); before = page.getBefore(); after = page.getAfter(); start = page.getStart(); end = page.getEnd(); this.currentFontName = ""; this.currentFontSize = 0; renderBodyAreaContainer(body); if (before != null) renderAreaContainer(before); if (after != null) renderAreaContainer(after); if (start != null) renderAreaContainer(start); if (end != null) renderAreaContainer(end); // End page. if ( ++curdiv == divisions || divisions == -1 ) { curdiv = 0; currentStream.add("\f"); } // Links, etc not implemented... /* currentPage = this.pdfDoc.makePage(this.pdfResources, currentStream, page.getWidth()/1000, page.getHeight()/1000, page); if (page.hasLinks()) { currentAnnotList = this.pdfDoc.makeAnnotList(); currentPage.setAnnotList(currentAnnotList); Enumeration e = page.getLinkSets().elements(); while (e.hasMoreElements()) { LinkSet linkSet = (LinkSet) e.nextElement(); linkSet.align(); String dest = linkSet.getDest(); int linkType = linkSet.getLinkType(); Enumeration f = linkSet.getRects().elements(); while (f.hasMoreElements()) { LinkedRectangle lrect = (LinkedRectangle) f.nextElement(); currentAnnotList.addLink( this.pdfDoc.makeLink(lrect.getRectangle(), dest, linkType)); } } } else { // just to be on the safe side currentAnnotList = null; } */ } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/cd264ba6a67a155375a4ba85cdb6dc35503ef593/PCLRenderer.java/buggy/src/org/apache/fop/render/pcl/PCLRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1743,
1964,
12,
1964,
1363,
13,
565,
288,
430,
261,
1198,
262,
3163,
18,
659,
18,
8222,
2932,
3513,
48,
6747,
18,
5902,
1964,
1435,
1363,
18,
2686,
1435,
273,
315,
397,
1363,
18,
588,
2686,
10663,
202,
202,
2250,
5484,
2170,
1417,
31,
202,
202,
5484,
2170,
1865,
16,
1839,
16,
787,
16,
679,
31,
202,
202,
430,
261,
15181,
4210,
405,
374,
597,
3739,
12682,
422,
300,
21,
262,
1082,
202,
2892,
12682,
273,
15181,
4210,
342,
261,
2433,
18,
588,
2686,
1435,
342,
2130,
1769,
430,
261,
1198,
262,
3163,
18,
659,
18,
8222,
2932,
3513,
48,
6747,
18,
5902,
1964,
1435,
15181,
4210,
1546,
397,
15181,
4210,
397,
315,
3739,
12682,
1546,
397,
3739,
12682,
1769,
202,
202,
759,
1000,
1760,
7333,
18,
202,
202,
759,
5659,
1983,
10107,
273,
374,
31,
202,
202,
430,
261,
3739,
12682,
405,
374,
262,
1082,
202,
2854,
10107,
273,
15181,
4210,
380,
662,
2892,
342,
3739,
12682,
31,
202,
202,
430,
261,
1760,
10107,
405,
374,
262,
1082,
202,
2854,
10107,
1011,
1760,
10107,
31,
430,
261,
1198,
262,
3163,
18,
659,
18,
8222,
2932,
3513,
48,
6747,
18,
5902,
1964,
1435,
662,
2892,
1546,
397,
662,
2892,
397,
315,
1983,
10107,
1546,
397,
1983,
10107,
1769,
202,
202,
759,
430,
261,
1983,
10107,
405,
374,
262,
202,
202,
759,
202,
2972,
1228,
18,
1289,
31458,
15265,
10,
80,
6,
397,
261,
2854,
10107,
342,
4711,
74,
13,
397,
315,
71,
21,
73,
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,
1743,
1964,
12,
1964,
1363,
13,
565,
288,
430,
261,
1198,
262,
3163,
18,
659,
18,
8222,
2932,
3513,
48,
6747,
18,
5902,
1964,
1435,
1363,
18,
2686,
1435,
273,
315,
397,
1363,
18,
588,
2686,
10663,
202,
202,
2250,
5484,
2170,
1417,
31,
202,
202,
5484,
2170,
1865,
16,
1839,
16,
787,
16,
679,
31,
202,
202,
430,
261,
15181,
4210,
405,
374,
597,
3739,
12682,
422,
300,
21,
262,
1082,
202,
2892,
12682,
273,
15181,
4210,
342,
261,
2433,
18,
588,
2686,
1435,
342,
2130,
1769,
430,
261,
1198,
262,
3163,
18,
659,
18,
8222,
2932,
3513,
48,
6747,
18,
5902,
1964,
1435,
15181,
4210,
1546,
397,
15181,
4210,
397,
315,
3739,
12682,
1546,
2
] |
if (indexer == null) indexer = new PDOMNullIndexer(); indexer.setProject(project); project.getProject().setSessionProperty(indexerProperty, indexer); return indexer; | private IPDOMIndexer createIndexer(ICProject project, String indexerId) throws CoreException { IPDOMIndexer indexer = null; // Look up in extension point IExtension indexerExt = Platform.getExtensionRegistry() .getExtension(CCorePlugin.INDEXER_UNIQ_ID, indexerId); if (indexerExt != null) { IConfigurationElement[] elements = indexerExt.getConfigurationElements(); for (int i = 0; i < elements.length; ++i) { IConfigurationElement element = elements[i]; if ("run".equals(element.getName())) { //$NON-NLS-1$ indexer = (IPDOMIndexer)element.createExecutableExtension("class"); //$NON-NLS-1$ break; } } } if (indexer == null) // Unknown index, default to the null one indexer = new PDOMNullIndexer(); indexer.setProject(project); project.getProject().setSessionProperty(indexerProperty, indexer); return indexer; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/764e4e3b0475d7f9171eb965216f47f10b9f00bd/PDOMManager.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
2971,
8168,
20877,
752,
20877,
12,
2871,
4109,
1984,
16,
514,
12635,
548,
13,
1216,
30015,
288,
377,
202,
2579,
8168,
20877,
12635,
273,
446,
31,
377,
202,
759,
10176,
731,
316,
2710,
1634,
377,
202,
45,
3625,
12635,
2482,
273,
11810,
18,
588,
3625,
4243,
1435,
377,
202,
202,
18,
588,
3625,
12,
39,
4670,
3773,
18,
9199,
654,
67,
10377,
53,
67,
734,
16,
12635,
548,
1769,
377,
202,
430,
261,
24541,
2482,
480,
446,
13,
288,
202,
377,
202,
45,
1750,
1046,
8526,
2186,
273,
12635,
2482,
18,
588,
1750,
3471,
5621,
202,
377,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
2469,
31,
965,
77,
13,
288,
202,
377,
202,
202,
45,
1750,
1046,
930,
273,
2186,
63,
77,
15533,
202,
377,
202,
202,
430,
7566,
2681,
9654,
14963,
12,
2956,
18,
17994,
1435,
3719,
288,
4329,
3993,
17,
5106,
17,
21,
8,
202,
377,
1082,
202,
24541,
273,
261,
2579,
8168,
20877,
13,
2956,
18,
2640,
17709,
3625,
2932,
1106,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
377,
1082,
202,
8820,
31,
202,
377,
202,
202,
97,
202,
377,
202,
97,
377,
202,
97,
377,
202,
430,
261,
24541,
422,
446,
13,
1377,
202,
202,
759,
9077,
770,
16,
805,
358,
326,
446,
1245,
377,
202,
202,
24541,
273,
394,
453,
8168,
2041,
20877,
5621,
540,
202,
24541,
18,
542,
4109,
12,
4406,
1769,
202,
202,
4406,
18,
588,
4109,
7675,
542,
2157,
1396,
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,
2971,
8168,
20877,
752,
20877,
12,
2871,
4109,
1984,
16,
514,
12635,
548,
13,
1216,
30015,
288,
377,
202,
2579,
8168,
20877,
12635,
273,
446,
31,
377,
202,
759,
10176,
731,
316,
2710,
1634,
377,
202,
45,
3625,
12635,
2482,
273,
11810,
18,
588,
3625,
4243,
1435,
377,
202,
202,
18,
588,
3625,
12,
39,
4670,
3773,
18,
9199,
654,
67,
10377,
53,
67,
734,
16,
12635,
548,
1769,
377,
202,
430,
261,
24541,
2482,
480,
446,
13,
288,
202,
377,
202,
45,
1750,
1046,
8526,
2186,
273,
12635,
2482,
18,
588,
1750,
3471,
5621,
202,
377,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2186,
18,
2469,
31,
965,
77,
13,
288,
202,
377,
2
] |
|
} | } | private void writeSQLUDTGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int jdbcElemNum, boolean rtnOutput) throws DRDAProtocolException,SQLException { writer.writeByte(CodePoint.NULLDATA); } | 56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/977561c9de22d12b40a3a2f79a8df22ba7fc7752/DRDAConnThread.java/buggy/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
3997,
57,
9081,
6997,
52,
12,
13198,
6998,
3597,
3901,
16,
14564,
1662,
694,
6998,
293,
3901,
16,
509,
16579,
7498,
2578,
16,
1250,
12119,
1447,
13,
202,
15069,
16801,
9793,
5752,
503,
16,
23116,
288,
202,
6299,
18,
2626,
3216,
12,
31536,
18,
8560,
4883,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
3997,
57,
9081,
6997,
52,
12,
13198,
6998,
3597,
3901,
16,
14564,
1662,
694,
6998,
293,
3901,
16,
509,
16579,
7498,
2578,
16,
1250,
12119,
1447,
13,
202,
15069,
16801,
9793,
5752,
503,
16,
23116,
288,
202,
6299,
18,
2626,
3216,
12,
31536,
18,
8560,
4883,
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
] |
if (this.menuBar != null) this.menuBar.removeNotify(); | public synchronized void setMenuBar(MenuBar menuBar) { if (peer != null) { if (this.menuBar != null) this.menuBar.removeNotify(); if (menuBar != null) menuBar.addNotify(); invalidateTree (); ((FramePeer) peer).setMenuBar(menuBar); } menuBar.frame = this; this.menuBar = menuBar; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Frame.java/buggy/core/src/classpath/java/java/awt/Frame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
444,
4599,
5190,
12,
4599,
5190,
3824,
5190,
13,
225,
288,
225,
309,
261,
12210,
480,
446,
13,
225,
288,
565,
309,
261,
2211,
18,
5414,
5190,
480,
446,
13,
1377,
333,
18,
5414,
5190,
18,
4479,
9168,
5621,
1377,
309,
261,
5414,
5190,
480,
446,
13,
1377,
3824,
5190,
18,
1289,
9168,
5621,
565,
11587,
2471,
261,
1769,
565,
14015,
3219,
6813,
13,
4261,
2934,
542,
4599,
5190,
12,
5414,
5190,
1769,
225,
289,
565,
3824,
5190,
18,
3789,
273,
333,
31,
225,
333,
18,
5414,
5190,
273,
3824,
5190,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
444,
4599,
5190,
12,
4599,
5190,
3824,
5190,
13,
225,
288,
225,
309,
261,
12210,
480,
446,
13,
225,
288,
565,
309,
261,
2211,
18,
5414,
5190,
480,
446,
13,
1377,
333,
18,
5414,
5190,
18,
4479,
9168,
5621,
1377,
309,
261,
5414,
5190,
480,
446,
13,
1377,
3824,
5190,
18,
1289,
9168,
5621,
565,
11587,
2471,
261,
1769,
565,
14015,
3219,
6813,
13,
4261,
2934,
542,
4599,
5190,
12,
5414,
5190,
1769,
225,
289,
565,
3824,
5190,
18,
3789,
273,
333,
31,
225,
333,
18,
5414,
5190,
273,
3824,
5190,
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
] |
|
return (getRecentCompetenceCourseInformation() != null) ? getRecentCompetenceCourseInformation() .getAcronym() : null; | return (getRecentCompetenceCourseInformation() != null) ? getRecentCompetenceCourseInformation() .getAcronym() : null; | public String getAcronym() { return (getRecentCompetenceCourseInformation() != null) ? getRecentCompetenceCourseInformation() .getAcronym() : null; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/a985ac1a24c8a3130973c5a5174de51d9b8412aa/CompetenceCourse.java/clean/src/net/sourceforge/fenixedu/domain/CompetenceCourse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
4506,
18041,
2942,
1435,
288,
3639,
327,
261,
588,
17076,
2945,
278,
802,
39,
3117,
5369,
1435,
480,
446,
13,
692,
5561,
2998,
2945,
278,
802,
39,
3117,
5369,
1435,
7734,
263,
588,
9988,
31230,
1435,
294,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
514,
4506,
18041,
2942,
1435,
288,
3639,
327,
261,
588,
17076,
2945,
278,
802,
39,
3117,
5369,
1435,
480,
446,
13,
692,
5561,
2998,
2945,
278,
802,
39,
3117,
5369,
1435,
7734,
263,
588,
9988,
31230,
1435,
294,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
} } | attDefIndex = fSchemaGrammar.getNextAttributeDeclIndex(attDefIndex); } } typeInfo.attlistHead = fSchemaGrammar.getFirstAttributeDeclIndex(typeInfo.templateElementIndex); | private int traverseComplexTypeDecl( Element complexTypeDecl ) throws Exception{ int complexTypeAbstract = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT )); String isAbstract = complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT ); int complexTypeBase = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_BASE )); String base = complexTypeDecl.getAttribute(SchemaSymbols.ATT_BASE); int complexTypeBlock = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_BLOCK )); String blockSet = complexTypeDecl.getAttribute( SchemaSymbols.ATT_BLOCK ); int complexTypeContent = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_CONTENT )); String content = complexTypeDecl.getAttribute(SchemaSymbols.ATT_CONTENT); int complexTypeDerivedBy = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_DERIVEDBY )); String derivedBy = complexTypeDecl.getAttribute( SchemaSymbols.ATT_DERIVEDBY ); int complexTypeFinal = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_FINAL )); String finalSet = complexTypeDecl.getAttribute( SchemaSymbols.ATT_FINAL ); int complexTypeID = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATTVAL_ID )); String typeId = complexTypeDecl.getAttribute( SchemaSymbols.ATTVAL_ID ); int complexTypeName = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )); String typeName = complexTypeDecl.getAttribute(SchemaSymbols.ATT_NAME); boolean isNamedType = false; if ( DEBUGGING ) System.out.println("traversing complex Type : " + typeName +","+base+","+content+"."); if (typeName.equals("")) { // gensym a unique name //typeName = "http://www.apache.org/xml/xerces/internalType"+fTypeCount++; typeName = "#"+fAnonTypeCount++; } else { fCurrentTypeNameStack.push(typeName); isNamedType = true; } int scopeDefined = fScopeCount++; int previousScope = fCurrentScope; fCurrentScope = scopeDefined; Element child = null; int contentSpecType = -1; int csnType = 0; int left = -2; int right = -2; ComplexTypeInfo baseTypeInfo = null; //if base is a complexType; DatatypeValidator baseTypeValidator = null; //if base is a simple type or a complex type derived from a simpleType DatatypeValidator simpleTypeValidator = null; int baseTypeSymbol = -1; String fullBaseName = ""; boolean baseIsSimpleSimple = false; boolean baseIsComplexSimple = false; boolean derivedByRestriction = true; boolean derivedByExtension = false; int baseContentSpecHandle = -1; Element baseTypeNode = null; //int parsedderivedBy = parseComplexDerivedBy(derivedBy); //handle the inhreitance here. if (base.length()>0) { //first check if derivedBy is present if (derivedBy.length() == 0) { reportGenericSchemaError("derivedBy must be present when base is present in " +SchemaSymbols.ELT_COMPLEXTYPE +" "+ typeName); } else { if (derivedBy.equals(SchemaSymbols.ATTVAL_EXTENSION)) { derivedByRestriction = false; } String prefix = ""; String localpart = base; int colonptr = base.indexOf(":"); if ( colonptr > 0) { prefix = base.substring(0,colonptr); localpart = base.substring(colonptr+1); } int localpartIndex = fStringPool.addSymbol(localpart); String typeURI = resolvePrefixToURI(prefix); // check if the base type is from the same Schema; if (!typeURI.equals(fTargetNSURIString) && !typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) ) { baseTypeInfo = getTypeInfoFromNS(typeURI, localpart); if (baseTypeInfo == null) { baseTypeValidator = getTypeValidatorFromNS(typeURI, localpart); if (baseTypeValidator == null) { //TO DO: report error here; System.out.println("Counld not find base type " +localpart + " in schema " + typeURI); } else{ baseIsSimpleSimple = true; } } } else { fullBaseName = typeURI+","+localpart; // assume the base is a complexType and try to locate the base type first baseTypeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fullBaseName); // if not found, 2 possibilities: 1: ComplexType in question has not been compiled yet; // 2: base is SimpleTYpe; if (baseTypeInfo == null) { baseTypeValidator = fDatatypeRegistry.getDatatypeValidator(localpart); if (baseTypeValidator == null) { baseTypeNode = getTopLevelComponentByName(SchemaSymbols.ELT_COMPLEXTYPE,localpart); if (baseTypeNode != null) { baseTypeSymbol = traverseComplexTypeDecl( baseTypeNode ); baseTypeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fStringPool.toString(baseTypeSymbol)); //REVISIT: should it be fullBaseName; } else { baseTypeNode = getTopLevelComponentByName(SchemaSymbols.ELT_SIMPLETYPE, localpart); if (baseTypeNode != null) { baseTypeSymbol = traverseSimpleTypeDecl( baseTypeNode ); simpleTypeValidator = baseTypeValidator = fDatatypeRegistry.getDatatypeValidator(localpart); if (simpleTypeValidator == null) { //TO DO: signal error here. } baseIsSimpleSimple = true; } else { reportGenericSchemaError("Base type could not be found : " + base); } } } else { simpleTypeValidator = baseTypeValidator; baseIsSimpleSimple = true; } } } //Schema Spec : 5.11: Complex Type Definition Properties Correct : 2 if (baseIsSimpleSimple && derivedByRestriction) { reportGenericSchemaError("base is a simpledType, can't derive by restriction in " + typeName); } //if the base is a complexType if (baseTypeInfo != null ) { //Schema Spec : 5.11: Derivation Valid ( Extension ) 1.1.1 // 5.11: Derivation Valid ( Restriction, Complex ) 1.2.1 if (derivedByRestriction) { //REVISIT: check base Type's finalset does not include "restriction" } else { //REVISIT: check base Type's finalset doest not include "extension" } if ( baseTypeInfo.contentSpecHandle > -1) { if (derivedByRestriction) { //REVISIT: !!! really hairy staff to check the particle derivation OK in 5.10 checkParticleDerivationOK(complexTypeDecl, baseTypeNode); } baseContentSpecHandle = baseTypeInfo.contentSpecHandle; } else if ( baseTypeInfo.datatypeValidator != null ) { baseTypeValidator = baseTypeInfo.datatypeValidator; baseIsComplexSimple = true; } } //Schema Spec : 5.11: Derivation Valid ( Extension ) 1.1.1 if (baseIsComplexSimple && !derivedByRestriction ) { reportGenericSchemaError("base is ComplexSimple, can't derive by extension in " + typeName); } } // END of if (derivedBy.length() == 0) {} else {} } // END of if (base.length() > 0) {} // skip refinement and annotations child = null; if (baseIsComplexSimple) { contentSpecType = XMLElementDecl.TYPE_SIMPLE; int numEnumerationLiterals = 0; int numFacets = 0; Hashtable facetData = new Hashtable(); Vector enumData = new Vector(); for (child = XUtil.getFirstChildElement(complexTypeDecl); child != null && (child.getNodeName().equals(SchemaSymbols.ELT_MINEXCLUSIVE) || child.getNodeName().equals(SchemaSymbols.ELT_MININCLUSIVE) || child.getNodeName().equals(SchemaSymbols.ELT_MAXEXCLUSIVE) || child.getNodeName().equals(SchemaSymbols.ELT_MAXINCLUSIVE) || child.getNodeName().equals(SchemaSymbols.ELT_PRECISION) || child.getNodeName().equals(SchemaSymbols.ELT_SCALE) || child.getNodeName().equals(SchemaSymbols.ELT_LENGTH) || child.getNodeName().equals(SchemaSymbols.ELT_MINLENGTH) || child.getNodeName().equals(SchemaSymbols.ELT_MAXLENGTH) || child.getNodeName().equals(SchemaSymbols.ELT_ENCODING) || child.getNodeName().equals(SchemaSymbols.ELT_PERIOD) || child.getNodeName().equals(SchemaSymbols.ELT_DURATION) || child.getNodeName().equals(SchemaSymbols.ELT_ENUMERATION) || child.getNodeName().equals(SchemaSymbols.ELT_PATTERN) || child.getNodeName().equals(SchemaSymbols.ELT_ANNOTATION)); child = XUtil.getNextSiblingElement(child)) { if ( child.getNodeType() == Node.ELEMENT_NODE ) { Element facetElt = (Element) child; numFacets++; if (facetElt.getNodeName().equals(SchemaSymbols.ELT_ENUMERATION)) { numEnumerationLiterals++; enumData.addElement(facetElt.getAttribute(SchemaSymbols.ATT_VALUE)); //Enumerations can have annotations ? ( 0 | 1 ) Element enumContent = XUtil.getFirstChildElement( facetElt ); if( enumContent != null && enumContent.getNodeName().equals( SchemaSymbols.ELT_ANNOTATION ) ){ traverseAnnotationDecl( child ); } // TO DO: if Jeff check in new changes to TraverseSimpleType, copy them over } else { facetData.put(facetElt.getNodeName(),facetElt.getAttribute( SchemaSymbols.ATT_VALUE )); } } } if (numEnumerationLiterals > 0) { facetData.put(SchemaSymbols.ELT_ENUMERATION, enumData); } // overide the facets of the baseTypeValidator // Talk with Eric - This is not allowed in the new Architecture //if (numFacets > 0) // baseTypeValidator.setFacets(facetData, derivedBy ); // now we are ready with our own simpleTypeValidator simpleTypeValidator = baseTypeValidator; if (child != null) { reportGenericSchemaError("Invalid Schema Document"); } } // if content = textonly, base is a datatype if (content.equals(SchemaSymbols.ATTVAL_TEXTONLY)) { //TO DO if (base.length() == 0) { simpleTypeValidator = baseTypeValidator = fDatatypeRegistry.getDatatypeValidator(SchemaSymbols.ATTVAL_STRING); } else if (fDatatypeRegistry.getDatatypeValidator(base) == null) // must be datatype reportSchemaError(SchemaMessageProvider.NotADatatype, new Object [] { base }); //REVISIT check forward refs //handle datatypes contentSpecType = XMLElementDecl.TYPE_SIMPLE; /**** left = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_LEAF, fStringPool.addSymbol(base), -1, false); /****/ } else { if (!baseIsComplexSimple) { contentSpecType = XMLElementDecl.TYPE_CHILDREN; } csnType = XMLContentSpec.CONTENTSPECNODE_SEQ; boolean mixedContent = false; //REVISIT: is the default content " elementOnly" boolean elementContent = true; boolean textContent = false; boolean emptyContent = false; left = -2; right = -2; boolean hadContent = false; if (content.equals(SchemaSymbols.ATTVAL_EMPTY)) { contentSpecType = XMLElementDecl.TYPE_EMPTY; emptyContent = true; elementContent = false; left = -1; // no contentSpecNode needed } else if (content.equals(SchemaSymbols.ATTVAL_MIXED) ) { contentSpecType = XMLElementDecl.TYPE_MIXED; mixedContent = true; elementContent = false; csnType = XMLContentSpec.CONTENTSPECNODE_CHOICE; } else if (content.equals(SchemaSymbols.ATTVAL_ELEMENTONLY) || content.equals("")) { elementContent = true; } else if (content.equals(SchemaSymbols.ATTVAL_TEXTONLY)) { textContent = true; elementContent = false; } if (mixedContent) { // add #PCDATA leaf left = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_LEAF, -1, // -1 means "#PCDATA" is name -1, false); csnType = XMLContentSpec.CONTENTSPECNODE_CHOICE; } boolean seeOtherParticle = false; boolean seeAll = false; for (child = XUtil.getFirstChildElement(complexTypeDecl); child != null; child = XUtil.getNextSiblingElement(child)) { int index = -2; // to save the particle's contentSpec handle hadContent = true; boolean seeParticle = false; String childName = child.getNodeName(); if (childName.equals(SchemaSymbols.ELT_ELEMENT)) { if (mixedContent || elementContent) { if ( DEBUGGING ) System.out.println(" child element name " + child.getAttribute(SchemaSymbols.ATT_NAME)); QName eltQName = traverseElementDecl(child); index = fSchemaGrammar.addContentSpecNode( XMLContentSpec.CONTENTSPECNODE_LEAF, eltQName.localpart, eltQName.uri, false); seeParticle = true; seeOtherParticle = true; } else { reportSchemaError(SchemaMessageProvider.EltRefOnlyInMixedElemOnly, null); } } else if (childName.equals(SchemaSymbols.ELT_GROUP)) { index = traverseGroupDecl(child); seeParticle = true; seeOtherParticle = true; } else if (childName.equals(SchemaSymbols.ELT_ALL)) { index = traverseAll(child); seeParticle = true; seeAll = true; } else if (childName.equals(SchemaSymbols.ELT_CHOICE)) { index = traverseChoice(child); seeParticle = true; seeOtherParticle = true; } else if (childName.equals(SchemaSymbols.ELT_SEQUENCE)) { index = traverseSequence(child); seeParticle = true; seeOtherParticle = true; } else if (childName.equals(SchemaSymbols.ELT_ATTRIBUTE) || childName.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { break; // attr processing is done later on in this method } else if (childName.equals(SchemaSymbols.ELT_ANY)) { contentSpecType = fStringPool.addSymbol("ANY"); left = -1; } else { // datatype qual if (base.equals("")) reportSchemaError(SchemaMessageProvider.DatatypeWithType, null); else reportSchemaError(SchemaMessageProvider.DatatypeQualUnsupported, new Object [] { childName }); } // if base is complextype with simpleType content, can't have any particle children at all. if (baseIsComplexSimple && seeParticle) { reportGenericSchemaError("In complexType "+typeName+", base type is complextype with simpleType content, can't have any particle children at all"); hadContent = false; left = index = -2; contentSpecType = XMLElementDecl.TYPE_SIMPLE; break; } // check the minOccurs and maxOccurs of the particle, and fix the // contentspec accordingly if (seeParticle) { index = expandContentModel(index, child); } //end of if (seeParticle) if (seeAll && seeOtherParticle) { reportGenericSchemaError ( " 'All' group needs to be the only child in Complextype : " + typeName); } if (seeAll) { //TO DO: //check the minOccurs = 1 and maxOccurs = 1 } if (left == -2) { left = index; } else if (right == -2) { right = index; } else { left = fSchemaGrammar.addContentSpecNode(csnType, left, right, false); right = index; } } //end looping through the children if (hadContent && right != -2) left = fSchemaGrammar.addContentSpecNode(csnType, left, right, false); if (mixedContent && hadContent) { // set occurrence count left = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_ZERO_OR_MORE, left, -1, false); } } // if derived by extension and base complextype has a content model, // compose the final content model by concatenating the base and the // current in sequence. if (!derivedByRestriction && baseContentSpecHandle > -1 ) { left = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_SEQ, baseContentSpecHandle, left, false); } // REVISIT: this is when sees a topelevel <complexType name="abc">attrs*</complexType> if (content.length() == 0 && base.length() == 0 && left == -2) { contentSpecType = XMLElementDecl.TYPE_ANY; } if ( DEBUGGING ) System.out.println("!!!!!>>>>>" + typeName+", "+ baseTypeInfo + ", " + baseContentSpecHandle +", " + left +", "+scopeDefined); ComplexTypeInfo typeInfo = new ComplexTypeInfo(); typeInfo.baseComplexTypeInfo = baseTypeInfo; typeInfo.baseDataTypeValidator = baseTypeValidator; int derivedByInt = -1; if (derivedBy.length() > 0) { derivedByInt = parseComplexDerivedBy(derivedBy); } typeInfo.derivedBy = derivedByInt; typeInfo.scopeDefined = scopeDefined; typeInfo.contentSpecHandle = left; typeInfo.contentType = contentSpecType; typeInfo.datatypeValidator = simpleTypeValidator; typeInfo.blockSet = parseBlockSet(complexTypeDecl.getAttribute(SchemaSymbols.ATT_BLOCK)); typeInfo.finalSet = parseFinalSet(complexTypeDecl.getAttribute(SchemaSymbols.ATT_FINAL)); //add a template element to the grammar element decl pool. int typeNameIndex = fStringPool.addSymbol(typeName); int templateElementNameIndex = fStringPool.addSymbol("$"+typeName); typeInfo.templateElementIndex = fSchemaGrammar.addElementDecl(new QName(-1, templateElementNameIndex,typeNameIndex,fTargetNSURI), (fTargetNSURI==-1) ? -1 : fCurrentScope, scopeDefined, contentSpecType, left, -1, simpleTypeValidator); typeInfo.attlistHead = fSchemaGrammar.getFirstAttributeDeclIndex(typeInfo.templateElementIndex); // (attribute | attrGroupRef)* for (child = XUtil.getFirstChildElement(complexTypeDecl); child != null; child = XUtil.getNextSiblingElement(child)) { String childName = child.getNodeName(); if (childName.equals(SchemaSymbols.ELT_ATTRIBUTE)) { if ((baseIsComplexSimple||baseIsSimpleSimple) && derivedByRestriction) { reportGenericSchemaError("In complexType "+typeName+", base type has simpleType content and derivation method is 'restriction', can't have any attribute children at all"); break; } traverseAttributeDecl(child, typeInfo); } else if ( childName.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP) ) { if ((baseIsComplexSimple||baseIsSimpleSimple) && derivedByRestriction) { reportGenericSchemaError("In complexType "+typeName+", base type has simpleType content and derivation method is 'restriction', can't have any attribute children at all"); break; } traverseAttributeGroupDecl(child,typeInfo); } } typeInfo.attlistHead = fSchemaGrammar.getFirstAttributeDeclIndex(typeInfo.templateElementIndex); // merge in base type's attribute decls if (baseTypeInfo != null && baseTypeInfo.attlistHead > -1 ) { int attDefIndex = baseTypeInfo.attlistHead; while ( attDefIndex > -1 ) { fSchemaGrammar.getAttributeDecl(attDefIndex, fTempAttributeDecl); attDefIndex = fSchemaGrammar.getNextAttributeDeclIndex(attDefIndex); // if found a duplicate, if it is derived by restriction. then skip the one from the base type if (fSchemaGrammar.getAttributeDeclIndex(typeInfo.templateElementIndex, fTempAttributeDecl.name) > -1) { if (derivedByRestriction) { continue; } } //REVISIT: // int enumeration = ???? fSchemaGrammar.addAttDef( typeInfo.templateElementIndex, fTempAttributeDecl.name, fTempAttributeDecl.type, -1, fTempAttributeDecl.defaultType, fTempAttributeDecl.defaultValue, fTempAttributeDecl.datatypeValidator); } } if (!typeName.startsWith("#")) { typeName = fTargetNSURIString + "," + typeName; } fComplexTypeRegistry.put(typeName,typeInfo); // before exit the complex type definition, restore the scope, mainly for nested Anonymous Types fCurrentScope = previousScope; if (isNamedType) { fCurrentTypeNameStack.pop(); checkRecursingComplexType(); } typeNameIndex = fStringPool.addSymbol(typeName); return typeNameIndex; } // end of method: traverseComplexTypeDecl | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/ff1645292b3c3abd184d78545aa9f14f66839381/TraverseSchema.java/clean/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
10080,
12795,
559,
3456,
12,
3010,
7233,
559,
3456,
262,
1216,
1185,
95,
540,
509,
7233,
559,
7469,
225,
273,
284,
780,
2864,
18,
1289,
5335,
12,
4766,
13491,
7233,
559,
3456,
18,
588,
1499,
12,
4611,
14821,
18,
789,
56,
67,
26756,
262,
1769,
3639,
514,
24996,
273,
7233,
559,
3456,
18,
588,
1499,
12,
4611,
14821,
18,
789,
56,
67,
26756,
11272,
3639,
509,
7233,
559,
2171,
1377,
273,
284,
780,
2864,
18,
1289,
5335,
12,
4766,
13491,
7233,
559,
3456,
18,
588,
1499,
12,
4611,
14821,
18,
789,
56,
67,
8369,
262,
1769,
3639,
514,
1026,
273,
7233,
559,
3456,
18,
588,
1499,
12,
3078,
14821,
18,
789,
56,
67,
8369,
1769,
3639,
509,
7233,
559,
1768,
377,
273,
284,
780,
2864,
18,
1289,
5335,
12,
4766,
13491,
7233,
559,
3456,
18,
588,
1499,
12,
4611,
14821,
18,
789,
56,
67,
11403,
262,
1769,
3639,
514,
1203,
694,
273,
7233,
559,
3456,
18,
588,
1499,
12,
4611,
14821,
18,
789,
56,
67,
11403,
11272,
3639,
509,
7233,
559,
1350,
282,
273,
284,
780,
2864,
18,
1289,
5335,
12,
4766,
13491,
7233,
559,
3456,
18,
588,
1499,
12,
4611,
14821,
18,
789,
56,
67,
9689,
262,
1769,
3639,
514,
913,
273,
7233,
559,
3456,
18,
588,
1499,
12,
3078,
14821,
18,
789,
56,
67,
9689,
1769,
3639,
509,
7233,
559,
21007,
858,
273,
225,
284,
780,
2864,
18,
1289,
5335,
12,
4766,
7682,
7233,
559,
3456,
18,
588,
1499,
12,
4611,
14821,
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,
10080,
12795,
559,
3456,
12,
3010,
7233,
559,
3456,
262,
1216,
1185,
95,
540,
509,
7233,
559,
7469,
225,
273,
284,
780,
2864,
18,
1289,
5335,
12,
4766,
13491,
7233,
559,
3456,
18,
588,
1499,
12,
4611,
14821,
18,
789,
56,
67,
26756,
262,
1769,
3639,
514,
24996,
273,
7233,
559,
3456,
18,
588,
1499,
12,
4611,
14821,
18,
789,
56,
67,
26756,
11272,
3639,
509,
7233,
559,
2171,
1377,
273,
284,
780,
2864,
18,
1289,
5335,
12,
4766,
13491,
7233,
559,
3456,
18,
588,
1499,
12,
4611,
14821,
18,
789,
56,
67,
8369,
262,
1769,
3639,
514,
1026,
273,
7233,
559,
3456,
18,
588,
1499,
12,
3078,
14821,
18,
789,
56,
67,
8369,
1769,
3639,
2
] |
outer: while (friendlyLegions.size() > 1 && game.countConventionalMoves(legion) > 0) | outer: while (friendlyLegions.size() > 1 && game.countConventionalMoves(legion) > 0) | private static void handleForcedSplitMoves(Game game, Player player, HashMap moveMap) { List legions = player.getLegions(); Iterator it = legions.iterator(); while (it.hasNext()) { Legion legion = (Legion)it.next(); String hexLabel = legion.getCurrentHexLabel(); List friendlyLegions = game.getFriendlyLegions(hexLabel, player); outer: while (friendlyLegions.size() > 1 && game.countConventionalMoves(legion) > 0) { // Pick the legion in this hex whose best move has the // least difference with its sitStillValue, scaled by // the point value of the legion, and force it to move. Log.debug("Ack! forced to move a split group"); // first, concatenate all the moves for all the // legions that are here, and sort them by their // difference from sitting still multiplied by // the value of the legion. ArrayList allmoves = new ArrayList(); Iterator friendlyLegionIt = friendlyLegions.iterator(); while (friendlyLegionIt.hasNext()) { Legion friendlyLegion = (Legion)friendlyLegionIt.next(); ArrayList moves = (ArrayList)moveMap.get(friendlyLegion); allmoves.addAll(moves); } Collections.sort(allmoves, new Comparator() { public int compare(Object o1, Object o2) { MoveInfo m1 = (MoveInfo)o1; MoveInfo m2 = (MoveInfo)o2; return m2.difference * m2.legion.getPointValue() - m1.difference * m1.legion.getPointValue(); } }); // now, one at a time, try applying moves until we // have handled our split problem. Iterator moveIt = allmoves.iterator(); while (moveIt.hasNext()) { MoveInfo move = (MoveInfo)moveIt.next(); if (move.hex == null) { continue; // skip the sitStill moves } Log.debug("forced to move split legion " + move.legion + " to " + move.hex + " taking penalty " + move.difference + " in order to handle illegal legion " + legion); game.doMove(move.legion.getMarkerId(), move.hex.getLabel()); // check again if this legion is ok; if so, break friendlyLegions = game.getFriendlyLegions(hexLabel, player); if (friendlyLegions.size() > 1 && game.countConventionalMoves(legion) > 0) { continue; } else { break outer; // legion is all set } } } } } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/3902101dfdbe4598f96f090eaac001941684b9db/SimpleAI.java/clean/Colossus/SimpleAI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1640,
1290,
3263,
5521,
19297,
12,
12496,
7920,
16,
19185,
7291,
16,
3639,
4317,
3635,
863,
13,
565,
288,
3639,
987,
4553,
1115,
273,
7291,
18,
588,
8329,
1115,
5621,
3639,
4498,
518,
273,
4553,
1115,
18,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
3639,
288,
5411,
17167,
285,
4553,
285,
273,
261,
8329,
285,
13,
305,
18,
4285,
5621,
5411,
514,
3827,
2224,
273,
4553,
285,
18,
588,
3935,
7037,
2224,
5621,
5411,
987,
13118,
8329,
1115,
273,
7920,
18,
588,
19730,
8329,
1115,
12,
7118,
2224,
16,
7291,
1769,
5411,
6390,
30,
1323,
261,
29111,
8329,
1115,
18,
1467,
1435,
405,
404,
10402,
597,
7920,
18,
1883,
25947,
287,
19297,
12,
1935,
285,
13,
405,
374,
13,
5411,
288,
7734,
368,
23038,
326,
4553,
285,
316,
333,
3827,
8272,
3796,
3635,
711,
326,
7734,
368,
4520,
7114,
598,
2097,
10982,
510,
737,
620,
16,
12304,
635,
7734,
368,
326,
1634,
460,
434,
326,
4553,
285,
16,
471,
2944,
518,
358,
3635,
18,
7734,
1827,
18,
4148,
2932,
11931,
5,
13852,
358,
3635,
279,
1416,
1041,
8863,
7734,
368,
1122,
16,
11361,
777,
326,
13934,
364,
777,
326,
7734,
368,
4553,
1115,
716,
854,
2674,
16,
471,
1524,
2182,
635,
3675,
7734,
368,
7114,
628,
10982,
1787,
4859,
27789,
635,
7734,
368,
326,
460,
434,
326,
4553,
285,
18,
7734,
2407,
777,
81,
10829,
273,
394,
2407,
5621,
7734,
4498,
13118,
8329,
285,
7193,
273,
13118,
8329,
1115,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1640,
1290,
3263,
5521,
19297,
12,
12496,
7920,
16,
19185,
7291,
16,
3639,
4317,
3635,
863,
13,
565,
288,
3639,
987,
4553,
1115,
273,
7291,
18,
588,
8329,
1115,
5621,
3639,
4498,
518,
273,
4553,
1115,
18,
9838,
5621,
3639,
1323,
261,
305,
18,
5332,
2134,
10756,
3639,
288,
5411,
17167,
285,
4553,
285,
273,
261,
8329,
285,
13,
305,
18,
4285,
5621,
5411,
514,
3827,
2224,
273,
4553,
285,
18,
588,
3935,
7037,
2224,
5621,
5411,
987,
13118,
8329,
1115,
273,
7920,
18,
588,
19730,
8329,
1115,
12,
7118,
2224,
16,
7291,
1769,
5411,
6390,
30,
1323,
261,
29111,
8329,
1115,
18,
1467,
1435,
405,
404,
10402,
597,
7920,
18,
1883,
25947,
287,
19297,
2
] |
IWorkbenchAction action = new MaximizePartAction(window); | IWorkbenchAction action = new LockToolBarAction(window); | public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } IWorkbenchAction action = new MaximizePartAction(window); action.setId(getId()); return action; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/dde25e2c5d25803300d3e725ba305dd0140f61ea/ActionFactory.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/actions/ActionFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
467,
2421,
22144,
1803,
752,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
5411,
309,
261,
5668,
422,
446,
13,
288,
7734,
604,
394,
2754,
5621,
5411,
289,
5411,
467,
2421,
22144,
1803,
1301,
273,
394,
3488,
6364,
5190,
1803,
12,
5668,
1769,
5411,
1301,
18,
542,
548,
12,
26321,
10663,
5411,
327,
1301,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
467,
2421,
22144,
1803,
752,
12,
45,
2421,
22144,
3829,
2742,
13,
288,
5411,
309,
261,
5668,
422,
446,
13,
288,
7734,
604,
394,
2754,
5621,
5411,
289,
5411,
467,
2421,
22144,
1803,
1301,
273,
394,
3488,
6364,
5190,
1803,
12,
5668,
1769,
5411,
1301,
18,
542,
548,
12,
26321,
10663,
5411,
327,
1301,
31,
3639,
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
] |
public Scriptable wrapNewObject(Context cx, Scriptable scope, Object obj) { | public Scriptable wrapNewObject(Context cx, Scriptable scope, Object obj) { | public Scriptable wrapNewObject(Context cx, Scriptable scope, Object obj) { if (obj instanceof Scriptable) return (Scriptable)obj; Class cls = obj.getClass(); if (cls.isArray()) return NativeJavaArray.wrap(scope, obj); return new NativeJavaObject(scope, obj, (Class)null); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/1b4064c81d787f60e063ca2df9d85fcf2691196b/WrapFactory.java/buggy/js/rhino/src/org/mozilla/javascript/WrapFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
22780,
2193,
1908,
921,
12,
1042,
9494,
16,
22780,
2146,
16,
1033,
1081,
13,
565,
288,
3639,
309,
261,
2603,
1276,
22780,
13,
5411,
327,
261,
3651,
429,
13,
2603,
31,
3639,
1659,
2028,
273,
1081,
18,
588,
797,
5621,
3639,
309,
261,
6429,
18,
291,
1076,
10756,
5411,
327,
16717,
5852,
1076,
18,
4113,
12,
4887,
16,
1081,
1769,
3639,
327,
394,
16717,
5852,
921,
12,
4887,
16,
1081,
16,
261,
797,
13,
2011,
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,
22780,
2193,
1908,
921,
12,
1042,
9494,
16,
22780,
2146,
16,
1033,
1081,
13,
565,
288,
3639,
309,
261,
2603,
1276,
22780,
13,
5411,
327,
261,
3651,
429,
13,
2603,
31,
3639,
1659,
2028,
273,
1081,
18,
588,
797,
5621,
3639,
309,
261,
6429,
18,
291,
1076,
10756,
5411,
327,
16717,
5852,
1076,
18,
4113,
12,
4887,
16,
1081,
1769,
3639,
327,
394,
16717,
5852,
921,
12,
4887,
16,
1081,
16,
261,
797,
13,
2011,
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 void test438956() throws Exception { // line 3 column 1 - Warning: plain text isn't allowed in <head> elements // line 6 column 1 - Warning: discarding unexpected <body> // Info: Doctype given is "-//W3C//DTD HTML 4.01 Transitional//EN" // Info: Document content looks like HTML 4.01 Transitional // 2 warnings, 0 errors were found! executeTidyTest("438956.html"); // jtidy incorrectly reports only 1 (bad) warning: <body> isn't allowed in <body> elements assertWarnings(2); } | 53077 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53077/3087cdd04d262236c483f8ef22f33543b7c9e274/TidyWarningBugsTest.java/clean/jtidy/src/test/org/w3c/tidy/TidyWarningBugsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
8942,
6675,
4313,
1435,
15069,
503,
95,
759,
1369,
23,
2827,
21,
17,
6210,
30,
412,
10133,
291,
82,
1404,
8151,
267,
32,
1978,
34,
6274,
759,
1369,
26,
2827,
21,
17,
6210,
30,
31992,
310,
21248,
32,
3432,
34,
759,
966,
30,
3244,
12387,
10822,
291,
6,
17,
759,
59,
23,
39,
759,
25728,
4870,
24,
18,
1611,
1429,
6457,
759,
1157,
6,
759,
966,
30,
2519,
1745,
7330,
87,
5625,
4870,
24,
18,
1611,
1429,
6457,
759,
22,
12103,
16,
20,
4324,
91,
822,
7015,
5,
8837,
56,
29609,
4709,
2932,
8942,
6675,
4313,
18,
2620,
8863,
759,
78,
18081,
93,
267,
6746,
715,
6006,
816,
715,
21,
12,
8759,
13,
8551,
22292,
3432,
34,
291,
82,
1404,
8151,
267,
32,
3432,
34,
6274,
11231,
4312,
12,
22,
1769,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
8942,
6675,
4313,
1435,
15069,
503,
95,
759,
1369,
23,
2827,
21,
17,
6210,
30,
412,
10133,
291,
82,
1404,
8151,
267,
32,
1978,
34,
6274,
759,
1369,
26,
2827,
21,
17,
6210,
30,
31992,
310,
21248,
32,
3432,
34,
759,
966,
30,
3244,
12387,
10822,
291,
6,
17,
759,
59,
23,
39,
759,
25728,
4870,
24,
18,
1611,
1429,
6457,
759,
1157,
6,
759,
966,
30,
2519,
1745,
7330,
87,
5625,
4870,
24,
18,
1611,
1429,
6457,
759,
22,
12103,
16,
20,
4324,
91,
822,
7015,
5,
8837,
56,
29609,
4709,
2932,
8942,
6675,
4313,
18,
2620,
8863,
759,
78,
18081,
93,
267,
6746,
715,
6006,
816,
715,
21,
12,
8759,
13,
8551,
22292,
3432,
2
] |
||
} else { | editor.sketchbook.rebuildMenus(); } else { | public void nameCode(String newName) { // make sure the user didn't hide the sketch folder ensureExistence(); // if renaming to the same thing as before, just ignore. // also ignoring case here, because i don't want to write // a bunch of special stuff for each platform // (osx is case insensitive but preserving, windows insensitive, // *nix is sensitive and preserving.. argh) if (renamingCode && newName.equalsIgnoreCase(current.name)) { // exit quietly for the 'rename' case. // if it's a 'new' then an error will occur down below return; } // don't allow blank names if (newName.trim().equals("")) { return; } if (newName.trim().equals(".java") || newName.trim().equals(".pde")) { return; } String newFilename = null; int newFlavor = 0; // separate into newName (no extension) and newFilename (with ext) // add .pde to file if it has no extension if (newName.endsWith(".pde")) { newFilename = newName; newName = newName.substring(0, newName.length() - 4); newFlavor = PDE; } else if (newName.endsWith(".java")) { // don't show this error if creating a new tab if (renamingCode && (code[0] == current)) { Base.showWarning("Problem with rename", "The main .pde file cannot be .java file.\n" + "(It may be time for your to graduate to a\n" + "\"real\" programming environment)", null); return; } newFilename = newName; newName = newName.substring(0, newName.length() - 5); newFlavor = JAVA; } else { newFilename = newName + ".pde"; newFlavor = PDE; } // dots are allowed for the .pde and .java, but not in the name // make sure the user didn't name things poo.time.pde // or something like that (nothing against poo time) if (newName.indexOf('.') != -1) { newName = Sketchbook.sanitizedName(newName); newFilename = newName + ((newFlavor == PDE) ? ".pde" : ".java"); } // create the new file, new SketchCode object and load it File newFile = new File(folder, newFilename); if (newFile.exists()) { // yay! users will try anything Base.showMessage("Nope", "A file named \"" + newFile + "\" already exists\n" + "in \"" + folder.getAbsolutePath() + "\""); return; } File newFileHidden = new File(folder, newFilename + ".x"); if (newFileHidden.exists()) { // don't let them get away with it if they try to create something // with the same name as something hidden Base.showMessage("No Way", "A hidden tab with the same name already exists.\n" + "Use \"Unhide\" to bring it back."); return; } if (renamingCode) { if (current == code[0]) { // get the new folder name/location File newFolder = new File(folder.getParentFile(), newName); if (newFolder.exists()) { Base.showWarning("Cannot Rename", "Sorry, a sketch (or folder) named " + "\"" + newName + "\" already exists.", null); return; } // unfortunately this can't be a "save as" because that // only copies the sketch files and the data folder // however this *will* first save the sketch, then rename // first get the contents of the editor text area if (current.modified) { current.program = editor.getText(); try { // save this new SketchCode current.save(); } catch (Exception e) { Base.showWarning("Error", "Could not rename the sketch. (0)", e); return; } } if (!current.file.renameTo(newFile)) { Base.showWarning("Error", "Could not rename \"" + current.file.getName() + "\" to \"" + newFile.getName() + "\"", null); return; } // save each of the other tabs because this is gonna be re-opened try { for (int i = 1; i < codeCount; i++) { //if (code[i].modified) code[i].save(); code[i].save(); } } catch (Exception e) { Base.showWarning("Error", "Could not rename the sketch. (1)", e); return; } // now rename the sketch folder and re-open boolean success = folder.renameTo(newFolder); if (!success) { Base.showWarning("Error", "Could not rename the sketch. (2)", null); return; } // if successful, set base properties for the sketch File mainFile = new File(newFolder, newName + ".pde"); mainFilename = mainFile.getAbsolutePath(); // having saved everything and renamed the folder and the main .pde, // use the editor to re-open the sketch to re-init state // (unfortunately this will kill positions for carets etc) editor.handleOpenUnchecked(mainFilename); /* // backtrack and don't rename the sketch folder success = newFolder.renameTo(folder); if (!success) { String msg = "Started renaming sketch and then ran into\n" + "nasty trouble. Try to salvage with Copy & Paste\n" + "or attempt a \"Save As\" to see if that works."; Base.showWarning("Serious Error", msg, null); } return; } */ /* // set the sketch name... used by the pde and whatnot. // the name is only set in the sketch constructor, // so it's important here name = newName; code[0].name = newName; code[0].file = mainFile; code[0].program = editor.getText(); code[0].save(); folder = newFolder; // get the changes into the sketchbook menu editor.sketchbook.rebuildMenus(); // reload the sketch load(); */ } else { if (!current.file.renameTo(newFile)) { Base.showWarning("Error", "Could not rename \"" + current.file.getName() + "\" to \"" + newFile.getName() + "\"", null); return; } // just reopen the class itself current.name = newName; current.file = newFile; current.flavor = newFlavor; } } else { // creating a new file try { newFile.createNewFile(); // TODO returns a boolean } catch (IOException e) { Base.showWarning("Error", "Could not create the file \"" + newFile + "\"\n" + "in \"" + folder.getAbsolutePath() + "\"", e); return; } SketchCode newCode = new SketchCode(newName, newFile, newFlavor); insertCode(newCode); } // sort the entries sortCode(); // set the new guy as current setCurrent(newName); // update the tabs //editor.header.repaint(); editor.header.rebuild(); // force the update on the mac? Toolkit.getDefaultToolkit().sync(); //editor.header.getToolkit().sync(); } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/71b1d22a4a7fdc6962f53584de0f1c1f1c25aef2/Sketch.java/clean/app/Sketch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
508,
1085,
12,
780,
13253,
13,
288,
565,
368,
1221,
3071,
326,
729,
10242,
1404,
6853,
326,
18534,
3009,
565,
3387,
4786,
802,
5621,
565,
368,
309,
30883,
358,
326,
1967,
7757,
487,
1865,
16,
2537,
2305,
18,
565,
368,
2546,
14398,
648,
2674,
16,
2724,
277,
2727,
1404,
2545,
358,
1045,
565,
368,
279,
25606,
434,
4582,
10769,
364,
1517,
4072,
565,
368,
261,
538,
92,
353,
648,
17904,
1496,
27995,
16,
9965,
17904,
16,
565,
368,
380,
82,
697,
353,
16692,
471,
27995,
838,
1501,
76,
13,
565,
309,
261,
1187,
7772,
1085,
597,
13253,
18,
14963,
5556,
12,
2972,
18,
529,
3719,
288,
1377,
368,
2427,
10902,
715,
364,
326,
296,
18539,
11,
648,
18,
1377,
368,
309,
518,
1807,
279,
296,
2704,
11,
1508,
392,
555,
903,
3334,
2588,
5712,
1377,
327,
31,
565,
289,
565,
368,
2727,
1404,
1699,
7052,
1257,
565,
309,
261,
2704,
461,
18,
5290,
7675,
14963,
2932,
6,
3719,
288,
1377,
327,
31,
565,
289,
565,
309,
261,
2704,
461,
18,
5290,
7675,
14963,
2932,
18,
6290,
7923,
747,
3639,
13253,
18,
5290,
7675,
14963,
2932,
18,
84,
323,
6,
3719,
288,
1377,
327,
31,
565,
289,
565,
514,
394,
5359,
273,
446,
31,
565,
509,
394,
2340,
9444,
273,
374,
31,
565,
368,
9004,
1368,
13253,
261,
2135,
2710,
13,
471,
394,
5359,
261,
1918,
1110,
13,
565,
368,
527,
263,
84,
323,
358,
585,
309,
518,
711,
1158,
2710,
565,
309,
261,
2704,
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,
508,
1085,
12,
780,
13253,
13,
288,
565,
368,
1221,
3071,
326,
729,
10242,
1404,
6853,
326,
18534,
3009,
565,
3387,
4786,
802,
5621,
565,
368,
309,
30883,
358,
326,
1967,
7757,
487,
1865,
16,
2537,
2305,
18,
565,
368,
2546,
14398,
648,
2674,
16,
2724,
277,
2727,
1404,
2545,
358,
1045,
565,
368,
279,
25606,
434,
4582,
10769,
364,
1517,
4072,
565,
368,
261,
538,
92,
353,
648,
17904,
1496,
27995,
16,
9965,
17904,
16,
565,
368,
380,
82,
697,
353,
16692,
471,
27995,
838,
1501,
76,
13,
565,
309,
261,
1187,
7772,
1085,
597,
13253,
18,
14963,
5556,
12,
2972,
18,
529,
3719,
288,
1377,
368,
2427,
10902,
715,
364,
326,
296,
18539,
11,
2
] |
private void processWSAAction(Options messageContextOptions, SOAPEnvelope envelope) { | private void processWSAAction(Options messageContextOptions, SOAPEnvelope envelope, MessageContext msgCtxt, OMNamespace addressingNamespaceObject) { | private void processWSAAction(Options messageContextOptions, SOAPEnvelope envelope) { if (msgCtxt.isProcessingFault()) { processStringInfo(Final.WSA_FAULT_ACTION, WSA_ACTION, envelope); } String action = messageContextOptions.getAction(); if (action != null && !isAddressingHeaderAlreadyAvailable(WSA_ACTION, envelope, addressingNamespaceObject)) { processStringInfo(action, WSA_ACTION, envelope); } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/8152050a1373c0eb3f1fe4410be8ce9e6a7dc526/AddressingOutHandler.java/buggy/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingOutHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
2651,
37,
1803,
12,
1320,
883,
1042,
1320,
16,
16434,
10862,
9045,
16,
2350,
1042,
1234,
28866,
16,
28839,
3402,
1758,
310,
3402,
921,
13,
288,
3639,
309,
261,
3576,
28866,
18,
291,
7798,
7083,
10756,
288,
5411,
1207,
780,
966,
12,
7951,
18,
2651,
37,
67,
2636,
67,
12249,
16,
678,
5233,
67,
12249,
16,
9045,
1769,
3639,
289,
3639,
514,
1301,
273,
883,
1042,
1320,
18,
588,
1803,
5621,
3639,
309,
261,
1128,
480,
446,
597,
401,
291,
1887,
310,
1864,
9430,
5268,
12,
2651,
37,
67,
12249,
16,
9045,
16,
7734,
1758,
310,
3402,
921,
3719,
288,
5411,
1207,
780,
966,
12,
1128,
16,
678,
5233,
67,
12249,
16,
9045,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
2651,
37,
1803,
12,
1320,
883,
1042,
1320,
16,
16434,
10862,
9045,
16,
2350,
1042,
1234,
28866,
16,
28839,
3402,
1758,
310,
3402,
921,
13,
288,
3639,
309,
261,
3576,
28866,
18,
291,
7798,
7083,
10756,
288,
5411,
1207,
780,
966,
12,
7951,
18,
2651,
37,
67,
2636,
67,
12249,
16,
678,
5233,
67,
12249,
16,
9045,
1769,
3639,
289,
3639,
514,
1301,
273,
883,
1042,
1320,
18,
588,
1803,
5621,
3639,
309,
261,
1128,
480,
446,
597,
401,
291,
1887,
310,
1864,
9430,
5268,
12,
2651,
37,
67,
12249,
16,
9045,
16,
7734,
1758,
310,
3402,
921,
3719,
288,
5411,
1207,
780,
966,
12,
1128,
16,
678,
5233,
67,
12249,
16,
9045,
1769,
3639,
2
] |
log.error(e); | System.err.println(e); | public static void main(String[] args) { int c; MessageDispatcherTestAsync test=null; boolean debug=false, cummulative=false; for(int i=0; i < args.length; i++) { if("-help".equals(args[i])) { help(); return; } if("-debug".equals(args[i])) { debug=true; continue; } if("-cummulative".equals(args[i])) { cummulative=true; continue; } } try { test=new MessageDispatcherTestAsync(debug, cummulative); test.start(); while(true) { System.out.println("[m=mcast " + NUM + " msgs x=exit]"); c=System.in.read(); switch(c) { case 'x': test.disconnect(); System.exit(0); return; case 'm': test.mcast(NUM); break; case 'd': test.done(); break; default: break; } } } catch(Exception e) { log.error(e); } } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/5ad015d9a78e1da3350d9b398b46b2f5d4508564/MessageDispatcherTestAsync.java/buggy/tests/other/org/jgroups/tests/MessageDispatcherTestAsync.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
509,
276,
31,
3639,
2350,
6681,
4709,
2771,
1842,
33,
2011,
31,
3639,
1250,
1198,
33,
5743,
16,
14471,
16411,
1535,
33,
5743,
31,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
309,
2932,
17,
5201,
9654,
14963,
12,
1968,
63,
77,
22643,
288,
7734,
2809,
5621,
7734,
327,
31,
5411,
289,
5411,
309,
2932,
17,
4148,
9654,
14963,
12,
1968,
63,
77,
22643,
288,
7734,
1198,
33,
3767,
31,
7734,
1324,
31,
5411,
289,
5411,
309,
2932,
17,
28538,
16411,
1535,
9654,
14963,
12,
1968,
63,
77,
22643,
288,
7734,
14471,
16411,
1535,
33,
3767,
31,
7734,
1324,
31,
5411,
289,
3639,
289,
3639,
775,
288,
5411,
1842,
33,
2704,
2350,
6681,
4709,
2771,
12,
4148,
16,
14471,
16411,
1535,
1769,
5411,
1842,
18,
1937,
5621,
5411,
1323,
12,
3767,
13,
288,
7734,
2332,
18,
659,
18,
8222,
2932,
63,
81,
33,
81,
4155,
315,
397,
9443,
397,
315,
8733,
619,
33,
8593,
4279,
1769,
7734,
276,
33,
3163,
18,
267,
18,
896,
5621,
7734,
1620,
12,
71,
13,
288,
10792,
648,
296,
92,
4278,
13491,
1842,
18,
20177,
5621,
13491,
2332,
18,
8593,
12,
20,
1769,
13491,
327,
31,
10792,
648,
296,
81,
4278,
13491,
1842,
18,
81,
4155,
12,
6069,
1769,
13491,
898,
31,
10792,
648,
296,
72,
4278,
13491,
1842,
18,
8734,
5621,
13491,
898,
31,
10792,
805,
30,
13491,
898,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
509,
276,
31,
3639,
2350,
6681,
4709,
2771,
1842,
33,
2011,
31,
3639,
1250,
1198,
33,
5743,
16,
14471,
16411,
1535,
33,
5743,
31,
3639,
364,
12,
474,
277,
33,
20,
31,
277,
411,
833,
18,
2469,
31,
277,
27245,
288,
5411,
309,
2932,
17,
5201,
9654,
14963,
12,
1968,
63,
77,
22643,
288,
7734,
2809,
5621,
7734,
327,
31,
5411,
289,
5411,
309,
2932,
17,
4148,
9654,
14963,
12,
1968,
63,
77,
22643,
288,
7734,
1198,
33,
3767,
31,
7734,
1324,
31,
5411,
289,
5411,
309,
2932,
17,
28538,
16411,
1535,
9654,
14963,
12,
1968,
63,
77,
22643,
288,
7734,
14471,
16411,
1535,
33,
3767,
31,
2
] |
MethodGen methodGen = new MethodGen(method, jclass.getClassName(), cpg); CFGBuilder cfgBuilder = CFGBuilderFactory.create(methodGen); cfgBuilder.build(); CFG cfg = cfgBuilder.getCFG(); cfg.assignEdgeIds(0); | MethodGen methodGen = classContext.getMethodGen(method); CFG cfg = classContext.getCFG(method); | public void execute(String classFile, String methodName, int offset) throws IOException, CFGBuilderException, DataflowAnalysisException { final RepositoryLookupFailureCallback lookupFailureCallback = new RepositoryLookupFailureCallback() { public void reportMissingClass(ClassNotFoundException ex) { ex.printStackTrace(); System.exit(1); } }; JavaClass jclass = new ClassParser(classFile).parse(); ClassGen classGen = new ClassGen(jclass); ConstantPoolGen cpg = classGen.getConstantPool(); Method[] methodList = jclass.getMethods(); for (int i = 0; i < methodList.length; ++i) { Method method = methodList[i]; if (!method.getName().equals(methodName)) continue; MethodGen methodGen = new MethodGen(method, jclass.getClassName(), cpg); CFGBuilder cfgBuilder = CFGBuilderFactory.create(methodGen); cfgBuilder.build(); CFG cfg = cfgBuilder.getCFG(); cfg.assignEdgeIds(0); BasicBlock creationBlock = null; InstructionHandle creationInstruction = null; blockLoop: for (Iterator<BasicBlock> ii = cfg.blockIterator(); ii.hasNext(); ) { BasicBlock basicBlock = ii.next(); for (Iterator<InstructionHandle> j = basicBlock.instructionIterator(); j.hasNext(); ) { InstructionHandle handle = j.next(); if (handle.getPosition() == offset) { creationBlock = basicBlock; creationInstruction = handle; break blockLoop; } } } if (creationInstruction == null) throw new IllegalArgumentException("No bytecode with offset " + offset); final ResourceTracker<Resource> resourceTracker = createResourceTracker(lookupFailureCallback, methodGen, cfg); final Resource resource = resourceTracker.isResourceCreation(creationBlock, creationInstruction, cpg); if (resource == null) throw new IllegalArgumentException("offset " + offset + " is not a resource creation"); DataflowTestDriver<ResourceValueFrame, ResourceValueAnalysis<Resource>> driver = new DataflowTestDriver<ResourceValueFrame, ResourceValueAnalysis<Resource>>() { public ResourceValueAnalysis<Resource> createAnalysis(MethodGen methodGen, CFG cfg) throws DataflowAnalysisException { DepthFirstSearch dfs = new DepthFirstSearch(cfg).search(); return new ResourceValueAnalysis<Resource>(methodGen, cfg, dfs, resourceTracker, resource, lookupFailureCallback); } }; driver.execute(methodGen, cfg); break; } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/9eb3ff18786e72e1b1f5c1d0e824b08bc11baa91/ResourceValueAnalysisTestDriver.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/ResourceValueAnalysisTestDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
780,
29728,
16,
514,
4918,
16,
509,
1384,
13,
202,
202,
15069,
1860,
16,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
202,
202,
6385,
6281,
6609,
5247,
2428,
3689,
5247,
2428,
273,
394,
6281,
6609,
5247,
2428,
1435,
288,
1082,
202,
482,
918,
2605,
4841,
797,
12,
797,
3990,
431,
13,
288,
9506,
202,
338,
18,
1188,
6332,
5621,
9506,
202,
3163,
18,
8593,
12,
21,
1769,
1082,
202,
97,
202,
202,
20451,
202,
202,
5852,
797,
525,
1106,
273,
394,
1659,
2678,
12,
1106,
812,
2934,
2670,
5621,
202,
202,
797,
7642,
667,
7642,
273,
394,
1659,
7642,
12,
78,
1106,
1769,
202,
202,
6902,
2864,
7642,
3283,
75,
273,
667,
7642,
18,
588,
6902,
2864,
5621,
202,
202,
1305,
8526,
707,
682,
273,
525,
1106,
18,
588,
4712,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
707,
682,
18,
2469,
31,
965,
77,
13,
288,
1082,
202,
1305,
707,
273,
707,
682,
63,
77,
15533,
1082,
202,
430,
16051,
2039,
18,
17994,
7675,
14963,
12,
2039,
461,
3719,
9506,
202,
17143,
31,
1082,
202,
1305,
7642,
707,
7642,
273,
394,
2985,
7642,
12,
2039,
16,
525,
1106,
18,
588,
3834,
9334,
3283,
75,
1769,
1082,
202,
19727,
1263,
2776,
1263,
273,
7577,
20692,
18,
2640,
12,
2039,
7642,
1769,
1082,
202,
7066,
1263,
18,
3510,
5621,
1082,
202,
19727,
2776,
273,
2776,
1263,
18,
588,
19727,
5621,
1082,
202,
7066,
18,
6145,
6098,
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,
1836,
12,
780,
29728,
16,
514,
4918,
16,
509,
1384,
13,
202,
202,
15069,
1860,
16,
7577,
1263,
503,
16,
1910,
2426,
9418,
503,
288,
202,
202,
6385,
6281,
6609,
5247,
2428,
3689,
5247,
2428,
273,
394,
6281,
6609,
5247,
2428,
1435,
288,
1082,
202,
482,
918,
2605,
4841,
797,
12,
797,
3990,
431,
13,
288,
9506,
202,
338,
18,
1188,
6332,
5621,
9506,
202,
3163,
18,
8593,
12,
21,
1769,
1082,
202,
97,
202,
202,
20451,
202,
202,
5852,
797,
525,
1106,
273,
394,
1659,
2678,
12,
1106,
812,
2934,
2670,
5621,
202,
202,
797,
7642,
667,
7642,
273,
394,
1659,
7642,
12,
78,
1106,
1769,
202,
202,
6902,
2864,
7642,
3283,
75,
273,
2
] |
} | public LineContext markTokens(LineContext prevContext, LineContext _context, Buffer.TokenList tokenList, Segment line) { this.context = _context; //{{{ Set up context if(prevContext == null) { context.parent = null; context.inRule = null; context.rules = getMainRuleSet(); } else { context.parent = prevContext.parent; context.inRule = prevContext.inRule; context.rules = prevContext.rules; } //}}} lastOffset = lastKeyword = line.offset; lineLength = line.count + line.offset; int terminateChar = context.rules.getTerminateChar(); int searchLimit = (terminateChar >= 0 && terminateChar < line.count) ? line.offset + terminateChar : lineLength; escaped = false; boolean b; boolean tempEscaped; Segment tempPattern; ParserRule rule; LineContext tempContext; for(pos = line.offset; pos < searchLimit; pos++) { //{{{ if we are not in the top level context, we are delegated if (context.parent != null) { tempContext = context; context = context.parent; pattern.array = context.inRule.searchChars; pattern.count = context.inRule.sequenceLengths[1]; pattern.offset = context.inRule.sequenceLengths[0]; b = handleRule(tokenList, line, context.inRule); context = tempContext; if (!b) { if (escaped) { escaped = false; } else { if (pos != lastOffset) { if (context.inRule == null) { markKeyword(tokenList,line,lastKeyword,pos); tokenList.addToken(pos - lastOffset, context.rules.getDefault()); } else if ((context.inRule.action & (NO_LINE_BREAK | NO_WORD_BREAK)) == 0) { tokenList.addToken(pos - lastOffset, context.inRule.token); } else { tokenList.addToken(pos - lastOffset, Token.INVALID); } } context = (LineContext)context.parent.clone(); if ((context.inRule.action & EXCLUDE_MATCH) == EXCLUDE_MATCH) { tokenList.addToken(pattern.count, context.rules.getDefault()); } else { tokenList.addToken(pattern.count,context.inRule.token); } context.inRule = null; lastKeyword = lastOffset = pos + pattern.count; } pos += (pattern.count - 1); // move pos to last character of match sequence continue; } } //}}} //{{{ check the escape rule for the current context, if there is one if ((rule = context.rules.getEscapeRule()) != null) { // assign tempPattern to mutable "buffer" pattern tempPattern = pattern; // swap in the escape pattern pattern = context.rules.getEscapePattern(); tempEscaped = escaped; b = handleRule(tokenList, line, rule); // swap back the buffer pattern pattern = tempPattern; if (!b) { if (tempEscaped) escaped = false; continue; } } //}}} //{{{ if we are inside a span, check for its end sequence rule = context.inRule; if(rule != null && (rule.action & SPAN) == SPAN) { pattern.array = rule.searchChars; pattern.count = rule.sequenceLengths[1]; pattern.offset = rule.sequenceLengths[0]; // if we match the end of the span, or if this is a "hard" span, // we continue to the next character; otherwise, we check all // applicable rules below if (!handleRule(tokenList,line,rule) || (rule.action & SOFT_SPAN) == 0) { escaped = false; continue; } } //}}} //{{{ now check every rule rule = context.rules.getRules(line.array[pos]); while(rule != null) { pattern.array = rule.searchChars; if (context.inRule == rule && (rule.action & SPAN) == SPAN) { pattern.count = rule.sequenceLengths[1]; pattern.offset = rule.sequenceLengths[0]; } else { pattern.count = rule.sequenceLengths[0]; pattern.offset = 0; } // stop checking rules if there was a match and go to next pos if (!handleRule(tokenList,line,rule)) break; rule = rule.next; } //}}} escaped = false; } //{{{ check for keywords at the line's end if(context.inRule == null) markKeyword(tokenList, line, lastKeyword, lineLength); //}}} //{{{ mark all remaining characters if(lastOffset != lineLength) { if (context.inRule == null) { tokenList.addToken(lineLength - lastOffset, context.rules.getDefault()); } else if ( (context.inRule.action & SPAN) == SPAN && (context.inRule.action & (NO_LINE_BREAK | NO_WORD_BREAK)) != 0 ) { tokenList.addToken(lineLength - lastOffset,Token.INVALID); context.inRule = null; } else { tokenList.addToken(lineLength - lastOffset,context.inRule.token); if((context.inRule.action & MARK_FOLLOWING) == MARK_FOLLOWING) { context.inRule = null; } } } //}}} return context; } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/fba592c4e72d5a5542029a2c3c814a1651f045ac/TokenMarker.java/buggy/org/gjt/sp/jedit/syntax/TokenMarker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5377,
1042,
2267,
5157,
12,
1670,
1042,
2807,
1042,
16,
202,
202,
1670,
1042,
389,
2472,
16,
3525,
18,
1345,
682,
1147,
682,
16,
202,
202,
4131,
980,
13,
202,
95,
202,
202,
2211,
18,
2472,
273,
389,
2472,
31,
202,
202,
759,
12187,
95,
1000,
731,
819,
202,
202,
430,
12,
10001,
1042,
422,
446,
13,
202,
202,
95,
1082,
202,
2472,
18,
2938,
273,
446,
31,
1082,
202,
2472,
18,
267,
2175,
273,
446,
31,
1082,
202,
2472,
18,
7482,
273,
15011,
21474,
5621,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
2472,
18,
2938,
273,
2807,
1042,
18,
2938,
31,
1082,
202,
2472,
18,
267,
2175,
273,
2807,
1042,
18,
267,
2175,
31,
1082,
202,
2472,
18,
7482,
273,
2807,
1042,
18,
7482,
31,
202,
202,
759,
9090,
97,
202,
202,
2722,
2335,
273,
1142,
8736,
273,
980,
18,
3348,
31,
202,
202,
1369,
1782,
273,
980,
18,
1883,
397,
980,
18,
3348,
31,
202,
202,
474,
10850,
2156,
273,
819,
18,
7482,
18,
588,
26106,
2156,
5621,
202,
202,
474,
1623,
3039,
273,
261,
30017,
2156,
1545,
374,
597,
10850,
2156,
411,
980,
18,
1883,
13,
1082,
202,
35,
980,
18,
3348,
397,
10850,
2156,
294,
980,
1782,
31,
202,
202,
16502,
273,
629,
31,
202,
202,
6494,
324,
31,
202,
202,
6494,
1906,
17208,
31,
202,
202,
4131,
1906,
3234,
31,
202,
202,
2678,
2175,
1720,
31,
202,
202,
1670,
1042,
1906,
1042,
31,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
5377,
1042,
2267,
5157,
12,
1670,
1042,
2807,
1042,
16,
202,
202,
1670,
1042,
389,
2472,
16,
3525,
18,
1345,
682,
1147,
682,
16,
202,
202,
4131,
980,
13,
202,
95,
202,
202,
2211,
18,
2472,
273,
389,
2472,
31,
202,
202,
759,
12187,
95,
1000,
731,
819,
202,
202,
430,
12,
10001,
1042,
422,
446,
13,
202,
202,
95,
1082,
202,
2472,
18,
2938,
273,
446,
31,
1082,
202,
2472,
18,
267,
2175,
273,
446,
31,
1082,
202,
2472,
18,
7482,
273,
15011,
21474,
5621,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
2472,
18,
2938,
273,
2807,
1042,
18,
2938,
31,
1082,
202,
2472,
18,
267,
2175,
273,
2807,
1042,
18,
2
] |
|
myExpectation.setExpected(0.0, 0.0); myExpectation.setFailOnVerify(); | myExpectation.setExpected(0.0, 0.0); myExpectation.setFailOnVerify(); | public void testFailOnVerify() { myExpectation.setExpected(0.0, 0.0); myExpectation.setFailOnVerify(); myExpectation.setActual(1.0); AssertMo.assertVerifyFails(myExpectation); } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/ExpectationDoubleValueTest.java/buggy/jmock/core/src/test/jmock/expectation/ExpectationDoubleValueTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3754,
1398,
8097,
1435,
288,
202,
202,
4811,
11988,
367,
18,
542,
6861,
12,
20,
18,
20,
16,
374,
18,
20,
1769,
202,
202,
4811,
11988,
367,
18,
542,
3754,
1398,
8097,
5621,
202,
202,
4811,
11988,
367,
18,
542,
11266,
12,
21,
18,
20,
1769,
202,
202,
8213,
16727,
18,
11231,
8097,
30800,
12,
4811,
11988,
367,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3754,
1398,
8097,
1435,
288,
202,
202,
4811,
11988,
367,
18,
542,
6861,
12,
20,
18,
20,
16,
374,
18,
20,
1769,
202,
202,
4811,
11988,
367,
18,
542,
3754,
1398,
8097,
5621,
202,
202,
4811,
11988,
367,
18,
542,
11266,
12,
21,
18,
20,
1769,
202,
202,
8213,
16727,
18,
11231,
8097,
30800,
12,
4811,
11988,
367,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
match(_t,FRAMEFILE); _t = _t.getNextSibling(); break; } case FRAMEVALUE: | match(_t,FRAMEVALUE); _t = _t.getNextSibling(); break; } case GOPENDING: | public final void pseudfn(AST _t) throws RecognitionException { AST pseudfn_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FIXCODEPAGE: { AST __t1396 = _t; AST tmp661_AST_in = (AST)_t; match(_t,FIXCODEPAGE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1396; _t = _t.getNextSibling(); break; } case OVERLAY: { AST __t1397 = _t; AST tmp662_AST_in = (AST)_t; match(_t,OVERLAY); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1397; _t = _t.getNextSibling(); break; } case PUTBITS: { AST __t1398 = _t; AST tmp663_AST_in = (AST)_t; match(_t,PUTBITS); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1398; _t = _t.getNextSibling(); break; } case PUTBYTE: { AST __t1399 = _t; AST tmp664_AST_in = (AST)_t; match(_t,PUTBYTE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1399; _t = _t.getNextSibling(); break; } case PUTBYTES: { AST __t1400 = _t; AST tmp665_AST_in = (AST)_t; match(_t,PUTBYTES); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1400; _t = _t.getNextSibling(); break; } case PUTDOUBLE: { AST __t1401 = _t; AST tmp666_AST_in = (AST)_t; match(_t,PUTDOUBLE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1401; _t = _t.getNextSibling(); break; } case PUTFLOAT: { AST __t1402 = _t; AST tmp667_AST_in = (AST)_t; match(_t,PUTFLOAT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1402; _t = _t.getNextSibling(); break; } case PUTLONG: { AST __t1403 = _t; AST tmp668_AST_in = (AST)_t; match(_t,PUTLONG); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1403; _t = _t.getNextSibling(); break; } case PUTSHORT: { AST __t1404 = _t; AST tmp669_AST_in = (AST)_t; match(_t,PUTSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1404; _t = _t.getNextSibling(); break; } case PUTSTRING: { AST __t1405 = _t; AST tmp670_AST_in = (AST)_t; match(_t,PUTSTRING); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1405; _t = _t.getNextSibling(); break; } case PUTUNSIGNEDSHORT: { AST __t1406 = _t; AST tmp671_AST_in = (AST)_t; match(_t,PUTUNSIGNEDSHORT); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1406; _t = _t.getNextSibling(); break; } case SETBYTEORDER: { AST __t1407 = _t; AST tmp672_AST_in = (AST)_t; match(_t,SETBYTEORDER); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1407; _t = _t.getNextSibling(); break; } case SETPOINTERVALUE: { AST __t1408 = _t; AST tmp673_AST_in = (AST)_t; match(_t,SETPOINTERVALUE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1408; _t = _t.getNextSibling(); break; } case SETSIZE: { AST __t1409 = _t; AST tmp674_AST_in = (AST)_t; match(_t,SETSIZE); _t = _t.getFirstChild(); funargs(_t); _t = _retTree; _t = __t1409; _t = _t.getNextSibling(); break; } case AAMSG: { AST tmp675_AST_in = (AST)_t; match(_t,AAMSG); _t = _t.getNextSibling(); break; } case CURRENTVALUE: { currentvaluefunc(_t); _t = _retTree; break; } case CURRENTWINDOW: { AST tmp676_AST_in = (AST)_t; match(_t,CURRENTWINDOW); _t = _t.getNextSibling(); break; } case DYNAMICCURRENTVALUE: { dynamiccurrentvaluefunc(_t); _t = _retTree; break; } case ENTRY: { entryfunc(_t); _t = _retTree; break; } case LENGTH: { lengthfunc(_t); _t = _retTree; break; } case NEXTVALUE: { nextvaluefunc(_t); _t = _retTree; break; } case RAW: { rawfunc(_t); _t = _retTree; break; } case SUBSTRING: { substringfunc(_t); _t = _retTree; break; } case Widget_ref: { widattr(_t); _t = _retTree; break; } case PAGESIZE_KW: { AST tmp677_AST_in = (AST)_t; match(_t,PAGESIZE_KW); _t = _t.getNextSibling(); break; } case LINECOUNTER: { AST tmp678_AST_in = (AST)_t; match(_t,LINECOUNTER); _t = _t.getNextSibling(); break; } case PAGENUMBER: { AST tmp679_AST_in = (AST)_t; match(_t,PAGENUMBER); _t = _t.getNextSibling(); break; } case FRAMECOL: { AST tmp680_AST_in = (AST)_t; match(_t,FRAMECOL); _t = _t.getNextSibling(); break; } case FRAMEDOWN: { AST tmp681_AST_in = (AST)_t; match(_t,FRAMEDOWN); _t = _t.getNextSibling(); break; } case FRAMELINE: { AST tmp682_AST_in = (AST)_t; match(_t,FRAMELINE); _t = _t.getNextSibling(); break; } case FRAMEROW: { AST tmp683_AST_in = (AST)_t; match(_t,FRAMEROW); _t = _t.getNextSibling(); break; } case USERID: { AST tmp684_AST_in = (AST)_t; match(_t,USERID); _t = _t.getNextSibling(); break; } case ETIME_KW: { AST tmp685_AST_in = (AST)_t; match(_t,ETIME_KW); _t = _t.getNextSibling(); break; } case DBNAME: { AST tmp686_AST_in = (AST)_t; match(_t,DBNAME); _t = _t.getNextSibling(); break; } case TIME: { AST tmp687_AST_in = (AST)_t; match(_t,TIME); _t = _t.getNextSibling(); break; } case OPSYS: { AST tmp688_AST_in = (AST)_t; match(_t,OPSYS); _t = _t.getNextSibling(); break; } case RETRY: { AST tmp689_AST_in = (AST)_t; match(_t,RETRY); _t = _t.getNextSibling(); break; } case AASERIAL: { AST tmp690_AST_in = (AST)_t; match(_t,AASERIAL); _t = _t.getNextSibling(); break; } case AACONTROL: { AST tmp691_AST_in = (AST)_t; match(_t,AACONTROL); _t = _t.getNextSibling(); break; } case MESSAGELINES: { AST tmp692_AST_in = (AST)_t; match(_t,MESSAGELINES); _t = _t.getNextSibling(); break; } case TERMINAL: { AST tmp693_AST_in = (AST)_t; match(_t,TERMINAL); _t = _t.getNextSibling(); break; } case PROPATH: { AST tmp694_AST_in = (AST)_t; match(_t,PROPATH); _t = _t.getNextSibling(); break; } case CURRENTLANGUAGE: { AST tmp695_AST_in = (AST)_t; match(_t,CURRENTLANGUAGE); _t = _t.getNextSibling(); break; } case PROMSGS: { AST tmp696_AST_in = (AST)_t; match(_t,PROMSGS); _t = _t.getNextSibling(); break; } case SCREENLINES: { AST tmp697_AST_in = (AST)_t; match(_t,SCREENLINES); _t = _t.getNextSibling(); break; } case LASTKEY: { AST tmp698_AST_in = (AST)_t; match(_t,LASTKEY); _t = _t.getNextSibling(); break; } case FRAMEFIELD: { AST tmp699_AST_in = (AST)_t; match(_t,FRAMEFIELD); _t = _t.getNextSibling(); break; } case FRAMEFILE: { AST tmp700_AST_in = (AST)_t; match(_t,FRAMEFILE); _t = _t.getNextSibling(); break; } case FRAMEVALUE: { AST tmp701_AST_in = (AST)_t; match(_t,FRAMEVALUE); _t = _t.getNextSibling(); break; } case GOPENDING: { AST tmp702_AST_in = (AST)_t; match(_t,GOPENDING); _t = _t.getNextSibling(); break; } case PROGRESS: { AST tmp703_AST_in = (AST)_t; match(_t,PROGRESS); _t = _t.getNextSibling(); break; } case FRAMEINDEX: { AST tmp704_AST_in = (AST)_t; match(_t,FRAMEINDEX); _t = _t.getNextSibling(); break; } case FRAMEDB: { AST tmp705_AST_in = (AST)_t; match(_t,FRAMEDB); _t = _t.getNextSibling(); break; } case FRAMENAME: { AST tmp706_AST_in = (AST)_t; match(_t,FRAMENAME); _t = _t.getNextSibling(); break; } case DATASERVERS: { AST tmp707_AST_in = (AST)_t; match(_t,DATASERVERS); _t = _t.getNextSibling(); break; } case NUMDBS: { AST tmp708_AST_in = (AST)_t; match(_t,NUMDBS); _t = _t.getNextSibling(); break; } case NUMALIASES: { AST tmp709_AST_in = (AST)_t; match(_t,NUMALIASES); _t = _t.getNextSibling(); break; } case ISATTRSPACE: { AST tmp710_AST_in = (AST)_t; match(_t,ISATTRSPACE); _t = _t.getNextSibling(); break; } case PROCSTATUS: { AST tmp711_AST_in = (AST)_t; match(_t,PROCSTATUS); _t = _t.getNextSibling(); break; } case PROCHANDLE: { AST tmp712_AST_in = (AST)_t; match(_t,PROCHANDLE); _t = _t.getNextSibling(); break; } case CURSOR: { AST tmp713_AST_in = (AST)_t; match(_t,CURSOR); _t = _t.getNextSibling(); break; } case OSERROR: { AST tmp714_AST_in = (AST)_t; match(_t,OSERROR); _t = _t.getNextSibling(); break; } case RETURNVALUE: { AST tmp715_AST_in = (AST)_t; match(_t,RETURNVALUE); _t = _t.getNextSibling(); break; } case OSDRIVES: { AST tmp716_AST_in = (AST)_t; match(_t,OSDRIVES); _t = _t.getNextSibling(); break; } case PROVERSION: { AST tmp717_AST_in = (AST)_t; match(_t,PROVERSION); _t = _t.getNextSibling(); break; } case TRANSACTION: { AST tmp718_AST_in = (AST)_t; match(_t,TRANSACTION); _t = _t.getNextSibling(); break; } case MACHINECLASS: { AST tmp719_AST_in = (AST)_t; match(_t,MACHINECLASS); _t = _t.getNextSibling(); break; } case AAPCONTROL: { AST tmp720_AST_in = (AST)_t; match(_t,AAPCONTROL); _t = _t.getNextSibling(); break; } case GETCODEPAGES: { AST tmp721_AST_in = (AST)_t; match(_t,GETCODEPAGES); _t = _t.getNextSibling(); break; } case COMSELF: { AST tmp722_AST_in = (AST)_t; match(_t,COMSELF); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _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,
29606,
4293,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
29606,
4293,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
8563,
5572,
11219,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10525,
273,
389,
88,
31,
1082,
202,
9053,
1853,
6028,
21,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4563,
5572,
11219,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
202,
67,
88,
273,
1001,
88,
3437,
10525,
31,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
2134,
10291,
5621,
1082,
202,
8820,
31,
202,
202,
97,
202,
202,
3593,
22577,
7868,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10580,
273,
389,
88,
31,
1082,
202,
9053,
1853,
6028,
22,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
12959,
7868,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
12125,
1968,
24899,
88,
1769,
1082,
202,
67,
88,
273,
389,
1349,
2471,
31,
1082,
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,
29606,
4293,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
29606,
4293,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
8563,
5572,
11219,
30,
202,
202,
95,
1082,
202,
9053,
1001,
88,
3437,
10525,
273,
389,
88,
31,
1082,
202,
9053,
1853,
6028,
21,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
4563,
5572,
11219,
1769,
1082,
202,
67,
88,
2
] |
if(aClass.isInterface() || aClass.isEnum()|| aClass.isInterface()) | if(aClass.isInterface() || aClass.isEnum()|| aClass.isAnnotationType()) | public void visitClass(PsiClass aClass) { //no recursion to avoid drilldown if(aClass.isInterface() || aClass.isEnum()|| aClass.isInterface()) { return; } if(aClass.getContainingClass()!=null) { return; } final PsiField[] fields = aClass.getFields(); for (int i = 0; i < fields.length; i++) { if(isLogger(fields[i])) { return; } } registerClassError(aClass); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/ClassWithoutLoggerInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/logging/ClassWithoutLoggerInspection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
797,
12,
52,
7722,
797,
20148,
13,
288,
5411,
368,
2135,
13917,
358,
4543,
5081,
737,
2378,
5411,
309,
12,
69,
797,
18,
291,
1358,
1435,
747,
20148,
18,
291,
3572,
1435,
20081,
20148,
18,
291,
3257,
559,
10756,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
69,
797,
18,
588,
24344,
797,
1435,
5,
33,
2011,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
974,
8526,
1466,
273,
20148,
18,
588,
2314,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1466,
18,
2469,
31,
277,
27245,
288,
7734,
309,
12,
291,
3328,
12,
2821,
63,
77,
22643,
7734,
288,
10792,
327,
31,
7734,
289,
5411,
289,
5411,
1744,
797,
668,
12,
69,
797,
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,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3757,
797,
12,
52,
7722,
797,
20148,
13,
288,
5411,
368,
2135,
13917,
358,
4543,
5081,
737,
2378,
5411,
309,
12,
69,
797,
18,
291,
1358,
1435,
747,
20148,
18,
291,
3572,
1435,
20081,
20148,
18,
291,
3257,
559,
10756,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
309,
12,
69,
797,
18,
588,
24344,
797,
1435,
5,
33,
2011,
13,
5411,
288,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
974,
8526,
1466,
273,
20148,
18,
588,
2314,
5621,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1466,
18,
2469,
31,
277,
27245,
288,
7734,
309,
12,
291,
3328,
12,
2821,
63,
77,
22643,
7734,
288,
10792,
327,
31,
7734,
289,
5411,
2
] |
return mailCount; } | return mailCount; } | public synchronized int mailCount () { return mailCount; } | 17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/7d6ff6834faca02f75bac7adce0241da44e9d835/ERMailSender.java/clean/Common/Frameworks/ERJavaMail/Sources/er/javamail/ERMailSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
3852,
509,
4791,
1380,
1832,
288,
202,
565,
327,
4791,
1380,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3852,
509,
4791,
1380,
1832,
288,
202,
565,
327,
4791,
1380,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return numberToString(((Number) val).doubleValue()); | return numberToString(((Number) val).doubleValue(), 10); | public static String toString(Object val) { for (;;) { if (val == null) return "null"; if (val instanceof Scriptable) { val = ((Scriptable) val).getDefaultValue(StringClass); if (val != Undefined.instance && val instanceof Scriptable) { throw errorWithClassName("msg.primitive.expected", val); } continue; } if (val instanceof Number) { // XXX should we just teach NativeNumber.stringValue() // about Numbers? return numberToString(((Number) val).doubleValue()); } return val.toString(); } } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/4bf675b98aeb91f7b1aa93aa6af7bc7944745bed/ScriptRuntime.java/clean/js/rhino/src/org/mozilla/javascript/ScriptRuntime.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1762,
12,
921,
1244,
13,
288,
3639,
364,
261,
25708,
13,
288,
5411,
309,
261,
1125,
422,
446,
13,
7734,
327,
315,
2011,
14432,
5411,
309,
261,
1125,
1276,
22780,
13,
288,
7734,
1244,
273,
14015,
3651,
429,
13,
1244,
2934,
588,
15646,
12,
780,
797,
1769,
7734,
309,
261,
1125,
480,
22243,
18,
1336,
597,
1244,
1276,
22780,
13,
288,
10792,
604,
555,
1190,
3834,
2932,
3576,
18,
683,
5025,
18,
3825,
3113,
1244,
1769,
7734,
289,
7734,
1324,
31,
5411,
289,
5411,
309,
261,
1125,
1276,
3588,
13,
288,
7734,
368,
11329,
1410,
732,
2537,
6489,
497,
16717,
1854,
18,
1080,
620,
1435,
7734,
368,
2973,
6805,
2210,
35,
7734,
327,
1300,
5808,
12443,
12,
1854,
13,
1244,
2934,
9056,
620,
9334,
1728,
1769,
5411,
289,
5411,
327,
1244,
18,
10492,
5621,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
1762,
12,
921,
1244,
13,
288,
3639,
364,
261,
25708,
13,
288,
5411,
309,
261,
1125,
422,
446,
13,
7734,
327,
315,
2011,
14432,
5411,
309,
261,
1125,
1276,
22780,
13,
288,
7734,
1244,
273,
14015,
3651,
429,
13,
1244,
2934,
588,
15646,
12,
780,
797,
1769,
7734,
309,
261,
1125,
480,
22243,
18,
1336,
597,
1244,
1276,
22780,
13,
288,
10792,
604,
555,
1190,
3834,
2932,
3576,
18,
683,
5025,
18,
3825,
3113,
1244,
1769,
7734,
289,
7734,
1324,
31,
5411,
289,
5411,
309,
261,
1125,
1276,
3588,
13,
288,
7734,
368,
11329,
1410,
732,
2537,
6489,
497,
16717,
1854,
18,
1080,
620,
1435,
7734,
368,
2973,
6805,
2210,
35,
7734,
327,
1300,
5808,
2
] |
public boolean isApplicable( Pattern pattern, Attributes attributes, InterpretationContext ec) { //System.out.println("in NestComponentIA.isApplicable <" + pattern + ">"); String nestedElementTagName = pattern.peekLast(); // calling ec.peekObject with an empty stack will throw an exception if(ec.isEmpty()) { return false; } Object o = ec.peekObject(); PropertySetter parentBean = new PropertySetter(o); parentBean.setContext(context); int containmentType = parentBean.canContainComponent(nestedElementTagName); switch (containmentType) { case PropertySetter.NOT_FOUND: case PropertySetter.AS_PROPERTY: return false; // we only push action data if NestComponentIA is applicable case PropertySetter.AS_COLLECTION: case PropertySetter.AS_COMPONENT: addInfo("is dmmed applicable for "+pattern); ImplicitActionData ad = new ImplicitActionData(parentBean, containmentType); actionDataStack.push(ad); return true; default: addError("PropertySetter.canContainComponent returned " + containmentType); return false; } } | 48264 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48264/445c93509c33d1cf431a1f997c92db98d3b8fd69/NestedComponentIA.java/clean/logback-core/src/main/java/ch/qos/logback/core/joran/action/NestedComponentIA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
27873,
12,
565,
6830,
1936,
16,
9055,
1677,
16,
5294,
15089,
367,
1042,
6557,
13,
288,
565,
368,
3163,
18,
659,
18,
8222,
2932,
267,
423,
395,
1841,
15188,
18,
291,
27873,
411,
6,
397,
1936,
397,
14675,
1769,
565,
514,
4764,
1046,
8520,
273,
1936,
18,
347,
3839,
3024,
5621,
565,
368,
4440,
6557,
18,
347,
3839,
921,
598,
392,
1008,
2110,
903,
604,
392,
1520,
565,
309,
12,
557,
18,
291,
1921,
10756,
288,
1377,
327,
629,
31,
565,
289,
3639,
1033,
320,
273,
6557,
18,
347,
3839,
921,
5621,
565,
4276,
8465,
982,
3381,
273,
394,
4276,
8465,
12,
83,
1769,
565,
982,
3381,
18,
542,
1042,
12,
2472,
1769,
3639,
509,
912,
475,
559,
273,
982,
3381,
18,
4169,
22928,
1841,
12,
12985,
1046,
8520,
1769,
565,
1620,
261,
28744,
475,
559,
13,
288,
565,
648,
4276,
8465,
18,
4400,
67,
9294,
30,
565,
648,
4276,
8465,
18,
3033,
67,
9900,
30,
1377,
327,
629,
31,
565,
368,
732,
1338,
1817,
1301,
501,
309,
423,
395,
1841,
15188,
353,
12008,
565,
648,
4276,
8465,
18,
3033,
67,
25964,
30,
565,
648,
4276,
8465,
18,
3033,
67,
22922,
30,
1377,
527,
966,
2932,
291,
9113,
2937,
12008,
364,
13773,
4951,
1769,
1377,
26142,
1803,
751,
1261,
273,
394,
26142,
1803,
751,
12,
2938,
3381,
16,
912,
475,
559,
1769,
1377,
1301,
751,
2624,
18,
6206,
12,
361,
1769,
1377,
327,
638,
31,
565,
805,
30,
1377,
9501,
2932,
1396,
8465,
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,
1250,
353,
27873,
12,
565,
6830,
1936,
16,
9055,
1677,
16,
5294,
15089,
367,
1042,
6557,
13,
288,
565,
368,
3163,
18,
659,
18,
8222,
2932,
267,
423,
395,
1841,
15188,
18,
291,
27873,
411,
6,
397,
1936,
397,
14675,
1769,
565,
514,
4764,
1046,
8520,
273,
1936,
18,
347,
3839,
3024,
5621,
565,
368,
4440,
6557,
18,
347,
3839,
921,
598,
392,
1008,
2110,
903,
604,
392,
1520,
565,
309,
12,
557,
18,
291,
1921,
10756,
288,
1377,
327,
629,
31,
565,
289,
3639,
1033,
320,
273,
6557,
18,
347,
3839,
921,
5621,
565,
4276,
8465,
982,
3381,
273,
394,
4276,
8465,
12,
83,
1769,
565,
982,
3381,
18,
542,
1042,
12,
2472,
1769,
3639,
509,
2
] |
||
VM_ProcessorLocalState.emitMoveFieldToReg(asm, S0, VM_Entrypoints.activeThreadField.getOffset()); asm.emitMOV_Reg_RegDisp(S0, S0, VM_Entrypoints.jniEnvField.getOffset()); | VM_ProcessorLocalState.emitMoveFieldToReg(asm, S0, VM_Entrypoints.activeThreadField.getOffsetAsInt()); asm.emitMOV_Reg_RegDisp(S0, S0, VM_Entrypoints.jniEnvField.getOffsetAsInt()); | public static void generateEpilogForJNIMethod(VM_Assembler asm, VM_Method method) { // assume RVM PR regs still valid. potentially T1 & T0 contain return // values and should not be modified. we use regs saved in prolog and restored // before return to do whatever needs to be done. does not assume JTOC is valid, // and may use it as scratch reg. // if returning long, switch the order of the hi/lo word in T0 and T1 if (method.getReturnType().isLongType()) { asm.emitPUSH_Reg(T1); asm.emitMOV_Reg_Reg(T1, T0); asm.emitPOP_Reg(T0); } // current processor status is IN_JAVA, so we only GC at yieldpoints // S0 <- VM_JNIEnvironment VM_ProcessorLocalState.emitMoveFieldToReg(asm, S0, VM_Entrypoints.activeThreadField.getOffset()); asm.emitMOV_Reg_RegDisp(S0, S0, VM_Entrypoints.jniEnvField.getOffset()); // set jniEnv TopJavaFP using value saved in frame in prolog asm.emitMOV_Reg_RegDisp(EDI, EBP, SAVED_JAVA_FP_OFFSET); // JTOC<-saved TopJavaFP (offset) asm.emitADD_Reg_Reg(EDI, EBP); // change offset from FP into address asm.emitMOV_RegDisp_Reg (S0, VM_Entrypoints.JNITopJavaFPField.getOffset(), EDI); // jniEnv.TopJavaFP <- JTOC // in case thread has migrated to different PR, reset saved PRs to current PR VM_ProcessorLocalState.emitStoreProcessor(asm, S0, VM_Entrypoints.JNIEnvSavedPRField.getOffset()); // change current processor status to IN_NATIVE VM_ProcessorLocalState.emitMoveImmToField(asm, VM_Entrypoints.vpStatusField.getOffset(), VM_Processor.IN_NATIVE); // reload native/C nonvolatile regs - saved in prolog // what about FPRs // TODO: DAVE we really don't need to do this. C has no nonvols on Linux/x86 VM_ProcessorLocalState.emitPopProcessor(asm); asm.emitPOP_Reg(S0); asm.emitPOP_Reg(EBX); asm.emitPOP_Reg(JTOC); // NOTE: C expects the framepointer to be restored to EBP, so // the epilogue for the C to Java glue code must follow that // convention, not the RVM one! // Also note that RVM treats EBP is a nonvolatile, so we don't // explicitly save/restore it. asm.emitMOV_Reg_Reg(SP, EBP); // discard current stack frame asm.emitPOP_Reg(EBP); asm.emitRET(); // return to caller } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/3a1409586ed0fc007c4120f3a96d6f7a1ae3593c/VM_JNICompiler.java/clean/rvm/src/vm/arch/intel/jni/VM_JNICompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2103,
18918,
21947,
1290,
46,
50,
45,
1305,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
707,
13,
288,
565,
368,
6750,
534,
7397,
11770,
17518,
4859,
923,
18,
13935,
399,
21,
473,
399,
20,
912,
327,
565,
368,
924,
471,
1410,
486,
506,
4358,
18,
732,
999,
17518,
5198,
316,
450,
1330,
471,
18751,
565,
368,
1865,
327,
358,
741,
15098,
4260,
358,
506,
2731,
18,
225,
1552,
486,
6750,
804,
4296,
39,
353,
923,
16,
565,
368,
471,
2026,
999,
518,
487,
15289,
960,
18,
565,
368,
309,
5785,
1525,
16,
1620,
326,
1353,
434,
326,
10118,
19,
383,
2076,
316,
399,
20,
471,
399,
21,
565,
309,
261,
2039,
18,
588,
9102,
7675,
291,
3708,
559,
10756,
288,
1377,
20415,
18,
18356,
30348,
67,
1617,
12,
56,
21,
1769,
1850,
20415,
18,
18356,
5980,
58,
67,
1617,
67,
1617,
12,
56,
21,
16,
399,
20,
1769,
3639,
20415,
18,
18356,
30374,
67,
1617,
12,
56,
20,
1769,
1850,
289,
565,
368,
783,
6659,
1267,
353,
2120,
67,
27264,
16,
1427,
732,
1338,
15085,
622,
2824,
4139,
565,
368,
348,
20,
3290,
8251,
67,
46,
50,
45,
5494,
565,
8251,
67,
5164,
2042,
1119,
18,
18356,
7607,
974,
774,
1617,
12,
23522,
16,
348,
20,
16,
8251,
67,
1622,
4139,
18,
3535,
3830,
974,
18,
588,
2335,
10663,
377,
20415,
18,
18356,
5980,
58,
67,
1617,
67,
1617,
1669,
84,
12,
55,
20,
16,
348,
20,
16,
8251,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2103,
18918,
21947,
1290,
46,
50,
45,
1305,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
707,
13,
288,
565,
368,
6750,
534,
7397,
11770,
17518,
4859,
923,
18,
13935,
399,
21,
473,
399,
20,
912,
327,
565,
368,
924,
471,
1410,
486,
506,
4358,
18,
732,
999,
17518,
5198,
316,
450,
1330,
471,
18751,
565,
368,
1865,
327,
358,
741,
15098,
4260,
358,
506,
2731,
18,
225,
1552,
486,
6750,
804,
4296,
39,
353,
923,
16,
565,
368,
471,
2026,
999,
518,
487,
15289,
960,
18,
565,
368,
309,
5785,
1525,
16,
1620,
326,
1353,
434,
326,
10118,
19,
383,
2076,
316,
399,
20,
471,
399,
21,
565,
309,
261,
2039,
2
] |
IWorkbenchPart part = ref.getPart(false); if (part != null) { listeners.firePartDeactivated(part); selectionService.partDeactivated(part); } listeners2.firePartDeactivated(ref); | firePartDeactivated(ref); | public void partDeactivated(IWorkbenchPartReference ref) { IWorkbenchPart part = ref.getPart(false); if (part != null) { listeners.firePartDeactivated(part); selectionService.partDeactivated(part); } listeners2.firePartDeactivated(ref); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/216b4e9307a83e834710b45da80f510ae6acc4e6/WWinPartService.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WWinPartService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1087,
758,
18836,
12,
45,
2421,
22144,
1988,
2404,
1278,
13,
288,
5411,
467,
2421,
22144,
1988,
1087,
273,
1278,
18,
588,
1988,
12,
5743,
1769,
5411,
309,
261,
2680,
480,
446,
13,
288,
7734,
4679,
18,
12179,
1988,
758,
18836,
12,
2680,
1769,
7734,
4421,
1179,
18,
2680,
758,
18836,
12,
2680,
1769,
5411,
289,
5411,
4679,
22,
18,
12179,
1988,
758,
18836,
12,
1734,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1087,
758,
18836,
12,
45,
2421,
22144,
1988,
2404,
1278,
13,
288,
5411,
467,
2421,
22144,
1988,
1087,
273,
1278,
18,
588,
1988,
12,
5743,
1769,
5411,
309,
261,
2680,
480,
446,
13,
288,
7734,
4679,
18,
12179,
1988,
758,
18836,
12,
2680,
1769,
7734,
4421,
1179,
18,
2680,
758,
18836,
12,
2680,
1769,
5411,
289,
5411,
4679,
22,
18,
12179,
1988,
758,
18836,
12,
1734,
1769,
3639,
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
] |
if (targetCU != null) { | if (targetCU != null && JavaModelUtil.isEditable(targetCU)) { | public static void addNonAccessibleMemberProposal(ICorrectionContext context, List proposals, boolean visibilityChange) throws JavaModelException { ICompilationUnit cu= context.getCompilationUnit(); ASTNode selectedNode= context.getCoveringNode(); if (selectedNode == null) { return; } IBinding binding=null; switch (selectedNode.getNodeType()) { case ASTNode.SIMPLE_NAME: binding= ((SimpleName) selectedNode).resolveBinding(); break; case ASTNode.QUALIFIED_NAME: binding= ((QualifiedName) selectedNode).resolveBinding(); break; case ASTNode.SIMPLE_TYPE: binding= ((SimpleType) selectedNode).resolveBinding(); break; case ASTNode.METHOD_INVOCATION: binding= ((MethodInvocation) selectedNode).getName().resolveBinding(); break; case ASTNode.SUPER_METHOD_INVOCATION: binding= ((SuperMethodInvocation) selectedNode).getName().resolveBinding(); break; case ASTNode.SUPER_FIELD_ACCESS: binding= ((SuperFieldAccess) selectedNode).getName().resolveBinding(); break; case ASTNode.CLASS_INSTANCE_CREATION: binding= ((ClassInstanceCreation) selectedNode).resolveConstructorBinding(); break; case ASTNode.SUPER_CONSTRUCTOR_INVOCATION: binding= ((SuperConstructorInvocation) selectedNode).resolveConstructorBinding(); break; default: return; } ITypeBinding typeBinding= null; String name; if (binding instanceof IMethodBinding) { typeBinding= ((IMethodBinding) binding).getDeclaringClass(); name= binding.getName() + "()"; } else if (binding instanceof IVariableBinding) { typeBinding= ((IVariableBinding) binding).getDeclaringClass(); name= binding.getName(); } else if (binding instanceof ITypeBinding) { typeBinding= (ITypeBinding) binding; name= binding.getName(); } else { return; } if (typeBinding != null && typeBinding.isFromSource()) { int includedModifiers= 0; int excludedModifiers= 0; String label; if (visibilityChange) { excludedModifiers= Modifier.PRIVATE | Modifier.PROTECTED | Modifier.PUBLIC; includedModifiers= getNeededVisibility(selectedNode, typeBinding); label= CorrectionMessages.getFormattedString("ModifierCorrectionSubProcessor.changevisibility.description", new String[] { name, getVisibilityString(includedModifiers) }); } else { label= CorrectionMessages.getFormattedString("ModifierCorrectionSubProcessor.changemodifiertostatic.description", name); includedModifiers= Modifier.STATIC; } ICompilationUnit targetCU= ASTResolving.findCompilationUnitForBinding(cu, context.getASTRoot(), typeBinding); if (targetCU != null) { Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE); proposals.add(new ModifierChangeCompletionProposal(label, targetCU, binding, selectedNode, includedModifiers, excludedModifiers, 0, image)); } } } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/0889015ef5bd77a51db8a65ea315b1dc9f030449/ModifierCorrectionSubProcessor.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ModifierCorrectionSubProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
527,
3989,
10451,
4419,
14592,
12,
2871,
280,
9329,
1042,
819,
16,
987,
450,
22536,
16,
1250,
9478,
3043,
13,
1216,
5110,
1488,
503,
288,
202,
202,
45,
19184,
2802,
15985,
33,
819,
18,
588,
19184,
2802,
5621,
202,
202,
9053,
907,
3170,
907,
33,
819,
18,
588,
8084,
310,
907,
5621,
202,
202,
430,
261,
8109,
907,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
45,
5250,
5085,
33,
2011,
31,
202,
202,
9610,
261,
8109,
907,
18,
588,
15101,
10756,
288,
1082,
202,
3593,
9183,
907,
18,
31669,
900,
67,
1985,
30,
9506,
202,
7374,
33,
14015,
5784,
461,
13,
3170,
907,
2934,
10828,
5250,
5621,
9506,
202,
8820,
31,
1082,
202,
3593,
9183,
907,
18,
8729,
13519,
67,
1985,
30,
9506,
202,
7374,
33,
14015,
12345,
13,
3170,
907,
2934,
10828,
5250,
5621,
9506,
202,
8820,
31,
1082,
202,
3593,
9183,
907,
18,
31669,
900,
67,
2399,
30,
9506,
202,
7374,
33,
14015,
5784,
559,
13,
3170,
907,
2934,
10828,
5250,
5621,
9506,
202,
8820,
31,
1082,
202,
3593,
9183,
907,
18,
5327,
67,
706,
16169,
8506,
30,
9506,
202,
7374,
33,
14015,
1305,
9267,
13,
3170,
907,
2934,
17994,
7675,
10828,
5250,
5621,
9506,
202,
8820,
31,
1082,
202,
3593,
9183,
907,
18,
13272,
654,
67,
5327,
67,
706,
16169,
8506,
30,
9506,
202,
7374,
33,
14015,
8051,
1305,
9267,
13,
3170,
907,
2934,
17994,
7675,
10828,
5250,
5621,
9506,
202,
8820,
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,
225,
202,
482,
760,
918,
527,
3989,
10451,
4419,
14592,
12,
2871,
280,
9329,
1042,
819,
16,
987,
450,
22536,
16,
1250,
9478,
3043,
13,
1216,
5110,
1488,
503,
288,
202,
202,
45,
19184,
2802,
15985,
33,
819,
18,
588,
19184,
2802,
5621,
202,
202,
9053,
907,
3170,
907,
33,
819,
18,
588,
8084,
310,
907,
5621,
202,
202,
430,
261,
8109,
907,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
9506,
202,
45,
5250,
5085,
33,
2011,
31,
202,
202,
9610,
261,
8109,
907,
18,
588,
15101,
10756,
288,
1082,
202,
3593,
9183,
907,
18,
31669,
900,
67,
1985,
30,
9506,
202,
7374,
33,
14015,
5784,
461,
13,
3170,
907,
2934,
10828,
5250,
5621,
9506,
2
] |
protected static Set doMemberOf(GrouperSession s, Stem ns, Member m) throws GroupNotFoundException | protected static Set doMemberOf(GrouperSession s, Group g, Member m) throws GroupNotFoundException | protected static Set doMemberOf(GrouperSession s, Stem ns, Member m) throws GroupNotFoundException { // TODO Add logging as above Set mships = new LinkedHashSet(); // Stems can't be members Set isMember = new LinkedHashSet(); // Add members of m to ns // Add members of m to where ns is a member mships.addAll( _findGroupAsMember(s, ns.getUuid(), m, isMember) ); return mships; } // protected static Set doMemberOf(s, m) | 5235 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5235/0ec66c30b4aa4cbfcfd82fb905aca14057612099/MemberOf.java/buggy/grouper/java/grouper/edu/internet2/middleware/grouper/MemberOf.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
1000,
741,
4419,
951,
12,
1114,
264,
2157,
272,
16,
348,
874,
3153,
16,
8596,
312,
13,
377,
1216,
225,
3756,
3990,
225,
288,
565,
368,
2660,
1436,
2907,
487,
5721,
565,
1000,
312,
3261,
87,
565,
273,
394,
19523,
5621,
565,
368,
348,
874,
87,
848,
1404,
506,
4833,
565,
1000,
353,
4419,
225,
273,
394,
19523,
5621,
565,
368,
1436,
4833,
434,
312,
358,
3153,
565,
368,
1436,
4833,
434,
312,
358,
1625,
3153,
353,
279,
3140,
565,
312,
3261,
87,
18,
1289,
1595,
12,
1377,
389,
4720,
1114,
1463,
4419,
12,
87,
16,
3153,
18,
588,
5897,
9334,
312,
16,
353,
4419,
13,
565,
11272,
565,
327,
312,
3261,
87,
31,
225,
289,
368,
4750,
760,
1000,
741,
4419,
951,
12,
87,
16,
312,
13,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
1000,
741,
4419,
951,
12,
1114,
264,
2157,
272,
16,
348,
874,
3153,
16,
8596,
312,
13,
377,
1216,
225,
3756,
3990,
225,
288,
565,
368,
2660,
1436,
2907,
487,
5721,
565,
1000,
312,
3261,
87,
565,
273,
394,
19523,
5621,
565,
368,
348,
874,
87,
848,
1404,
506,
4833,
565,
1000,
353,
4419,
225,
273,
394,
19523,
5621,
565,
368,
1436,
4833,
434,
312,
358,
3153,
565,
368,
1436,
4833,
434,
312,
358,
1625,
3153,
353,
279,
3140,
565,
312,
3261,
87,
18,
1289,
1595,
12,
1377,
389,
4720,
1114,
1463,
4419,
12,
87,
16,
3153,
18,
588,
5897,
9334,
312,
16,
353,
4419,
13,
565,
11272,
565,
327,
312,
3261,
87,
31,
225,
289,
2
] |
try { position++; bCodeStream[classFileOffset++] = OPC_isub; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_isub); | if (classFileOffset >= bCodeStream.length) { resizeByteArray(); | final public void isub() { if (DEBUG) System.out.println(position + "\t\tisub"); //$NON-NLS-1$ countLabels = 0; stackDepth--; try { position++; bCodeStream[classFileOffset++] = OPC_isub; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_isub); }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3a562aaf09f9f323b583086b80b4683378886606/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
727,
1071,
918,
353,
373,
1435,
288,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
12,
3276,
397,
1548,
88,
64,
88,
291,
373,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
1883,
5888,
273,
374,
31,
202,
3772,
6148,
413,
31,
202,
698,
288,
202,
202,
3276,
9904,
31,
202,
202,
70,
1085,
1228,
63,
1106,
812,
2335,
9904,
65,
273,
531,
3513,
67,
291,
373,
31,
202,
97,
1044,
261,
30548,
425,
13,
288,
202,
202,
15169,
8826,
12,
51,
3513,
67,
291,
373,
1769,
202,
9090,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
727,
1071,
918,
353,
373,
1435,
288,
202,
430,
261,
9394,
13,
2332,
18,
659,
18,
8222,
12,
3276,
397,
1548,
88,
64,
88,
291,
373,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
1883,
5888,
273,
374,
31,
202,
3772,
6148,
413,
31,
202,
698,
288,
202,
202,
3276,
9904,
31,
202,
202,
70,
1085,
1228,
63,
1106,
812,
2335,
9904,
65,
273,
531,
3513,
67,
291,
373,
31,
202,
97,
1044,
261,
30548,
425,
13,
288,
202,
202,
15169,
8826,
12,
51,
3513,
67,
291,
373,
1769,
202,
9090,
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
] |
} | public void mouseMoved(MouseEvent e) { //System.out.println("feature panel mouseMoved"); if ( selectionIsLocked ) { //System.out.println(" but selection locked"); return ; } int b = e.getButton(); //System.out.println("mouseMoved button " +b); // do not change selection if we display the popup window if (b != 0 ) if ( b != MouseEvent.BUTTON1 ) return; // make sure the triggering class is a FeaturePanel Object c = e.getSource(); //System.out.println(c); //System.out.println("mouse Moved, select locked"); //if ( selectionIsLocked ) return ; if ( ! (c instanceof FeaturePanel) ){ return ; } FeaturePanel view = (FeaturePanel) c; //System.out.println(view); //, int x, int y int seqpos = view.getSeqPos(e); int linenr = view.getLineNr(e); if ( linenr < 0 ) return ; if ( seqpos < 0 ) return ; if ( seqpos == oldposition) return; //System.out.println("mouse moved " + seqpos + " ("+oldposition+") " + linenr); oldposition = seqpos; //int featurenr = get_featurenr(y); triggerSelectedSeqPosition(seqpos); Feature feat ; try { feat = featureView.getFeatureAt(linenr); } catch (NoSuchElementException ex){ return; } Segment seg = null; try { seg = featureView.getSegmentAt(linenr, seqpos); } catch (NoSuchElementException ex) { return; } FeatureViewListener[] fvls = parent.getFeatureViewListeners(); for (int i = 0 ; i< fvls.length ; i++) { FeatureViewListener li = fvls[i]; FeatureEvent event = new FeatureEvent(featureView,feat); if ( seg != null ) { li.featureSelected(event); FeatureEvent event2 = new FeatureEvent(featureView,seg); li.mouseOverSegment(event2); } } } | 52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/37faf7aac4495e0f40e3d3e788e67948cbe7ef93/FeaturePanelMouseListener.java/clean/src/org/biojava/spice/Panel/seqfeat/FeaturePanelMouseListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
289,
289,
289,
289,
1071,
97,
918,
97,
7644,
25317,
12,
9186,
1133,
97,
425,
16869,
289,
289,
289,
288,
202,
97,
289,
289,
289,
289,
289,
289,
289,
368,
3163,
18,
659,
18,
8222,
2932,
7238,
97,
6594,
97,
7644,
25317,
8863,
97,
289,
289,
289,
289,
289,
289,
289,
309,
97,
261,
97,
4421,
2520,
8966,
97,
262,
97,
2618,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
368,
3163,
18,
659,
18,
8222,
2932,
97,
1496,
97,
4421,
97,
8586,
8863,
97,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
327,
97,
274,
97,
289,
289,
289,
289,
289,
289,
289,
10523,
289,
289,
289,
289,
289,
289,
289,
509,
97,
324,
97,
273,
97,
425,
18,
588,
3616,
5621,
97,
289,
289,
289,
289,
289,
289,
289,
368,
3163,
18,
659,
18,
8222,
2932,
11697,
25317,
97,
3568,
97,
27342,
397,
70,
1769,
97,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
19363,
741,
97,
486,
97,
2549,
97,
4421,
97,
309,
97,
732,
97,
2562,
97,
326,
97,
10431,
97,
2742,
97,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
309,
97,
261,
70,
97,
480,
97,
374,
97,
262,
97,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
309,
97,
261,
97,
324,
97,
480,
97,
17013,
1133,
18,
20068,
21,
97,
262,
97,
289,
289,
289,
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,
289,
289,
289,
289,
1071,
97,
918,
97,
7644,
25317,
12,
9186,
1133,
97,
425,
16869,
289,
289,
289,
288,
202,
97,
289,
289,
289,
289,
289,
289,
289,
368,
3163,
18,
659,
18,
8222,
2932,
7238,
97,
6594,
97,
7644,
25317,
8863,
97,
289,
289,
289,
289,
289,
289,
289,
309,
97,
261,
97,
4421,
2520,
8966,
97,
262,
97,
2618,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
368,
3163,
18,
659,
18,
8222,
2932,
97,
1496,
97,
4421,
97,
8586,
8863,
97,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
289,
327,
97,
274,
97,
289,
289,
289,
289,
289,
289,
289,
10523,
289,
289,
289,
289,
289,
289,
289,
509,
2
] |
|
reportError(cx, scope, "msg.invalid.re.flag", String.valueOf(c)); | reportError("msg.invalid.re.flag", String.valueOf(c)); | static Object compileRE(Context cx, Scriptable scope, String str, String global, boolean flat) { RECompiled regexp = new RECompiled(); regexp.source = str.toCharArray(); int length = str.length(); int flags = 0; if (global != null) { for (int i = 0; i < global.length(); i++) { char c = global.charAt(i); if (c == 'g') { flags |= JSREG_GLOB; } else if (c == 'i') { flags |= JSREG_FOLD; } else if (c == 'm') { flags |= JSREG_MULTILINE; } else { reportError(cx, scope, "msg.invalid.re.flag", String.valueOf(c)); } } } regexp.flags = flags; CompilerState state = new CompilerState(regexp.source, length, flags, cx, scope); if (flat && length > 0) {if (debug) {System.out.println("flat = \"" + str + "\"");} state.result = new RENode(REOP_FLAT); state.result.chr = state.cpbegin[0]; state.result.length = length; state.result.flatIndex = 0; state.progLength += 5; } else if (!parseDisjunction(state)) return null; regexp.program = new byte[state.progLength + 1]; if (state.classCount != 0) { regexp.classList = new RECharSet[state.classCount]; for (int i = 0; i < state.classCount; i++) regexp.classList[i] = new RECharSet(); regexp.classCount = state.classCount; } int endPC = emitREBytecode(state, regexp, 0, state.result); regexp.program[endPC++] = REOP_END;if (debug) {System.out.println("Prog. length = " + endPC);for (int i = 0; i < endPC; i++) { System.out.print(regexp.program[i]); if (i < (endPC - 1)) System.out.print(", ");}System.out.println();} regexp.parenCount = state.parenCount; return regexp; } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/10f7bc1e8d7b13b30c167a7687ada1d9a0c79b5e/NativeRegExp.java/buggy/js/rhino/src/org/mozilla/javascript/regexp/NativeRegExp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
4074,
862,
12,
1042,
9494,
16,
22780,
2146,
16,
18701,
514,
609,
16,
514,
2552,
16,
1250,
3569,
13,
565,
288,
3639,
2438,
20733,
7195,
273,
394,
2438,
20733,
5621,
3639,
7195,
18,
3168,
273,
609,
18,
869,
15936,
5621,
3639,
509,
769,
273,
609,
18,
2469,
5621,
3639,
509,
2943,
273,
374,
31,
3639,
309,
261,
6347,
480,
446,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2552,
18,
2469,
5621,
277,
27245,
288,
7734,
1149,
276,
273,
2552,
18,
3001,
861,
12,
77,
1769,
7734,
309,
261,
71,
422,
296,
75,
6134,
288,
10792,
2943,
5626,
6756,
5937,
67,
43,
6038,
31,
7734,
289,
469,
309,
261,
71,
422,
296,
77,
6134,
288,
10792,
2943,
5626,
6756,
5937,
67,
42,
11846,
31,
7734,
289,
469,
309,
261,
71,
422,
296,
81,
6134,
288,
10792,
2943,
5626,
6756,
5937,
67,
12845,
30690,
31,
7734,
289,
469,
288,
10792,
17887,
12,
71,
92,
16,
2146,
16,
27573,
315,
3576,
18,
5387,
18,
266,
18,
6420,
3113,
514,
18,
1132,
951,
12,
71,
10019,
7734,
289,
5411,
289,
3639,
289,
3639,
7195,
18,
7133,
273,
2943,
31,
3639,
12972,
1119,
919,
273,
394,
12972,
1119,
12,
17745,
18,
3168,
16,
769,
16,
2943,
16,
9494,
16,
2146,
1769,
3639,
309,
261,
15401,
597,
769,
405,
374,
13,
288,
430,
261,
4148,
13,
288,
3163,
18,
659,
18,
8222,
2932,
15401,
273,
11843,
397,
609,
397,
11143,
1769,
97,
5411,
919,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
4074,
862,
12,
1042,
9494,
16,
22780,
2146,
16,
18701,
514,
609,
16,
514,
2552,
16,
1250,
3569,
13,
565,
288,
3639,
2438,
20733,
7195,
273,
394,
2438,
20733,
5621,
3639,
7195,
18,
3168,
273,
609,
18,
869,
15936,
5621,
3639,
509,
769,
273,
609,
18,
2469,
5621,
3639,
509,
2943,
273,
374,
31,
3639,
309,
261,
6347,
480,
446,
13,
288,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
2552,
18,
2469,
5621,
277,
27245,
288,
7734,
1149,
276,
273,
2552,
18,
3001,
861,
12,
77,
1769,
7734,
309,
261,
71,
422,
296,
75,
6134,
288,
10792,
2943,
5626,
6756,
5937,
67,
43,
6038,
31,
7734,
289,
469,
309,
261,
71,
422,
296,
2
] |
if (fDTDEventHandler != null) { fDTDEventHandler.internalSubset(internalSubset); } | public void internalSubset(int internalSubset) throws Exception { // TODO if (fDTDEventHandler != null) { fDTDEventHandler.internalSubset(internalSubset); } } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/3bbd83a7bcddbc34357f71fe08eace8d74b9bc8f/DTDGrammar.java/clean/src/org/apache/xerces/validators/dtd/DTDGrammar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2713,
20315,
12,
474,
2713,
20315,
13,
1216,
1185,
288,
3639,
368,
2660,
3639,
309,
261,
74,
25728,
16402,
480,
446,
13,
288,
5411,
284,
25728,
16402,
18,
7236,
20315,
12,
7236,
20315,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2713,
20315,
12,
474,
2713,
20315,
13,
1216,
1185,
288,
3639,
368,
2660,
3639,
309,
261,
74,
25728,
16402,
480,
446,
13,
288,
5411,
284,
25728,
16402,
18,
7236,
20315,
12,
7236,
20315,
1769,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
rewind(_m354); | rewind(_m360); | protected final void mPRAGMA_CONTENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = PRAGMA_CONTENT; int _saveIndex; { { match(_tokenSet_10); } } { int _cnt358=0; _loop358: do { boolean synPredMatched354 = false; if (((LA(1)==':') && (_tokenSet_7.member(LA(2))) && (_tokenSet_7.member(LA(3))) && (_tokenSet_7.member(LA(4))))) { int _m354 = mark(); synPredMatched354 = true; inputState.guessing++; try { { match(':'); { match(_tokenSet_11); } } } catch (RecognitionException pe) { synPredMatched354 = false; } rewind(_m354); inputState.guessing--; } if ( synPredMatched354 ) { match(':'); } else { boolean synPredMatched357 = false; if (((LA(1)==':') && (LA(2)==':') && (_tokenSet_7.member(LA(3))) && (_tokenSet_7.member(LA(4))))) { int _m357 = mark(); synPredMatched357 = true; inputState.guessing++; try { { match(':'); match(':'); { match(_tokenSet_8); } } } catch (RecognitionException pe) { synPredMatched357 = false; } rewind(_m357); inputState.guessing--; } if ( synPredMatched357 ) { match(':'); match(':'); } else if ((_tokenSet_9.member(LA(1)))) { mCHAR(false); } else { if ( _cnt358>=1 ) { break _loop358; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } } _cnt358++; } while (true); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/942d71ceffee004821cc1b2e75c2538951c04027/XQueryLexer.java/clean/src/org/exist/xquery/parser/XQueryLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
727,
918,
312,
8025,
1781,
5535,
67,
9689,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
11770,
1781,
5535,
67,
9689,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
95,
202,
202,
95,
202,
202,
1916,
24899,
2316,
694,
67,
2163,
1769,
202,
202,
97,
202,
202,
97,
202,
202,
95,
202,
202,
474,
389,
13085,
4763,
28,
33,
20,
31,
202,
202,
67,
6498,
4763,
28,
30,
202,
202,
2896,
288,
1082,
202,
6494,
6194,
10391,
15400,
4763,
24,
273,
629,
31,
1082,
202,
430,
261,
12443,
2534,
12,
21,
13,
18920,
2497,
13,
597,
261,
67,
2316,
694,
67,
27,
18,
5990,
12,
2534,
12,
22,
20349,
597,
261,
67,
2316,
694,
67,
27,
18,
5990,
12,
2534,
12,
23,
20349,
597,
261,
67,
2316,
694,
67,
27,
18,
5990,
12,
2534,
12,
24,
3719,
20349,
288,
9506,
202,
474,
389,
81,
4763,
24,
273,
2267,
5621,
9506,
202,
11982,
10391,
15400,
4763,
24,
273,
638,
31,
9506,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
9506,
202,
698,
288,
6862,
202,
95,
6862,
202,
1916,
2668,
2497,
1769,
6862,
202,
95,
6862,
202,
1916,
24899,
2316,
694,
67,
2499,
1769,
6862,
202,
97,
6862,
202,
97,
9506,
202,
97,
9506,
202,
14683,
261,
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,
727,
918,
312,
8025,
1781,
5535,
67,
9689,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31,
509,
389,
10086,
33,
955,
18,
2469,
5621,
202,
202,
67,
88,
723,
273,
11770,
1781,
5535,
67,
9689,
31,
202,
202,
474,
389,
5688,
1016,
31,
9506,
202,
95,
202,
202,
95,
202,
202,
1916,
24899,
2316,
694,
67,
2163,
1769,
202,
202,
97,
202,
202,
97,
202,
202,
95,
202,
202,
474,
389,
13085,
4763,
28,
33,
20,
31,
202,
202,
67,
6498,
4763,
28,
30,
202,
202,
2896,
288,
1082,
202,
6494,
6194,
10391,
15400,
2
] |
packet.setDeliveryState(DELIVERY_STATE.SENT); | eventSenderLogger.log(Level.INFO, "An event is about to be send by thie module: " + this.myModule.getName()); | public void sendEventPacket(final ValidEventPacket eventPacket) { eventSenderLogger.entering(this.getClass().getName(), "sendEventPacket", new Object[] {eventPacket}); if (this.myModule.isActive() && (eventPacket != null)) { setChanged(); try { ValidEventPacket packet = new ValidEventPacket( this.myModule.getId(), eventPacket.getTimeStamp(), eventPacket.getSensorDataType(), eventPacket .getArgList()); packet.setDeliveryState(DELIVERY_STATE.SENT); eventSenderLogger.log(Level.INFO, "An event is about to be send by thie module: " + this.myModule.getName()); eventSenderLogger.log(ECGLevel.PACKET, packet.toString()); this.myModule.getSystemNotificator().fireEventNotification( packet); notifyObservers(packet); } catch (IllegalEventParameterException e) { clearChanged(); eventSenderLogger.log(Level.WARNING, "An exception occured while sending an event by the module: " + this.myModule.getName()); } clearChanged(); } eventSenderLogger.exiting(this.getClass().getName(), "sendEventPacket"); } | 239 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/239/30d312089a1db808c9b3c79f0de9985bc3edf493/Module.java/buggy/lab/ECG_Lab/src/org/electrocodeogram/module/Module.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1366,
1133,
6667,
12,
6385,
2364,
1133,
6667,
871,
6667,
13,
288,
5411,
871,
12021,
3328,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
7734,
315,
4661,
1133,
6667,
3113,
394,
1033,
8526,
288,
2575,
6667,
22938,
5411,
309,
261,
2211,
18,
4811,
3120,
18,
291,
3896,
1435,
597,
261,
2575,
6667,
480,
446,
3719,
288,
7734,
444,
5033,
5621,
7734,
775,
288,
10792,
2364,
1133,
6667,
4414,
273,
394,
2364,
1133,
6667,
12,
13491,
333,
18,
4811,
3120,
18,
26321,
9334,
871,
6667,
18,
588,
21536,
9334,
13491,
871,
6667,
18,
588,
22294,
6273,
9334,
871,
6667,
18701,
263,
588,
4117,
682,
10663,
10792,
871,
12021,
3328,
18,
1330,
12,
2355,
18,
5923,
16,
315,
979,
871,
353,
2973,
358,
506,
1366,
635,
286,
1385,
1605,
30,
315,
397,
333,
18,
4811,
3120,
18,
17994,
10663,
10792,
871,
12021,
3328,
18,
1330,
12,
2355,
18,
5923,
16,
13491,
315,
979,
871,
353,
2973,
358,
506,
1366,
635,
286,
1385,
1605,
30,
315,
4766,
3639,
397,
333,
18,
4811,
3120,
18,
17994,
10663,
10792,
871,
12021,
3328,
18,
1330,
12,
7228,
43,
2355,
18,
12231,
1584,
16,
4414,
18,
10492,
10663,
10792,
333,
18,
4811,
3120,
18,
588,
3163,
1248,
1507,
639,
7675,
12179,
1133,
4386,
12,
13491,
4414,
1769,
10792,
5066,
29393,
12,
11482,
1769,
7734,
289,
1044,
261,
12195,
1133,
14819,
425,
13,
288,
10792,
2424,
5033,
5621,
10792,
871,
12021,
3328,
18,
1330,
12,
2355,
18,
9511,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
1366,
1133,
6667,
12,
6385,
2364,
1133,
6667,
871,
6667,
13,
288,
5411,
871,
12021,
3328,
18,
2328,
310,
12,
2211,
18,
588,
797,
7675,
17994,
9334,
7734,
315,
4661,
1133,
6667,
3113,
394,
1033,
8526,
288,
2575,
6667,
22938,
5411,
309,
261,
2211,
18,
4811,
3120,
18,
291,
3896,
1435,
597,
261,
2575,
6667,
480,
446,
3719,
288,
7734,
444,
5033,
5621,
7734,
775,
288,
10792,
2364,
1133,
6667,
4414,
273,
394,
2364,
1133,
6667,
12,
13491,
333,
18,
4811,
3120,
18,
26321,
9334,
871,
6667,
18,
588,
21536,
9334,
13491,
871,
6667,
18,
588,
22294,
6273,
9334,
871,
6667,
18701,
263,
588,
4117,
682,
10663,
10792,
871,
12021,
3328,
18,
1330,
12,
2355,
18,
2
] |
public byte getByte(int columnIndex) throws SQLException { ColData data = getColumn(columnIndex); return ((Byte) Support.convert(data.getValue(), java.sql.Types.TINYINT, null)).byteValue(); } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/b577c620a26828be0e8aca80131dae52e1045422/JtdsResultSet.java/buggy/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/JtdsResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
20999,
12,
474,
14882,
13,
1216,
6483,
288,
3639,
1558,
751,
501,
273,
6716,
12,
2827,
1016,
1769,
7734,
327,
14015,
3216,
13,
13619,
18,
6283,
12,
892,
18,
24805,
9334,
2252,
18,
4669,
18,
2016,
18,
56,
31853,
3217,
16,
446,
13,
2934,
7229,
620,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1160,
20999,
12,
474,
14882,
13,
1216,
6483,
288,
3639,
1558,
751,
501,
273,
6716,
12,
2827,
1016,
1769,
7734,
327,
14015,
3216,
13,
13619,
18,
6283,
12,
892,
18,
24805,
9334,
2252,
18,
4669,
18,
2016,
18,
56,
31853,
3217,
16,
446,
13,
2934,
7229,
620,
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
] |
||
public DoubleViewBufferImpl (ByteBuffer bb, int offset, int capacity, int limit, int position, int mark, boolean readOnly) { super (limit, limit, offset, position); this.bb = bb; this.readOnly = readOnly; // FIXME: What if this is called from DoubleViewBufferImpl and ByteBuffer has changed its endianess ? this.endian = bb.order (); } | 25352 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25352/23364f5f5d1d269375d0651b0b04862710ed87b7/DoubleViewBufferImpl.java/buggy/libjava/gnu/java/nio/DoubleViewBufferImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3698,
1767,
1892,
2828,
261,
12242,
7129,
16,
509,
1384,
16,
509,
7519,
16,
1171,
9079,
509,
1800,
16,
509,
1754,
16,
509,
2267,
16,
1171,
9079,
1250,
15075,
13,
225,
288,
565,
2240,
261,
3595,
16,
1800,
16,
1384,
16,
1754,
1769,
565,
333,
18,
9897,
273,
7129,
31,
565,
333,
18,
896,
3386,
273,
15075,
31,
565,
368,
9852,
30,
18734,
309,
333,
353,
2566,
628,
3698,
1767,
1892,
2828,
471,
7400,
711,
3550,
2097,
14759,
403,
692,
565,
333,
18,
22910,
273,
7129,
18,
1019,
261,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3698,
1767,
1892,
2828,
261,
12242,
7129,
16,
509,
1384,
16,
509,
7519,
16,
1171,
9079,
509,
1800,
16,
509,
1754,
16,
509,
2267,
16,
1171,
9079,
1250,
15075,
13,
225,
288,
565,
2240,
261,
3595,
16,
1800,
16,
1384,
16,
1754,
1769,
565,
333,
18,
9897,
273,
7129,
31,
565,
333,
18,
896,
3386,
273,
15075,
31,
565,
368,
9852,
30,
18734,
309,
333,
353,
2566,
628,
3698,
1767,
1892,
2828,
471,
7400,
711,
3550,
2097,
14759,
403,
692,
565,
333,
18,
22910,
273,
7129,
18,
1019,
261,
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
] |
||
public ServerValue getServerValue(ServerPK pk) | public ServerValue getServerValue(Integer pk) | public ServerValue getServerValue(ServerPK pk) throws FinderException, NamingException { ServerValue vo = VOCache.getInstance().getServer(pk.getId()); if(vo != null) { return vo; } Server ejb = getServerDAO().findByPrimaryKey(pk); return getServerValue(ejb); } | 52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/5b5340cb0d18f5736d423826ddf9afcd22ec015f/ServerVOHelperEJBImpl.java/buggy/src/org/hyperic/hq/appdef/server/session/ServerVOHelperEJBImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3224,
620,
11543,
620,
12,
4522,
2365,
13,
540,
1216,
19307,
503,
16,
26890,
288,
3639,
3224,
620,
19993,
273,
776,
51,
1649,
18,
588,
1442,
7675,
588,
2081,
12,
5465,
18,
26321,
10663,
3639,
309,
12,
12307,
480,
446,
13,
288,
5411,
327,
19993,
31,
3639,
289,
3639,
3224,
18024,
273,
11543,
18485,
7675,
4720,
858,
11575,
12,
5465,
1769,
3639,
327,
11543,
620,
12,
73,
10649,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
3224,
620,
11543,
620,
12,
4522,
2365,
13,
540,
1216,
19307,
503,
16,
26890,
288,
3639,
3224,
620,
19993,
273,
776,
51,
1649,
18,
588,
1442,
7675,
588,
2081,
12,
5465,
18,
26321,
10663,
3639,
309,
12,
12307,
480,
446,
13,
288,
5411,
327,
19993,
31,
3639,
289,
3639,
3224,
18024,
273,
11543,
18485,
7675,
4720,
858,
11575,
12,
5465,
1769,
3639,
327,
11543,
620,
12,
73,
10649,
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
] |
} | private final int checkFreeList(VM_Address block, int sizeClass) { VM_Address cell; if (currentBlock.get(sizeClass).EQ(block)) cell = freeList.get(sizeClass); else cell = getFreeList(block); int freeCells = 0; if (block.EQ(DEBUG_BLOCK)) { VM.sysWrite(sizeClass); VM.sysWrite(" ("); } while (!cell.isZero()) { if (block.EQ(DEBUG_BLOCK)) { VM.sysWrite(cell); VM.sysWrite(" "); } freeCells++; if (!isFree(block, cell, sizeClass)) { VM.sysWrite("Extraneous free list entry: "); VM.sysWrite(cell); VM.sysWrite(" "); VM.sysWrite(block); VM.sysWrite("\n"); if (VM.VerifyAssertions) VM._assert(false); } if (freeCells > MAX_CELLS) { VM.sysWrite("Runaway freelist: "); VM.sysWrite(cell); VM.sysWrite(" "); VM.sysWrite(block); VM.sysWrite("\n"); if (VM.VerifyAssertions) VM._assert(false); } cell = getNextCell(cell); } if (block.EQ(DEBUG_BLOCK)) { VM.sysWrite(") "); } return freeCells; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/627c6873215387021a435e4621bc65136e818175/MarkSweepLocal.java/buggy/rvm/src/vm/memoryManagers/JMTk/policy/MarkSweepLocal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
509,
866,
9194,
682,
12,
7397,
67,
1887,
1203,
16,
509,
963,
797,
13,
288,
565,
8251,
67,
1887,
2484,
31,
565,
309,
261,
2972,
1768,
18,
588,
12,
1467,
797,
2934,
27247,
12,
2629,
3719,
1377,
2484,
273,
4843,
682,
18,
588,
12,
1467,
797,
1769,
565,
469,
1377,
2484,
273,
2812,
992,
682,
12,
2629,
1769,
565,
509,
4843,
10505,
273,
374,
31,
565,
309,
261,
2629,
18,
27247,
12,
9394,
67,
11403,
3719,
288,
1377,
8251,
18,
9499,
3067,
12,
1467,
797,
1769,
8251,
18,
9499,
3067,
2932,
7566,
1769,
3639,
1323,
16051,
3855,
18,
291,
7170,
10756,
288,
1377,
309,
261,
2629,
18,
27247,
12,
9394,
67,
11403,
3719,
288,
202,
7397,
18,
9499,
3067,
12,
3855,
1769,
8251,
18,
9499,
3067,
2932,
315,
1769,
5411,
4843,
10505,
9904,
31,
1377,
309,
16051,
291,
9194,
12,
2629,
16,
2484,
16,
963,
797,
3719,
288,
202,
7397,
18,
9499,
3067,
2932,
16229,
15522,
4843,
666,
1241,
30,
315,
1769,
202,
7397,
18,
9499,
3067,
12,
3855,
1769,
8251,
18,
9499,
3067,
2932,
315,
1769,
202,
7397,
18,
9499,
3067,
12,
2629,
1769,
8251,
18,
9499,
3067,
31458,
82,
8863,
202,
430,
261,
7397,
18,
8097,
8213,
1115,
13,
8251,
6315,
11231,
12,
5743,
1769,
5411,
309,
261,
9156,
10505,
405,
4552,
67,
28746,
3045,
13,
288,
202,
7397,
18,
9499,
3067,
2932,
1997,
26718,
22010,
5449,
30,
315,
1769,
202,
7397,
18,
9499,
3067,
12,
3855,
1769,
8251,
18,
9499,
3067,
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,
727,
509,
866,
9194,
682,
12,
7397,
67,
1887,
1203,
16,
509,
963,
797,
13,
288,
565,
8251,
67,
1887,
2484,
31,
565,
309,
261,
2972,
1768,
18,
588,
12,
1467,
797,
2934,
27247,
12,
2629,
3719,
1377,
2484,
273,
4843,
682,
18,
588,
12,
1467,
797,
1769,
565,
469,
1377,
2484,
273,
2812,
992,
682,
12,
2629,
1769,
565,
509,
4843,
10505,
273,
374,
31,
565,
309,
261,
2629,
18,
27247,
12,
9394,
67,
11403,
3719,
288,
1377,
8251,
18,
9499,
3067,
12,
1467,
797,
1769,
8251,
18,
9499,
3067,
2932,
7566,
1769,
3639,
1323,
16051,
3855,
18,
291,
7170,
10756,
288,
1377,
309,
261,
2629,
18,
27247,
12,
9394,
67,
11403,
3719,
288,
202,
7397,
2
] |
|
public Box layoutChildren(Context c, Box box) { /* resolved by ContentUtil if (LayoutUtil.isHiddenNode(box.getElement(), c)) { return box; }*/ List contentList = box.content.getChildContent(c); if (contentList.size() == 0) return box;//we can do this if there is no content, right? BlockBox block = (BlockBox) box;//I think this should work - tobe 2004-12-11 if (ContentUtil.isBlockContent(contentList)) {//this should be block layed out //BoxLayout.layoutContent(c, box, contentList, block); super.layoutChildren(c, box); } else { layoutContent(c, box, contentList, block); } return block; } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/5ae86d99f9d4c15ae44feb4a759289dfb63751cc/InlineLayout.java/buggy/src/java/org/xhtmlrenderer/layout/InlineLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8549,
3511,
4212,
12,
1042,
276,
16,
8549,
3919,
13,
288,
3639,
1748,
4640,
635,
3697,
1304,
309,
261,
3744,
1304,
18,
291,
9345,
907,
12,
2147,
18,
21336,
9334,
276,
3719,
288,
5411,
327,
3919,
31,
3639,
289,
5549,
3639,
987,
913,
682,
273,
3919,
18,
1745,
18,
588,
1763,
1350,
12,
71,
1769,
3639,
309,
261,
1745,
682,
18,
1467,
1435,
422,
374,
13,
327,
3919,
31,
759,
1814,
848,
741,
333,
309,
1915,
353,
1158,
913,
16,
2145,
35,
3639,
3914,
3514,
1203,
273,
261,
1768,
3514,
13,
3919,
31,
759,
45,
15507,
333,
1410,
1440,
300,
358,
2196,
4044,
24,
17,
2138,
17,
2499,
3639,
309,
261,
1350,
1304,
18,
291,
1768,
1350,
12,
1745,
682,
3719,
288,
759,
2211,
1410,
506,
1203,
328,
528,
329,
596,
5411,
368,
3514,
3744,
18,
6741,
1350,
12,
71,
16,
3919,
16,
913,
682,
16,
1203,
1769,
5411,
2240,
18,
6741,
4212,
12,
71,
16,
3919,
1769,
3639,
289,
469,
288,
5411,
3511,
1350,
12,
71,
16,
3919,
16,
913,
682,
16,
1203,
1769,
3639,
289,
3639,
327,
1203,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8549,
3511,
4212,
12,
1042,
276,
16,
8549,
3919,
13,
288,
3639,
1748,
4640,
635,
3697,
1304,
309,
261,
3744,
1304,
18,
291,
9345,
907,
12,
2147,
18,
21336,
9334,
276,
3719,
288,
5411,
327,
3919,
31,
3639,
289,
5549,
3639,
987,
913,
682,
273,
3919,
18,
1745,
18,
588,
1763,
1350,
12,
71,
1769,
3639,
309,
261,
1745,
682,
18,
1467,
1435,
422,
374,
13,
327,
3919,
31,
759,
1814,
848,
741,
333,
309,
1915,
353,
1158,
913,
16,
2145,
35,
3639,
3914,
3514,
1203,
273,
261,
1768,
3514,
13,
3919,
31,
759,
45,
15507,
333,
1410,
1440,
300,
358,
2196,
4044,
24,
17,
2138,
17,
2499,
3639,
309,
261,
1350,
1304,
18,
291,
1768,
1350,
2
] |
||
timer.scheduleAtFixedRate(new TimerTask() { public void run() { if (DEBUG) log.fine("Updating weather..." + new Date()); try { updateList(); } catch (Exception e) { log.log(Level.SEVERE, "Failed to update list", e); | timer.scheduleAtFixedRate(new TimerTask() { public void run() { if (DEBUG) log.fine("Updating weather..." + new Date()); try { updateList(); } catch (Exception e) { log.log(Level.SEVERE, "Failed to update list", e); } | public void reconnect() { if (!getProperties().isShowWeather()) return; disconnect(false); timer = new Timer(true);// updateList(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { if (DEBUG) log.fine("Updating weather..." + new Date()); try { updateList(); } catch (Exception e) { log.log(Level.SEVERE, "Failed to update list", e); } } }, 2000, 30*60*1000); // each half-hour } | 50053 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50053/ef7cbc9cc212040306be567f1c5983429ab0d8a0/WeatherConnection.java/buggy/java/core/com/itbs/aimcer/commune/weather/WeatherConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
11812,
1435,
288,
3639,
309,
16051,
588,
2297,
7675,
291,
5706,
3218,
4806,
10756,
5411,
327,
31,
3639,
9479,
12,
5743,
1769,
3639,
5441,
273,
394,
12290,
12,
3767,
1769,
759,
3639,
1089,
682,
5621,
3639,
5441,
18,
10676,
861,
24421,
12,
2704,
12290,
2174,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
7734,
309,
261,
9394,
13,
10792,
613,
18,
74,
558,
2932,
17858,
21534,
7070,
397,
394,
2167,
10663,
7734,
775,
288,
10792,
1089,
682,
5621,
7734,
289,
1044,
261,
503,
425,
13,
288,
10792,
613,
18,
1330,
12,
2355,
18,
1090,
2204,
41,
16,
315,
2925,
358,
1089,
666,
3113,
425,
1769,
7734,
289,
5411,
289,
3639,
19879,
16291,
16,
5196,
14,
4848,
14,
18088,
1769,
368,
1517,
8816,
17,
12091,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
11812,
1435,
288,
3639,
309,
16051,
588,
2297,
7675,
291,
5706,
3218,
4806,
10756,
5411,
327,
31,
3639,
9479,
12,
5743,
1769,
3639,
5441,
273,
394,
12290,
12,
3767,
1769,
759,
3639,
1089,
682,
5621,
3639,
5441,
18,
10676,
861,
24421,
12,
2704,
12290,
2174,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
7734,
309,
261,
9394,
13,
10792,
613,
18,
74,
558,
2932,
17858,
21534,
7070,
397,
394,
2167,
10663,
7734,
775,
288,
10792,
1089,
682,
5621,
7734,
289,
1044,
261,
503,
425,
13,
288,
10792,
613,
18,
1330,
12,
2355,
18,
1090,
2204,
41,
16,
315,
2925,
358,
1089,
666,
3113,
425,
1769,
7734,
289,
5411,
289,
3639,
19879,
16291,
16,
5196,
14,
4848,
2
] |
if (baseDir == null && filesets.size() == 0 && "zip".equals(archiveType)) | if (baseDir == null && filesets.size() == 0 && locFileSets.size() == 0 && "zip".equals(archiveType)) { | public void execute() throws BuildException { if (baseDir == null && filesets.size() == 0 && "zip".equals(archiveType)) throw new BuildException( "basedir attribute must be set, or at least " + "one fileset must be given!" ); if (zipFile == null) { throw new BuildException("You must specify the " + archiveType + " file to create!"); } Vector dss = new Vector (); if (baseDir != null) dss.addElement(getDirectoryScanner(baseDir)); for (int i=0; i<filesets.size(); i++) { FileSet fs = (FileSet) filesets.elementAt(i); dss.addElement (fs.getDirectoryScanner(project)); } int dssSize = dss.size(); FileScanner[] scanners = new FileScanner[dssSize + locFileSets.size()]; dss.copyInto(scanners); addScanners(scanners, dssSize, locFileSets); // quick exit if the target is up to date // can also handle empty archives if (isUpToDate(scanners, zipFile)) return; log("Building "+ archiveType +": "+ zipFile.getAbsolutePath()); try { ZipOutputStream zOut = new ZipOutputStream(new FileOutputStream(zipFile)); try { if (doCompress) { zOut.setMethod(ZipOutputStream.DEFLATED); } else { zOut.setMethod(ZipOutputStream.STORED); } initZipOutputStream(zOut); addPrefixedFiles(locFileSets, zOut); for (int j = 0; j < dssSize; j++) { addFiles(scanners[j], zOut, ""); } } finally { zOut.close (); } } catch (IOException ioe) { String msg = "Problem creating " + archiveType + ": " + ioe.getMessage(); // delete a bogus ZIP file if (!zipFile.delete()) { msg += " (and the archive is probably corrupt but I could not delete it)"; } throw new BuildException(msg, ioe, location); } } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/8e8c932108aba0e80e8c79aa8ec401d215a847ae/Zip.java/clean/src/main/org/apache/tools/ant/taskdefs/Zip.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
1216,
18463,
288,
3639,
309,
261,
1969,
1621,
422,
446,
597,
1390,
2413,
18,
1467,
1435,
422,
374,
597,
1515,
812,
2785,
18,
1467,
1435,
422,
374,
597,
315,
4450,
9654,
14963,
12,
10686,
559,
3719,
288,
5411,
604,
394,
18463,
12,
315,
31722,
1566,
1297,
506,
444,
16,
578,
622,
4520,
315,
397,
4766,
4202,
315,
476,
1390,
278,
1297,
506,
864,
4442,
11272,
3639,
309,
261,
4450,
812,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
6225,
1297,
4800,
326,
315,
397,
5052,
559,
397,
315,
585,
358,
752,
4442,
1769,
3639,
289,
3639,
5589,
302,
1049,
273,
394,
5589,
261,
1769,
3639,
309,
261,
1969,
1621,
480,
446,
13,
5411,
302,
1049,
18,
1289,
1046,
12,
588,
2853,
11338,
12,
1969,
1621,
10019,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
32,
2354,
2413,
18,
1467,
5621,
277,
27245,
288,
5411,
1387,
694,
2662,
273,
261,
812,
694,
13,
1390,
2413,
18,
2956,
861,
12,
77,
1769,
5411,
302,
1049,
18,
1289,
1046,
261,
2556,
18,
588,
2853,
11338,
12,
4406,
10019,
3639,
289,
3639,
509,
302,
1049,
1225,
273,
302,
1049,
18,
1467,
5621,
3639,
1387,
11338,
8526,
888,
19637,
273,
394,
1387,
11338,
63,
72,
1049,
1225,
397,
1515,
812,
2785,
18,
1467,
1435,
15533,
3639,
302,
1049,
18,
3530,
5952,
12,
1017,
19637,
1769,
3639,
527,
1541,
19637,
12,
1017,
19637,
16,
302,
1049,
1225,
16,
1515,
812,
2785,
1769,
3639,
368,
9549,
2427,
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,
1836,
1435,
1216,
18463,
288,
3639,
309,
261,
1969,
1621,
422,
446,
597,
1390,
2413,
18,
1467,
1435,
422,
374,
597,
1515,
812,
2785,
18,
1467,
1435,
422,
374,
597,
315,
4450,
9654,
14963,
12,
10686,
559,
3719,
288,
5411,
604,
394,
18463,
12,
315,
31722,
1566,
1297,
506,
444,
16,
578,
622,
4520,
315,
397,
4766,
4202,
315,
476,
1390,
278,
1297,
506,
864,
4442,
11272,
3639,
309,
261,
4450,
812,
422,
446,
13,
288,
5411,
604,
394,
18463,
2932,
6225,
1297,
4800,
326,
315,
397,
5052,
559,
397,
315,
585,
358,
752,
4442,
1769,
3639,
289,
3639,
5589,
302,
1049,
273,
394,
5589,
261,
1769,
3639,
309,
261,
1969,
1621,
480,
446,
13,
5411,
2
] |
} catch(Exception exc) { | } catch (Exception exc) { | public void run() { FileWindow w = new FileWindow(db, url, text); db.fileWindows.put(url, w); if(line != -1) { if(db.currentWindow != null) { db.currentWindow.setPosition(-1); } try { w.setPosition(w.textArea.getLineStartOffset(line-1)); } catch(BadLocationException exc) { w.setPosition(-1); } } db.desk.add(w); if(line != -1) { db.currentWindow = w; } db.menubar.addFile(url); w.setVisible(true); if(activate) { try { w.setMaximum(true); w.setSelected(true); w.moveToFront(); } catch(Exception exc) { } } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/5b760bc86060749267746b7d77c0c8da1d3b9c1d/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
1387,
3829,
341,
273,
394,
1387,
3829,
12,
1966,
16,
880,
16,
977,
1769,
3639,
1319,
18,
768,
10399,
18,
458,
12,
718,
16,
341,
1769,
3639,
309,
12,
1369,
480,
300,
21,
13,
288,
5411,
309,
12,
1966,
18,
2972,
3829,
480,
446,
13,
288,
7734,
1319,
18,
2972,
3829,
18,
542,
2555,
19236,
21,
1769,
5411,
289,
5411,
775,
288,
7734,
341,
18,
542,
2555,
12,
91,
18,
955,
5484,
18,
588,
1670,
1685,
2335,
12,
1369,
17,
21,
10019,
5411,
289,
1044,
12,
6434,
2735,
503,
3533,
13,
288,
7734,
341,
18,
542,
2555,
19236,
21,
1769,
5411,
289,
3639,
289,
3639,
1319,
18,
5489,
79,
18,
1289,
12,
91,
1769,
3639,
309,
12,
1369,
480,
300,
21,
13,
288,
5411,
1319,
18,
2972,
3829,
273,
341,
31,
3639,
289,
3639,
1319,
18,
27617,
373,
297,
18,
1289,
812,
12,
718,
1769,
3639,
341,
18,
542,
6207,
12,
3767,
1769,
3639,
309,
12,
10014,
13,
288,
5411,
775,
288,
7734,
341,
18,
542,
13528,
12,
3767,
1769,
7734,
341,
18,
542,
7416,
12,
3767,
1769,
7734,
341,
18,
8501,
774,
9580,
5621,
5411,
289,
1044,
261,
503,
3533,
13,
288,
5411,
289,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
1435,
288,
3639,
1387,
3829,
341,
273,
394,
1387,
3829,
12,
1966,
16,
880,
16,
977,
1769,
3639,
1319,
18,
768,
10399,
18,
458,
12,
718,
16,
341,
1769,
3639,
309,
12,
1369,
480,
300,
21,
13,
288,
5411,
309,
12,
1966,
18,
2972,
3829,
480,
446,
13,
288,
7734,
1319,
18,
2972,
3829,
18,
542,
2555,
19236,
21,
1769,
5411,
289,
5411,
775,
288,
7734,
341,
18,
542,
2555,
12,
91,
18,
955,
5484,
18,
588,
1670,
1685,
2335,
12,
1369,
17,
21,
10019,
5411,
289,
1044,
12,
6434,
2735,
503,
3533,
13,
288,
7734,
341,
18,
542,
2555,
19236,
21,
1769,
5411,
289,
3639,
289,
3639,
1319,
18,
5489,
79,
18,
1289,
12,
2
] |
return String.valueOf(element.isLinked()); | if (element.isLinked()) return IDEPropertiesMessages.ResourceProperty_true; return IDEPropertiesMessages.ResourceProperty_false; | public Object getPropertyValue(Object name) { if (name.equals(IBasicPropertyConstants.P_TEXT)) { return element.getName(); } if (name.equals(IResourcePropertyConstants.P_PATH_RES)) { return TextProcessor.process(element.getFullPath().toString()); } if (name.equals(IResourcePropertyConstants.P_LAST_MODIFIED_RES)) { return IDEResourceInfoUtils.getDateStringValue(element); } if (name.equals(IResourcePropertyConstants.P_EDITABLE_RES)) { final ResourceAttributes attributes = element.getResourceAttributes(); if (attributes == null || attributes.isReadOnly()) { return IDEPropertiesMessages.ResourceProperty_false; } return IDEPropertiesMessages.ResourceProperty_true; } if (name.equals(IResourcePropertyConstants.P_DERIVED_RES)) { return String.valueOf(element.isDerived()); } if (name.equals(IResourcePropertyConstants.P_LINKED_RES)) { return String.valueOf(element.isLinked()); } if (name.equals(IResourcePropertyConstants.P_LOCATION_RES)) { return TextProcessor.process(IDEResourceInfoUtils.getLocationText(element)); } if (name.equals(IResourcePropertyConstants.P_RESOLVED_LOCATION_RES)) { return TextProcessor.process(IDEResourceInfoUtils.getResolvedLocationText(element)); } return null; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/48814f3fd774c98204cc7ddc625bcaf81f1cb75d/ResourcePropertySource.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/properties/ResourcePropertySource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
21694,
12,
921,
508,
13,
288,
3639,
309,
261,
529,
18,
14963,
12,
45,
8252,
1396,
2918,
18,
52,
67,
5151,
3719,
288,
5411,
327,
930,
18,
17994,
5621,
3639,
289,
3639,
309,
261,
529,
18,
14963,
12,
45,
1420,
1396,
2918,
18,
52,
67,
4211,
67,
7031,
3719,
288,
5411,
327,
3867,
5164,
18,
2567,
12,
2956,
18,
588,
24173,
7675,
10492,
10663,
3639,
289,
3639,
309,
261,
529,
18,
14963,
12,
45,
1420,
1396,
2918,
18,
52,
67,
14378,
67,
21143,
67,
7031,
3719,
288,
5411,
327,
1599,
41,
1420,
966,
1989,
18,
588,
1626,
19733,
12,
2956,
1769,
3639,
289,
3639,
309,
261,
529,
18,
14963,
12,
45,
1420,
1396,
2918,
18,
52,
67,
10776,
2782,
67,
7031,
3719,
288,
5411,
727,
2591,
2498,
1677,
273,
930,
18,
588,
1420,
2498,
5621,
1082,
202,
430,
261,
4350,
422,
446,
747,
1677,
18,
291,
12066,
10756,
288,
9506,
202,
2463,
1599,
41,
2297,
5058,
18,
1420,
1396,
67,
5743,
31,
1082,
202,
97,
1875,
202,
2463,
1599,
41,
2297,
5058,
18,
1420,
1396,
67,
3767,
31,
3639,
289,
3639,
309,
261,
529,
18,
14963,
12,
45,
1420,
1396,
2918,
18,
52,
67,
30086,
67,
7031,
3719,
288,
5411,
327,
514,
18,
1132,
951,
12,
2956,
18,
291,
21007,
10663,
3639,
289,
3639,
309,
261,
529,
18,
14963,
12,
45,
1420,
1396,
2918,
18,
52,
67,
10554,
2056,
67,
7031,
3719,
288,
5411,
309,
261,
2956,
18,
291,
13174,
10756,
327,
1599,
41,
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,
21694,
12,
921,
508,
13,
288,
3639,
309,
261,
529,
18,
14963,
12,
45,
8252,
1396,
2918,
18,
52,
67,
5151,
3719,
288,
5411,
327,
930,
18,
17994,
5621,
3639,
289,
3639,
309,
261,
529,
18,
14963,
12,
45,
1420,
1396,
2918,
18,
52,
67,
4211,
67,
7031,
3719,
288,
5411,
327,
3867,
5164,
18,
2567,
12,
2956,
18,
588,
24173,
7675,
10492,
10663,
3639,
289,
3639,
309,
261,
529,
18,
14963,
12,
45,
1420,
1396,
2918,
18,
52,
67,
14378,
67,
21143,
67,
7031,
3719,
288,
5411,
327,
1599,
41,
1420,
966,
1989,
18,
588,
1626,
19733,
12,
2956,
1769,
3639,
289,
3639,
309,
261,
529,
18,
14963,
12,
45,
1420,
1396,
2918,
18,
52,
2
] |
wizardElement.getConfigurationElement() .getDeclaringExtension() .getUniqueIdentifier(), | contribution != null ? contribution.getPluginId() : null, | public void run() { Platform.run(new SafeRunnable() { /** * Add the exception details to status is one happens. */ public void handleException(Throwable e) { statuses[0] = new Status( IStatus.ERROR, wizardElement.getConfigurationElement() .getDeclaringExtension() .getUniqueIdentifier(), IStatus.OK, e.getMessage() == null ? "" : e.getMessage(), //$NON-NLS-1$, e); } public void run() { try { workbenchWizard[0] = createWizard(); // create instance of target wizard } catch (CoreException e) { statuses[0] = e.getStatus(); } } }); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3d694fa5580f66413fa910c2e54a03aaef1cec34/WorkbenchWizardNode.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchWizardNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
918,
1086,
1435,
288,
13491,
11810,
18,
2681,
12,
2704,
14060,
20013,
1435,
288,
18701,
1783,
11794,
380,
1436,
326,
1520,
3189,
358,
1267,
353,
1245,
10555,
18,
11794,
1195,
18701,
1071,
918,
20879,
12,
15155,
425,
13,
288,
27573,
13516,
63,
20,
65,
273,
394,
2685,
12,
4766,
3639,
467,
1482,
18,
3589,
16,
4766,
3639,
24204,
1046,
18,
588,
1750,
1046,
1435,
4766,
7734,
263,
588,
3456,
5968,
3625,
1435,
4766,
7734,
263,
588,
6303,
3004,
9334,
4766,
3639,
467,
1482,
18,
3141,
16,
4766,
3639,
425,
18,
24906,
1435,
422,
446,
692,
1408,
294,
425,
18,
24906,
9334,
4329,
3993,
17,
5106,
17,
21,
8,
16,
4766,
3639,
425,
1769,
18701,
289,
18701,
1071,
918,
1086,
1435,
288,
27573,
775,
288,
4766,
565,
1440,
22144,
27130,
63,
20,
65,
273,
752,
27130,
5621,
4766,
565,
368,
752,
791,
434,
1018,
24204,
27573,
289,
1044,
261,
25341,
425,
13,
288,
4766,
565,
13516,
63,
20,
65,
273,
425,
18,
588,
1482,
5621,
27573,
289,
18701,
289,
13491,
15549,
10792,
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
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
918,
1086,
1435,
288,
13491,
11810,
18,
2681,
12,
2704,
14060,
20013,
1435,
288,
18701,
1783,
11794,
380,
1436,
326,
1520,
3189,
358,
1267,
353,
1245,
10555,
18,
11794,
1195,
18701,
1071,
918,
20879,
12,
15155,
425,
13,
288,
27573,
13516,
63,
20,
65,
273,
394,
2685,
12,
4766,
3639,
467,
1482,
18,
3589,
16,
4766,
3639,
24204,
1046,
18,
588,
1750,
1046,
1435,
4766,
7734,
263,
588,
3456,
5968,
3625,
1435,
4766,
7734,
263,
588,
6303,
3004,
9334,
4766,
3639,
467,
1482,
18,
3141,
16,
4766,
3639,
425,
18,
24906,
1435,
422,
446,
692,
1408,
294,
425,
18,
24906,
9334,
4329,
3993,
17,
5106,
17,
21,
8,
16,
4766,
3639,
425,
1769,
18701,
289,
18701,
1071,
2
] |
protected UMOException() | public UMOException(Message message) | protected UMOException() { super(); initialise(); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/30ba3663e1f04e51db95f8ac0773774628934478/UMOException.java/clean/mule/src/java/org/mule/umo/UMOException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
503,
12,
1079,
883,
13,
565,
288,
3639,
2240,
5621,
3639,
21301,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
587,
5980,
503,
12,
1079,
883,
13,
565,
288,
3639,
2240,
5621,
3639,
21301,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits