rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
public org.quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { org.quickfix.field.PartyIDSource value = new org.quickfix.field.PartyIDSource();
public quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { quickfix.field.PartyIDSource value = new quickfix.field.PartyIDSource();
public org.quickfix.field.PartyIDSource getPartyIDSource() throws FieldNotFound { org.quickfix.field.PartyIDSource value = new org.quickfix.field.PartyIDSource(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Confirmation.java/clean/src/java/src/quickfix/fix44/Confirmation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 1689, 7325, 734, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 1689, 7325, 734, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 17619, 734, 1830, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
superType = runtime.getClasses().getObjectClass();
superType = getRuntime().getClasses().getObjectClass();
public void inheritedBy(RubyClass superType) { if (superType == null) { superType = runtime.getClasses().getObjectClass(); } superType.callMethod("inherited", this); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyClass.java/clean/src/org/jruby/RubyClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12078, 858, 12, 54, 10340, 797, 26701, 13, 288, 3639, 309, 261, 9565, 559, 422, 446, 13, 288, 5411, 26701, 273, 18814, 7675, 588, 4818, 7675, 588, 921, 797, 5621, 3639, 289, 3639, 26701, 18, 1991, 1305, 2932, 6018, 329, 3113, 333, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12078, 858, 12, 54, 10340, 797, 26701, 13, 288, 3639, 309, 261, 9565, 559, 422, 446, 13, 288, 5411, 26701, 273, 18814, 7675, 588, 4818, 7675, 588, 921, 797, 5621, 3639, 289, 3639, 26701, 18, 1991, 1305, 2932, 6018, 329, 3113, 333, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (jj_scan_token(EQ)) return true;
if (jj_3R_285()) return true;
final private boolean jj_3R_276() { if (jj_scan_token(EQ)) return true; return false; }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/3afd4630754ba5d6642f3e8a1c9aa5162eff7e9f/JavaParser.java/buggy/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 3238, 1250, 10684, 67, 23, 54, 67, 5324, 26, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 6030, 25, 10756, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5324, 26, 1435, 288, 565, 309, 261, 78, 78, 67, 23, 54, 67, 6030, 25, 10756, 327, 638, 31, 565, 327, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
try { resourceBundle = ResourceBundle.getBundle("org.eclipse.ajdt.core.resources.AspectJPluginResources"); } catch (MissingResourceException x) { resourceBundle = null; }
public AspectJPlugin() { super(); plugin = this; try { resourceBundle = ResourceBundle.getBundle("org.eclipse.ajdt.core.resources.AspectJPluginResources"); //$NON-NLS-1$ } catch (MissingResourceException x) { resourceBundle = null; } }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/d37b65f370e1265ed16a839e38c1d4ff17497ce7/AspectJPlugin.java/clean/org.eclipse.ajdt.core/src/org/eclipse/ajdt/core/AspectJPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2970, 1181, 46, 3773, 1435, 288, 202, 202, 9565, 5621, 202, 202, 4094, 273, 333, 31, 202, 202, 698, 288, 1082, 202, 3146, 3405, 273, 19198, 18, 588, 3405, 2932, 3341, 18, 20416, 18, 4365, 7510, 18, 3644, 18, 4683, 18, 17468, 46, 3773, 3805, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 1044, 261, 4841, 14785, 619, 13, 288, 1082, 202, 3146, 3405, 273, 446, 31, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2970, 1181, 46, 3773, 1435, 288, 202, 202, 9565, 5621, 202, 202, 4094, 273, 333, 31, 202, 202, 698, 288, 1082, 202, 3146, 3405, 273, 19198, 18, 588, 3405, 2932, 3341, 18, 20416, 18, 4365, 7510, 18, 3644, 18, 4683, 18, 17468, 46, 3773, 3805, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 1044, 261, 4841, 14785, 619, 13, 288, 1082, 202, 3146, 3405, 273, 446, 31, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
out.println ("new tab"); out.println ("<select name=\"tab\">");
out.println ("new column"); out.println ("<select name=\"column\">");
public void writePersonalizeLayoutPage (HttpServletRequest req, HttpServletResponse res, JspWriter out) { try { // Hard coded for now, but eventually // retrieve available channels from database Vector vChannels = new Vector (); vChannels.addElement ("ABC News"); vChannels.addElement ("My Bookmarks"); vChannels.addElement ("Horoscope"); vChannels.addElement ("My Applications"); vChannels.addElement ("Page Renderer"); vChannels.addElement ("Scoreboard"); vChannels.addElement ("Search"); vChannels.addElement ("Weather"); // List available channels out.println ("<table border=0 width=100% cellspacing=0 cellpadding=0>"); out.println ("<tr bgcolor=#dddddd>"); out.println ("<td>"); for (int i = 0; i < vChannels.size () / 2; i++) out.println ("<input type=checkbox name=\"channel" + i + "\">" + (String) vChannels.elementAt (i) + "<br>"); out.println ("</td>"); out.println ("<td>"); for (int i = vChannels.size () / 2 + 1; i < vChannels.size (); i++) out.println ("<input type=checkbox name=\"channel" + i + "\">" + (String) vChannels.elementAt (i) + "<br>"); out.println ("</td>"); out.println ("</tr>"); out.println ("</table><br>"); IXml layoutXml = getLayoutXml (req, getUserName (req)); ILayout layout = (ILayout) layoutXml.getRoot (); // Get Tabs ITab[] tabs = layout.getTabs (); // Add new channels out.println ("<input type=submit name=\"\" value=\"Add\">"); out.println ("checked channels to Tab "); out.println ("<select name=\"tab\">"); for (int iTab = 0; iTab < tabs.length; iTab++) out.println ("<option>" + (iTab + 1) + "</option>"); out.println ("</select>"); out.println ("Column "); out.println ("<select name=\"column\">"); // Find the max number of columns in any tab int iMaxCol = 0; for (int iTab = 0; iTab < tabs.length; iTab++) { IColumn[] columns = tabs[iTab].getColumns (); for (int iCol = 1; iCol <= columns.length; iCol++) { if (iCol > iMaxCol) iMaxCol = iCol; } } for (int iCol = 0; iCol < iMaxCol; iCol++) out.println ("<option>" + (iCol + 1) + "</option>"); out.println ("</select>"); out.println ("<hr noshade>"); // Add a new tab out.println ("<form action=\"personalizeLayout.jsp\" method=post>"); out.println ("<input type=hidden name=\"action\" value=\"addTab\">"); out.println ("<input type=submit name=\"submit\" value=\"Add\">"); out.println ("new tab"); out.println ("<select name=\"tab\">"); for (int iTab = 0; iTab < tabs.length; iTab++) out.println ("<option value=\"" + iTab + "\">before tab " + (iTab + 1) + "</option>"); out.println ("<option value=\"" + tabs.length + "\" selected>at the end</option>"); out.println ("</select>"); out.println ("</form>"); out.println ("<hr noshade>"); String sTabName = null; for (int iTab = 0; iTab < tabs.length; iTab++) { sTabName = tabs[iTab].getAttribute ("name"); out.println ("<form action=\"personalizeLayout.jsp\" method=post>"); out.println ("Tab " + (iTab + 1) +": "); // Rename tab out.println ("<input type=hidden name=\"action\" value=\"renameTab\">"); out.println ("<input type=hidden name=\"tab\" value=\"" + iTab + "\">"); out.println ("<input type=text name=\"tabName\" value=\"" + sTabName + "\">"); out.println ("<input type=submit name=\"submit\" value=\"Rename\">"); // Move tab down if (iTab < tabs.length - 1) { out.println ("<a href=\"personalizeLayout.jsp?action=moveTabDown&tab=" + iTab + "\">"); out.println ("<img src=\"images/down.gif\" border=0 alt=\"Move tab down\"></a>"); } // Remove tab out.println ("<a href=\"personalizeLayout.jsp?action=removeTab&tab=" + iTab + "\">"); out.println ("<img src=\"images/remove.gif\" border=0 alt=\"Remove tab\"></a>"); // Move tab up if (iTab > 0) { out.println ("<a href=\"personalizeLayout.jsp?action=moveTabUp&tab=" + iTab + "\">"); out.println ("<img src=\"images/up.gif\" border=0 alt=\"Move tab up\"></a>"); } // Set tab as default int iDefaultTab; try { iDefaultTab = Integer.parseInt (layout.getActiveTabAttribute ()); } catch (NumberFormatException ne) { iDefaultTab = 0; } out.println ("<input type=radio name=\"defaultTab\" onClick=\"location='personalizeLayout.jsp?action=setDefaultTab&tab=" + iTab + "'\"" + (iDefaultTab == iTab ? " checked" : "") + ">Set as default"); out.println ("</form>"); // Get the columns for this tab IColumn[] columns = tabs[iTab].getColumns (); // Fill columns with channels out.println ("<table border=0 cellpadding=3 cellspacing=3>"); out.println ("<tr bgcolor=#dddddd>"); for (int iCol = 0; iCol < columns.length; iCol++) { out.println ("<td>"); out.println ("Column " + (iCol + 1)); // Move column left if (iCol > 0) { out.println ("<a href=\"personalizeLayout.jsp?action=moveColumnLeft&tab=" + iTab + "&column=" + iCol + "\">"); out.println ("<img src=\"images/left.gif\" border=0 alt=\"Move column left\"></a>"); } // Remove column out.println ("<a href=\"personalizeLayout.jsp?action=removeColumn&tab=" + iTab + "&column=" + iCol + "\">"); out.println ("<img src=\"images/remove.gif\" border=0 alt=\"Remove column\"></a>"); // Move column right if (iCol < columns.length - 1) { out.println ("<a href=\"personalizeLayout.jsp?action=moveColumnRight&tab=" + iTab + "&column=" + iCol + "\">"); out.println ("<img src=\"images/right.gif\" border=0 alt=\"Move column right\"></a>"); } // Column width String sWidth = columns[iCol].getAttribute ("width"); String sDisplayWidth = sWidth; if (sWidth.endsWith ("%")) sDisplayWidth = sWidth.substring(0, sWidth.length () - 1); out.println ("<br>"); out.println ("Width "); out.println ("<input type=text name=\"\" value=\"" + sDisplayWidth + "\" size=4>"); out.println ("<select name=\"\">"); out.println ("<option" + (sWidth.endsWith ("%") ? "" : " selected") + ">Pixels</option>"); out.println ("<option" + (sWidth.endsWith ("%") ? " selected" : "") + ">%</option>"); out.println ("</select>"); out.println ("<hr noshade>"); out.println ("<form name=\"channels" + iTab + "_" + iCol + "\" action=\"personalizeLayout.jsp\" method=post>"); out.println ("<table><tr>"); out.println ("<td>"); out.println ("<select name=\"channel\" size=10>"); // Get the channels for this column org.jasig.portal.layout.IChannel[] channels = columns[iCol].getChannels (); // List channels for this column for (int iChan = 0; iChan < channels.length; iChan++) { org.jasig.portal.IChannel ch = getChannelInstance (channels[iChan]); out.println ("<option value=\"" + iChan + "\">" + ch.getName () + "</option>"); } out.println ("</select>"); out.println ("</td>"); out.println ("<td>"); // Move channel up out.println ("<a href=\"javascript:getActionAndSubmit (document.channels"+ iTab +"_" + iCol + ", 'moveChannelUp')\"><img src=\"images/up.gif\" border=0 alt=\"Move channel up\"></a><br><br>"); // Remove channel out.println ("<a href=\"javascript:getActionAndSubmit (document.channels"+ iTab +"_" + iCol + ", 'removeChannel')\"><img src=\"images/remove.gif\" border=0 alt=\"Remove channel\"></a><br><br>"); // Move channel down out.println ("<a href=\"javascript:getActionAndSubmit (document.channels"+ iTab +"_" + iCol + ", 'moveChannelDown')\"><img src=\"images/down.gif\" border=0 alt=\"Move channel down\"></a>"); out.println ("</td>"); out.println ("</tr></table>"); out.println ("<input type=hidden name=\"tab\" value=\"" + iTab + "\">"); out.println ("<input type=hidden name=\"column\" value=\"" + iCol + "\">"); out.println ("<input type=hidden name=\"action\" value=\"none\">"); out.println ("</form>"); out.println ("</td>"); } out.println ("</tr>"); out.println ("</table>"); // Add a new column for this tab out.println ("<form action=\"personalizeLayout.jsp\" method=post>"); out.println ("<input type=hidden name=\"tab\" value=\"" + iTab + "\">"); out.println ("<input type=hidden name=\"action\" value=\"addColumn\">"); out.println ("<input type=submit name=\"submit\" value=\"Add\">"); out.println ("new column"); out.println ("<select name=\"column\">"); for (int iCol = 0; iCol < columns.length; iCol++) out.println ("<option value=" + iCol + ">before column " + (iCol + 1) + "</option>"); out.println ("<option value=" + columns.length + "selected>at the end</option>"); out.println ("</select>"); out.println ("</form>"); out.println ("<br><br>"); out.println ("<hr noshade>"); } // end for Tabs } catch (Exception e) { e.printStackTrace (); } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/19685c69ecbd64f2210f66111757e2523bc3ef28/LayoutBean.java/clean/source/org/jasig/portal/LayoutBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 8346, 287, 554, 3744, 1964, 261, 2940, 18572, 1111, 16, 12446, 400, 16, 19300, 2289, 596, 13, 225, 288, 3639, 775, 377, 288, 4202, 368, 670, 1060, 29512, 364, 2037, 16, 1496, 18011, 1377, 368, 4614, 2319, 5750, 628, 2063, 1377, 5589, 331, 10585, 273, 394, 5589, 261, 1769, 1377, 331, 10585, 18, 1289, 1046, 7566, 26904, 27061, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 12062, 20258, 17439, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 44, 280, 538, 71, 1306, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 12062, 4257, 87, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 1964, 17589, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 7295, 3752, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 2979, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 3218, 4806, 8863, 5411, 368, 987, 2319, 5750, 1377, 596, 18, 8222, 7566, 32, 2121, 5795, 33, 20, 1835, 33, 6625, 9, 2484, 14080, 33, 20, 2484, 9598, 33, 20, 2984, 1769, 1377, 596, 18, 8222, 7566, 32, 313, 31509, 33, 7, 449, 449, 449, 2984, 1769, 1377, 596, 18, 8222, 7566, 32, 4465, 2984, 1769, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 331, 10585, 18, 1467, 1832, 342, 576, 31, 277, 27245, 3639, 596, 18, 8222, 7566, 32, 2630, 618, 33, 12017, 508, 5189, 4327, 6, 397, 277, 397, 7023, 2984, 397, 261, 780, 13, 331, 10585, 18, 2956, 861, 261, 77, 13, 397, 3532, 2848, 2984, 1769, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 8346, 287, 554, 3744, 1964, 261, 2940, 18572, 1111, 16, 12446, 400, 16, 19300, 2289, 596, 13, 225, 288, 3639, 775, 377, 288, 4202, 368, 670, 1060, 29512, 364, 2037, 16, 1496, 18011, 1377, 368, 4614, 2319, 5750, 628, 2063, 1377, 5589, 331, 10585, 273, 394, 5589, 261, 1769, 1377, 331, 10585, 18, 1289, 1046, 7566, 26904, 27061, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 12062, 20258, 17439, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 44, 280, 538, 71, 1306, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 12062, 4257, 87, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 1964, 17589, 8863, 1377, 331, 10585, 18, 1289, 1046, 7566, 7295, 3752, 8863, 1377, 2 ]
sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " )" + " left outer join pg_description e on" + " (" + " e.objoid = a.attrelid");
String getDescriptionStatement = connection.haveMinimumServerVersion("7.2") ? "select col_description(" + r.getInt(1) + "," + r.getInt(5) + ")" : "select description from pg_description where objoid=" + r.getInt(1);
public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet 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, "COLUMN_NAME", iVarcharOid, 32); f[ 4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[ 5] = new Field(connection, "TYPE_NAME", iVarcharOid, 32); f[ 6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[ 7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, 32); f[ 8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[ 9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, 32); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, 32); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, 32); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid,4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, 32); StringBuffer sql = new StringBuffer(512); sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + " e.description " + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " )" + " left outer join pg_description e on" + " (" + " e.objoid = a.attrelid"); if (connection.haveMinimumServerVersion("7.2")) { sql.append( " and e.objsubid = a.attnum" + " and e.classoid = (select oid from pg_class where relname = \'pg_class\')"); } sql.append( " ) " + "order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = "".getBytes(); // Catalog name tuple[1] = "".getBytes(); // Schema name tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length tuple[8] = "0".getBytes(); // Decimal Digits - how to get this? tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); }
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/6b50f9af333a2795b82dd3331df55c7e703f1bea/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, 14226, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 7578, 3234, 13, 1216, 6483, 225, 288, 565, 5589, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 202, 974, 284, 8526, 273, 394, 2286, 63, 2643, 15533, 202, 202, 759, 1021, 652, 14215, 364, 326, 394, 10842, 565, 284, 63, 374, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 404, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 576, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 890, 65, 273, 394, 2286, 12, 4071, 16, 315, 11009, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 1059, 65, 273, 394, 2286, 12, 4071, 16, 315, 4883, 67, 2399, 3113, 277, 1702, 22, 19105, 16, 576, 1769, 565, 284, 63, 1381, 65, 273, 394, 2286, 12, 4071, 16, 315, 2399, 67, 1985, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 1666, 65, 273, 394, 2286, 12, 4071, 16, 315, 11009, 67, 4574, 3113, 277, 1702, 24, 19105, 16, 1059, 1769, 565, 284, 63, 2371, 65, 273, 394, 2286, 12, 4071, 16, 315, 11302, 67, 7096, 3113, 277, 58, 22483, 19105, 16, 3847, 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, 14226, 12, 780, 6222, 16, 514, 1963, 3234, 16, 514, 4775, 3234, 16, 514, 7578, 3234, 13, 1216, 6483, 225, 288, 565, 5589, 331, 273, 394, 5589, 5621, 202, 202, 759, 1021, 394, 10842, 3193, 10769, 202, 974, 284, 8526, 273, 394, 2286, 63, 2643, 15533, 202, 202, 759, 1021, 652, 14215, 364, 326, 394, 10842, 565, 284, 63, 374, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 14130, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 404, 65, 273, 394, 2286, 12, 4071, 16, 315, 7775, 67, 55, 10390, 3113, 277, 58, 22483, 19105, 16, 3847, 1769, 565, 284, 63, 576, 65, 273, 394, 2286, 12, 2 ]
}, Locale.getDefault( )
}, ULocale.getDefault( )
public final IAggregateFunction getAggregateFunction( String sName ) throws ChartException { if ( inEclipseEnv( ) ) { final Object oAggregateFunction = getPluginXmlObject( "aggregatefunctions", "aggregateFunction", "name", "function", //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ sName ); if ( oAggregateFunction != null ) { logger.log( ILogger.INFORMATION, Messages.getString( "info.eclenv.creating.function", //$NON-NLS-1$ new Object[]{ sName, oAggregateFunction.getClass( ) .getName( ) }, Locale.getDefault( ) // LOCALE? ) ); return (IAggregateFunction) oAggregateFunction; } logger.log( ILogger.FATAL, Messages.getString( "error.eclenv.cannot.find.function", //$NON-NLS-1$ new Object[]{ sName }, Locale.getDefault( ) // LOCALE? ) ); } else { for ( int i = 0; i < saAggregateFunctions.length; i++ ) { if ( saAggregateFunctions[i][0].equalsIgnoreCase( sName ) ) { logger.log( ILogger.INFORMATION, Messages.getString( "info.stdenv.creating.function", //$NON-NLS-1$ new Object[]{ sName, saAggregateFunctions[i][1] }, Locale.getDefault( ) // LOCALE? ) ); return (IAggregateFunction) newInstance( saAggregateFunctions[i][1] ); } } logger.log( ILogger.FATAL, Messages.getString( "error.stdenv.cannot.find.function", //$NON-NLS-1$ new Object[]{ sName }, Locale.getDefault( ) // LOCALE? ) ); } return null; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ae8909f5c697c610266e491d0af9a02eed14e2e4/PluginSettings.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/util/PluginSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 467, 11490, 2083, 336, 11490, 2083, 12, 514, 14933, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 430, 261, 316, 23057, 10472, 3491, 12, 262, 262, 202, 202, 95, 1082, 202, 6385, 1033, 320, 11490, 2083, 273, 16319, 4432, 921, 12, 315, 18573, 10722, 3113, 315, 18573, 2083, 3113, 315, 529, 3113, 315, 915, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 4329, 3993, 17, 5106, 17, 23, 8, 4329, 3993, 17, 5106, 17, 24, 8, 6862, 202, 87, 461, 11272, 1082, 202, 430, 261, 320, 11490, 2083, 480, 446, 262, 1082, 202, 95, 9506, 202, 4901, 18, 1330, 12, 467, 3328, 18, 706, 23805, 16, 25083, 202, 5058, 18, 588, 780, 12, 315, 1376, 18, 557, 1897, 90, 18, 23799, 18, 915, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 9506, 202, 2704, 1033, 63, 7073, 6862, 25083, 202, 87, 461, 16, 6862, 25083, 202, 83, 11490, 2083, 18, 588, 797, 12, 262, 6862, 6862, 9506, 202, 18, 17994, 12, 262, 6862, 9506, 202, 5779, 29145, 18, 588, 1868, 12, 262, 368, 31005, 35, 6862, 9506, 202, 13, 11272, 9506, 202, 2463, 261, 45, 11490, 2083, 13, 320, 11490, 2083, 31, 1082, 202, 97, 1082, 202, 4901, 18, 1330, 12, 467, 3328, 18, 29891, 16, 6862, 202, 5058, 18, 588, 780, 12, 315, 1636, 18, 557, 1897, 90, 18, 12892, 18, 4720, 18, 915, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 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, 467, 11490, 2083, 336, 11490, 2083, 12, 514, 14933, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 430, 261, 316, 23057, 10472, 3491, 12, 262, 262, 202, 202, 95, 1082, 202, 6385, 1033, 320, 11490, 2083, 273, 16319, 4432, 921, 12, 315, 18573, 10722, 3113, 315, 18573, 2083, 3113, 315, 529, 3113, 315, 915, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 4329, 3993, 17, 5106, 17, 23, 8, 4329, 3993, 17, 5106, 17, 24, 8, 6862, 202, 87, 461, 11272, 1082, 202, 430, 261, 320, 11490, 2083, 480, 446, 262, 1082, 202, 95, 9506, 202, 4901, 18, 1330, 12, 467, 3328, 18, 706, 23805, 16, 2 ]
if (containingFile==null || containingFile.getFileType()!=StdFileTypes.XML) return;
if (containingFile==null || containingFile.getFileType() != StdFileTypes.XML) return;
public static void doValidation(final PsiElement context, final Validator.ValidationHost host) { final PsiFile containingFile = context.getContainingFile(); if (containingFile==null || containingFile.getFileType()!=StdFileTypes.XML) return; final Project project = context.getProject(); ExternalDocumentValidator validator = project.getUserData(validatorInstanceKey); if(validator==null) { validator = new ExternalDocumentValidator(); project.putUserData(validatorInstanceKey,validator); } validator.runJaxpValidation((XmlElement)context,host); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/ef39ea5ced4b9e7d47ffc0ec3ff95fa350cb3130/ExternalDocumentValidator.java/buggy/source/com/intellij/xml/impl/ExternalDocumentValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 741, 4354, 12, 6385, 453, 7722, 1046, 819, 16, 727, 9150, 18, 4354, 2594, 1479, 13, 288, 565, 727, 453, 7722, 812, 4191, 812, 273, 819, 18, 588, 24344, 812, 5621, 565, 309, 261, 1213, 3280, 812, 631, 2011, 747, 4191, 812, 18, 588, 28941, 1435, 480, 6276, 812, 2016, 18, 4201, 13, 327, 31, 565, 727, 5420, 1984, 273, 819, 18, 588, 4109, 5621, 565, 11352, 2519, 5126, 4213, 273, 1984, 18, 588, 19265, 12, 7357, 1442, 653, 1769, 565, 309, 12, 7357, 631, 2011, 13, 288, 1377, 4213, 273, 394, 11352, 2519, 5126, 5621, 1377, 1984, 18, 458, 19265, 12, 7357, 1442, 653, 16, 7357, 1769, 565, 289, 565, 4213, 18, 2681, 46, 651, 84, 4354, 12443, 4432, 1046, 13, 2472, 16, 2564, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 760, 918, 741, 4354, 12, 6385, 453, 7722, 1046, 819, 16, 727, 9150, 18, 4354, 2594, 1479, 13, 288, 565, 727, 453, 7722, 812, 4191, 812, 273, 819, 18, 588, 24344, 812, 5621, 565, 309, 261, 1213, 3280, 812, 631, 2011, 747, 4191, 812, 18, 588, 28941, 1435, 480, 6276, 812, 2016, 18, 4201, 13, 327, 31, 565, 727, 5420, 1984, 273, 819, 18, 588, 4109, 5621, 565, 11352, 2519, 5126, 4213, 273, 1984, 18, 588, 19265, 12, 7357, 1442, 653, 1769, 565, 309, 12, 7357, 631, 2011, 13, 288, 1377, 4213, 273, 394, 11352, 2519, 5126, 5621, 1377, 1984, 18, 458, 19265, 12, 7357, 1442, 653, 16, 7357, 1769, 565, 289, 565, 4213, 18, 2681, 46, 2 ]
public static IWorkspaceRoot getWorkspaceRoot() throws CoreException, IOException{
public static IWorkspaceRoot getWorkspaceRoot() throws CoreException, IOException, InvocationTargetException, InterruptedException{
public static IWorkspaceRoot getWorkspaceRoot() throws CoreException, IOException{ if(!isSetup) setupWorkspace(); return workspaceRoot; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bf11fd6cb40973a1c5532abb964c7f6924d8678d/WorkspaceSetupHelper.java/clean/org.eclipse.mylyn.context.tests/src/org/eclipse/mylyn/core/tests/support/WorkspaceSetupHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 8241, 2375, 20280, 2375, 1435, 1216, 30015, 16, 1860, 95, 202, 202, 430, 12, 5, 291, 7365, 13, 1082, 202, 8401, 8241, 5621, 202, 202, 2463, 6003, 2375, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 8241, 2375, 20280, 2375, 1435, 1216, 30015, 16, 1860, 95, 202, 202, 430, 12, 5, 291, 7365, 13, 1082, 202, 8401, 8241, 5621, 202, 202, 2463, 6003, 2375, 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 ]
AbstractPMDRecord addedRec = (AbstractPMDRecord) additions.get(i); if (addedRec instanceof FileRecord) treeViewer.add(addedRec.getParent(), addedRec); else treeViewer.add(root, addedRec);
final AbstractPMDRecord addedRec = (AbstractPMDRecord) additions.get(i); if (addedRec instanceof FileRecord) { this.treeViewer.add(addedRec.getParent(), addedRec); } else { this.treeViewer.add(this.root, addedRec); }
protected void updateViewer(ArrayList additions, ArrayList removals, ArrayList changes) { // perform removals if (removals.size() > 0) { treeViewer.cancelEditing(); treeViewer.remove(removals.toArray()); } // perform additions if (additions.size() > 0) { for (int i = 0; i < additions.size(); i++) { AbstractPMDRecord addedRec = (AbstractPMDRecord) additions.get(i); if (addedRec instanceof FileRecord) treeViewer.add(addedRec.getParent(), addedRec); else treeViewer.add(root, addedRec); } } // perform changes if (changes.size() > 0) { treeViewer.update(changes.toArray(), null); } violationView.refresh(); }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/0220fe980e3770fcd44203fc8bf853938e794a3f/ViolationOverviewContentProvider.java/buggy/pmd-eclipse-ui/src/net/sourceforge/pmd/ui/views/ViolationOverviewContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1089, 18415, 12, 19558, 26260, 16, 2407, 2797, 1031, 16, 2407, 3478, 13, 288, 3639, 368, 3073, 2797, 1031, 3639, 309, 261, 2764, 1527, 1031, 18, 1467, 1435, 405, 374, 13, 288, 5411, 2151, 18415, 18, 10996, 28029, 5621, 5411, 2151, 18415, 18, 4479, 12, 2764, 1527, 1031, 18, 31447, 10663, 3639, 289, 3639, 368, 3073, 26260, 3639, 309, 261, 1289, 5029, 18, 1467, 1435, 405, 374, 13, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 26260, 18, 1467, 5621, 277, 27245, 288, 7734, 4115, 52, 6188, 2115, 3096, 5650, 273, 261, 7469, 52, 6188, 2115, 13, 26260, 18, 588, 12, 77, 1769, 7734, 309, 261, 9665, 5650, 1276, 1387, 2115, 13, 10792, 2151, 18415, 18, 1289, 12, 9665, 5650, 18, 588, 3054, 9334, 3096, 5650, 1769, 7734, 469, 10792, 2151, 18415, 18, 1289, 12, 3085, 16, 3096, 5650, 1769, 5411, 289, 3639, 289, 3639, 368, 3073, 3478, 3639, 309, 261, 6329, 18, 1467, 1435, 405, 374, 13, 288, 5411, 2151, 18415, 18, 2725, 12, 6329, 18, 31447, 9334, 446, 1769, 3639, 289, 3639, 17893, 1767, 18, 9144, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1089, 18415, 12, 19558, 26260, 16, 2407, 2797, 1031, 16, 2407, 3478, 13, 288, 3639, 368, 3073, 2797, 1031, 3639, 309, 261, 2764, 1527, 1031, 18, 1467, 1435, 405, 374, 13, 288, 5411, 2151, 18415, 18, 10996, 28029, 5621, 5411, 2151, 18415, 18, 4479, 12, 2764, 1527, 1031, 18, 31447, 10663, 3639, 289, 3639, 368, 3073, 26260, 3639, 309, 261, 1289, 5029, 18, 1467, 1435, 405, 374, 13, 288, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 26260, 18, 1467, 5621, 277, 27245, 288, 7734, 4115, 52, 6188, 2115, 3096, 5650, 273, 261, 7469, 52, 6188, 2115, 13, 26260, 18, 588, 12, 77, 1769, 7734, 309, 261, 9665, 5650, 1276, 1387, 2115, 13, 10792, 2 ]
public void run() { // create instance of target wizard INewWizard wizard; try { wizard = (INewWizard)wizardElement.createExecutableExtension(); } catch (CoreException e) { ErrorDialog.openError( workbench.getActiveWorkbenchWindow().getShell(), WorkbenchMessages.getString("NewWizardShortcutAction.errorTitle"), //$NON-NLS-1$ WorkbenchMessages.getString("NewWizardShortcutAction.errorMessage"), //$NON-NLS-1$ e.getStatus()); return; } ISelection selection = workbench.getActiveWorkbenchWindow().getSelectionService().getSelection(); IStructuredSelection selectionToPass = StructuredSelection.EMPTY; if (selection instanceof IStructuredSelection) { selectionToPass = wizardElement.adaptedSelection((IStructuredSelection) selection); } else { // Build the selection from the IFile of the editor IWorkbenchPart part = workbench.getActiveWorkbenchWindow().getPartService().getActivePart(); if (part instanceof IEditorPart) { IEditorInput input = ((IEditorPart)part).getEditorInput(); if (input instanceof IFileEditorInput) { selectionToPass = new StructuredSelection(((IFileEditorInput)input).getFile()); } } } wizard.init(workbench, selectionToPass); Shell parent = workbench.getActiveWorkbenchWindow().getShell(); WizardDialog dialog = new WizardDialog(parent, wizard); dialog.create(); WorkbenchHelp.setHelp(dialog.getShell(), IHelpContextIds.NEW_WIZARD_SHORTCUT); dialog.open();}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/a5e9d96a633a2e68075cf2d5705ccdfbc38ef413/NewWizardShortcutAction.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/NewWizardShortcutAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1086, 1435, 288, 202, 759, 752, 791, 434, 1018, 24204, 202, 706, 359, 27130, 24204, 31, 202, 698, 288, 202, 202, 31837, 273, 261, 706, 359, 27130, 13, 31837, 1046, 18, 2640, 17709, 3625, 5621, 202, 97, 1044, 261, 25341, 425, 13, 288, 202, 202, 668, 6353, 18, 3190, 668, 12, 1082, 202, 1252, 22144, 18, 588, 3896, 2421, 22144, 3829, 7675, 588, 13220, 9334, 1082, 202, 2421, 22144, 5058, 18, 588, 780, 2932, 1908, 27130, 15576, 1803, 18, 1636, 4247, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2421, 22144, 5058, 18, 588, 780, 2932, 1908, 27130, 15576, 1803, 18, 1636, 1079, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 73, 18, 588, 1482, 10663, 202, 202, 2463, 31, 202, 97, 202, 45, 6233, 4421, 273, 1440, 22144, 18, 588, 3896, 2421, 22144, 3829, 7675, 588, 6233, 1179, 7675, 588, 6233, 5621, 202, 45, 30733, 6233, 4421, 774, 6433, 273, 7362, 2862, 6233, 18, 13625, 31, 202, 430, 261, 10705, 1276, 467, 30733, 6233, 13, 288, 202, 202, 10705, 774, 6433, 273, 24204, 1046, 18, 19195, 329, 6233, 12443, 45, 30733, 6233, 13, 4421, 1769, 202, 97, 469, 288, 202, 202, 759, 3998, 326, 4421, 628, 326, 467, 812, 434, 326, 4858, 202, 202, 45, 2421, 22144, 1988, 1087, 273, 1440, 22144, 18, 588, 3896, 2421, 22144, 3829, 7675, 588, 1988, 1179, 7675, 588, 3896, 1988, 5621, 202, 202, 430, 261, 2680, 1276, 467, 6946, 1988, 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, 1071, 918, 1086, 1435, 288, 202, 759, 752, 791, 434, 1018, 24204, 202, 706, 359, 27130, 24204, 31, 202, 698, 288, 202, 202, 31837, 273, 261, 706, 359, 27130, 13, 31837, 1046, 18, 2640, 17709, 3625, 5621, 202, 97, 1044, 261, 25341, 425, 13, 288, 202, 202, 668, 6353, 18, 3190, 668, 12, 1082, 202, 1252, 22144, 18, 588, 3896, 2421, 22144, 3829, 7675, 588, 13220, 9334, 1082, 202, 2421, 22144, 5058, 18, 588, 780, 2932, 1908, 27130, 15576, 1803, 18, 1636, 4247, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2421, 22144, 5058, 18, 588, 780, 2932, 1908, 27130, 15576, 1803, 18, 1636, 1079, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2 ]
ProjectBrowser pb = ProjectBrowser.getInstance();
public boolean shouldBeEnabled() { super.shouldBeEnabled(); ProjectBrowser pb = ProjectBrowser.getInstance(); Project p = ProjectManager.getManager().getCurrentProject(); return (p != null && p.needsSave() && p.getURL() != null); }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/f2038af9eb19d12caa5dbb4dab4a525f73226282/ActionRevertToSaved.java/clean/src_new/org/argouml/uml/ui/ActionRevertToSaved.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1410, 1919, 1526, 1435, 288, 3639, 2240, 18, 13139, 1919, 1526, 5621, 9079, 5420, 293, 273, 5420, 1318, 18, 588, 1318, 7675, 588, 3935, 4109, 5621, 3639, 327, 261, 84, 480, 446, 597, 293, 18, 20600, 4755, 1435, 597, 293, 18, 588, 1785, 1435, 480, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1250, 1410, 1919, 1526, 1435, 288, 3639, 2240, 18, 13139, 1919, 1526, 5621, 9079, 5420, 293, 273, 5420, 1318, 18, 588, 1318, 7675, 588, 3935, 4109, 5621, 3639, 327, 261, 84, 480, 446, 597, 293, 18, 20600, 4755, 1435, 597, 293, 18, 588, 1785, 1435, 480, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (markerPriority == IMarker.PRIORITY_HIGH)
if (markerPriority == IMarker.PRIORITY_HIGH) {
private boolean selectByPriority(TaskMarker marker) { if (priority != 0 && selectByPriority) { int markerPriority = marker.getPriority(); if (markerPriority == IMarker.PRIORITY_HIGH) return (priority & PRIORITY_HIGH) > 0; else if (markerPriority == IMarker.PRIORITY_NORMAL) return (priority & PRIORITY_NORMAL) > 0; else if (markerPriority == IMarker.PRIORITY_LOW) return (priority & PRIORITY_LOW) > 0; } return true; }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e38d295ea613cf9f08aadb93a84a33d2e91abc5f/TaskFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TaskFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 2027, 858, 8183, 12, 2174, 7078, 5373, 13, 288, 202, 202, 430, 261, 8457, 480, 374, 597, 2027, 858, 8183, 13, 288, 1082, 202, 474, 5373, 8183, 273, 5373, 18, 588, 8183, 5621, 1082, 202, 430, 261, 11145, 8183, 422, 467, 7078, 18, 19804, 67, 29996, 13, 9506, 202, 2463, 261, 8457, 473, 30193, 67, 29996, 13, 405, 374, 31, 1082, 202, 12107, 309, 261, 11145, 8183, 422, 467, 7078, 18, 19804, 67, 15480, 13, 9506, 202, 2463, 261, 8457, 473, 30193, 67, 15480, 13, 405, 374, 31, 1082, 202, 12107, 309, 261, 11145, 8183, 422, 467, 7078, 18, 19804, 67, 4130, 13, 9506, 202, 2463, 261, 8457, 473, 30193, 67, 4130, 13, 405, 374, 31, 202, 202, 97, 202, 202, 2463, 638, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 1152, 1250, 2027, 858, 8183, 12, 2174, 7078, 5373, 13, 288, 202, 202, 430, 261, 8457, 480, 374, 597, 2027, 858, 8183, 13, 288, 1082, 202, 474, 5373, 8183, 273, 5373, 18, 588, 8183, 5621, 1082, 202, 430, 261, 11145, 8183, 422, 467, 7078, 18, 19804, 67, 29996, 13, 9506, 202, 2463, 261, 8457, 473, 30193, 67, 29996, 13, 405, 374, 31, 1082, 202, 12107, 309, 261, 11145, 8183, 422, 467, 7078, 18, 19804, 67, 15480, 13, 9506, 202, 2463, 261, 8457, 473, 30193, 67, 15480, 13, 405, 374, 31, 1082, 202, 12107, 309, 261, 11145, 8183, 422, 467, 7078, 18, 19804, 67, 4130, 13, 9506, 202, 2463, 261, 8457, 473, 30193, 67, 4130, 13, 405, 374, 2 ]
optionForm = option.addChild("form", new String[] { "action", "method" }, new String[] { "/queue/", "post" });
optionForm = ctx.addFormChild(option, "/queue/", "tooBigQueueForm");
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { //String ks = uri.toString(); String ks = uri.getPath(); HTTPRequest httprequest = new HTTPRequest(uri); if (ks.equals("/")) { if (httprequest.isParameterSet("key")) { MultiValueTable headers = new MultiValueTable(); String k = httprequest.getParam("key"); FreenetURI newURI; try { newURI = new FreenetURI(k); } catch (MalformedURLException e) { sendErrorPage(ctx, 404, "Not found", "Invalid key"); return; } headers.put("Location", "/"+newURI); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } RedirectException re = new RedirectException(); try { String querystring = uri.getQuery(); if (querystring == null) { re.newuri = welcome; } else { // TODP possibly a proper URLEncode method querystring = querystring.replace(' ', '+'); re.newuri = new URI("/welcome/?"+querystring); } } catch (URISyntaxException e) { // HUH!?! } throw re; }else if(ks.equals("/favicon.ico")){ byte[] buf = new byte[1024]; int len; InputStream strm = getClass().getResourceAsStream("staticfiles/favicon.ico"); if (strm == null) { this.sendErrorPage(ctx, 404, "Path not found", "The specified path does not exist."); return; } ctx.sendReplyHeaders(200, "OK", null, "image/x-icon", strm.available()); while ( (len = strm.read(buf)) > 0) { ctx.writeData(buf, 0, len); } return; } if(ks.startsWith("/")) ks = ks.substring(1); long maxSize = httprequest.getLongParam("max-size", MAX_LENGTH); FreenetURI key; try { key = new FreenetURI(ks); } catch (MalformedURLException e) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("Invalid key"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode errorInfobox = contentNode.addChild("div", "class", "infobox infobox-error"); errorInfobox.addChild("div", "class", "infobox-header", "Invalid key"); HTMLNode errorContent = errorInfobox.addChild("div", "class", "infobox-content"); errorContent.addChild("#", "Expected a freenet key, but got "); errorContent.addChild("code", ks); errorContent.addChild("br"); errorContent.addChild(ctx.getPageMaker().createBackLink(ctx)); errorContent.addChild("br"); errorContent.addChild("a", new String[] { "href", "title" }, new String[] { "/", "Node homepage" }, "Homepage"); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 400, "text/html", "Invalid key", pageBuffer.toString()); return; } String requestedMimeType = httprequest.getParam("type", null); String override = (requestedMimeType == null) ? "" : "?type="+URLEncoder.encode(requestedMimeType); try { if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "FProxy fetching "+key+" ("+maxSize+ ')'); FetchResult result = fetch(key, maxSize); // Now, is it safe? Bucket data = result.asBucket(); String mimeType = result.getMimeType(); String referer = sanitizeReferer(ctx); handleDownload(ctx, data, ctx.getBucketFactory(), mimeType, requestedMimeType, httprequest.getParam("force", null), httprequest.isParameterSet("forcedownload"), "/", key, maxSize != MAX_LENGTH ? "&max-size="+maxSize : "", referer); } catch (FetchException e) { String msg = e.getMessage(); String extra = ""; if(e.mode == FetchException.NOT_ENOUGH_PATH_COMPONENTS) { this.writePermanentRedirect(ctx, "Not enough meta-strings", '/' + key.toString(false) + '/' + override); } else if(e.newURI != null) { this.writePermanentRedirect(ctx, msg, '/' +e.newURI.toString() + override); } else if(e.mode == FetchException.TOO_BIG) { HTMLNode pageNode = ctx.getPageMaker().getPageNode("File information"); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-information"); infobox.addChild("div", "class", "infobox-header", "Large file"); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); HTMLNode fileInformationList = infoboxContent.addChild("ul"); HTMLNode option = fileInformationList.addChild("li"); option.addChild("#", "Filename: "); option.addChild("a", "href", '/' + key.toString(false), getFilename(e, key, e.getExpectedMimeType())); boolean finalized = e.finalizedSize(); if(e.expectedSize > 0) { if (finalized) { fileInformationList.addChild("li", "Size: " + SizeUtil.formatSize(e.expectedSize)); } else { fileInformationList.addChild("li", "Size: " + SizeUtil.formatSize(e.expectedSize) + " (may change)"); } } else { fileInformationList.addChild("li", "Size: unknown"); } String mime = e.getExpectedMimeType(); if(mime != null) { if (finalized) { fileInformationList.addChild("li", "MIME type: " + mime); } else { fileInformationList.addChild("li", "Expected MIME type: " + mime); } } else { fileInformationList.addChild("li", "MIME type: unknown"); } infobox = contentNode.addChild("div", "class", "infobox infobox-information"); infobox.addChild("div", "class", "infobox-header", "Explanation"); infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild("#", "The Freenet key you requested refers to a large file. Files of this size cannot generally be sent directly to your browser since they take too long for your Freenet node to retrieve. The following options are available:"); HTMLNode optionList = infoboxContent.addChild("ul"); option = optionList.addChild("li"); HTMLNode optionForm = option.addChild("form", new String[] { "action", "method" }, new String[] {'/' + key.toString(false), "get" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "max-size", String.valueOf(e.expectedSize == -1 ? Long.MAX_VALUE : e.expectedSize*2) }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "fetch", "Fetch anyway and display file in browser" }); option = optionList.addChild("li"); optionForm = option.addChild("form", new String[] { "action", "method" }, new String[] { "/queue/", "post" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "key", key.toString(false) }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "return-type", "disk" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "persistence", "forever" }); optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", core.formPassword }); if (mime != null) { optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "type", mime }); } optionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "download", "Download in background and store in downloads directory" }); optionList.addChild("li").addChild("a", new String[] { "href", "title" }, new String[] { "/", "FProxy home page" }, "Abort and return to the FProxy home page"); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); } else { if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; HTMLNode pageNode = ctx.getPageMaker().getPageNode(FetchException.getShortMessage(e.mode)); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); HTMLNode infobox = contentNode.addChild("div", "class", "infobox infobox-error"); infobox.addChild("div", "class", "infobox-header", FetchException.getShortMessage(e.mode)); HTMLNode infoboxContent = infobox.addChild("div", "class", "infobox-content"); infoboxContent.addChild("#", "Error: " + msg + extra); infoboxContent.addChild("br"); infoboxContent.addChild(ctx.getPageMaker().createBackLink(ctx)); infoboxContent.addChild("br"); infoboxContent.addChild("a", new String[] { "href", "title" }, new String[] { "/", "Node homepage" }, "Homepage"); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", FetchException.getShortMessage(e.mode), pageBuffer.toString()); } } catch (SocketException e) { // Probably irrelevant if(e.getMessage().equals("Broken pipe")) { if(Logger.shouldLog(Logger.MINOR, this)) Logger.minor(this, "Caught "+e+" while handling GET", e); } else { Logger.normal(this, "Caught "+e); } throw e; } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + HTMLEncoder.encode(sw.toString()) + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/7b992ac7b46f4eaaf97e9e0e1b7e5c18e1c89deb/FProxyToadlet.java/clean/src/freenet/clients/http/FProxyToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1875, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 759, 780, 11654, 273, 2003, 18, 10492, 5621, 202, 202, 780, 11654, 273, 2003, 18, 588, 743, 5621, 9506, 202, 23891, 1062, 2293, 273, 394, 25238, 12, 1650, 1769, 9506, 202, 430, 261, 7904, 18, 14963, 2932, 4898, 3719, 288, 1082, 202, 430, 261, 2022, 1484, 456, 18, 291, 1662, 694, 2932, 856, 6, 3719, 288, 9506, 202, 5002, 620, 1388, 1607, 273, 394, 5991, 620, 1388, 5621, 6862, 9506, 202, 780, 417, 273, 1062, 2293, 18, 588, 786, 2932, 856, 8863, 9506, 202, 42, 2842, 278, 3098, 394, 3098, 31, 9506, 202, 698, 288, 6862, 202, 2704, 3098, 273, 394, 478, 2842, 278, 3098, 12, 79, 1769, 9506, 202, 97, 1044, 261, 18695, 20160, 425, 13, 288, 6862, 202, 4661, 668, 1964, 12, 5900, 16, 7709, 16, 315, 1248, 1392, 3113, 315, 1941, 498, 8863, 6862, 202, 2463, 31, 9506, 202, 97, 6862, 9506, 202, 2485, 18, 458, 2932, 2735, 3113, 4016, 15, 2704, 3098, 1769, 9506, 202, 5900, 18, 4661, 7817, 3121, 12, 23, 3103, 16, 315, 2043, 3113, 1607, 16, 446, 16, 374, 1769, 9506, 202, 2463, 31, 1082, 202, 97, 25083, 202, 5961, 503, 283, 273, 394, 9942, 503, 5621, 1082, 202, 698, 288, 9506, 202, 780, 20741, 273, 2003, 18, 588, 1138, 5621, 6862, 9506, 202, 430, 261, 2271, 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, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1875, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 759, 780, 11654, 273, 2003, 18, 10492, 5621, 202, 202, 780, 11654, 273, 2003, 18, 588, 743, 5621, 9506, 202, 23891, 1062, 2293, 273, 394, 25238, 12, 1650, 1769, 9506, 202, 430, 261, 7904, 18, 14963, 2932, 4898, 3719, 288, 1082, 202, 430, 261, 2022, 1484, 456, 18, 291, 1662, 694, 2932, 856, 6, 3719, 288, 9506, 202, 5002, 620, 1388, 1607, 273, 394, 5991, 620, 1388, 5621, 6862, 9506, 202, 780, 417, 273, 1062, 2293, 18, 588, 786, 2932, 856, 8863, 9506, 202, 42, 2842, 2 ]
void setHorizontalScrollBar() { ScrollBar horizontalBar = getHorizontalBar(); if (horizontalBar != null && horizontalBar.getVisible()) { final int INACTIVE = 1; Rectangle clientArea = getClientArea(); // only set the real values if the scroll bar can be used // (ie. because the thumb size is less than the scroll maximum) // avoids flashing on Motif, fixes 1G7RE1J and 1G5SE92 if (clientArea.width < lineCache.getWidth()) { horizontalBar.setValues( horizontalBar.getSelection(), horizontalBar.getMinimum(), lineCache.getWidth(), // maximum clientArea.width - leftMargin - rightMargin, // thumb size horizontalBar.getIncrement(), clientArea.width - leftMargin - rightMargin); // page size } else if (horizontalBar.getThumb() != INACTIVE || horizontalBar.getMaximum() != INACTIVE) { horizontalBar.setValues( horizontalBar.getSelection(), horizontalBar.getMinimum(), INACTIVE, INACTIVE, horizontalBar.getIncrement(), INACTIVE); } }}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/7117cfb48f0c539f4f0ecc632631104a7c1fa380/StyledText2.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 918, 542, 14457, 6806, 5190, 1435, 95, 202, 6806, 5190, 18396, 5190, 33, 588, 14457, 5190, 5621, 202, 202, 430, 12, 18396, 5190, 5, 33, 2011, 10, 10, 18396, 5190, 18, 588, 6207, 10756, 95, 202, 202, 6385, 474, 706, 13301, 33, 21, 31, 202, 202, 19463, 2625, 5484, 33, 588, 1227, 5484, 5621, 202, 202, 759, 3700, 542, 18664, 287, 2372, 430, 451, 742, 2693, 3215, 4169, 2196, 3668, 202, 202, 759, 12, 1385, 18, 70, 26881, 407, 546, 546, 3592, 1467, 291, 1040, 20244, 304, 451, 742, 2693, 15724, 13, 202, 202, 759, 842, 21061, 13440, 310, 265, 24749, 430, 16, 904, 281, 21, 43, 27, 862, 21, 46, 464, 21, 43, 25, 1090, 9975, 202, 202, 430, 12, 2625, 5484, 18, 2819, 32, 1369, 1649, 18, 588, 2384, 10756, 95, 1082, 202, 18396, 5190, 18, 542, 1972, 12, 9506, 202, 18396, 5190, 18, 588, 6233, 9334, 9506, 202, 18396, 5190, 18, 588, 13042, 9334, 9506, 202, 1369, 1649, 18, 588, 2384, 9334, 6862, 1082, 202, 759, 15724, 9506, 202, 2625, 5484, 18, 2819, 17, 4482, 9524, 17, 4083, 9524, 16, 202, 759, 21639, 1467, 9506, 202, 18396, 5190, 18, 588, 10798, 9334, 9506, 202, 2625, 5484, 18, 2819, 17, 4482, 9524, 17, 4083, 9524, 1769, 202, 759, 7267, 554, 202, 202, 97, 202, 202, 12107, 202, 202, 430, 12, 18396, 5190, 18, 588, 18922, 1435, 5, 33, 706, 13301, 20081, 18396, 5190, 18, 588, 13528, 1435, 5, 33, 706, 13301, 15329, 1082, 202, 18396, 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, 918, 542, 14457, 6806, 5190, 1435, 95, 202, 6806, 5190, 18396, 5190, 33, 588, 14457, 5190, 5621, 202, 202, 430, 12, 18396, 5190, 5, 33, 2011, 10, 10, 18396, 5190, 18, 588, 6207, 10756, 95, 202, 202, 6385, 474, 706, 13301, 33, 21, 31, 202, 202, 19463, 2625, 5484, 33, 588, 1227, 5484, 5621, 202, 202, 759, 3700, 542, 18664, 287, 2372, 430, 451, 742, 2693, 3215, 4169, 2196, 3668, 202, 202, 759, 12, 1385, 18, 70, 26881, 407, 546, 546, 3592, 1467, 291, 1040, 20244, 304, 451, 742, 2693, 15724, 13, 202, 202, 759, 842, 21061, 13440, 310, 265, 24749, 430, 16, 904, 281, 21, 43, 27, 862, 21, 46, 464, 21, 43, 25, 1090, 9975, 202, 202, 2 ]
setText(Messages.getString( MENU_LABEL )); setToolTipText(Messages.getString( MENU_TOOLTIP ));
setText(DiagramActionsResourceManager.getI18NString( MENU_LABEL )); setToolTipText(DiagramActionsResourceManager.getI18NString( MENU_TOOLTIP ));
public ZOrderMenuAction() { setText(Messages.getString( MENU_LABEL )); setToolTipText(Messages.getString( MENU_TOOLTIP )); }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/8cde65fc058a9faaf847d04bf9b28594ea600f8f/ZOrderMenuManager.java/clean/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.actions/src/org/eclipse/gmf/runtime/diagram/ui/actions/internal/ZOrderMenuManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 2285, 2448, 4599, 1803, 1435, 288, 1082, 202, 542, 1528, 12, 5058, 18, 588, 780, 12, 490, 1157, 57, 67, 13545, 262, 1769, 1082, 202, 542, 29250, 1528, 12, 5058, 18, 588, 780, 12, 490, 1157, 57, 67, 26263, 56, 2579, 262, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 2285, 2448, 4599, 1803, 1435, 288, 1082, 202, 542, 1528, 12, 5058, 18, 588, 780, 12, 490, 1157, 57, 67, 13545, 262, 1769, 1082, 202, 542, 29250, 1528, 12, 5058, 18, 588, 780, 12, 490, 1157, 57, 67, 26263, 56, 2579, 262, 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 ]
public TripleAFrame(IGame game, Set players) throws IOException { super("TripleA"); m_game = game; game.getMessenger().addErrorListener(m_messengerErrorListener); m_data = game.getData(); m_localPlayers = players; game.getTranscript().addTranscriptListener(m_transcriptListener); this.addWindowListener(WINDOW_LISTENER); createMenuBar(); System.out.print("Loading unit images"); long now = System.currentTimeMillis(); UnitIconImageFactory.instance().load(this); System.out.println(" done:" + (((double) System.currentTimeMillis() - now) / 1000.0) + "s");; System.out.print("Loading flag images"); now = System.currentTimeMillis(); FlagIconImageFactory.instance().load(this); System.out.println(" done:" + (((double) System.currentTimeMillis() - now) / 1000.0) + "s"); System.out.print("Loading maps"); now = System.currentTimeMillis(); MapImage.getInstance().loadMaps(m_data); Image small = MapImage.getInstance().getSmallMapImage(); m_smallView = new ImageScrollerSmallView(small); Image large = MapImage.getInstance().getLargeMapImage(); m_mapPanel = new MapPanel(large,m_data, m_smallView); m_mapPanel.addMapSelectionListener(MAP_SELECTION_LISTENER); System.out.println(" done:" + (((double) System.currentTimeMillis() - now) / 1000.0) + "s"); ImageScrollControl control = new ImageScrollControl(m_mapPanel, m_smallView); this.getContentPane().setLayout(new BorderLayout()); this.getContentPane().add(m_message, BorderLayout.SOUTH); JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); mainPanel.add(m_mapPanel, BorderLayout.CENTER); JPanel rightHandSide = new JPanel(); rightHandSide.setLayout(new BorderLayout()); rightHandSide.add(m_smallView, BorderLayout.NORTH); JTabbedPane tabs = new JTabbedPane(); rightHandSide.add(tabs, BorderLayout.CENTER); m_actionButtons = new ActionButtons(m_data, m_mapPanel, this); tabs.addTab( "Actions", m_actionButtons); StatPanel stats = new StatPanel(m_data); tabs.addTab("Stats", stats); rightHandSide.setPreferredSize(new Dimension((int) m_smallView.getPreferredSize().getWidth(), (int) m_mapPanel.getPreferredSize().getHeight())); mainPanel.add(rightHandSide, BorderLayout.EAST); this.getContentPane().add(mainPanel, BorderLayout.CENTER); }
8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/65dc97c8bd1d73da6a21d79d5ad468e6bb971a9b/TripleAFrame.java/clean/src/games/strategy/triplea/ui/TripleAFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 28173, 37, 3219, 12, 3047, 339, 7920, 16, 1000, 18115, 13, 1216, 1860, 202, 95, 202, 202, 9565, 2932, 28166, 37, 8863, 9506, 202, 81, 67, 13957, 273, 7920, 31, 9506, 202, 13957, 18, 588, 29329, 7675, 1289, 668, 2223, 12, 81, 67, 81, 18912, 668, 2223, 1769, 9506, 202, 81, 67, 892, 273, 7920, 18, 588, 751, 5621, 202, 202, 81, 67, 3729, 1749, 3907, 273, 18115, 31, 9506, 202, 13957, 18, 588, 1429, 9118, 7675, 1289, 1429, 9118, 2223, 12, 81, 67, 27257, 2223, 1769, 9506, 202, 2211, 18, 1289, 3829, 2223, 12, 23407, 67, 26421, 1769, 9506, 202, 2640, 4599, 5190, 5621, 9506, 202, 3163, 18, 659, 18, 1188, 2932, 10515, 2836, 4602, 8863, 202, 202, 5748, 2037, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 2802, 5554, 2040, 1733, 18, 1336, 7675, 945, 12, 2211, 1769, 202, 202, 3163, 18, 659, 18, 8222, 2932, 2731, 2773, 397, 261, 12443, 9056, 13, 2332, 18, 2972, 28512, 1435, 300, 2037, 13, 342, 4336, 18, 20, 13, 397, 315, 87, 8863, 31, 9506, 202, 3163, 18, 659, 18, 1188, 2932, 10515, 2982, 4602, 8863, 202, 202, 3338, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 4678, 5554, 2040, 1733, 18, 1336, 7675, 945, 12, 2211, 1769, 202, 202, 3163, 18, 659, 18, 8222, 2932, 2731, 2773, 397, 261, 12443, 9056, 13, 2332, 18, 2972, 28512, 1435, 300, 2037, 13, 342, 4336, 18, 20, 13, 397, 315, 87, 8863, 202, 202, 3163, 18, 659, 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, 28173, 37, 3219, 12, 3047, 339, 7920, 16, 1000, 18115, 13, 1216, 1860, 202, 95, 202, 202, 9565, 2932, 28166, 37, 8863, 9506, 202, 81, 67, 13957, 273, 7920, 31, 9506, 202, 13957, 18, 588, 29329, 7675, 1289, 668, 2223, 12, 81, 67, 81, 18912, 668, 2223, 1769, 9506, 202, 81, 67, 892, 273, 7920, 18, 588, 751, 5621, 202, 202, 81, 67, 3729, 1749, 3907, 273, 18115, 31, 9506, 202, 13957, 18, 588, 1429, 9118, 7675, 1289, 1429, 9118, 2223, 12, 81, 67, 27257, 2223, 1769, 9506, 202, 2211, 18, 1289, 3829, 2223, 12, 23407, 67, 26421, 1769, 9506, 202, 2640, 4599, 5190, 5621, 9506, 202, 3163, 18, 659, 18, 1188, 2932, 10515, 2836, 4602, 2 ]
try { ejbObject = ejbHome.create("David Blevins"); keys[0] = (Integer) ejbObject.getPrimaryKey();
ejbObject = ejbHome.create("David Blevins"); keys[0] = (Integer) ejbObject.getPrimaryKey();
public void test03_findByLastName() { Integer[] keys = new Integer[3]; try { ejbObject = ejbHome.create("David Blevins"); keys[0] = (Integer) ejbObject.getPrimaryKey(); ejbObject = ejbHome.create("Dennis Blevins"); keys[1] = (Integer) ejbObject.getPrimaryKey(); ejbObject = ejbHome.create("Claude Blevins"); keys[2] = (Integer) ejbObject.getPrimaryKey(); } catch (Exception e) { fail("Received exception while preparing the test: " + e.getClass() + " : " + e.getMessage()); } try { java.util.Collection objects = ejbHome.findByLastName("Blevins"); assertNotNull("The Collection is null", objects); assertEquals("The Collection is not the right size.", keys.length, objects.size()); Object[] objs = objects.toArray(); for (int i = 0; i < objs.length; i++) { ejbObject = (BasicCmpObject) javax.rmi.PortableRemoteObject.narrow(objs[i], BasicCmpObject.class); // This could be problematic, it assumes the order of the collection. assertEquals("The primary keys are not equal.", keys[i], ejbObject.getPrimaryKey()); } } catch (Exception e) { fail("Received Exception " + e.getClass() + " : " + e.getMessage()); } }
47052 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47052/6ee14f7e222bbc6380bcc14b983db00230a346d9/Cmp2HomeIntfcTests.java/buggy/openejb2/modules/itests/src/itest/org/openejb/test/entity/cmp2/Cmp2HomeIntfcTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4630, 67, 4720, 858, 3024, 461, 1435, 288, 3639, 2144, 8526, 1311, 273, 394, 2144, 63, 23, 15533, 3639, 775, 288, 5411, 18024, 921, 273, 18024, 8684, 18, 2640, 2932, 40, 842, 350, 605, 298, 90, 2679, 8863, 5411, 1311, 63, 20, 65, 273, 261, 4522, 13, 18024, 921, 18, 588, 11575, 5621, 5411, 18024, 921, 273, 18024, 8684, 18, 2640, 2932, 8517, 82, 291, 605, 298, 90, 2679, 8863, 5411, 1311, 63, 21, 65, 273, 261, 4522, 13, 18024, 921, 18, 588, 11575, 5621, 5411, 18024, 921, 273, 18024, 8684, 18, 2640, 2932, 2009, 69, 1317, 605, 298, 90, 2679, 8863, 5411, 1311, 63, 22, 65, 273, 261, 4522, 13, 18024, 921, 18, 588, 11575, 5621, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 2321, 2932, 8872, 1520, 1323, 675, 12583, 326, 1842, 30, 315, 397, 425, 18, 588, 797, 1435, 397, 315, 294, 315, 397, 425, 18, 24906, 10663, 3639, 289, 3639, 775, 288, 5411, 2252, 18, 1367, 18, 2532, 2184, 273, 18024, 8684, 18, 4720, 858, 3024, 461, 2932, 38, 298, 90, 2679, 8863, 5411, 25395, 2932, 1986, 2200, 353, 446, 3113, 2184, 1769, 5411, 1815, 8867, 2932, 1986, 2200, 353, 486, 326, 2145, 963, 1199, 16, 1311, 18, 2469, 16, 2184, 18, 1467, 10663, 5411, 1033, 8526, 12721, 273, 2184, 18, 31447, 5621, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 12721, 18, 2469, 31, 277, 27245, 288, 7734, 18024, 921, 273, 261, 8252, 31832, 921, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4630, 67, 4720, 858, 3024, 461, 1435, 288, 3639, 2144, 8526, 1311, 273, 394, 2144, 63, 23, 15533, 3639, 775, 288, 5411, 18024, 921, 273, 18024, 8684, 18, 2640, 2932, 40, 842, 350, 605, 298, 90, 2679, 8863, 5411, 1311, 63, 20, 65, 273, 261, 4522, 13, 18024, 921, 18, 588, 11575, 5621, 5411, 18024, 921, 273, 18024, 8684, 18, 2640, 2932, 8517, 82, 291, 605, 298, 90, 2679, 8863, 5411, 1311, 63, 21, 65, 273, 261, 4522, 13, 18024, 921, 18, 588, 11575, 5621, 5411, 18024, 921, 273, 18024, 8684, 18, 2640, 2932, 2009, 69, 1317, 605, 298, 90, 2679, 8863, 5411, 1311, 63, 22, 65, 273, 261, 4522, 13, 18024, 921, 18, 588, 2 ]
session.putValue("login.target", HttpUtils.getRequestURL(req).toString());
session.setAttribute("login.target", HttpUtils.getRequestURL(req).toString());
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { // Lets get the parameters and validate them MetaInfo metaInf = new MetaInfo() ; Properties params = metaInf.getParameters(req) ; if (metaInf.checkParameters(params) == false) { String msg = "The parameters was not correct in call to ChangeDiagramCoordinator." + "<BR>" ; msg += "The parameters was: " + params.toString() ; Error err = new Error(req,res, "ERROR.HTM", msg) ; err = null ; return ; } // Lets check that we still have a session, well need to pass it later to Janus // Get the session HttpSession session = req.getSession(true); // Does the session indicate this user already logged in? Object done = session.getValue("logon.isDone"); // marker object imcode.server.User user = (imcode.server.User) done ; if (done == null) { // No logon.isDone means he hasn't logged in. // Save the request URL as the true target and redirect to the login page. session.putValue("login.target", HttpUtils.getRequestURL(req).toString()); String serverName = MetaInfo.getServerName(req) ; String startUrl = MetaInfo.getStartUrl(req) ; // log("StartUrl: " + serverName + startUrl) ; res.sendRedirect(serverName + startUrl); return ; } String url = metaInf.getServletPath(req) ; VariableManager vm = new VariableManager() ; // Lets add the information needed for the Change Metadata, tillbaka till MetaData vm.addProperty("META_ID", params.getProperty("META_ID") ) ; vm.addProperty("PARENT_META_ID", params.getProperty("PARENT_META_ID") ) ; vm.addProperty("COOKIE_ID", params.getProperty("COOKIE_ID") ) ; vm.addProperty("META_ID_CHANGE", params.getProperty("META_ID") ) ; vm.addProperty("PARENT_META_ID_CHANGE", params.getProperty("PARENT_META_ID") ) ; vm.addProperty("COOKIE_ID_CHANGE", params.getProperty("COOKIE_ID") ) ; vm.addProperty("SERVER_URL", url ) ; vm.addProperty("SERVER_URL2", url ) ; // Lets get the TemplateFolder String templateLib = MetaInfo.getExternalTemplateFolder(req) ; HtmlGenerator htmlObj = new HtmlGenerator(templateLib, HTML_TEMPLATE) ; String htm = htmlObj.createHtmlString(vm,req) ; htmlObj.sendToBrowser(req,res,htm) ; htmlObj = null ; vm = null ; return ; } // end of doGet
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d8b0fdd81e15dafac8d97309e61402a5d67547a5/ChangeDiagramCoordinator.java/buggy/servlets/diagram/ChangeDiagramCoordinator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1171, 9079, 1216, 16517, 16, 1860, 288, 565, 368, 511, 2413, 336, 326, 1472, 471, 1954, 2182, 377, 202, 2781, 966, 2191, 13149, 273, 394, 6565, 966, 1435, 274, 377, 202, 2297, 859, 273, 2191, 13149, 18, 588, 2402, 12, 3658, 13, 274, 377, 202, 430, 261, 3901, 13149, 18, 1893, 2402, 12, 2010, 13, 422, 629, 13, 288, 202, 1875, 225, 514, 1234, 273, 315, 1986, 1472, 1703, 486, 3434, 316, 745, 358, 7576, 14058, 1940, 25307, 1199, 397, 3532, 7192, 2984, 274, 202, 1875, 225, 1234, 1011, 315, 1986, 1472, 1703, 30, 315, 397, 859, 18, 10492, 1435, 274, 202, 1875, 225, 1068, 393, 273, 394, 1068, 12, 3658, 16, 455, 16, 315, 3589, 18, 5062, 49, 3113, 1234, 13, 274, 202, 1875, 225, 393, 273, 446, 274, 202, 1875, 225, 327, 274, 202, 3196, 202, 97, 225, 368, 511, 2413, 866, 716, 732, 4859, 1240, 279, 1339, 16, 5492, 1608, 358, 1342, 518, 5137, 358, 23214, 407, 202, 759, 968, 326, 1339, 565, 26166, 1339, 273, 1111, 18, 588, 2157, 12, 3767, 1769, 565, 368, 9637, 326, 1339, 10768, 333, 729, 1818, 7545, 316, 35, 565, 1033, 2731, 273, 1339, 18, 24805, 2932, 1330, 265, 18, 291, 7387, 8863, 225, 368, 5373, 733, 565, 709, 710, 18, 3567, 18, 1299, 729, 273, 261, 381, 710, 18, 3567, 18, 1299, 13, 2731, 274, 565, 309, 261, 8734, 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, 225, 202, 482, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 1171, 9079, 1216, 16517, 16, 1860, 288, 565, 368, 511, 2413, 336, 326, 1472, 471, 1954, 2182, 377, 202, 2781, 966, 2191, 13149, 273, 394, 6565, 966, 1435, 274, 377, 202, 2297, 859, 273, 2191, 13149, 18, 588, 2402, 12, 3658, 13, 274, 377, 202, 430, 261, 3901, 13149, 18, 1893, 2402, 12, 2010, 13, 422, 629, 13, 288, 202, 1875, 225, 514, 1234, 273, 315, 1986, 1472, 1703, 486, 3434, 316, 745, 358, 7576, 14058, 1940, 25307, 1199, 397, 3532, 7192, 2984, 274, 202, 1875, 225, 1234, 1011, 315, 1986, 1472, 1703, 30, 315, 397, 859, 18, 10492, 1435, 274, 202, 1875, 225, 1068, 2 ]
jj_la1[70] = jj_gen; if (jj_2_14(2147483647) && (lookahead_not_breaking_subd())) {
jj_la1[69] = jj_gen; if (jj_2_15(2147483647) && (lookahead_not_breaking_subd())) {
final public BlockBuilder Block(Subdirective[] subdirectives) throws ParseException { ParserBlockBuilder block = new ParserBlockBuilder(); Token t; blockStack.push(subdirectives); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: jj_consume_token(LBRACE); EatWsNl(); label_10: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case BEGIN: case END: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: ; break; default: jj_la1[65] = jj_gen; break label_10; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: case POUND: WMContent(block); break; case BEGIN: case END: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: t = jj_consume_token(BEGIN); break; case END: t = jj_consume_token(END); break; default: jj_la1[66] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[67] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } jj_consume_token(RBRACE); EatWsNl(); break; default: jj_la1[72] = jj_gen; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case BEGIN: jj_consume_token(BEGIN); break; default: jj_la1[68] = jj_gen; ; } EatWsNl(); label_11: while (true) { if (jj_2_13(1)) { ; } else { break label_11; } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case STUFF: case POUNDPOUND: case DOLLAR: case QCHAR: case SLASH: WMContentNoDirective(block); break; case LBRACE: case RBRACE: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LBRACE: t = jj_consume_token(LBRACE); break; case RBRACE: t = jj_consume_token(RBRACE); break; default: jj_la1[69] = jj_gen; jj_consume_token(-1); throw new ParseException(); } block.addElement(t.image); break; default: jj_la1[70] = jj_gen; if (jj_2_14(2147483647) && (lookahead_not_breaking_subd())) { Directive(block); } else { jj_consume_token(-1); throw new ParseException(); } } } switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case END: jj_consume_token(END); break; default: jj_la1[71] = jj_gen; ; } block.eatTrailingWsNl(); EatWsNl(); } blockStack.pop(); {if (true) return block;} throw new Error("Missing return statement in function"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9cd8a2e9513b8b6713b9b8b25523a7b87ce463d3/WMParser_impl.java/buggy/webmacro/src/org/webmacro/parser/WMParser_impl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 3914, 1263, 3914, 12, 1676, 22347, 8526, 720, 30850, 13, 1216, 10616, 288, 225, 6783, 1768, 1263, 1203, 273, 394, 6783, 1768, 1263, 5621, 225, 3155, 268, 31, 565, 1203, 2624, 18, 6206, 12, 1717, 30850, 1769, 565, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 496, 79, 13, 288, 565, 648, 511, 26980, 30, 1377, 10684, 67, 21224, 67, 2316, 12, 12995, 9254, 1769, 1377, 512, 270, 15444, 50, 80, 5621, 1377, 1433, 67, 2163, 30, 1377, 1323, 261, 3767, 13, 288, 3639, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 496, 79, 13, 288, 3639, 648, 2347, 57, 2246, 30, 3639, 648, 19270, 30, 3639, 648, 7273, 30, 3639, 648, 13803, 5240, 2419, 5240, 30, 3639, 648, 463, 30922, 985, 30, 3639, 648, 2238, 7305, 30, 3639, 648, 348, 16504, 30, 3639, 648, 13803, 5240, 30, 1850, 274, 1850, 898, 31, 3639, 805, 30, 1850, 10684, 67, 11821, 21, 63, 9222, 65, 273, 10684, 67, 4507, 31, 1850, 898, 1433, 67, 2163, 31, 3639, 289, 3639, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 496, 79, 13, 288, 3639, 648, 2347, 57, 2246, 30, 3639, 648, 13803, 5240, 2419, 5240, 30, 3639, 648, 463, 30922, 985, 30, 3639, 648, 2238, 7305, 30, 3639, 648, 348, 16504, 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, 727, 1071, 3914, 1263, 3914, 12, 1676, 22347, 8526, 720, 30850, 13, 1216, 10616, 288, 225, 6783, 1768, 1263, 1203, 273, 394, 6783, 1768, 1263, 5621, 225, 3155, 268, 31, 565, 1203, 2624, 18, 6206, 12, 1717, 30850, 1769, 565, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 496, 79, 13, 288, 565, 648, 511, 26980, 30, 1377, 10684, 67, 21224, 67, 2316, 12, 12995, 9254, 1769, 1377, 512, 270, 15444, 50, 80, 5621, 1377, 1433, 67, 2163, 30, 1377, 1323, 261, 3767, 13, 288, 3639, 1620, 14015, 78, 78, 67, 496, 79, 631, 17, 21, 9945, 78, 78, 67, 496, 79, 13332, 78, 78, 67, 2 ]
updateOkState();
validateCurrentSelection();
private void handleLowerSelectionChanged() { updateOkState(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/597a28ca2cc3744b624c7db48610f11650d3c7ab/TwoPaneElementSelector.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/TwoPaneElementSelector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 4070, 6233, 5033, 1435, 288, 202, 202, 2725, 8809, 1119, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 4070, 6233, 5033, 1435, 288, 202, 202, 2725, 8809, 1119, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
String packageName = getPackageName(); if (packageName != null) { pw.println("package " + packageName + ";"); } pw.println("import java.io.IOException;"); pw.println("import java.util.Locale;"); pw.println("import mondrian.resource.*;"); pw.println();
String packageName = getPackageName(); if (packageName != null) { pw.println("package " + packageName + ";"); } pw.println("import java.io.IOException;"); pw.println("import java.util.Locale;"); pw.println("import mondrian.resource.*;"); pw.println();
protected void generateHeader(PrintWriter pw) { generateDoNotModifyHeader(pw); String packageName = getPackageName(); if (packageName != null) { pw.println("package " + packageName + ";"); } pw.println("import java.io.IOException;"); pw.println("import java.util.Locale;"); pw.println("import mondrian.resource.*;"); pw.println(); generateGeneratedByBlock(pw); }
51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/b5b5168edc3af09cb74945a80b0c36e6630ed502/ResourceGen.java/buggy/src/main/mondrian/resource/ResourceGen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 918, 2103, 1864, 12, 5108, 2289, 8772, 13, 288, 5411, 2103, 3244, 1248, 11047, 1864, 12, 14921, 1769, 1082, 202, 780, 9929, 273, 28951, 5621, 1082, 202, 430, 261, 5610, 461, 480, 446, 13, 288, 9506, 202, 14921, 18, 8222, 2932, 5610, 315, 397, 9929, 397, 11430, 1769, 1082, 202, 97, 1082, 202, 14921, 18, 8222, 2932, 5666, 2252, 18, 1594, 18, 14106, 4868, 1769, 1082, 202, 14921, 18, 8222, 2932, 5666, 2252, 18, 1367, 18, 3916, 4868, 1769, 1082, 202, 14921, 18, 8222, 2932, 5666, 312, 1434, 566, 304, 18, 3146, 4509, 4868, 1769, 1082, 202, 14921, 18, 8222, 5621, 5411, 2103, 7823, 858, 1768, 12, 14921, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1117, 918, 2103, 1864, 12, 5108, 2289, 8772, 13, 288, 5411, 2103, 3244, 1248, 11047, 1864, 12, 14921, 1769, 1082, 202, 780, 9929, 273, 28951, 5621, 1082, 202, 430, 261, 5610, 461, 480, 446, 13, 288, 9506, 202, 14921, 18, 8222, 2932, 5610, 315, 397, 9929, 397, 11430, 1769, 1082, 202, 97, 1082, 202, 14921, 18, 8222, 2932, 5666, 2252, 18, 1594, 18, 14106, 4868, 1769, 1082, 202, 14921, 18, 8222, 2932, 5666, 2252, 18, 1367, 18, 3916, 4868, 1769, 1082, 202, 14921, 18, 8222, 2932, 5666, 312, 1434, 566, 304, 18, 3146, 4509, 4868, 1769, 1082, 202, 14921, 18, 8222, 5621, 5411, 2103, 7823, 858, 1768, 12, 14921, 1769, 202, 202, 97, 2, -100, -100, -100, -100 ]
if ((!getMethod.getDeclaringClass(). isAssignableFrom(setMethod.getDeclaringClass())) && (!setMethod.getDeclaringClass(). isAssignableFrom(getMethod.getDeclaringClass()))) { String msg = "set and get methods are not in the same class."; throw new IntrospectionException(msg); }
*/ }
private void checkMethods() throws IntrospectionException { if (getMethod != null) { if (getMethod.getParameterTypes().length > 0) { throw new IntrospectionException("get method has parameters"); } this.propertyType = getMethod.getReturnType(); if (propertyType == Void.TYPE) { throw new IntrospectionException("get method has void return type"); } } if (setMethod != null) { if (setMethod.getParameterTypes().length != 1) { String msg = "set method does not have exactly one parameter"; throw new IntrospectionException(msg); } if (getMethod == null) { propertyType = setMethod.getParameterTypes()[0]; } else { if (!propertyType.equals(setMethod.getParameterTypes()[0])) { String msg = "set and get methods do not share the same type"; throw new IntrospectionException(msg); } if ((!getMethod.getDeclaringClass(). isAssignableFrom(setMethod.getDeclaringClass())) && (!setMethod.getDeclaringClass(). isAssignableFrom(getMethod.getDeclaringClass()))) { String msg = "set and get methods are not in the same class."; throw new IntrospectionException(msg); } } } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/099941e739b24ffc71faddc589f984d1cda55549/PropertyDescriptor.java/clean/core/src/classpath/java/java/beans/PropertyDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 866, 4712, 1435, 377, 1216, 3094, 26362, 503, 225, 288, 565, 309, 261, 588, 1305, 480, 446, 13, 288, 1377, 309, 261, 588, 1305, 18, 588, 1662, 2016, 7675, 2469, 405, 374, 13, 288, 202, 12849, 394, 3094, 26362, 503, 2932, 588, 707, 711, 1472, 8863, 1377, 289, 1377, 333, 18, 4468, 559, 273, 6272, 18, 588, 9102, 5621, 1377, 309, 261, 4468, 559, 422, 6988, 18, 2399, 13, 288, 202, 12849, 394, 3094, 26362, 503, 2932, 588, 707, 711, 918, 327, 618, 8863, 1377, 289, 565, 289, 565, 309, 261, 542, 1305, 480, 446, 13, 288, 1377, 309, 261, 542, 1305, 18, 588, 1662, 2016, 7675, 2469, 480, 404, 13, 288, 202, 780, 1234, 273, 315, 542, 707, 1552, 486, 1240, 8950, 1245, 1569, 14432, 225, 202, 12849, 394, 3094, 26362, 503, 12, 3576, 1769, 1377, 289, 1377, 309, 261, 588, 1305, 422, 446, 13, 288, 202, 4468, 559, 273, 19539, 18, 588, 1662, 2016, 1435, 63, 20, 15533, 1377, 289, 1377, 469, 288, 202, 430, 16051, 4468, 559, 18, 14963, 12, 542, 1305, 18, 588, 1662, 2016, 1435, 63, 20, 22643, 288, 202, 225, 514, 1234, 273, 315, 542, 471, 336, 2590, 741, 486, 7433, 326, 1967, 618, 14432, 202, 225, 604, 394, 3094, 26362, 503, 12, 3576, 1769, 202, 97, 202, 430, 14015, 5, 588, 1305, 18, 588, 3456, 14682, 7675, 202, 377, 8917, 12, 542, 1305, 18, 588, 3456, 14682, 1435, 3719, 597, 202, 565, 16051, 542, 1305, 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, 3238, 918, 866, 4712, 1435, 377, 1216, 3094, 26362, 503, 225, 288, 565, 309, 261, 588, 1305, 480, 446, 13, 288, 1377, 309, 261, 588, 1305, 18, 588, 1662, 2016, 7675, 2469, 405, 374, 13, 288, 202, 12849, 394, 3094, 26362, 503, 2932, 588, 707, 711, 1472, 8863, 1377, 289, 1377, 333, 18, 4468, 559, 273, 6272, 18, 588, 9102, 5621, 1377, 309, 261, 4468, 559, 422, 6988, 18, 2399, 13, 288, 202, 12849, 394, 3094, 26362, 503, 2932, 588, 707, 711, 918, 327, 618, 8863, 1377, 289, 565, 289, 565, 309, 261, 542, 1305, 480, 446, 13, 288, 1377, 309, 261, 542, 1305, 18, 588, 1662, 2016, 7675, 2469, 480, 404, 13, 288, 202, 780, 1234, 273, 2 ]
if( fDetach) { throw new DOMException( DOMException.INVALID_STATE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_STATE_ERR", null)); } if ( !hasLegalRootContainer(refNode) || !isLegalContainedNode(refNode)) { throw new RangeExceptionImpl( RangeException.INVALID_NODE_TYPE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_NODE_TYPE_ERR", null)); } if ( fDocument != refNode.getOwnerDocument() && fDocument != refNode) { throw new DOMException( DOMException.WRONG_DOCUMENT_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "WRONG_DOCUMENT_ERR", null));
if (fDocument.errorChecking) { if (fDetach) { throw new DOMException( DOMException.INVALID_STATE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_STATE_ERR", null)); } if ( !hasLegalRootContainer(refNode) || !isLegalContainedNode(refNode)) { throw new RangeExceptionImpl( RangeException.INVALID_NODE_TYPE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_NODE_TYPE_ERR", null)); } if ( fDocument != refNode.getOwnerDocument() && fDocument != refNode) { throw new DOMException( DOMException.WRONG_DOCUMENT_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "WRONG_DOCUMENT_ERR", null)); }
public void setEndBefore(Node refNode) throws RangeException { if( fDetach) { throw new DOMException( DOMException.INVALID_STATE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_STATE_ERR", null)); } if ( !hasLegalRootContainer(refNode) || !isLegalContainedNode(refNode)) { throw new RangeExceptionImpl( RangeException.INVALID_NODE_TYPE_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "INVALID_NODE_TYPE_ERR", null)); } if ( fDocument != refNode.getOwnerDocument() && fDocument != refNode) { throw new DOMException( DOMException.WRONG_DOCUMENT_ERR, DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "WRONG_DOCUMENT_ERR", null)); } fEndContainer = refNode.getParentNode(); int i = 0; for (Node n = refNode; n!=null; n = n.getPreviousSibling()) { i++; } fEndOffset = i-1; // If one boundary-point of a Range is set to have a root container // other // than the current one for the Range, the Range should be collapsed to // the new position. // The start position of a Range should never be after the end position. if (getCommonAncestorContainer() == null || (fStartContainer == fEndContainer && fEndOffset < fStartOffset)) { collapse(false); } }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/93c209843c960fca0f01ce05ec42eee14631f5e7/RangeImpl.java/clean/src/org/apache/xerces/dom/RangeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19743, 4649, 12, 907, 1278, 907, 13, 3639, 1216, 8086, 503, 565, 288, 377, 202, 430, 12, 284, 17650, 13, 288, 377, 202, 202, 12849, 394, 4703, 503, 12, 377, 202, 202, 8168, 503, 18, 9347, 67, 7998, 67, 9712, 16, 1171, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 9347, 67, 7998, 67, 9712, 3113, 446, 10019, 3639, 289, 3639, 309, 261, 401, 5332, 30697, 2375, 2170, 12, 1734, 907, 13, 747, 5411, 401, 291, 30697, 660, 8707, 907, 12, 1734, 907, 3719, 288, 377, 202, 202, 12849, 394, 8086, 503, 2828, 12, 377, 202, 202, 2655, 503, 18, 9347, 67, 8744, 67, 2399, 67, 9712, 16, 1171, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 9347, 67, 8744, 67, 2399, 67, 9712, 3113, 446, 10019, 3639, 289, 3639, 309, 261, 284, 2519, 480, 1278, 907, 18, 588, 5541, 2519, 1435, 597, 284, 2519, 480, 1278, 907, 13, 288, 5411, 604, 394, 4703, 503, 12, 7734, 4703, 503, 18, 7181, 7390, 67, 18450, 67, 9712, 16, 7734, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 7181, 7390, 67, 18450, 67, 9712, 3113, 446, 10019, 3639, 289, 3639, 284, 1638, 2170, 273, 1278, 907, 18, 588, 3054, 907, 5621, 3639, 509, 277, 273, 374, 31, 3639, 364, 261, 907, 290, 273, 1278, 907, 31, 290, 5, 33, 2011, 31, 290, 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, 19743, 4649, 12, 907, 1278, 907, 13, 3639, 1216, 8086, 503, 565, 288, 377, 202, 430, 12, 284, 17650, 13, 288, 377, 202, 202, 12849, 394, 4703, 503, 12, 377, 202, 202, 8168, 503, 18, 9347, 67, 7998, 67, 9712, 16, 1171, 4703, 1079, 5074, 18, 2139, 1079, 12, 8168, 1079, 5074, 18, 8168, 67, 18192, 16, 315, 9347, 67, 7998, 67, 9712, 3113, 446, 10019, 3639, 289, 3639, 309, 261, 401, 5332, 30697, 2375, 2170, 12, 1734, 907, 13, 747, 5411, 401, 291, 30697, 660, 8707, 907, 12, 1734, 907, 3719, 288, 377, 202, 202, 12849, 394, 8086, 503, 2828, 12, 377, 202, 202, 2655, 503, 18, 9347, 67, 8744, 67, 2399, 67, 9712, 16, 2 ]
public org.quickfix.field.TotalVolumeTradedTime getTotalVolumeTradedTime() throws FieldNotFound { org.quickfix.field.TotalVolumeTradedTime value = new org.quickfix.field.TotalVolumeTradedTime();
public quickfix.field.TotalVolumeTradedTime getTotalVolumeTradedTime() throws FieldNotFound { quickfix.field.TotalVolumeTradedTime value = new quickfix.field.TotalVolumeTradedTime();
public org.quickfix.field.TotalVolumeTradedTime getTotalVolumeTradedTime() throws FieldNotFound { org.quickfix.field.TotalVolumeTradedTime value = new org.quickfix.field.TotalVolumeTradedTime(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/MarketDataSnapshotFullRefresh.java/buggy/src/java/src/quickfix/fix43/MarketDataSnapshotFullRefresh.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 5269, 4545, 1609, 785, 950, 12831, 4545, 1609, 785, 950, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 5269, 4545, 1609, 785, 950, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 5269, 4545, 1609, 785, 950, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 5269, 4545, 1609, 785, 950, 12831, 4545, 1609, 785, 950, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 5269, 4545, 1609, 785, 950, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 5269, 4545, 1609, 785, 950, 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 ]
org.openscience.cdk.interfaces.IChemObject[] rel = map[f].getRelatedChemObjects(); clone.map[f] = new Mapping((ChemObject)aa.get(rel[0]), (ChemObject)aa.get(rel[1]));
IChemObject[] rel = map[f].getRelatedChemObjects(); clone.map[f] = new Mapping((ChemObject)atomatom.get(rel[0]), (ChemObject)atomatom.get(rel[1]));
public Object clone() throws CloneNotSupportedException { Reaction clone = (Reaction)super.clone(); // clone the reactants, products and agents clone.reactants = (SetOfMolecules)((SetOfMolecules)reactants).clone(); clone.agents = (SetOfMolecules)((SetOfMolecules)agents).clone(); clone.products = (SetOfMolecules)((SetOfMolecules)products).clone(); // create a Map of corresponding atoms for molecules (key: original Atom, // value: clone Atom) java.util.Hashtable aa = new java.util.Hashtable(); for (int i = 0; i < ((SetOfMolecules)reactants).getMoleculeCount(); ++i) { Molecule mol = (Molecule)((SetOfMolecules)reactants).getMolecule(i); Molecule mol2 = (Molecule)clone.reactants.getMolecule(i); for (int j = 0; j < mol.getAtomCount(); ++j) aa.put(mol.getAtomAt(j), mol2.getAtomAt(j)); } // clone the maps clone.map = new Mapping[map.length]; for (int f = 0; f < mappingCount; f++) { org.openscience.cdk.interfaces.IChemObject[] rel = map[f].getRelatedChemObjects(); clone.map[f] = new Mapping((ChemObject)aa.get(rel[0]), (ChemObject)aa.get(rel[1])); } return clone; }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/b35703c55343be9e1780756711f8f8cb630300f2/Reaction.java/buggy/src/org/openscience/cdk/Reaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3236, 1435, 1216, 12758, 25482, 288, 202, 202, 21581, 3236, 273, 261, 21581, 13, 9565, 18, 14056, 5621, 3639, 368, 3236, 326, 13417, 4388, 16, 10406, 471, 16423, 3639, 3236, 18, 17056, 4388, 273, 261, 694, 951, 49, 29466, 13, 12443, 694, 951, 49, 29466, 13, 17056, 4388, 2934, 14056, 5621, 3639, 3236, 18, 23560, 273, 261, 694, 951, 49, 29466, 13, 12443, 694, 951, 49, 29466, 13, 23560, 2934, 14056, 5621, 3639, 3236, 18, 18736, 273, 261, 694, 951, 49, 29466, 13, 12443, 694, 951, 49, 29466, 13, 18736, 2934, 14056, 5621, 3639, 368, 752, 279, 1635, 434, 4656, 9006, 364, 312, 29466, 261, 856, 30, 2282, 7149, 16, 540, 368, 460, 30, 3236, 7149, 13, 3639, 2252, 18, 1367, 18, 5582, 14544, 12391, 273, 394, 2252, 18, 1367, 18, 5582, 14544, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 14015, 694, 951, 49, 29466, 13, 17056, 4388, 2934, 588, 29669, 1380, 5621, 965, 77, 13, 288, 5411, 490, 10545, 12629, 273, 261, 29669, 13, 12443, 694, 951, 49, 29466, 13, 17056, 4388, 2934, 588, 29669, 12, 77, 1769, 5411, 490, 10545, 12629, 22, 273, 261, 29669, 13, 14056, 18, 17056, 4388, 18, 588, 29669, 12, 77, 1769, 5411, 364, 261, 474, 525, 273, 374, 31, 525, 411, 12629, 18, 588, 3641, 1380, 5621, 965, 78, 13, 12391, 18, 458, 12, 21260, 18, 588, 3641, 861, 12, 78, 3631, 12629, 22, 18, 588, 3641, 861, 12, 78, 10019, 3639, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3236, 1435, 1216, 12758, 25482, 288, 202, 202, 21581, 3236, 273, 261, 21581, 13, 9565, 18, 14056, 5621, 3639, 368, 3236, 326, 13417, 4388, 16, 10406, 471, 16423, 3639, 3236, 18, 17056, 4388, 273, 261, 694, 951, 49, 29466, 13, 12443, 694, 951, 49, 29466, 13, 17056, 4388, 2934, 14056, 5621, 3639, 3236, 18, 23560, 273, 261, 694, 951, 49, 29466, 13, 12443, 694, 951, 49, 29466, 13, 23560, 2934, 14056, 5621, 3639, 3236, 18, 18736, 273, 261, 694, 951, 49, 29466, 13, 12443, 694, 951, 49, 29466, 13, 18736, 2934, 14056, 5621, 3639, 368, 752, 279, 1635, 434, 4656, 9006, 364, 312, 29466, 261, 856, 30, 2282, 7149, 16, 540, 368, 460, 30, 3236, 2 ]
} if(res.isFile()){
} if(res.isFile()){
public void writeProperties(CmsUser currentUser, CmsProject currentProject, String resource, Hashtable propertyinfos) throws CmsException { // read the resource CmsResource res = readFileHeader(currentUser,currentProject, resource); // check the security if( ! accessWrite(currentUser, currentProject, res) ) { throw new CmsException("[" + this.getClass().getName() + "] " + resource, CmsException.C_NO_ACCESS); } m_dbAccess.writeProperties(propertyinfos,res.getResourceId(),res.getType()); m_propertyCache.clear(); if (res.getState()==C_STATE_UNCHANGED) { res.setState(C_STATE_CHANGED); } if(res.isFile()){ m_dbAccess.writeFileHeader(currentProject, onlineProject(currentUser, currentProject), (CmsFile) res, false); // update the cache m_resourceCache.put(C_FILE+currentProject.getId()+resource,res); } else { m_dbAccess.writeFolder(currentProject, readFolder(currentUser,currentProject, resource), false); // update the cache m_resourceCache.put(C_FOLDER+currentProject.getId()+resource,(CmsFolder)res); } m_subresCache.clear(); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/9847b45dd645efdb2ad2880b1204871363eb60b9/CmsResourceBroker.java/buggy/src/com/opencms/file/mySql/CmsResourceBroker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1045, 2297, 12, 4747, 1299, 13970, 16, 2149, 4109, 783, 4109, 16, 17322, 202, 225, 514, 1058, 16, 18559, 1272, 18227, 13, 202, 202, 15069, 11228, 288, 202, 202, 759, 855, 326, 1058, 565, 202, 202, 4747, 1420, 400, 273, 10413, 1864, 12, 2972, 1299, 16, 2972, 4109, 16, 1058, 1769, 202, 202, 759, 866, 326, 4373, 202, 202, 430, 12, 401, 2006, 3067, 12, 2972, 1299, 16, 783, 4109, 16, 400, 13, 262, 288, 9506, 604, 394, 11228, 2932, 9614, 397, 333, 18, 588, 797, 7675, 17994, 1435, 397, 9850, 315, 397, 1058, 16, 4697, 202, 4747, 503, 18, 39, 67, 3417, 67, 13204, 1769, 202, 202, 97, 9506, 202, 81, 67, 1966, 1862, 18, 2626, 2297, 12, 4468, 18227, 16, 455, 18, 588, 17790, 9334, 455, 18, 588, 559, 10663, 202, 202, 81, 67, 4468, 1649, 18, 8507, 5621, 202, 202, 430, 261, 455, 18, 588, 1119, 1435, 631, 39, 67, 7998, 67, 2124, 24435, 13, 288, 1082, 202, 455, 18, 542, 1119, 12, 39, 67, 7998, 67, 24435, 1769, 202, 202, 97, 202, 202, 430, 12, 455, 18, 291, 812, 10756, 95, 1377, 1082, 202, 81, 67, 1966, 1862, 18, 2626, 812, 1864, 12, 2972, 4109, 16, 12365, 4109, 12, 2972, 1299, 16, 783, 4109, 3631, 261, 4747, 812, 13, 400, 16, 629, 1769, 1082, 202, 759, 1089, 326, 1247, 5411, 1082, 202, 81, 67, 3146, 1649, 18, 458, 12, 39, 67, 3776, 15, 2972, 4109, 18, 26321, 1435, 15, 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, 1045, 2297, 12, 4747, 1299, 13970, 16, 2149, 4109, 783, 4109, 16, 17322, 202, 225, 514, 1058, 16, 18559, 1272, 18227, 13, 202, 202, 15069, 11228, 288, 202, 202, 759, 855, 326, 1058, 565, 202, 202, 4747, 1420, 400, 273, 10413, 1864, 12, 2972, 1299, 16, 2972, 4109, 16, 1058, 1769, 202, 202, 759, 866, 326, 4373, 202, 202, 430, 12, 401, 2006, 3067, 12, 2972, 1299, 16, 783, 4109, 16, 400, 13, 262, 288, 9506, 604, 394, 11228, 2932, 9614, 397, 333, 18, 588, 797, 7675, 17994, 1435, 397, 9850, 315, 397, 1058, 16, 4697, 202, 4747, 503, 18, 39, 67, 3417, 67, 13204, 1769, 202, 202, 97, 9506, 202, 81, 67, 1966, 1862, 2 ]
"gnu.java.security.provider.DSAParameterGenerator");
gnu.java.security.provider.DSAParameterGenerator.class.getName());
public Gnu() { super( "GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA"); // Note that all implementation class names are referenced by using // Class.getName(). That way when we staticly link the Gnu provider // we automatically get all the implementation classes. // Signature put("Signature.SHA1withDSA", "gnu.java.security.provider.DSASignature"); put("Alg.Alias.Signature.DSS", "SHA1withDSA"); put("Alg.Alias.Signature.DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHAwithDSA", "SHA1withDSA"); put("Alg.Alias.Signature.DSAwithSHA", "SHA1withDSA"); put("Alg.Alias.Signature.DSAwithSHA1", "SHA1withDSA"); put("Alg.Alias.Signature.SHA/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHA-1/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.SHA1/DSA", "SHA1withDSA"); put("Alg.Alias.Signature.OID.1.2.840.10040.4.3", "SHA1withDSA"); put("Alg.Alias.Signature.1.2.840.10040.4.3", "SHA1withDSA"); put("Alg.Alias.Signature.1.3.14.3.2.13", "SHA1withDSA"); put("Alg.Alias.Signature.1.3.14.3.2.27", "SHA1withDSA"); // Key Pair Generator put("KeyPairGenerator.DSA", "gnu.java.security.provider.DSAKeyPairGenerator"); put("Alg.Alias.KeyPairGenerator.OID.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.2.840.10040.4.1", "DSA"); put("Alg.Alias.KeyPairGenerator.1.3.14.3.2.12", "DSA"); // Message Digests put("MessageDigest.SHA", "gnu.java.security.provider.SHA"); put("MessageDigest.MD5", "gnu.java.security.provider.MD5"); // Format "Alias", "Actual Name" put("Alg.Alias.MessageDigest.SHA1", "SHA"); put("Alg.Alias.MessageDigest.SHA-1", "SHA"); // Algorithm Parameters put("AlgorithmParameters.DSA", "gnu.java.security.provider.DSAParameters"); // Algorithm Parameter Generator put("AlgorithmParameterGenerator.DSA", "gnu.java.security.provider.DSAParameterGenerator"); // SecureRandom put("SecureRandom.SHA1PRNG", "gnu.java.security.provider.SHA1PRNG"); }
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/6ae38bff981ae1f144123b8722c91081cc13c03f/Gnu.java/buggy/libjava/gnu/java/security/provider/Gnu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 611, 13053, 1435, 225, 288, 565, 2240, 12, 315, 8318, 57, 3113, 404, 18, 20, 16, 315, 8318, 57, 2893, 331, 21, 18, 20, 19981, 9777, 17, 21, 16, 10852, 25, 16, 463, 5233, 8863, 565, 368, 3609, 716, 777, 4471, 667, 1257, 854, 8042, 635, 1450, 565, 368, 1659, 18, 17994, 7675, 12466, 4031, 1347, 732, 760, 715, 1692, 326, 611, 13053, 2893, 565, 368, 732, 6635, 336, 777, 326, 4471, 3318, 18, 565, 368, 9249, 565, 1378, 2932, 5374, 18, 8325, 21, 1918, 19748, 3113, 202, 6, 1600, 89, 18, 6290, 18, 7462, 18, 6778, 18, 19748, 5374, 8863, 565, 1378, 2932, 21883, 18, 2936, 18, 5374, 18, 40, 1260, 3113, 315, 8325, 21, 1918, 19748, 8863, 565, 1378, 2932, 21883, 18, 2936, 18, 5374, 18, 19748, 3113, 315, 8325, 21, 1918, 19748, 8863, 565, 1378, 2932, 21883, 18, 2936, 18, 5374, 18, 8325, 1918, 19748, 3113, 315, 8325, 21, 1918, 19748, 8863, 565, 1378, 2932, 21883, 18, 2936, 18, 5374, 18, 19748, 1918, 8325, 3113, 315, 8325, 21, 1918, 19748, 8863, 565, 1378, 2932, 21883, 18, 2936, 18, 5374, 18, 19748, 1918, 8325, 21, 3113, 315, 8325, 21, 1918, 19748, 8863, 565, 1378, 2932, 21883, 18, 2936, 18, 5374, 18, 8325, 19, 19748, 3113, 315, 8325, 21, 1918, 19748, 8863, 565, 1378, 2932, 21883, 18, 2936, 18, 5374, 18, 8325, 17, 21, 19, 19748, 3113, 315, 8325, 21, 1918, 19748, 8863, 565, 1378, 2932, 21883, 18, 2936, 18, 5374, 18, 8325, 21, 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, 611, 13053, 1435, 225, 288, 565, 2240, 12, 315, 8318, 57, 3113, 404, 18, 20, 16, 315, 8318, 57, 2893, 331, 21, 18, 20, 19981, 9777, 17, 21, 16, 10852, 25, 16, 463, 5233, 8863, 565, 368, 3609, 716, 777, 4471, 667, 1257, 854, 8042, 635, 1450, 565, 368, 1659, 18, 17994, 7675, 12466, 4031, 1347, 732, 760, 715, 1692, 326, 611, 13053, 2893, 565, 368, 732, 6635, 336, 777, 326, 4471, 3318, 18, 565, 368, 9249, 565, 1378, 2932, 5374, 18, 8325, 21, 1918, 19748, 3113, 202, 6, 1600, 89, 18, 6290, 18, 7462, 18, 6778, 18, 19748, 5374, 8863, 565, 1378, 2932, 21883, 18, 2936, 18, 5374, 18, 40, 1260, 3113, 315, 8325, 21, 1918, 2 ]
loadScript(new RubyString(ruby, iFile.getPath()), new RubyString(ruby, source.toString()), wrap);
loadScript(new RubyString(ruby, iFile.getPath()), new RubyString(ruby, source.toString()), wrap);
public void loadFile(File iFile, boolean wrap) { if (iFile == null) { throw new RuntimeException("No such file to load"); } try { StringBuffer source = new StringBuffer((int) iFile.length()); BufferedReader br = new BufferedReader(new FileReader(iFile)); String line; while ((line = br.readLine()) != null) { source.append(line).append('\n'); } br.close(); loadScript(new RubyString(ruby, iFile.getPath()), new RubyString(ruby, source.toString()), wrap); } catch (IOException ioExcptn) { getErrorStream().println("Cannot read Rubyfile: \"" + iFile.getPath() + "\""); getErrorStream().println("IOEception: " + ioExcptn.getMessage()); } }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26953, 12, 812, 277, 812, 16, 1250, 2193, 13, 288, 202, 202, 430, 261, 77, 812, 422, 446, 13, 288, 1082, 202, 12849, 394, 3235, 2932, 2279, 4123, 585, 358, 1262, 8863, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 780, 1892, 1084, 273, 394, 6674, 12443, 474, 13, 277, 812, 18, 2469, 10663, 1082, 202, 17947, 2514, 5186, 273, 394, 10633, 12, 2704, 23010, 12, 77, 812, 10019, 1082, 202, 780, 980, 31, 1082, 202, 17523, 14015, 1369, 273, 5186, 18, 896, 1670, 10756, 480, 446, 13, 288, 9506, 202, 3168, 18, 6923, 12, 1369, 2934, 6923, 2668, 64, 82, 8284, 1082, 202, 97, 1082, 202, 2848, 18, 4412, 5621, 1082, 202, 945, 3651, 12, 2704, 19817, 780, 12, 27768, 16, 277, 812, 18, 588, 743, 1435, 3631, 394, 19817, 780, 12, 27768, 16, 1084, 18, 10492, 1435, 3631, 2193, 1769, 202, 202, 97, 1044, 261, 14106, 2527, 29924, 337, 82, 13, 288, 1082, 202, 588, 668, 1228, 7675, 8222, 2932, 4515, 855, 19817, 768, 30, 11843, 397, 277, 812, 18, 588, 743, 1435, 397, 11143, 1769, 1082, 202, 588, 668, 1228, 7675, 8222, 2932, 4294, 41, 472, 30, 315, 397, 2527, 29924, 337, 82, 18, 24906, 10663, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26953, 12, 812, 277, 812, 16, 1250, 2193, 13, 288, 202, 202, 430, 261, 77, 812, 422, 446, 13, 288, 1082, 202, 12849, 394, 3235, 2932, 2279, 4123, 585, 358, 1262, 8863, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 780, 1892, 1084, 273, 394, 6674, 12443, 474, 13, 277, 812, 18, 2469, 10663, 1082, 202, 17947, 2514, 5186, 273, 394, 10633, 12, 2704, 23010, 12, 77, 812, 10019, 1082, 202, 780, 980, 31, 1082, 202, 17523, 14015, 1369, 273, 5186, 18, 896, 1670, 10756, 480, 446, 13, 288, 9506, 202, 3168, 18, 6923, 12, 1369, 2934, 6923, 2668, 64, 82, 8284, 1082, 202, 97, 1082, 202, 2848, 18, 4412, 5621, 1082, 202, 945, 2 ]
public void removeSubscription(ConnectionContext context, Subscription sub) throws Exception { destinationStatistics.getConsumers().decrement(); // synchronize with dispatch method so that no new messages are sent // while // removing up a subscription. dispatchValve.turnOff(); try { synchronized (consumers) { consumers.remove(sub); } sub.remove(context, this); highestSubscriptionPriority = calcHighestSubscriptionPriority(); boolean wasExclusiveOwner = false; if (exclusiveOwner == sub) { exclusiveOwner = null; wasExclusiveOwner = true; } ConsumerId consumerId = sub.getConsumerInfo().getConsumerId(); MessageGroupSet ownedGroups = getMessageGroupOwners().removeConsumer(consumerId); if (!sub.getConsumerInfo().isBrowser()) { MessageEvaluationContext msgContext = context.getMessageEvaluationContext(); try { msgContext.setDestination(destination); // lets copy the messages to dispatch to avoid deadlock List messagesToDispatch = new ArrayList(); synchronized (messages) { for (Iterator iter = messages.iterator(); iter.hasNext();) { IndirectMessageReference node = (IndirectMessageReference) iter.next(); if (node.isDropped()) { continue; } String groupID = node.getGroupID(); // Re-deliver all messages that the sub locked if (node.getLockOwner() == sub || wasExclusiveOwner || (groupID != null && ownedGroups.contains(groupID))) { messagesToDispatch.add(node); } } } // now lets dispatch from the copy of the collection to avoid deadlocks for (Iterator iter = messagesToDispatch.iterator(); iter.hasNext();) { IndirectMessageReference node = (IndirectMessageReference) iter.next(); node.incrementRedeliveryCounter(); node.unlock(); msgContext.setMessageReference(node); dispatchPolicy.dispatch(context, node, msgContext, consumers); } } finally { msgContext.clear(); } } } finally { dispatchValve.turnOn(); } }
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/9479de76fa3049921a911ee3988fcfd55595d1e5/Queue.java/clean/activemq-core/src/main/java/org/apache/activemq/broker/region/Queue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1206, 6663, 12, 1952, 1042, 819, 16, 12132, 720, 13, 1216, 1185, 288, 5411, 2929, 8569, 18, 588, 23538, 7675, 323, 3702, 5621, 5411, 368, 16978, 598, 3435, 707, 1427, 716, 1158, 394, 2743, 854, 3271, 5411, 368, 1323, 5411, 368, 9427, 731, 279, 4915, 18, 5411, 3435, 3053, 537, 18, 20922, 7210, 5621, 5411, 775, 288, 5375, 3852, 261, 17664, 414, 13, 288, 13491, 18350, 18, 4479, 12, 1717, 1769, 5375, 289, 5375, 720, 18, 4479, 12, 2472, 16, 333, 1769, 5375, 9742, 6663, 8183, 273, 7029, 8573, 395, 6663, 8183, 5621, 5375, 1250, 1703, 17075, 5541, 273, 629, 31, 5375, 309, 261, 23792, 5541, 422, 720, 13, 288, 13491, 12060, 5541, 273, 446, 31, 13491, 1703, 17075, 5541, 273, 638, 31, 5375, 289, 5375, 9326, 548, 4765, 548, 273, 720, 18, 588, 5869, 966, 7675, 588, 5869, 548, 5621, 5375, 2350, 1114, 694, 16199, 3621, 273, 2381, 1114, 5460, 414, 7675, 4479, 5869, 12, 13230, 548, 1769, 5375, 309, 16051, 1717, 18, 588, 5869, 966, 7675, 291, 9132, 10756, 288, 13491, 2350, 13468, 1042, 1234, 1042, 273, 819, 18, 24906, 13468, 1042, 5621, 13491, 775, 288, 17311, 1234, 1042, 18, 542, 5683, 12, 10590, 1769, 17311, 368, 14557, 1610, 326, 2743, 358, 3435, 358, 4543, 8363, 739, 17311, 987, 2743, 774, 5325, 273, 394, 2407, 5621, 17311, 3852, 261, 6833, 13, 288, 4766, 565, 364, 261, 3198, 1400, 273, 2743, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 4766, 1850, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1206, 6663, 12, 1952, 1042, 819, 16, 12132, 720, 13, 1216, 1185, 288, 5411, 2929, 8569, 18, 588, 23538, 7675, 323, 3702, 5621, 5411, 368, 16978, 598, 3435, 707, 1427, 716, 1158, 394, 2743, 854, 3271, 5411, 368, 1323, 5411, 368, 9427, 731, 279, 4915, 18, 5411, 3435, 3053, 537, 18, 20922, 7210, 5621, 5411, 775, 288, 5375, 3852, 261, 17664, 414, 13, 288, 13491, 18350, 18, 4479, 12, 1717, 1769, 5375, 289, 5375, 720, 18, 4479, 12, 2472, 16, 333, 1769, 5375, 9742, 6663, 8183, 273, 7029, 8573, 395, 6663, 8183, 5621, 5375, 1250, 1703, 17075, 5541, 273, 629, 31, 5375, 309, 261, 23792, 5541, 422, 720, 13, 288, 13491, 12060, 5541, 273, 446, 31, 2 ]
if (millisInDay < 0) {
if (millisInDay < 0) {
protected synchronized void computeFields() { boolean gregorian = (time >= gregorianCutover); TimeZone zone = getTimeZone(); fields[ZONE_OFFSET] = zone.getRawOffset(); long localTime = time + fields[ZONE_OFFSET]; int day = (int) (localTime / (24 * 60 * 60 * 1000L)); int millisInDay = (int) (localTime % (24 * 60 * 60 * 1000L)); if (millisInDay < 0) { millisInDay += (24 * 60 * 60 * 1000); day--; } calculateDay(day, gregorian); fields[DST_OFFSET] = zone.getOffset(fields[ERA], fields[YEAR], fields[MONTH], fields[DAY_OF_MONTH], fields[DAY_OF_WEEK], millisInDay) - fields[ZONE_OFFSET]; millisInDay += fields[DST_OFFSET]; if (millisInDay >= 24 * 60 * 60 * 1000) { millisInDay -= 24 * 60 * 60 * 1000; calculateDay(++day, gregorian); } fields[DAY_OF_WEEK_IN_MONTH] = (fields[DAY_OF_MONTH] + 6) / 7; // which day of the week are we (0..6), relative to getFirstDayOfWeek int relativeWeekday = (7 + fields[DAY_OF_WEEK] - getFirstDayOfWeek()) % 7; fields[WEEK_OF_MONTH] = (fields[DAY_OF_MONTH] - relativeWeekday + 6) / 7; int weekOfYear = (fields[DAY_OF_YEAR] - relativeWeekday + 6) / 7; // Do the Correction: getMinimalDaysInFirstWeek() is always in the // first week. int minDays = getMinimalDaysInFirstWeek(); int firstWeekday = (7 + getWeekDay(fields[YEAR], minDays) - getFirstDayOfWeek()) % 7; if (minDays - firstWeekday < 1) weekOfYear++; fields[WEEK_OF_YEAR] = weekOfYear; int hourOfDay = millisInDay / (60 * 60 * 1000); fields[AM_PM] = (hourOfDay < 12) ? AM : PM; int hour = hourOfDay % 12; fields[HOUR] = (hour == 0) ? 12 : hour; fields[HOUR_OF_DAY] = hourOfDay; millisInDay %= (60 * 60 * 1000); fields[MINUTE] = millisInDay / (60 * 1000); millisInDay %= (60 * 1000); fields[SECOND] = millisInDay / (1000); fields[MILLISECOND] = millisInDay % 1000; areFieldsSet = isSet[ERA] = isSet[YEAR] = isSet[MONTH] = isSet[WEEK_OF_YEAR] = isSet[WEEK_OF_MONTH] = isSet[DAY_OF_MONTH] = isSet[DAY_OF_YEAR] = isSet[DAY_OF_WEEK] = isSet[DAY_OF_WEEK_IN_MONTH] = isSet[AM_PM] = isSet[HOUR] = isSet[HOUR_OF_DAY] = isSet[MINUTE] = isSet[SECOND] = isSet[MILLISECOND] = isSet[ZONE_OFFSET] = isSet[DST_OFFSET] = true; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/GregorianCalendar.java/buggy/core/src/classpath/java/java/util/GregorianCalendar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 3852, 918, 3671, 2314, 1435, 288, 202, 202, 6494, 314, 14510, 273, 261, 957, 1545, 314, 14510, 15812, 1643, 1769, 202, 202, 16760, 4157, 273, 28556, 5621, 202, 202, 2821, 63, 20725, 67, 11271, 65, 273, 4157, 18, 588, 4809, 2335, 5621, 202, 202, 5748, 1191, 950, 273, 813, 397, 1466, 63, 20725, 67, 11271, 15533, 202, 202, 474, 2548, 273, 261, 474, 13, 261, 3729, 950, 342, 261, 3247, 380, 4752, 380, 4752, 380, 4336, 48, 10019, 202, 202, 474, 14833, 382, 4245, 273, 261, 474, 13, 261, 3729, 950, 738, 261, 3247, 380, 4752, 380, 4752, 380, 4336, 48, 10019, 202, 202, 430, 261, 81, 3503, 382, 4245, 411, 374, 13, 288, 1082, 202, 81, 3503, 382, 4245, 1011, 261, 3247, 380, 4752, 380, 4752, 380, 4336, 1769, 1082, 202, 2881, 413, 31, 202, 202, 97, 202, 202, 11162, 4245, 12, 2881, 16, 314, 14510, 1769, 202, 202, 2821, 63, 40, 882, 67, 11271, 65, 273, 4157, 18, 588, 2335, 12, 2821, 63, 654, 37, 6487, 1466, 63, 15137, 6487, 1466, 63, 13942, 6487, 1466, 63, 10339, 67, 3932, 67, 13942, 6487, 1466, 63, 10339, 67, 3932, 67, 20274, 6487, 14833, 382, 4245, 13, 300, 1466, 63, 20725, 67, 11271, 15533, 202, 202, 81, 3503, 382, 4245, 1011, 1466, 63, 40, 882, 67, 11271, 15533, 202, 202, 430, 261, 81, 3503, 382, 4245, 1545, 4248, 380, 4752, 380, 4752, 380, 4336, 13, 288, 1082, 202, 81, 3503, 382, 4245, 3947, 4248, 380, 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, 3852, 918, 3671, 2314, 1435, 288, 202, 202, 6494, 314, 14510, 273, 261, 957, 1545, 314, 14510, 15812, 1643, 1769, 202, 202, 16760, 4157, 273, 28556, 5621, 202, 202, 2821, 63, 20725, 67, 11271, 65, 273, 4157, 18, 588, 4809, 2335, 5621, 202, 202, 5748, 1191, 950, 273, 813, 397, 1466, 63, 20725, 67, 11271, 15533, 202, 202, 474, 2548, 273, 261, 474, 13, 261, 3729, 950, 342, 261, 3247, 380, 4752, 380, 4752, 380, 4336, 48, 10019, 202, 202, 474, 14833, 382, 4245, 273, 261, 474, 13, 261, 3729, 950, 738, 261, 3247, 380, 4752, 380, 4752, 380, 4336, 48, 10019, 202, 202, 430, 261, 81, 3503, 382, 4245, 411, 374, 13, 288, 1082, 202, 2 ]
setLinkText(infos[i].getJob(), taskString, taskCount); taskCount++;
setLinkText(infos[i].getJob(), taskString, i);
void refresh() { if (isDisposed()) { return; } progressLabel.setText(getMainTitle()); int percentDone = getPercentDone(); JobInfo[] infos = getJobInfos(); if (isRunning()) { if (progressBar == null) { if (percentDone == IProgressMonitor.UNKNOWN) { // Only do it if there is an indeterminate task // There may be no task so we don't want to create it // until we know for sure for (int i = 0; i < infos.length; i++) { if (infos[i].hasTaskInfo() && infos[i].getTaskInfo().totalWork == IProgressMonitor.UNKNOWN) { createProgressBar(SWT.INDETERMINATE); break; } } } else { createProgressBar(SWT.NONE); progressBar.setMinimum(0); progressBar.setMaximum(100); } } // Protect against bad counters if (percentDone >= 0 && percentDone <= 100 && percentDone != progressBar.getSelection()) { progressBar.setSelection(percentDone); } } else if (isCompleted()) { if (progressBar != null) { progressBar.dispose(); progressBar = null; } setLayoutsForNoProgress(); actionButton.setImage(JFaceResources .getImage(CLEAR_FINISHED_JOB_KEY)); actionButton.setDisabledImage(JFaceResources .getImage(DISABLED_CLEAR_FINISHED_JOB_KEY)); } int taskCount = 0; for (int i = 0; i < infos.length; i++) { JobInfo jobInfo = infos[i]; if (jobInfo.hasTaskInfo()) { String taskString = jobInfo.getTaskInfo().getTaskName(); String subTaskString = null; Object[] jobChildren = jobInfo.getChildren(); if (jobChildren.length > 0) { subTaskString = ((JobTreeElement) jobChildren[0]) .getDisplayString(); } if (subTaskString != null) { if (taskString == null) { taskString = subTaskString; } else { taskString = NLS.bind( ProgressMessages.JobInfo_DoneNoProgressMessage, taskString, subTaskString); } } if (taskString != null) { setLinkText(infos[i].getJob(), taskString, taskCount); taskCount++; } } else {// Check for the finished job state Job job = jobInfo.getJob(); if (job.getResult() != null) { IStatus result = job.getResult(); String message = EMPTY_STRING; if (result != null) { message = result.getMessage(); } setLinkText(job, message, i); taskCount++; } } setColor(i); } // Remove completed tasks if (taskCount < taskEntries.size()) { for (int i = taskCount; i < taskEntries.size(); i++) { ((Link) taskEntries.get(i)).dispose(); } taskEntries = taskEntries.subList(0, taskCount); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1b097b3cc630eee2e67227f51d7b3ae7bb91f744/ProgressInfoItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 4460, 1435, 288, 202, 202, 430, 261, 291, 1669, 7423, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 8298, 2224, 18, 542, 1528, 12, 588, 6376, 4247, 10663, 202, 202, 474, 5551, 7387, 273, 22612, 2998, 7387, 5621, 202, 202, 2278, 966, 8526, 10626, 273, 13024, 7655, 5621, 202, 202, 430, 261, 291, 7051, 10756, 288, 1082, 202, 430, 261, 8298, 5190, 422, 446, 13, 288, 9506, 202, 430, 261, 8849, 7387, 422, 467, 5491, 7187, 18, 14737, 13, 288, 6862, 202, 759, 5098, 741, 518, 309, 1915, 353, 392, 1547, 4443, 340, 1562, 6862, 202, 759, 6149, 2026, 506, 1158, 1562, 1427, 732, 2727, 1404, 2545, 358, 752, 518, 6862, 202, 759, 3180, 732, 5055, 364, 3071, 6862, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 10626, 18, 2469, 31, 277, 27245, 288, 25083, 202, 430, 261, 18227, 63, 77, 8009, 5332, 2174, 966, 1435, 6862, 9506, 202, 10, 10, 10626, 63, 77, 8009, 588, 2174, 966, 7675, 4963, 2421, 422, 467, 5491, 7187, 18, 14737, 13, 288, 6862, 1082, 202, 2640, 31547, 12, 55, 8588, 18, 2356, 1584, 654, 6236, 1777, 1769, 6862, 1082, 202, 8820, 31, 25083, 202, 97, 6862, 202, 97, 9506, 202, 97, 469, 288, 6862, 202, 2640, 31547, 12, 55, 8588, 18, 9826, 1769, 6862, 202, 8298, 5190, 18, 542, 13042, 12, 20, 1769, 6862, 202, 8298, 5190, 18, 542, 13528, 12, 6625, 1769, 9506, 202, 97, 1082, 202, 97, 1082, 202, 759, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 4460, 1435, 288, 202, 202, 430, 261, 291, 1669, 7423, 10756, 288, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 8298, 2224, 18, 542, 1528, 12, 588, 6376, 4247, 10663, 202, 202, 474, 5551, 7387, 273, 22612, 2998, 7387, 5621, 202, 202, 2278, 966, 8526, 10626, 273, 13024, 7655, 5621, 202, 202, 430, 261, 291, 7051, 10756, 288, 1082, 202, 430, 261, 8298, 5190, 422, 446, 13, 288, 9506, 202, 430, 261, 8849, 7387, 422, 467, 5491, 7187, 18, 14737, 13, 288, 6862, 202, 759, 5098, 741, 518, 309, 1915, 353, 392, 1547, 4443, 340, 1562, 6862, 202, 759, 6149, 2026, 506, 1158, 1562, 1427, 732, 2727, 1404, 2545, 358, 752, 518, 6862, 202, 759, 2 ]
if ((_tokenSet_1.member(LA(1)))) {
if ((LA(1)=='&') && (LA(2)=='a'||LA(2)=='g'||LA(2)=='l'||LA(2)=='q')) { mPREDEFINED_ENTITY_REF(false); } else if ((LA(1)=='&') && (LA(2)=='#')) { mCHAR_REF(false); } else if ((LA(1)=='"') && (LA(2)=='"')) {
public final void mSTRING_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = STRING_LITERAL; int _saveIndex; switch ( LA(1)) { case '"': { _saveIndex=text.length(); match('"'); text.setLength(_saveIndex); { _loop184: do { if ((_tokenSet_1.member(LA(1)))) { { match(_tokenSet_1); } } else { break _loop184; } } while (true); } _saveIndex=text.length(); match('"'); text.setLength(_saveIndex); break; } case '\'': { _saveIndex=text.length(); match('\''); text.setLength(_saveIndex); { _loop187: do { if ((_tokenSet_2.member(LA(1)))) { { match(_tokenSet_2); } } else { break _loop187; } } while (true); } _saveIndex=text.length(); match('\''); text.setLength(_saveIndex); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } 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/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/XPathLexer2.java/clean/src/org/exist/parser/XPathLexer2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 312, 5804, 67, 23225, 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, 9469, 67, 23225, 31, 202, 202, 474, 389, 5688, 1016, 31, 9506, 202, 9610, 261, 2928, 12, 21, 3719, 288, 202, 202, 3593, 2119, 4278, 202, 202, 95, 1082, 202, 67, 5688, 1016, 33, 955, 18, 2469, 5621, 1082, 202, 1916, 2668, 5187, 1769, 1082, 202, 955, 18, 542, 1782, 24899, 5688, 1016, 1769, 1082, 202, 95, 1082, 202, 67, 6498, 29242, 30, 1082, 202, 2896, 288, 9506, 202, 430, 14015, 67, 2316, 694, 67, 21, 18, 5990, 12, 2534, 12, 21, 3719, 3719, 288, 6862, 202, 95, 6862, 202, 1916, 24899, 2316, 694, 67, 21, 1769, 6862, 202, 97, 9506, 202, 97, 9506, 202, 12107, 288, 6862, 202, 8820, 389, 6498, 29242, 31, 9506, 202, 97, 6862, 1082, 202, 97, 1323, 261, 3767, 1769, 1082, 202, 97, 1082, 202, 67, 5688, 1016, 33, 955, 18, 2469, 5621, 1082, 202, 1916, 2668, 5187, 1769, 1082, 202, 955, 18, 542, 1782, 24899, 5688, 1016, 1769, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 14118, 4278, 202, 202, 95, 1082, 202, 67, 5688, 1016, 33, 955, 18, 2469, 5621, 1082, 202, 1916, 2668, 3730, 8284, 1082, 202, 955, 18, 542, 1782, 24899, 5688, 1016, 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, 312, 5804, 67, 23225, 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, 9469, 67, 23225, 31, 202, 202, 474, 389, 5688, 1016, 31, 9506, 202, 9610, 261, 2928, 12, 21, 3719, 288, 202, 202, 3593, 2119, 4278, 202, 202, 95, 1082, 202, 67, 5688, 1016, 33, 955, 18, 2469, 5621, 1082, 202, 1916, 2668, 5187, 1769, 1082, 202, 955, 18, 542, 1782, 24899, 5688, 1016, 1769, 1082, 202, 95, 1082, 202, 67, 6498, 29242, 30, 1082, 202, 2896, 2 ]
query.getAggregationType(),query.wantDetails(), MessageAddress.getMessageAddress(key));
query.getAggregationType(),query.wantDetails(), MessageAddress.getMessageAddress(key));
public UID publishAggToMnrMgr(String key,DrillDownQuery query){ UID newUID=null; CmrRelay forwardedrelay = null; CmrFactory factory=(CmrFactory)getDomainService().getFactory("cmr"); if( loggingService.isDebugEnabled()) { loggingService.debug("Going to publish Agg query Relay to MnR manger :"+ key ); } if( loggingService.isDebugEnabled()) { loggingService.debug("Received DrillQuery from some MnR Manager"+ query.getOriginatorsUID().toString()); } forwardedrelay=factory.newDrillDownQueryRelay(query.getOriginatorsUID(),query.getAggQuery(), query.getAggregationType(),query.wantDetails(), MessageAddress.getMessageAddress(key)); newUID=forwardedrelay.getUID(); getBlackboardService().publishAdd(forwardedrelay); if( loggingService.isDebugEnabled()) { loggingService.debug("Published Agg query to Mnr Manager with UID :"+ newUID.toString() ); loggingService.debug("Published Agg query to Mnr Manager with query is :"+ forwardedrelay.toString() ); } return newUID; }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/f7157d8346c107658be478583daa53b7f343c6df/MnRAggQueryReceiverPlugin.java/clean/securityservices/src/org/cougaar/core/security/monitoring/plugin/MnRAggQueryReceiverPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 10034, 3808, 17139, 774, 49, 11611, 9455, 12, 780, 498, 16, 8956, 737, 4164, 1138, 843, 15329, 565, 10034, 394, 3060, 33, 2011, 31, 565, 385, 21387, 27186, 19683, 2878, 528, 273, 446, 31, 565, 385, 21387, 1733, 3272, 28657, 39, 21387, 1733, 13, 588, 3748, 1179, 7675, 588, 1733, 2932, 7670, 86, 8863, 3639, 309, 12, 2907, 1179, 18, 291, 2829, 1526, 10756, 288, 1377, 2907, 1179, 18, 4148, 2932, 5741, 310, 358, 3808, 25618, 843, 4275, 528, 358, 23851, 54, 312, 11455, 20514, 15, 498, 11272, 565, 289, 565, 309, 12, 2907, 1179, 18, 291, 2829, 1526, 10756, 288, 1377, 2907, 1179, 18, 4148, 2932, 8872, 11473, 737, 1138, 628, 2690, 23851, 54, 8558, 6, 15, 843, 18, 588, 7571, 3062, 3060, 7675, 10492, 10663, 565, 289, 565, 19683, 2878, 528, 33, 6848, 18, 2704, 8956, 737, 4164, 1138, 27186, 12, 2271, 18, 588, 7571, 3062, 3060, 9334, 2271, 18, 588, 17139, 1138, 9334, 4766, 10792, 843, 18, 588, 12089, 559, 9334, 2271, 18, 17369, 3790, 9334, 4766, 5397, 2350, 1887, 18, 24906, 1887, 12, 856, 10019, 565, 394, 3060, 33, 1884, 11804, 2878, 528, 18, 588, 3060, 5621, 565, 28373, 484, 3752, 1179, 7675, 6543, 986, 12, 1884, 11804, 2878, 528, 1769, 565, 309, 12, 2907, 1179, 18, 291, 2829, 1526, 10756, 288, 1377, 2907, 1179, 18, 4148, 2932, 16451, 25618, 843, 358, 490, 11611, 8558, 598, 225, 10034, 20514, 15, 394, 3060, 18, 10492, 1435, 11272, 1377, 2907, 1179, 18, 4148, 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, 10034, 3808, 17139, 774, 49, 11611, 9455, 12, 780, 498, 16, 8956, 737, 4164, 1138, 843, 15329, 565, 10034, 394, 3060, 33, 2011, 31, 565, 385, 21387, 27186, 19683, 2878, 528, 273, 446, 31, 565, 385, 21387, 1733, 3272, 28657, 39, 21387, 1733, 13, 588, 3748, 1179, 7675, 588, 1733, 2932, 7670, 86, 8863, 3639, 309, 12, 2907, 1179, 18, 291, 2829, 1526, 10756, 288, 1377, 2907, 1179, 18, 4148, 2932, 5741, 310, 358, 3808, 25618, 843, 4275, 528, 358, 23851, 54, 312, 11455, 20514, 15, 498, 11272, 565, 289, 565, 309, 12, 2907, 1179, 18, 291, 2829, 1526, 10756, 288, 1377, 2907, 1179, 18, 4148, 2932, 8872, 11473, 737, 1138, 628, 2690, 23851, 54, 8558, 6, 2 ]
protected String getTagValue(Element n) { StringBuffer result = new StringBuffer(); if(n != null) { NodeList childNodes = n.getChildNodes(); Node child = null; int numchilds = childNodes.getLength(); if(childNodes != null) { for(int i = 0;i < numchilds;i++) { child = childNodes.item(i); //if(child.getNodeType() == n.TEXT_NODE || child.getNodeType() == n.CDATA_SECTION_NODE) { if(child.getNodeType() == n.CDATA_SECTION_NODE) { result.append(child.getNodeValue()); } else { if(child.getNodeType() == n.TEXT_NODE) { String s = child.getNodeValue().trim(); if(!"".equals(s)) { result.append(child.getNodeValue()); } } } } } } return result.toString(); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/53020c572ca3e64148712b781e0f47c127dc8b78/A_CmsXmlContent.java/clean/src/com/opencms/template/A_CmsXmlContent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 11362, 620, 12, 1046, 290, 13, 288, 3639, 6674, 563, 273, 394, 6674, 5621, 3639, 309, 12, 82, 480, 446, 13, 288, 5411, 16781, 10582, 273, 290, 18, 588, 22460, 5621, 5411, 2029, 1151, 273, 446, 31, 5411, 509, 818, 3624, 87, 273, 10582, 18, 588, 1782, 5621, 5411, 309, 12, 3624, 3205, 480, 446, 13, 288, 7734, 364, 12, 474, 277, 273, 374, 31, 77, 411, 818, 3624, 87, 31, 77, 27245, 288, 10792, 1151, 273, 10582, 18, 1726, 12, 77, 1769, 4766, 3639, 368, 430, 12, 3624, 18, 588, 15101, 1435, 422, 290, 18, 5151, 67, 8744, 747, 1151, 18, 588, 15101, 1435, 422, 290, 18, 18375, 67, 19082, 67, 8744, 13, 288, 6862, 1082, 10792, 309, 12, 3624, 18, 588, 15101, 1435, 422, 290, 18, 18375, 67, 19082, 67, 8744, 13, 288, 13491, 563, 18, 6923, 12, 3624, 18, 588, 907, 620, 10663, 10792, 289, 10792, 469, 288, 13491, 309, 12, 3624, 18, 588, 15101, 1435, 422, 290, 18, 5151, 67, 8744, 13, 288, 18701, 514, 272, 273, 1151, 18, 588, 907, 620, 7675, 5290, 5621, 18701, 309, 12, 5, 3660, 18, 14963, 12, 87, 3719, 288, 27573, 563, 18, 6923, 12, 3624, 18, 588, 907, 620, 10663, 18701, 289, 13491, 289, 10792, 289, 7734, 289, 5411, 289, 3639, 289, 3639, 327, 563, 18, 10492, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 11362, 620, 12, 1046, 290, 13, 288, 3639, 6674, 563, 273, 394, 6674, 5621, 3639, 309, 12, 82, 480, 446, 13, 288, 5411, 16781, 10582, 273, 290, 18, 588, 22460, 5621, 5411, 2029, 1151, 273, 446, 31, 5411, 509, 818, 3624, 87, 273, 10582, 18, 588, 1782, 5621, 5411, 309, 12, 3624, 3205, 480, 446, 13, 288, 7734, 364, 12, 474, 277, 273, 374, 31, 77, 411, 818, 3624, 87, 31, 77, 27245, 288, 10792, 1151, 273, 10582, 18, 1726, 12, 77, 1769, 4766, 3639, 368, 430, 12, 3624, 18, 588, 15101, 1435, 422, 290, 18, 5151, 67, 8744, 747, 1151, 18, 588, 15101, 1435, 422, 290, 18, 18375, 67, 19082, 67, 8744, 13, 288, 6862, 2 ]
if (jq.Bootstrapping) return obj_trav.getInstanceFieldValue(o, f);
if (!jq.RunningNative) return obj_trav.getInstanceFieldValue(o, f);
public static Object getfield_A(Object o, jq_InstanceField f) { jq.Assert(f.getType().isReferenceType() && !f.getType().isAddressType()); if (jq.Bootstrapping) return obj_trav.getInstanceFieldValue(o, f); jq.Assert(TypeCheck.isAssignable(jq_Reference.getTypeOf(o), f.getDeclaringClass())); return ((HeapAddress) HeapAddress.addressOf(o).offset(f.getOffset()).peek()).asObject(); }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/5d9e9947ba00bb995ec27b28ff50b14198510c3c/Reflection.java/buggy/joeq_core/joeq/Runtime/Reflection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 336, 1518, 67, 37, 12, 921, 320, 16, 20656, 67, 1442, 974, 284, 13, 288, 3639, 20656, 18, 8213, 12, 74, 18, 588, 559, 7675, 291, 2404, 559, 1435, 597, 401, 74, 18, 588, 559, 7675, 291, 1887, 559, 10663, 3639, 309, 16051, 78, 85, 18, 7051, 9220, 13, 327, 1081, 67, 313, 842, 18, 588, 1442, 13559, 12, 83, 16, 284, 1769, 3639, 20656, 18, 8213, 12, 559, 1564, 18, 291, 7961, 12, 78, 85, 67, 2404, 18, 588, 559, 951, 12, 83, 3631, 284, 18, 588, 3456, 14682, 1435, 10019, 3639, 327, 14015, 15648, 1887, 13, 30241, 1887, 18, 2867, 951, 12, 83, 2934, 3348, 12, 74, 18, 588, 2335, 1435, 2934, 347, 3839, 1435, 2934, 345, 921, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 336, 1518, 67, 37, 12, 921, 320, 16, 20656, 67, 1442, 974, 284, 13, 288, 3639, 20656, 18, 8213, 12, 74, 18, 588, 559, 7675, 291, 2404, 559, 1435, 597, 401, 74, 18, 588, 559, 7675, 291, 1887, 559, 10663, 3639, 309, 16051, 78, 85, 18, 7051, 9220, 13, 327, 1081, 67, 313, 842, 18, 588, 1442, 13559, 12, 83, 16, 284, 1769, 3639, 20656, 18, 8213, 12, 559, 1564, 18, 291, 7961, 12, 78, 85, 67, 2404, 18, 588, 559, 951, 12, 83, 3631, 284, 18, 588, 3456, 14682, 1435, 10019, 3639, 327, 14015, 15648, 1887, 13, 30241, 1887, 18, 2867, 951, 12, 83, 2934, 3348, 12, 74, 18, 588, 2335, 1435, 2934, 347, 2 ]
for (Iterator it = linkSet.iterator(); it.hasNext();) { Node neighbour = (Node) it.next(); g.drawLine(u, v, neighbour.u, neighbour.v);
for (Iterator it = linkSet.iterator(); it.hasNext();) { Node neighbour = fromString((String) it.next()); if (neighbour != null && neighbour.visible()) { g.drawLine(u, v, neighbour.u, neighbour.v); } } AffineTransform at = graphic.getTransform(); AlphaComposite al2 = (AlphaComposite) graphic.getComposite(); AlphaComposite al = AlphaComposite.getInstance( AlphaComposite.SRC_OVER, (float) (scale)); graphic.setComposite(al); Color cl = graphic.getColor(); Stroke s = graphic.getStroke(); at.setToScale(scale, scale); graphic.setColor(Config.linkballcolor); graphic.setComposite(al); graphic.fillOval(U, V, relativeBallSize, relativeBallSize); AffineTransform at2 = new AffineTransform(); at2.setToScale(scale, scale); FontRenderContext frc = new FontRenderContext(at2, true, true); TextLayout l = new TextLayout( (new AttributedString(name)) .getIterator(), frc); l.draw(graphic, U, V); graphic.setComposite(al2);
public void paint(Graphics g) { Graphics2D graphic = (Graphics2D) g; double zc = Z - ZC; double scale; if (Math.abs(zc) > 1) scale = Math.abs(FOV * 1 / zc); else scale = 1; scale *= 2; if (scale > 1) scale = 1; if (scale < 0.1) scale = 0.1; g.setColor(Config.graphstringcolor); Set linkSet = links.keySet(); for (Iterator it = linkSet.iterator(); it.hasNext();) { Node neighbour = (Node) it.next(); g.drawLine(u, v, neighbour.u, neighbour.v); } AffineTransform at = graphic.getTransform(); AlphaComposite al2 = (AlphaComposite) graphic.getComposite(); AlphaComposite al = AlphaComposite.getInstance( AlphaComposite.SRC_OVER, (float) (scale)); graphic.setComposite(al); Color cl = graphic.getColor(); Stroke s = graphic.getStroke(); at.setToScale(scale, scale); graphic.setColor(Config.linkballcolor); graphic.setComposite(al); graphic.fillOval(U, V, relativeBallSize, relativeBallSize); AffineTransform at2 = new AffineTransform(); at2.setToScale(scale, scale); FontRenderContext frc = new FontRenderContext(at2, true, true); TextLayout l = new TextLayout((new AttributedString(name)).getIterator(), frc); l.draw(graphic, U, V); graphic.setComposite(al2); }
2030 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2030/de9e2c4a8f697872a5f47e00d06399692e38e1fb/Node.java/clean/tiki/lib/wiki3d/Node.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 12, 17558, 314, 13, 288, 202, 202, 17558, 22, 40, 19548, 273, 261, 17558, 22, 40, 13, 314, 31, 202, 202, 9056, 998, 71, 273, 2285, 300, 2285, 39, 31, 202, 202, 9056, 3159, 31, 202, 202, 430, 261, 10477, 18, 5113, 12, 94, 71, 13, 405, 404, 13, 1082, 202, 5864, 273, 2361, 18, 5113, 12, 3313, 58, 380, 404, 342, 998, 71, 1769, 202, 202, 12107, 1082, 202, 5864, 273, 404, 31, 202, 202, 5864, 6413, 576, 31, 202, 202, 430, 261, 5864, 405, 404, 13, 1082, 202, 5864, 273, 404, 31, 202, 202, 430, 261, 5864, 411, 374, 18, 21, 13, 1082, 202, 5864, 273, 374, 18, 21, 31, 202, 202, 75, 18, 542, 2957, 12, 809, 18, 4660, 1080, 3266, 1769, 202, 202, 694, 1692, 694, 273, 4716, 18, 856, 694, 5621, 202, 202, 1884, 261, 3198, 518, 273, 1692, 694, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 907, 16497, 273, 261, 907, 13, 518, 18, 4285, 5621, 1082, 202, 75, 18, 9446, 1670, 12, 89, 16, 331, 16, 16497, 18, 89, 16, 16497, 18, 90, 1769, 202, 202, 97, 202, 202, 13785, 558, 4059, 622, 273, 19548, 18, 588, 4059, 5621, 202, 202, 9690, 9400, 524, 22, 273, 261, 9690, 9400, 13, 19548, 18, 588, 9400, 5621, 202, 202, 9690, 9400, 524, 273, 1082, 202, 9690, 9400, 18, 588, 1442, 12, 9506, 202, 9690, 9400, 18, 28413, 67, 12959, 16, 9506, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 12, 17558, 314, 13, 288, 202, 202, 17558, 22, 40, 19548, 273, 261, 17558, 22, 40, 13, 314, 31, 202, 202, 9056, 998, 71, 273, 2285, 300, 2285, 39, 31, 202, 202, 9056, 3159, 31, 202, 202, 430, 261, 10477, 18, 5113, 12, 94, 71, 13, 405, 404, 13, 1082, 202, 5864, 273, 2361, 18, 5113, 12, 3313, 58, 380, 404, 342, 998, 71, 1769, 202, 202, 12107, 1082, 202, 5864, 273, 404, 31, 202, 202, 5864, 6413, 576, 31, 202, 202, 430, 261, 5864, 405, 404, 13, 1082, 202, 5864, 273, 404, 31, 202, 202, 430, 261, 5864, 411, 374, 18, 21, 13, 1082, 202, 5864, 273, 374, 18, 21, 31, 202, 202, 2 ]
public boolean allowGradeSubmission(String context)
public boolean allowGradeSubmission(String assignmentReference)
public boolean allowGradeSubmission(String context) { String resourceString = getAccessPoint(true) + Entity.SEPARATOR + "a" + Entity.SEPARATOR + context + Entity.SEPARATOR; if (M_log.isDebugEnabled()) { M_log.debug("Entering allow add Assignment with resource string : " + resourceString); M_log.debug(" context string : " + context); } return unlockCheck(SECURE_GRADE_ASSIGNMENT_SUBMISSION, resourceString); }
54270 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54270/c01d6a46c4a4ed185de66a207d16feb5cf263018/BaseAssignmentService.java/buggy/assignment-impl/impl/src/java/org/sakaiproject/assignment/impl/BaseAssignmentService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1699, 14571, 323, 17865, 12, 780, 819, 13, 202, 95, 202, 202, 780, 1058, 780, 273, 21909, 2148, 12, 3767, 13, 397, 3887, 18, 4550, 397, 315, 69, 6, 397, 3887, 18, 4550, 397, 819, 397, 3887, 18, 4550, 31, 202, 202, 430, 261, 49, 67, 1330, 18, 291, 2829, 1526, 10756, 202, 202, 95, 1082, 202, 49, 67, 1330, 18, 4148, 2932, 10237, 310, 1699, 527, 15499, 598, 1058, 533, 294, 315, 397, 1058, 780, 1769, 1082, 202, 49, 67, 1330, 18, 4148, 2932, 4766, 565, 819, 533, 294, 315, 397, 819, 1769, 202, 202, 97, 202, 202, 2463, 7186, 1564, 12, 11944, 4830, 67, 24554, 1639, 67, 23289, 3212, 67, 8362, 15566, 16, 1058, 780, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1699, 14571, 323, 17865, 12, 780, 819, 13, 202, 95, 202, 202, 780, 1058, 780, 273, 21909, 2148, 12, 3767, 13, 397, 3887, 18, 4550, 397, 315, 69, 6, 397, 3887, 18, 4550, 397, 819, 397, 3887, 18, 4550, 31, 202, 202, 430, 261, 49, 67, 1330, 18, 291, 2829, 1526, 10756, 202, 202, 95, 1082, 202, 49, 67, 1330, 18, 4148, 2932, 10237, 310, 1699, 527, 15499, 598, 1058, 533, 294, 315, 397, 1058, 780, 1769, 1082, 202, 49, 67, 1330, 18, 4148, 2932, 4766, 565, 819, 533, 294, 315, 397, 819, 1769, 202, 202, 97, 202, 202, 2463, 7186, 1564, 12, 11944, 4830, 67, 24554, 1639, 67, 23289, 3212, 67, 8362, 15566, 16, 2 ]
return new Division(left, right); }
return new Division(left, right); }
protected Expression makeExpression( Expression left, Expression right ) { return new Division(left, right); }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/DivisionTest.java/buggy/jmock/examples/calculator/src/test/jmock/examples/calculator/expression/DivisionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 5371, 1221, 2300, 12, 5371, 2002, 16, 5371, 2145, 262, 288, 202, 202, 2463, 394, 21411, 1951, 12, 4482, 16, 2145, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 5371, 1221, 2300, 12, 5371, 2002, 16, 5371, 2145, 262, 288, 202, 202, 2463, 394, 21411, 1951, 12, 4482, 16, 2145, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
setEnabled(selectedElements.size() == 1 && (selectedElements.get(0) instanceof Task || selectedElements.get(0) instanceof AbstractQueryHit));
if(selectedElements.size() == 1 && (selectedElements.get(0) instanceof Task)) { Task task = (Task)selectedElements.get(0); setEnabled(task.isLocal()); } else { setEnabled(false); }
public MarkTaskIncompleteAction(List<ITaskListElement> selectedElements) { this.selectedElements = selectedElements; setText("Mark Incomplete"); setToolTipText("Mark Incomplete"); setId(ID); setImageDescriptor(TaskListImages.TASK_INCOMPLETE); setEnabled(selectedElements.size() == 1 && (selectedElements.get(0) instanceof Task || selectedElements.get(0) instanceof AbstractQueryHit)); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/1f407a45eb6405d5d1dc7a92c08006013a5dab9c/MarkTaskIncompleteAction.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/MarkTaskIncompleteAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6622, 2174, 27531, 1803, 12, 682, 32, 1285, 835, 682, 1046, 34, 3170, 3471, 13, 288, 202, 202, 2211, 18, 8109, 3471, 273, 3170, 3471, 31, 202, 202, 542, 1528, 2932, 3882, 657, 6226, 8863, 202, 202, 542, 29250, 1528, 2932, 3882, 657, 6226, 8863, 202, 202, 542, 548, 12, 734, 1769, 202, 202, 542, 2040, 3187, 12, 2174, 682, 8946, 18, 15580, 67, 706, 15795, 1769, 202, 202, 542, 1526, 12, 8109, 3471, 18, 1467, 1435, 422, 404, 597, 261, 8109, 3471, 18, 588, 12, 20, 13, 1276, 3837, 747, 3170, 3471, 18, 588, 12, 20, 13, 1276, 4115, 1138, 13616, 10019, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6622, 2174, 27531, 1803, 12, 682, 32, 1285, 835, 682, 1046, 34, 3170, 3471, 13, 288, 202, 202, 2211, 18, 8109, 3471, 273, 3170, 3471, 31, 202, 202, 542, 1528, 2932, 3882, 657, 6226, 8863, 202, 202, 542, 29250, 1528, 2932, 3882, 657, 6226, 8863, 202, 202, 542, 548, 12, 734, 1769, 202, 202, 542, 2040, 3187, 12, 2174, 682, 8946, 18, 15580, 67, 706, 15795, 1769, 202, 202, 542, 1526, 12, 8109, 3471, 18, 1467, 1435, 422, 404, 597, 261, 8109, 3471, 18, 588, 12, 20, 13, 1276, 3837, 747, 3170, 3471, 18, 588, 12, 20, 13, 1276, 4115, 1138, 13616, 10019, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return (id.getName().equals("javadoc2")) ? myNestedClassNames.get(new AntTypeId("javadoc")) : myNestedClassNames.get(id);
if (name.equals("javadoc2")) { return myNestedClassNames.get(new AntTypeId("javadoc")); } /** * Hardcode for <unwar> and <unjar> tasks (IDEADEV-6830). */ if(name.equals("unwar") || name.equals("unjar")) { return myNestedClassNames.get(new AntTypeId("unzip")); } return myNestedClassNames.get(id);
public String getNestedClassName(final AntTypeId id) { /** * Hardcode for <javadoc> task (IDEADEV-6731). */ return (id.getName().equals("javadoc2")) ? myNestedClassNames.get(new AntTypeId("javadoc")) : myNestedClassNames.get(id); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/261a55dad6789797329066f82d9eeb951a8fdc11/AntTypeDefinitionImpl.java/buggy/plugins/ant/src/com/intellij/lang/ant/psi/introspection/impl/AntTypeDefinitionImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 336, 8649, 3834, 12, 6385, 18830, 11731, 612, 13, 288, 565, 1783, 377, 380, 670, 1060, 710, 364, 411, 78, 4805, 34, 1562, 261, 10385, 37, 15301, 17, 9599, 6938, 2934, 377, 1195, 565, 309, 261, 529, 18, 14963, 2932, 78, 4805, 22, 6, 3719, 288, 327, 3399, 8649, 18127, 18, 588, 12, 2704, 18830, 11731, 2932, 78, 4805, 7923, 1769, 289, 1783, 380, 670, 1060, 710, 364, 411, 318, 905, 34, 471, 411, 318, 11930, 34, 4592, 261, 10385, 37, 15301, 17, 9470, 5082, 2934, 1195, 309, 12, 529, 18, 14963, 2932, 318, 905, 7923, 747, 508, 18, 14963, 2932, 318, 11930, 6, 3719, 288, 327, 3399, 8649, 18127, 18, 588, 12, 2704, 18830, 11731, 2932, 318, 4450, 7923, 1769, 289, 327, 3399, 8649, 18127, 18, 588, 12, 350, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 336, 8649, 3834, 12, 6385, 18830, 11731, 612, 13, 288, 565, 1783, 377, 380, 670, 1060, 710, 364, 411, 78, 4805, 34, 1562, 261, 10385, 37, 15301, 17, 9599, 6938, 2934, 377, 1195, 565, 309, 261, 529, 18, 14963, 2932, 78, 4805, 22, 6, 3719, 288, 327, 3399, 8649, 18127, 18, 588, 12, 2704, 18830, 11731, 2932, 78, 4805, 7923, 1769, 289, 1783, 380, 670, 1060, 710, 364, 411, 318, 905, 34, 471, 411, 318, 11930, 34, 4592, 261, 10385, 37, 15301, 17, 9470, 5082, 2934, 1195, 309, 12, 529, 18, 14963, 2932, 318, 905, 7923, 747, 508, 18, 14963, 2932, 318, 11930, 6, 3719, 288, 327, 3399, 8649, 18127, 18, 588, 12, 2704, 18830, 11731, 2 ]
for (int i = 0; i < n; i++) {
for (int i = 0; i < n; i++) {
public boolean equals (ChunkDesc c) { PropertyDesc p1, p2; if (!token.equals(c.token)) return false; /* This next part is O(n^2) <sigh> */ int n = props.size(); for (int i = 0; i < n; i++) { p1 = (PropertyDesc) props.get(i); p2 = c.getPropertyDesc(p1.getToken()); if ((p2 == null) || (!p1.equals(p2))) return false; } return true; }
49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/a4bb69f22675a3ad19099b622a63e49b9da074b4/ChunkDesc.java/buggy/modules/jackal/config/org/vrjuggler/jccl/config/ChunkDesc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 261, 5579, 4217, 276, 13, 288, 3639, 4276, 4217, 293, 21, 16, 293, 22, 31, 3639, 309, 16051, 2316, 18, 14963, 12, 71, 18, 2316, 3719, 5411, 327, 629, 31, 3639, 1748, 1220, 1024, 1087, 353, 531, 12, 82, 66, 22, 13, 411, 87, 2031, 34, 1195, 3639, 509, 290, 273, 3458, 18, 1467, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 290, 31, 277, 27245, 288, 5411, 293, 21, 273, 261, 1396, 4217, 13, 3458, 18, 588, 12, 77, 1769, 5411, 293, 22, 273, 276, 18, 588, 1396, 4217, 12, 84, 21, 18, 588, 1345, 10663, 5411, 309, 14015, 84, 22, 422, 446, 13, 747, 16051, 84, 21, 18, 14963, 12, 84, 22, 20349, 7734, 327, 629, 31, 3639, 289, 3639, 327, 638, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1606, 261, 5579, 4217, 276, 13, 288, 3639, 4276, 4217, 293, 21, 16, 293, 22, 31, 3639, 309, 16051, 2316, 18, 14963, 12, 71, 18, 2316, 3719, 5411, 327, 629, 31, 3639, 1748, 1220, 1024, 1087, 353, 531, 12, 82, 66, 22, 13, 411, 87, 2031, 34, 1195, 3639, 509, 290, 273, 3458, 18, 1467, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 290, 31, 277, 27245, 288, 5411, 293, 21, 273, 261, 1396, 4217, 13, 3458, 18, 588, 12, 77, 1769, 5411, 293, 22, 273, 276, 18, 588, 1396, 4217, 12, 84, 21, 18, 588, 1345, 10663, 5411, 309, 14015, 84, 22, 422, 446, 13, 747, 16051, 84, 21, 18, 14963, 12, 2 ]
dataBufferPos = 0; dataBuffer = new char [DATA_BUFFER_INITIAL]; nameBufferPos = 0; nameBuffer = new char [NAME_BUFFER_INITIAL];
elementInfo = new HashMap(); entityInfo = new HashMap(); notationInfo = new HashMap(); skippedPE = false;
private void initializeVariables () { // First line line = 1; column = 0; // Set up the buffers for data and names dataBufferPos = 0; dataBuffer = new char [DATA_BUFFER_INITIAL]; nameBufferPos = 0; nameBuffer = new char [NAME_BUFFER_INITIAL]; // Set up the DTD hash tables elementInfo = new Hashtable (); entityInfo = new Hashtable (); notationInfo = new Hashtable (); skippedPE = false; // Set up the variables for the current // element context. currentElement = null; currentElementContent = CONTENT_UNDECLARED; // Set up the input variables sourceType = INPUT_NONE; inputStack = new Stack (); entityStack = new Stack (); externalEntity = null; tagAttributePos = 0; tagAttributes = new String [100]; rawReadBuffer = new byte [READ_BUFFER_MAX]; readBufferOverflow = -1; scratch = new InputSource (); inLiteral = false; expandPE = false; peIsError = false; doReport = false; inCDATA = false; symbolTable = new Object [SYMBOL_TABLE_LENGTH][]; }
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/7fb7568e63c3fe14af521de4699cb37898923ca7/XmlParser.java/buggy/libjava/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4046, 6158, 1832, 565, 288, 202, 759, 5783, 980, 202, 1369, 273, 404, 31, 202, 2827, 273, 374, 31, 202, 759, 1000, 731, 326, 9664, 364, 501, 471, 1257, 202, 892, 1892, 1616, 273, 374, 31, 202, 892, 1892, 273, 394, 1149, 306, 4883, 67, 11302, 67, 28497, 15533, 202, 529, 1892, 1616, 273, 374, 31, 202, 529, 1892, 273, 394, 1149, 306, 1985, 67, 11302, 67, 28497, 15533, 202, 759, 1000, 731, 326, 10696, 40, 1651, 4606, 202, 2956, 966, 273, 394, 18559, 261, 1769, 202, 1096, 966, 273, 394, 18559, 261, 1769, 202, 1819, 966, 273, 394, 18559, 261, 1769, 202, 25346, 1423, 273, 629, 31, 202, 759, 1000, 731, 326, 3152, 364, 326, 783, 202, 759, 930, 819, 18, 202, 2972, 1046, 273, 446, 31, 202, 2972, 1046, 1350, 273, 12577, 67, 2124, 1639, 15961, 5879, 31, 202, 759, 1000, 731, 326, 810, 3152, 202, 3168, 559, 273, 12943, 67, 9826, 31, 202, 2630, 2624, 273, 394, 7283, 261, 1769, 202, 1096, 2624, 273, 394, 7283, 261, 1769, 202, 9375, 1943, 273, 446, 31, 202, 2692, 1499, 1616, 273, 374, 31, 202, 2692, 2498, 273, 394, 514, 306, 6625, 15533, 202, 1899, 1994, 1892, 273, 394, 1160, 306, 6949, 67, 11302, 67, 6694, 15533, 202, 896, 1892, 15526, 273, 300, 21, 31, 202, 24638, 505, 273, 394, 23699, 261, 1769, 202, 267, 6177, 273, 629, 31, 202, 12320, 1423, 273, 629, 31, 202, 347, 2520, 668, 273, 629, 31, 202, 2896, 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, 4046, 6158, 1832, 565, 288, 202, 759, 5783, 980, 202, 1369, 273, 404, 31, 202, 2827, 273, 374, 31, 202, 759, 1000, 731, 326, 9664, 364, 501, 471, 1257, 202, 892, 1892, 1616, 273, 374, 31, 202, 892, 1892, 273, 394, 1149, 306, 4883, 67, 11302, 67, 28497, 15533, 202, 529, 1892, 1616, 273, 374, 31, 202, 529, 1892, 273, 394, 1149, 306, 1985, 67, 11302, 67, 28497, 15533, 202, 759, 1000, 731, 326, 10696, 40, 1651, 4606, 202, 2956, 966, 273, 394, 18559, 261, 1769, 202, 1096, 966, 273, 394, 18559, 261, 1769, 202, 1819, 966, 273, 394, 18559, 261, 1769, 202, 25346, 1423, 273, 629, 31, 202, 759, 1000, 731, 326, 3152, 364, 326, 2 ]
return RubyFixnum.newFixnum(recv.getRuntime(), recv.getRuntime().random.nextInt((int) ceil));
public static RubyNumeric rand(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { double result = recv.getRuntime().random.nextDouble(); return RubyFloat.newFloat(recv.getRuntime(), result); } else if (args.length == 1) { RubyInteger integerCeil = (RubyInteger) args[0].convertToType("Integer", "to_int", true); long ceil = integerCeil.getLongValue(); if (ceil > Integer.MAX_VALUE) { throw new NotImplementedError(recv.getRuntime(), "Random values larger than Integer.MAX_VALUE not supported"); } return RubyFixnum.newFixnum(recv.getRuntime(), recv.getRuntime().random.nextInt((int) ceil)); } else { throw new ArgumentError(recv.getRuntime(), "wrong # of arguments(" + args.length + " for 1)"); } }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/5742ade921eb900cb64ec6888a7431f111da5c32/KernelModule.java/clean/org/jruby/KernelModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 9902, 5605, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 833, 63, 5717, 288, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 1645, 563, 273, 10665, 18, 588, 5576, 7675, 9188, 18, 4285, 5265, 5621, 5411, 327, 19817, 4723, 18, 2704, 4723, 12, 18334, 18, 588, 5576, 9334, 563, 1769, 3639, 289, 469, 309, 261, 1968, 18, 2469, 422, 404, 13, 288, 5411, 19817, 4522, 3571, 39, 73, 330, 273, 261, 54, 10340, 4522, 13, 833, 63, 20, 8009, 6283, 31616, 2932, 4522, 3113, 315, 869, 67, 474, 3113, 638, 1769, 5411, 1525, 8416, 273, 3571, 39, 73, 330, 18, 588, 3708, 620, 5621, 5411, 309, 261, 311, 330, 405, 2144, 18, 6694, 67, 4051, 13, 288, 7734, 604, 394, 11206, 12, 18334, 18, 588, 5576, 9334, 315, 8529, 924, 10974, 2353, 2144, 18, 6694, 67, 4051, 486, 3260, 8863, 5411, 289, 10402, 289, 469, 288, 5411, 604, 394, 9236, 12, 18334, 18, 588, 5576, 9334, 315, 21530, 468, 434, 1775, 2932, 397, 833, 18, 2469, 397, 315, 364, 404, 2225, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 9902, 5605, 12, 7937, 10340, 921, 10665, 16, 15908, 10340, 921, 833, 63, 5717, 288, 3639, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 5411, 1645, 563, 273, 10665, 18, 588, 5576, 7675, 9188, 18, 4285, 5265, 5621, 5411, 327, 19817, 4723, 18, 2704, 4723, 12, 18334, 18, 588, 5576, 9334, 563, 1769, 3639, 289, 469, 309, 261, 1968, 18, 2469, 422, 404, 13, 288, 5411, 19817, 4522, 3571, 39, 73, 330, 273, 261, 54, 10340, 4522, 13, 833, 63, 20, 8009, 6283, 31616, 2932, 4522, 3113, 315, 869, 67, 474, 3113, 638, 1769, 5411, 1525, 8416, 273, 3571, 39, 73, 330, 18, 588, 3708, 620, 5621, 5411, 309, 261, 311, 330, 405, 2144, 2 ]
VM_Address cell; if (currentBlock.get(sizeClass).EQ(block)) cell = freeList.get(sizeClass); else cell = getFreeList(block);
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; }
4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/a7de63fef8e7c40112d47654d9001c19e3a0fe37/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, 565, 289, 565, 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, 1377, 289, 1377, 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, 1377, 289, 1377, 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, 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, 565, 289, 565, 1323, 16051, 3855, 18, 291, 7170, 10756, 288, 1377, 309, 261, 2629, 18, 27247, 12, 9394, 67, 11403, 3719, 288, 2 ]
return primaryClassAnnotation;
return (ClassAnnotation) findAnnotationOfType(ClassAnnotation.class);
public ClassAnnotation getPrimaryClass() { return primaryClassAnnotation; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/d23f5441c99911a093cc992056ba3bbd354f037a/BugInstance.java/clean/findbugs/src/java/edu/umd/cs/findbugs/BugInstance.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1659, 3257, 11398, 797, 1435, 288, 202, 202, 2463, 3354, 797, 3257, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1659, 3257, 11398, 797, 1435, 288, 202, 202, 2463, 3354, 797, 3257, 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 ]
((IASTOffsetableElement)declaration).setEndingOffset( lastToken.getEndOffset());
((IASTOffsetableElement)declaration).setEndingOffsetAndLineNumber( lastToken.getEndOffset(), lastToken.getLineNumber());
protected void simpleDeclaration( SimpleDeclarationStrategy strategy, IASTScope scope, IASTTemplate ownerTemplate) throws BacktrackException, EndOfFileException { IToken firstToken = LA(1); DeclarationWrapper sdw = new DeclarationWrapper(scope, firstToken.getOffset(), ownerTemplate); setCompletionKeywords( Key.DECL_SPECIFIER_SEQUENCE ); declSpecifierSeq(sdw, false, strategy == SimpleDeclarationStrategy.TRY_CONSTRUCTOR ); if (sdw.getTypeSpecifier() == null && sdw.getSimpleType() != IASTSimpleTypeSpecifier.Type.UNSPECIFIED ) try { sdw.setTypeSpecifier( astFactory.createSimpleTypeSpecifier( scope, sdw.getSimpleType(), sdw.getName(), sdw.isShort(), sdw.isLong(), sdw.isSigned(), sdw.isUnsigned(), sdw.isTypeNamed(), sdw.isComplex(), sdw.isImaginary())); } catch (Exception e1) { throw backtrack; } Declarator declarator = null; if (LT(1) != IToken.tSEMI) { declarator = initDeclarator(sdw, strategy); while (LT(1) == IToken.tCOMMA) { consume(); initDeclarator(sdw, strategy); } } boolean hasFunctionBody = false; boolean hasFunctionTryBlock = false; boolean consumedSemi = false; switch (LT(1)) { case IToken.tSEMI : consume(IToken.tSEMI); consumedSemi = true; break; case IToken.t_try : consume( IToken.t_try ); if( LT(1) == IToken.tCOLON ) ctorInitializer( declarator ); hasFunctionTryBlock = true; declarator.setFunctionTryBlock( true ); break; case IToken.tCOLON : ctorInitializer(declarator); break; case IToken.tLBRACE: break; default: throw backtrack; } if( ! consumedSemi ) { if( LT(1) == IToken.tLBRACE ) { if( firstToken == LA(1) ) throw backtrack; declarator.setHasFunctionBody(true); hasFunctionBody = true; } if( hasFunctionTryBlock && ! hasFunctionBody ) throw backtrack; } List l = null; try { l = sdw.createASTNodes(astFactory); } catch (ASTSemanticException e) { throw backtrack; } Iterator i = l.iterator(); if (hasFunctionBody && l.size() != 1) { throw backtrack; //TODO Should be an IProblem } if (i.hasNext()) // no need to do this unless we have a declarator { if (!hasFunctionBody) { while (i.hasNext()) { IASTDeclaration declaration = (IASTDeclaration)i.next(); ((IASTOffsetableElement)declaration).setEndingOffset( lastToken.getEndOffset()); declaration.acceptElement( requestor ); } } else { IASTDeclaration declaration = (IASTDeclaration)i.next(); declaration.enterScope( requestor ); if ( !( declaration instanceof IASTScope ) ) throw backtrack; handleFunctionBody((IASTScope)declaration, sdw.isInline() ); ((IASTOffsetableElement)declaration).setEndingOffset( lastToken.getEndOffset()); declaration.exitScope( requestor ); if( hasFunctionTryBlock ) catchHandlerSequence( scope ); } } else { try { astFactory .createTypeSpecDeclaration( sdw.getScope(), sdw.getTypeSpecifier(), ownerTemplate, sdw.getStartingOffset(), lastToken.getEndOffset()) .acceptElement(requestor); } catch (Exception e1) { throw backtrack; } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/a38f5c4f0dd1208b4df07f8a318b103677fbf77a/Parser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4143, 6094, 12, 3639, 4477, 6094, 4525, 6252, 16, 3639, 467, 9053, 3876, 2146, 16, 3639, 467, 9053, 2283, 3410, 2283, 13, 3639, 1216, 4297, 4101, 503, 16, 4403, 951, 812, 503, 565, 288, 377, 202, 1285, 969, 1122, 1345, 273, 2928, 12, 21, 1769, 3639, 16110, 4302, 3611, 8349, 91, 273, 5411, 394, 16110, 4302, 3611, 12, 4887, 16, 1122, 1345, 18, 588, 2335, 9334, 3410, 2283, 1769, 3639, 444, 11238, 14149, 12, 1929, 18, 23956, 67, 13847, 10591, 67, 25330, 11272, 3639, 3496, 21416, 6926, 12, 6427, 91, 16, 629, 16, 6252, 422, 4477, 6094, 4525, 18, 17805, 67, 26935, 916, 11272, 3639, 309, 261, 6427, 91, 18, 588, 559, 21416, 1435, 422, 446, 597, 8349, 91, 18, 588, 5784, 559, 1435, 480, 467, 9053, 5784, 559, 21416, 18, 559, 18, 2124, 13847, 13519, 262, 5411, 775, 5411, 288, 7734, 8349, 91, 18, 542, 559, 21416, 12, 10792, 3364, 1733, 18, 2640, 5784, 559, 21416, 12, 13491, 2146, 16, 13491, 8349, 91, 18, 588, 5784, 559, 9334, 13491, 8349, 91, 18, 17994, 9334, 13491, 8349, 91, 18, 291, 4897, 9334, 13491, 8349, 91, 18, 291, 3708, 9334, 13491, 8349, 91, 18, 291, 12294, 9334, 13491, 8349, 91, 18, 291, 13290, 9334, 8349, 91, 18, 291, 559, 7604, 9334, 8349, 91, 18, 291, 12795, 9334, 8349, 91, 18, 291, 26698, 2101, 1435, 10019, 5411, 289, 5411, 1044, 261, 503, 425, 21, 13, 5411, 288, 7734, 604, 1473, 4101, 31, 5411, 289, 7734, 16110, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4143, 6094, 12, 3639, 4477, 6094, 4525, 6252, 16, 3639, 467, 9053, 3876, 2146, 16, 3639, 467, 9053, 2283, 3410, 2283, 13, 3639, 1216, 4297, 4101, 503, 16, 4403, 951, 812, 503, 565, 288, 377, 202, 1285, 969, 1122, 1345, 273, 2928, 12, 21, 1769, 3639, 16110, 4302, 3611, 8349, 91, 273, 5411, 394, 16110, 4302, 3611, 12, 4887, 16, 1122, 1345, 18, 588, 2335, 9334, 3410, 2283, 1769, 3639, 444, 11238, 14149, 12, 1929, 18, 23956, 67, 13847, 10591, 67, 25330, 11272, 3639, 3496, 21416, 6926, 12, 6427, 91, 16, 629, 16, 6252, 422, 4477, 6094, 4525, 18, 17805, 67, 26935, 916, 11272, 3639, 309, 261, 6427, 91, 18, 588, 559, 21416, 1435, 422, 446, 2 ]
makeTestTables(cstmt); makeObjects(cstmt, 8);
public void testCallableStatementCall2() throws Exception { CallableStatement cstmt = con.prepareCall("{CALL sp_who}"); makeTestTables(cstmt); makeObjects(cstmt, 8); ResultSet rs = cstmt.executeQuery(); dump(rs); cstmt.close(); rs.close(); }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/31239e9062bef524a204bbd17ef75857ed26f1f9/CallableStatementTest.java/buggy/src/test/net/sourceforge/jtds/test/CallableStatementTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 11452, 3406, 1477, 22, 1435, 1216, 1185, 288, 3639, 10464, 3406, 276, 10589, 273, 356, 18, 9366, 1477, 2932, 95, 13730, 1694, 67, 3350, 83, 1532, 1769, 3639, 1221, 4709, 6905, 12, 71, 10589, 1769, 3639, 1221, 4710, 12, 71, 10589, 16, 1725, 1769, 3639, 10842, 3597, 273, 276, 10589, 18, 8837, 1138, 5621, 3639, 4657, 12, 5453, 1769, 3639, 276, 10589, 18, 4412, 5621, 3639, 3597, 18, 4412, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 11452, 3406, 1477, 22, 1435, 1216, 1185, 288, 3639, 10464, 3406, 276, 10589, 273, 356, 18, 9366, 1477, 2932, 95, 13730, 1694, 67, 3350, 83, 1532, 1769, 3639, 1221, 4709, 6905, 12, 71, 10589, 1769, 3639, 1221, 4710, 12, 71, 10589, 16, 1725, 1769, 3639, 10842, 3597, 273, 276, 10589, 18, 8837, 1138, 5621, 3639, 4657, 12, 5453, 1769, 3639, 276, 10589, 18, 4412, 5621, 3639, 3597, 18, 4412, 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 ]
public void intervalRemoved(ListDataEvent event);
void intervalRemoved(ListDataEvent event);
public void intervalRemoved(ListDataEvent event);
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/0788b89b7368770a1157f825d60dd8c5a9df183e/ListDataListener.java/buggy/core/src/classpath/javax/javax/swing/event/ListDataListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3673, 10026, 12, 682, 751, 1133, 871, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3673, 10026, 12, 682, 751, 1133, 871, 1769, 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 ]
new NoViableAltException("", 44, 1, input);
new NoViableAltException("", 45, 1, input);
public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 23: return s3; case EOL: case 15: return s1; case ID: return s2; default: NoViableAltException nvae = new NoViableAltException("", 44, 1, input); throw nvae; } }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/35c3932466a0269c296ae52afa8a1f8048a309d2/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 10213, 30, 10792, 327, 272, 23, 31, 7734, 648, 19995, 30, 7734, 648, 4711, 30, 10792, 327, 272, 21, 31, 7734, 648, 1599, 30, 10792, 327, 272, 22, 31, 7734, 805, 30, 10792, 17114, 15077, 273, 13491, 394, 17114, 2932, 3113, 12292, 16, 404, 16, 810, 1769, 10792, 604, 15077, 31, 3639, 289, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 463, 2046, 18, 1119, 6007, 12, 1702, 1228, 810, 13, 1216, 9539, 288, 7734, 1620, 261, 810, 18, 2534, 12, 21, 13, 262, 288, 7734, 648, 10213, 30, 10792, 327, 272, 23, 31, 7734, 648, 19995, 30, 7734, 648, 4711, 30, 10792, 327, 272, 21, 31, 7734, 648, 1599, 30, 10792, 327, 272, 22, 31, 7734, 805, 30, 10792, 17114, 15077, 273, 13491, 394, 17114, 2932, 3113, 12292, 16, 404, 16, 810, 1769, 10792, 604, 15077, 31, 3639, 289, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public static void setProperty( String key, String value ) {
public static void setProperty( String key, String value ) {
public static void setProperty( String key, String value ) { //for jdk1.1 compatibility (was _props.setProperty()) _props.put( key, value ); }
46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/427b81af6905dd67a3d2e38369db7effb2834f87/Environment.java/buggy/src/org/jacorb/util/Environment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 7486, 12, 514, 498, 16, 514, 460, 262, 377, 288, 540, 368, 1884, 525, 2883, 21, 18, 21, 8926, 261, 17416, 389, 9693, 18, 542, 1396, 10756, 3639, 389, 9693, 18, 458, 12, 498, 16, 460, 11272, 377, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 7486, 12, 514, 498, 16, 514, 460, 262, 377, 288, 540, 368, 1884, 525, 2883, 21, 18, 21, 8926, 261, 17416, 389, 9693, 18, 542, 1396, 10756, 3639, 389, 9693, 18, 458, 12, 498, 16, 460, 11272, 377, 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 ]
closeBracketIndex = findCloseBracket('>', openBracketIndex); if (closeBracketIndex == -1)
int pos1 = openBracketIndex; do
public final MarkupElement nextTag() throws ParseException { if (this.skipUntilText != null) { skipUntil(); } // While we can find an open tag, parse the tag int openBracketIndex = this.input.find('<'); if (openBracketIndex == -1) { // There is no next matching tag return null; } // Determine line number this.input.countLinesTo(openBracketIndex); // Get index of closing tag and advance past the tag int closeBracketIndex = this.input.find('>', openBracketIndex + 1); if (closeBracketIndex == -1) { throw new ParseException("No matching close bracket at position " + openBracketIndex, this.input.getPosition()); } // Get the tagtext between open and close brackets String tagText = this.input.getSubstring(openBracketIndex + 1, closeBracketIndex) .toString(); // Handle comments if (tagText.startsWith("!--")) { // Skip ahead to "-->". Note that you can not simply test for // tagText.endsWith("--") as the comment might contain a '>' // inside. int pos = this.input.find("-->", openBracketIndex + 1); if (pos == -1) { throw new ParseException("Unclosed comment beginning at line:" + input.getLineNumber() + " column:" + input.getColumnNumber(), openBracketIndex); } this.input.setPosition(pos + 3); return nextTag(); } // CDATA sections might contain "<" which is not part of an XML tag. // Make sure escaped "<" are treated right final String startText = (tagText.length() <= 8 ? tagText : tagText.substring(0, 8)); if (startText.toUpperCase().equals("![CDATA[")) { // Get index of closing tag and advance past the tag closeBracketIndex = findCloseBracket('>', openBracketIndex); if (closeBracketIndex == -1) { throw new ParseException("No matching close bracket at position " + openBracketIndex, this.input.getPosition()); } // Get the tagtext between open and close brackets tagText = this.input.getSubstring(openBracketIndex + 1, closeBracketIndex) .toString(); } { // Type of tag XmlTag.Type type = XmlTag.OPEN; // If the tag ends in '/', it's a "simple" tag like <foo/> if (tagText.endsWith("/")) { type = XmlTag.OPEN_CLOSE; tagText = tagText.substring(0, tagText.length() - 1); } else if (tagText.startsWith("/")) { // The tag text starts with a '/', it's a simple close tag type = XmlTag.CLOSE; tagText = tagText.substring(1); } // We don't deeply parse tags like DOCTYPE that start with ! // or XML document definitions that start with ? if (tagText.startsWith("!") || tagText.startsWith("?")) { // Move to position after the tag this.input.setPosition(closeBracketIndex + 1); // Return next tag return nextTag(); } else { String lowerCase = tagText.toLowerCase(); // Often save a (longer) comparison at the expense of a // extra shorter one for 's' tags if ((type == XmlTag.OPEN) && lowerCase.startsWith("s")) { if (lowerCase.startsWith("script")) { this.skipUntilText = "script"; } else if (lowerCase.startsWith("style")) { this.skipUntilText = "style"; } } // Parse remaining tag text, obtaining a tag object or null // if it's invalid final XmlTag tag = parseTagText(tagText); if (tag != null) { // Populate tag fields tag.type = type; tag.pos = openBracketIndex; tag.length = (closeBracketIndex + 1) - openBracketIndex; tag.text = this.input.getSubstring(openBracketIndex, closeBracketIndex + 1) .toString(); tag.lineNumber = this.input.getLineNumber(); tag.columnNumber = this.input.getColumnNumber(); // Move to position after the tag this.input.setPosition(closeBracketIndex + 1); // Return the tag we found! return tag; } else { throw new ParseException("Malformed tag (line " + this.input.getLineNumber() + ", column " + this.input.getColumnNumber() + ")", openBracketIndex); } } } }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/6133988841fffecc42e03b8e50e0336391641d9a/XmlPullParser.java/clean/wicket/src/java/wicket/markup/parser/XmlPullParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 26420, 1046, 1024, 1805, 1435, 1216, 10616, 202, 95, 202, 202, 430, 261, 2211, 18, 7457, 9716, 1528, 480, 446, 13, 202, 202, 95, 1082, 202, 7457, 9716, 5621, 202, 202, 97, 202, 202, 759, 21572, 732, 848, 1104, 392, 1696, 1047, 16, 1109, 326, 1047, 202, 202, 474, 1696, 11450, 1016, 273, 333, 18, 2630, 18, 4720, 2668, 32, 8284, 202, 202, 430, 261, 3190, 11450, 1016, 422, 300, 21, 13, 202, 202, 95, 1082, 202, 759, 6149, 353, 1158, 1024, 3607, 1047, 1082, 202, 2463, 446, 31, 202, 202, 97, 9506, 202, 759, 10229, 980, 1300, 202, 202, 2211, 18, 2630, 18, 1883, 5763, 774, 12, 3190, 11450, 1016, 1769, 202, 202, 759, 968, 770, 434, 7647, 1047, 471, 8312, 8854, 326, 1047, 202, 202, 474, 1746, 11450, 1016, 273, 333, 18, 2630, 18, 4720, 2668, 1870, 16, 1696, 11450, 1016, 397, 404, 1769, 202, 202, 430, 261, 4412, 11450, 1016, 422, 300, 21, 13, 202, 202, 95, 1082, 202, 12849, 394, 10616, 2932, 2279, 3607, 1746, 9843, 622, 1754, 315, 6862, 202, 15, 1696, 11450, 1016, 16, 333, 18, 2630, 18, 588, 2555, 10663, 202, 202, 97, 202, 202, 759, 968, 326, 1047, 955, 3086, 1696, 471, 1746, 15597, 202, 202, 780, 1047, 1528, 273, 333, 18, 2630, 18, 588, 1676, 1080, 12, 3190, 11450, 1016, 397, 404, 16, 1746, 11450, 1016, 13, 9506, 202, 18, 10492, 5621, 202, 202, 759, 5004, 5678, 202, 202, 430, 261, 2692, 1528, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 26420, 1046, 1024, 1805, 1435, 1216, 10616, 202, 95, 202, 202, 430, 261, 2211, 18, 7457, 9716, 1528, 480, 446, 13, 202, 202, 95, 1082, 202, 7457, 9716, 5621, 202, 202, 97, 202, 202, 759, 21572, 732, 848, 1104, 392, 1696, 1047, 16, 1109, 326, 1047, 202, 202, 474, 1696, 11450, 1016, 273, 333, 18, 2630, 18, 4720, 2668, 32, 8284, 202, 202, 430, 261, 3190, 11450, 1016, 422, 300, 21, 13, 202, 202, 95, 1082, 202, 759, 6149, 353, 1158, 1024, 3607, 1047, 1082, 202, 2463, 446, 31, 202, 202, 97, 9506, 202, 759, 10229, 980, 1300, 202, 202, 2211, 18, 2630, 18, 1883, 5763, 774, 12, 3190, 11450, 1016, 1769, 202, 202, 759, 2 ]
getLog().debug( "Source directories: " + compileSourceRoots.toString().replace( ",", "\n" ) ); getLog().debug( "Classpath: " + getClasspathElements().toString().replace( ",", "\n" ) );
getLog().debug( "Source directories: " + compileSourceRoots.toString().replace( ',', '\n' ) ); getLog().debug( "Classpath: " + getClasspathElements().toString().replace( ',', '\n' ) );
public void execute() throws MojoExecutionException { // ---------------------------------------------------------------------- // Look up the compiler. This is done before other code than can // cause the mojo to return before the lookup is done possibly resulting // in misconfigured POMs still building. // ---------------------------------------------------------------------- Compiler compiler; getLog().debug( "Using compiler '" + compilerId + "'." ); try { compiler = compilerManager.getCompiler( compilerId ); } catch ( NoSuchCompilerException e ) { throw new MojoExecutionException( "No such compiler '" + e.getCompilerId() + "'." ); } // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- List compileSourceRoots = removeEmptyCompileSourceRoots( getCompileSourceRoots() ); if ( compileSourceRoots.isEmpty() ) { getLog().info( "No sources to compile" ); return; } if ( getLog().isDebugEnabled() ) { getLog().debug( "Source directories: " + compileSourceRoots.toString().replace( ",", "\n" ) ); getLog().debug( "Classpath: " + getClasspathElements().toString().replace( ",", "\n" ) ); getLog().debug( "Output directory: " + getOutputDirectory() ); } // ---------------------------------------------------------------------- // Create the compiler configuration // ---------------------------------------------------------------------- CompilerConfiguration compilerConfiguration = new CompilerConfiguration(); compilerConfiguration.setOutputLocation( getOutputDirectory().getAbsolutePath() ); compilerConfiguration.setClasspathEntries( getClasspathElements() ); compilerConfiguration.setSourceLocations( compileSourceRoots ); compilerConfiguration.setDebug( debug ); compilerConfiguration.setShowWarnings( showWarnings ); compilerConfiguration.setShowDeprecation( showDeprecation ); compilerConfiguration.setSourceVersion( source ); compilerConfiguration.setTargetVersion( target ); compilerConfiguration.setSourceEncoding( encoding ); compilerConfiguration.setCustomCompilerArguments( compilerArguments ); compilerConfiguration.setFork( fork ); compilerConfiguration.setExecutable( executable ); compilerConfiguration.setWorkingDirectory( basedir ); compilerConfiguration.setCompilerVersion( compilerVersion ); compilerConfiguration.setBuildDirectory( buildDirectory ); compilerConfiguration.setOutputFileName( outputFileName ); // TODO: have an option to always compile (without need to clean) Set staleSources; boolean canUpdateTarget; try { staleSources = computeStaleSources( compilerConfiguration, compiler, getSourceInclusionScanner( staleMillis ) ); canUpdateTarget = compiler.canUpdateTarget( compilerConfiguration ); if ( compiler.getCompilerOutputStyle().equals( CompilerOutputStyle.ONE_OUTPUT_FILE_FOR_ALL_INPUT_FILES ) && !canUpdateTarget ) { getLog().info( "RESCANNING!" ); // TODO: This second scan for source files is sub-optimal String inputFileEnding = compiler.getInputFileEnding( compilerConfiguration ); Set sources = computeStaleSources( compilerConfiguration, compiler, getSourceInclusionScanner( inputFileEnding ) ); compilerConfiguration.setSourceFiles( sources ); } else { compilerConfiguration.setSourceFiles( staleSources ); } } catch ( CompilerException e ) { throw new MojoExecutionException( "Error while computing stale sources.", e ); } if ( staleSources.isEmpty() ) { getLog().info( "Nothing to compile - all classes are up to date" ); return; } // ---------------------------------------------------------------------- // Dump configuration // ---------------------------------------------------------------------- if ( getLog().isDebugEnabled() ) { getLog().debug( "Classpath:" ); for ( Iterator it = getClasspathElements().iterator(); it.hasNext(); ) { String s = (String) it.next(); getLog().debug( " " + s ); } getLog().debug( "Source roots:" ); for ( Iterator it = getCompileSourceRoots().iterator(); it.hasNext(); ) { String root = (String) it.next(); getLog().debug( " " + root ); } } // ---------------------------------------------------------------------- // Compile! // ---------------------------------------------------------------------- List messages; try { messages = compiler.compile( compilerConfiguration ); } catch ( Exception e ) { // TODO: don't catch Exception throw new MojoExecutionException( "Fatal error compiling", e ); } boolean compilationError = false; for ( Iterator i = messages.iterator(); i.hasNext(); ) { CompilerError message = (CompilerError) i.next(); if ( message.isError() ) { compilationError = true; } } if ( compilationError ) { throw new CompilationFailureException( messages ); } }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/6ee245b390c95107540cc976b77d285b0fd70d6f/AbstractCompilerMojo.java/clean/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 3639, 1216, 18780, 565, 288, 3639, 368, 8879, 13465, 3639, 368, 10176, 731, 326, 5274, 18, 1220, 353, 2731, 1865, 1308, 981, 2353, 848, 3639, 368, 4620, 326, 312, 10007, 358, 327, 1865, 326, 3689, 353, 2731, 10016, 8156, 3639, 368, 316, 7524, 16449, 453, 1872, 87, 4859, 10504, 18, 3639, 368, 8879, 13465, 3639, 12972, 5274, 31, 3639, 9189, 7675, 4148, 12, 315, 7736, 5274, 2119, 397, 5274, 548, 397, 30156, 11272, 3639, 775, 3639, 288, 5411, 5274, 273, 5274, 1318, 18, 588, 9213, 12, 5274, 548, 11272, 3639, 289, 3639, 1044, 261, 5823, 9213, 503, 425, 262, 3639, 288, 5411, 604, 394, 18780, 12, 315, 2279, 4123, 5274, 2119, 397, 425, 18, 588, 9213, 548, 1435, 397, 30156, 11272, 3639, 289, 3639, 368, 8879, 13465, 3639, 368, 3639, 368, 8879, 13465, 3639, 987, 4074, 1830, 17540, 273, 1206, 1921, 9937, 1830, 17540, 12, 336, 9937, 1830, 17540, 1435, 11272, 3639, 309, 261, 4074, 1830, 17540, 18, 291, 1921, 1435, 262, 3639, 288, 5411, 9189, 7675, 1376, 12, 315, 2279, 5550, 358, 4074, 6, 11272, 5411, 327, 31, 3639, 289, 3639, 309, 261, 9189, 7675, 291, 2829, 1526, 1435, 262, 3639, 288, 5411, 9189, 7675, 4148, 12, 315, 1830, 6402, 30, 315, 397, 4074, 1830, 17540, 18, 10492, 7675, 2079, 12, 3104, 3113, 1548, 82, 6, 262, 11272, 5411, 9189, 7675, 4148, 12, 315, 17461, 30, 315, 397, 2900, 803, 3471, 7675, 10492, 7675, 2079, 12, 3104, 3113, 1548, 82, 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, 1836, 1435, 3639, 1216, 18780, 565, 288, 3639, 368, 8879, 13465, 3639, 368, 10176, 731, 326, 5274, 18, 1220, 353, 2731, 1865, 1308, 981, 2353, 848, 3639, 368, 4620, 326, 312, 10007, 358, 327, 1865, 326, 3689, 353, 2731, 10016, 8156, 3639, 368, 316, 7524, 16449, 453, 1872, 87, 4859, 10504, 18, 3639, 368, 8879, 13465, 3639, 12972, 5274, 31, 3639, 9189, 7675, 4148, 12, 315, 7736, 5274, 2119, 397, 5274, 548, 397, 30156, 11272, 3639, 775, 3639, 288, 5411, 5274, 273, 5274, 1318, 18, 588, 9213, 12, 5274, 548, 11272, 3639, 289, 3639, 1044, 261, 5823, 9213, 503, 425, 262, 3639, 288, 5411, 604, 394, 18780, 12, 315, 2279, 4123, 5274, 2119, 397, 425, 18, 2 ]
for(long i=wantedMoveNums.length;i<unwantedMoveNums.length;i++) { freeBlocks.add(i);
for(int i=wantedMoveNums.length;i<unwantedMoveNums.length+freeEarlySlots.length;i++) { if(i < freeEarlySlots.length) { addFreeBlock(freeEarlySlots[i], false, "early slot "+i); } else { addFreeBlock(unwantedMoveNums[i-freeEarlySlots.length].longValue(), false, "unwanted "+(i-freeEarlySlots.length)); }
private void maybeSlowShrink(boolean dontCheck, boolean inStartUp) throws DatabaseException, IOException { Vector wantedKeep = new Vector(); // keep; content is wanted, and is in the right place Vector unwantedIgnore = new Vector(); // ignore; content is not wanted, and is not in the right place Vector wantedMove = new Vector(); // content is wanted, but is in the wrong part of the store Vector unwantedMove = new Vector(); // content is not wanted, but is in the part of the store we will keep Vector alreadyDropped = new Vector(); // any blocks past the end which have already been truncated, but which there are still database blocks pointing to Cursor c = null; Transaction t = null; long newSize = maxChkBlocks; if(chkBlocksInStore < maxChkBlocks) return; chkBlocksInStore = checkForHoles(maxChkBlocks, true); WrapperManager.signalStarting(24*60*60*1000); long realSize = countCHKBlocksFromFile(); System.err.println("Shrinking from "+chkBlocksInStore+" to "+maxChkBlocks+" (from db "+countCHKBlocksFromDatabase()+" from file "+countCHKBlocksFromFile()+")"); try { c = chkDB_accessTime.openCursor(null,null); DatabaseEntry keyDBE = new DatabaseEntry(); DatabaseEntry blockDBE = new DatabaseEntry(); OperationStatus opStat; opStat = c.getLast(keyDBE, blockDBE, LockMode.RMW); if(opStat == OperationStatus.NOTFOUND) { System.err.println("Database is empty (shrinking)."); c.close(); c = null; return; } //Logger.minor(this, "Found first key"); int x = 0; while(true) { StoreBlock storeBlock = (StoreBlock) storeBlockTupleBinding.entryToObject(blockDBE); //Logger.minor(this, "Found another key ("+(x++)+") ("+storeBlock.offset+")"); long block = storeBlock.offset; if(storeBlock.offset > Integer.MAX_VALUE) { // 2^31 * blockSize; ~ 70TB for CHKs, 2TB for the others System.err.println("Store too big, doing quick shrink"); // memory usage would be insane c.close(); c = null; maybeQuickShrink(false, false); return; } Integer blockNum = new Integer((int)storeBlock.offset); //Long seqNum = new Long(storeBlock.recentlyUsed); //System.out.println("#"+x+" seq "+seqNum+": block "+blockNum); if(blockNum.longValue() >= chkBlocksInStore) { // Truncated already? Logger.minor(this, "Truncated already? "+blockNum.longValue()); alreadyDropped.add(blockNum); } else if(x < newSize) { // Wanted if(block < newSize) { //System.out.println("Keep where it is: block "+blockNum+" seq # "+x+" / "+newSize); wantedKeep.add(blockNum); } else { //System.out.println("Move to where it should go: "+blockNum+" seq # "+x+" / "+newSize); wantedMove.add(blockNum); } } else { // Unwanted if(block < newSize) { //System.out.println("Overwrite: "+blockNum+" seq # "+x+" / "+newSize); unwantedMove.add(blockNum); } else { //System.out.println("Ignore, will be wiped: block "+blockNum+" seq # "+x+" / "+newSize); unwantedIgnore.add(blockNum); } } opStat = c.getPrev(keyDBE, blockDBE, LockMode.RMW); if(opStat == OperationStatus.NOTFOUND) { System.out.println("Read store: "+x+" keys."); break; } x++; if(x % 1024 == 0) { System.out.println("Reading store prior to shrink: "+(x*100/chkBlocksInStore)+ "% ( "+x+"/"+chkBlocksInStore+")"); } if(x == Integer.MAX_VALUE) { System.err.println("Key number "+x+" - ignoring store after "+(x*(dataBlockSize+headerBlockSize)+" bytes")); break; } } } finally { if(c != null) c.close(); } Integer[] wantedKeepNums = (Integer[]) wantedKeep.toArray(new Integer[wantedKeep.size()]); Integer[] unwantedIgnoreNums = (Integer[]) unwantedIgnore.toArray(new Integer[unwantedIgnore.size()]); Integer[] wantedMoveNums = (Integer[]) wantedMove.toArray(new Integer[wantedMove.size()]); Integer[] unwantedMoveNums = (Integer[]) unwantedMove.toArray(new Integer[unwantedMove.size()]); long[] freeEarlySlots = freeBlocks.toArray(); Arrays.sort(wantedKeepNums); Arrays.sort(unwantedIgnoreNums); Arrays.sort(wantedMoveNums); Arrays.sort(unwantedMoveNums); for(int i=0;i<realSize;i++) { Integer ii = new Integer(i); if(Arrays.binarySearch(wantedKeepNums, ii) >= 0) continue; if(Arrays.binarySearch(unwantedIgnoreNums, ii) >= 0) continue; if(Arrays.binarySearch(wantedMoveNums, ii) >= 0) continue; if(Arrays.binarySearch(unwantedMoveNums, ii) >= 0) continue; unwantedMove.add(ii); } unwantedMoveNums = (Integer[]) unwantedMove.toArray(new Integer[unwantedMove.size()]); System.err.println("Keys to keep where they are: "+wantedKeepNums.length); System.err.println("Keys which will be wiped anyway: "+unwantedIgnoreNums.length); System.err.println("Keys to move: "+wantedMoveNums.length); System.err.println("Keys to be moved over: "+unwantedMoveNums.length); System.err.println("Free slots to be moved over: "+freeEarlySlots.length); // Now move all the wantedMove blocks onto the corresponding unwantedMove's. byte[] buf = new byte[headerBlockSize + dataBlockSize]; t = null; try { t = environment.beginTransaction(null,null); if(alreadyDropped.size() > 0) { System.err.println("Deleting "+alreadyDropped.size()+" blocks beyond the length of the file"); for(int i=0;i<alreadyDropped.size();i++) { Integer unwantedBlock = (Integer) alreadyDropped.get(i); DatabaseEntry unwantedBlockEntry = new DatabaseEntry(); longTupleBinding.objectToEntry(unwantedBlock, unwantedBlockEntry); chkDB_blockNum.delete(t, unwantedBlockEntry); if(i % 1024 == 0) { t.commit(); t = environment.beginTransaction(null,null); } } if(alreadyDropped.size() % 1024 != 0) { t.commit(); t = environment.beginTransaction(null,null); } } for(int i=0;i<wantedMove.size();i++) { Integer wantedBlock = wantedMoveNums[i]; Integer unwantedBlock; // Can we move over an empty slot? if(i < freeEarlySlots.length) { // Don't need to delete old block unwantedBlock = new Integer((int) freeEarlySlots[i]); // will fit in an int } else if(unwantedMoveNums.length + freeEarlySlots.length > i) { unwantedBlock = unwantedMoveNums[i-freeEarlySlots.length]; // Delete unwantedBlock from the store DatabaseEntry unwantedBlockEntry = new DatabaseEntry(); longTupleBinding.objectToEntry(unwantedBlock, unwantedBlockEntry); // Delete the old block from the database. chkDB_blockNum.delete(t, unwantedBlockEntry); } else { System.err.println("Keys to move but no keys to move over! Moved "+i); t.commit(); t = null; return; } // Move old data to new location DatabaseEntry wantedBlockEntry = new DatabaseEntry(); longTupleBinding.objectToEntry(wantedBlock, wantedBlockEntry); long seekTo = wantedBlock.longValue() * (headerBlockSize + dataBlockSize); try { chkStore.seek(seekTo); chkStore.readFully(buf); } catch (EOFException e) { System.err.println("Was reading "+wantedBlock+" to write to "+unwantedBlock); System.err.println(e); e.printStackTrace(); throw e; } seekTo = unwantedBlock.longValue() * (headerBlockSize + dataBlockSize); chkStore.seek(seekTo); chkStore.write(buf); // Update the database w.r.t. the old block. DatabaseEntry routingKeyDBE = new DatabaseEntry(); DatabaseEntry blockDBE = new DatabaseEntry(); chkDB_blockNum.get(t, wantedBlockEntry, routingKeyDBE, blockDBE, LockMode.RMW); StoreBlock block = (StoreBlock) storeBlockTupleBinding.entryToObject(blockDBE); block.offset = unwantedBlock.longValue(); storeBlockTupleBinding.objectToEntry(block, blockDBE); chkDB.put(t, routingKeyDBE, blockDBE); // Think about committing the transaction. if((i+1) % 2048 == 0) { t.commit(); t = environment.beginTransaction(null,null); System.out.println("Moving blocks: "+(i*100/wantedMove.size())+ "% ( "+i+"/"+wantedMove.size()+")"); } //System.err.println("Moved "+wantedBlock+" to "+unwantedBlock); } System.out.println("Moved all "+wantedMove.size()+" blocks"); if(t != null) { t.commit(); t = null; } } finally { if(t != null) t.abort(); } // If there are any slots left over, they must be free. freeBlocks.clear(); for(long i=wantedMoveNums.length;i<unwantedMoveNums.length;i++) { freeBlocks.add(i); } maybeQuickShrink(false, true); }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/c7d89e185f8060750493b680a989e7dc864babcd/BerkeleyDBFreenetStore.java/buggy/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6944, 28733, 28747, 12, 6494, 14046, 1564, 16, 1250, 316, 1685, 1211, 13, 1216, 27215, 16, 1860, 288, 202, 202, 5018, 15504, 11523, 273, 394, 5589, 5621, 368, 3455, 31, 913, 353, 15504, 16, 471, 353, 316, 326, 2145, 3166, 202, 202, 5018, 30264, 3777, 273, 394, 5589, 5621, 368, 2305, 31, 913, 353, 486, 15504, 16, 471, 353, 486, 316, 326, 2145, 3166, 202, 202, 5018, 15504, 7607, 273, 394, 5589, 5621, 368, 913, 353, 15504, 16, 1496, 353, 316, 326, 7194, 1087, 434, 326, 1707, 202, 202, 5018, 30264, 7607, 273, 394, 5589, 5621, 368, 913, 353, 486, 15504, 16, 1496, 353, 316, 326, 1087, 434, 326, 1707, 732, 903, 3455, 202, 202, 5018, 1818, 23683, 273, 394, 5589, 5621, 368, 1281, 4398, 8854, 326, 679, 1492, 1240, 1818, 2118, 15282, 16, 1496, 1492, 1915, 854, 4859, 2063, 4398, 17022, 358, 1082, 377, 202, 6688, 276, 273, 446, 31, 377, 202, 3342, 268, 273, 446, 31, 377, 202, 5748, 21402, 273, 943, 782, 79, 6450, 31, 377, 202, 430, 12, 27038, 6450, 382, 2257, 411, 943, 782, 79, 6450, 13, 327, 31, 377, 202, 377, 202, 27038, 6450, 382, 2257, 273, 13855, 44, 9112, 12, 1896, 782, 79, 6450, 16, 638, 1769, 377, 202, 377, 202, 3611, 1318, 18, 10420, 11715, 12, 3247, 14, 4848, 14, 4848, 14, 18088, 1769, 377, 202, 377, 202, 5748, 2863, 1225, 273, 1056, 1792, 47, 6450, 13087, 5621, 377, 202, 377, 202, 3163, 18, 370, 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, 6944, 28733, 28747, 12, 6494, 14046, 1564, 16, 1250, 316, 1685, 1211, 13, 1216, 27215, 16, 1860, 288, 202, 202, 5018, 15504, 11523, 273, 394, 5589, 5621, 368, 3455, 31, 913, 353, 15504, 16, 471, 353, 316, 326, 2145, 3166, 202, 202, 5018, 30264, 3777, 273, 394, 5589, 5621, 368, 2305, 31, 913, 353, 486, 15504, 16, 471, 353, 486, 316, 326, 2145, 3166, 202, 202, 5018, 15504, 7607, 273, 394, 5589, 5621, 368, 913, 353, 15504, 16, 1496, 353, 316, 326, 7194, 1087, 434, 326, 1707, 202, 202, 5018, 30264, 7607, 273, 394, 5589, 5621, 368, 913, 353, 486, 15504, 16, 1496, 353, 316, 326, 1087, 434, 326, 1707, 732, 903, 3455, 202, 202, 2 ]
String pass=(new BufferedReader(new InputStreamReader(System.in))).readLine();
String pass=br.readLine();
public void handle(Callback[] callbacks) throws java.io.IOException, UnsupportedCallbackException { for (int i = 0; i < callbacks.length; i++) { if (callbacks[i] instanceof NameCallback) { System.out.print(((NameCallback)callbacks[i]).getPrompt()); String user=(new BufferedReader(new InputStreamReader(System.in))).readLine(); ((NameCallback)callbacks[i]).setName(user); } else if (callbacks[i] instanceof PasswordCallback) { System.out.print(((PasswordCallback)callbacks[i]).getPrompt()); String pass=(new BufferedReader(new InputStreamReader(System.in))).readLine(); ((PasswordCallback)callbacks[i]).setPassword(pass.toCharArray()); } else { throw(new UnsupportedCallbackException( callbacks[i], "Callback class not supported")); } } }
55019 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55019/3425d9657be8021ba43f20780fb7293b999a6a5e/ConsoleCallbackHandler.java/clean/src/gov/nih/nci/ncicb/cadsr/loader/jaas/ConsoleCallbackHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1640, 12, 2428, 8526, 6689, 13, 377, 1216, 2252, 18, 1594, 18, 14106, 16, 7221, 2428, 503, 288, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6689, 18, 2469, 31, 277, 27245, 288, 1377, 309, 261, 13316, 63, 77, 65, 1276, 1770, 2428, 13, 288, 3639, 2332, 18, 659, 18, 1188, 12443, 12, 461, 2428, 13, 13316, 63, 77, 65, 2934, 588, 15967, 10663, 3639, 514, 729, 28657, 2704, 10633, 12, 2704, 15322, 12, 3163, 18, 267, 3719, 2934, 896, 1670, 5621, 3639, 14015, 461, 2428, 13, 13316, 63, 77, 65, 2934, 542, 461, 12, 1355, 1769, 1377, 289, 469, 309, 261, 13316, 63, 77, 65, 1276, 9234, 2428, 13, 288, 3639, 2332, 18, 659, 18, 1188, 12443, 12, 3913, 2428, 13, 13316, 63, 77, 65, 2934, 588, 15967, 10663, 3639, 514, 1342, 33, 2848, 18, 896, 1670, 5621, 3639, 14015, 3913, 2428, 13, 13316, 63, 77, 65, 2934, 542, 3913, 12, 5466, 18, 869, 15936, 10663, 1377, 289, 469, 288, 3639, 604, 12, 2704, 7221, 2428, 503, 12, 7734, 6689, 63, 77, 6487, 315, 2428, 667, 486, 3260, 7923, 1769, 1377, 289, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1640, 12, 2428, 8526, 6689, 13, 377, 1216, 2252, 18, 1594, 18, 14106, 16, 7221, 2428, 503, 288, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6689, 18, 2469, 31, 277, 27245, 288, 1377, 309, 261, 13316, 63, 77, 65, 1276, 1770, 2428, 13, 288, 3639, 2332, 18, 659, 18, 1188, 12443, 12, 461, 2428, 13, 13316, 63, 77, 65, 2934, 588, 15967, 10663, 3639, 514, 729, 28657, 2704, 10633, 12, 2704, 15322, 12, 3163, 18, 267, 3719, 2934, 896, 1670, 5621, 3639, 14015, 461, 2428, 13, 13316, 63, 77, 65, 2934, 542, 461, 12, 1355, 1769, 1377, 289, 469, 309, 261, 13316, 63, 77, 65, 1276, 9234, 2428, 13, 288, 3639, 2332, 18, 2 ]
public CvTableModel() {
public CvTableModel(JLabel status) {
public CvTableModel() { super(); // initialize the 512-length _cvAllVector; for (int i=0; i<512; i++) _cvAllVector.addElement(null); // define just address CV at start, pending some variables addCV("1"); }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/d0990d9221e1d87fb80fc569665a23bfcf53f7d7/CvTableModel.java/clean/jmri/symbolicprog/CvTableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 90, 1388, 1488, 12, 46, 2224, 1267, 13, 288, 21114, 202, 9565, 5621, 202, 202, 759, 4046, 326, 13908, 17, 2469, 389, 19774, 1595, 5018, 31, 202, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 13757, 31, 277, 27245, 389, 19774, 1595, 5018, 18, 1289, 1046, 12, 2011, 1769, 9506, 202, 759, 4426, 2537, 1758, 385, 58, 622, 787, 16, 4634, 2690, 3152, 202, 202, 1289, 22007, 2932, 21, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 385, 90, 1388, 1488, 12, 46, 2224, 1267, 13, 288, 21114, 202, 9565, 5621, 202, 202, 759, 4046, 326, 13908, 17, 2469, 389, 19774, 1595, 5018, 31, 202, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 13757, 31, 277, 27245, 389, 19774, 1595, 5018, 18, 1289, 1046, 12, 2011, 1769, 9506, 202, 759, 4426, 2537, 1758, 385, 58, 622, 787, 16, 4634, 2690, 3152, 202, 202, 1289, 22007, 2932, 21, 8863, 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 ]
descriptorTree.addChild(parent, child, DescriptorData.getDescriptorData(child));
final DescriptorData<NodeDescriptorImpl> descriptorData = DescriptorData.getDescriptorData(child); descriptorTree.addChild(parent, child, descriptorData); displayDescriptorTree.addChild(parent, child, descriptorData.getDisplayKey());
public void visit(NodeDescriptorImpl parent, NodeDescriptorImpl child) { descriptorTree.addChild(parent, child, DescriptorData.getDescriptorData(child)); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/84b20496caf8e6402adec0168964a1bb5832373f/NodeDescriptorFactoryImpl.java/buggy/source/com/intellij/debugger/ui/impl/watch/NodeDescriptorFactoryImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 3757, 12, 907, 3187, 2828, 982, 16, 2029, 3187, 2828, 1151, 13, 288, 3639, 727, 12823, 751, 32, 907, 3187, 2828, 34, 4950, 751, 273, 12823, 751, 18, 588, 3187, 751, 12, 3624, 1769, 4950, 2471, 18, 1289, 1763, 12, 2938, 16, 1151, 16, 4950, 751, 1769, 2562, 3187, 2471, 18, 1289, 1763, 12, 2938, 16, 1151, 16, 4950, 751, 18, 588, 4236, 653, 10663, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4202, 1071, 918, 3757, 12, 907, 3187, 2828, 982, 16, 2029, 3187, 2828, 1151, 13, 288, 3639, 727, 12823, 751, 32, 907, 3187, 2828, 34, 4950, 751, 273, 12823, 751, 18, 588, 3187, 751, 12, 3624, 1769, 4950, 2471, 18, 1289, 1763, 12, 2938, 16, 1151, 16, 4950, 751, 1769, 2562, 3187, 2471, 18, 1289, 1763, 12, 2938, 16, 1151, 16, 4950, 751, 18, 588, 4236, 653, 10663, 1377, 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 ]
AST tmp1276_AST_in = (AST)_t;
AST tmp1275_AST_in = (AST)_t;
public final void findstate(AST _t) throws RecognitionException { AST findstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST r = null; AST __t770 = _t; AST tmp1275_AST_in = (AST)_t; match(_t,FIND); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CURRENT: case EACH: case FIRST: case LAST: case NEXT: case PREV: { findwhich(_t); _t = _retTree; break; } case RECORD_NAME: { break; } default: { throw new NoViableAltException(_t); } } } AST __t772 = _t; r = _t==ASTNULL ? null :(AST)_t; match(_t,RECORD_NAME); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.recordNameNode(r, CQ.INIT); } recordphrase(_t); _t = _retTree; _t = __t772; _t = _t.getNextSibling(); { _loop774: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOWAIT: { AST tmp1276_AST_in = (AST)_t; match(_t,NOWAIT); _t = _t.getNextSibling(); break; } case NOPREFETCH: { AST tmp1277_AST_in = (AST)_t; match(_t,NOPREFETCH); _t = _t.getNextSibling(); break; } case NOERROR_KW: { AST tmp1278_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } default: { break _loop774; } } } while (true); } state_end(_t); _t = _retTree; _t = __t770; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1104, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1104, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 436, 273, 446, 31, 9506, 202, 9053, 1001, 88, 4700, 20, 273, 389, 88, 31, 202, 202, 9053, 1853, 2138, 5877, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 42, 2356, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 18484, 30, 202, 202, 3593, 512, 18133, 30, 202, 202, 3593, 21786, 30, 202, 202, 3593, 15612, 30, 202, 202, 3593, 19252, 30, 202, 202, 3593, 7071, 58, 30, 202, 202, 95, 1082, 202, 4720, 12784, 24899, 88, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 24346, 67, 1985, 30, 202, 202, 95, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 1886, 30, 202, 202, 95, 1082, 202, 12849, 394, 17114, 24899, 88, 1769, 202, 202, 97, 202, 202, 97, 202, 202, 97, 202, 202, 9053, 1001, 88, 4700, 22, 273, 389, 88, 31, 202, 202, 86, 273, 389, 88, 631, 9053, 8560, 692, 446, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1104, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1104, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 436, 273, 446, 31, 9506, 202, 9053, 1001, 88, 4700, 20, 273, 389, 88, 31, 202, 202, 9053, 1853, 2138, 5877, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 42, 2356, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 2 ]
int rindex = Compute.randomInt(boardsAvailable.size() - 3) + 3;
int rindex; if (boardsAvailable.size() == 1) rindex = 0; else rindex = Compute.randomInt(boardsAvailable.size() - 3) + 3;
public void replaceBoardWithRandom(String board) { for (int i = 0; i < boardsSelected.size(); i++) { if (boardsSelected.elementAt(i).equals(board)) { int rindex = Compute.randomInt(boardsAvailable.size() - 3) + 3; // Do a one pi rotation half of the time. if ( 0 == Compute.randomInt(2) ) { boardsSelected.setElementAt (Board.BOARD_REQUEST_ROTATION + boardsAvailable.elementAt(rindex), i); } else { boardsSelected.setElementAt (boardsAvailable.elementAt(rindex), i); } } } }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/39cd38324a07f70e0c6dcd1904e2d1d92ea66c4d/MapSettings.java/clean/megamek/src/megamek/common/MapSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1453, 22233, 1190, 8529, 12, 780, 11094, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 11094, 87, 7416, 18, 1467, 5621, 277, 27245, 288, 5411, 309, 261, 3752, 87, 7416, 18, 2956, 861, 12, 77, 2934, 14963, 12, 3752, 3719, 288, 7734, 509, 436, 1615, 31, 282, 309, 261, 3752, 87, 5268, 18, 1467, 1435, 422, 404, 13, 436, 1615, 273, 374, 31, 469, 436, 1615, 273, 8155, 18, 9188, 1702, 12, 3752, 87, 5268, 18, 1467, 1435, 300, 890, 13, 397, 890, 31, 7734, 368, 2256, 279, 1245, 4790, 6752, 8816, 434, 326, 813, 18, 7734, 309, 261, 374, 422, 8155, 18, 9188, 1702, 12, 22, 13, 262, 288, 10792, 11094, 87, 7416, 18, 542, 1046, 861, 13491, 261, 22233, 18, 5315, 8085, 67, 5519, 67, 1457, 56, 2689, 397, 7682, 11094, 87, 5268, 18, 2956, 861, 12, 86, 1615, 3631, 277, 1769, 7734, 289, 469, 288, 10792, 11094, 87, 7416, 18, 542, 1046, 861, 13491, 261, 3752, 87, 5268, 18, 2956, 861, 12, 86, 1615, 3631, 277, 1769, 7734, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1453, 22233, 1190, 8529, 12, 780, 11094, 13, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 11094, 87, 7416, 18, 1467, 5621, 277, 27245, 288, 5411, 309, 261, 3752, 87, 7416, 18, 2956, 861, 12, 77, 2934, 14963, 12, 3752, 3719, 288, 7734, 509, 436, 1615, 31, 282, 309, 261, 3752, 87, 5268, 18, 1467, 1435, 422, 404, 13, 436, 1615, 273, 374, 31, 469, 436, 1615, 273, 8155, 18, 9188, 1702, 12, 3752, 87, 5268, 18, 1467, 1435, 300, 890, 13, 397, 890, 31, 7734, 368, 2256, 279, 1245, 4790, 6752, 8816, 434, 326, 813, 18, 7734, 309, 261, 374, 422, 8155, 18, 9188, 1702, 12, 22, 13, 262, 288, 10792, 11094, 2 ]
StringBuffer strBuf = new StringBuffer(s);
int i = 19; sbuf.setLength(i);
public Timestamp getTimestamp(int columnIndex) throws SQLException { String s = getString(columnIndex); if (s == null) return null; boolean subsecond; //if string contains a '.' we have fractional seconds if (s.indexOf('.') == -1) { subsecond = false; } else { subsecond = true; } //here we are modifying the string from ISO format to a format java can understand //java expects timezone info as 'GMT-08:00' instead of '-08' in postgres ISO format //and java expects three digits if fractional seconds are present instead of two for postgres //so this code strips off timezone info and adds on the GMT+/-... //as well as adds a third digit for partial seconds if necessary StringBuffer strBuf = new StringBuffer(s); //we are looking to see if the backend has appended on a timezone. //currently postgresql will return +/-HH:MM or +/-HH for timezone offset //(i.e. -06, or +06:30, note the expectation of the leading zero for the //hours, and the use of the : for delimiter between hours and minutes) //if the backend ISO format changes in the future this code will //need to be changed as well char sub = strBuf.charAt(strBuf.length() - 3); if (sub == '+' || sub == '-') { strBuf.setLength(strBuf.length() - 3); if (subsecond) { strBuf.append('0').append("GMT").append(s.substring(s.length() - 3, s.length())).append(":00"); } else { strBuf.append("GMT").append(s.substring(s.length() - 3, s.length())).append(":00"); } } else if (sub == ':') { //we may have found timezone info of format +/-HH:MM, or there is no //timezone info at all and this is the : preceding the seconds char sub2 = strBuf.charAt(strBuf.length() - 5); if (sub2 == '+' || sub2 == '-') { //we have found timezone info of format +/-HH:MM strBuf.setLength(strBuf.length() - 5); if (subsecond) { strBuf.append('0').append("GMT").append(s.substring(s.length() - 5)); } else { strBuf.append("GMT").append(s.substring(s.length() - 5)); } } else if (subsecond) { strBuf.append('0'); } } else if (subsecond) { strBuf = strBuf.append('0'); } s = strBuf.toString(); SimpleDateFormat df = null; if (s.length() > 23 && subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSzzzzzzzzz"); } else if (s.length() > 23 && !subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:sszzzzzzzzz"); } else if (s.length() > 10 && subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); } else if (s.length() > 10 && !subsecond) { df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); } else { df = new SimpleDateFormat("yyyy-MM-dd"); } try { return new Timestamp(df.parse(s).getTime()); } catch (ParseException e) { throw new PSQLException("postgresql.res.badtimestamp", new Integer(e.getErrorOffset()), s); } }
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/3dd85bcb08440bae6210114124aa0002a83c957c/ResultSet.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8159, 11940, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 780, 272, 273, 4997, 12, 2827, 1016, 1769, 202, 202, 430, 261, 87, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 6494, 720, 8538, 31, 202, 202, 759, 430, 533, 1914, 279, 2611, 732, 1240, 20462, 3974, 202, 202, 430, 261, 87, 18, 31806, 2668, 1093, 13, 422, 300, 21, 13, 202, 202, 95, 1082, 202, 1717, 8538, 273, 629, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 1717, 8538, 273, 638, 31, 202, 202, 97, 202, 202, 759, 14852, 732, 854, 21920, 326, 533, 628, 9351, 740, 358, 279, 740, 2252, 848, 22413, 202, 202, 759, 6290, 10999, 6371, 1123, 487, 296, 25315, 17, 6840, 30, 713, 11, 3560, 434, 2400, 6840, 11, 316, 1603, 14107, 9351, 740, 202, 202, 759, 464, 2252, 10999, 8925, 6815, 309, 20462, 3974, 854, 3430, 3560, 434, 2795, 364, 1603, 14107, 202, 202, 759, 2048, 333, 981, 2569, 87, 3397, 6371, 1123, 471, 4831, 603, 326, 21706, 31298, 17, 2777, 202, 202, 759, 345, 5492, 487, 4831, 279, 12126, 8035, 364, 4702, 3974, 309, 4573, 202, 202, 780, 1892, 609, 5503, 273, 394, 6674, 12, 87, 1769, 202, 202, 759, 1814, 854, 7849, 358, 2621, 309, 326, 4221, 711, 12317, 603, 279, 6371, 18, 202, 202, 759, 2972, 715, 1603, 24330, 903, 327, 397, 19, 17, 17500, 30, 8206, 578, 397, 19, 17, 17500, 364, 6371, 1384, 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, 8159, 11940, 12, 474, 14882, 13, 1216, 6483, 202, 95, 202, 202, 780, 272, 273, 4997, 12, 2827, 1016, 1769, 202, 202, 430, 261, 87, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 6494, 720, 8538, 31, 202, 202, 759, 430, 533, 1914, 279, 2611, 732, 1240, 20462, 3974, 202, 202, 430, 261, 87, 18, 31806, 2668, 1093, 13, 422, 300, 21, 13, 202, 202, 95, 1082, 202, 1717, 8538, 273, 629, 31, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 1717, 8538, 273, 638, 31, 202, 202, 97, 202, 202, 759, 14852, 732, 854, 21920, 326, 533, 628, 9351, 740, 358, 279, 740, 2252, 848, 22413, 202, 202, 759, 6290, 2 ]
public static IntentionAction findActionWithText(final List<IntentionAction> actions, final String text) { for (IntentionAction action : actions) { if (text.equals(action.getText())) { return action; } } return null;
protected IntentionAction findActionWithText(final String text) { final List<IntentionAction> actions = getAvailableActions(); return findActionWithText(actions, text);
public static IntentionAction findActionWithText(final List<IntentionAction> actions, final String text) { for (IntentionAction action : actions) { if (text.equals(action.getText())) { return action; } } return null; }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/369ca0ddf7af33449089b5376dda4ae14764c53b/LightQuickFixTestCase.java/buggy/codeInsight/tests/com/intellij/codeInsight/daemon/quickFix/LightQuickFixTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 3094, 5054, 1803, 1104, 1803, 1190, 1528, 12, 6385, 987, 32, 1702, 5054, 1803, 34, 4209, 16, 727, 514, 977, 13, 288, 565, 364, 261, 1702, 5054, 1803, 1301, 294, 4209, 13, 288, 1377, 309, 261, 955, 18, 14963, 12, 1128, 18, 588, 1528, 1435, 3719, 288, 3639, 327, 1301, 31, 1377, 289, 565, 289, 565, 327, 446, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 760, 3094, 5054, 1803, 1104, 1803, 1190, 1528, 12, 6385, 987, 32, 1702, 5054, 1803, 34, 4209, 16, 727, 514, 977, 13, 288, 565, 364, 261, 1702, 5054, 1803, 1301, 294, 4209, 13, 288, 1377, 309, 261, 955, 18, 14963, 12, 1128, 18, 588, 1528, 1435, 3719, 288, 3639, 327, 1301, 31, 1377, 289, 565, 289, 565, 327, 446, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, InterpretedFunction fnOrScript)
static Object interpret(InterpretedFunction ifun, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, InterpretedFunction fnOrScript) { if (cx.interpreterSecurityDomain != fnOrScript.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = fnOrScript.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = fnOrScript.securityDomain; try { return fnOrScript.securityController.callWithDomain( fnOrScript.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } InterpreterData idata = fnOrScript.idata; final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int LOCAL_SHFT = idata.itsMaxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[0 <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for local temporaries// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[i] = arg; if (arg == DBL_MRK) { sDbl[i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != idata.itsMaxVars; ++i) { stack[i] = undefined; } DebugFrame debuggerFrame = null; boolean useActivationVars = false; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); useActivationVars = (debuggerFrame != null); } if (idata.itsNeedsActivation || useActivationVars) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } } if (idata.itsFunctionType != 0) { if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation || useActivationVars) { scope = ScriptRuntime.enterActivationFunction(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(fnOrScript, thisObj, cx, scope, fnOrScript.evalScriptFlag); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { initFunction(cx, scope, fnOrScript, i); } } } Scriptable[] scriptRegExps = null; if (idata.itsRegExpLiterals != null) { // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution if (idata.itsFunctionType != 0) { scriptRegExps = fnOrScript.functionRegExps; } else { scriptRegExps = fnOrScript.createRegExpWraps(cx, scope); } } if (debuggerFrame != null) { debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; int savedLineIndex = cx.interpreterLineIndex; cx.interpreterData = idata; cx.interpreterLineIndex = idata.firstLinePC; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; int pc = 0; int pcPrevBranch = 0; final boolean instructionCounting = (cx.instructionThreshold != 0); // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; String[] strings = idata.itsStringTable; String stringReg = null; int indexReg = 0; Loop: for (;;) { try { int op = iCode[pc++]; jumplessRun: { // Back indent to ease imlementation readingswitch (op) { case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); pc = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pc = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pc >= 0) { // Has catch block doCatch = true; } } if (pc < 0) { pc = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pc < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; if (instructionCounting) { // 500: catch cost cx.addInstructionCount(500); pcPrevBranch = pc; } continue Loop; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); throw new JavaScriptException(value, idata.itsSourceFile, sourceLine); } case Token.GE : case Token.LE : case Token.GT : case Token.LT : stackTop = do_cmp(stack, sDbl, stackTop, op); continue Loop; case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, cx, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, cx, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.EQ : case Token.NE : stackTop = do_eq(stack, sDbl, stackTop, op); continue Loop; case Token.SHEQ : case Token.SHNE : stackTop = do_sheq(stack, sDbl, stackTop, op); continue Loop; case Token.IFNE : if (stack_boolean(stack, sDbl, stackTop--)) { pc += 2; continue Loop; } break jumplessRun; case Token.IFEQ : if (!stack_boolean(stack, sDbl, stackTop--)) { pc += 2; continue Loop; } break jumplessRun; case Icode_IFEQ_POP : if (!stack_boolean(stack, sDbl, stackTop--)) { pc += 2; continue Loop; } stack[stackTop--] = null; break jumplessRun; case Token.GOTO : break jumplessRun; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; break jumplessRun; case Icode_RETSUB : { // indexReg: local to store return address if (instructionCounting) { cx.addInstructionCount(pc - pcPrevBranch); } Object value = stack[LOCAL_SHFT + indexReg]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; pc = getJavaCatchPC(iCode); } else { // Normal return from GOSUB pc = (int)sDbl[LOCAL_SHFT + indexReg]; pcPrevBranch = pc; } continue Loop; } case Icode_POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_POP_RESULT : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUP2 : stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stack[stackTop + 2] = stack[stackTop]; sDbl[stackTop + 2] = sDbl[stackTop]; stackTop += 2; continue Loop; case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_RESULT : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; continue Loop; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; continue Loop; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; continue Loop; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; continue Loop; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; continue Loop; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; continue Loop; } case Token.ADD : stackTop = do_add(stack, sDbl, stackTop, cx); continue Loop; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; continue Loop; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; continue Loop; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; continue Loop; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; continue Loop; } case Token.NOT : stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(cx, scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, cx, scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); continue Loop; } case Token.GETPROP : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getObjectProp(lhs, stringReg, cx, scope); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setObjectProp(lhs, stringReg, rhs, cx, scope); continue Loop; } case Icode_PROP_INC_DEC : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.propIncrDecr(lhs, stringReg, scope, iCode[pc]); ++pc; continue Loop; } case Token.GETELEM : stackTop = do_getElem(stack, sDbl, stackTop, cx, scope); continue Loop; case Token.SETELEM : stackTop = do_setElem(stack, sDbl, stackTop, cx, scope); continue Loop; case Icode_ELEM_INC_DEC: { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.elemIncrDecr(lhs, rhs, cx, scope, iCode[pc]); ++pc; continue Loop; } case Token.GET_REF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getReference(lhs); continue Loop; } case Token.SET_REF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setReference(lhs, rhs); continue Loop; } case Token.DEL_REF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.deleteReference(lhs); continue Loop; } case Icode_REF_INC_DEC : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.referenceIncrDecr(lhs, iCode[pc]); ++pc; continue Loop; } case Token.LOCAL_SAVE : stack[LOCAL_SHFT + indexReg] = stack[stackTop]; sDbl[LOCAL_SHFT + indexReg] = sDbl[stackTop]; --stackTop; continue Loop; case Token.LOCAL_LOAD : ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + indexReg]; sDbl[stackTop] = sDbl[LOCAL_SHFT + indexReg]; continue Loop; case Icode_NAME_AND_THIS : // stringReg: name ++stackTop; stack[stackTop] = ScriptRuntime.getNameFunctionAndThis(stringReg, cx, scope); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; case Icode_PROP_AND_THIS: { Object obj = stack[stackTop]; if (obj == DBL_MRK) obj = doubleWrap(sDbl[stackTop]); // stringReg: property stack[stackTop] = ScriptRuntime.getPropFunctionAndThis(obj, stringReg, cx, scope); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_ELEM_AND_THIS: { Object obj = stack[stackTop - 1]; if (obj == DBL_MRK) obj = doubleWrap(sDbl[stackTop - 1]); Object id = stack[stackTop]; if (id == DBL_MRK) id = doubleWrap(sDbl[stackTop]); stack[stackTop - 1] = ScriptRuntime.getElemFunctionAndThis(obj, id, cx, scope); stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_VALUE_AND_THIS : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getValueFunctionAndThis(value, cx); ++stackTop; stack[stackTop] = ScriptRuntime.lastStoredScriptable(cx); continue Loop; } case Icode_CALLSPECIAL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); stackTop -= indexReg; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, indexReg); if (isNew) { Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.newSpecial( cx, function, outArgs, scope, callType); } else { // Call code generation ensure that stack here // is ... Function Scriptable Scriptable functionThis = (Scriptable)stack[stackTop]; --stackTop; Function function = (Function)stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, function, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); } pc += 4; continue Loop; } case Token.CALL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; // CALL generation ensures that funThisObj and fun // are already Scriptable and Function objects respectively Scriptable funThisObj = (Scriptable)stack[stackTop]; --stackTop; Function fun = (Function)stack[stackTop]; Scriptable funScope = scope; if (idata.itsNeedsActivation) { funScope = ScriptableObject.getTopLevelScope(scope); } if (fun instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction ifun = (InterpretedFunction)fun; stack[stackTop] = interpret(cx, funScope, funThisObj, stack, sDbl, calleeArgShft, indexReg, ifun); } else { Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = fun.call(cx, funScope, funThisObj, outArgs); } continue Loop; } case Token.REF_CALL : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; // REF_CALL generation ensures that funThisObj and fun // are already Scriptable and Function objects respectively Scriptable funThisObj = (Scriptable)stack[stackTop]; --stackTop; Function fun = (Function)stack[stackTop]; Scriptable funScope = scope; if (idata.itsNeedsActivation) { funScope = ScriptableObject.getTopLevelScope(scope); } Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = ScriptRuntime.referenceCall(fun, funThisObj, outArgs, cx, funScope); continue Loop; } case Token.NEW : { if (instructionCounting) { cx.instructionCount += INVOCATION_COST; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, indexReg, f); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); throw notAFunction(lhs, idata, pc); } pc += 2; // skip debug name index continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(scope, stringReg); continue Loop; case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[indexReg]; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(cx, scope, stringReg); continue Loop; case Icode_NAME_INC_DEC : stack[++stackTop] = ScriptRuntime.nameIncrDecr(scope, stringReg, iCode[pc]); ++pc; continue Loop; case Icode_SETVAR1: indexReg = iCode[pc++]; // fallthrough case Token.SETVAR : if (!useActivationVars) { stack[indexReg] = stack[stackTop]; sDbl[indexReg] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, indexReg, val); } continue Loop; case Icode_GETVAR1: indexReg = iCode[pc++]; // fallthrough case Token.GETVAR : ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[indexReg]; sDbl[stackTop] = sDbl[indexReg]; } else { stack[stackTop] = activationGet(fnOrScript, scope, indexReg); } continue Loop; case Icode_VAR_INC_DEC : { // indexReg : varindex ++stackTop; int incrDecrMask = iCode[pc]; if (!useActivationVars) { stack[stackTop] = DBL_MRK; Object varValue = stack[indexReg]; double d; if (varValue == DBL_MRK) { d = sDbl[indexReg]; } else { d = ScriptRuntime.toNumber(varValue); stack[indexReg] = DBL_MRK; } double d2 = ((incrDecrMask & Node.DECR_FLAG) == 0) ? d + 1.0 : d - 1.0; sDbl[indexReg] = d2; sDbl[stackTop] = ((incrDecrMask & Node.POST_FLAG) == 0) ? d2 : d; } else { String varName = fnOrScript.argNames[indexReg]; stack[stackTop] = ScriptRuntime.nameIncrDecr(scope, varName, incrDecrMask); } ++pc; continue Loop; } case Icode_ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Icode_ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Icode_UNDEF : stack[++stackTop] = undefined; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; continue Loop; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; continue Loop; case Token.CATCH_SCOPE : stack[stackTop] = ScriptRuntime.newCatchScope(stringReg, stack[stackTop]); continue Loop; case Token.ENUM_INIT_KEYS : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + indexReg] = ScriptRuntime.enumInit(lhs, scope); continue Loop; } case Token.ENUM_INIT_VALUES : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + indexReg] = ScriptRuntime.enumValuesInit(lhs, scope); continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { Object val = stack[LOCAL_SHFT + indexReg]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val, cx); continue Loop; } case Token.SPECIAL_REF : { //stringReg: name of special property Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.specialReference(lhs, stringReg, cx, scope); continue Loop; } case Token.XML_REF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.xmlReference(lhs, cx, scope); continue Loop; } case Icode_SCOPE : stack[++stackTop] = scope; continue Loop; case Icode_CLOSURE_EXPR : stack[++stackTop] = InterpretedFunction.createFunction(cx, scope, fnOrScript, indexReg); continue Loop; case Icode_CLOSURE_STMT : initFunction(cx, scope, fnOrScript, indexReg); continue Loop; case Token.REGEXP : stack[++stackTop] = scriptRegExps[indexReg]; continue Loop; case Icode_LITERAL_NEW : // indexReg: number of values in the literal ++stackTop; stack[stackTop] = new Object[indexReg]; sDbl[stackTop] = 0; continue Loop; case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Icode_SPARE_ARRAYLIT : case Token.OBJECTLIT : { Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.OBJECTLIT) { Object[] ids = (Object[])idata.literalIds[indexReg]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } else { int[] skipIndexces = null; if (op == Icode_SPARE_ARRAYLIT) { skipIndexces = (int[])idata.literalIds[indexReg]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } stack[stackTop] = val; continue Loop; } case Icode_ENTERDQ : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterDotQuery(lhs, scope); ++withDepth; continue Loop; } case Icode_LEAVEDQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); Object x = ScriptRuntime.updateDotQuery(valBln, scope); if (x != null) { stack[stackTop] = x; scope = ScriptRuntime.leaveDotQuery(scope); --withDepth; pc += 2; continue Loop; } // reset stack and PC to code after ENTERDQ --stackTop; break jumplessRun; } case Token.DEFAULTNAMESPACE : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setDefaultNamespace(value, cx); continue Loop; } case Token.ESCXMLATTR : { Object value = stack[stackTop]; if (value != DBL_MRK) { stack[stackTop] = ScriptRuntime.escapeAttributeValue(value, cx); } continue Loop; } case Token.ESCXMLTEXT : { Object value = stack[stackTop]; if (value != DBL_MRK) { stack[stackTop] = ScriptRuntime.escapeTextValue(value, cx); } continue Loop; } case Token.TOATTRNAME : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.toAttributeName(value, cx); continue Loop; } case Token.DESCENDANTS : { Object value = stack[stackTop]; if(value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.toDescendantsName(value, cx); continue Loop; } case Token.COLONCOLON : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); // stringReg contains namespace stack[stackTop] = ScriptRuntime.toQualifiedName(stringReg, value, cx, scope); continue Loop; } case Icode_LINE : cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; continue Loop; case Icode_REG_IND_C0: indexReg = 0; continue Loop; case Icode_REG_IND_C1: indexReg = 1; continue Loop; case Icode_REG_IND_C2: indexReg = 2; continue Loop; case Icode_REG_IND_C3: indexReg = 3; continue Loop; case Icode_REG_IND_C4: indexReg = 4; continue Loop; case Icode_REG_IND_C5: indexReg = 5; continue Loop; case Icode_REG_IND1: indexReg = 0xFF & iCode[pc]; ++pc; continue Loop; case Icode_REG_IND2: indexReg = getIndex(iCode, pc); pc += 2; continue Loop; case Icode_REG_IND4: indexReg = getInt(iCode, pc); pc += 4; continue Loop; case Icode_REG_STR_C0: stringReg = strings[0]; continue Loop; case Icode_REG_STR_C1: stringReg = strings[1]; continue Loop; case Icode_REG_STR_C2: stringReg = strings[2]; continue Loop; case Icode_REG_STR_C3: stringReg = strings[3]; continue Loop; case Icode_REG_STR1: stringReg = strings[0xFF & iCode[pc]]; ++pc; continue Loop; case Icode_REG_STR2: stringReg = strings[getIndex(iCode, pc)]; pc += 2; continue Loop; case Icode_REG_STR4: stringReg = strings[getInt(iCode, pc)]; pc += 4; continue Loop; default : dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1));} // end of interpreter switch } // end of jumplessRun label block // This should be reachable only for jump implementation // when pc points to encoded target offset if (instructionCounting) { cx.addInstructionCount(pc + 2 - pcPrevBranch); } int offset = getShort(iCode, pc); if (offset != 0) { // -1 accounts for pc pointing to jump opcode + 1 pc += offset - 1; } else { pc = idata.longJumps.getExistingInt(pc); } pcPrevBranch = pc; continue Loop; } // end of interpreter try catch (Throwable ex) { if (instructionCounting) { // Can not call addInstructionCount as it may trigger // exception cx.instructionCount += pc - pcPrevBranch; } javaException = ex; exceptionPC = pc - 1; pc = getJavaCatchPC(iCode); continue Loop; } } // end of interpreter loop cx.interpreterData = savedData; cx.interpreterLineIndex = savedLineIndex; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsFunctionType != 0) { if (idata.itsNeedsActivation || useActivationVars) { ScriptRuntime.exitActivationFunction(cx); } } if (javaException != null) { if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/199b043221701f9744538a048390c041bd370c5f/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701, 5294, 15089, 329, 2083, 2295, 1162, 3651, 13, 565, 288, 3639, 309, 261, 71, 92, 18, 2761, 11599, 4368, 3748, 480, 2295, 1162, 3651, 18, 7462, 3748, 13, 288, 5411, 309, 261, 1968, 40, 3083, 480, 446, 13, 288, 7734, 833, 273, 30169, 1076, 12, 1968, 16, 833, 40, 3083, 16, 1501, 10544, 16, 1501, 1380, 1769, 5411, 289, 5411, 6036, 2933, 888, 273, 2295, 1162, 3651, 18, 7462, 2933, 31, 5411, 1033, 5198, 3748, 273, 9494, 18, 2761, 11599, 4368, 3748, 31, 5411, 9494, 18, 2761, 11599, 4368, 3748, 273, 2295, 1162, 3651, 18, 7462, 3748, 31, 5411, 775, 288, 7734, 327, 2295, 1162, 3651, 18, 7462, 2933, 18, 1991, 1190, 3748, 12, 13491, 2295, 1162, 3651, 18, 7462, 3748, 16, 9494, 16, 2295, 1162, 3651, 16, 2146, 16, 13491, 15261, 16, 833, 1769, 5411, 289, 3095, 288, 7734, 9494, 18, 2761, 11599, 4368, 3748, 273, 5198, 3748, 31, 5411, 289, 3639, 289, 3639, 5294, 11599, 751, 612, 396, 273, 2295, 1162, 3651, 18, 350, 396, 31, 3639, 727, 1033, 2383, 48, 67, 23464, 47, 273, 5294, 11599, 18, 2290, 48, 67, 23464, 47, 31, 3639, 727, 22780, 3109, 273, 22243, 18, 1336, 31, 3639, 727, 509, 15234, 67, 2664, 4464, 273, 612, 396, 18, 1282, 2747, 5555, 31, 3639, 727, 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, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 18701, 1033, 8526, 833, 16, 1645, 8526, 833, 40, 3083, 16, 18701, 509, 1501, 10544, 16, 509, 1501, 1380, 16, 18701, 5294, 15089, 329, 2083, 2295, 1162, 3651, 13, 565, 288, 3639, 309, 261, 71, 92, 18, 2761, 11599, 4368, 3748, 480, 2295, 1162, 3651, 18, 7462, 3748, 13, 288, 5411, 309, 261, 1968, 40, 3083, 480, 446, 13, 288, 7734, 833, 273, 30169, 1076, 12, 1968, 16, 833, 40, 3083, 16, 1501, 10544, 16, 1501, 1380, 1769, 5411, 289, 5411, 6036, 2933, 888, 273, 2295, 1162, 3651, 18, 7462, 2933, 31, 5411, 1033, 5198, 3748, 273, 9494, 18, 2761, 11599, 4368, 3748, 31, 5411, 2 ]
IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); final Register v = val.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { final int i = idx.getValue(); os.writeMOV(BYTESIZE, r, i + VmArray.DATA_OFFSET * 4, v); } else { final Register i = idx.getRegister(); os.writeMOV(BYTESIZE, r, i, 4, VmArray.DATA_OFFSET * 4, v); } val.release(eContext); idx.release(eContext); ref.release(eContext);
wastore(JvmType.BYTE);
public final void visit_bastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); final Register v = val.getRegister(); checkBounds(ref, idx); if (idx.getKind() == Item.Kind.CONSTANT) { final int i = idx.getValue(); os.writeMOV(BYTESIZE, r, i + VmArray.DATA_OFFSET * 4, v); } else { final Register i = idx.getRegister(); os.writeMOV(BYTESIZE, r, i, 4, VmArray.DATA_OFFSET * 4, v); } val.release(eContext); idx.release(eContext); ref.release(eContext); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d672242345f119107d72572d1e0cbc4bae87fa53/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 70, 689, 479, 1435, 288, 202, 202, 1702, 1180, 1244, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 1702, 1180, 2067, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 1957, 1180, 1278, 273, 19510, 18, 5120, 1957, 5621, 202, 202, 759, 3445, 3373, 3412, 30, 10979, 648, 598, 1866, 460, 202, 202, 1125, 18, 945, 12, 73, 1042, 1769, 202, 202, 3465, 18, 945, 2047, 12, 73, 1042, 16, 4871, 1180, 18, 5677, 18, 25878, 1769, 202, 202, 1734, 18, 945, 12, 73, 1042, 1769, 202, 202, 6385, 5433, 436, 273, 1278, 18, 588, 3996, 5621, 202, 202, 6385, 5433, 331, 273, 1244, 18, 588, 3996, 5621, 202, 202, 1893, 5694, 12, 1734, 16, 2067, 1769, 202, 202, 430, 261, 3465, 18, 588, 5677, 1435, 422, 4342, 18, 5677, 18, 25878, 13, 288, 1082, 202, 6385, 509, 277, 273, 2067, 18, 24805, 5621, 1082, 202, 538, 18, 2626, 5980, 58, 12, 15377, 4574, 16, 436, 16, 277, 397, 776, 81, 1076, 18, 4883, 67, 11271, 380, 1059, 16, 331, 1769, 202, 202, 97, 469, 288, 1082, 202, 6385, 5433, 277, 273, 2067, 18, 588, 3996, 5621, 1082, 202, 538, 18, 2626, 5980, 58, 12, 15377, 4574, 16, 436, 16, 277, 16, 1059, 16, 776, 81, 1076, 18, 4883, 67, 11271, 380, 1059, 16, 331, 1769, 202, 202, 97, 202, 202, 1125, 18, 9340, 12, 73, 1042, 1769, 202, 202, 3465, 18, 9340, 12, 73, 1042, 1769, 202, 202, 1734, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 70, 689, 479, 1435, 288, 202, 202, 1702, 1180, 1244, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 1702, 1180, 2067, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 1957, 1180, 1278, 273, 19510, 18, 5120, 1957, 5621, 202, 202, 759, 3445, 3373, 3412, 30, 10979, 648, 598, 1866, 460, 202, 202, 1125, 18, 945, 12, 73, 1042, 1769, 202, 202, 3465, 18, 945, 2047, 12, 73, 1042, 16, 4871, 1180, 18, 5677, 18, 25878, 1769, 202, 202, 1734, 18, 945, 12, 73, 1042, 1769, 202, 202, 6385, 5433, 436, 273, 1278, 18, 588, 3996, 5621, 202, 202, 6385, 5433, 331, 273, 1244, 18, 588, 3996, 5621, 202, 202, 1893, 5694, 12, 2 ]
setErrorMessage("No matching result found");
setErrorMessage(getResourceBundleString(NO_MATCH_FOUND));
public String processSearch() { LOG.debug("processSearch()"); List newls = new ArrayList() ;// for (Iterator iter = getDecoratedPvtMsgs().iterator(); iter.hasNext();)// {// PrivateMessageDecoratedBean element = (PrivateMessageDecoratedBean) iter.next();// // String message=element.getMsg().getTitle();// String searchText = getSearchText();// //if search on subject is set - default is true// if(searchOnSubject)// {// StringTokenizer st = new StringTokenizer(message);// while (st.hasMoreTokens())// {// if(st.nextToken().matches("(?i).*getSearchText().*")) //matches anywhere // //if(st.nextToken().equalsIgnoreCase(getSearchText())) // {// newls.add(element) ;// break;// }// }// }// //is search // // } /**TODO - * In advance srearch as there can be ANY type of combination like selection of * ANY 1 or 2 or 3 or 4 or 5 options like - subject, Author By, label, body and date * so all possible cases are taken care off. * This doesn't look nice, but good this is that we are using same method - our backend is cleaner * First - checked if date is selected then purmutation of 4 options * ELSE - permutations of other 4 options */ List tempPvtMsgLs= new ArrayList(); if(searchOnDate) { if((searchFromDate == null) && (searchToDate==null)) { setErrorMessage("Please enter from and to dates for search"); } if(searchOnSubject && searchOnAuthor && searchOnBody && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(1), new Long(1), new Long(1),new Long(1)) ; } else if(searchOnSubject && searchOnAuthor && searchOnBody) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(1), new Long(1), new Long(0),new Long(1)) ; } else if(searchOnSubject && searchOnAuthor && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(1), new Long(0), new Long(1),new Long(1)) ; } else if(searchOnSubject && searchOnLabel && searchOnBody) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(0), new Long(1), new Long(1),new Long(1)) ; } else if(searchOnAuthor && searchOnBody && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(1), new Long(1), new Long(1),new Long(1)) ; } else if(searchOnSubject && searchOnAuthor) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(1), new Long(0), new Long(0),new Long(1)) ; } else if(searchOnSubject && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(0), new Long(0), new Long(1),new Long(1)) ; } else if(searchOnSubject && searchOnBody) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(0), new Long(1), new Long(0),new Long(1)) ; } else if(searchOnAuthor && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(1), new Long(0), new Long(1),new Long(1)) ; } else if(searchOnAuthor && searchOnBody) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(1), new Long(1), new Long(0),new Long(1)) ; } else if(searchOnBody && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(0), new Long(1), new Long(1),new Long(1)) ; } else if(searchOnSubject) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(0),new Long(0), new Long(0),new Long(1)) ; } else if (searchOnAuthor) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(1),new Long(0), new Long(0),new Long(1)) ; } else if (searchOnBody) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(0),new Long(1), new Long(0),new Long(1)) ; } else if (searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(0),new Long(0), new Long(1),new Long(1)) ; } else { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(0),new Long(0), new Long(0),new Long(1)) ; } } //if date is not selected else { if(!hasValue(searchText)) { setErrorMessage("Please enter text for search."); } if(searchOnSubject && searchOnAuthor && searchOnBody && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(1), new Long(1), new Long(1),new Long(0)) ; } else if(searchOnSubject && searchOnAuthor && searchOnBody) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(1), new Long(1), new Long(0),new Long(0)) ; } else if(searchOnSubject && searchOnAuthor && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(1), new Long(0), new Long(1),new Long(0)) ; } else if(searchOnSubject && searchOnLabel && searchOnBody) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(0), new Long(1), new Long(1),new Long(0)) ; } else if(searchOnAuthor && searchOnBody && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(1), new Long(1), new Long(1),new Long(0)) ; } else if(searchOnSubject && searchOnAuthor) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(1), new Long(0), new Long(0),new Long(0)) ; } else if(searchOnSubject && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(0), new Long(0), new Long(1),new Long(0)) ; } else if(searchOnSubject && searchOnBody) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(0), new Long(1), new Long(0),new Long(0)) ; } else if(searchOnAuthor && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(1), new Long(0), new Long(1),new Long(0)) ; } else if(searchOnAuthor && searchOnBody) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(1), new Long(1), new Long(0),new Long(0)) ; } else if(searchOnBody && searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(0), new Long(1), new Long(1),new Long(0)) ; } else if(searchOnSubject) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(1), new Long(0),new Long(0), new Long(0),new Long(0)) ; } else if (searchOnAuthor) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(1),new Long(0), new Long(0),new Long(0)) ; } else if (searchOnBody) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(0),new Long(1), new Long(0),new Long(0)) ; } else if (searchOnLabel) { tempPvtMsgLs= prtMsgManager.searchPvtMsgs(getPrivateMessageTypeFromContext(msgNavMode), getSearchText(), getSearchFromDate(), getSearchToDate(), new Long(0), new Long(0),new Long(0), new Long(1),new Long(0)) ; } } newls= createDecoratedDisplay(tempPvtMsgLs);// // for (Iterator iter = tempPvtMsgLs.iterator(); iter.hasNext();)// {// PrivateMessage element = (PrivateMessage) iter.next();// PrivateMessageDecoratedBean dbean = new PrivateMessageDecoratedBean(element);// // //getRecipients() is filtered for this perticular user i.e. returned list of only one PrivateMessageRecipient object// for (Iterator iterator = element.getRecipients().iterator(); iterator.hasNext();)// {// PrivateMessageRecipient el = (PrivateMessageRecipient) iterator.next();// if (el != null){// if(!el.getRead().booleanValue())// {// dbean.setHasRead(el.getRead().booleanValue());// break;// }// }// }// //Add decorate 'TO' String for sent message// if(PVTMSG_MODE_SENT.equals(msgNavMode))// {// dbean.setSendToStringDecorated(createDecoratedSentToDisplay(dbean)); // }// newls.add(dbean); // } //set threaded view as false in search selectView=""; if(newls.size()>0) { this.setSearchPvtMsgs(newls) ; return "pvtMsgEx" ; } else { setErrorMessage("No matching result found"); return null; } }
48936 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48936/558317a1f4940117a2deabff3cc6dc9916ba1d92/PrivateMessagesTool.java/clean/messageforums-app/src/java/org/sakaiproject/tool/messageforums/PrivateMessagesTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1207, 2979, 1435, 282, 288, 565, 2018, 18, 4148, 2932, 2567, 2979, 1435, 8863, 3639, 987, 394, 3251, 273, 394, 2407, 1435, 274, 759, 565, 364, 261, 3198, 1400, 273, 336, 7859, 690, 27615, 17949, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 759, 565, 288, 759, 1377, 8726, 1079, 7859, 690, 3381, 930, 273, 261, 6014, 1079, 7859, 690, 3381, 13, 1400, 18, 4285, 5621, 759, 1377, 368, 1377, 514, 883, 33, 2956, 18, 588, 3332, 7675, 588, 4247, 5621, 759, 1377, 514, 1623, 1528, 273, 15627, 1528, 5621, 759, 1377, 368, 430, 1623, 603, 3221, 353, 444, 300, 805, 353, 638, 759, 1377, 309, 12, 3072, 1398, 6638, 13, 759, 1377, 288, 759, 3639, 16370, 384, 273, 394, 16370, 12, 2150, 1769, 759, 3639, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 759, 3639, 288, 759, 1850, 309, 12, 334, 18, 4285, 1345, 7675, 8436, 2932, 3680, 77, 31376, 588, 2979, 1528, 1435, 4509, 6, 3719, 368, 8436, 25651, 368, 1850, 368, 430, 12, 334, 18, 4285, 1345, 7675, 14963, 5556, 12, 588, 2979, 1528, 1435, 3719, 5411, 368, 1850, 288, 759, 5411, 394, 3251, 18, 1289, 12, 2956, 13, 274, 759, 5411, 898, 31, 759, 1850, 289, 759, 3639, 289, 759, 1377, 289, 759, 1377, 368, 291, 1623, 368, 1377, 368, 565, 289, 565, 1783, 6241, 300, 1377, 380, 657, 8312, 272, 266, 991, 487, 1915, 848, 506, 16743, 618, 434, 10702, 3007, 4421, 434, 1377, 380, 16743, 404, 578, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1207, 2979, 1435, 282, 288, 565, 2018, 18, 4148, 2932, 2567, 2979, 1435, 8863, 3639, 987, 394, 3251, 273, 394, 2407, 1435, 274, 759, 565, 364, 261, 3198, 1400, 273, 336, 7859, 690, 27615, 17949, 7675, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 759, 565, 288, 759, 1377, 8726, 1079, 7859, 690, 3381, 930, 273, 261, 6014, 1079, 7859, 690, 3381, 13, 1400, 18, 4285, 5621, 759, 1377, 368, 1377, 514, 883, 33, 2956, 18, 588, 3332, 7675, 588, 4247, 5621, 759, 1377, 514, 1623, 1528, 273, 15627, 1528, 5621, 759, 1377, 368, 430, 1623, 603, 3221, 353, 444, 300, 805, 353, 638, 759, 1377, 309, 12, 3072, 1398, 6638, 13, 759, 1377, 288, 759, 2 ]
if(ASS)ER.T(null!=_watchTyrant ,"emperor init order problem", this); if(ASS)ER.T(null!=_commandTyrant,"emperor init order problem", this);
if(AS.S)ER.T(null!=_watchTyrant ,"emperor init order problem", this); if(AS.S)ER.T(null!=_commandTyrant,"emperor init order problem", this);
public WatchView( Emperor emperor, Rect rect ) { super(rect); _emperor = emperor; _watchTyrant = emperor.getWatchTyrant(); _commandTyrant = emperor.getCommandTyrant(); if(ASS)ER.T(null!=_watchTyrant ,"emperor init order problem", this); if(ASS)ER.T(null!=_commandTyrant,"emperor init order problem", this); _listview = new BackgroundHackListView(); Size size = contentSize(); int listwidth = size.width - (_buttonWidth + (_buttonXSpace * 2)); Rect rectSG = new Rect(0, 0, listwidth, size.height); _nextButtonX = listwidth + _buttonXSpace; _nextButtonY = _buttonYSpace; _addButton( "New", NEW_CMD ); _addButton( "Edit", EDIT_CMD); _addButton( "Move Up", UP_CMD ); _addButton( "Move Down", DOWN_CMD); _addButton( "Delete", DEL_CMD ); _addButton( "Eval", EVAL_CMD); _nextButtonY += _buttonYSpace * 2; _addButton( "Done", DONE_CMD); ScrollGroup sg = new ScrollGroup(rectSG); sg.setHorizScrollBarDisplay( ScrollGroup.AS_NEEDED_DISPLAY ); sg.setVertScrollBarDisplay( ScrollGroup.AS_NEEDED_DISPLAY ); sg.setContentView( _listview ); sg.setAutoResizeSubviews(true); sg.contentView().setLayoutManager( new MarginLayout() ); sg.setBackgroundColor(_emperor.getBackgroundColor()); setCloseable( false ); setResizable( false ); setTitle( "Watches" ); addSubview(sg); setAutoResizeSubviews(true); _listview.setAllowsEmptySelection(false); _listview.setAllowsMultipleSelection(false); _listview.setTarget(this); _listview.setCommand(""); _listview.setDoubleCommand(EDIT_CMD); _listview.setBackgroundColor(_emperor.getBackgroundColor()); setLayer(InternalWindow.PALETTE_LAYER); refresh(); layoutView(1,1); layoutView(-1,-1); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/2de73cf99dce60cce549e7757f841284b68d1220/WatchView.java/buggy/js/jsdj/classes/com/netscape/jsdebugging/ifcui/WatchView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9736, 1767, 12, 7377, 457, 280, 801, 457, 280, 16, 9315, 4917, 262, 565, 288, 3639, 2240, 12, 2607, 1769, 3639, 389, 351, 457, 280, 273, 801, 457, 280, 31, 3639, 389, 7585, 56, 93, 6890, 225, 273, 801, 457, 280, 18, 588, 5234, 56, 93, 6890, 5621, 3639, 389, 3076, 56, 93, 6890, 273, 801, 457, 280, 18, 588, 2189, 56, 93, 6890, 5621, 3639, 309, 12, 8423, 13, 654, 18, 56, 12, 2011, 5, 33, 67, 7585, 56, 93, 6890, 377, 269, 6, 351, 457, 280, 1208, 1353, 6199, 3113, 333, 1769, 3639, 309, 12, 8423, 13, 654, 18, 56, 12, 2011, 5, 33, 67, 3076, 56, 93, 6890, 10837, 351, 457, 280, 1208, 1353, 6199, 3113, 333, 1769, 3639, 389, 1098, 1945, 273, 394, 8977, 44, 484, 682, 1767, 5621, 3639, 6321, 963, 273, 913, 1225, 5621, 3639, 509, 666, 2819, 565, 273, 963, 18, 2819, 300, 261, 67, 5391, 2384, 397, 261, 67, 5391, 60, 3819, 380, 576, 10019, 3639, 9315, 4917, 30820, 273, 394, 9315, 12, 20, 16, 374, 16, 666, 2819, 16, 963, 18, 4210, 1769, 7734, 389, 4285, 3616, 60, 273, 666, 2819, 397, 389, 5391, 60, 3819, 31, 3639, 389, 4285, 3616, 61, 273, 389, 5391, 61, 3819, 31, 13491, 389, 1289, 3616, 12, 315, 1908, 3113, 4202, 12887, 67, 19473, 11272, 3639, 389, 1289, 3616, 12, 315, 4666, 3113, 1377, 21307, 67, 19473, 1769, 3639, 389, 1289, 3616, 12, 315, 7607, 1948, 3113, 282, 7376, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 9736, 1767, 12, 7377, 457, 280, 801, 457, 280, 16, 9315, 4917, 262, 565, 288, 3639, 2240, 12, 2607, 1769, 3639, 389, 351, 457, 280, 273, 801, 457, 280, 31, 3639, 389, 7585, 56, 93, 6890, 225, 273, 801, 457, 280, 18, 588, 5234, 56, 93, 6890, 5621, 3639, 389, 3076, 56, 93, 6890, 273, 801, 457, 280, 18, 588, 2189, 56, 93, 6890, 5621, 3639, 309, 12, 8423, 13, 654, 18, 56, 12, 2011, 5, 33, 67, 7585, 56, 93, 6890, 377, 269, 6, 351, 457, 280, 1208, 1353, 6199, 3113, 333, 1769, 3639, 309, 12, 8423, 13, 654, 18, 56, 12, 2011, 5, 33, 67, 3076, 56, 93, 6890, 10837, 351, 457, 280, 1208, 1353, 2 ]
if (!Settings.propTrayNowProgramsInSubMenu.getBoolean())
if (!Settings.propTrayNowProgramsInSubMenu.getBoolean() && Settings.propTrayNowProgramsEnabled.getBoolean() && Settings.propTraySoonProgramsEnabled.getBoolean())
private void buildMenu() { mTrayMenu.removeAll(); mTrayMenu.add(mOpenCloseMenuItem); mTrayMenu.addSeparator(); mTrayMenu.add(createPluginsMenu()); mTrayMenu.addSeparator(); if (Settings.propTrayOnTimeProgramsEnabled.getBoolean() || Settings.propTrayNowProgramsEnabled.getBoolean() || Settings.propTraySoonProgramsEnabled.getBoolean() || Settings.propTrayImportantProgramsEnabled.getBoolean()) searchForToAddingPrograms(); if (Settings.propTrayOnTimeProgramsEnabled.getBoolean()) { if (!Settings.propTrayNowProgramsInSubMenu.getBoolean()) mTrayMenu.addSeparator(); addTimeInfoMenu(); } mTrayMenu.addSeparator(); mTrayMenu.add(mConfigure); mTrayMenu.addSeparator(); mTrayMenu.add(mQuitMenuItem); }
9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/517e9c9b86b5d38da87410aeb0ca4c1fea249ff1/SystemTray.java/clean/tvbrowser/src/tvbrowser/ui/SystemTray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1361, 4599, 1435, 288, 565, 21115, 435, 4599, 18, 4479, 1595, 5621, 565, 21115, 435, 4599, 18, 1289, 12, 81, 3678, 4605, 12958, 1769, 565, 21115, 435, 4599, 18, 1289, 6581, 5621, 565, 21115, 435, 4599, 18, 1289, 12, 2640, 9461, 4599, 10663, 565, 21115, 435, 4599, 18, 1289, 6581, 5621, 565, 309, 261, 2628, 18, 5986, 56, 435, 1398, 950, 9459, 87, 1526, 18, 588, 5507, 1435, 3639, 747, 8709, 18, 5986, 56, 435, 8674, 9459, 87, 1526, 18, 588, 5507, 1435, 3639, 747, 8709, 18, 5986, 56, 435, 10225, 265, 9459, 87, 1526, 18, 588, 5507, 1435, 3639, 747, 8709, 18, 5986, 56, 435, 5010, 970, 9459, 87, 1526, 18, 588, 5507, 10756, 1377, 1623, 1290, 13786, 310, 9459, 87, 5621, 565, 309, 261, 2628, 18, 5986, 56, 435, 1398, 950, 9459, 87, 1526, 18, 588, 5507, 10756, 288, 1377, 309, 16051, 2628, 18, 5986, 56, 435, 8674, 9459, 87, 382, 1676, 4599, 18, 588, 5507, 1435, 597, 8709, 18, 5986, 56, 435, 8674, 9459, 87, 1526, 18, 588, 5507, 1435, 597, 8709, 18, 5986, 56, 435, 10225, 265, 9459, 87, 1526, 18, 588, 5507, 10756, 3639, 21115, 435, 4599, 18, 1289, 6581, 5621, 1377, 527, 950, 966, 4599, 5621, 565, 289, 565, 21115, 435, 4599, 18, 1289, 6581, 5621, 565, 21115, 435, 4599, 18, 1289, 12, 81, 11207, 1769, 565, 21115, 435, 4599, 18, 1289, 6581, 5621, 565, 21115, 435, 4599, 18, 1289, 12, 81, 25365, 12958, 1769, 225, 289, 2, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1361, 4599, 1435, 288, 565, 21115, 435, 4599, 18, 4479, 1595, 5621, 565, 21115, 435, 4599, 18, 1289, 12, 81, 3678, 4605, 12958, 1769, 565, 21115, 435, 4599, 18, 1289, 6581, 5621, 565, 21115, 435, 4599, 18, 1289, 12, 2640, 9461, 4599, 10663, 565, 21115, 435, 4599, 18, 1289, 6581, 5621, 565, 309, 261, 2628, 18, 5986, 56, 435, 1398, 950, 9459, 87, 1526, 18, 588, 5507, 1435, 3639, 747, 8709, 18, 5986, 56, 435, 8674, 9459, 87, 1526, 18, 588, 5507, 1435, 3639, 747, 8709, 18, 5986, 56, 435, 10225, 265, 9459, 87, 1526, 18, 588, 5507, 1435, 3639, 747, 8709, 18, 5986, 56, 435, 5010, 970, 9459, 87, 1526, 18, 588, 5507, 10756, 1377, 2 ]
try { initial_mbrs.wait(); } catch(Exception e) {
if(initial_mbrs_received == false) { try { initial_mbrs.wait(); } catch(Exception e) { }
void findInitialMembers() { PingRsp ping_rsp; synchronized(initial_mbrs) { initial_mbrs.removeAllElements(); gms.passDown(new Event(Event.FIND_INITIAL_MBRS)); try { initial_mbrs.wait(); } catch(Exception e) { } for(int i=0; i < initial_mbrs.size(); i++) { ping_rsp=(PingRsp)initial_mbrs.elementAt(i); if(ping_rsp.own_addr != null && gms.local_addr != null && ping_rsp.own_addr.equals(gms.local_addr)) { initial_mbrs.removeElementAt(i); break; } } } }
50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/40dd541e049c1003e960622dadee2a39faabb351/ClientGmsImpl.java/clean/src/org/jgroups/protocols/pbcast/ClientGmsImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1104, 4435, 6918, 1435, 288, 3639, 18214, 54, 1752, 10087, 67, 86, 1752, 31, 3639, 3852, 12, 6769, 67, 1627, 5453, 13, 288, 5411, 2172, 67, 1627, 5453, 18, 4479, 1595, 3471, 5621, 5411, 314, 959, 18, 5466, 4164, 12, 2704, 2587, 12, 1133, 18, 42, 2356, 67, 28497, 67, 49, 7192, 55, 10019, 5411, 775, 288, 7734, 2172, 67, 1627, 5453, 18, 7048, 5621, 5411, 289, 5411, 1044, 12, 503, 425, 13, 288, 5411, 289, 5411, 364, 12, 474, 277, 33, 20, 31, 277, 411, 2172, 67, 1627, 5453, 18, 1467, 5621, 277, 27245, 288, 7734, 10087, 67, 86, 1752, 28657, 17223, 54, 1752, 13, 6769, 67, 1627, 5453, 18, 2956, 861, 12, 77, 1769, 7734, 309, 12, 1382, 67, 86, 1752, 18, 995, 67, 4793, 480, 446, 597, 314, 959, 18, 3729, 67, 4793, 480, 446, 597, 13491, 10087, 67, 86, 1752, 18, 995, 67, 4793, 18, 14963, 12, 75, 959, 18, 3729, 67, 4793, 3719, 288, 10792, 2172, 67, 1627, 5453, 18, 4479, 1046, 861, 12, 77, 1769, 10792, 898, 31, 7734, 289, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1104, 4435, 6918, 1435, 288, 3639, 18214, 54, 1752, 10087, 67, 86, 1752, 31, 3639, 3852, 12, 6769, 67, 1627, 5453, 13, 288, 5411, 2172, 67, 1627, 5453, 18, 4479, 1595, 3471, 5621, 5411, 314, 959, 18, 5466, 4164, 12, 2704, 2587, 12, 1133, 18, 42, 2356, 67, 28497, 67, 49, 7192, 55, 10019, 5411, 775, 288, 7734, 2172, 67, 1627, 5453, 18, 7048, 5621, 5411, 289, 5411, 1044, 12, 503, 425, 13, 288, 5411, 289, 5411, 364, 12, 474, 277, 33, 20, 31, 277, 411, 2172, 67, 1627, 5453, 18, 1467, 5621, 277, 27245, 288, 7734, 10087, 67, 86, 1752, 28657, 17223, 54, 1752, 13, 6769, 67, 1627, 5453, 18, 2956, 861, 12, 77, 1769, 7734, 2 ]
public BigDecimal getBigDecimal (int parameterIndex, int scale) throws SQLException { }
public BigDecimal getBigDecimal(int parameterIndex, int scale) throws SQLException { return null; }
public BigDecimal getBigDecimal (int parameterIndex, int scale) throws SQLException { // XXX-Not Implemented }
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/6a061da272f04e1463864065f87f1f3fd61d6162/CallableStatement.java/clean/src/interfaces/jdbc/postgresql/CallableStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8150, 2882, 360, 5749, 261, 474, 25412, 16, 509, 3159, 13, 1216, 6483, 202, 95, 202, 202, 759, 11329, 17, 1248, 18788, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 8150, 2882, 360, 5749, 261, 474, 25412, 16, 509, 3159, 13, 1216, 6483, 202, 95, 202, 202, 759, 11329, 17, 1248, 18788, 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 ]
return new StackFrame(cx, this, fnOrScript);
FunctionSource item = getFunctionSource(fnOrScript); if (item == null) { return null; } return new StackFrame(cx, this, item);
DebugFrame mirrorStackFrame(Context cx, DebuggableScript fnOrScript) { return new StackFrame(cx, this, fnOrScript); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/1e8e9be6240bd419cb4ce7800a26a09d70dd4e27/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4015, 3219, 15593, 2624, 3219, 12, 1042, 9494, 16, 4015, 8455, 3651, 2295, 1162, 3651, 13, 565, 288, 3639, 4284, 1830, 761, 273, 18697, 1830, 12, 4293, 1162, 3651, 1769, 309, 261, 1726, 422, 446, 13, 288, 225, 327, 446, 31, 289, 327, 394, 7283, 3219, 12, 71, 92, 16, 333, 16, 761, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4015, 3219, 15593, 2624, 3219, 12, 1042, 9494, 16, 4015, 8455, 3651, 2295, 1162, 3651, 13, 565, 288, 3639, 4284, 1830, 761, 273, 18697, 1830, 12, 4293, 1162, 3651, 1769, 309, 261, 1726, 422, 446, 13, 288, 225, 327, 446, 31, 289, 327, 394, 7283, 3219, 12, 71, 92, 16, 333, 16, 761, 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 ]
if (message.indexOf("READ COMMITTED") != -1)
ExecSQL(sql); SQLWarning warning = getWarnings(); if (warning != null) { level = warning.getMessage(); } clearWarnings(); } if (level != null) { if (level.indexOf("READ COMMITTED") != -1)
public int getTransactionIsolation() throws SQLException { clearWarnings(); ExecSQL("show transaction isolation level"); SQLWarning warning = getWarnings(); if (warning != null) { String message = warning.getMessage(); clearWarnings(); if (message.indexOf("READ COMMITTED") != -1) return java.sql.Connection.TRANSACTION_READ_COMMITTED; else if (message.indexOf("READ UNCOMMITTED") != -1) return java.sql.Connection.TRANSACTION_READ_UNCOMMITTED; else if (message.indexOf("REPEATABLE READ") != -1) return java.sql.Connection.TRANSACTION_REPEATABLE_READ; else if (message.indexOf("SERIALIZABLE") != -1) return java.sql.Connection.TRANSACTION_SERIALIZABLE; } return java.sql.Connection.TRANSACTION_READ_COMMITTED; }
46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/d634a5903f615a45cb463155c04d3df904e1b91a/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 15674, 22982, 1435, 1216, 6483, 202, 95, 202, 202, 8507, 4312, 5621, 202, 202, 1905, 3997, 2932, 4500, 2492, 25155, 1801, 8863, 202, 202, 3997, 6210, 3436, 273, 336, 4312, 5621, 202, 202, 430, 261, 8551, 480, 446, 13, 202, 202, 95, 1082, 202, 780, 883, 273, 3436, 18, 24906, 5621, 1082, 202, 8507, 4312, 5621, 1082, 202, 430, 261, 2150, 18, 31806, 2932, 6949, 5423, 6068, 6404, 7923, 480, 300, 21, 13, 9506, 202, 2463, 2252, 18, 4669, 18, 1952, 18, 22364, 67, 6949, 67, 18658, 6404, 31, 1082, 202, 12107, 309, 261, 2150, 18, 31806, 2932, 6949, 5019, 18658, 6404, 7923, 480, 300, 21, 13, 9506, 202, 2463, 2252, 18, 4669, 18, 1952, 18, 22364, 67, 6949, 67, 2124, 18658, 6404, 31, 1082, 202, 12107, 309, 261, 2150, 18, 31806, 2932, 862, 31804, 2782, 10746, 7923, 480, 300, 21, 13, 9506, 202, 2463, 2252, 18, 4669, 18, 1952, 18, 22364, 67, 862, 31804, 2782, 67, 6949, 31, 1082, 202, 12107, 309, 261, 2150, 18, 31806, 2932, 2123, 15154, 2782, 7923, 480, 300, 21, 13, 9506, 202, 2463, 2252, 18, 4669, 18, 1952, 18, 22364, 67, 2123, 15154, 2782, 31, 202, 202, 97, 202, 202, 2463, 2252, 18, 4669, 18, 1952, 18, 22364, 67, 6949, 67, 18658, 6404, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 15674, 22982, 1435, 1216, 6483, 202, 95, 202, 202, 8507, 4312, 5621, 202, 202, 1905, 3997, 2932, 4500, 2492, 25155, 1801, 8863, 202, 202, 3997, 6210, 3436, 273, 336, 4312, 5621, 202, 202, 430, 261, 8551, 480, 446, 13, 202, 202, 95, 1082, 202, 780, 883, 273, 3436, 18, 24906, 5621, 1082, 202, 8507, 4312, 5621, 1082, 202, 430, 261, 2150, 18, 31806, 2932, 6949, 5423, 6068, 6404, 7923, 480, 300, 21, 13, 9506, 202, 2463, 2252, 18, 4669, 18, 1952, 18, 22364, 67, 6949, 67, 18658, 6404, 31, 1082, 202, 12107, 309, 261, 2150, 18, 31806, 2932, 6949, 5019, 18658, 6404, 7923, 480, 300, 21, 13, 9506, 202, 2463, 2252, 18, 4669, 18, 1952, 2 ]
if (ds == null) { ds = (DataSource) new javax.naming.InitialContext().lookup(jndi);
if (ds == null) { ds = (DataSource) new javax.naming.InitialContext().lookup(jndi); } } catch (Exception e) { throw new StoreException("Error looking up DataSource at " + jndi, e);
public void init(Map props) throws StoreException { entrySequence = (String) props.get("entry.sequence"); stepSequence = (String) props.get("step.sequence"); entryTable = (String) props.get("entry.table"); entryId = (String) props.get("entry.id"); entryName = (String) props.get("entry.name"); entryState = (String) props.get("entry.state"); historyTable = (String) props.get("history.table"); currentTable = (String) props.get("current.table"); currentPrevTable = (String) props.get("currentPrev.table"); historyPrevTable = (String) props.get("historyPrev.table"); stepId = (String) props.get("step.id"); stepEntryId = (String) props.get("step.entryId"); stepStepId = (String) props.get("step.stepId"); stepActionId = (String) props.get("step.actionId"); stepOwner = (String) props.get("step.owner"); stepCaller = (String) props.get("step.caller"); stepStartDate = (String) props.get("step.startDate"); stepFinishDate = (String) props.get("step.finishDate"); stepDueDate = (String) props.get("step.dueDate"); stepStatus = (String) props.get("step.status"); stepPreviousId = (String) props.get("step.previousId"); String jndi = (String) props.get("datasource"); try { ds = (DataSource) lookup(jndi); if (ds == null) { ds = (DataSource) new javax.naming.InitialContext().lookup(jndi); } } catch (Exception e) { throw new StoreException("Error looking up DataSource at " + jndi, e); } if (ds == null) { throw new StoreException("No DataSource found at " + jndi); } }
7621 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7621/8a63e0d89ba95b3da6f979dc10b0c2642d5ff40c/JDBCWorkflowStore.java/buggy/src/java/com/opensymphony/workflow/spi/jdbc/JDBCWorkflowStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 863, 3458, 13, 1216, 4994, 503, 288, 3639, 1241, 4021, 273, 261, 780, 13, 3458, 18, 588, 2932, 4099, 18, 6178, 8863, 3639, 2235, 4021, 273, 261, 780, 13, 3458, 18, 588, 2932, 4119, 18, 6178, 8863, 3639, 1241, 1388, 273, 261, 780, 13, 3458, 18, 588, 2932, 4099, 18, 2121, 8863, 3639, 1241, 548, 273, 261, 780, 13, 3458, 18, 588, 2932, 4099, 18, 350, 8863, 3639, 1241, 461, 273, 261, 780, 13, 3458, 18, 588, 2932, 4099, 18, 529, 8863, 3639, 1241, 1119, 273, 261, 780, 13, 3458, 18, 588, 2932, 4099, 18, 2019, 8863, 3639, 4927, 1388, 273, 261, 780, 13, 3458, 18, 588, 2932, 8189, 18, 2121, 8863, 3639, 783, 1388, 273, 261, 780, 13, 3458, 18, 588, 2932, 2972, 18, 2121, 8863, 3639, 783, 9958, 1388, 273, 261, 780, 13, 3458, 18, 588, 2932, 2972, 9958, 18, 2121, 8863, 3639, 4927, 9958, 1388, 273, 261, 780, 13, 3458, 18, 588, 2932, 8189, 9958, 18, 2121, 8863, 3639, 2235, 548, 273, 261, 780, 13, 3458, 18, 588, 2932, 4119, 18, 350, 8863, 3639, 2235, 1622, 548, 273, 261, 780, 13, 3458, 18, 588, 2932, 4119, 18, 4099, 548, 8863, 3639, 2235, 4160, 548, 273, 261, 780, 13, 3458, 18, 588, 2932, 4119, 18, 4119, 548, 8863, 3639, 2235, 1803, 548, 273, 261, 780, 13, 3458, 18, 588, 2932, 4119, 18, 1128, 548, 8863, 3639, 2235, 5541, 273, 261, 780, 13, 3458, 18, 588, 2932, 4119, 18, 8443, 8863, 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, 1208, 12, 863, 3458, 13, 1216, 4994, 503, 288, 3639, 1241, 4021, 273, 261, 780, 13, 3458, 18, 588, 2932, 4099, 18, 6178, 8863, 3639, 2235, 4021, 273, 261, 780, 13, 3458, 18, 588, 2932, 4119, 18, 6178, 8863, 3639, 1241, 1388, 273, 261, 780, 13, 3458, 18, 588, 2932, 4099, 18, 2121, 8863, 3639, 1241, 548, 273, 261, 780, 13, 3458, 18, 588, 2932, 4099, 18, 350, 8863, 3639, 1241, 461, 273, 261, 780, 13, 3458, 18, 588, 2932, 4099, 18, 529, 8863, 3639, 1241, 1119, 273, 261, 780, 13, 3458, 18, 588, 2932, 4099, 18, 2019, 8863, 3639, 4927, 1388, 273, 261, 780, 13, 3458, 18, 588, 2932, 8189, 18, 2121, 8863, 3639, 783, 2 ]
if(saxFactory != null) { sb.append("SAX Parser Factory " + saxFactory+ " specified using system property\n");
if (saxFactory != null) { sb.append("SAX Parser Factory " + saxFactory + " specified using system property\n");
public static String getVersionInfo() { try{ // class preloading, so packages are there... Class cls = Class.forName("ru.novosoft.uml.MBase"); cls = Class.forName("org.tigris.gef.base.Editor"); cls = Class.forName("ru.novosoft.uml.MBase"); cls = Class.forName("org.xml.sax.AttributeList"); cls = Class.forName("org.apache.log4j.Category"); StringBuffer sb = new StringBuffer(); String saxFactory = System.getProperty("javax.xml.parsers.SAXParserFactory"); if(saxFactory != null) { sb.append("SAX Parser Factory " + saxFactory+ " specified using system property\n"); } Object saxObject = null; try { saxObject = javax.xml.parsers.SAXParserFactory.newInstance(); sb.append("SAX Parser Factory " + saxObject.getClass().getName() + " will be used.\n"); sb.append("\n"); } catch(Exception ex) { sb.append("Error determining SAX Parser Factory\n."); } for(int i=0;i<packageList.length;i++) { getComponentVersionInfo(sb, packageList[i]); } if (saxObject != null) { // ...getPackage() can return null's, so we have to cater for this: Package pckg = saxObject.getClass().getPackage(); if (pckg != null) { getComponentVersionInfo(sb, pckg.getName()); } } sb.append("\n"); sb.append("Operating System is: "); sb.append(System.getProperty("os.name", "unknown")); sb.append('\n'); sb.append("Operating System Version: "); sb.append(System.getProperty("os.version", "unknown")); sb.append('\n'); sb.append("Language: "); sb.append(Locale.getDefault().getLanguage()); sb.append('\n'); sb.append("Country: "); sb.append(Locale.getDefault().getCountry()); sb.append('\n'); sb.append('\n'); return sb.toString(); } catch (Exception e) { return e.toString();} }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/Tools.java/clean/src_new/org/argouml/util/Tools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8343, 966, 1435, 565, 288, 3639, 775, 95, 5411, 368, 667, 675, 15174, 16, 1427, 5907, 854, 1915, 2777, 5411, 1659, 2028, 273, 1659, 18, 1884, 461, 2932, 8653, 18, 82, 1527, 538, 4401, 18, 22192, 18, 49, 2171, 8863, 5411, 2028, 273, 1659, 18, 1884, 461, 2932, 3341, 18, 88, 2757, 291, 18, 908, 74, 18, 1969, 18, 6946, 8863, 5411, 2028, 273, 1659, 18, 1884, 461, 2932, 8653, 18, 82, 1527, 538, 4401, 18, 22192, 18, 49, 2171, 8863, 5411, 2028, 273, 1659, 18, 1884, 461, 2932, 3341, 18, 2902, 18, 87, 651, 18, 1499, 682, 8863, 5411, 2028, 273, 1659, 18, 1884, 461, 2932, 3341, 18, 19211, 18, 1330, 24, 78, 18, 4457, 8863, 5411, 6674, 2393, 273, 394, 6674, 5621, 5411, 514, 20319, 1733, 273, 2332, 18, 588, 1396, 2932, 28384, 18, 2902, 18, 11104, 18, 55, 2501, 2678, 1733, 8863, 5411, 309, 12, 87, 651, 1733, 480, 446, 13, 288, 7734, 2393, 18, 6923, 2932, 55, 2501, 6783, 7822, 315, 397, 20319, 1733, 15, 315, 1269, 1450, 2619, 1272, 64, 82, 8863, 5411, 289, 5411, 1033, 20319, 921, 273, 446, 31, 5411, 775, 288, 7734, 20319, 921, 273, 6863, 18, 2902, 18, 11104, 18, 55, 2501, 2678, 1733, 18, 2704, 1442, 5621, 7734, 2393, 18, 6923, 2932, 55, 2501, 6783, 7822, 315, 397, 12900, 20319, 921, 18, 588, 797, 7675, 17994, 1435, 397, 315, 903, 506, 1399, 8403, 82, 8863, 7734, 2393, 18, 6923, 31458, 82, 8863, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8343, 966, 1435, 565, 288, 3639, 775, 95, 5411, 368, 667, 675, 15174, 16, 1427, 5907, 854, 1915, 2777, 5411, 1659, 2028, 273, 1659, 18, 1884, 461, 2932, 8653, 18, 82, 1527, 538, 4401, 18, 22192, 18, 49, 2171, 8863, 5411, 2028, 273, 1659, 18, 1884, 461, 2932, 3341, 18, 88, 2757, 291, 18, 908, 74, 18, 1969, 18, 6946, 8863, 5411, 2028, 273, 1659, 18, 1884, 461, 2932, 8653, 18, 82, 1527, 538, 4401, 18, 22192, 18, 49, 2171, 8863, 5411, 2028, 273, 1659, 18, 1884, 461, 2932, 3341, 18, 2902, 18, 87, 651, 18, 1499, 682, 8863, 5411, 2028, 273, 1659, 18, 1884, 461, 2932, 3341, 18, 19211, 18, 1330, 24, 78, 18, 2 ]
final File f = new File(pathRoot, fname); return new DocumentRegion() { public OpenDefinitionsDocument getDocument() { return null; } public File getFile() { return f; } public int getStartOffset() { return startOffset; } public int getEndOffset() { return endOffset; } };
f = new File(pathRoot, fname);
public DocumentRegion forEmpty(Empty c) { if ((fname == null) || (startOffset == null) || (endOffset == null)) { throw new PrivateProjectException("Bookmark information incomplete, need name, start offset and end offset"); } if (pathRoot == null || new File(fname).isAbsolute()) { final File f = new File(fname); return new DocumentRegion() { public OpenDefinitionsDocument getDocument() { return null; } public File getFile() { return f; } public int getStartOffset() { return startOffset; } public int getEndOffset() { return endOffset; } }; } else { final File f = new File(pathRoot, fname); return new DocumentRegion() { public OpenDefinitionsDocument getDocument() { return null; } public File getFile() { return f; } public int getStartOffset() { return startOffset; } public int getEndOffset() { return endOffset; } }; } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/d1bf0f940bc3d914d8d8293a0e85760984d7b371/ProjectFileParser.java/clean/drjava/src/edu/rice/cs/drjava/project/ProjectFileParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4319, 5165, 364, 1921, 12, 1921, 276, 13, 288, 1377, 309, 14015, 12749, 422, 446, 13, 747, 261, 1937, 2335, 422, 446, 13, 747, 261, 409, 2335, 422, 446, 3719, 288, 3639, 604, 394, 8726, 4109, 503, 2932, 22966, 1779, 14715, 16, 1608, 508, 16, 787, 1384, 471, 679, 1384, 8863, 1377, 289, 1377, 309, 261, 803, 2375, 422, 446, 747, 394, 1387, 12, 12749, 2934, 291, 10368, 10756, 288, 3639, 727, 1387, 284, 273, 394, 1387, 12, 12749, 1769, 3639, 327, 394, 4319, 5165, 1435, 288, 1850, 1071, 3502, 7130, 2519, 9956, 1435, 288, 327, 446, 31, 289, 1850, 1071, 1387, 6034, 1435, 288, 327, 284, 31, 289, 1850, 1071, 509, 8635, 2335, 1435, 288, 327, 18245, 31, 289, 1850, 1071, 509, 9968, 2335, 1435, 288, 327, 25507, 31, 289, 3639, 289, 31, 1377, 289, 1377, 469, 288, 3639, 727, 1387, 284, 273, 394, 1387, 12, 803, 2375, 16, 5299, 1769, 3639, 327, 394, 4319, 5165, 1435, 288, 1850, 1071, 3502, 7130, 2519, 9956, 1435, 288, 327, 446, 31, 289, 1850, 1071, 1387, 6034, 1435, 288, 327, 284, 31, 289, 1850, 1071, 509, 8635, 2335, 1435, 288, 327, 18245, 31, 289, 1850, 1071, 509, 9968, 2335, 1435, 288, 327, 25507, 31, 289, 3639, 289, 31, 1377, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4319, 5165, 364, 1921, 12, 1921, 276, 13, 288, 1377, 309, 14015, 12749, 422, 446, 13, 747, 261, 1937, 2335, 422, 446, 13, 747, 261, 409, 2335, 422, 446, 3719, 288, 3639, 604, 394, 8726, 4109, 503, 2932, 22966, 1779, 14715, 16, 1608, 508, 16, 787, 1384, 471, 679, 1384, 8863, 1377, 289, 1377, 309, 261, 803, 2375, 422, 446, 747, 394, 1387, 12, 12749, 2934, 291, 10368, 10756, 288, 3639, 727, 1387, 284, 273, 394, 1387, 12, 12749, 1769, 3639, 327, 394, 4319, 5165, 1435, 288, 1850, 1071, 3502, 7130, 2519, 9956, 1435, 288, 327, 446, 31, 289, 1850, 1071, 1387, 6034, 1435, 288, 327, 284, 31, 289, 1850, 1071, 509, 8635, 2335, 1435, 288, 327, 2 ]
public void widgetSelected(SelectionEvent selectionEvent) { showLogs(); }
public void widgetSelected(SelectionEvent selectionEvent) { showTextUI(); }
public void widgetSelected(SelectionEvent selectionEvent) { showLogs(); }
27487 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27487/4caf1149f61cd88259d2d90ab9e8078360b1ebac/Browser.java/clean/src/syndie/gui/Browser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 3604, 7416, 12, 6233, 1133, 4421, 1133, 13, 288, 2405, 7777, 5621, 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 ]
[ 1, 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, 2398, 1071, 918, 3604, 7416, 12, 6233, 1133, 4421, 1133, 13, 288, 2405, 7777, 5621, 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 ]
return jjMoveStringLiteralDfa4_0(active0, 0x8004004004000000L, active1, 0L);
return jjMoveStringLiteralDfa4_0(active0, 0x4004004000000L, active1, 0L);
private final int jjMoveStringLiteralDfa3_0(long old0, long active0, long old1, long active1){ if (((active0 &= old0) | (active1 &= old1)) == 0L) return jjStartNfa_0(1, old0, old1); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(2, active0, active1); return 3; } switch(curChar) { case 61: if ((active1 & 0x100000000000000L) != 0L) return jjStopAtPos(3, 120); break; case 97: return jjMoveStringLiteralDfa4_0(active0, 0x1000000070404000L, active1, 0L); case 98: return jjMoveStringLiteralDfa4_0(active0, 0x1000000L, active1, 0L); case 99: return jjMoveStringLiteralDfa4_0(active0, 0x10000000020000L, active1, 0L); case 100: if ((active0 & 0x800000000000000L) != 0L) return jjStartNfaWithStates_0(3, 59, 28); break; case 101: if ((active0 & 0x8000L) != 0L) return jjStartNfaWithStates_0(3, 15, 28); else if ((active0 & 0x10000L) != 0L) return jjStartNfaWithStates_0(3, 16, 28); else if ((active0 & 0x2000000L) != 0L) return jjStartNfaWithStates_0(3, 25, 28); else if ((active0 & 0x200000000000000L) != 0L) return jjStartNfaWithStates_0(3, 57, 28); return jjMoveStringLiteralDfa4_0(active0, 0x8004004004000000L, active1, 0L); case 103: if ((active0 & 0x8000000000L) != 0L) return jjStartNfaWithStates_0(3, 39, 28); break; case 105: return jjMoveStringLiteralDfa4_0(active0, 0x4000010000000000L, active1, 0L); case 107: return jjMoveStringLiteralDfa4_0(active0, 0x80000000000L, active1, 0L); case 108: if ((active0 & 0x40000000000L) != 0L) return jjStartNfaWithStates_0(3, 42, 28); return jjMoveStringLiteralDfa4_0(active0, 0x2000400400002000L, active1, 0L); case 110: return jjMoveStringLiteralDfa4_0(active0, 0x100000000000000L, active1, 0L); case 111: if ((active0 & 0x100000000L) != 0L) return jjStartNfaWithStates_0(3, 32, 28); return jjMoveStringLiteralDfa4_0(active0, 0xc0000800000000L, active1, 0L); case 114: if ((active0 & 0x40000L) != 0L) return jjStartNfaWithStates_0(3, 18, 28); return jjMoveStringLiteralDfa4_0(active0, 0x1000000000000L, active1, 0L); case 115: if ((active0 & 0x20000000000000L) != 0L) return jjStartNfaWithStates_0(3, 53, 28); return jjMoveStringLiteralDfa4_0(active0, 0x8180000L, active1, 0L); case 116: return jjMoveStringLiteralDfa4_0(active0, 0xa201000201000L, active1, 0L); case 117: return jjMoveStringLiteralDfa4_0(active0, 0x800000000000L, active1, 0L); case 118: return jjMoveStringLiteralDfa4_0(active0, 0x100000000000L, active1, 0L); default : break; } return jjStartNfa_0(2, active0, active1);}
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/83d81b076b32acdf3f82077c7f4c2a2e160aa32f/JavaParserTokenManager.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 23, 67, 20, 12, 5748, 1592, 20, 16, 1525, 2695, 20, 16, 1525, 1592, 21, 16, 1525, 2695, 21, 15329, 282, 309, 261, 12443, 3535, 20, 12058, 1592, 20, 13, 571, 261, 3535, 21, 12058, 1592, 21, 3719, 422, 374, 48, 13, 1377, 327, 10684, 1685, 50, 507, 67, 20, 12, 21, 16, 1592, 20, 16, 1592, 21, 1769, 565, 775, 288, 662, 2156, 273, 810, 67, 3256, 18, 896, 2156, 5621, 289, 282, 1044, 12, 6290, 18, 1594, 18, 14106, 425, 13, 288, 1377, 10684, 4947, 28565, 40, 507, 67, 20, 12, 22, 16, 2695, 20, 16, 2695, 21, 1769, 1377, 327, 890, 31, 282, 289, 282, 1620, 12, 1397, 2156, 13, 282, 288, 1377, 648, 17845, 30, 540, 309, 14015, 3535, 21, 473, 374, 92, 21, 12648, 9449, 48, 13, 480, 374, 48, 13, 5411, 327, 10684, 4947, 861, 1616, 12, 23, 16, 15743, 1769, 540, 898, 31, 1377, 648, 16340, 30, 540, 327, 10684, 7607, 28565, 40, 507, 24, 67, 20, 12, 3535, 20, 16, 374, 92, 21, 17877, 27, 3028, 3028, 3784, 48, 16, 2695, 21, 16, 374, 48, 1769, 1377, 648, 24645, 30, 540, 327, 10684, 7607, 28565, 40, 507, 24, 67, 20, 12, 3535, 20, 16, 374, 92, 21, 9449, 48, 16, 2695, 21, 16, 374, 48, 1769, 1377, 648, 14605, 30, 540, 327, 10684, 7607, 28565, 40, 507, 24, 67, 20, 12, 3535, 20, 16, 374, 92, 21, 12648, 22, 2787, 48, 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, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 23, 67, 20, 12, 5748, 1592, 20, 16, 1525, 2695, 20, 16, 1525, 1592, 21, 16, 1525, 2695, 21, 15329, 282, 309, 261, 12443, 3535, 20, 12058, 1592, 20, 13, 571, 261, 3535, 21, 12058, 1592, 21, 3719, 422, 374, 48, 13, 1377, 327, 10684, 1685, 50, 507, 67, 20, 12, 21, 16, 1592, 20, 16, 1592, 21, 1769, 565, 775, 288, 662, 2156, 273, 810, 67, 3256, 18, 896, 2156, 5621, 289, 282, 1044, 12, 6290, 18, 1594, 18, 14106, 425, 13, 288, 1377, 10684, 4947, 28565, 40, 507, 67, 20, 12, 22, 16, 2695, 20, 16, 2695, 21, 1769, 1377, 327, 890, 31, 282, 289, 282, 1620, 12, 1397, 2 ]
}
} centerMe(); }
void jbInit() throws Exception { setTitle(LangTool.getString("em.configTitle")); mainPanel.setLayout(borderLayout1); labelHost.setText(LangTool.getString("em.labelHost")); fieldHost.setColumns(20); labelPort.setText(LangTool.getString("em.labelPort")); fieldPort.setColumns(5); labelFrom.setText(LangTool.getString("em.labelFrom")); fieldFrom.setColumns(20); optDone.setText(LangTool.getString("em.optDone")); optDone.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { optDone_actionPerformed(e); } }); optCancel.setText(LangTool.getString("em.optCancelLabel")); optCancel.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { optCancel_actionPerformed(e); } }); labelFileName.setText(LangTool.getString("em.labelFileName")); fieldFileName.setText("tn5250j.txt"); fieldFileName.setColumns(20); optionsPanel.add(optDone, null); optionsPanel.add(optCancel, null); getContentPane().add(mainPanel); mainPanel.add(configPanel, BorderLayout.CENTER); configPanel.add(labelHost, null); mainPanel.add(optionsPanel, BorderLayout.SOUTH); configPanel.add(fieldHost, null); configPanel.add(labelPort, null); configPanel.add(fieldPort, null); configPanel.add(labelFrom, null); configPanel.add(fieldFrom, null); configPanel.add(labelFileName, null); configPanel.add(fieldFileName, null); configPanel.setLayout(alignLayout); if (loadConfig(null)) { setProperties(); } centerMe(); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SMTPConfig.java/buggy/tn5250j/src/org/tn5250j/mailtools/SMTPConfig.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 918, 20515, 2570, 1435, 1216, 1185, 288, 1377, 14109, 12, 7275, 6364, 18, 588, 780, 2932, 351, 18, 1425, 4247, 7923, 1769, 1377, 2774, 5537, 18, 542, 3744, 12, 8815, 3744, 21, 1769, 1377, 1433, 2594, 18, 542, 1528, 12, 7275, 6364, 18, 588, 780, 2932, 351, 18, 1925, 2594, 7923, 1769, 1377, 652, 2594, 18, 542, 3380, 12, 3462, 1769, 1377, 1433, 2617, 18, 542, 1528, 12, 7275, 6364, 18, 588, 780, 2932, 351, 18, 1925, 2617, 7923, 1769, 1377, 652, 2617, 18, 542, 3380, 12, 25, 1769, 1377, 1433, 1265, 18, 542, 1528, 12, 7275, 6364, 18, 588, 780, 2932, 351, 18, 1925, 1265, 7923, 1769, 1377, 652, 1265, 18, 542, 3380, 12, 3462, 1769, 1377, 2153, 7387, 18, 542, 1528, 12, 7275, 6364, 18, 588, 780, 2932, 351, 18, 3838, 7387, 7923, 1769, 1377, 2153, 7387, 18, 1289, 1803, 2223, 12, 2704, 2252, 18, 2219, 88, 18, 2575, 18, 1803, 2223, 1435, 288, 540, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 5411, 2153, 7387, 67, 1128, 13889, 12, 73, 1769, 540, 289, 225, 4617, 4667, 5621, 225, 289, 1377, 15549, 1377, 2153, 6691, 18, 542, 1528, 12, 7275, 6364, 18, 588, 780, 2932, 351, 18, 3838, 6691, 2224, 7923, 1769, 1377, 2153, 6691, 18, 1289, 1803, 2223, 12, 2704, 2252, 18, 2219, 88, 18, 2575, 18, 1803, 2223, 1435, 288, 540, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 5411, 2153, 6691, 67, 1128, 13889, 12, 73, 1769, 540, 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, 565, 918, 20515, 2570, 1435, 1216, 1185, 288, 1377, 14109, 12, 7275, 6364, 18, 588, 780, 2932, 351, 18, 1425, 4247, 7923, 1769, 1377, 2774, 5537, 18, 542, 3744, 12, 8815, 3744, 21, 1769, 1377, 1433, 2594, 18, 542, 1528, 12, 7275, 6364, 18, 588, 780, 2932, 351, 18, 1925, 2594, 7923, 1769, 1377, 652, 2594, 18, 542, 3380, 12, 3462, 1769, 1377, 1433, 2617, 18, 542, 1528, 12, 7275, 6364, 18, 588, 780, 2932, 351, 18, 1925, 2617, 7923, 1769, 1377, 652, 2617, 18, 542, 3380, 12, 25, 1769, 1377, 1433, 1265, 18, 542, 1528, 12, 7275, 6364, 18, 588, 780, 2932, 351, 18, 1925, 1265, 7923, 1769, 1377, 652, 1265, 18, 542, 3380, 12, 3462, 1769, 1377, 2 ]
if (properties.getProperty("authenticationServiceName") != null) {
if (properties.getProperty(componentName + ".authenticationServiceName") != null) {
public boolean load() { if (rootDir == null) { return false; } File f = new File(rootDir, CONFIG_FILE); if (!f.exists()) { return false; } try { properties.load(new FileInputStream(f)); } catch (IOException e) { throw new RuntimeException("Could not load component configuration", e); } if (properties.getProperty("userName") != null) { userName = properties.getProperty("userName"); } if (properties.getProperty("password") != null) { password = properties.getProperty("password"); } if (properties.getProperty("jndiInitialContextFactory") != null) { jndiInitialContextFactory = properties.getProperty("jndiInitialContextFactory"); } if (properties.getProperty("jndiProviderUrl") != null) { jndiProviderUrl = properties.getProperty("jndiProviderUrl"); } if (properties.getProperty("jndiName") != null) { jndiConnectionFactoryName = properties.getProperty("jndiName"); } if (properties.getProperty("processorName") != null) { processorName = properties.getProperty("processorName"); } if (properties.getProperty("keystoreManagerName") != null) { keystoreManagerName = properties.getProperty("keystoreManagerName"); } if (properties.getProperty("authenticationServiceName") != null) { authenticationServiceName = properties.getProperty("authenticationServiceName"); } return true; }
6264 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6264/a5dfd065bdf4926292b5d7f613dc1a1bc1716cc4/JmsConfiguration.java/buggy/deployables/bindingcomponents/servicemix-jms/src/main/java/org/apache/servicemix/jms/JmsConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1262, 1435, 288, 3639, 309, 261, 3085, 1621, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 1387, 284, 273, 394, 1387, 12, 3085, 1621, 16, 9128, 67, 3776, 1769, 3639, 309, 16051, 74, 18, 1808, 10756, 288, 5411, 327, 629, 31, 3639, 289, 3639, 775, 288, 5411, 1790, 18, 945, 12, 2704, 11907, 12, 74, 10019, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 604, 394, 3235, 2932, 4445, 486, 1262, 1794, 1664, 3113, 425, 1769, 3639, 289, 3639, 309, 261, 4738, 18, 588, 1396, 2932, 1355, 461, 7923, 480, 446, 13, 288, 5411, 12065, 273, 1790, 18, 588, 1396, 2932, 1355, 461, 8863, 3639, 289, 3639, 309, 261, 4738, 18, 588, 1396, 2932, 3664, 7923, 480, 446, 13, 288, 5411, 2201, 273, 1790, 18, 588, 1396, 2932, 3664, 8863, 3639, 289, 3639, 309, 261, 4738, 18, 588, 1396, 2932, 78, 16564, 4435, 29871, 7923, 480, 446, 13, 288, 5411, 525, 16564, 4435, 29871, 273, 1790, 18, 588, 1396, 2932, 78, 16564, 4435, 29871, 8863, 3639, 289, 3639, 309, 261, 4738, 18, 588, 1396, 2932, 78, 16564, 2249, 1489, 7923, 480, 446, 13, 288, 5411, 525, 16564, 2249, 1489, 273, 1790, 18, 588, 1396, 2932, 78, 16564, 2249, 1489, 8863, 3639, 289, 3639, 309, 261, 4738, 18, 588, 1396, 2932, 78, 22546, 7923, 480, 446, 13, 288, 5411, 525, 16564, 18749, 461, 273, 1790, 18, 588, 1396, 2932, 78, 22546, 8863, 3639, 289, 3639, 309, 261, 4738, 18, 588, 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, 1071, 1250, 1262, 1435, 288, 3639, 309, 261, 3085, 1621, 422, 446, 13, 288, 5411, 327, 629, 31, 3639, 289, 3639, 1387, 284, 273, 394, 1387, 12, 3085, 1621, 16, 9128, 67, 3776, 1769, 3639, 309, 16051, 74, 18, 1808, 10756, 288, 5411, 327, 629, 31, 3639, 289, 3639, 775, 288, 5411, 1790, 18, 945, 12, 2704, 11907, 12, 74, 10019, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 604, 394, 3235, 2932, 4445, 486, 1262, 1794, 1664, 3113, 425, 1769, 3639, 289, 3639, 309, 261, 4738, 18, 588, 1396, 2932, 1355, 461, 7923, 480, 446, 13, 288, 5411, 12065, 273, 1790, 18, 588, 1396, 2932, 1355, 461, 8863, 3639, 289, 3639, 309, 261, 4738, 18, 588, 2 ]
if(PRINT_MESSAGES) e.printStackTrace(System.err);
public static void handleExceptionWithRestart(String output, Exception e) throws Exception { Throwable throwableRef = e; while( throwableRef != null){ if( throwableRef instanceof InvocationConnectionException ){ mLoginJFrame.resetLogin("Server communication failure. Re-login."); if(PRINT_MESSAGES) e.printStackTrace(System.err); mLoginJFrame.reshowLogin(); return; } else if( throwableRef instanceof InvocationTargetExpiredException ){ mLoginJFrame.resetLogin("Server synchronization failure. Re-login."); if(PRINT_MESSAGES) e.printStackTrace(System.err); mLoginJFrame.reshowLogin(); return; } else if( throwableRef instanceof com.metavize.mvvm.client.LoginExpiredException ){ mLoginJFrame.resetLogin("Login expired. Re-login."); if(PRINT_MESSAGES) e.printStackTrace(System.err); mLoginJFrame.reshowLogin(); return; } else if( (throwableRef instanceof ConnectException) || (throwableRef instanceof SocketException) || (throwableRef instanceof SocketTimeoutException) ){ mLoginJFrame.resetLogin("Server connection failure. Re-login."); if(PRINT_MESSAGES) e.printStackTrace(System.err); mLoginJFrame.reshowLogin(); return; } throwableRef = throwableRef.getCause(); } throw e; }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/b58d6b9e7cc109d837ad9be1a50a975c6ed5de30/Util.java/buggy/gui/main/com/metavize/gui/util/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 20879, 1190, 15057, 12, 780, 876, 16, 1185, 425, 13, 1216, 1185, 288, 202, 15155, 10132, 1957, 273, 425, 31, 202, 202, 17523, 12, 10132, 1957, 480, 446, 15329, 202, 565, 309, 12, 10132, 1957, 1276, 11298, 28461, 262, 95, 202, 202, 81, 5358, 46, 3219, 18, 6208, 5358, 2932, 2081, 18279, 5166, 18, 225, 868, 17, 5819, 1199, 1769, 202, 202, 430, 12, 19350, 67, 26195, 13, 1082, 565, 425, 18, 1188, 6332, 12, 3163, 18, 370, 1769, 202, 202, 81, 5358, 46, 3219, 18, 1955, 543, 5358, 5621, 202, 202, 2463, 31, 202, 565, 289, 202, 565, 469, 309, 12, 10132, 1957, 1276, 11298, 2326, 10556, 503, 262, 95, 202, 202, 81, 5358, 46, 3219, 18, 6208, 5358, 2932, 2081, 24488, 5166, 18, 225, 868, 17, 5819, 1199, 1769, 202, 202, 430, 12, 19350, 67, 26195, 13, 1082, 565, 425, 18, 1188, 6332, 12, 3163, 18, 370, 1769, 202, 202, 81, 5358, 46, 3219, 18, 1955, 543, 5358, 5621, 202, 202, 2463, 31, 202, 565, 289, 202, 565, 469, 309, 12, 10132, 1957, 1276, 532, 18, 10578, 842, 554, 18, 17509, 3489, 18, 2625, 18, 5358, 10556, 503, 262, 95, 202, 202, 81, 5358, 46, 3219, 18, 6208, 5358, 2932, 5358, 7708, 18, 225, 868, 17, 5819, 1199, 1769, 202, 202, 430, 12, 19350, 67, 26195, 13, 1082, 565, 425, 18, 1188, 6332, 12, 3163, 18, 370, 1769, 202, 202, 81, 5358, 46, 3219, 18, 1955, 543, 5358, 5621, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 20879, 1190, 15057, 12, 780, 876, 16, 1185, 425, 13, 1216, 1185, 288, 202, 15155, 10132, 1957, 273, 425, 31, 202, 202, 17523, 12, 10132, 1957, 480, 446, 15329, 202, 565, 309, 12, 10132, 1957, 1276, 11298, 28461, 262, 95, 202, 202, 81, 5358, 46, 3219, 18, 6208, 5358, 2932, 2081, 18279, 5166, 18, 225, 868, 17, 5819, 1199, 1769, 202, 202, 430, 12, 19350, 67, 26195, 13, 1082, 565, 425, 18, 1188, 6332, 12, 3163, 18, 370, 1769, 202, 202, 81, 5358, 46, 3219, 18, 1955, 543, 5358, 5621, 202, 202, 2463, 31, 202, 565, 289, 202, 565, 469, 309, 12, 10132, 1957, 1276, 11298, 2326, 10556, 503, 262, 95, 202, 202, 81, 5358, 2 ]
case 64: case 65:
case 76: case 77:
public final void expr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { AST expr_AST_in = (AST)_t; AST varName = null; AST letVarName = null; Expression step= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_return: { AST __t136 = _t; AST tmp3_AST_in = (AST)_t; match(_t,LITERAL_return); _t = _t.getFirstChild(); List clauses= new ArrayList(); Expression action= new PathExpr(); PathExpr whereExpr= null; { int _cnt146=0; _loop146: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_for: { AST __t138 = _t; AST tmp4_AST_in = (AST)_t; match(_t,LITERAL_for); _t = _t.getFirstChild(); { int _cnt141=0; _loop141: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t140 = _t; varName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); PathExpr inputSequence= new PathExpr(); expr(_t,inputSequence); _t = _retTree; clause.varName= varName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t140; _t = _t.getNextSibling(); } else { if ( _cnt141>=1 ) { break _loop141; } else {throw new NoViableAltException(_t);} } _cnt141++; } while (true); } _t = __t138; _t = _t.getNextSibling(); break; } case LITERAL_let: { AST __t142 = _t; AST tmp5_AST_in = (AST)_t; match(_t,LITERAL_let); _t = _t.getFirstChild(); { int _cnt145=0; _loop145: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==VARIABLE_BINDING)) { AST __t144 = _t; letVarName = _t==ASTNULL ? null :(AST)_t; match(_t,VARIABLE_BINDING); _t = _t.getFirstChild(); ForLetClause clause= new ForLetClause(); clause.isForClause= false; PathExpr inputSequence= new PathExpr(); expr(_t,inputSequence); _t = _retTree; clause.varName= letVarName.getText(); clause.inputSequence= inputSequence; clauses.add(clause); _t = __t144; _t = _t.getNextSibling(); } else { if ( _cnt145>=1 ) { break _loop145; } else {throw new NoViableAltException(_t);} } _cnt145++; } while (true); } _t = __t142; _t = _t.getNextSibling(); break; } default: { if ( _cnt146>=1 ) { break _loop146; } else {throw new NoViableAltException(_t);} } } _cnt146++; } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_where: { AST tmp6_AST_in = (AST)_t; match(_t,LITERAL_where); _t = _t.getNextSibling(); whereExpr= new PathExpr(); expr(_t,whereExpr); _t = _retTree; break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case LITERAL_return: case EQ: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: case LCURLY: { break; } default: { throw new NoViableAltException(_t); } } } expr(_t,(PathExpr) action); _t = _retTree; for (int i= clauses.size() - 1; i >= 0; i--) { ForLetClause clause= (ForLetClause) clauses.get(i); BindingExpression expr; if (clause.isForClause) expr= new ForExpr(); else expr= new LetExpr(); expr.setVariable(clause.varName); expr.setInputSequence(clause.inputSequence); expr.setReturnExpression(action); if (whereExpr != null) { expr.setWhereExpression(whereExpr); whereExpr= null; } action= expr; } path.add(action); _t = __t136; _t = _t.getNextSibling(); break; } case LITERAL_or: { AST __t148 = _t; AST tmp7_AST_in = (AST)_t; match(_t,LITERAL_or); _t = _t.getFirstChild(); PathExpr left= new PathExpr(); PathExpr right= new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t148; _t = _t.getNextSibling(); OpOr or= new OpOr(); or.add(left); or.add(right); path.addPath(or); break; } case LITERAL_and: { AST __t149 = _t; AST tmp8_AST_in = (AST)_t; match(_t,LITERAL_and); _t = _t.getFirstChild(); PathExpr left= new PathExpr(); PathExpr right= new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t149; _t = _t.getNextSibling(); OpAnd and= new OpAnd(); and.add(left); and.add(right); path.addPath(and); break; } case PARENTHESIZED: { AST __t150 = _t; AST tmp9_AST_in = (AST)_t; match(_t,PARENTHESIZED); _t = _t.getFirstChild(); PathExpr expr= new PathExpr(); path.addPath(expr); expr(_t,expr); _t = _retTree; _t = __t150; _t = _t.getNextSibling(); break; } case UNION: { AST __t151 = _t; AST tmp10_AST_in = (AST)_t; match(_t,UNION); _t = _t.getFirstChild(); PathExpr left= new PathExpr(); PathExpr right= new PathExpr(); expr(_t,left); _t = _retTree; expr(_t,right); _t = _retTree; _t = __t151; _t = _t.getNextSibling(); Union union= new Union(left, right); path.addPath(union); break; } case ABSOLUTE_SLASH: { AST __t152 = _t; AST tmp11_AST_in = (AST)_t; match(_t,ABSOLUTE_SLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NCNAME: case LITERAL_return: case EQ: case LITERAL_or: case LITERAL_and: case NEQ: case GT: case GTEQ: case LT: case LTEQ: case ANDEQ: case OREQ: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: case UNION: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: case LCURLY: { expr(_t,path); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t152; _t = _t.getNextSibling(); break; } case ABSOLUTE_DSLASH: { AST __t154 = _t; AST tmp12_AST_in = (AST)_t; match(_t,ABSOLUTE_DSLASH); _t = _t.getFirstChild(); RootNode root= new RootNode(); path.add(root); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; if (step instanceof LocationStep) { LocationStep s= (LocationStep) step; if (s.getAxis() == Constants.ATTRIBUTE_AXIS) // combines descendant-or-self::node()/attribute:* s.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else s.setAxis(Constants.DESCENDANT_SELF_AXIS); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t154; _t = _t.getNextSibling(); break; } case EQ: case NEQ: case GT: case GTEQ: case LT: case LTEQ: { step=generalComp(_t,path); _t = _retTree; break; } case ANDEQ: case OREQ: { step=fulltextComp(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case VARIABLE_REF: case NCNAME: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 64: case 65: case LITERAL_parent: case LITERAL_ancestor: case 68: case 69: case STRING_LITERAL: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { step=pathExpr(_t,path); _t = _retTree; break; } case UNARY_MINUS: case UNARY_PLUS: case PLUS: case MINUS: case STAR: case LITERAL_div: case LITERAL_mod: { step=numericExpr(_t,path); _t = _retTree; break; } case ELEMENT: case TEXT: case XML_COMMENT: case XML_PI: case LCURLY: { step=constructor(_t,path); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 3065, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 13722, 273, 446, 31, 202, 202, 9053, 2231, 18129, 273, 446, 31, 202, 202, 2300, 2235, 33, 446, 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, 511, 18454, 67, 2463, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 26959, 273, 389, 88, 31, 1082, 202, 9053, 1853, 23, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 23225, 67, 2463, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 6862, 6862, 202, 682, 14093, 33, 394, 2407, 5621, 25083, 202, 2300, 1301, 33, 394, 2666, 4742, 5621, 25083, 202, 743, 4742, 1625, 4742, 33, 446, 31, 6862, 9506, 202, 95, 1082, 202, 474, 389, 13085, 27879, 33, 20, 31, 1082, 202, 67, 6498, 27879, 30, 1082, 202, 2896, 288, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 9506, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 9506, 202, 3593, 511, 18454, 67, 1884, 30, 9506, 202, 95, 6862, 202, 9053, 1001, 88, 26645, 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, 225, 202, 482, 727, 918, 3065, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 3065, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 13722, 273, 446, 31, 202, 202, 9053, 2231, 18129, 273, 446, 31, 202, 202, 2300, 2235, 33, 446, 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, 511, 18454, 67, 2463, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 26959, 273, 389, 88, 31, 1082, 202, 9053, 1853, 2 ]
Dialog dialog = getWarningDialog (
Dialog dialog = getWarningDialog(
public void testAbortPageFlipping() { Dialog dialog = getWarningDialog ( JFaceResources.getString("AbortPageFlippingDialog.title"), JFaceResources.getString("AbortPageFlippingDialog.message") ); DialogCheck.assertDialog(dialog, this); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/61bed75b15ee3f34171ed472d9a43f5f824eed34/UIMessageDialogs.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dialogs/UIMessageDialogs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 13572, 1964, 28535, 1382, 1435, 288, 202, 202, 6353, 6176, 273, 336, 6210, 6353, 261, 1082, 202, 46, 11824, 3805, 18, 588, 780, 2932, 13572, 1964, 28535, 1382, 6353, 18, 2649, 6, 3631, 1082, 202, 46, 11824, 3805, 18, 588, 780, 2932, 13572, 1964, 28535, 1382, 6353, 18, 2150, 7923, 11272, 202, 202, 6353, 1564, 18, 11231, 6353, 12, 12730, 16, 333, 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, 918, 1842, 13572, 1964, 28535, 1382, 1435, 288, 202, 202, 6353, 6176, 273, 336, 6210, 6353, 261, 1082, 202, 46, 11824, 3805, 18, 588, 780, 2932, 13572, 1964, 28535, 1382, 6353, 18, 2649, 6, 3631, 1082, 202, 46, 11824, 3805, 18, 588, 780, 2932, 13572, 1964, 28535, 1382, 6353, 18, 2150, 7923, 11272, 202, 202, 6353, 1564, 18, 11231, 6353, 12, 12730, 16, 333, 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 ]
if (target <= 0) {
if ((node.getRemaining() > BLOCK_SIZE * MIN_BLOCKS_FOR_WRITE) && (target <= 0)) {
DatanodeInfo chooseTarget(TreeSet forbidden1, TreeSet forbidden2) { // // Check if there are any available targets at all // int totalMachines = datanodeMap.size(); if (totalMachines == 0) { LOG.warning("While choosing target, totalMachines is " + totalMachines); return null; } TreeSet forbiddenMachines = new TreeSet(); // // In addition to already-chosen datanode/port pairs, we want to avoid // already-chosen machinenames. (There can be multiple datanodes per // machine.) We might relax this requirement in the future, though. (Maybe // so that at least one replicate is off the machine.) // UTF8 hostOrHostAndPort = null; if (forbidden1 != null) { // add name [and host] of all elements in forbidden1 to forbiddenMachines for (Iterator it = forbidden1.iterator(); it.hasNext(); ) { DatanodeInfo cur = (DatanodeInfo) it.next(); if (allowSameHostTargets) { hostOrHostAndPort = cur.getName(); // forbid same host:port } else { hostOrHostAndPort = cur.getHost(); // forbid same host } forbiddenMachines.add(hostOrHostAndPort); } } if (forbidden2 != null) { // add name [and host] of all elements in forbidden2 to forbiddenMachines for (Iterator it = forbidden2.iterator(); it.hasNext(); ) { DatanodeInfo cur = (DatanodeInfo) it.next(); if (allowSameHostTargets) { hostOrHostAndPort = cur.getName(); // forbid same host:port } else { hostOrHostAndPort = cur.getHost(); // forbid same host } forbiddenMachines.add(hostOrHostAndPort); } } // // Now build list of machines we can actually choose from // long totalRemaining = 0; Vector targetList = new Vector(); for (Iterator it = datanodeMap.values().iterator(); it.hasNext(); ) { DatanodeInfo node = (DatanodeInfo) it.next(); if (allowSameHostTargets) { hostOrHostAndPort = node.getName(); // match host:port } else { hostOrHostAndPort = node.getHost(); // match host } if (! forbiddenMachines.contains(hostOrHostAndPort)) { targetList.add(node); totalRemaining += node.getRemaining(); } } // // Now pick one // if (targetList.size() == 0) { LOG.warning("Zero targets found, forbidden1.size=" + ( forbidden1 != null ? forbidden1.size() : 0 ) + " allowSameHostTargets=" + allowSameHostTargets + " forbidden2.size()=" + ( forbidden2 != null ? forbidden2.size() : 0 )); return null; } else if (! this.useAvailability) { int target = r.nextInt(targetList.size()); return (DatanodeInfo) targetList.elementAt(target); } else { // Choose node according to target capacity double target = r.nextDouble() * totalRemaining; for (Iterator it = targetList.iterator(); it.hasNext(); ) { DatanodeInfo node = (DatanodeInfo) it.next(); target -= node.getRemaining(); if (target <= 0) { return node; } } LOG.warning("Impossible state. When trying to choose target node, could not find any. This may indicate that datanode capacities are being updated during datanode selection. Anyway, now returning an arbitrary target to recover..."); return (DatanodeInfo) targetList.elementAt(r.nextInt(targetList.size())); } }
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/9068db10336ebb26576213d8fc57590c6deea873/FSNamesystem.java/clean/src/java/org/apache/hadoop/dfs/FSNamesystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 26739, 966, 9876, 2326, 12, 2471, 694, 17987, 21, 16, 19461, 17987, 22, 13, 288, 3639, 368, 3639, 368, 2073, 309, 1915, 854, 1281, 2319, 5774, 622, 777, 3639, 368, 3639, 509, 2078, 25222, 273, 28710, 863, 18, 1467, 5621, 3639, 309, 261, 4963, 25222, 422, 374, 13, 288, 5411, 2018, 18, 8551, 2932, 15151, 24784, 310, 1018, 16, 2078, 25222, 353, 315, 397, 2078, 25222, 1769, 5411, 327, 446, 31, 3639, 289, 3639, 19461, 17987, 25222, 273, 394, 19461, 5621, 3639, 368, 3639, 368, 657, 2719, 358, 1818, 17, 343, 8918, 28710, 19, 655, 5574, 16, 732, 2545, 358, 4543, 3639, 368, 1818, 17, 343, 8918, 25046, 267, 6809, 18, 225, 261, 9828, 848, 506, 3229, 1150, 304, 1145, 1534, 3639, 368, 5228, 12998, 225, 1660, 4825, 25744, 333, 12405, 316, 326, 3563, 16, 11376, 18, 261, 24876, 3639, 368, 1427, 716, 622, 4520, 1245, 28476, 353, 3397, 326, 5228, 12998, 3639, 368, 3639, 6380, 28, 1479, 1162, 2594, 1876, 2617, 273, 446, 31, 3639, 309, 261, 1884, 9215, 21, 480, 446, 13, 288, 1850, 368, 527, 508, 306, 464, 1479, 65, 434, 777, 2186, 316, 17987, 21, 358, 17987, 25222, 5411, 364, 261, 3198, 518, 273, 17987, 21, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 7734, 26739, 966, 662, 273, 261, 5139, 14085, 966, 13, 518, 18, 4285, 5621, 7734, 309, 261, 5965, 8650, 2594, 9432, 13, 288, 5375, 1479, 1162, 2594, 1876, 2617, 273, 662, 18, 17994, 5621, 368, 364, 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, 26739, 966, 9876, 2326, 12, 2471, 694, 17987, 21, 16, 19461, 17987, 22, 13, 288, 3639, 368, 3639, 368, 2073, 309, 1915, 854, 1281, 2319, 5774, 622, 777, 3639, 368, 3639, 509, 2078, 25222, 273, 28710, 863, 18, 1467, 5621, 3639, 309, 261, 4963, 25222, 422, 374, 13, 288, 5411, 2018, 18, 8551, 2932, 15151, 24784, 310, 1018, 16, 2078, 25222, 353, 315, 397, 2078, 25222, 1769, 5411, 327, 446, 31, 3639, 289, 3639, 19461, 17987, 25222, 273, 394, 19461, 5621, 3639, 368, 3639, 368, 657, 2719, 358, 1818, 17, 343, 8918, 28710, 19, 655, 5574, 16, 732, 2545, 358, 4543, 3639, 368, 1818, 17, 343, 8918, 25046, 267, 6809, 18, 225, 261, 9828, 848, 506, 3229, 1150, 2 ]
if (url == null || "".equals(url)) {
if ("".equals(url)) {
public void httpQuery(InputStream in, OutputStream out) throws IOException { // Read the input // XXX: Buffer size determines maximum request size byte[] buffer = new byte[16384]; int length = in.read(buffer); String request = new String(buffer, 0, length, REQUEST_ENCODING); // Read the first line int eolIndex = request.indexOf(CRLF); if (eolIndex < 0) { sendBadRequest(out); return; } // The first line must end with "HTTP/1.0" or "HTTP/1.1" String line = request.substring(0, eolIndex); request = request.substring(eolIndex + 2); if (! (line.endsWith(" HTTP/1.1") || line.endsWith(" HTTP/1.0"))) { sendBadRequest(out); return; } // Cut off the last part line = line.substring(0, line.length() - 9); // Find the space int spaceIndex = line.indexOf(' '); if (spaceIndex < 1) { sendBadRequest(out); return; } // Determine the method String method = line.substring(0, spaceIndex); // Determine the query string String url = line.substring(spaceIndex + 1); if (url == null || "".equals(url)) { sendBadRequest(out); return; } else if ("GET".equals(method) || "HEAD".equals(method) || "OPTIONS".equals(method)) { url = url.replace(',', '&'); } // Normalize the query string if (url.endsWith("/") && getClass().getResource(url + "index.html") != null) { url += "index.html"; } // Read the headers HashMap inHeaders = new HashMap(); boolean done = false; while (! done) { int nextEOL = request.indexOf(CRLF); if (nextEOL <= 0) { done = true; } else { try { parseHeader(inHeaders, request.substring(0, nextEOL)); } catch (ParseException exception) { sendBadRequest(out); return; } request = request.substring(nextEOL + 2); } } // Determine the body contents String body = "".equals(request) ? "" : request.substring(2); // Response encoding defaults to request encoding String responseEncoding = REQUEST_ENCODING; // Handle the case that a web page is requested boolean getMethod = method.equals("GET") || method.equals("HEAD"); String httpResult; if (getMethod && url.indexOf('?') == -1 && !url.endsWith("/") && !"*".equals(url)) { httpResult = readWebPage(url); // No web page requested } else { // Determine the content type String inContentType = getHeader(inHeaders, "Content-Type"); // If www-form encoded, then append the body to the query string if ((inContentType == null || inContentType.startsWith("application/x-www-form-urlencoded")) && body != null && body.length() > 0) { // XXX: What if the URL already contains a question mark? url += '?' + body; body = null; } // Locate the path of the URL String virtualPath = url; if (virtualPath.indexOf('?') != -1) { virtualPath = virtualPath.substring(0, url.indexOf('?')); } if (virtualPath.endsWith("/") && virtualPath.length() > 1) { virtualPath = virtualPath.substring(0, virtualPath.length() - 1); } // Get the Servlet according to the path LocalServletHandler servlet = (LocalServletHandler) _servlets.get(virtualPath); // If not found the root Servlet is used if (servlet == null) { servlet = (LocalServletHandler) _servlets.get("/"); } // If no servlet is found return 404 if (servlet == null) { sendError(out, "404 Not Found"); return; } else { // Query the Servlet XINSServletResponse response = servlet.query(method, url, body, inHeaders); // Create the HTTP answer httpResult = "HTTP/1.1 " + response.getStatus() + " " + HttpStatus.getStatusText(response.getStatus()) + CRLF; PropertyReader outHeaders = response.getHeaders(); Iterator itHeaderNames = outHeaders.getNames(); while (itHeaderNames.hasNext()) { String nextHeader = (String) itHeaderNames.next(); String headerValue = outHeaders.get(nextHeader); if (headerValue != null) { httpResult += nextHeader + ": " + headerValue + "\r\n"; } } String result = response.getResult(); if (result != null) { responseEncoding = response.getCharacterEncoding(); length = response.getContentLength(); if (length < 0) { length = result.getBytes(responseEncoding).length; } httpResult += "Content-Length: " + length + "\r\n"; httpResult += "Connection: close\r\n"; httpResult += "\r\n"; httpResult += result; } } } byte[] bytes = httpResult.getBytes(responseEncoding); out.write(bytes, 0, bytes.length); out.flush(); }
45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/06bdaac06ed0d1dd7388a5d37434a3a38144a099/HTTPServletHandler.java/clean/src/java-common/org/xins/common/servlet/container/HTTPServletHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1062, 1138, 12, 4348, 225, 316, 16, 8962, 596, 13, 282, 1216, 1860, 288, 1377, 368, 2720, 326, 810, 1377, 368, 11329, 30, 3525, 963, 12949, 4207, 590, 963, 1377, 1160, 8526, 1613, 273, 394, 1160, 63, 2313, 17295, 15533, 1377, 509, 769, 273, 316, 18, 896, 12, 4106, 1769, 1377, 514, 590, 273, 394, 514, 12, 4106, 16, 374, 16, 769, 16, 12492, 67, 14672, 1769, 1377, 368, 2720, 326, 1122, 980, 1377, 509, 14775, 1016, 273, 590, 18, 31806, 12, 5093, 9105, 1769, 1377, 309, 261, 30951, 1016, 411, 374, 13, 288, 540, 1366, 13403, 12, 659, 1769, 540, 327, 31, 1377, 289, 1377, 368, 1021, 1122, 980, 1297, 679, 598, 315, 3693, 19, 21, 18, 20, 6, 578, 315, 3693, 19, 21, 18, 21, 6, 1377, 514, 980, 273, 590, 18, 28023, 12, 20, 16, 14775, 1016, 1769, 1377, 590, 273, 590, 18, 28023, 12, 30951, 1016, 397, 576, 1769, 1377, 309, 16051, 261, 1369, 18, 5839, 1190, 2932, 2239, 19, 21, 18, 21, 7923, 747, 980, 18, 5839, 1190, 2932, 2239, 19, 21, 18, 20, 6, 20349, 288, 540, 1366, 13403, 12, 659, 1769, 540, 327, 31, 1377, 289, 1377, 368, 385, 322, 3397, 326, 1142, 1087, 1377, 980, 273, 980, 18, 28023, 12, 20, 16, 980, 18, 2469, 1435, 300, 2468, 1769, 1377, 368, 4163, 326, 3476, 1377, 509, 3476, 1016, 273, 980, 18, 31806, 2668, 28005, 1377, 309, 261, 2981, 1016, 411, 404, 13, 288, 540, 1366, 13403, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1062, 1138, 12, 4348, 225, 316, 16, 8962, 596, 13, 282, 1216, 1860, 288, 1377, 368, 2720, 326, 810, 1377, 368, 11329, 30, 3525, 963, 12949, 4207, 590, 963, 1377, 1160, 8526, 1613, 273, 394, 1160, 63, 2313, 17295, 15533, 1377, 509, 769, 273, 316, 18, 896, 12, 4106, 1769, 1377, 514, 590, 273, 394, 514, 12, 4106, 16, 374, 16, 769, 16, 12492, 67, 14672, 1769, 1377, 368, 2720, 326, 1122, 980, 1377, 509, 14775, 1016, 273, 590, 18, 31806, 12, 5093, 9105, 1769, 1377, 309, 261, 30951, 1016, 411, 374, 13, 288, 540, 1366, 13403, 12, 659, 1769, 540, 327, 31, 1377, 289, 1377, 368, 1021, 1122, 980, 1297, 679, 598, 315, 3693, 19, 2 ]
RubyModule result = runtime.getClasses().getClassFromPath(name);
RubyModule result = runtime.getClassFromPath(name);
public static RubyModule unmarshalFrom(UnmarshalStream input) throws java.io.IOException { String name = input.unmarshalString(); Ruby runtime = input.getRuntime(); RubyModule result = runtime.getClasses().getClassFromPath(name); if (result == null) { throw new NameError(runtime, "uninitialized constant " + name); } input.registerLinkTarget(result); return result; }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 3120, 11401, 1265, 12, 9593, 1228, 810, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 514, 508, 273, 810, 18, 318, 3108, 780, 5621, 3639, 19817, 3099, 273, 810, 18, 588, 5576, 5621, 3639, 19817, 3120, 563, 273, 3099, 18, 588, 797, 23064, 12, 529, 1769, 3639, 309, 261, 2088, 422, 446, 13, 288, 5411, 604, 394, 25473, 12, 9448, 16, 315, 318, 13227, 5381, 315, 397, 508, 1769, 3639, 289, 3639, 810, 18, 4861, 2098, 2326, 12, 2088, 1769, 3639, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 3120, 11401, 1265, 12, 9593, 1228, 810, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 514, 508, 273, 810, 18, 318, 3108, 780, 5621, 3639, 19817, 3099, 273, 810, 18, 588, 5576, 5621, 3639, 19817, 3120, 563, 273, 3099, 18, 588, 797, 23064, 12, 529, 1769, 3639, 309, 261, 2088, 422, 446, 13, 288, 5411, 604, 394, 25473, 12, 9448, 16, 315, 318, 13227, 5381, 315, 397, 508, 1769, 3639, 289, 3639, 810, 18, 4861, 2098, 2326, 12, 2088, 1769, 3639, 327, 563, 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 ]
log.info( "Building anyway, since buildAfterFailed is true and last build failed.");
log("Building anyway, since buildAfterFailed is true and last build failed.");
Element getModifications() { state = MODIFICATIONSET_STATE; Element modifications = null; if (_buildAfterFailed) { modifications = _modificationSet.getModifications(_lastSuccessfulBuild); } else { modifications = _modificationSet.getModifications(_lastBuild); } if (!_modificationSet.isModified()) { log.info("No modifications found, build not necessary."); // Sometimes we want to build even though we don't have any // modifications. This is in fact current default behaviour. // Set by <project buildafterfailed="true/false"> if (_buildAfterFailed && !_wasLastBuildSuccessful) { log.info( "Building anyway, since buildAfterFailed is true and last build failed."); } else { if (_buildForced) { log.info( "Building anyway, since build was explicitly forced."); _buildForced = false; } else { return null; } } } if (!_buildAfterFailed && _lastBuild != null && !_lastBuild.equals(_lastSuccessfulBuild)) { modifications = _modificationSet.getModifications(_lastSuccessfulBuild); } return modifications; }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/31ab8bc5b6a56bf27a36863192ee0adb5f15e5e5/Project.java/clean/main/src/net/sourceforge/cruisecontrol/Project.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3010, 336, 28340, 1435, 288, 3639, 919, 273, 8663, 14865, 4043, 67, 7998, 31, 3639, 3010, 17953, 273, 446, 31, 3639, 309, 261, 67, 3510, 4436, 2925, 13, 288, 5411, 17953, 273, 7734, 389, 31064, 694, 18, 588, 28340, 24899, 2722, 14277, 3116, 1769, 3639, 289, 3639, 469, 288, 5411, 17953, 273, 389, 31064, 694, 18, 588, 28340, 24899, 2722, 3116, 1769, 3639, 289, 3639, 309, 16051, 67, 31064, 694, 18, 291, 4575, 10756, 288, 5411, 613, 18, 1376, 2932, 2279, 17953, 1392, 16, 1361, 486, 4573, 1199, 1769, 5411, 368, 348, 25976, 732, 2545, 358, 1361, 5456, 11376, 732, 2727, 1404, 1240, 1281, 5411, 368, 17953, 18, 1220, 353, 316, 5410, 783, 805, 14273, 18, 5411, 368, 1000, 635, 411, 4406, 1361, 5205, 7307, 1546, 3767, 19, 5743, 6441, 5411, 309, 261, 67, 3510, 4436, 2925, 597, 401, 67, 17416, 3024, 3116, 14277, 13, 288, 7734, 613, 18, 1376, 12, 10792, 315, 16713, 13466, 16, 3241, 1361, 4436, 2925, 353, 638, 471, 1142, 1361, 2535, 1199, 1769, 5411, 289, 5411, 469, 288, 7734, 309, 261, 67, 3510, 1290, 3263, 13, 288, 10792, 613, 18, 1376, 12, 13491, 315, 16713, 13466, 16, 3241, 1361, 1703, 8122, 13852, 1199, 1769, 10792, 389, 3510, 1290, 3263, 273, 629, 31, 7734, 289, 7734, 469, 288, 10792, 327, 446, 31, 7734, 289, 5411, 289, 3639, 289, 3639, 309, 16051, 67, 3510, 4436, 2925, 5411, 597, 389, 2722, 3116, 480, 446, 5411, 597, 401, 67, 2722, 3116, 18, 14963, 24899, 2722, 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, 3010, 336, 28340, 1435, 288, 3639, 919, 273, 8663, 14865, 4043, 67, 7998, 31, 3639, 3010, 17953, 273, 446, 31, 3639, 309, 261, 67, 3510, 4436, 2925, 13, 288, 5411, 17953, 273, 7734, 389, 31064, 694, 18, 588, 28340, 24899, 2722, 14277, 3116, 1769, 3639, 289, 3639, 469, 288, 5411, 17953, 273, 389, 31064, 694, 18, 588, 28340, 24899, 2722, 3116, 1769, 3639, 289, 3639, 309, 16051, 67, 31064, 694, 18, 291, 4575, 10756, 288, 5411, 613, 18, 1376, 2932, 2279, 17953, 1392, 16, 1361, 486, 4573, 1199, 1769, 5411, 368, 348, 25976, 732, 2545, 358, 1361, 5456, 11376, 732, 2727, 1404, 1240, 1281, 5411, 368, 17953, 18, 1220, 353, 316, 5410, 783, 805, 14273, 18, 5411, 368, 2 ]
} if (fDocumentPartitioners != null) { Iterator e = fDocumentPartitioners.values().iterator(); while (e.hasNext()) { IDocumentPartitioner p = (IDocumentPartitioner) e.next(); try { p.documentAboutToBeChanged(fDocumentEvent); } catch (Exception exception) { Logger.logException(exception); } }
private void _fireDocumentAboutToChange(Object[] listeners) { // most DocumentAboutToBeChanged listeners do not anticipate // DocumentEvent == null. So make sure documentEvent is not // null. (this should never happen, yet it does sometimes) if (fDocumentEvent == null) { fDocumentEvent = new NullDocumentEvent(); } if (fDocumentPartitioners != null) { Iterator e = fDocumentPartitioners.values().iterator(); while (e.hasNext()) { IDocumentPartitioner p = (IDocumentPartitioner) e.next(); // safeguard from listeners that throw exceptions try { p.documentAboutToBeChanged(fDocumentEvent); } catch (Exception exception) { Logger.logException(exception); } } } // we must assign listeners to local variable, since the add and // remove // listner // methods can change the actual instance of the listener array from // another thread if (listeners != null) { Object[] holdListeners = listeners; // Note: the docEvent is created in replaceText API // fire for (int i = 0; i < holdListeners.length; i++) { if (Debug.perfTest || Debug.perfTestStructuredDocumentEventOnly) { startTime = System.currentTimeMillis(); } // safeguard from listeners that throw exceptions try { // this is a safe cast, since addListners requires a // IStructuredDocumentListener ((IDocumentListener) holdListeners[i]).documentAboutToBeChanged(fDocumentEvent); } catch (Exception exception) { Logger.logException(exception); } if (Debug.perfTest || Debug.perfTestStructuredDocumentEventOnly) { long stopTime = System.currentTimeMillis(); System.out.println("\n\t\t\t\t IStructuredDocument::fireStructuredDocumentEvent. Time was " + (stopTime - startTime) + " msecs to fire NewModelEvent to instance of " + holdListeners[i].getClass()); //$NON-NLS-2$//$NON-NLS-1$ } } } }
13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/7f8be0905df0514e267c2a0548e530018d5046d3/BasicStructuredDocument.java/buggy/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 389, 12179, 2519, 24813, 774, 3043, 12, 921, 8526, 4679, 13, 288, 202, 202, 759, 4486, 4319, 24813, 15360, 5033, 4679, 741, 486, 17841, 24629, 340, 202, 202, 759, 4319, 1133, 422, 446, 18, 6155, 1221, 3071, 1668, 1133, 353, 486, 202, 202, 759, 446, 18, 261, 2211, 1410, 5903, 5865, 16, 4671, 518, 1552, 16594, 13, 202, 202, 430, 261, 74, 2519, 1133, 422, 446, 13, 288, 1082, 202, 74, 2519, 1133, 273, 394, 4112, 2519, 1133, 5621, 202, 202, 97, 202, 202, 430, 261, 74, 2519, 7003, 414, 480, 446, 13, 288, 1082, 202, 3198, 425, 273, 284, 2519, 7003, 414, 18, 2372, 7675, 9838, 5621, 1082, 202, 17523, 261, 73, 18, 5332, 2134, 10756, 288, 9506, 202, 734, 504, 650, 7003, 264, 293, 273, 261, 734, 504, 650, 7003, 264, 13, 425, 18, 4285, 5621, 9506, 202, 759, 11029, 1332, 89, 1060, 628, 4679, 716, 604, 4798, 9506, 202, 698, 288, 6862, 202, 84, 18, 5457, 24813, 15360, 5033, 12, 74, 2519, 1133, 1769, 9506, 202, 97, 1044, 261, 503, 1520, 13, 288, 6862, 202, 3328, 18, 1330, 503, 12, 4064, 1769, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 202, 759, 732, 1297, 2683, 4679, 358, 1191, 2190, 16, 3241, 326, 527, 471, 202, 202, 759, 1206, 202, 202, 759, 666, 1224, 202, 202, 759, 2590, 848, 2549, 326, 3214, 791, 434, 326, 2991, 526, 628, 202, 202, 759, 4042, 2650, 202, 202, 430, 261, 16072, 480, 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, 389, 12179, 2519, 24813, 774, 3043, 12, 921, 8526, 4679, 13, 288, 202, 202, 759, 4486, 4319, 24813, 15360, 5033, 4679, 741, 486, 17841, 24629, 340, 202, 202, 759, 4319, 1133, 422, 446, 18, 6155, 1221, 3071, 1668, 1133, 353, 486, 202, 202, 759, 446, 18, 261, 2211, 1410, 5903, 5865, 16, 4671, 518, 1552, 16594, 13, 202, 202, 430, 261, 74, 2519, 1133, 422, 446, 13, 288, 1082, 202, 74, 2519, 1133, 273, 394, 4112, 2519, 1133, 5621, 202, 202, 97, 202, 202, 430, 261, 74, 2519, 7003, 414, 480, 446, 13, 288, 1082, 202, 3198, 425, 273, 284, 2519, 7003, 414, 18, 2372, 7675, 9838, 5621, 1082, 202, 17523, 261, 73, 18, 5332, 2 ]
public void createPartControl(Composite parent) { getSite().getPage().addSelectionListener(focusListener); getRegistry().addItemsChangedListener(itemsListener); clipboard = new Clipboard(parent.getDisplay()); super.createPartControl(parent); initDragAndDrop(); compositeMarkerLimitExceeded = new Composite(parent, SWT.NONE); compositeMarkerLimitExceeded.setLayout(new GridLayout()); Label labelMarkerLimitExceeded = new Label(compositeMarkerLimitExceeded, SWT.WRAP); labelMarkerLimitExceeded.setText(Messages.getString("markerLimitExceeded.title")); //$NON-NLS-1$ parent.setLayout(stackLayout); checkMarkerLimit(); updateTitle(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/2cd5f192433d8e4a018a46aa91e1db260ff692bb/MarkerView.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/markers/internal/MarkerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 588, 4956, 7675, 588, 1964, 7675, 1289, 6233, 2223, 12, 13923, 2223, 1769, 202, 202, 588, 4243, 7675, 1289, 3126, 5033, 2223, 12, 3319, 2223, 1769, 9506, 202, 14161, 3752, 273, 394, 385, 3169, 3752, 12, 2938, 18, 588, 4236, 10663, 202, 202, 9565, 18, 2640, 1988, 3367, 12, 2938, 1769, 202, 202, 2738, 11728, 1876, 7544, 5621, 9506, 202, 27676, 7078, 3039, 10069, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 27676, 7078, 3039, 10069, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 202, 202, 2224, 1433, 7078, 3039, 10069, 273, 1082, 202, 2704, 5287, 12, 27676, 7078, 3039, 10069, 16, 348, 8588, 18, 27664, 1769, 202, 202, 1925, 7078, 3039, 10069, 18, 542, 1528, 12, 5058, 18, 588, 780, 2932, 11145, 3039, 10069, 18, 2649, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 2938, 18, 542, 3744, 12, 3772, 3744, 1769, 9506, 202, 1893, 7078, 3039, 5621, 202, 202, 2725, 4247, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 202, 588, 4956, 7675, 588, 1964, 7675, 1289, 6233, 2223, 12, 13923, 2223, 1769, 202, 202, 588, 4243, 7675, 1289, 3126, 5033, 2223, 12, 3319, 2223, 1769, 9506, 202, 14161, 3752, 273, 394, 385, 3169, 3752, 12, 2938, 18, 588, 4236, 10663, 202, 202, 9565, 18, 2640, 1988, 3367, 12, 2938, 1769, 202, 202, 2738, 11728, 1876, 7544, 5621, 9506, 202, 27676, 7078, 3039, 10069, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 27676, 7078, 3039, 10069, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 202, 202, 2224, 1433, 7078, 3039, 10069, 273, 1082, 202, 2704, 5287, 12, 27676, 7078, 3039, 2 ]
m_driverManager.getVfsDriver().removeFile(dbc, onlineProject, onlineFileHeader, removeContent);
m_driverManager.getVfsDriver().removeFile(dbc, onlineProject, onlineResource, removeContent);
public void publishFile( CmsDbContext dbc, I_CmsReport report, int m, int n, CmsProject onlineProject, CmsResource offlineResource, Set publishedContentIds, boolean backupEnabled, long publishDate, CmsUUID publishHistoryId, int backupTagId, int maxVersions) throws CmsDataAccessException { CmsFile newFile = null; CmsResource onlineFileHeader = null; List offlineProperties = null; CmsProperty property = null; int propertyDeleteOption = -1; /* * Never use offlineFile.getState() here! * Only use offlineFileHeader.getState() to determine the state of an offline resource! * * In case a resource has siblings, after a sibling was published the structure * and resource states are reset to UNCHANGED -> the state of the corresponding * offlineFileHeader is still NEW, DELETED or CHANGED, but the state of offlineFile * is UNCHANGED because offlineFile is read AFTER siblings already got published. * Thus, using offlineFile.getState() will inevitably result in unpublished resources! */ try { if (offlineResource.getState() == CmsResource.STATE_DELETED) { report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_SUCCESSION_2, String.valueOf(m), String.valueOf(n)), I_CmsReport.FORMAT_NOTE); report.print(Messages.get().container(Messages.RPT_DELETE_FILE_0), I_CmsReport.FORMAT_NOTE); report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, dbc.removeSiteRoot(offlineResource.getRootPath()))); report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); try { // read the file header online onlineFileHeader = m_driverManager.getVfsDriver().readResource( dbc, onlineProject.getId(), offlineResource.getStructureId(), true); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().key(Messages.LOG_READING_RESOURCE_1, offlineResource.getRootPath()), e); } throw e; } if (offlineResource.isLabeled() && !m_driverManager.labelResource(dbc, offlineResource, null, 2)) { // update the resource flags to "unlabeled" of the siblings of the offline resource int flags = offlineResource.getFlags(); flags &= ~CmsResource.FLAG_LABELED; offlineResource.setFlags(flags); } try { // write the file to the backup and publishing history if (backupEnabled && !OpenCms.getSystemInfo().keepVersionHistory()) { // delete all backups as well m_driverManager.deleteBackup(dbc, offlineResource); } m_driverManager.getProjectDriver().writePublishHistory( dbc, dbc.currentProject(), publishHistoryId, new CmsPublishedResource(offlineResource, backupTagId)); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().key( Messages.LOG_WRITING_PUBLISHING_HISTORY_1, offlineResource.getRootPath()), e); } throw e; } try { // delete the properties online and offline if (onlineFileHeader.getSiblingCount() > 1) { // there are other siblings- delete only structure property values and keep the resource property values propertyDeleteOption = CmsProperty.DELETE_OPTION_DELETE_STRUCTURE_VALUES; } else { // there are no other siblings- delete both the structure and resource property values propertyDeleteOption = CmsProperty.DELETE_OPTION_DELETE_STRUCTURE_AND_RESOURCE_VALUES; } m_driverManager.getVfsDriver().deletePropertyObjects( dbc, onlineProject.getId(), onlineFileHeader, propertyDeleteOption); m_driverManager.getVfsDriver().deletePropertyObjects( dbc, dbc.currentProject().getId(), offlineResource, propertyDeleteOption); // if the offline file has a resource ID different from the online file // (probably because a (deleted) file was replaced by a new file with the // same name), the properties with the "old" resource ID have to be // deleted also offline if (!onlineFileHeader.getResourceId().equals(offlineResource.getResourceId())) { m_driverManager.getVfsDriver().deletePropertyObjects( dbc, dbc.currentProject().getId(), onlineFileHeader, CmsProperty.DELETE_OPTION_DELETE_STRUCTURE_AND_RESOURCE_VALUES); } } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error( Messages.get().key(Messages.LOG_DELETING_PROPERTIES_1, offlineResource.getRootPath()), e); } throw e; } try { // remove the file online and offline m_driverManager.getVfsDriver().removeFile(dbc, dbc.currentProject(), offlineResource, true); try { m_driverManager.getVfsDriver().readResource( dbc, dbc.currentProject().getId(), offlineResource.getStructureId(), true); } catch (CmsVfsResourceNotFoundException e) { // remove the online file only if it is really deleted offline m_driverManager.getVfsDriver().removeFile(dbc, onlineProject, onlineFileHeader, true); } } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error( Messages.get().key(Messages.LOG_REMOVING_RESOURCE_1, offlineResource.getRootPath()), e); } throw e; } try { // delete the ACL online and offline m_driverManager.getUserDriver().removeAccessControlEntries( dbc, onlineProject, onlineFileHeader.getResourceId()); m_driverManager.getUserDriver().removeAccessControlEntries( dbc, dbc.currentProject(), offlineResource.getResourceId()); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().key(Messages.LOG_REMOVING_ACL_1, offlineResource.toString()), e); } throw e; } report.println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.FORMAT_OK); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key( Messages.LOG_DEL_FILE_3, offlineResource.getRootPath(), String.valueOf(m), String.valueOf(n))); } } else if (offlineResource.getState() == CmsResource.STATE_CHANGED) { report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_SUCCESSION_2, String.valueOf(m), String.valueOf(n)), I_CmsReport.FORMAT_NOTE); report.print(Messages.get().container(Messages.RPT_PUBLISH_FILE_0), I_CmsReport.FORMAT_NOTE); report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, dbc.removeSiteRoot(offlineResource.getRootPath()))); report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); try { // read the file header online onlineFileHeader = m_driverManager.getVfsDriver().readResource( dbc, onlineProject.getId(), offlineResource.getStructureId(), false); // reset the labeled link flag before writing the online file int flags = offlineResource.getFlags(); flags &= ~CmsResource.FLAG_LABELED; offlineResource.setFlags(flags); // delete the properties online m_driverManager.getVfsDriver().deletePropertyObjects( dbc, onlineProject.getId(), onlineFileHeader, CmsProperty.DELETE_OPTION_DELETE_STRUCTURE_AND_RESOURCE_VALUES); // if the offline file has a resource ID different from the online file // (probably because a deleted file was replaced by a new file with the // same name), the properties mapped to the "old" resource ID have to be // deleted also offline. if this is the case, the online and offline structure // ID's do match, but the resource ID's are different. structure IDs are reused // to prevent orphan structure records in the online project. if (!onlineFileHeader.getResourceId().equals(offlineResource.getResourceId())) { offlineProperties = m_driverManager.getVfsDriver().readPropertyObjects( dbc, dbc.currentProject(), onlineFileHeader); if (offlineProperties.size() > 0) { for (int i = 0; i < offlineProperties.size(); i++) { property = (CmsProperty)offlineProperties.get(i); property.setStructureValue(null); property.setResourceValue(CmsProperty.DELETE_VALUE); } m_driverManager.getVfsDriver().writePropertyObjects( dbc, dbc.currentProject(), onlineFileHeader, offlineProperties); } } // remove the file online boolean removeContent = !publishedContentIds.contains(offlineResource.getResourceId()); m_driverManager.getVfsDriver().removeFile(dbc, onlineProject, onlineFileHeader, removeContent); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().key(Messages.LOG_DELETING_PROPERTIES_1, offlineResource.toString()), e); } throw e; } try { // publish the file content newFile = m_driverManager.getProjectDriver().publishFileContent( dbc, dbc.currentProject(), onlineProject, offlineResource, publishedContentIds); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error( Messages.get().key(Messages.LOG_PUBLISHING_RESOURCE_1, offlineResource.getRootPath()), e); } throw e; } try { // write the properties online offlineProperties = m_driverManager.getVfsDriver().readPropertyObjects( dbc, dbc.currentProject(), offlineResource); CmsProperty.setAutoCreatePropertyDefinitions(offlineProperties, true); m_driverManager.getVfsDriver().writePropertyObjects(dbc, onlineProject, newFile, offlineProperties); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().key(Messages.LOG_PUBLISHING_PROPERTIES_1, newFile.getRootPath()), e); } throw e; } try { // write the ACL online m_driverManager.getUserDriver().publishAccessControlEntries( dbc, dbc.currentProject(), onlineProject, newFile.getResourceId(), onlineFileHeader.getResourceId()); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().key(Messages.LOG_PUBLISHING_ACL_1, newFile.getRootPath()), e); } throw e; } try { // write the file to the backup and publishing history if (backupEnabled) { if (offlineProperties == null) { offlineProperties = m_driverManager.getVfsDriver().readPropertyObjects( dbc, dbc.currentProject(), offlineResource); } m_driverManager.getBackupDriver().writeBackupResource( dbc, newFile, offlineProperties, backupTagId, publishDate, maxVersions); } m_driverManager.getProjectDriver().writePublishHistory( dbc, dbc.currentProject(), publishHistoryId, new CmsPublishedResource(offlineResource, backupTagId)); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error( Messages.get().key(Messages.LOG_WRITING_PUBLISHING_HISTORY_1, newFile.getRootPath()), e); } throw e; } report.println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.FORMAT_OK); if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key( Messages.LOG_PUBLISHING_FILE_3, offlineResource.getRootPath(), String.valueOf(m), String.valueOf(n))); } } else if (offlineResource.getState() == CmsResource.STATE_NEW) { report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_SUCCESSION_2, String.valueOf(m), String.valueOf(n)), I_CmsReport.FORMAT_NOTE); report.print(Messages.get().container(Messages.RPT_PUBLISH_FILE_0), I_CmsReport.FORMAT_NOTE); report.print(org.opencms.report.Messages.get().container( org.opencms.report.Messages.RPT_ARGUMENT_1, dbc.removeSiteRoot(offlineResource.getRootPath()))); report.print(org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_DOTS_0)); try { // reset the labeled link flag before writing the online file int flags = offlineResource.getFlags(); flags &= ~CmsResource.FLAG_LABELED; offlineResource.setFlags(flags); // publish the file content newFile = m_driverManager.getProjectDriver().publishFileContent( dbc, dbc.currentProject(), onlineProject, offlineResource, publishedContentIds); } catch (CmsVfsResourceAlreadyExistsException e) { try { // remove the existing file and ensure that it's content is written // in any case by removing it's content ID from the set of published content IDs m_driverManager.getVfsDriver().removeFile(dbc, onlineProject, offlineResource, true); publishedContentIds.remove(offlineResource.getResourceId()); newFile = m_driverManager.getProjectDriver().publishFileContent( dbc, dbc.currentProject(), onlineProject, offlineResource, publishedContentIds); } catch (CmsDataAccessException e1) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().key( Messages.LOG_PUBLISHING_RESOURCE_1, offlineResource.getRootPath()), e); } throw e1; } } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error( Messages.get().key(Messages.LOG_PUBLISHING_RESOURCE_1, offlineResource.getRootPath()), e); } throw e; } try { // write the properties online offlineProperties = m_driverManager.getVfsDriver().readPropertyObjects( dbc, dbc.currentProject(), offlineResource); CmsProperty.setAutoCreatePropertyDefinitions(offlineProperties, true); m_driverManager.getVfsDriver().writePropertyObjects(dbc, onlineProject, newFile, offlineProperties); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().key(Messages.LOG_PUBLISHING_PROPERTIES_1, newFile.getRootPath()), e); } throw e; } try { // write the ACL online m_driverManager.getUserDriver().publishAccessControlEntries( dbc, dbc.currentProject(), onlineProject, offlineResource.getResourceId(), newFile.getResourceId()); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().key(Messages.LOG_PUBLISHING_ACL_1, newFile.getRootPath()), e); } throw e; } try { // write the file to the backup and publishing history if (backupEnabled) { if (offlineProperties == null) { offlineProperties = m_driverManager.getVfsDriver().readPropertyObjects( dbc, dbc.currentProject(), offlineResource); } m_driverManager.getBackupDriver().writeBackupResource( dbc, newFile, offlineProperties, backupTagId, publishDate, maxVersions); } m_driverManager.getProjectDriver().writePublishHistory( dbc, dbc.currentProject(), publishHistoryId, new CmsPublishedResource(offlineResource, backupTagId)); } catch (CmsDataAccessException e) { if (LOG.isErrorEnabled()) { LOG.error( Messages.get().key(Messages.LOG_WRITING_PUBLISHING_HISTORY_1, newFile.getRootPath()), e); } throw e; } report.println( org.opencms.report.Messages.get().container(org.opencms.report.Messages.RPT_OK_0), I_CmsReport.FORMAT_OK); if (LOG.isDebugEnabled()) { if (LOG.isDebugEnabled()) { LOG.debug(Messages.get().key( Messages.LOG_PUBLISHING_FILE_3, offlineResource.getRootPath(), String.valueOf(m), String.valueOf(n))); } } } } finally { // notify the app. that the published file and it's properties have been modified offline OpenCms.fireCmsEvent(new CmsEvent( I_CmsEventListener.EVENT_RESOURCE_AND_PROPERTIES_MODIFIED, Collections.singletonMap("resource", offlineResource))); } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/eb97b39a1361b9e059f95e14d206776b97b3907d/CmsProjectDriver.java/clean/src/org/opencms/db/generic/CmsProjectDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3808, 812, 12, 3639, 30670, 9881, 16, 3639, 467, 67, 25702, 2605, 16, 3639, 509, 312, 16, 3639, 509, 290, 16, 3639, 2149, 4109, 12365, 4109, 16, 3639, 7630, 13493, 1420, 16, 3639, 1000, 9487, 1350, 2673, 16, 3639, 1250, 5114, 1526, 16, 3639, 1525, 3808, 1626, 16, 3639, 15792, 3808, 5623, 548, 16, 3639, 509, 5114, 1805, 548, 16, 3639, 509, 943, 5940, 13, 1216, 2149, 751, 9773, 288, 3639, 28118, 20592, 273, 446, 31, 3639, 7630, 12365, 812, 1864, 273, 446, 31, 3639, 987, 13493, 2297, 273, 446, 31, 3639, 18505, 1272, 273, 446, 31, 3639, 509, 1272, 2613, 1895, 273, 300, 21, 31, 3639, 1748, 540, 380, 24496, 999, 13493, 812, 18, 588, 1119, 1435, 2674, 5, 540, 380, 5098, 999, 13493, 812, 1864, 18, 588, 1119, 1435, 358, 4199, 326, 919, 434, 392, 13493, 1058, 5, 540, 380, 1850, 380, 657, 648, 279, 1058, 711, 14692, 16, 1839, 279, 10841, 1703, 9487, 326, 3695, 540, 380, 471, 1058, 5493, 854, 2715, 358, 5019, 24435, 317, 326, 919, 434, 326, 4656, 540, 380, 13493, 812, 1864, 353, 4859, 12887, 16, 8568, 40, 578, 6469, 21095, 16, 1496, 326, 919, 434, 13493, 812, 1850, 380, 353, 5019, 24435, 2724, 13493, 812, 353, 855, 18651, 14692, 1818, 2363, 9487, 18, 1850, 380, 22073, 16, 1450, 13493, 812, 18, 588, 1119, 1435, 903, 316, 14965, 305, 6906, 563, 316, 640, 12614, 2703, 5, 540, 1195, 3639, 775, 288, 5411, 309, 261, 23787, 1420, 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, 3808, 812, 12, 3639, 30670, 9881, 16, 3639, 467, 67, 25702, 2605, 16, 3639, 509, 312, 16, 3639, 509, 290, 16, 3639, 2149, 4109, 12365, 4109, 16, 3639, 7630, 13493, 1420, 16, 3639, 1000, 9487, 1350, 2673, 16, 3639, 1250, 5114, 1526, 16, 3639, 1525, 3808, 1626, 16, 3639, 15792, 3808, 5623, 548, 16, 3639, 509, 5114, 1805, 548, 16, 3639, 509, 943, 5940, 13, 1216, 2149, 751, 9773, 288, 3639, 28118, 20592, 273, 446, 31, 3639, 7630, 12365, 812, 1864, 273, 446, 31, 3639, 987, 13493, 2297, 273, 446, 31, 3639, 18505, 1272, 273, 446, 31, 3639, 509, 1272, 2613, 1895, 273, 300, 21, 31, 3639, 1748, 540, 380, 24496, 999, 13493, 812, 18, 588, 2 ]
yaccValue = "^";
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } yaccValue = "**"; src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "*"; return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { yaccValue = "==="; return Tokens.tEQQ; } src.unread(c); yaccValue = "=="; return Tokens.tEQ; } if (c == '~') { yaccValue = "=~"; return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { yaccValue = "<=>"; return Tokens.tCMP; } yaccValue = "<="; src.unread(c); return Tokens.tLEQ; } if (c == '<') { yaccValue = "<<"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } yaccValue = "<"; src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { yaccValue = ">="; return Tokens.tGEQ; } if (c == '>') { yaccValue = ">>"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } yaccValue = ">"; src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': yaccValue = "`"; if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "&"; return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "|"; src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@+"; return Tokens.tUPLUS; } yaccValue = "+"; src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@-"; return Tokens.tUMINUS; } yaccValue = "-"; src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "/"; return Tokens.tDIVIDE; case '^': yaccValue = "^"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "~"; return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { yaccValue = "[]="; return Tokens.tASET; } yaccValue = "[]"; src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "%"; src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 1149, 276, 31, 3639, 1250, 3476, 15160, 273, 629, 31, 3639, 1250, 1296, 1119, 31, 7734, 309, 261, 4149, 67, 701, 6408, 480, 446, 13, 288, 1082, 202, 474, 946, 273, 5275, 67, 701, 6408, 18, 2670, 780, 12, 2211, 16, 1705, 1769, 1082, 202, 430, 261, 17692, 422, 13899, 18, 88, 5804, 67, 4415, 747, 946, 422, 13899, 18, 88, 28225, 67, 4415, 13, 288, 9506, 565, 5275, 67, 701, 6408, 273, 446, 31, 9506, 565, 5275, 67, 2019, 273, 15123, 1119, 18, 2294, 8025, 67, 4415, 31, 1082, 202, 97, 1082, 202, 2463, 946, 31, 3639, 289, 3639, 783, 1616, 273, 1705, 18, 588, 2555, 5621, 7734, 1296, 1119, 273, 1296, 1685, 31, 3639, 1296, 1685, 273, 629, 31, 7734, 3300, 30, 364, 12, 25708, 13, 288, 5411, 276, 273, 1705, 18, 896, 5621, 5411, 1620, 12, 71, 13, 288, 5411, 648, 2337, 26565, 4278, 202, 202, 20308, 3602, 40, 1195, 5411, 648, 2337, 20, 1578, 4278, 202, 202, 20308, 3602, 62, 1195, 5411, 648, 374, 30, 1082, 202, 20308, 679, 434, 2728, 18, 1195, 7734, 327, 374, 31, 21821, 1748, 9578, 7292, 1195, 5411, 648, 296, 4290, 648, 2337, 88, 4278, 648, 2337, 74, 4278, 648, 2337, 86, 4278, 5411, 648, 2337, 3437, 4278, 1748, 2337, 90, 11, 1195, 7734, 3476, 15160, 273, 638, 31, 7734, 1324, 3300, 31, 5411, 648, 2946, 4278, 202, 202, 20308, 518, 1807, 279, 2879, 1195, 7734, 1323, 14015, 71, 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, 677, 1362, 92, 1435, 288, 3639, 1149, 276, 31, 3639, 1250, 3476, 15160, 273, 629, 31, 3639, 1250, 1296, 1119, 31, 7734, 309, 261, 4149, 67, 701, 6408, 480, 446, 13, 288, 1082, 202, 474, 946, 273, 5275, 67, 701, 6408, 18, 2670, 780, 12, 2211, 16, 1705, 1769, 1082, 202, 430, 261, 17692, 422, 13899, 18, 88, 5804, 67, 4415, 747, 946, 422, 13899, 18, 88, 28225, 67, 4415, 13, 288, 9506, 565, 5275, 67, 701, 6408, 273, 446, 31, 9506, 565, 5275, 67, 2019, 273, 15123, 1119, 18, 2294, 8025, 67, 4415, 31, 1082, 202, 97, 1082, 202, 2463, 946, 31, 3639, 289, 3639, 783, 1616, 273, 1705, 18, 588, 2555, 5621, 7734, 1296, 2 ]
TreeElement element = addChildrenAndAdjustWhiteSpaces(first, lastChild, anchorBefore, parent, parent.getPsi().getContainingFile()); return element;
return addChildrenAndAdjustWhiteSpaces(first, lastChild, anchorBefore, parent, getTreeElementContainingFile(parent));
public static TreeElement addChildren(CompositeElement parent, ASTNode first, ASTNode last, ASTNode anchorBefore) { LOG.assertTrue(first != null); ASTNode lastChild = last != null ? last.getTreeNext() : null; if (FormatterEx.getInstanceEx().isDisabled()) { parent.addChildren(first, lastChild, anchorBefore); return (TreeElement) first; } else { checkAllWhiteSpaces(parent); TreeElement element = addChildrenAndAdjustWhiteSpaces(first, lastChild, anchorBefore, parent, parent.getPsi().getContainingFile()); return element; } }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/96735ca7ff93fd7888903ef0019b76e8c47ac172/CodeEditUtil.java/clean/source/com/intellij/psi/impl/source/codeStyle/CodeEditUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 4902, 1046, 527, 4212, 12, 9400, 1046, 982, 16, 9183, 907, 1122, 16, 9183, 907, 1142, 16, 9183, 907, 6984, 4649, 13, 288, 565, 2018, 18, 11231, 5510, 12, 3645, 480, 446, 1769, 565, 9183, 907, 30006, 273, 1142, 480, 446, 692, 1142, 18, 588, 2471, 2134, 1435, 294, 446, 31, 565, 309, 261, 5074, 424, 18, 588, 1442, 424, 7675, 291, 8853, 10756, 288, 1377, 982, 18, 1289, 4212, 12, 3645, 16, 30006, 16, 6984, 4649, 1769, 1377, 327, 261, 2471, 1046, 13, 1122, 31, 565, 289, 469, 288, 1377, 866, 1595, 13407, 12077, 12, 2938, 1769, 1377, 4902, 1046, 930, 273, 527, 4212, 1876, 10952, 13407, 12077, 12, 3645, 16, 30006, 16, 6984, 4649, 16, 982, 16, 982, 18, 588, 52, 7722, 7675, 588, 24344, 812, 10663, 1377, 327, 930, 31, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 4902, 1046, 527, 4212, 12, 9400, 1046, 982, 16, 9183, 907, 1122, 16, 9183, 907, 1142, 16, 9183, 907, 6984, 4649, 13, 288, 565, 2018, 18, 11231, 5510, 12, 3645, 480, 446, 1769, 565, 9183, 907, 30006, 273, 1142, 480, 446, 692, 1142, 18, 588, 2471, 2134, 1435, 294, 446, 31, 565, 309, 261, 5074, 424, 18, 588, 1442, 424, 7675, 291, 8853, 10756, 288, 1377, 982, 18, 1289, 4212, 12, 3645, 16, 30006, 16, 6984, 4649, 1769, 1377, 327, 261, 2471, 1046, 13, 1122, 31, 565, 289, 469, 288, 1377, 866, 1595, 13407, 12077, 12, 2938, 1769, 1377, 4902, 1046, 930, 273, 527, 4212, 1876, 10952, 13407, 12077, 12, 3645, 16, 30006, 16, 6984, 4649, 2 ]
seek_tab(in, "hhea", 4);
seekTab(in, "hhea", 4);
protected void readHorizontalHeader(FontFileReader in) throws IOException { seek_tab(in, "hhea", 4); ascender = in.readTTFShort(); // Use sTypoAscender in "OS/2" table? descender = in.readTTFShort(); // Use sTypoDescender in "OS/2" table? in.skip(2 + 2 + 3 * 2 + 8 * 2); nhmtx = in.readTTFUShort(); log.debug("Number of horizontal metrics: " + nhmtx); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/2e2226dd0dd6733fdab0c36331723114a46eddd8/TTFFile.java/buggy/src/org/apache/fop/fonts/TTFFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 855, 14457, 1864, 12, 5711, 812, 2514, 316, 13, 5411, 1216, 1860, 288, 3639, 6520, 5661, 12, 267, 16, 315, 76, 580, 69, 3113, 1059, 1769, 3639, 6972, 2345, 273, 316, 18, 896, 1470, 42, 4897, 5621, 565, 368, 2672, 272, 18488, 83, 13665, 2345, 316, 315, 4618, 19, 22, 6, 1014, 35, 3639, 3044, 2345, 273, 316, 18, 896, 1470, 42, 4897, 5621, 565, 368, 2672, 272, 18488, 83, 4217, 2345, 316, 315, 4618, 19, 22, 6, 1014, 35, 3639, 316, 18, 7457, 12, 22, 397, 576, 397, 890, 380, 576, 397, 1725, 380, 576, 1769, 3639, 24043, 81, 978, 273, 316, 18, 896, 1470, 42, 57, 4897, 5621, 3639, 613, 18, 4148, 2932, 1854, 434, 10300, 4309, 30, 315, 397, 24043, 81, 978, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 4750, 918, 855, 14457, 1864, 12, 5711, 812, 2514, 316, 13, 5411, 1216, 1860, 288, 3639, 6520, 5661, 12, 267, 16, 315, 76, 580, 69, 3113, 1059, 1769, 3639, 6972, 2345, 273, 316, 18, 896, 1470, 42, 4897, 5621, 565, 368, 2672, 272, 18488, 83, 13665, 2345, 316, 315, 4618, 19, 22, 6, 1014, 35, 3639, 3044, 2345, 273, 316, 18, 896, 1470, 42, 4897, 5621, 565, 368, 2672, 272, 18488, 83, 4217, 2345, 316, 315, 4618, 19, 22, 6, 1014, 35, 3639, 316, 18, 7457, 12, 22, 397, 576, 397, 890, 380, 576, 397, 1725, 380, 576, 1769, 3639, 24043, 81, 978, 273, 316, 18, 896, 1470, 42, 57, 4897, 5621, 3639, 613, 18, 4148, 2932, 1854, 2 ]
pw.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
pw.println("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>");
public void saveToXMLFile(String filename) { Debug.msg("Saving to file " + filename); FileOutputStream fos; try { fos = new FileOutputStream(filename); PrintWriter pw = new PrintWriter(fos); pw.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); pw.println("<!DOCTYPE phonebook SYSTEM \"" + PHONEBOOK_DTD_URI + "\">"); pw.println("<phonebook>"); pw.println("<comment>Phonebook for " + JFritz.PROGRAM_NAME + " v" + JFritz.PROGRAM_VERSION + "</comment>"); Enumeration en = persons.elements(); while (en.hasMoreElements()) { Person current = (Person) en.nextElement(); pw.println("<entry>"); pw.println("\t<firstname>" + current.getFirstName() + "</firstname>"); pw.println("\t<middlename>" + current.getMiddleName() + "</middlename>"); pw.println("\t<lastname>" + current.getLastName() + "</lastname>"); pw.println("\t<street>" + current.getStreet() + "</street>"); pw.println("\t<postcode>" + current.getPostalCode() + "</postcode>"); pw.println("\t<city>" + current.getCity() + "</city>"); pw.println("\t<homenumber>" + current.getHomeTelNumber() + "</homenumber>"); pw.println("\t<mobilenumber>" + current.getMobileTelNumber() + "</mobilenumber>"); pw.println("\t<businessnumber>" + current.getBusinessTelNumber() + "</businessnumber>"); pw.println("\t<othernumber>" + current.getOtherTelNumber() + "</othernumber>"); pw.println("\t<standardnumber>" + current.getStandardTelephoneNumber() + "</standardnumber>"); pw .println("\t<email>" + current.getEmailAddress() + "</email>"); pw.println("\t<category>" + current.getCategory() + "</category>"); pw.println("</entry>"); } pw.println("</phonebook>"); pw.close(); } catch (FileNotFoundException e) { Debug.err("Could not write " + filename + "!"); } }
7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/dbb3a27fb712217adebcc46f0acc99a7e1a32ae1/PhoneBook.java/buggy/jfritz/src/de/moonflower/jfritz/dialogs/phonebook/PhoneBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1923, 774, 4201, 812, 12, 780, 1544, 13, 288, 202, 202, 2829, 18, 3576, 2932, 24660, 358, 585, 315, 397, 1544, 1769, 202, 202, 812, 4632, 17615, 31, 202, 202, 698, 288, 1082, 202, 5075, 273, 394, 12942, 12, 3459, 1769, 1082, 202, 5108, 2289, 8772, 273, 394, 14071, 12, 5075, 1769, 1082, 202, 14921, 18, 8222, 2932, 12880, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 5159, 17, 28, 2412, 35, 2984, 1769, 1082, 202, 14921, 18, 8222, 2932, 5586, 29824, 7353, 3618, 18786, 11843, 397, 15490, 5998, 28163, 67, 25728, 67, 3098, 6862, 202, 15, 7023, 2984, 1769, 1082, 202, 14921, 18, 8222, 2932, 32, 10540, 3618, 2984, 1769, 1082, 202, 14921, 18, 8222, 2932, 32, 3469, 34, 9451, 3618, 364, 315, 397, 21091, 583, 94, 18, 21418, 67, 1985, 397, 315, 331, 6, 6862, 202, 15, 21091, 583, 94, 18, 21418, 67, 5757, 397, 6823, 3469, 2984, 1769, 1082, 202, 21847, 570, 273, 6175, 87, 18, 6274, 5621, 1082, 202, 17523, 261, 275, 18, 5332, 7417, 3471, 10756, 288, 9506, 202, 8346, 783, 273, 261, 8346, 13, 570, 18, 4285, 1046, 5621, 9506, 202, 14921, 18, 8222, 2932, 32, 4099, 2984, 1769, 9506, 202, 14921, 18, 8222, 31458, 88, 32, 26576, 2984, 397, 783, 18, 588, 3759, 461, 1435, 25083, 202, 15, 6823, 26576, 2984, 1769, 9506, 202, 14921, 18, 8222, 31458, 88, 32, 81, 1873, 14724, 2984, 397, 783, 18, 588, 21924, 461, 1435, 25083, 202, 15, 6823, 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, 1923, 774, 4201, 812, 12, 780, 1544, 13, 288, 202, 202, 2829, 18, 3576, 2932, 24660, 358, 585, 315, 397, 1544, 1769, 202, 202, 812, 4632, 17615, 31, 202, 202, 698, 288, 1082, 202, 5075, 273, 394, 12942, 12, 3459, 1769, 1082, 202, 5108, 2289, 8772, 273, 394, 14071, 12, 5075, 1769, 1082, 202, 14921, 18, 8222, 2932, 12880, 2902, 1177, 5189, 21, 18, 20, 2412, 2688, 5189, 5159, 17, 28, 2412, 35, 2984, 1769, 1082, 202, 14921, 18, 8222, 2932, 5586, 29824, 7353, 3618, 18786, 11843, 397, 15490, 5998, 28163, 67, 25728, 67, 3098, 6862, 202, 15, 7023, 2984, 1769, 1082, 202, 14921, 18, 8222, 2932, 32, 10540, 3618, 2984, 1769, 1082, 202, 14921, 2 ]
if (! class_file.exists ())
if (!class_file.exists())
public CompileResult perform (String compiler, ArrayList arguments) { Debug.trace ("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1; } // add compiler in front of arguments args.add (0, compiler); cmdline_len += compiler.length()+1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext ()) { String cp = (String)cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString (); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add ("-classpath"); cmdline_len = cmdline_len + 11; args.add (classpath_str); cmdline_len += classpath_str.length()+1; } // remember how many arguments we have which don't change for the job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor (); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File)file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace ("processing "+fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add (fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace ("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while still // compiling a lot) this.listener.progress (last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned although // compilation failed. Iterator arg_it = args.listIterator (common_args_no); while (arg_it.hasNext()) { File java_file = new File ((String)arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf ('.'); basename = basename.substring (0, dotpos) + ".class"; File class_file = new File (java_file.getParentFile(), basename); if (! class_file.exists ()) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.noclassfile")+java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size()-1; i >= common_args_no; i--) { args.removeLast (); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress (last_fileno, jobfiles); String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } } Debug.trace ("job "+this.name+" done (" + fileno + " files compiled)"); return new CompileResult(); }
58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/47db88bfea6b64e47a33aa3c937b2ce6e8640d56/CompileWorker.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/installer/CompileWorker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16143, 1253, 3073, 261, 780, 5274, 16, 2407, 1775, 13, 565, 288, 1377, 4015, 18, 5129, 7566, 18526, 1719, 315, 397, 333, 18, 529, 1769, 1377, 368, 732, 1240, 2690, 4207, 1296, 980, 769, 300, 1608, 358, 1056, 1377, 509, 22877, 67, 1897, 273, 374, 31, 1377, 368, 1399, 358, 3274, 326, 1775, 364, 11274, 326, 5274, 1377, 10688, 833, 273, 394, 10688, 12, 7099, 1769, 1377, 288, 3639, 4498, 1501, 67, 305, 273, 833, 18, 9838, 5621, 3639, 1323, 261, 3175, 67, 305, 18, 5332, 2134, 1832, 13, 1850, 22877, 67, 1897, 1011, 14015, 780, 13, 3175, 67, 305, 18, 4285, 1435, 2934, 2469, 1435, 15, 21, 31, 1377, 289, 1377, 368, 527, 5274, 316, 6641, 434, 1775, 1377, 833, 18, 1289, 261, 20, 16, 5274, 1769, 1377, 22877, 67, 1897, 1011, 5274, 18, 2469, 1435, 15, 21, 31, 1377, 368, 4872, 10006, 1237, 364, 5274, 1377, 368, 300, 3274, 777, 667, 4481, 1377, 6674, 10006, 67, 18366, 273, 394, 6674, 5621, 1377, 4498, 3283, 67, 305, 273, 333, 18, 26302, 18, 9838, 5621, 1377, 1323, 261, 4057, 67, 305, 18, 5332, 2134, 1832, 13, 1377, 288, 3639, 514, 3283, 273, 261, 780, 13, 4057, 67, 305, 18, 4285, 5621, 3639, 309, 261, 26302, 67, 18366, 18, 2469, 1435, 405, 374, 13, 1850, 10006, 67, 18366, 18, 6923, 261, 812, 18, 803, 6581, 2156, 1769, 3639, 10006, 67, 18366, 18, 6923, 261, 2704, 1387, 261, 4057, 2934, 588, 10368, 743, 10663, 1377, 289, 1377, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16143, 1253, 3073, 261, 780, 5274, 16, 2407, 1775, 13, 565, 288, 1377, 4015, 18, 5129, 7566, 18526, 1719, 315, 397, 333, 18, 529, 1769, 1377, 368, 732, 1240, 2690, 4207, 1296, 980, 769, 300, 1608, 358, 1056, 1377, 509, 22877, 67, 1897, 273, 374, 31, 1377, 368, 1399, 358, 3274, 326, 1775, 364, 11274, 326, 5274, 1377, 10688, 833, 273, 394, 10688, 12, 7099, 1769, 1377, 288, 3639, 4498, 1501, 67, 305, 273, 833, 18, 9838, 5621, 3639, 1323, 261, 3175, 67, 305, 18, 5332, 2134, 1832, 13, 1850, 22877, 67, 1897, 1011, 14015, 780, 13, 3175, 67, 305, 18, 4285, 1435, 2934, 2469, 1435, 15, 21, 31, 1377, 289, 1377, 368, 527, 5274, 316, 6641, 2 ]
Field field = null; try { field = (Field) member; field.set(javaObject, NativeJavaObject.coerceType(field.getType(), value)); } catch (ClassCastException e) { Object errArgs[] = { name }; throw Context.reportRuntimeError(Context.getMessage ("msg.java.method.assign", errArgs)); } catch (IllegalAccessException accessEx) { throw new RuntimeException("unexpected IllegalAccessException "+ "accessing Java field"); } catch (IllegalArgumentException argEx) { Object errArgs[] = { value.getClass().getName(), field, javaObject.getClass().getName() }; throw Context.reportRuntimeError(Context.getMessage( "msg.java.internal.field.type", errArgs));
if (member instanceof Method) { try { Method method = (Method) member; Class[] types = method.getParameterTypes(); Object[] params = { NativeJavaObject.coerceType(types[0], value) }; method.invoke(javaObject, params); } catch (IllegalAccessException accessEx) { throw new RuntimeException("unexpected IllegalAccessException "+ "accessing Java field"); } catch (InvocationTargetException invTarget) { throw Context.reportRuntimeError("unexpected " + invTarget.getTargetException() + " accessing Java field"); } } else { Field field = null; try { field = (Field) member; if (field == null) { Object[] args = {name}; throw Context.reportRuntimeError( Context.getMessage("msg.java.internal.private", args)); } field.set(javaObject, NativeJavaObject.coerceType(field.getType(), value)); } catch (ClassCastException e) { Object errArgs[] = { name }; throw Context.reportRuntimeError(Context.getMessage ("msg.java.method.assign", errArgs)); } catch (IllegalAccessException accessEx) { throw new RuntimeException("unexpected IllegalAccessException "+ "accessing Java field"); } catch (IllegalArgumentException argEx) { Object errArgs[] = { value.getClass().getName(), field, javaObject.getClass().getName() }; throw Context.reportRuntimeError(Context.getMessage( "msg.java.internal.field.type", errArgs)); }
public void put(String name, Object javaObject, Object value, boolean isStatic) { Hashtable ht = isStatic ? staticMembers : members; Object member = ht.get(name); if (!isStatic && member == null) { // Try to get static member from instance (LC3) member = staticMembers.get(name); } if (member == null) throw reportMemberNotFound(name); if (member instanceof FieldAndMethods) { member = ((FieldAndMethods) ht.get(name)).getField(); } Field field = null; try { field = (Field) member; field.set(javaObject, NativeJavaObject.coerceType(field.getType(), value)); } catch (ClassCastException e) { Object errArgs[] = { name }; throw Context.reportRuntimeError(Context.getMessage ("msg.java.method.assign", errArgs)); } catch (IllegalAccessException accessEx) { throw new RuntimeException("unexpected IllegalAccessException "+ "accessing Java field"); } catch (IllegalArgumentException argEx) { Object errArgs[] = { value.getClass().getName(), field, javaObject.getClass().getName() }; throw Context.reportRuntimeError(Context.getMessage( "msg.java.internal.field.type", errArgs)); } }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/d51c86ce41d18ae0fb0b3b8271845674d5ce2728/JavaMembers.java/buggy/js/rhino/src/org/mozilla/javascript/JavaMembers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 780, 508, 16, 1033, 2252, 921, 16, 1033, 460, 16, 10792, 1250, 16116, 13, 565, 288, 3639, 18559, 14049, 273, 16116, 692, 760, 6918, 294, 4833, 31, 3639, 1033, 3140, 273, 14049, 18, 588, 12, 529, 1769, 3639, 309, 16051, 291, 5788, 597, 3140, 422, 446, 13, 288, 5411, 368, 6161, 358, 336, 760, 3140, 628, 791, 261, 13394, 23, 13, 5411, 3140, 273, 760, 6918, 18, 588, 12, 529, 1769, 3639, 289, 3639, 309, 261, 5990, 422, 446, 13, 5411, 604, 2605, 4419, 2768, 12, 529, 1769, 3639, 309, 261, 5990, 1276, 2286, 1876, 4712, 13, 288, 5411, 3140, 273, 14015, 974, 1876, 4712, 13, 14049, 18, 588, 12, 529, 13, 2934, 588, 974, 5621, 3639, 289, 3639, 2286, 652, 273, 446, 31, 3639, 775, 288, 5411, 652, 273, 261, 974, 13, 3140, 31, 5411, 652, 18, 542, 12, 6290, 921, 16, 16717, 5852, 921, 18, 2894, 2765, 559, 12, 1518, 18, 588, 559, 9334, 4766, 17311, 460, 10019, 3639, 289, 1044, 261, 797, 22768, 425, 13, 288, 5411, 1033, 393, 2615, 8526, 273, 288, 508, 289, 31, 5411, 604, 1772, 18, 6006, 5576, 668, 12, 1042, 18, 24906, 4766, 1850, 7566, 3576, 18, 6290, 18, 2039, 18, 6145, 3113, 4766, 1850, 393, 2615, 10019, 3639, 289, 1044, 261, 12195, 9773, 2006, 424, 13, 288, 5411, 604, 394, 3235, 2932, 21248, 11900, 13773, 4766, 4202, 315, 3860, 310, 5110, 652, 8863, 3639, 289, 1044, 261, 31237, 1501, 424, 13, 288, 5411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 780, 508, 16, 1033, 2252, 921, 16, 1033, 460, 16, 10792, 1250, 16116, 13, 565, 288, 3639, 18559, 14049, 273, 16116, 692, 760, 6918, 294, 4833, 31, 3639, 1033, 3140, 273, 14049, 18, 588, 12, 529, 1769, 3639, 309, 16051, 291, 5788, 597, 3140, 422, 446, 13, 288, 5411, 368, 6161, 358, 336, 760, 3140, 628, 791, 261, 13394, 23, 13, 5411, 3140, 273, 760, 6918, 18, 588, 12, 529, 1769, 3639, 289, 3639, 309, 261, 5990, 422, 446, 13, 5411, 604, 2605, 4419, 2768, 12, 529, 1769, 3639, 309, 261, 5990, 1276, 2286, 1876, 4712, 13, 288, 5411, 3140, 273, 14015, 974, 1876, 4712, 13, 14049, 18, 588, 12, 529, 13, 2934, 588, 2 ]
if (((HtmlButton) e).getValueAttribute().equals(buttonValueText))
if (((HtmlButton) e).asText().equals(buttonValueText))
public HtmlButton getButtonWithText(String buttonValueText) { List l = ((HtmlPage) win.getEnclosedPage()).getDocumentElement() .getHtmlElementsByTagNames( Arrays.asList(new String[] {"button"})); for (int i = 0; i < l.size(); i++) { HtmlElement e = (HtmlElement) l.get(i); if (((HtmlButton) e).getValueAttribute().equals(buttonValueText)) return (HtmlButton) e; } return null; }
5239 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5239/365b037aaab8d8fc77ee573b612653174e51defb/HtmlUnitDialog.java/clean/jwebunit-htmlunit-plugin/src/main/java/net/sourceforge/jwebunit/htmlunit/HtmlUnitDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5430, 3616, 2882, 2644, 1190, 1528, 12, 780, 3568, 620, 1528, 13, 288, 3639, 987, 328, 273, 14015, 4353, 1964, 13, 5657, 18, 588, 4280, 13783, 1964, 1435, 2934, 588, 2519, 1046, 1435, 7734, 263, 588, 4353, 3471, 29309, 1557, 12, 13491, 5647, 18, 345, 682, 12, 2704, 514, 8526, 12528, 5391, 6, 6792, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 328, 18, 1467, 5621, 277, 27245, 288, 5411, 5430, 1046, 425, 273, 261, 4353, 1046, 13, 328, 18, 588, 12, 77, 1769, 5411, 309, 261, 12443, 4353, 3616, 13, 425, 2934, 345, 1528, 7675, 14963, 12, 5391, 620, 1528, 3719, 7734, 327, 261, 4353, 3616, 13, 425, 31, 3639, 289, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5430, 3616, 2882, 2644, 1190, 1528, 12, 780, 3568, 620, 1528, 13, 288, 3639, 987, 328, 273, 14015, 4353, 1964, 13, 5657, 18, 588, 4280, 13783, 1964, 1435, 2934, 588, 2519, 1046, 1435, 7734, 263, 588, 4353, 3471, 29309, 1557, 12, 13491, 5647, 18, 345, 682, 12, 2704, 514, 8526, 12528, 5391, 6, 6792, 1769, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 328, 18, 1467, 5621, 277, 27245, 288, 5411, 5430, 1046, 425, 273, 261, 4353, 1046, 13, 328, 18, 588, 12, 77, 1769, 5411, 309, 261, 12443, 4353, 3616, 13, 425, 2934, 345, 1528, 7675, 14963, 12, 5391, 620, 1528, 3719, 7734, 327, 261, 4353, 3616, 13, 425, 31, 3639, 289, 3639, 327, 2 ]
cmptList.add(new Integer(i));
cmptList.add( new Integer( i ) );
private void prepare( IResultClass resultClass ) throws DataException { assert resultClass!=null; // identify those computed columns that are projected // in the result set by checking the result metadata List cmptList = new ArrayList(); for ( int i = 0; i < ccList.size( ); i++ ) { IComputedColumn cmptdColumn = (IComputedColumn) ccList.get( i ); int cmptdColumnIdx = resultClass.getFieldIndex( cmptdColumn.getName( ) ); // check if given field name is found in result set metadata, and // is indeed declared as a custom field if ( cmptdColumnIdx >= 1 && resultClass.isCustomField( cmptdColumnIdx ) ) cmptList.add(new Integer(i)); // else computed column is not projected, skip to next computed // column } int size = cmptList.size( ); columnExprArray = new IBaseExpression[size]; columnIndexArray = new int[size]; for ( int i = 0; i < size; i++ ) { int pos = ( (Integer) cmptList.get( i ) ).intValue( ); IComputedColumn cmptdColumn = (IComputedColumn) ccList.get( pos ); columnExprArray[i] = cmptdColumn.getExpression( ); columnIndexArray[i] = resultClass.getFieldIndex( cmptdColumn.getName( ) ); } isPrepared = true; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/5b0f29da380ae7a8fe40b0dc02d4ff08bac49ce7/ComputedColumnHelper.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ComputedColumnHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2911, 12, 467, 1253, 797, 563, 797, 262, 1216, 1910, 503, 202, 95, 202, 202, 11231, 563, 797, 5, 33, 2011, 31, 9506, 202, 759, 9786, 5348, 8470, 2168, 716, 854, 20939, 202, 202, 759, 316, 326, 563, 444, 635, 6728, 326, 563, 1982, 202, 202, 682, 5003, 337, 682, 273, 394, 2407, 5621, 9506, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 4946, 682, 18, 1467, 12, 11272, 277, 9904, 262, 202, 202, 95, 1082, 202, 45, 17934, 1494, 5003, 337, 72, 1494, 273, 261, 45, 17934, 1494, 13, 4946, 682, 18, 588, 12, 277, 11272, 1082, 202, 474, 5003, 337, 72, 1494, 4223, 273, 563, 797, 18, 588, 974, 1016, 12, 5003, 337, 72, 1494, 18, 17994, 12, 262, 11272, 1082, 202, 759, 866, 309, 864, 652, 508, 353, 1392, 316, 563, 444, 1982, 16, 471, 1082, 202, 759, 353, 316, 323, 329, 7886, 487, 279, 1679, 652, 1082, 202, 430, 261, 5003, 337, 72, 1494, 4223, 1545, 404, 6862, 202, 10, 10, 563, 797, 18, 291, 3802, 974, 12, 5003, 337, 72, 1494, 4223, 262, 262, 9506, 202, 7670, 337, 682, 18, 1289, 12, 2704, 2144, 12, 77, 10019, 1082, 202, 759, 469, 8470, 1057, 353, 486, 20939, 16, 2488, 358, 1024, 8470, 1082, 202, 759, 1057, 202, 202, 97, 9506, 202, 474, 963, 273, 5003, 337, 682, 18, 1467, 12, 11272, 202, 202, 2827, 4742, 1076, 273, 394, 467, 2171, 2300, 63, 1467, 15533, 202, 202, 2827, 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, 2911, 12, 467, 1253, 797, 563, 797, 262, 1216, 1910, 503, 202, 95, 202, 202, 11231, 563, 797, 5, 33, 2011, 31, 9506, 202, 759, 9786, 5348, 8470, 2168, 716, 854, 20939, 202, 202, 759, 316, 326, 563, 444, 635, 6728, 326, 563, 1982, 202, 202, 682, 5003, 337, 682, 273, 394, 2407, 5621, 9506, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 4946, 682, 18, 1467, 12, 11272, 277, 9904, 262, 202, 202, 95, 1082, 202, 45, 17934, 1494, 5003, 337, 72, 1494, 273, 261, 45, 17934, 1494, 13, 4946, 682, 18, 588, 12, 277, 11272, 1082, 202, 474, 5003, 337, 72, 1494, 4223, 273, 563, 797, 18, 588, 974, 1016, 12, 2 ]
assertEquals("activeConnectionCount", 2, ProxoolFacade.getSnapshot(alias, false).getActiveConnectionCount());
assertEquals("activeConnectionCount", 2, ProxoolFacade.getSnapshot(alias, true).getActiveConnectionCount());
public void testMaximumConnectionCount() throws Exception { String testName = "maximumConnectionCount"; String alias = testName; String url = TestHelper.buildProxoolUrl(alias, TestConstants.HYPERSONIC_DRIVER, TestConstants.HYPERSONIC_TEST_URL); Properties info = new Properties(); info.setProperty(ProxoolConstants.USER_PROPERTY, TestConstants.HYPERSONIC_USER); info.setProperty(ProxoolConstants.PASSWORD_PROPERTY, TestConstants.HYPERSONIC_PASSWORD); info.setProperty(ProxoolConstants.MAXIMUM_CONNECTION_COUNT_PROPERTY, "2"); ProxoolFacade.registerConnectionPool(url, info); DriverManager.getConnection(url); DriverManager.getConnection(url); try { DriverManager.getConnection(url); fail("Didn't expect to get third connection"); } catch (SQLException e) { LOG.debug("Ignoring expected exception", e); } assertEquals("activeConnectionCount", 2, ProxoolFacade.getSnapshot(alias, false).getActiveConnectionCount()); }
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/e61fc436b0a8286257f0942eb12b963c0e7caf42/ConnectionPoolTests.java/clean/src/java-test/org/logicalcobwebs/proxool/ConnectionPoolTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 13528, 1952, 1380, 1435, 1216, 1185, 288, 3639, 514, 1842, 461, 273, 315, 15724, 1952, 1380, 14432, 3639, 514, 2308, 273, 1842, 461, 31, 3639, 514, 880, 273, 7766, 2276, 18, 3510, 16155, 1371, 1489, 12, 4930, 16, 7734, 7766, 2918, 18, 44, 61, 3194, 1413, 2871, 67, 27720, 16, 7734, 7766, 2918, 18, 44, 61, 3194, 1413, 2871, 67, 16961, 67, 1785, 1769, 3639, 6183, 1123, 273, 394, 6183, 5621, 3639, 1123, 18, 542, 1396, 12, 16155, 1371, 2918, 18, 4714, 67, 9900, 16, 7766, 2918, 18, 44, 61, 3194, 1413, 2871, 67, 4714, 1769, 3639, 1123, 18, 542, 1396, 12, 16155, 1371, 2918, 18, 13784, 67, 9900, 16, 7766, 2918, 18, 44, 61, 3194, 1413, 2871, 67, 13784, 1769, 3639, 1123, 18, 542, 1396, 12, 16155, 1371, 2918, 18, 6694, 18605, 67, 15461, 67, 7240, 67, 9900, 16, 315, 22, 8863, 3639, 1186, 92, 1371, 12467, 18, 4861, 1952, 2864, 12, 718, 16, 1123, 1769, 3639, 9396, 1318, 18, 588, 1952, 12, 718, 1769, 3639, 9396, 1318, 18, 588, 1952, 12, 718, 1769, 3639, 775, 288, 5411, 9396, 1318, 18, 588, 1952, 12, 718, 1769, 5411, 2321, 2932, 18250, 82, 1404, 4489, 358, 336, 12126, 1459, 8863, 3639, 289, 1044, 261, 23116, 425, 13, 288, 5411, 2018, 18, 4148, 2932, 21702, 2665, 1520, 3113, 425, 1769, 3639, 289, 3639, 1815, 8867, 2932, 3535, 1952, 1380, 3113, 576, 16, 1186, 92, 1371, 12467, 18, 588, 4568, 12, 4930, 16, 638, 2934, 588, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 13528, 1952, 1380, 1435, 1216, 1185, 288, 3639, 514, 1842, 461, 273, 315, 15724, 1952, 1380, 14432, 3639, 514, 2308, 273, 1842, 461, 31, 3639, 514, 880, 273, 7766, 2276, 18, 3510, 16155, 1371, 1489, 12, 4930, 16, 7734, 7766, 2918, 18, 44, 61, 3194, 1413, 2871, 67, 27720, 16, 7734, 7766, 2918, 18, 44, 61, 3194, 1413, 2871, 67, 16961, 67, 1785, 1769, 3639, 6183, 1123, 273, 394, 6183, 5621, 3639, 1123, 18, 542, 1396, 12, 16155, 1371, 2918, 18, 4714, 67, 9900, 16, 7766, 2918, 18, 44, 61, 3194, 1413, 2871, 67, 4714, 1769, 3639, 1123, 18, 542, 1396, 12, 16155, 1371, 2918, 18, 13784, 67, 9900, 16, 7766, 2918, 18, 44, 61, 2 ]
item = new JMenuItem("Restore", KeyEvent.VK_R);
item = new JMenuItem(Messages.getString("ClientFrame.64"), KeyEvent.VK_R);
private JMenuBar createMenuBar() { JMenuBar menubar = new JMenuBar(); JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic(KeyEvent.VK_F); menubar.add(fileMenu); JMenuItem item = new JMenuItem("Store files/directories", KeyEvent.VK_S); item.setAccelerator(KeyStroke.getKeyStroke("control S")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { uploadAction(e); } }); fileMenu.add(item); item = new JMenuItem("Create collection", KeyEvent.VK_N); item.setAccelerator(KeyStroke.getKeyStroke("control N")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { newCollectionAction(e); } }); fileMenu.add(item); item = new JMenuItem("Create blank document", KeyEvent.VK_B); item.setAccelerator(KeyStroke.getKeyStroke("control B")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { //FIXME: Prevent owerwrite. Security? Collection collection = client.current; XMLResource result = null; String nameres = JOptionPane.showInputDialog(null, "Name of the XML resource (extension incluse)"); if (nameres != null) { try { result = (XMLResource) collection.createResource( URIUtils.urlEncodeUtf8(nameres), XMLResource.RESOURCE_TYPE); result.setContent("<template></template>"); collection.storeResource(result); collection.close(); client.reloadCollection(); } catch (XMLDBException ev) { showErrorMessage(ev.getMessage(), ev); } } } }); fileMenu.add(item); fileMenu.addSeparator(); item = new JMenuItem("Remove"); item.setAccelerator(KeyStroke.getKeyStroke("control D")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { removeAction(e); } }); fileMenu.add(item); item = new JMenuItem("Copy", KeyEvent.VK_C); item.setAccelerator(KeyStroke.getKeyStroke("control C")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { copyAction(e); } }); fileMenu.add(item); item = new JMenuItem("Move", KeyEvent.VK_M); item.setAccelerator(KeyStroke.getKeyStroke("control M")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { moveAction(e); } }); fileMenu.add(item); item = new JMenuItem("Rename", KeyEvent.VK_R); item.setAccelerator(KeyStroke.getKeyStroke("control R")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { renameAction(e); } }); fileMenu.add(item); item = new JMenuItem("Export a resource to file ...", KeyEvent.VK_E); item.setAccelerator(KeyStroke.getKeyStroke("control E")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { exportAction(e); } }); fileMenu.add(item); fileMenu.addSeparator(); item = new JMenuItem("Reindex collection", KeyEvent.VK_I); item.setAccelerator(KeyStroke.getKeyStroke("control I")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { reindexAction(e); } }); fileMenu.add(item); item = new JMenuItem("Resource properties"); item.setAccelerator(KeyStroke.getKeyStroke("control P")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { setPermAction(e); } }); fileMenu.add(item); fileMenu.addSeparator(); item = new JMenuItem("Quit", KeyEvent.VK_Q); item.setAccelerator(KeyStroke.getKeyStroke("control Q")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { close(); } }); fileMenu.add(item); JMenu toolsMenu = new JMenu("Tools"); toolsMenu.setMnemonic(KeyEvent.VK_T); menubar.add(toolsMenu); item = new JMenuItem("Find", KeyEvent.VK_F); item.setAccelerator(KeyStroke.getKeyStroke("control F")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { findAction(e); } }); toolsMenu.add(item); toolsMenu.addSeparator(); item = new JMenuItem("Edit Users", KeyEvent.VK_U); item.setAccelerator(KeyStroke.getKeyStroke("control U")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { editUsersAction(e); } }); toolsMenu.add(item); item = new JMenuItem("Edit Indexes", KeyEvent.VK_U); item.setAccelerator(KeyStroke.getKeyStroke("control I")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { editIndexesAction(e); } }); toolsMenu.add(item); item = new JMenuItem("Edit Triggers", KeyEvent.VK_T); item.setAccelerator(KeyStroke.getKeyStroke("control T")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { editTriggersAction(e); } }); toolsMenu.add(item); item = new JMenuItem("Edit Policies", KeyEvent.VK_O); item.setAccelerator(KeyStroke.getKeyStroke("control O")); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { editPolicies(); } }); toolsMenu.add(item); toolsMenu.addSeparator(); item = new JMenuItem("Backup", KeyEvent.VK_B); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { backupAction(e); } }); toolsMenu.add(item); item = new JMenuItem("Restore", KeyEvent.VK_R); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { restoreAction(e); } }); toolsMenu.add(item); JMenu connectMenu = new JMenu("Connection"); connectMenu.setMnemonic(KeyEvent.VK_D); menubar.add(connectMenu); item = new JMenuItem("Shutdown", KeyEvent.VK_S); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { display("shutdown\n"); process.setAction("shutdown"); } }); connectMenu.add(item); // Show LoginPanel to Reconnect item = new JMenuItem("Connect", KeyEvent.VK_U); item.setToolTipText("Open login panel to connect to change server or identity."); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { // load properties modified by the login panel Properties loginData=getLoginData(properties); if (loginData == null) return; Properties oldProps=properties; properties.putAll(loginData); statusbar.setText("eXist Admin Client connected - " + properties.getProperty("user") + "@" + properties.getProperty("uri")); try { client.shutdown(false); client.connect(); client.reloadCollection(); } catch (Exception u) { showErrorMessage("Connection to " + properties.getProperty("uri") + " failed!", u); properties=oldProps; try { client.connect(); } catch (Exception uu) { showErrorMessage("Can't reconnect to " + properties.getProperty("uri") , u); } } } }); connectMenu.add(item); JMenu optionsMenu = new JMenu("Options"); optionsMenu.setMnemonic(KeyEvent.VK_O); menubar.add(optionsMenu); JCheckBoxMenuItem check = new JCheckBoxMenuItem("Indent", properties .getProperty(OutputKeys.INDENT).equals("yes")); check.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { properties.setProperty(OutputKeys.INDENT, ((JCheckBoxMenuItem) e.getSource()).isSelected() ? "yes" : "no"); try { client.getResources(); } catch (XMLDBException e1) { } } }); optionsMenu.add(check); check = new JCheckBoxMenuItem("Expand-XIncludes", properties .getProperty(EXistOutputKeys.EXPAND_XINCLUDES).equals("yes")); check.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { properties.setProperty(EXistOutputKeys.EXPAND_XINCLUDES, ((JCheckBoxMenuItem) e.getSource()).isSelected() ? "yes" : "no"); try { client.getResources(); } catch (XMLDBException e1) { } } }); optionsMenu.add(check); JMenu HelpMenu = new JMenu("Help"); HelpMenu.setMnemonic(KeyEvent.VK_H); menubar.add(HelpMenu); item = new JMenuItem("About", KeyEvent.VK_A); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { AboutAction(); } }); HelpMenu.add(item); return menubar; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/dede9cd407089be1164a825045731d2cc10fbe17/ClientFrame.java/clean/src/org/exist/client/ClientFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 804, 4599, 5190, 752, 4599, 5190, 1435, 288, 3639, 804, 4599, 5190, 21247, 373, 297, 273, 394, 804, 4599, 5190, 5621, 7734, 804, 4599, 585, 4599, 273, 394, 804, 4599, 2932, 812, 8863, 3639, 585, 4599, 18, 542, 29668, 20918, 12, 653, 1133, 18, 58, 47, 67, 42, 1769, 3639, 21247, 373, 297, 18, 1289, 12, 768, 4599, 1769, 7734, 804, 12958, 761, 273, 394, 804, 12958, 2932, 2257, 1390, 19, 15121, 3113, 23737, 18, 58, 47, 67, 55, 1769, 3639, 761, 18, 542, 28417, 12, 653, 14602, 18, 588, 653, 14602, 2932, 7098, 348, 7923, 1769, 3639, 761, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 3617, 1803, 12, 73, 1769, 5411, 289, 3639, 15549, 3639, 585, 4599, 18, 1289, 12, 1726, 1769, 7734, 761, 273, 394, 804, 12958, 2932, 1684, 1849, 3113, 23737, 18, 58, 47, 67, 50, 1769, 3639, 761, 18, 542, 28417, 12, 653, 14602, 18, 588, 653, 14602, 2932, 7098, 423, 7923, 1769, 3639, 761, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 7734, 394, 2532, 1803, 12, 73, 1769, 5411, 289, 3639, 15549, 3639, 585, 4599, 18, 1289, 12, 1726, 1769, 7734, 761, 273, 394, 804, 12958, 2932, 1684, 7052, 1668, 3113, 23737, 18, 58, 47, 67, 38, 1769, 3639, 761, 18, 542, 28417, 12, 653, 14602, 18, 588, 653, 14602, 2932, 7098, 605, 7923, 1769, 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, 804, 4599, 5190, 752, 4599, 5190, 1435, 288, 3639, 804, 4599, 5190, 21247, 373, 297, 273, 394, 804, 4599, 5190, 5621, 7734, 804, 4599, 585, 4599, 273, 394, 804, 4599, 2932, 812, 8863, 3639, 585, 4599, 18, 542, 29668, 20918, 12, 653, 1133, 18, 58, 47, 67, 42, 1769, 3639, 21247, 373, 297, 18, 1289, 12, 768, 4599, 1769, 7734, 804, 12958, 761, 273, 394, 804, 12958, 2932, 2257, 1390, 19, 15121, 3113, 23737, 18, 58, 47, 67, 55, 1769, 3639, 761, 18, 542, 28417, 12, 653, 14602, 18, 588, 653, 14602, 2932, 7098, 348, 7923, 1769, 3639, 761, 18, 1289, 1803, 2223, 12, 2704, 25962, 1435, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 2 ]
void load(Reader reader) { rules = new Vector(); rewrite = new Vector();
void load() { InputStream in = null;
void load(Reader reader) { rules = new Vector(); rewrite = new Vector(); try { BufferedReader in = new BufferedReader(reader); String s; Pattern blank = Factory.instance().getPattern("^[# \t\n]"); while ((s = in.readLine()) != null) { if (s.length() > 0 && blank.matches(s)) { StringTokenizer st = new StringTokenizer(s, " \t"); String re = st.nextToken(); String rew = st.nextToken(); if (re.length() > 0 && rew.length() > 0) { rules.addElement(Factory.instance().getPattern(re)); rewrite.addElement(rew); } else { report("invalid rule: " + s); } } } in.close(); } catch (Exception e) { e.printStackTrace(); } }
1353 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1353/7c85d80244be0e9a802f29826ae46056a18ed942/Rewrite.java/buggy/src/org/doit/muffin/filter/Rewrite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1262, 12, 2514, 2949, 13, 288, 202, 202, 7482, 273, 394, 5589, 5621, 202, 202, 21489, 273, 394, 5589, 5621, 202, 202, 698, 288, 1082, 202, 17947, 2514, 316, 273, 394, 10633, 12, 10530, 1769, 1082, 202, 780, 272, 31, 1082, 202, 3234, 7052, 273, 7822, 18, 1336, 7675, 588, 3234, 2932, 66, 63, 7, 521, 88, 64, 82, 4279, 1769, 1082, 202, 17523, 14015, 87, 273, 316, 18, 896, 1670, 10756, 480, 446, 13, 288, 9506, 202, 430, 261, 87, 18, 2469, 1435, 405, 374, 597, 7052, 18, 8436, 12, 87, 3719, 288, 6862, 202, 780, 10524, 384, 273, 394, 16370, 12, 87, 16, 315, 521, 88, 8863, 6862, 202, 780, 283, 273, 384, 18, 4285, 1345, 5621, 6862, 202, 780, 283, 91, 273, 384, 18, 4285, 1345, 5621, 6862, 202, 430, 261, 266, 18, 2469, 1435, 405, 374, 597, 283, 91, 18, 2469, 1435, 405, 374, 13, 288, 25083, 202, 7482, 18, 1289, 1046, 12, 1733, 18, 1336, 7675, 588, 3234, 12, 266, 10019, 25083, 202, 21489, 18, 1289, 1046, 12, 16052, 1769, 6862, 202, 97, 469, 288, 25083, 202, 6006, 2932, 5387, 1720, 30, 315, 397, 272, 1769, 6862, 202, 97, 9506, 202, 97, 1082, 202, 97, 1082, 202, 267, 18, 4412, 5621, 202, 202, 97, 1044, 261, 503, 425, 13, 288, 1082, 202, 73, 18, 1188, 6332, 5621, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 1262, 12, 2514, 2949, 13, 288, 202, 202, 7482, 273, 394, 5589, 5621, 202, 202, 21489, 273, 394, 5589, 5621, 202, 202, 698, 288, 1082, 202, 17947, 2514, 316, 273, 394, 10633, 12, 10530, 1769, 1082, 202, 780, 272, 31, 1082, 202, 3234, 7052, 273, 7822, 18, 1336, 7675, 588, 3234, 2932, 66, 63, 7, 521, 88, 64, 82, 4279, 1769, 1082, 202, 17523, 14015, 87, 273, 316, 18, 896, 1670, 10756, 480, 446, 13, 288, 9506, 202, 430, 261, 87, 18, 2469, 1435, 405, 374, 597, 7052, 18, 8436, 12, 87, 3719, 288, 6862, 202, 780, 10524, 384, 273, 394, 16370, 12, 87, 16, 315, 521, 88, 8863, 6862, 202, 780, 283, 273, 384, 18, 2 ]
private void shiftCells( List cellInfos, int sourceIndex, int destIndex ) throws SemanticException { int targetIndex = destIndex; // adds the copied cells to the destination. for ( int i = 0; i < cellInfos.size( ); i++ ) { CellContextInfo contextInfo = (CellContextInfo) cellInfos.get( i ); // groupId is equal to -1, means this is a top slot in the table RowHandle row = adapter.getRow( contextInfo.getSlotId( ), contextInfo.getGroupId( ), contextInfo.getRowIndex( ) ); assert row != null; CellHandle cell = contextInfo.getCell( ).handle( adapter.getModule( ) ); cell.setColumn( 0 ); int oldPosn = row.getCells( ).findPosn( cell ); // adjust the position since the rule is first drop then add. if ( oldPosn < destIndex ) targetIndex = destIndex - 1; row.getCells( ).shift( cell, targetIndex ); clearsCellColumnProperties( row, oldPosn, targetIndex ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d0b211d1c96899ceb2ce8bb7ecac8544be9e6caf/ColumnBandShiftAction.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ColumnBandShiftAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4654, 10505, 12, 987, 2484, 7655, 16, 509, 1084, 1016, 16, 509, 1570, 1016, 262, 1082, 202, 15069, 24747, 503, 202, 95, 202, 202, 474, 1018, 1016, 273, 1570, 1016, 31, 9506, 202, 759, 4831, 326, 9268, 5983, 358, 326, 2929, 18, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 2484, 7655, 18, 1467, 12, 11272, 277, 9904, 262, 202, 202, 95, 1082, 202, 4020, 1042, 966, 819, 966, 273, 261, 4020, 1042, 966, 13, 2484, 7655, 18, 588, 12, 277, 11272, 1082, 202, 759, 6612, 353, 3959, 358, 300, 21, 16, 4696, 333, 353, 279, 1760, 4694, 316, 326, 1014, 1082, 202, 1999, 3259, 1027, 273, 4516, 18, 588, 1999, 12, 819, 966, 18, 588, 8764, 548, 12, 262, 16, 6862, 202, 2472, 966, 18, 588, 8722, 12, 262, 16, 819, 966, 18, 588, 21769, 12, 262, 11272, 1082, 202, 11231, 1027, 480, 446, 31, 1082, 202, 4020, 3259, 2484, 273, 819, 966, 18, 588, 4020, 12, 262, 18, 4110, 12, 6862, 202, 10204, 18, 588, 3120, 12, 262, 11272, 1082, 202, 3855, 18, 542, 1494, 12, 374, 11272, 1082, 202, 474, 1592, 1616, 82, 273, 1027, 18, 588, 10505, 12, 262, 18, 4720, 1616, 82, 12, 2484, 11272, 1082, 202, 759, 5765, 326, 1754, 3241, 326, 1720, 353, 1122, 3640, 1508, 527, 18, 1082, 202, 430, 261, 1592, 1616, 82, 411, 1570, 1016, 262, 9506, 202, 3299, 1016, 273, 1570, 1016, 300, 404, 31, 6862, 1082, 202, 492, 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, 4654, 10505, 12, 987, 2484, 7655, 16, 509, 1084, 1016, 16, 509, 1570, 1016, 262, 1082, 202, 15069, 24747, 503, 202, 95, 202, 202, 474, 1018, 1016, 273, 1570, 1016, 31, 9506, 202, 759, 4831, 326, 9268, 5983, 358, 326, 2929, 18, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 2484, 7655, 18, 1467, 12, 11272, 277, 9904, 262, 202, 202, 95, 1082, 202, 4020, 1042, 966, 819, 966, 273, 261, 4020, 1042, 966, 13, 2484, 7655, 18, 588, 12, 277, 11272, 1082, 202, 759, 6612, 353, 3959, 358, 300, 21, 16, 4696, 333, 353, 279, 1760, 4694, 316, 326, 1014, 1082, 202, 1999, 3259, 1027, 273, 4516, 18, 588, 1999, 12, 2 ]
{
{
protected void createPath() { List<Path.Node> nodes=new LinkedList<Path.Node>(); nodes.add(new Path.Node(5,45)); nodes.add(new Path.Node(18,45)); setPath(nodes,true); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/d512245d8e26069d9f1c5a15fba078b322c3b0ac/Semos.java/buggy/src/games/stendhal/server/maps/Semos.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 4750, 918, 752, 743, 1435, 3639, 288, 3639, 987, 32, 743, 18, 907, 34, 2199, 33, 2704, 10688, 32, 743, 18, 907, 34, 5621, 3639, 2199, 18, 1289, 12, 2704, 2666, 18, 907, 12, 25, 16, 7950, 10019, 3639, 2199, 18, 1289, 12, 2704, 2666, 18, 907, 12, 2643, 16, 7950, 10019, 3639, 16475, 12, 4690, 16, 3767, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4202, 4750, 918, 752, 743, 1435, 3639, 288, 3639, 987, 32, 743, 18, 907, 34, 2199, 33, 2704, 10688, 32, 743, 18, 907, 34, 5621, 3639, 2199, 18, 1289, 12, 2704, 2666, 18, 907, 12, 25, 16, 7950, 10019, 3639, 2199, 18, 1289, 12, 2704, 2666, 18, 907, 12, 2643, 16, 7950, 10019, 3639, 16475, 12, 4690, 16, 3767, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]