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
StringBuffer excludesStr = new StringBuffer(); if ( StringUtils.isNotEmpty( excludes ) ) { excludesStr.append( excludes ); } String[] defaultExcludes = FileUtils.getDefaultExcludes(); for ( int i = 0; i < defaultExcludes.length; i++ ) { if ( excludesStr.length() > 0 ) { excludesStr.append( "," ); } excludesStr.append( defaultExcludes[i] ); } getLog().debug( "Excluded files: '" + excludesStr + "'" ); return FileUtils.getFiles( dir, includes, excludesStr.toString() );
return files;
private List getFilesToProcess( String includes, String excludes ) throws IOException { File dir = new File( getProject().getBuild().getSourceDirectory() ); if ( !dir.exists() ) { return Collections.EMPTY_LIST; } StringBuffer excludesStr = new StringBuffer(); if ( StringUtils.isNotEmpty( excludes ) ) { excludesStr.append( excludes ); } String[] defaultExcludes = FileUtils.getDefaultExcludes(); for ( int i = 0; i < defaultExcludes.length; i++ ) { if ( excludesStr.length() > 0 ) { excludesStr.append( "," ); } excludesStr.append( defaultExcludes[i] ); } getLog().debug( "Excluded files: '" + excludesStr + "'" ); return FileUtils.getFiles( dir, includes, excludesStr.toString() ); }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/2346ac034fd6f2e14ae929780c728f7cca494e99/PmdReport.java/clean/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/PmdReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 987, 18262, 30004, 12, 514, 6104, 16, 514, 13644, 262, 3639, 1216, 1860, 565, 288, 3639, 1387, 1577, 273, 394, 1387, 12, 11080, 7675, 588, 3116, 7675, 588, 1830, 2853, 1435, 11272, 3639, 309, 261, 401, 1214, 18, 1808, 1435, 262, 3639, 288, 5411, 327, 5737, 18, 13625, 67, 7085, 31, 3639, 289, 3639, 6674, 13644, 1585, 273, 394, 6674, 5621, 3639, 309, 261, 5778, 18, 291, 18431, 12, 13644, 262, 262, 3639, 288, 5411, 13644, 1585, 18, 6923, 12, 13644, 11272, 3639, 289, 3639, 514, 8526, 805, 30866, 273, 13779, 18, 588, 1868, 30866, 5621, 3639, 364, 261, 509, 277, 273, 374, 31, 277, 411, 805, 30866, 18, 2469, 31, 277, 9904, 262, 3639, 288, 5411, 309, 261, 13644, 1585, 18, 2469, 1435, 405, 374, 262, 5411, 288, 7734, 13644, 1585, 18, 6923, 12, 5753, 11272, 5411, 289, 5411, 13644, 1585, 18, 6923, 12, 805, 30866, 63, 77, 65, 11272, 3639, 289, 3639, 9189, 7675, 4148, 12, 315, 16461, 1390, 30, 2119, 397, 13644, 1585, 397, 5862, 11272, 3639, 327, 13779, 18, 588, 2697, 12, 1577, 16, 6104, 16, 13644, 1585, 18, 10492, 1435, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 987, 18262, 30004, 12, 514, 6104, 16, 514, 13644, 262, 3639, 1216, 1860, 565, 288, 3639, 1387, 1577, 273, 394, 1387, 12, 11080, 7675, 588, 3116, 7675, 588, 1830, 2853, 1435, 11272, 3639, 309, 261, 401, 1214, 18, 1808, 1435, 262, 3639, 288, 5411, 327, 5737, 18, 13625, 67, 7085, 31, 3639, 289, 3639, 6674, 13644, 1585, 273, 394, 6674, 5621, 3639, 309, 261, 5778, 18, 291, 18431, 12, 13644, 262, 262, 3639, 288, 5411, 13644, 1585, 18, 6923, 12, 13644, 11272, 3639, 289, 3639, 514, 8526, 805, 30866, 273, 13779, 18, 588, 1868, 30866, 5621, 3639, 364, 261, 509, 277, 273, 374, 31, 277, 411, 805, 30866, 18, 2469, 31, 277, 9904, 262, 3639, 288, 5411, 2 ]
public void visitLDIV(LDIV obj) { consumeStack(obj); pushValue(typeRepository.getLongType()); }
public void visitLDIV(LDIV obj) { consumeStack(obj); pushValue(typeRepository.getLongType()); }
public void visitLDIV(LDIV obj) { consumeStack(obj); pushValue(typeRepository.getLongType()); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/BetterTypeFrameModelingVisitor.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/BetterTypeFrameModelingVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 48, 31901, 12, 48, 31901, 1081, 13, 6862, 202, 95, 7865, 2624, 12, 2603, 1769, 1817, 620, 12, 723, 3305, 18, 588, 3708, 559, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 48, 31901, 12, 48, 31901, 1081, 13, 6862, 202, 95, 7865, 2624, 12, 2603, 1769, 1817, 620, 12, 723, 3305, 18, 588, 3708, 559, 10663, 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 ]
long elevenHours = 11 * 60 * ONE_MINUTE; long oneHourFiftyNineMinutes = (60+59) * ONE_MINUTE; long twelveHours = 12 * 60 * ONE_MINUTE;
long oneHour = 60 * ONE_MINUTE; long elevenHours = 11 * oneHour; long oneHourFiftyNineMinutes = 2 * oneHour - ONE_MINUTE; long twelveHours = 12 * oneHour;
public void testGetTimeToNextBuild() { long fiveSeconds = 5 * 1000; long elevenHours = 11 * 60 * ONE_MINUTE; long oneHourFiftyNineMinutes = (60+59) * ONE_MINUTE; long twelveHours = 12 * 60 * ONE_MINUTE; long twentyFourHours = 2 * twelveHours; // time till next time build > build interval assertEquals(fiveSeconds, _schedule.getTimeToNextBuild(_cal.getTime(),fiveSeconds)); // time till next time build < build interval assertEquals(oneHourFiftyNineMinutes, _schedule.getTimeToNextBuild(_cal.getTime(),elevenHours)); // next build would be in pause interval assertEquals(twelveHours-ONE_MINUTE, _schedule.getTimeToNextBuild(_cal3.getTime(),elevenHours)); // time till next time build is tomorrow assertEquals(twentyFourHours-ONE_MINUTE, _schedule.getTimeToNextBuild(_cal3.getTime(),twentyFourHours*2)); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/9f08d83bbae3b97d9a03d0db93a1f6330d743248/ScheduleTest.java/clean/main/test/net/sourceforge/cruisecontrol/ScheduleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 950, 774, 2134, 3116, 1435, 288, 377, 202, 5748, 23714, 6762, 273, 1381, 380, 4336, 31, 377, 202, 5748, 5043, 3995, 14910, 273, 4648, 380, 4752, 380, 15623, 67, 30090, 31, 377, 202, 5748, 1245, 13433, 42, 2136, 93, 50, 558, 13050, 273, 261, 4848, 15, 6162, 13, 380, 15623, 67, 30090, 31, 202, 202, 5748, 2339, 292, 537, 14910, 273, 2593, 380, 4752, 380, 15623, 67, 30090, 31, 202, 202, 5748, 2339, 319, 93, 42, 477, 14910, 273, 576, 380, 2339, 292, 537, 14910, 31, 377, 202, 377, 202, 759, 813, 21364, 1024, 813, 1361, 405, 1361, 3673, 377, 202, 11231, 8867, 12, 74, 688, 6762, 16, 389, 10676, 18, 588, 950, 774, 2134, 3116, 24899, 771, 18, 588, 950, 9334, 74, 688, 6762, 10019, 202, 202, 759, 813, 21364, 1024, 813, 1361, 411, 1361, 3673, 377, 202, 11231, 8867, 12, 476, 13433, 42, 2136, 93, 50, 558, 13050, 16, 389, 10676, 18, 588, 950, 774, 2134, 3116, 24899, 771, 18, 588, 950, 9334, 6516, 3995, 14910, 10019, 202, 202, 759, 1024, 1361, 4102, 506, 316, 11722, 3673, 202, 202, 11231, 8867, 12, 11246, 292, 537, 14910, 17, 5998, 67, 30090, 16, 389, 10676, 18, 588, 950, 774, 2134, 3116, 24899, 771, 23, 18, 588, 950, 9334, 6516, 3995, 14910, 10019, 202, 202, 759, 813, 21364, 1024, 813, 1361, 353, 29998, 15318, 202, 202, 11231, 8867, 12, 11246, 319, 93, 42, 477, 14910, 17, 5998, 67, 30090, 16, 389, 10676, 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, 1842, 967, 950, 774, 2134, 3116, 1435, 288, 377, 202, 5748, 23714, 6762, 273, 1381, 380, 4336, 31, 377, 202, 5748, 5043, 3995, 14910, 273, 4648, 380, 4752, 380, 15623, 67, 30090, 31, 377, 202, 5748, 1245, 13433, 42, 2136, 93, 50, 558, 13050, 273, 261, 4848, 15, 6162, 13, 380, 15623, 67, 30090, 31, 202, 202, 5748, 2339, 292, 537, 14910, 273, 2593, 380, 4752, 380, 15623, 67, 30090, 31, 202, 202, 5748, 2339, 319, 93, 42, 477, 14910, 273, 576, 380, 2339, 292, 537, 14910, 31, 377, 202, 377, 202, 759, 813, 21364, 1024, 813, 1361, 405, 1361, 3673, 377, 202, 11231, 8867, 12, 74, 688, 6762, 16, 389, 10676, 18, 588, 950, 774, 2 ]
return new InsertBelowGroupAction( selection, Messages.getString( "InsertGroupActionFactory.label.insertGroup" ) );
return new InsertBelowGroupAction( selection, Messages .getString( "InsertGroupActionFactory.label.insertGroup" ) );
public static Action createInsertGroupAction( int slotID, List selection ) { if ( slotID == TableHandle.HEADER_SLOT || slotID == ListHandle.HEADER_SLOT ) { return new InsertAboveGroupAction( selection, Messages.getString( "InsertGroupActionFactory.label.insertGroup" ) ); //$NON-NLS-1$ } else if ( slotID == TableHandle.DETAIL_SLOT || slotID == ListHandle.DETAIL_SLOT ) { return new InsertBelowGroupAction( selection, Messages.getString( "InsertGroupActionFactory.label.insertGroup" ) ); //$NON-NLS-1$ } else { return new InsertBelowGroupAction( selection, Messages.getString( "InsertGroupActionFactory.label.insertGroup" ) ); //$NON-NLS-1$ } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/f20dffa9abb940a955b0a18cf6914d4f48216b6c/InsertGroupActionFactory.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/actions/InsertGroupActionFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 4382, 752, 4600, 1114, 1803, 12, 509, 4694, 734, 16, 987, 4421, 262, 202, 95, 202, 202, 430, 261, 4694, 734, 422, 3555, 3259, 18, 7557, 67, 55, 1502, 56, 9506, 202, 20081, 4694, 734, 422, 987, 3259, 18, 7557, 67, 55, 1502, 56, 262, 202, 202, 95, 1082, 202, 2463, 394, 8040, 25477, 1114, 1803, 12, 4421, 16, 6862, 202, 5058, 18, 588, 780, 12, 315, 4600, 1114, 1803, 1733, 18, 1925, 18, 6387, 1114, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 12107, 309, 261, 4694, 734, 422, 3555, 3259, 18, 40, 19810, 67, 55, 1502, 56, 9506, 202, 20081, 4694, 734, 422, 987, 3259, 18, 40, 19810, 67, 55, 1502, 56, 262, 202, 202, 95, 1082, 202, 2463, 394, 8040, 28730, 1114, 1803, 12, 4421, 16, 6862, 202, 5058, 18, 588, 780, 12, 315, 4600, 1114, 1803, 1733, 18, 1925, 18, 6387, 1114, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 2463, 394, 8040, 28730, 1114, 1803, 12, 4421, 16, 6862, 202, 5058, 18, 588, 780, 12, 315, 4600, 1114, 1803, 1733, 18, 1925, 18, 6387, 1114, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 4382, 752, 4600, 1114, 1803, 12, 509, 4694, 734, 16, 987, 4421, 262, 202, 95, 202, 202, 430, 261, 4694, 734, 422, 3555, 3259, 18, 7557, 67, 55, 1502, 56, 9506, 202, 20081, 4694, 734, 422, 987, 3259, 18, 7557, 67, 55, 1502, 56, 262, 202, 202, 95, 1082, 202, 2463, 394, 8040, 25477, 1114, 1803, 12, 4421, 16, 6862, 202, 5058, 18, 588, 780, 12, 315, 4600, 1114, 1803, 1733, 18, 1925, 18, 6387, 1114, 6, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 97, 202, 202, 12107, 309, 261, 4694, 734, 422, 3555, 3259, 18, 40, 19810, 67, 55, 1502, 56, 9506, 202, 20081, 4694, 734, 422, 987, 3259, 18, 2 ]
doc1.getDocument(); doc2.getDocument(); doc3.getDocument(); doc4.getDocument();
doc1.getLength(); doc2.getLength(); doc3.getLength(); doc4.getLength();
public void testNumListeners(){ OpenDefinitionsDocument doc1 = _model.newFile(); OpenDefinitionsDocument doc2 = _model.newFile(); OpenDefinitionsDocument doc3 = _model.newFile(); OpenDefinitionsDocument doc4 = _model.newFile(); OpenDefinitionsDocument doc5 = _model.newFile(); int numDocListeners = doc1.getDocument().getDocumentListeners().length; int numUndoListeners = doc1.getDocument().getUndoableEditListeners().length; doc1.getDocument(); doc2.getDocument(); doc3.getDocument(); doc4.getDocument(); // this will kick document one out of the cache doc5.getDocument(); // this will reconstruct document 1 doc1.getDocument(); assertEquals("the number of document listeners is the same after reconstruction", numDocListeners, doc1.getDocument().getDocumentListeners().length); assertEquals("the number of undoableEditListeners is the same after reconstruction", numUndoListeners, doc1.getDocument().getUndoableEditListeners().length); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/0ad47f4e9ecbbfc43121de14376bb3d222538453/DocumentCacheTest.java/clean/drjava/src/edu/rice/cs/drjava/model/cache/DocumentCacheTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 2578, 5583, 1435, 95, 282, 3502, 7130, 2519, 997, 21, 273, 389, 2284, 18, 2704, 812, 5621, 282, 3502, 7130, 2519, 997, 22, 273, 389, 2284, 18, 2704, 812, 5621, 282, 3502, 7130, 2519, 997, 23, 273, 389, 2284, 18, 2704, 812, 5621, 282, 3502, 7130, 2519, 997, 24, 273, 389, 2284, 18, 2704, 812, 5621, 282, 3502, 7130, 2519, 997, 25, 273, 389, 2284, 18, 2704, 812, 5621, 282, 509, 818, 1759, 5583, 273, 997, 21, 18, 588, 2519, 7675, 588, 2519, 5583, 7675, 2469, 31, 282, 509, 818, 31224, 5583, 273, 997, 21, 18, 588, 2519, 7675, 588, 31224, 429, 4666, 5583, 7675, 2469, 31, 1377, 997, 21, 18, 588, 2519, 5621, 282, 997, 22, 18, 588, 2519, 5621, 282, 997, 23, 18, 588, 2519, 5621, 282, 997, 24, 18, 588, 2519, 5621, 282, 368, 333, 903, 23228, 1668, 1245, 596, 434, 326, 1247, 282, 997, 25, 18, 588, 2519, 5621, 565, 368, 333, 903, 23243, 1668, 404, 282, 997, 21, 18, 588, 2519, 5621, 1377, 1815, 8867, 2932, 5787, 1300, 434, 1668, 4679, 353, 326, 1967, 1839, 25792, 4549, 3113, 818, 1759, 5583, 16, 997, 21, 18, 588, 2519, 7675, 588, 2519, 5583, 7675, 2469, 1769, 282, 1815, 8867, 2932, 5787, 1300, 434, 15436, 429, 4666, 5583, 353, 326, 1967, 1839, 25792, 4549, 3113, 818, 31224, 5583, 16, 997, 21, 18, 588, 2519, 7675, 588, 31224, 429, 4666, 5583, 7675, 2469, 1769, 377, 289, 2, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 2578, 5583, 1435, 95, 282, 3502, 7130, 2519, 997, 21, 273, 389, 2284, 18, 2704, 812, 5621, 282, 3502, 7130, 2519, 997, 22, 273, 389, 2284, 18, 2704, 812, 5621, 282, 3502, 7130, 2519, 997, 23, 273, 389, 2284, 18, 2704, 812, 5621, 282, 3502, 7130, 2519, 997, 24, 273, 389, 2284, 18, 2704, 812, 5621, 282, 3502, 7130, 2519, 997, 25, 273, 389, 2284, 18, 2704, 812, 5621, 282, 509, 818, 1759, 5583, 273, 997, 21, 18, 588, 2519, 7675, 588, 2519, 5583, 7675, 2469, 31, 282, 509, 818, 31224, 5583, 273, 997, 21, 18, 588, 2519, 7675, 588, 31224, 429, 4666, 5583, 7675, 2469, 31, 1377, 997, 21, 18, 588, 2519, 5621, 282, 2 ]
LoggingSystem.getLogger(ReaderOOGL.class).log(Level.FINER,"Read "+numV+" vertices and "+numF+" faces");
LoggingSystem.getLogger(ReaderOOGL.class).log(Level.INFO,"Read "+numV+" vertices and "+numF+" faces");
private SceneGraphComponent loadOneLevel(StreamTokenizer st, int bracketDepth) { SceneGraphComponent current= null; //int bc = 0; //int oc =0; //int mode = 0; String name = "noName"; LoggingSystem.getLogger(ReaderOOGL.class).log(Level.FINER,"start."); try { st.nextToken(); if (st.ttype =='}') { return null; } if (st.ttype =='{') { SceneGraphComponent contents = loadOneLevel(st, bracketDepth+1); st.nextToken(); if (st.ttype != '}') { LoggingSystem.getLogger(ReaderOOGL.class).log(Level.FINER,"Unmatched left bracket at "+st.lineno()); return contents; } //else st.nextToken(); return contents; } if (bracketDepth > 0) { if (st.ttype == StreamTokenizer.TT_WORD && !isOOGLKeyword(st.sval)) { name = st.sval; st.nextToken(); } if (st.ttype == '=') { st.nextToken(); } else if (st.ttype == '<') { // read from file ReaderOOGL or = new ReaderOOGL(); st.nextToken(); Input in = input.getRelativeInput(st.sval); return or.read(in); } } //LoggingSystem.getLogger().log(Level.FINER,"next"); if (st.ttype ==StreamTokenizer.TT_WORD) { double[][] verts = null, vc = null, fc = null, vn = null, tc = null; if ( st.sval.indexOf("OFF") != -1) { boolean hasTC = st.sval.indexOf("ST") >= 0; boolean hasVC = st.sval.indexOf("C") >= 0; boolean hasVN = st.sval.indexOf("N") >= 0; int[][] indices = null; current =SceneGraphUtility.createFullSceneGraphComponent("OFF-node"); //LoggingSystem.getLogger().log(Level.FINER,"found object!"); int numV, numE, numF; int vLength = (st.sval.indexOf("4") != -1) ? 4 : 3; st.nextToken(); numV = Integer.parseInt(st.sval); st.nextToken(); numF = Integer.parseInt(st.sval); st.nextToken(); numE = Integer.parseInt(st.sval); verts = new double[numV][vLength]; indices = new int[numF][]; if (hasTC) tc = new double[numV][2]; if (hasVC) vc = new double[numV][4]; if (hasVN) vn = new double[numV][3]; for (int i=0; i<numV; ++i) { for (int j = 0; j<vLength; ++j) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); verts[i][j] = Double.parseDouble(st.sval); } if (hasVN) for (int j = 0; j<3; ++j) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); vn[i][j] = Double.parseDouble(st.sval); } if (hasVC) for (int j = 0; j<4; ++j) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); vc[i][j] = Double.parseDouble(st.sval); } if (hasTC) for (int j = 0; j<2; ++j) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); tc[i][j] = Double.parseDouble(st.sval); } } for (int i =0; i< numF; ++i) { st.nextToken(); int size = Integer.parseInt(st.sval); indices[i] = new int[size]; for (int j = 0; j<size; ++j) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); indices[i][j] = Integer.parseInt(st.sval); } st.eolIsSignificant(true); st.nextToken(); if (st.ttype != StreamTokenizer.TT_EOL && st.ttype != StreamTokenizer.TT_EOF) { //has a color if (fc == null) fc = new double[numF][4]; //int colComps = Integer.parseInt(st.sval); for (int j = 0; j<4; ++j) { if (st.ttype == StreamTokenizer.TT_EOL || st.ttype == StreamTokenizer.TT_EOF) break; fc[i][j] = Double.parseDouble(st.sval); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); st.nextToken(); } // read the rest of the line if it hasnt' been read while (st.ttype != StreamTokenizer.TT_EOL && st.ttype != StreamTokenizer.TT_EOF) st.nextToken(); } st.eolIsSignificant(false); } LoggingSystem.getLogger(ReaderOOGL.class).log(Level.FINER,"Read "+numV+" vertices and "+numF+" faces"); IndexedFaceSetFactory ifsf = new IndexedFaceSetFactory(); ifsf.setVertexCount(verts.length); ifsf.setFaceCount(indices.length); ifsf.setVertexCoordinates(verts); ifsf.setFaceIndices(indices); if (vn != null) ifsf.setVertexNormals(vn); else ifsf.setGenerateVertexNormals(true); if (vc != null)ifsf.setVertexColors(vc); if (tc != null)ifsf.setVertexTextureCoordinates(tc); if (fc != null)ifsf.setFaceColors(fc); ifsf.setGenerateEdgesFromFaces(true); ifsf.setGenerateFaceNormals(true); ifsf.update(); IndexedFaceSet ifs = ifsf.getIndexedFaceSet();// IndexedFaceSetUtility.createIndexedFaceSetFrom(indices, verts, vn, vc, tc, null, fc); ifs.setName("OFF Geometry");// //GeometryUtility.calculateAndSetFaceNormals(ifs);// ifs.buildEdgesFromFaces(); current.setGeometry(ifs); } else if ( st.sval.indexOf("MESH") != -1) { current =SceneGraphUtility.createFullSceneGraphComponent("MESH-node"); boolean closedU = st.sval.indexOf("u") >= 0; boolean closedV = st.sval.indexOf("v") >= 0; boolean hasTC = st.sval.indexOf("ST") >= 0; boolean hasVC = st.sval.indexOf("C") >= 0; boolean hasVN = st.sval.indexOf("N") >= 0; int vLength = (st.sval.indexOf("4") != -1) ? 4 : 3; //LoggingSystem.getLogger().log(Level.FINER,"found object!"); st.nextToken(); int u = Integer.parseInt(st.sval); st.nextToken(); int v = Integer.parseInt(st.sval); int n = u*v; verts = new double[n][vLength]; if (hasTC) tc = new double[n][2]; if (hasVC) vc = new double[n][4]; if (hasVN) vn = new double[n][3]; for (int i = 0; i<n; ++i) { for (int j = 0; j<vLength; ++j) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); verts[i][j] = Double.parseDouble(st.sval); } if (hasVN) for (int j = 0; j<3; ++j) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); vn[i][j] = Double.parseDouble(st.sval); } if (hasVC) for (int j = 0; j<4; ++j) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); vc[i][j] = Double.parseDouble(st.sval); } if (hasTC) for (int j = 0; j<2; ++j) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); tc[i][j] = Double.parseDouble(st.sval); } } LoggingSystem.getLogger(ReaderOOGL.class).log(Level.FINER,"Read "+n+" vertices"); QuadMeshFactory qmf = new QuadMeshFactory();//u,v, closedU, closedV); qmf.setULineCount(u); qmf.setVLineCount(v); qmf.setClosedInUDirection(closedU); qmf.setClosedInVDirection(closedV); qmf.setVertexCoordinates(verts); if (hasVN) qmf.setVertexNormals(vn); else qmf.setGenerateVertexNormals(true); if (hasVC) qmf.setVertexColors(vc); if (hasTC) qmf.setVertexTextureCoordinates(tc); qmf.setGenerateEdgesFromFaces(true); qmf.setGenerateFaceNormals(true);// qms.setName("MESH Geometry");// IndexedFaceSetUtility.setIndexedFaceSetFrom(qms, null, verts, vn, vc, tc, null, fc);// //qms.setVertexAttributes(Attribute.COORDINATES, StorageModel.DOUBLE_ARRAY.array(vLength).createReadOnly(verts));// qms.buildEdgesFromFaces(); //GeometryUtility.calculateAndSetNormals(qms); qmf.update(); IndexedFaceSet mesh = qmf.getIndexedFaceSet(); mesh.setName("OOGL MESH"); current.setGeometry(mesh); } else if ( st.sval.indexOf("VECT") != -1) { current =SceneGraphUtility.createFullSceneGraphComponent("VECT-node"); //LoggingSystem.getLogger().log(Level.FINER,"found object!"); st.nextToken(); int numCurves = Integer.parseInt(st.sval); st.nextToken(); int totalVerts = Integer.parseInt(st.sval); int[] sizes = new int[numCurves]; int[] colors = new int[numCurves]; boolean[] closed = new boolean[numCurves]; int vLength = 3; int[][] indices = new int[numCurves][]; int vertCount = 0; for (int i = 0; i<numCurves; ++i) { st.nextToken(); int realCount = 0; //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); int val = Integer.parseInt(st.sval); if (val < 0) { val = sizes[i] = -val; realCount = sizes[i] + 1; closed[i] = true; } else { sizes[i] = val; closed[i] = false; realCount = sizes[i]; } indices[i] = new int[realCount]; for (int j =0; j< val; ++j) { indices[i][j] = vertCount+j; } if (closed[i]) indices[i][val] = vertCount; vertCount += val; } int totalColors = 0; for (int i = 0; i<numCurves; ++i) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); colors[i] = Integer.parseInt(st.sval); totalColors += colors[i]; } verts = new double[totalVerts][vLength]; vc = new double[totalVerts][4]; for (int i = 0; i<totalVerts; ++i) { for (int j = 0; j<vLength; ++j) { st.nextToken(); //LoggingSystem.getLogger().log(Level.FINER,"Token is "+st.sval); verts[i][j] = Double.parseDouble(st.sval); } } // parse the colors now int vertC = 0; for (int i = 0; i<numCurves; ++i) { int j; for (j = 0; j<colors[i]; ++j) { for (int k = 0; k<4; ++k) { st.nextToken(); vc[vertC][k] = Double.parseDouble(st.sval); } vertC++; } for ( ; j< sizes[i]; ++j) { for (int k = 0; k<4; ++k) { vc[vertC][k] = vc[vertC-1][k]; } vertC++; } } LoggingSystem.getLogger(ReaderOOGL.class).log(Level.FINER,"Read "+numCurves+" curves and "+totalVerts+ " vertices"); IndexedLineSet ils = new IndexedLineSet(totalVerts); ils.setName("VECT Geometry"); ils.setVertexAttributes(Attribute.COORDINATES, StorageModel.DOUBLE_ARRAY.array(vLength).createReadOnly(verts)); ils.setVertexAttributes(Attribute.COLORS, StorageModel.DOUBLE_ARRAY.array(4).createReadOnly(vc)); ils.setEdgeCountAndAttributes(Attribute.INDICES, StorageModel.INT_ARRAY.array().createReadOnly(indices)); current.setGeometry(ils); } else if ( st.sval.indexOf("SPHERE") != -1) { double[] x = new double[4]; for (int i = 0; i<4; ++i) { st.nextToken(); x[i] = Double.parseDouble(st.sval); } current = Primitives.sphere(x[0], x[1], x[2], x[3]); current.setName("SPHERE-node"); } else if ( st.sval.indexOf("TLIST") != -1) { current =SceneGraphUtility.createFullSceneGraphComponent("TLIST-node"); boolean transposed = (st.sval.indexOf("FLIP") != -1); if (transposed) LoggingSystem.getLogger(ReaderOOGL.class).log(Level.FINER,"Matrices are trasnposed"); double[] mat = new double[16]; boolean reading = true; int count = 0; while ( reading ) { for (int j = 0; j<16; ++j) { st.nextToken(); if (st.ttype != StreamTokenizer.TT_WORD) {reading = false; break;} mat[j] = Double.parseDouble(st.sval); } if (transposed) Rn.transpose(mat,mat); if (reading == false) break; SceneGraphComponent sgc = new SceneGraphComponent(); sgc.setName("tlist child"+count++); sgc.setTransformation(new Transformation(mat)); //LoggingSystem.getLogger().log(Level.FINER,"Matrix read: "+Rn.matrixToString(mat)); current.addChild(sgc); } } else if ( st.sval.indexOf("LIST") != -1) { current =SceneGraphUtility.createFullSceneGraphComponent("LIST-node"); SceneGraphComponent child; while ( (child = loadOneLevel(st, bracketDepth)) != null) { current.addChild( child); } } else if ( st.sval.indexOf("INST") != -1) { current =SceneGraphUtility.createFullSceneGraphComponent("INST-node"); SceneGraphComponent geom =SceneGraphUtility.createFullSceneGraphComponent("INST-unit"); st.nextToken(); if (st.ttype != StreamTokenizer.TT_WORD) { LoggingSystem.getLogger(ReaderOOGL.class).log(Level.FINER,"Invalid type in INST: "+st.ttype); return null; } // we require that the geometry comes first if (st.sval.indexOf("unit") != -1 || st.sval.indexOf("geom") != -1) { geom = loadOneLevel(st, bracketDepth); } st.nextToken(); //while (st.ttype == '}') st.nextToken(); // followed by the matrices if (st.sval.indexOf("tlist") != -1 || st.sval.indexOf("transform") != -1) { current = loadOneLevel(st, bracketDepth); } for (int i = 0; i<current.getChildComponentCount(); ++i) { SceneGraphComponent cc = current.getChildComponent(i); cc.addChild(geom); } } //current.setName(name); } } catch (IOException e) { e.printStackTrace(); } if (current!= null) { LoggingSystem.getLogger(ReaderOOGL.class).log(Level.FINER,"made "+current.getChildComponentCount()+" components"); LoggingSystem.getLogger(ReaderOOGL.class).log(Level.FINER,"done."); } return current; }
25560 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25560/c01f05493a57d3e204a3847b8bf0066d745c8b47/ReaderOOGL.java/clean/src-io/de/jreality/reader/ReaderOOGL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 29347, 4137, 1841, 1262, 3335, 2355, 12, 1228, 10524, 384, 16, 509, 9843, 6148, 13, 225, 288, 4202, 29347, 4137, 1841, 783, 33, 446, 31, 1377, 368, 474, 6533, 273, 374, 31, 1377, 368, 474, 13345, 273, 20, 31, 1377, 368, 474, 1965, 273, 374, 31, 1377, 514, 508, 273, 315, 2135, 461, 14432, 1377, 10253, 3163, 18, 588, 3328, 12, 2514, 25148, 11261, 18, 1106, 2934, 1330, 12, 2355, 18, 7263, 654, 10837, 1937, 1199, 1769, 1377, 775, 288, 2868, 384, 18, 4285, 1345, 5621, 2868, 309, 261, 334, 18, 88, 723, 422, 11, 1713, 13, 288, 5375, 327, 446, 31, 2868, 289, 1171, 309, 261, 334, 18, 88, 723, 422, 19163, 6134, 225, 288, 10402, 29347, 4137, 1841, 2939, 273, 1262, 3335, 2355, 12, 334, 16, 9843, 6148, 15, 21, 1769, 7734, 384, 18, 4285, 1345, 5621, 7734, 309, 261, 334, 18, 88, 723, 480, 9571, 13, 225, 288, 5375, 10253, 3163, 18, 588, 3328, 12, 2514, 25148, 11261, 18, 1106, 2934, 1330, 12, 2355, 18, 7263, 654, 10837, 984, 11073, 2002, 9843, 622, 225, 13773, 334, 18, 17782, 10663, 5375, 327, 2939, 31, 7734, 289, 368, 12107, 225, 384, 18, 4285, 1345, 5621, 7734, 327, 2939, 31, 9079, 289, 9079, 309, 261, 21025, 6148, 405, 374, 13, 225, 288, 7734, 309, 261, 334, 18, 88, 723, 422, 3961, 10524, 18, 1470, 67, 7952, 597, 401, 291, 25148, 11261, 8736, 12, 334, 18, 87, 1125, 3719, 288, 5375, 508, 273, 384, 18, 87, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29347, 4137, 1841, 1262, 3335, 2355, 12, 1228, 10524, 384, 16, 509, 9843, 6148, 13, 225, 288, 4202, 29347, 4137, 1841, 783, 33, 446, 31, 1377, 368, 474, 6533, 273, 374, 31, 1377, 368, 474, 13345, 273, 20, 31, 1377, 368, 474, 1965, 273, 374, 31, 1377, 514, 508, 273, 315, 2135, 461, 14432, 1377, 10253, 3163, 18, 588, 3328, 12, 2514, 25148, 11261, 18, 1106, 2934, 1330, 12, 2355, 18, 7263, 654, 10837, 1937, 1199, 1769, 1377, 775, 288, 2868, 384, 18, 4285, 1345, 5621, 2868, 309, 261, 334, 18, 88, 723, 422, 11, 1713, 13, 288, 5375, 327, 446, 31, 2868, 289, 1171, 309, 261, 334, 18, 88, 723, 422, 19163, 6134, 225, 288, 10402, 2 ]
private Intersection[] lineQuadIntersect(LineSegment l, QuadSegment c)
Intersection[] lineQuadIntersect(LineSegment l, QuadSegment c)
private Intersection[] lineQuadIntersect(LineSegment l, QuadSegment c) { double[] y = new double[3]; double[] x = new double[3]; double[] r = new double[3]; int nRoots; double x0 = c.P1.getX(); double y0 = c.P1.getY(); double x1 = c.cp.getX(); double y1 = c.cp.getY(); double x2 = c.P2.getX(); double y2 = c.P2.getY(); double lx0 = l.P1.getX(); double ly0 = l.P1.getY(); double lx1 = l.P2.getX(); double ly1 = l.P2.getY(); double dx = lx1 - lx0; double dy = ly1 - ly0; // form r(t) = y(t) - x(t) for the bezier y[0] = y0; y[1] = 2 * (y1 - y0); y[2] = (y2 - 2 * y1 + y0); x[0] = x0; x[1] = 2 * (x1 - x0); x[2] = (x2 - 2 * x1 + x0); // a point, not a line if (dy == 0 && dx == 0) return null; // line on y axis if (dx == 0 || (dy / dx) > 1.0) { double k = dx / dy; x[0] -= lx0; y[0] -= ly0; y[0] *= k; y[1] *= k; y[2] *= k; } else { double k = dy / dx; x[0] -= lx0; y[0] -= ly0; x[0] *= k; x[1] *= k; x[2] *= k; } for (int i = 0; i < 3; i++) r[i] = y[i] - x[i]; if ((nRoots = QuadCurve2D.solveQuadratic(r)) > 0) { Intersection[] temp = new Intersection[nRoots]; int intersections = 0; for (int i = 0; i < nRoots; i++) { double t = r[i]; if (t >= 0.0 && t <= 1.0) { Point2D p = c.evaluatePoint(t); // if the line is on an axis, snap the point to that axis. if (dx == 0) p.setLocation(lx0, p.getY()); if (dy == 0) p.setLocation(p.getX(), ly0); if (p.getX() <= Math.max(lx0, lx1) && p.getX() >= Math.min(lx0, lx1) && p.getY() <= Math.max(ly0, ly1) && p.getY() >= Math.min(ly0, ly1)) { double lineparameter = p.distance(l.P1) / l.P2.distance(l.P1); temp[i] = new Intersection(p, lineparameter, t); intersections++; } } else temp[i] = null; } if (intersections == 0) return null; Intersection[] rValues = new Intersection[intersections]; for (int i = 0; i < nRoots; i++) if (temp[i] != null) rValues[--intersections] = temp[i]; return (rValues); } return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01dce648448be461531cfd95f93f9421282da0f4/Area.java/clean/core/src/classpath/java/java/awt/geom/Area.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 5294, 3464, 8526, 980, 24483, 22541, 12, 1670, 4131, 328, 16, 27258, 4131, 276, 13, 225, 288, 565, 1645, 8526, 677, 273, 394, 1645, 63, 23, 15533, 565, 1645, 8526, 619, 273, 394, 1645, 63, 23, 15533, 565, 1645, 8526, 436, 273, 394, 1645, 63, 23, 15533, 565, 509, 290, 17540, 31, 565, 1645, 619, 20, 273, 276, 18, 52, 21, 18, 588, 60, 5621, 565, 1645, 677, 20, 273, 276, 18, 52, 21, 18, 588, 61, 5621, 565, 1645, 619, 21, 273, 276, 18, 4057, 18, 588, 60, 5621, 565, 1645, 677, 21, 273, 276, 18, 4057, 18, 588, 61, 5621, 565, 1645, 619, 22, 273, 276, 18, 52, 22, 18, 588, 60, 5621, 565, 1645, 677, 22, 273, 276, 18, 52, 22, 18, 588, 61, 5621, 565, 1645, 15855, 20, 273, 328, 18, 52, 21, 18, 588, 60, 5621, 565, 1645, 18519, 20, 273, 328, 18, 52, 21, 18, 588, 61, 5621, 565, 1645, 15855, 21, 273, 328, 18, 52, 22, 18, 588, 60, 5621, 565, 1645, 18519, 21, 273, 328, 18, 52, 22, 18, 588, 61, 5621, 565, 1645, 6633, 273, 15855, 21, 300, 15855, 20, 31, 565, 1645, 7732, 273, 18519, 21, 300, 18519, 20, 31, 565, 368, 646, 436, 12, 88, 13, 273, 677, 12, 88, 13, 300, 619, 12, 88, 13, 364, 326, 29368, 565, 677, 63, 20, 65, 273, 677, 20, 31, 565, 677, 63, 21, 65, 273, 576, 380, 261, 93, 21, 300, 677, 20, 1769, 565, 677, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5294, 3464, 8526, 980, 24483, 22541, 12, 1670, 4131, 328, 16, 27258, 4131, 276, 13, 225, 288, 565, 1645, 8526, 677, 273, 394, 1645, 63, 23, 15533, 565, 1645, 8526, 619, 273, 394, 1645, 63, 23, 15533, 565, 1645, 8526, 436, 273, 394, 1645, 63, 23, 15533, 565, 509, 290, 17540, 31, 565, 1645, 619, 20, 273, 276, 18, 52, 21, 18, 588, 60, 5621, 565, 1645, 677, 20, 273, 276, 18, 52, 21, 18, 588, 61, 5621, 565, 1645, 619, 21, 273, 276, 18, 4057, 18, 588, 60, 5621, 565, 1645, 677, 21, 273, 276, 18, 4057, 18, 588, 61, 5621, 565, 1645, 619, 22, 273, 276, 18, 52, 22, 18, 588, 60, 5621, 565, 1645, 677, 2 ]
int total_turns;
public static TurnVectors generateTurnOrder(Vector v, boolean infLast) { int[] num_inf_turns = new int[v.size()]; int[] num_oth_turns = new int[v.size()]; int total_inf_turns = 0; int total_oth_turns = 0; int idx; int total_turns; TurnOrdered[] order = new TurnOrdered[v.size()]; int oi = 0; com.sun.java.util.collections.ArrayList plist = new com.sun.java.util.collections.ArrayList(v.size()); for (Enumeration i = v.elements(); i.hasMoreElements();) { Object item = i.nextElement(); plist.add(item); } com.sun.java.util.collections.Collections.sort(plist, new com.sun.java.util.collections.Comparator() { public int compare(Object o1, Object o2) { return ((TurnOrdered)o1).getInitiative().compareTo(((TurnOrdered)o2).getInitiative()); } }); for (com.sun.java.util.collections.Iterator i = plist.iterator(); i.hasNext();) { final TurnOrdered item = (TurnOrdered)i.next(); order[oi] = item; // If infantry are last, separate them. Otherwise, place all 'turns' in one pile if (infLast) { num_inf_turns[oi] = item.getInfantryCount(); num_oth_turns[oi] = item.getTankCount() + item.getMechCount(); } else { num_inf_turns[oi] = 0; num_oth_turns[oi] = item.getTankCount() + item.getMechCount() + item.getInfantryCount(); } total_inf_turns += num_inf_turns[oi]; total_oth_turns += num_oth_turns[oi]; oi++; } int min; int turns_left; TurnVectors turns = new TurnVectors(total_oth_turns, total_inf_turns); // We will do the 'other' units first (mechs and vehicles, and if infLast is false, // infantry ) min = Integer.MAX_VALUE; for(idx = 0; idx < oi ; idx++) { if ( num_oth_turns[idx] != 0 && num_oth_turns[idx] < min) min = num_oth_turns[idx]; } turns_left = total_oth_turns; while(turns_left > 0) { for(idx = 0; idx < oi; idx++) { // If you have no turns here, skip if (num_oth_turns[idx] == 0) continue; /* If you have less than twice the lowest, move 1. Otherwise, move more. */ int ntm = (int)Math.floor( ((double)num_oth_turns[idx]) / ((double)min) ); for (int j = 0; j < ntm; j++) { turns.non_infantry.addElement(order[idx]); num_oth_turns[idx]--; turns_left--; } } // Since the smallest unit count had to place 1, reduce min) min--; } // Now, we do the 'infantry' turns. if (infLast) { min = Integer.MAX_VALUE; for(idx = 0; idx < oi ; idx++) { if ( num_inf_turns[idx] != 0 && num_inf_turns[idx] < min) min = num_inf_turns[idx]; } turns_left = total_inf_turns; while(turns_left > 0) { for(idx = 0; idx < oi; idx++) { // If you have no turns here, skip if (num_inf_turns[idx] == 0) continue; /* If you have less than twice the lowest, move 1. Otherwise, move more. */ int ntm = (int)Math.floor( ((double)num_inf_turns[idx]) / ((double)min) ); for (int j = 0; j < ntm; j++) { turns.infantry.addElement(order[idx]); num_inf_turns[idx]--; turns_left--; } } // Since the smallest unit count had to place 1, reduce min) min--; } } return turns; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/bc9da7d46e4b55dcede8f1bf0689bdc3fe6eaa51/TurnOrdered.java/clean/megamek/src/megamek/common/TurnOrdered.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 22425, 21680, 2103, 15858, 2448, 12, 5018, 331, 16, 1250, 8286, 3024, 13, 565, 288, 202, 474, 8526, 818, 67, 10625, 67, 20922, 87, 273, 394, 509, 63, 90, 18, 1467, 1435, 15533, 202, 474, 8526, 818, 67, 10370, 67, 20922, 87, 273, 394, 509, 63, 90, 18, 1467, 1435, 15533, 3639, 202, 474, 2078, 67, 10625, 67, 20922, 87, 273, 374, 31, 202, 474, 2078, 67, 10370, 67, 20922, 87, 273, 374, 31, 202, 474, 2067, 31, 202, 4202, 22425, 16756, 8526, 1353, 273, 394, 22425, 16756, 63, 90, 18, 1467, 1435, 15533, 3639, 509, 24971, 273, 374, 31, 3639, 532, 18, 16924, 18, 6290, 18, 1367, 18, 19246, 18, 19558, 21074, 273, 3196, 565, 394, 532, 18, 16924, 18, 6290, 18, 1367, 18, 19246, 18, 19558, 12, 90, 18, 1467, 10663, 3639, 364, 261, 21847, 277, 273, 331, 18, 6274, 5621, 277, 18, 5332, 7417, 3471, 5621, 13, 288, 5411, 1033, 761, 273, 277, 18, 4285, 1046, 5621, 5411, 21074, 18, 1289, 12, 1726, 1769, 3639, 289, 3639, 532, 18, 16924, 18, 6290, 18, 1367, 18, 19246, 18, 15150, 18, 3804, 12, 17842, 16, 394, 532, 18, 16924, 18, 6290, 18, 1367, 18, 19246, 18, 5559, 1435, 288, 5411, 1071, 509, 3400, 12, 921, 320, 21, 16, 1033, 320, 22, 13, 288, 7734, 327, 14015, 15858, 16756, 13, 83, 21, 2934, 588, 2570, 77, 1535, 7675, 9877, 774, 12443, 12, 15858, 16756, 13, 83, 22, 2934, 588, 2570, 77, 1535, 10663, 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, 22425, 21680, 2103, 15858, 2448, 12, 5018, 331, 16, 1250, 8286, 3024, 13, 565, 288, 202, 474, 8526, 818, 67, 10625, 67, 20922, 87, 273, 394, 509, 63, 90, 18, 1467, 1435, 15533, 202, 474, 8526, 818, 67, 10370, 67, 20922, 87, 273, 394, 509, 63, 90, 18, 1467, 1435, 15533, 3639, 202, 474, 2078, 67, 10625, 67, 20922, 87, 273, 374, 31, 202, 474, 2078, 67, 10370, 67, 20922, 87, 273, 374, 31, 202, 474, 2067, 31, 202, 4202, 22425, 16756, 8526, 1353, 273, 394, 22425, 16756, 63, 90, 18, 1467, 1435, 15533, 3639, 509, 24971, 273, 374, 31, 3639, 532, 18, 16924, 18, 6290, 18, 1367, 18, 19246, 18, 19558, 21074, 273, 3196, 565, 2 ]
getLogger().warn("Exception during updating " + this.uri, e);
getLogger().warn("Exception during updating of source " + this.uri, e);
public void execute(String name) { if (this.uri != null) { if (this.getLogger().isInfoEnabled()) { this.getLogger().info("Refreshing " + this.uri); } Source source = null; Cache cache = null; try { cache = (Cache) this.manager.lookup(this.cacheRole); source = this.resolver.resolveURI(this.uri); CachedSourceResponse response = (CachedSourceResponse) cache.get(this.cacheKey); if (source.exists()) { // what is in the cached response? byte[] binary = null; byte[] xml = null; if (response != null) { binary = response.getBinaryResponse(); xml = response.getXMLResponse(); } // create a new cached response response = new CachedSourceResponse(new ExpiresValidity(this.expires * 1000)); // only create objects that have previously been used if (binary != null) { binary = CachingSource.readBinaryResponse(source); response.setBinaryResponse(binary); } if (xml != null) { xml = CachingSource.readXMLResponse(source, binary, this.manager); response.setXMLResponse(xml); } // meta info is always set response.setExtra(CachingSource.readMeta(source)); cache.store(this.cacheKey, response); } else if (response != null) { cache.remove(this.cacheKey); } } catch (Exception e) { if (!failSafe) { // the content expires, so remove it cache.remove(cacheKey); getLogger().warn("Exception during updating " + this.uri, e); } else { getLogger().warn("Updating of source " + this.uri + " failed. " + "Cached response (if any) will be stale.", e); } } finally { this.resolver.release(source); this.manager.release(cache); } } }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/9fb35dbd67fa18397a5003bdb164f13e61b2899a/UpdateTarget.java/buggy/src/blocks/scratchpad/java/org/apache/cocoon/components/source/impl/UpdateTarget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 780, 508, 13, 288, 3639, 309, 261, 2211, 18, 1650, 480, 446, 13, 288, 5411, 309, 261, 2211, 18, 588, 3328, 7675, 291, 966, 1526, 10756, 288, 7734, 333, 18, 588, 3328, 7675, 1376, 2932, 8323, 310, 315, 397, 333, 18, 1650, 1769, 5411, 289, 13491, 4998, 1084, 273, 446, 31, 5411, 4379, 1247, 273, 446, 31, 5411, 775, 288, 27573, 1247, 273, 261, 1649, 13, 333, 18, 4181, 18, 8664, 12, 2211, 18, 2493, 2996, 1769, 7734, 1084, 273, 333, 18, 14122, 18, 10828, 3098, 12, 2211, 18, 1650, 1769, 27573, 15771, 1830, 1064, 766, 273, 261, 9839, 1830, 1064, 13, 1247, 18, 588, 12, 2211, 18, 2493, 653, 1769, 27573, 309, 261, 3168, 18, 1808, 10756, 288, 4766, 3639, 368, 4121, 353, 316, 326, 3472, 766, 35, 10792, 1160, 8526, 3112, 273, 446, 31, 10792, 1160, 8526, 2025, 273, 446, 31, 10792, 309, 261, 2740, 480, 446, 13, 288, 13491, 3112, 273, 766, 18, 588, 5905, 1064, 5621, 13491, 2025, 273, 766, 18, 588, 4201, 1064, 5621, 10792, 289, 4766, 3639, 368, 752, 279, 394, 3472, 766, 10792, 766, 273, 394, 15771, 1830, 1064, 12, 2704, 22109, 19678, 12, 2211, 18, 12431, 380, 4336, 10019, 4766, 3639, 368, 1338, 752, 2184, 716, 1240, 7243, 2118, 1399, 10792, 309, 261, 8578, 480, 446, 13, 288, 13491, 3112, 273, 23782, 310, 1830, 18, 896, 5905, 1064, 12, 3168, 1769, 13491, 766, 18, 542, 5905, 1064, 12, 8578, 1769, 10792, 289, 10792, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 12, 780, 508, 13, 288, 3639, 309, 261, 2211, 18, 1650, 480, 446, 13, 288, 5411, 309, 261, 2211, 18, 588, 3328, 7675, 291, 966, 1526, 10756, 288, 7734, 333, 18, 588, 3328, 7675, 1376, 2932, 8323, 310, 315, 397, 333, 18, 1650, 1769, 5411, 289, 13491, 4998, 1084, 273, 446, 31, 5411, 4379, 1247, 273, 446, 31, 5411, 775, 288, 27573, 1247, 273, 261, 1649, 13, 333, 18, 4181, 18, 8664, 12, 2211, 18, 2493, 2996, 1769, 7734, 1084, 273, 333, 18, 14122, 18, 10828, 3098, 12, 2211, 18, 1650, 1769, 27573, 15771, 1830, 1064, 766, 273, 261, 9839, 1830, 1064, 13, 1247, 18, 588, 12, 2211, 18, 2493, 653, 1769, 27573, 309, 261, 2 ]
new javax.xml.namespace.QName("http: "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http: true ));
new javax.xml.namespace.QName( "http: "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName( "http: "WebServiceException"), true));
private static void _initOperationDesc1(){ org.apache.axis.description.OperationDesc oper; org.apache.axis.description.ParameterDesc param; oper = new org.apache.axis.description.OperationDesc(); oper.setName("clone"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "name"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); oper.setReturnClass(java.lang.String.class); oper.setReturnQName(new javax.xml.namespace.QName("", "cloneReturn")); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[0] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("delete"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[1] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("install"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[2] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("errorMessage"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "message"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); _operations[3] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("deleteTask"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[4] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("installTask"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "lsid"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); oper.addFault(new org.apache.axis.description.FaultDesc( new javax.xml.namespace.QName("http://localhost:8080/gp/services/TaskIntegrator", "fault"), "org.genepattern.webservice.WebServiceException", new javax.xml.namespace.QName("http://webservice.genepattern.org", "WebServiceException"), true )); _operations[5] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("statusMessage"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "message"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); _operations[6] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("beginProgress"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "message"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string"), java.lang.String.class, false, false); oper.addParameter(param); oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); _operations[7] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("continueProgress"); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("", "percentComplete"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false); oper.addParameter(param); oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); _operations[8] = oper; oper = new org.apache.axis.description.OperationDesc(); oper.setName("endProgress"); oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); oper.setStyle(org.apache.axis.constants.Style.RPC); oper.setUse(org.apache.axis.constants.Use.ENCODED); _operations[9] = oper; }
57344 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57344/4a820be38a9edc1276f2a21752f65f71b51690d6/TaskIntegratorSoapBindingStub.java/clean/src/org/genepattern/webservice/TaskIntegratorSoapBindingStub.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 389, 2738, 2988, 4217, 21, 1435, 95, 3639, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 2988, 4217, 2255, 31, 3639, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 1662, 4217, 579, 31, 3639, 2255, 273, 394, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 2988, 4217, 5621, 3639, 2255, 18, 542, 461, 2932, 14056, 8863, 3639, 579, 273, 394, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 1662, 4217, 12, 2704, 6863, 18, 2902, 18, 4937, 18, 13688, 2932, 3113, 315, 3251, 350, 6, 3631, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 1662, 4217, 18, 706, 16, 394, 6863, 18, 2902, 18, 4937, 18, 13688, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 19215, 19, 5999, 19, 3113, 315, 1080, 6, 3631, 2252, 18, 4936, 18, 780, 18, 1106, 16, 629, 16, 629, 1769, 3639, 2255, 18, 1289, 1662, 12, 891, 1769, 3639, 579, 273, 394, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 1662, 4217, 12, 2704, 6863, 18, 2902, 18, 4937, 18, 13688, 2932, 3113, 315, 529, 6, 3631, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 1662, 4217, 18, 706, 16, 394, 6863, 18, 2902, 18, 4937, 18, 13688, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 3341, 19, 19215, 19, 5999, 19, 3113, 315, 1080, 6, 3631, 2252, 18, 4936, 18, 780, 18, 1106, 16, 629, 16, 629, 1769, 3639, 2255, 18, 1289, 1662, 12, 891, 1769, 3639, 2255, 18, 542, 9102, 12, 2704, 6863, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 389, 2738, 2988, 4217, 21, 1435, 95, 3639, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 2988, 4217, 2255, 31, 3639, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 1662, 4217, 579, 31, 3639, 2255, 273, 394, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 2988, 4217, 5621, 3639, 2255, 18, 542, 461, 2932, 14056, 8863, 3639, 579, 273, 394, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 1662, 4217, 12, 2704, 6863, 18, 2902, 18, 4937, 18, 13688, 2932, 3113, 315, 3251, 350, 6, 3631, 2358, 18, 19211, 18, 4890, 18, 3384, 18, 1662, 4217, 18, 706, 16, 394, 6863, 18, 2902, 18, 4937, 18, 13688, 2932, 2505, 2207, 17928, 18, 2902, 19215, 18, 2 ]
if (prefix == null) { return nf.AmbReceiver(pos, name); }
if (prefix == null) { return nf.AmbReceiver(pos, name); }
public Receiver toReceiver() { if (prefix == null) { return nf.AmbReceiver(pos, name); } return nf.AmbReceiver(pos, prefix.toPrefix(), name); }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/09ad7cc6a632e75e1308c9f5a454c718a0024fe8/Name.java/clean/src/polyglot/parse/Name.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 31020, 358, 12952, 1435, 288, 202, 202, 430, 261, 3239, 422, 446, 13, 288, 1082, 202, 2463, 13958, 18, 30706, 12952, 12, 917, 16, 508, 1769, 202, 202, 97, 202, 202, 2463, 13958, 18, 30706, 12952, 12, 917, 16, 1633, 18, 869, 2244, 9334, 508, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 31020, 358, 12952, 1435, 288, 202, 202, 430, 261, 3239, 422, 446, 13, 288, 1082, 202, 2463, 13958, 18, 30706, 12952, 12, 917, 16, 508, 1769, 202, 202, 97, 202, 202, 2463, 13958, 18, 30706, 12952, 12, 917, 16, 1633, 18, 869, 2244, 9334, 508, 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 ]
public UpdateOperation createUpdateOperation(Integer nodeId, String foreignId, String nodeLabel, String building, String city) { UpdateOperation updateOperation = new UpdateOperation(nodeId, foreignId, nodeLabel, building, city);
public UpdateOperation createUpdateOperation(Integer nodeId, String foreignSource, String foreignId, String nodeLabel, String building, String city) { UpdateOperation updateOperation = new UpdateOperation(nodeId, foreignSource, foreignId, nodeLabel, building, city);
public UpdateOperation createUpdateOperation(Integer nodeId, String foreignId, String nodeLabel, String building, String city) { UpdateOperation updateOperation = new UpdateOperation(nodeId, foreignId, nodeLabel, building, city); updateOperation.setNodeDao(m_nodeDao); updateOperation.setDistPollerDao(m_distPollerDao); updateOperation.setServiceTypeDao(m_serviceTypeDao); updateOperation.setCategoryDao(m_categoryDao); return updateOperation; }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/0400674033a43abf6e876bbc15a1e43b5891a369/BaseImporter.java/buggy/model-import/src/main/java/org/opennms/netmgt/importer/BaseImporter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2315, 2988, 752, 1891, 2988, 12, 4522, 11507, 16, 514, 5523, 548, 16, 514, 756, 2224, 16, 514, 10504, 16, 514, 12797, 13, 288, 3639, 2315, 2988, 1089, 2988, 273, 394, 2315, 2988, 12, 2159, 548, 16, 5523, 548, 16, 756, 2224, 16, 10504, 16, 12797, 1769, 3639, 1089, 2988, 18, 542, 907, 11412, 12, 81, 67, 2159, 11412, 1769, 3639, 1089, 2988, 18, 542, 5133, 5850, 749, 11412, 12, 81, 67, 4413, 5850, 749, 11412, 1769, 3639, 1089, 2988, 18, 542, 1179, 559, 11412, 12, 81, 67, 3278, 559, 11412, 1769, 3639, 1089, 2988, 18, 542, 4457, 11412, 12, 81, 67, 4743, 11412, 1769, 3639, 327, 1089, 2988, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2315, 2988, 752, 1891, 2988, 12, 4522, 11507, 16, 514, 5523, 548, 16, 514, 756, 2224, 16, 514, 10504, 16, 514, 12797, 13, 288, 3639, 2315, 2988, 1089, 2988, 273, 394, 2315, 2988, 12, 2159, 548, 16, 5523, 548, 16, 756, 2224, 16, 10504, 16, 12797, 1769, 3639, 1089, 2988, 18, 542, 907, 11412, 12, 81, 67, 2159, 11412, 1769, 3639, 1089, 2988, 18, 542, 5133, 5850, 749, 11412, 12, 81, 67, 4413, 5850, 749, 11412, 1769, 3639, 1089, 2988, 18, 542, 1179, 559, 11412, 12, 81, 67, 3278, 559, 11412, 1769, 3639, 1089, 2988, 18, 542, 4457, 11412, 12, 81, 67, 4743, 11412, 1769, 3639, 327, 1089, 2988, 31, 565, 289, 2, -100, -100, -100, -100, -100 ]
return RubyFixnum.newFixnum(runtime, str.length());
public IRubyObject write(IRubyObject obj) { getRuntime().secure(4); String str = obj.toString(); if (str.length() == 0) { return RubyFixnum.zero(getRuntime()); } checkWriteable(); try { outStream.write(str.getBytes()); if (sync) { outStream.flush(); } } catch (IOException e) { throw IOError.fromException(runtime, e); } return RubyFixnum.newFixnum(runtime, str.length()); }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/4c689a812e20d4fcf2da0cdc9b527b00cc1960ef/RubyIO.java/clean/src/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1045, 12, 7937, 10340, 921, 1081, 13, 288, 3639, 18814, 7675, 8869, 12, 24, 1769, 3639, 514, 609, 273, 1081, 18, 10492, 5621, 3639, 309, 261, 701, 18, 2469, 1435, 422, 374, 13, 288, 5411, 327, 19817, 8585, 2107, 18, 7124, 12, 588, 5576, 10663, 3639, 289, 3639, 866, 3067, 429, 5621, 3639, 775, 288, 5411, 28997, 18, 2626, 12, 701, 18, 588, 2160, 10663, 5411, 309, 261, 8389, 13, 288, 7734, 28997, 18, 11330, 5621, 5411, 289, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 604, 8340, 18, 2080, 503, 12, 9448, 16, 425, 1769, 3639, 289, 1850, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1045, 12, 7937, 10340, 921, 1081, 13, 288, 3639, 18814, 7675, 8869, 12, 24, 1769, 3639, 514, 609, 273, 1081, 18, 10492, 5621, 3639, 309, 261, 701, 18, 2469, 1435, 422, 374, 13, 288, 5411, 327, 19817, 8585, 2107, 18, 7124, 12, 588, 5576, 10663, 3639, 289, 3639, 866, 3067, 429, 5621, 3639, 775, 288, 5411, 28997, 18, 2626, 12, 701, 18, 588, 2160, 10663, 5411, 309, 261, 8389, 13, 288, 7734, 28997, 18, 11330, 5621, 5411, 289, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 604, 8340, 18, 2080, 503, 12, 9448, 16, 425, 1769, 3639, 289, 1850, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throw new PainterException("bind: wrong arguments");
throw new PainterException("bind: wrong arguments, not PAToken");
protected HashMap constructSystemDict() { HashMap systemDict = new HashMap(); // newpath systemDict.put("newpath", new PACommand() { public void execute(PAContext context) throws PainterException {// if(DebugExecution)System.out.println(""); context.pencil.newpath(); } }); // moveto systemDict.put("moveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.moveto(data[0], data[1]); } }); // rmoveto systemDict.put("rmoveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rmoveto(data[0], data[1]); } }); // lineto systemDict.put("lineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.lineto(data[0], data[1]); } }); // rlineto systemDict.put("rlineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rlineto(data[0], data[1]); } }); // arc systemDict.put("arc", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arc(data[0], data[1], data[2], data[3], data[4]); } }); // arcn systemDict.put("arcn", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arcn(data[0], data[1], data[2], data[3], data[4]); } }); // curveto systemDict.put("curveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.curveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // rcurveto systemDict.put("rcurveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.rcurveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // closepath systemDict.put("closepath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.closepath(); } }); // gsave systemDict.put("gsave", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.gsave(); } }); // grestore systemDict.put("grestore", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.grestore(); } }); // translate systemDict.put("translate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.translate(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("translate: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("translate: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("translate: wrong arguments"); } ArrayList array = (ArrayList) data[2]; if (! (array.size() == 6)) { throw new PainterException("translate: wrong arguments"); } AffineTransform at = new AffineTransform(); at.translate( ( (Number) data[0]).doubleValue(), ( (Number) data[1]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // rotate systemDict.put("rotate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(1); at.rotate(data[0] * Math.PI / 180.0d); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; AffineTransform at = new AffineTransform(); data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("rotate: wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("rotate: wrong arguments"); } ArrayList array = (ArrayList) data[1]; if (! (array.size() == 6)) { throw new PainterException("rotate: wrong arguments"); } at.rotate( ( (Number) data[0]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // scale systemDict.put("scale", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.scale(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("scale: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("scale: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("scale: wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("scale: wrong arguments"); } entries[0] = ( (Number) data[0]).doubleValue(); entries[1] = 0.0d; entries[2] = 0.0d; entries[3] = ( (Number) data[1]).doubleValue(); entries[4] = 0.0d; entries[5] = 0.0d; for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // stroke systemDict.put("stroke", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.stroke(); } }); // fill systemDict.put("fill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.fill(); } }); // eofill systemDict.put("eofill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.eofill(); } }); // show systemDict.put("show", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("show: wrong arguments"); } context.pencil.show( (String) data[0]); } }); // stringwidth systemDict.put("stringwidth", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; float[] result; Font font; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("stringwidth: wrong arguments"); } font = context.pencil.graphics.getFont(); Rectangle2D rect = font.getStringBounds( (String) data[0], context.pencil.graphics. getFontRenderContext()); context.operands.push(new Float(rect.getWidth())); context.operands.push(new Float(rect.getHeight())); } }); // showpage systemDict.put("showpage", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.showpage(); } }); // findfont systemDict.put("findfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("findfont: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("findfont: wrong arguments"); } context.operands.push(context.pencil.findFont( (String) patoken.value)); } }); // scalefont systemDict.put("scalefont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Font)) { throw new PainterException("scalefont: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("scalefont: wrong arguments"); } context.operands.push( ( (Font) data[0]).deriveFont( ( (Number) data[1]). floatValue())); } }); // setfont systemDict.put("setfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Font)) { throw new PainterException("setfont: wrong arguments"); } context.pencil.graphics.setFont( (Font) data[0]); } }); // def systemDict.put("def", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof PAToken)) { throw new PainterException("def: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("def: wrong arguments"); } try { ( (HashMap) context.dictionaries.peek()).put(patoken.value, data[1]); } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } }); // bind systemDict.put("bind", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("bind: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("bind: wrong arguments"); } context.engine.bindProcedure(patoken); context.operands.push(patoken); } }); // mul systemDict.put("mul", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] * data[1])); } }); // div systemDict.put("div", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] / data[1])); } }); // mod systemDict.put("mod", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); int a, b, m; a = (int) data[0]; b = (int) data[1]; m = a % b; context.operands.push(new Integer(m)); } }); // add systemDict.put("add", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] + data[1])); } }); // neg systemDict.put("neg", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double( -data[0])); } }); // ceiling systemDict.put("ceiling", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.ceil(data[0]))); } }); // sub systemDict.put("sub", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] - data[1])); } }); // atan systemDict.put("atan", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(Math.atan2(data[0], data[1]))); } }); // sin systemDict.put("sin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sin(data[0] * Math.PI / 180.0))); } }); // cos systemDict.put("cos", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.cos(data[0] * Math.PI / 180.0))); } }); // sqrt systemDict.put("sqrt", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sqrt(data[0]))); } }); // ln systemDict.put("log", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.log(data[0]))); } }); // exch systemDict.put("exch", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); context.operands.push(data[1]); context.operands.push(data[0]); } }); // dup systemDict.put("dup", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); context.operands.push(data[0]); context.operands.push(data[0]); } }); // roll systemDict.put("roll", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; Object rollData[]; data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("roll: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("roll: wrong arguments"); } int numberOfElements, numberOfPositions, i; numberOfElements = ( (Number) data[0]).intValue(); numberOfPositions = ( (Number) data[1]).intValue(); if (numberOfPositions == 0 || numberOfElements <= 0) { return; } rollData = context.popOperands(numberOfElements); if (numberOfPositions < 0) { numberOfPositions = -numberOfPositions; numberOfPositions = numberOfPositions % numberOfElements; // downward roll for (i = numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfPositions; i++) { context.operands.push(rollData[i]); } } else { numberOfPositions = numberOfPositions % numberOfElements; // upward roll for (i = numberOfElements - numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfElements - numberOfPositions; i++) { context.operands.push(rollData[i]); } } } }); // pop systemDict.put("pop", new PACommand() { public void execute(PAContext context) throws PainterException { context.popOperands(1); } }); // index systemDict.put("index", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number)) { throw new PainterException("index: wrong arguments"); } int index = ( (Number) data[0]).intValue(); try { context.operands.push(context.operands.elementAt(index)); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } }); // mark systemDict.put("mark", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new PAToken(null, PAToken.MARK)); } }); // cleartomark systemDict.put("cleartomark", new PACommand() { public void execute(PAContext context) throws PainterException { Object data; boolean finished = false; while (!finished) { try { data = context.operands.pop(); if (data instanceof PAToken) { if ( ( (PAToken) data).type == PAToken.MARK) { finished = true; } } } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } } }); // copy systemDict.put("copy", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); // decide if it's a simple copy or a composite object copy if ( (data[0] instanceof PAToken) && (data[1] instanceof PAToken)) { // composite object copy if ( ( (PAToken) data[0]).type == ( (PAToken) data[1]).type) { // our tokens are immutable so a copy is easy context.operands.push(data[0]); context.operands.push(data[0]); } else { throw new PainterException( "copy operation failed because composite objects on stack are not of same type"); } } else { // restore first arg, we're not interested in it in this simple case context.operands.push(data[0]); if (data[1] instanceof Number) { int index = ( (Number) data[1]).intValue(); int i, n; n = context.operands.size(); Object[] copyData = new Object[index]; for (i = n - index; i < n; i++) { try { copyData[i - n + index] = context.operands.elementAt(i); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } for (i = 0; i < index; i++) { context.operands.push(copyData[i]); } } else { throw new PainterException("I expect a number on stack, dude"); } } } }); // setgray systemDict.put("setgray", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.pencil.graphics.setPaint(new Color( (float) data[0], (float) data[0], (float) data[0])); } }); // setrgbcolor systemDict.put("setrgbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): color stuff still shaky // sethsbcolor systemDict.put("sethsbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): I have to convert these puppies myself to rgb ? // setcmykcolor systemDict.put("setcmykcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; int rd, gr, bl; data = context.popNumberOperands(4); float[] fv = new float[4]; fv[0] = (float) data[0]; fv[1] = (float) data[1]; fv[2] = (float) data[2]; fv[3] = (float) data[3]; rd = (int) (255 * Math.max(0, 1 - fv[0] - fv[3])); gr = (int) (255 * Math.max(0, 1 - fv[1] - fv[3])); bl = (int) (255 * Math.max(0, 1 - fv[2] - fv[3])); context.pencil.graphics.setPaint(new Color(rd, gr, bl)); } }); // setlinewidth systemDict.put("setlinewidth", new PACommand() { private double minLineWidth(double w, AffineTransform at) { double matrix[] = new double[4]; at.getMatrix(matrix); double scale = matrix[0] * matrix[3] - matrix[1] * matrix[2]; double minlw = .25 / Math.sqrt(Math.abs(scale)); if (w < minlw) { w = minlw; } return w; } public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); data[0] = this.minLineWidth(data[0], context.pencil.graphics.getTransform()); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( (float) data[0], ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke( (float) data[0], BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setlinecap systemDict.put("setlinecap", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), (int) data[0], ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, (int) data[0], BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setmiterlimit systemDict.put("setmiterlimit", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), (float) data[0], ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, (float) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // setdash systemDict.put("setdash", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("setdash: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("setdash: wrong arguments"); } ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return; } float[] dashpattern = new float[list.size()]; for (int i = 0; i < dashpattern.length; i++) { dashpattern[i] = ( (Number) list.get(i)).floatValue(); } float dashoffset = ( (Number) data[1]).floatValue(); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), dashpattern, dashoffset); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, dashpattern, dashoffset); } context.pencil.graphics.setStroke(newStroke); } }); // setlinejoin systemDict.put("setlinejoin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), (int) data[0], ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, (int) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // dumpstack systemDict.put("dumpstack", new PACommand() { public void execute(PAContext context) throws PainterException { Enumeration enumx = context.operands.elements(); System.out.println("-------------Stack--------------"); while (enumx.hasMoreElements()) { System.out.println(enumx.nextElement()); } System.out.println("--------------------------------"); } }); // for systemDict.put("for", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(4); if (! (data[3] instanceof PAToken)) { throw new PainterException("for: wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("for: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("for: wrong arguments"); } if (! (data[2] instanceof Number)) { throw new PainterException("for: wrong arguments"); } patoken = (PAToken) data[3]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("for: wrong arguments"); } int i0, i1, i2; i0 = ( (Number) data[0]).intValue(); i1 = ( (Number) data[1]).intValue(); i2 = ( (Number) data[2]).intValue(); if (i1 > 0) { for (int i = i0; i <= i2; i += i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } else { for (int i = i0; i >= i2; i -= i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } } }); // repeat systemDict.put("repeat", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[1] instanceof PAToken)) { throw new PainterException("repeat: wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("repeat: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("repeat: wrong arguments"); } int n = ( (Number) data[0]).intValue(); for (int i = 0; i < n; i++) { context.engine.process(patoken); } } }); // true systemDict.put("true", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(true)); } }); // false systemDict.put("false", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(false)); } }); // lt systemDict.put("lt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("lt: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("lt: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 < d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("lt: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) < 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // gt systemDict.put("gt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("gt: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("gt: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 > d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("gt: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) > 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // ge systemDict.put("ge", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("ge: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("ge: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 >= d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("ge: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) >= 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // ne systemDict.put("ne", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("ne: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("ne: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 != d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("ne: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.equals(s1)) { context.operands.push(new Boolean(false)); } else { context.operands.push(new Boolean(true)); } } } }); // eq systemDict.put("eq", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("eq: wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("eq: wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 == d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("eq: wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) == 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // if systemDict.put("if", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof Boolean)) { throw new PainterException("if: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("if: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("if: wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken); } } }); // ifelse systemDict.put("ifelse", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken1, patoken2; data = context.popOperands(3); if (! (data[0] instanceof Boolean)) { throw new PainterException("ifelse: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("ifelse: wrong arguments"); } if (! (data[2] instanceof PAToken)) { throw new PainterException("ifelse: wrong arguments"); } patoken1 = (PAToken) data[1]; patoken2 = (PAToken) data[2]; if (! (patoken1.type == PAToken.PROCEDURE)) { throw new PainterException("ifelse: wrong arguments"); } if (! (patoken2.type == PAToken.PROCEDURE)) { throw new PainterException("ifelse: wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken1); } else { context.engine.process(patoken2); } } }); // dict systemDict.put("dict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap((int)data[0])); } }); // userdict systemDict.put("userdict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap((int)data[0])); } }); // put systemDict.put("put", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(3); if (! (data[0] instanceof HashMap)) { throw new PainterException("put: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("put: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("put: wrong arguments"); } ( (HashMap) data[0]).put(patoken.value, data[2]); } }); // get systemDict.put("get", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap) && ! (data[0] instanceof ArrayList)) { throw new PainterException("get: wrong arguments"); } if (data[0] instanceof HashMap) { if (! (data[1] instanceof PAToken)) { throw new PainterException("get: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("get: wrong arguments"); } context.operands.push( ( (HashMap) data[0]).get(patoken.value)); } else if (data[0] instanceof ArrayList) { if (! (data[1] instanceof Number)) { throw new PainterException("get: wrong arguments"); } context.operands.push( ( (ArrayList) data[0]).get( ( (Number) data[1]). intValue())); } } }); // getinterval systemDict.put("getinterval", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(3); if (! (data[0] instanceof HashMap) && ! (data[0] instanceof ArrayList)) { throw new PainterException("getinterval: wrong arguments"); } if (data[0] instanceof HashMap) { if (! (data[1] instanceof PAToken)) { throw new PainterException("getinterval: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("getinterval: wrong arguments"); } if (! (data[2] instanceof Number)) { throw new PainterException("getinterval: wrong arguments"); } HashMap target=new HashMap(); context.operands.push( ( (HashMap) data[0]).get(patoken.value)); } else if (data[0] instanceof ArrayList) { if (! (data[1] instanceof Number)) { throw new PainterException("getinterval: wrong arguments"); } if (! (data[2] instanceof Number)) { throw new PainterException("getinterval: wrong arguments"); } ArrayList source=( (ArrayList) data[0]); int from=( (Number) data[1]).intValue(); int to=from+( (Number) data[2]).intValue(); ArrayList target=new ArrayList(source.subList(from,to)); context.operands.push( target); } } }); // load systemDict.put("load", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("load: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("load: wrong arguments"); } context.operands.push(context.findIdentifier(patoken.value)); } }); // length systemDict.put("length", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; int size = 0; data = context.popOperands(1); if (data[0] instanceof PAToken) { patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("length: wrong arguments"); } size = ( (String) patoken.value).length(); } else if (data[0] instanceof HashMap) { size = ( (HashMap) data[0]).size(); } else if (data[0] instanceof ArrayList) { size = ( (ArrayList) data[0]).size(); } else if (data[0] instanceof String) { size = ( (String) data[0]).length(); } else { throw new PainterException("length: wrong arguments"); } context.operands.push(new Integer(size)); } }); // begin systemDict.put("begin", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof HashMap)) { throw new PainterException("begin: wrong arguments"); } context.dictionaries.push(data[0]); } }); // end systemDict.put("end", new PACommand() { public void execute(PAContext context) throws PainterException { try { context.dictionaries.pop(); } catch (EmptyStackException e) { throw new PainterException("Dictionary stack is empty"); } } }); // undef systemDict.put("undef", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap)) { throw new PainterException("undef: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("undef: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("undef: wrong arguments"); } // we don't do an actual undef because we don't care } }); // known systemDict.put("known", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("known: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("known: wrong arguments"); } foundObject = context.findIdentifier(patoken.value); if (foundObject != null) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // where systemDict.put("where", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("where: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("where: wrong arguments"); } foundObject = context.findDictionary(patoken.value); if (foundObject != null) { context.operands.push(foundObject); context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // aload systemDict.put("aload", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; data = context.popOperands(1); if (! (data[0] instanceof ArrayList)) { throw new PainterException("aload: wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); } context.operands.push(data[0]); } }); // forall systemDict.put("forall", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("forall: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("forall: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("forall: wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); context.engine.process(patoken); } } }); // currentflat PENDING(uweh):placeholder for now systemDict.put("currentflat", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) context.operands.push(new Double(1.0f));// PdfGraphics2D pdfg2d=(PdfGraphics2D)context.pencil.graphics;//PdfContentByte cb=pdfg2d.getContent();//; } }); // setflat PENDING(uweh):placeholder for now systemDict.put("setflat", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); } }); // round systemDict.put("round", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Long(Math.round(data[0]))); } }); // abs systemDict.put("abs", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.abs(data[0]))); } }); // transform systemDict.put("transform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); at.transform(data, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("transform: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("transform: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("transform: wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("transform: wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[1]).doubleValue(); double[] transformedData = new double[2]; at.transform(numberdata, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // itransform systemDict.put("itransform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); try { at.inverseTransform(data, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("itransform: wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("itransform: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("itransform: wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("itransform: wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[0]).doubleValue(); double[] transformedData = new double[2]; try { at.inverseTransform(numberdata, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // currentpoint // PENDING(uweh): what about CTM, same thing when you construct path // this is different than ps, might not work in a few instances systemDict.put("currentpoint", new PACommand() { public void execute(PAContext context) throws PainterException { Point2D currentPoint = context.pencil.state.path.getCurrentPoint(); context.operands.push(new Double(currentPoint.getX())); context.operands.push(new Double(currentPoint.getY())); } }); // clippath systemDict.put("clippath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.clippath(); } }); // matrix systemDict.put("matrix", new PACommand() { public void execute(PAContext context) throws PainterException { ArrayList identityMatrix = new ArrayList(6); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); context.operands.push(identityMatrix); } }); // concatmatrix systemDict.put("concatmatrix", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof ArrayList)) { throw new PainterException("concatmatrix: wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("concatmatrix: wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("concatmatrix: wrong arguments"); } ArrayList arrayOne, arrayTwo, arrayThree; AffineTransform atOne, atTwo; arrayOne = (ArrayList) data[0]; arrayTwo = (ArrayList) data[1]; arrayThree = (ArrayList) data[2]; double[] entries = new double[6]; if (! (arrayOne.size() == 6)) { throw new PainterException("concatmatrix: wrong arguments"); } if (! (arrayTwo.size() == 6)) { throw new PainterException("concatmatrix: wrong arguments"); } if (! (arrayThree.size() == 6)) { throw new PainterException("concatmatrix: wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayOne.get(i)).doubleValue(); } atOne = new AffineTransform(entries); for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayTwo.get(i)).doubleValue(); } atTwo = new AffineTransform(entries); atOne.concatenate(atTwo); atOne.getMatrix(entries); for (int i = 0; i < 6; i++) { arrayThree.set(i, new Double(entries[i])); } context.operands.push(arrayThree); } }); // pathbbox systemDict.put("pathbbox", new PACommand() { public void execute(PAContext context) throws PainterException { Rectangle2D pathBounds = context.pencil.state.path.getBounds2D(); context.operands.push(new Double(pathBounds.getMinX())); context.operands.push(new Double(pathBounds.getMinY())); context.operands.push(new Double(pathBounds.getMaxX())); context.operands.push(new Double(pathBounds.getMaxY())); } }); // initmatrix systemDict.put("initmatrix", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("initmatrix"); } }); // initclipsystemDict.put("initclip", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("initclip"); }}); // truncate systemDict.put("truncate", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; double truncated; data = context.popNumberOperands(1); if (data[0] < 0) { truncated = Math.ceil(data[0]); } else { truncated = Math.floor(data[0]); } context.operands.push(new Double(truncated)); } }); // rand systemDict.put("rand", new PACommand() { public void execute(PAContext context) throws PainterException {// context.operands.push(new Integer(randomNumberGenerator.nextInt(231))); context.operands.push(new Integer(Math.abs(randomNumberGenerator.nextInt((1<<31)-1))));// Math.abs(random.nextInt()) } }); // srand systemDict.put("srand", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); randomNumberGenerator = new Random(Math.round(data[0])); } }); // version systemDict.put("version", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push("2016"); } }); // cvi systemDict.put("cvi", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("cvi: wrong arguments"); } if (data[0] instanceof Number) { int d; d = ( (Number) data[0]).intValue(); context.operands.push(new Integer(d)); } else { String s; s = (String) data[0]; context.operands.push(new Integer(s)); } } }); // cvr systemDict.put("cvr", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("cvr: wrong arguments"); } if (data[0] instanceof Number) { int d; d = ( (Number) data[0]).intValue(); context.operands.push(new Double(d)); } else { String s; s = (String) data[0]; context.operands.push(new Double(s)); } } }); // usertime systemDict.put("usertime", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Long(System.currentTimeMillis())); } });// save systemDict.put("save", new PACommand() { public void execute(PAContext context) throws PainterException { PdfGraphics2D pdfg2d=(PdfGraphics2D)context.pencil.graphics; PdfContentByte cb=pdfg2d.getContent(); cb.saveState(); context.operands.push(new Long(System.currentTimeMillis()));// context.pencil.gsave(); // Wrong! but at the moment not there..// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("save"); } });// restore systemDict.put("restore", new PACommand() { public void execute(PAContext context) throws PainterException {// context.pencil.grestore(); // Wrong! but at the moment not there.. PdfGraphics2D pdfg2d=(PdfGraphics2D)context.pencil.graphics; PdfContentByte cb=pdfg2d.getContent(); cb.restoreState(); Object data[];data = context.popOperands(1);// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("restore"); } });// clear systemDict.put("clear", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("clear"); } }); // readonly systemDict.put("readonly", new PACommand() { public void execute(PAContext context) throws PainterException {// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("readonly"); } });// currentfile systemDict.put("currentfile", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("currentfile"); } }); // filter systemDict.put("filter", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("filter"); } }); // string systemDict.put("string", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number) ) { throw new PainterException("string: wrong arguments"); } int d; d = ( (Number) data[0]).intValue(); context.operands.push(new String()); }}); // null systemDict.put("null", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(null); }}); // currentscreen systemDict.put("currentscreen", new PACommand() { public void execute(PAContext context) throws PainterException { if (!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("systemdict"); else { context.operands.push(new Double(60)); context.operands.push(new Double(0)); context.operands.push(new Double(0)); } }});// // systemdict// systemDict.put("systemdict", new PACommand() {// public void execute(PAContext context) throws PainterException {// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("systemdict");// }//});// // statusdict// systemDict.put("statusdict", new PACommand() {// public void execute(PAContext context) throws PainterException {// if(!PAContext.IgnoreUnknownCommands)// throw new UnsupportedOperationException("statusdict");// }//});// cleardictstack systemDict.put("cleardictstack", new PACommand() { public void execute(PAContext context) throws PainterException { if(!PAContext.IgnoreUnknownCommands) throw new UnsupportedOperationException("cleardictstack"); } }); // charpath systemDict.put("charpath", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof String)) { throw new PainterException("charpath: wrong arguments"); } if (! (data[1] instanceof Boolean)) { throw new PainterException("charpath: wrong arguments"); } context.pencil.charpath( (String) data[0], ( (Boolean) data[1]).booleanValue()); } }); // PENDING(uweh): we only support procedure right now and always push false on the stack // stopped systemDict.put("stopped", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("stopped: wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("stopped: wrong arguments"); } context.engine.process(patoken); context.operands.push(new Boolean(false)); } }); systemDict.put("systemdict",systemDict); return systemDict; }
3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/e841a8d80b54d639e4e53a6a4fbdd96bb4c9ec7e/PAContext.java/clean/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 4317, 4872, 3163, 5014, 1435, 288, 565, 4317, 2619, 5014, 273, 394, 4317, 5621, 565, 368, 25094, 565, 2619, 5014, 18, 458, 2932, 2704, 803, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 759, 3639, 309, 12, 2829, 3210, 13, 3163, 18, 659, 18, 8222, 2932, 8863, 3639, 819, 18, 84, 21620, 18, 2704, 803, 5621, 1377, 289, 565, 15549, 565, 368, 5730, 11453, 565, 2619, 5014, 18, 458, 2932, 81, 1527, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 22, 1769, 3639, 819, 18, 84, 21620, 18, 81, 1527, 11453, 12, 892, 63, 20, 6487, 501, 63, 21, 19226, 1377, 289, 565, 15549, 565, 368, 6692, 1527, 11453, 565, 2619, 5014, 18, 458, 2932, 8864, 1527, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 22, 1769, 3639, 819, 18, 84, 21620, 18, 8864, 1527, 11453, 12, 892, 63, 20, 6487, 501, 63, 21, 19226, 1377, 289, 565, 15549, 565, 368, 4739, 11453, 565, 2619, 5014, 18, 458, 2932, 7511, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 4317, 4872, 3163, 5014, 1435, 288, 565, 4317, 2619, 5014, 273, 394, 4317, 5621, 565, 368, 25094, 565, 2619, 5014, 18, 458, 2932, 2704, 803, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 759, 3639, 309, 12, 2829, 3210, 13, 3163, 18, 659, 18, 8222, 2932, 8863, 3639, 819, 18, 84, 21620, 18, 2704, 803, 5621, 1377, 289, 565, 15549, 565, 368, 5730, 11453, 565, 2619, 5014, 18, 458, 2932, 81, 1527, 11453, 3113, 394, 15662, 2189, 1435, 288, 1377, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 2 ]
cr = new ClassReader(args[0]);
cr = new ClassReader(args[i]);
public static void main (final String[] args) throws Exception { if (args.length == 0) { System.err.println("Prints a disassembled view of the given class."); System.err.println("Usage: TraceClassVisitor " + "<fully qualified class name or class file name>"); System.exit(-1); } ClassReader cr; if (args[0].endsWith(".class")) { cr = new ClassReader(new FileInputStream(args[0])); } else { cr = new ClassReader(args[0]); } cr.accept(new TraceClassVisitor( null, new PrintWriter(System.out)), getDefaultAttributes(), true); }
8320 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8320/0535db7e19b4b7f64353fe430209b6d1badb7db7/TraceClassVisitor.java/clean/asm/src/org/objectweb/asm/util/TraceClassVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 261, 6385, 514, 8526, 833, 13, 1216, 1185, 288, 565, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 1377, 2332, 18, 370, 18, 8222, 2932, 15402, 279, 1015, 345, 5747, 1259, 1476, 434, 326, 864, 667, 1199, 1769, 1377, 2332, 18, 370, 18, 8222, 2932, 5357, 30, 2677, 797, 7413, 315, 397, 7682, 3532, 4095, 9348, 667, 508, 578, 667, 585, 508, 2984, 1769, 1377, 2332, 18, 8593, 19236, 21, 1769, 565, 289, 565, 1659, 2514, 4422, 31, 565, 309, 261, 1968, 63, 20, 8009, 5839, 1190, 2932, 18, 1106, 6, 3719, 288, 1377, 4422, 273, 394, 1659, 2514, 12, 2704, 11907, 12, 1968, 63, 20, 5717, 1769, 565, 289, 469, 288, 1377, 4422, 273, 394, 1659, 2514, 12, 1968, 63, 77, 19226, 565, 289, 565, 4422, 18, 9436, 12, 2704, 2677, 797, 7413, 12, 1377, 446, 16, 394, 14071, 12, 3163, 18, 659, 13, 3631, 4829, 2498, 9334, 638, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 261, 6385, 514, 8526, 833, 13, 1216, 1185, 288, 565, 309, 261, 1968, 18, 2469, 422, 374, 13, 288, 1377, 2332, 18, 370, 18, 8222, 2932, 15402, 279, 1015, 345, 5747, 1259, 1476, 434, 326, 864, 667, 1199, 1769, 1377, 2332, 18, 370, 18, 8222, 2932, 5357, 30, 2677, 797, 7413, 315, 397, 7682, 3532, 4095, 9348, 667, 508, 578, 667, 585, 508, 2984, 1769, 1377, 2332, 18, 8593, 19236, 21, 1769, 565, 289, 565, 1659, 2514, 4422, 31, 565, 309, 261, 1968, 63, 20, 8009, 5839, 1190, 2932, 18, 1106, 6, 3719, 288, 1377, 4422, 273, 394, 1659, 2514, 12, 2704, 11907, 12, 1968, 63, 20, 5717, 1769, 565, 289, 469, 288, 1377, 2 ]
}
public void addReadyARKFetcher(ARKFetcher arkFetcher) { synchronized(readyARKFetchers) { if(hasReadyARKFetcher(arkFetcher)) { Logger.error(this, arkFetcher.peer.getPeer()+" already in readyARKFetchers"); return; } readyARKFetchers.addLast(arkFetcher); } }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/cefff92253ea979d890a713f52c8c855570f6cef/ARKFetchManager.java/clean/src/freenet/node/ARKFetchManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 8367, 9584, 16855, 12, 9584, 16855, 419, 79, 16855, 13, 288, 202, 202, 22043, 12, 1672, 9584, 5005, 414, 13, 288, 1082, 202, 430, 12, 5332, 8367, 9584, 16855, 12, 1313, 16855, 3719, 288, 9506, 202, 3328, 18, 1636, 12, 2211, 16, 419, 79, 16855, 18, 12210, 18, 588, 6813, 1435, 9078, 1818, 316, 5695, 9584, 5005, 414, 8863, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 1672, 9584, 5005, 414, 18, 1289, 3024, 12, 1313, 16855, 1769, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 527, 8367, 9584, 16855, 12, 9584, 16855, 419, 79, 16855, 13, 288, 202, 202, 22043, 12, 1672, 9584, 5005, 414, 13, 288, 1082, 202, 430, 12, 5332, 8367, 9584, 16855, 12, 1313, 16855, 3719, 288, 9506, 202, 3328, 18, 1636, 12, 2211, 16, 419, 79, 16855, 18, 12210, 18, 588, 6813, 1435, 9078, 1818, 316, 5695, 9584, 5005, 414, 8863, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 1672, 9584, 5005, 414, 18, 1289, 3024, 12, 1313, 16855, 1769, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public abstract Class getContentDefinitionClass();
public abstract Class getContentDefinitionClass() ;
public abstract Class getContentDefinitionClass();
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/14d8b5bd357d9dd5036f4099d10dbf7e8c9400a7/A_Backoffice.java/buggy/src/com/opencms/defaults/A_Backoffice.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 1659, 5154, 1852, 797, 5621, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 1659, 5154, 1852, 797, 5621, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (ViewUtil.isPropertySupported((View)getModel(), prob))
ENamedElement element = MetaModelUtil.getElement(prob); if (element instanceof EStructuralFeature && ViewUtil.isPropertySupported((View)getModel(), prob))
public void fillAppearancePropertiesMap(Map properties) { if (getAppearancePropertyIDs().length > 0) { // only if there are any appearance properties final Dictionary local_properties = new Hashtable(); for (int i = 0; i < getAppearancePropertyIDs().length; i++) { String prob = getAppearancePropertyIDs()[i]; if (ViewUtil.isPropertySupported((View)getModel(), prob)) local_properties.put( getAppearancePropertyIDs()[i], getPropertyValue(prob)); } properties.put(((View) getModel()).getType(), local_properties); } }
1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/a2c4f90ee5a24e30394a33d50744cac16e2ca06b/GraphicalEditPart.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/editparts/GraphicalEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3636, 1294, 27668, 2297, 863, 12, 863, 1790, 13, 288, 202, 202, 430, 261, 588, 1294, 27668, 1396, 5103, 7675, 2469, 405, 374, 13, 288, 1082, 202, 759, 1338, 309, 1915, 854, 1281, 9788, 1359, 1790, 1082, 202, 6385, 16447, 1191, 67, 4738, 273, 394, 18559, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 336, 1294, 27668, 1396, 5103, 7675, 2469, 31, 277, 27245, 288, 9506, 202, 780, 3137, 273, 336, 1294, 27668, 1396, 5103, 1435, 63, 77, 15533, 9506, 202, 430, 261, 1767, 1304, 18, 291, 1396, 7223, 12443, 1767, 13, 588, 1488, 9334, 3137, 3719, 6862, 202, 3729, 67, 4738, 18, 458, 12, 25083, 202, 588, 1294, 27668, 1396, 5103, 1435, 63, 77, 6487, 25083, 202, 588, 16107, 12, 7748, 10019, 1082, 202, 97, 1082, 202, 4738, 18, 458, 12443, 12, 1767, 13, 7454, 1435, 2934, 588, 559, 9334, 1191, 67, 4738, 1769, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3636, 1294, 27668, 2297, 863, 12, 863, 1790, 13, 288, 202, 202, 430, 261, 588, 1294, 27668, 1396, 5103, 7675, 2469, 405, 374, 13, 288, 1082, 202, 759, 1338, 309, 1915, 854, 1281, 9788, 1359, 1790, 1082, 202, 6385, 16447, 1191, 67, 4738, 273, 394, 18559, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 336, 1294, 27668, 1396, 5103, 7675, 2469, 31, 277, 27245, 288, 9506, 202, 780, 3137, 273, 336, 1294, 27668, 1396, 5103, 1435, 63, 77, 15533, 9506, 202, 430, 261, 1767, 1304, 18, 291, 1396, 7223, 12443, 1767, 13, 588, 1488, 9334, 3137, 3719, 6862, 202, 3729, 67, 4738, 18, 458, 12, 25083, 202, 588, 1294, 27668, 1396, 2 ]
scanner.resetTo(nextCharacterPosition, selectionEnd + 1);
scanner.resetTo(nextCharacterPosition, selectionEnd + 1 == source.length ? selectionEnd : selectionEnd + 1);
private boolean checkSelection( char[] source, int selectionStart, int selectionEnd) { Scanner scanner = new Scanner(); scanner.setSource(source); int lastIdentifierStart = -1; int lastIdentifierEnd = -1; char[] lastIdentifier = null; int token, identCount = 0; StringBuffer entireSelection = new StringBuffer(selectionEnd - selectionStart + 1); if(selectionStart > selectionEnd){ // compute start position of current line int currentPosition = selectionStart - 1; int nextCharacterPosition = selectionStart; char currentCharacter = ' '; try { while(currentPosition > 0){ if(source[currentPosition] == '\\' && source[currentPosition+1] == 'u') { int pos = currentPosition + 2; int c1 = 0, c2 = 0, c3 = 0, c4 = 0; while (source[pos] == 'u') { pos++; } if ((c1 = Character.getNumericValue(source[pos++])) > 15 || c1 < 0 || (c2 = Character.getNumericValue(source[pos++])) > 15 || c2 < 0 || (c3 = Character.getNumericValue(source[pos++])) > 15 || c3 < 0 || (c4 = Character.getNumericValue(source[pos++])) > 15 || c4 < 0) { return false; } else { currentCharacter = (char) (((c1 * 16 + c2) * 16 + c3) * 16 + c4); nextCharacterPosition = pos; } } else { currentCharacter = source[currentPosition]; nextCharacterPosition = currentPosition+1; } if(currentCharacter == '\r' || currentCharacter == '\n') { break; } currentPosition--; } } catch (ArrayIndexOutOfBoundsException e) { return false; } // compute start and end of the last token scanner.resetTo(nextCharacterPosition, selectionEnd + 1); do { try { token = scanner.getNextToken(); } catch (InvalidInputException e) { return false; } if((token == TerminalTokens.TokenNamethis || token == TerminalTokens.TokenNamesuper || token == TerminalTokens.TokenNameIdentifier) && scanner.startPosition <= selectionStart && selectionStart <= scanner.currentPosition) { lastIdentifierStart = scanner.startPosition; lastIdentifierEnd = scanner.currentPosition - 1; lastIdentifier = scanner.getCurrentTokenSource(); } } while (token != TerminalTokens.TokenNameEOF); } else { scanner.resetTo(selectionStart, selectionEnd); boolean expectingIdentifier = true; do { try { token = scanner.getNextToken(); } catch (InvalidInputException e) { return false; } switch (token) { case TerminalTokens.TokenNamethis : case TerminalTokens.TokenNamesuper : case TerminalTokens.TokenNameIdentifier : if (!expectingIdentifier) return false; lastIdentifier = scanner.getCurrentTokenSource(); lastIdentifierStart = scanner.startPosition; lastIdentifierEnd = scanner.currentPosition - 1; if(lastIdentifierEnd > selectionEnd) { lastIdentifierEnd = selectionEnd; lastIdentifier = CharOperation.subarray(lastIdentifier, 0,lastIdentifierEnd - lastIdentifierStart + 1); } entireSelection.append(lastIdentifier); identCount++; expectingIdentifier = false; break; case TerminalTokens.TokenNameDOT : if (expectingIdentifier) return false; entireSelection.append('.'); expectingIdentifier = true; break; case TerminalTokens.TokenNameEOF : if (expectingIdentifier) return false; break; default : return false; } } while (token != TerminalTokens.TokenNameEOF); } if (lastIdentifierStart > 0) { actualSelectionStart = lastIdentifierStart; actualSelectionEnd = lastIdentifierEnd; selectedIdentifier = lastIdentifier; if (identCount > 1) qualifiedSelection = entireSelection.toString().toCharArray(); return true; } return false; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/934325a2b568874a976028b19e1453c1eaca7d87/SelectionEngine.java/clean/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 866, 6233, 12, 202, 202, 3001, 8526, 1084, 16, 202, 202, 474, 4421, 1685, 16, 202, 202, 474, 4421, 1638, 13, 288, 202, 202, 11338, 7683, 273, 394, 19074, 5621, 202, 202, 26842, 18, 542, 1830, 12, 3168, 1769, 9506, 202, 474, 1142, 3004, 1685, 273, 300, 21, 31, 202, 202, 474, 1142, 3004, 1638, 273, 300, 21, 31, 202, 202, 3001, 8526, 1142, 3004, 273, 446, 31, 202, 202, 474, 1147, 16, 3390, 1380, 273, 374, 31, 202, 202, 780, 1892, 7278, 6233, 273, 394, 6674, 12, 10705, 1638, 300, 4421, 1685, 397, 404, 1769, 9506, 202, 430, 12, 10705, 1685, 405, 4421, 1638, 15329, 25083, 202, 759, 3671, 787, 1754, 434, 783, 980, 1082, 202, 474, 22356, 273, 4421, 1685, 300, 404, 31, 1082, 202, 474, 1024, 7069, 2555, 273, 4421, 1685, 31, 1082, 202, 3001, 783, 7069, 273, 296, 12386, 1082, 202, 698, 288, 9506, 202, 17523, 12, 2972, 2555, 405, 374, 15329, 6862, 25083, 202, 430, 12, 3168, 63, 2972, 2555, 65, 422, 5282, 597, 1084, 63, 2972, 2555, 15, 21, 65, 422, 296, 89, 6134, 288, 25083, 202, 474, 949, 273, 22356, 397, 576, 31, 25083, 202, 474, 276, 21, 273, 374, 16, 276, 22, 273, 374, 16, 276, 23, 273, 374, 16, 276, 24, 273, 374, 31, 25083, 202, 17523, 261, 3168, 63, 917, 65, 422, 296, 89, 6134, 288, 6862, 1082, 202, 917, 9904, 31, 25083, 202, 97, 25083, 202, 430, 14015, 71, 21, 273, 6577, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 866, 6233, 12, 202, 202, 3001, 8526, 1084, 16, 202, 202, 474, 4421, 1685, 16, 202, 202, 474, 4421, 1638, 13, 288, 202, 202, 11338, 7683, 273, 394, 19074, 5621, 202, 202, 26842, 18, 542, 1830, 12, 3168, 1769, 9506, 202, 474, 1142, 3004, 1685, 273, 300, 21, 31, 202, 202, 474, 1142, 3004, 1638, 273, 300, 21, 31, 202, 202, 3001, 8526, 1142, 3004, 273, 446, 31, 202, 202, 474, 1147, 16, 3390, 1380, 273, 374, 31, 202, 202, 780, 1892, 7278, 6233, 273, 394, 6674, 12, 10705, 1638, 300, 4421, 1685, 397, 404, 1769, 9506, 202, 430, 12, 10705, 1685, 405, 4421, 1638, 15329, 25083, 202, 759, 3671, 787, 1754, 434, 783, 980, 2 ]
ClassLoaderLogInfo info = getClassLoaderInfo(classLoader); if (info.loggers.containsKey(loggerName)) { return false; } info.loggers.put(loggerName, logger); final String levelString = getProperty(loggerName + ".level"); if (levelString != null) { try { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { logger.setLevel(Level.parse(levelString.trim())); return null; } }); } catch (IllegalArgumentException e) { NOPLogger.NOP_LOGGER.log(Level.FINEST, "Ignored exception", e); } } int dotIndex = loggerName.lastIndexOf('.'); while (dotIndex >= 0) { final String parentName = loggerName.substring(0, dotIndex); if (getProperty(parentName + ".level") != null) { Logger.getLogger(parentName); break; } dotIndex = loggerName.lastIndexOf('.', dotIndex - 1); } LogNode node = info.rootNode.findNode(loggerName); node.logger = logger; Logger parentLogger = node.findParentLogger(); if (parentLogger != null) { doSetParentLogger(logger, parentLogger); } node.setParentLogger(logger); String handlers = getProperty(loggerName + ".handlers"); if (handlers != null) { logger.setUseParentHandlers(false); StringTokenizer tok = new StringTokenizer(handlers, ","); while (tok.hasMoreTokens()) { String handlerName = (tok.nextToken().trim()); Handler handler = null; ClassLoader current = classLoader; while (current != null) { info = (ClassLoaderLogInfo) this.classLoaderLoggers.get(current); if (info != null) { handler = (Handler) info.handlers.get(handlerName); if (handler != null) { break; } } current = current.getParent(); } if (handler != null) { logger.addHandler(handler); } } } String useParentHandlersString = getProperty(loggerName + ".useParentHandlers"); if (Boolean.valueOf(useParentHandlersString).booleanValue()) { logger.setUseParentHandlers(true); } return true;
LoggerRepository repository = getClassLoaderInfo(classLoader).repository; boolean ret = repository.addLogger(logger); return ret;
public synchronized boolean addLogger(final Logger logger) { final String loggerName = logger.getName(); ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); ClassLoaderLogInfo info = getClassLoaderInfo(classLoader); if (info.loggers.containsKey(loggerName)) { return false; } info.loggers.put(loggerName, logger); // Apply initial level for new logger final String levelString = getProperty(loggerName + ".level"); if (levelString != null) { try { AccessController.doPrivileged(new PrivilegedAction() { public Object run() { logger.setLevel(Level.parse(levelString.trim())); return null; } }); } catch (IllegalArgumentException e) { // Leave level set to null // Ignore Exception, to recognize it, use IDE Debugger Breakpoint in NOPLogger NOPLogger.NOP_LOGGER.log(Level.FINEST, "Ignored exception", e); } } // If any parent loggers have levels definied, make sure they are // instantiated int dotIndex = loggerName.lastIndexOf('.'); while (dotIndex >= 0) { final String parentName = loggerName.substring(0, dotIndex); if (getProperty(parentName + ".level") != null) { Logger.getLogger(parentName); break; } dotIndex = loggerName.lastIndexOf('.', dotIndex - 1); } // Find associated node LogNode node = info.rootNode.findNode(loggerName); node.logger = logger; // Set parent logger Logger parentLogger = node.findParentLogger(); if (parentLogger != null) { doSetParentLogger(logger, parentLogger); } // Tell children we are their new parent node.setParentLogger(logger); // Add associated handlers, if any are defined using the .handlers // property. // In this case, handlers of the parent logger(s) will not be used String handlers = getProperty(loggerName + ".handlers"); if (handlers != null) { logger.setUseParentHandlers(false); StringTokenizer tok = new StringTokenizer(handlers, ","); while (tok.hasMoreTokens()) { String handlerName = (tok.nextToken().trim()); Handler handler = null; ClassLoader current = classLoader; while (current != null) { info = (ClassLoaderLogInfo) this.classLoaderLoggers.get(current); if (info != null) { handler = (Handler) info.handlers.get(handlerName); if (handler != null) { break; } } current = current.getParent(); } if (handler != null) { logger.addHandler(handler); } } } // Parse useParentHandlers to set if the logger should delegate to its // parent. // Unlike java.util.logging, the default is to not delegate if a list of // handlers // has been specified for the logger. String useParentHandlersString = getProperty(loggerName + ".useParentHandlers"); if (Boolean.valueOf(useParentHandlersString).booleanValue()) { logger.setUseParentHandlers(true); } return true; }
12295 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12295/ba7c04bcbe040519a51ee336c21054b73c8a9a21/ClassLoaderLogManager.java/buggy/trunk/src/java/org/x4juli/ClassLoaderLogManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 1250, 527, 3328, 12, 6385, 4242, 1194, 13, 288, 3639, 727, 514, 1194, 461, 273, 1194, 18, 17994, 5621, 3639, 9403, 11138, 273, 4884, 18, 2972, 3830, 7675, 29120, 7805, 5621, 3639, 9403, 1343, 966, 1123, 273, 14352, 966, 12, 1106, 2886, 1769, 3639, 309, 261, 1376, 18, 1330, 6215, 18, 12298, 653, 12, 4901, 461, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 1123, 18, 1330, 6215, 18, 458, 12, 4901, 461, 16, 1194, 1769, 3639, 368, 5534, 2172, 1801, 364, 394, 1194, 3639, 727, 514, 1801, 780, 273, 3911, 12, 4901, 461, 397, 3552, 2815, 8863, 3639, 309, 261, 2815, 780, 480, 446, 13, 288, 5411, 775, 288, 7734, 25556, 18, 2896, 18845, 12, 2704, 24897, 1435, 288, 10792, 1071, 1033, 1086, 1435, 288, 13491, 1194, 18, 542, 2355, 12, 2355, 18, 2670, 12, 2815, 780, 18, 5290, 1435, 10019, 13491, 327, 446, 31, 10792, 289, 7734, 15549, 5411, 289, 1044, 261, 31237, 425, 13, 288, 7734, 368, 21131, 1801, 444, 358, 446, 7734, 368, 8049, 1185, 16, 358, 21431, 518, 16, 999, 1599, 41, 28645, 17030, 1153, 316, 423, 3665, 3328, 7734, 423, 3665, 3328, 18, 3417, 52, 67, 8757, 18, 1330, 12, 2355, 18, 42, 3740, 882, 16, 315, 15596, 1520, 3113, 425, 1769, 5411, 289, 3639, 289, 3639, 368, 971, 1281, 982, 18244, 1240, 7575, 2217, 2092, 16, 1221, 3071, 2898, 854, 3639, 368, 17651, 3639, 509, 3928, 1016, 273, 1194, 461, 18, 2722, 31985, 2668, 1093, 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, 1071, 3852, 1250, 527, 3328, 12, 6385, 4242, 1194, 13, 288, 3639, 727, 514, 1194, 461, 273, 1194, 18, 17994, 5621, 3639, 9403, 11138, 273, 4884, 18, 2972, 3830, 7675, 29120, 7805, 5621, 3639, 9403, 1343, 966, 1123, 273, 14352, 966, 12, 1106, 2886, 1769, 3639, 309, 261, 1376, 18, 1330, 6215, 18, 12298, 653, 12, 4901, 461, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 1123, 18, 1330, 6215, 18, 458, 12, 4901, 461, 16, 1194, 1769, 3639, 368, 5534, 2172, 1801, 364, 394, 1194, 3639, 727, 514, 1801, 780, 273, 3911, 12, 4901, 461, 397, 3552, 2815, 8863, 3639, 309, 261, 2815, 780, 480, 446, 13, 288, 5411, 775, 288, 7734, 25556, 18, 2896, 18845, 2 ]
bytes[index++] = (byte) ShowStatusCode;
bytes[index++] = (byte) ResizeAppletCode;
public void sendResizeAppletCmd( String contextID, String appletID, int width, int height ) { Main.debug( "sendResizeAppletCmd, contextID = " + contextID + ", appletID = " + appletID + ", width = " + width + ", height = " + height ); byte [] width_bytes = String.valueOf( width ).getBytes(); byte [] height_bytes = String.valueOf( height ).getBytes(); //length = length of args plus code, 4 seps, end int length = contextID.length() + appletID.length() + width_bytes.length + height_bytes.length + 6; byte [] bytes = new byte[ length + 8 ]; //for length of message byte [] tmp_bytes = getPaddedLengthBytes( length ); int index = 0; System.arraycopy( tmp_bytes, 0, bytes, index, tmp_bytes.length ); index += tmp_bytes.length; bytes[index++] = (byte) ShowStatusCode; bytes[index++] = sep; tmp_bytes = contextID.getBytes(); System.arraycopy( tmp_bytes, 0, bytes, index, tmp_bytes.length ); index += tmp_bytes.length; bytes[index++] = sep; tmp_bytes = appletID.getBytes(); System.arraycopy( tmp_bytes, 0, bytes, index, tmp_bytes.length ); index += tmp_bytes.length; bytes[index++] = sep; System.arraycopy( width_bytes, 0, bytes, index, width_bytes.length ); index += width_bytes.length; bytes[index++] = sep; System.arraycopy( height_bytes, 0, bytes, index, height_bytes.length ); index += height_bytes.length; bytes[index++] = sep; signals.write( bytes, 0, bytes.length ); }
45545 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45545/4c21197c2e153595b810dd01382a04f464af7f4d/KJASProtocolHandler.java/clean/khtml/java/org/kde/kjas/server/KJASProtocolHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 12182, 23696, 5931, 12, 514, 819, 734, 16, 514, 21853, 734, 16, 19694, 509, 1835, 16, 509, 2072, 262, 565, 288, 3639, 12740, 18, 4148, 12, 315, 4661, 12182, 23696, 5931, 16, 819, 734, 273, 315, 397, 819, 734, 397, 3104, 21853, 734, 273, 315, 397, 10792, 21853, 734, 397, 3104, 1835, 273, 315, 397, 1835, 397, 3104, 2072, 273, 315, 397, 2072, 11272, 3639, 1160, 5378, 1835, 67, 3890, 273, 514, 18, 1132, 951, 12, 1835, 262, 18, 588, 2160, 5621, 3639, 1160, 5378, 2072, 67, 3890, 273, 514, 18, 1132, 951, 12, 2072, 262, 18, 588, 2160, 5621, 3639, 368, 2469, 273, 769, 434, 833, 8737, 981, 16, 1059, 695, 1121, 16, 679, 3639, 509, 769, 273, 819, 734, 18, 2469, 1435, 397, 21853, 734, 18, 2469, 1435, 397, 1835, 67, 3890, 18, 2469, 397, 5397, 2072, 67, 3890, 18, 2469, 397, 1666, 31, 3639, 1160, 5378, 1731, 273, 394, 1160, 63, 769, 397, 1725, 308, 31, 368, 1884, 769, 434, 883, 3639, 1160, 5378, 1853, 67, 3890, 273, 1689, 9665, 1782, 2160, 12, 769, 11272, 3639, 509, 770, 273, 374, 31, 3639, 2332, 18, 1126, 3530, 12, 1853, 67, 3890, 16, 374, 16, 1731, 16, 770, 16, 1853, 67, 3890, 18, 2469, 11272, 3639, 770, 1011, 1853, 67, 3890, 18, 2469, 31, 3639, 1731, 63, 1615, 9904, 65, 273, 261, 7229, 13, 24033, 23696, 1085, 31, 3639, 1731, 63, 1615, 9904, 65, 273, 5478, 31, 3639, 1853, 67, 3890, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1366, 12182, 23696, 5931, 12, 514, 819, 734, 16, 514, 21853, 734, 16, 19694, 509, 1835, 16, 509, 2072, 262, 565, 288, 3639, 12740, 18, 4148, 12, 315, 4661, 12182, 23696, 5931, 16, 819, 734, 273, 315, 397, 819, 734, 397, 3104, 21853, 734, 273, 315, 397, 10792, 21853, 734, 397, 3104, 1835, 273, 315, 397, 1835, 397, 3104, 2072, 273, 315, 397, 2072, 11272, 3639, 1160, 5378, 1835, 67, 3890, 273, 514, 18, 1132, 951, 12, 1835, 262, 18, 588, 2160, 5621, 3639, 1160, 5378, 2072, 67, 3890, 273, 514, 18, 1132, 951, 12, 2072, 262, 18, 588, 2160, 5621, 3639, 368, 2469, 273, 769, 434, 833, 8737, 981, 16, 1059, 695, 1121, 16, 679, 2 ]
msgs = ((InternalEObject)insets).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.LABEL__INSETS, null, msgs);
msgs = ((InternalEObject) insets).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.LABEL__INSETS, null, msgs);
public void setInsets(Insets newInsets) { if (newInsets != insets) { NotificationChain msgs = null; if (insets != null) msgs = ((InternalEObject)insets).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.LABEL__INSETS, null, msgs); if (newInsets != null) msgs = ((InternalEObject)newInsets).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ComponentPackage.LABEL__INSETS, null, msgs); msgs = basicSetInsets(newInsets, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ComponentPackage.LABEL__INSETS, newInsets, newInsets)); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/LabelImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/LabelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 382, 4424, 12, 382, 4424, 394, 382, 4424, 13, 565, 288, 3639, 309, 261, 2704, 382, 4424, 480, 23576, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 267, 4424, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 23576, 2934, 73, 16376, 3288, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 5435, 2261, 18, 13545, 972, 706, 28092, 16, 446, 16, 8733, 1769, 5411, 309, 261, 2704, 382, 4424, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 2704, 382, 4424, 2934, 73, 16376, 986, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 5435, 2261, 18, 13545, 972, 706, 28092, 16, 446, 16, 8733, 1769, 5411, 8733, 273, 5337, 694, 382, 4424, 12, 2704, 382, 4424, 16, 8733, 1769, 5411, 309, 261, 27439, 480, 446, 13, 8733, 18, 10739, 5621, 3639, 289, 3639, 469, 309, 261, 73, 21107, 10756, 5411, 22596, 12, 2704, 19953, 12, 2211, 16, 8050, 18, 4043, 16, 5435, 2261, 18, 13545, 972, 706, 28092, 16, 394, 382, 4424, 16, 394, 382, 4424, 10019, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 382, 4424, 12, 382, 4424, 394, 382, 4424, 13, 565, 288, 3639, 309, 261, 2704, 382, 4424, 480, 23576, 13, 3639, 288, 5411, 27050, 8733, 273, 446, 31, 5411, 309, 261, 267, 4424, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 23576, 2934, 73, 16376, 3288, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 5435, 2261, 18, 13545, 972, 706, 28092, 16, 446, 16, 8733, 1769, 5411, 309, 261, 2704, 382, 4424, 480, 446, 13, 7734, 8733, 273, 14015, 3061, 8029, 13, 2704, 382, 4424, 2934, 73, 16376, 986, 12, 2211, 16, 512, 3665, 24595, 67, 18257, 67, 8369, 300, 5435, 2261, 18, 13545, 972, 706, 28092, 16, 446, 16, 2 ]
public void setDoubleValue(Double value) { doubleValue = value; }
4433 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4433/cd881bf2d70445b5d3438832a22bb9bfdfb1d6c5/Visit.java/clean/examples/Tutorial/src/tutorial/workbench/Visit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 542, 5265, 620, 12, 5265, 1132, 13, 202, 95, 202, 202, 9056, 620, 33, 1132, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 542, 5265, 620, 12, 5265, 1132, 13, 202, 95, 202, 202, 9056, 620, 33, 1132, 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 ]
if ( sign<0 ) { data[ms]=parseInt(buffer, milisec+1, end); start = end; } else { data[ms]=parseInt(buffer, milisec+1,sign); start = sign; }
start = sign < 0 ? end : sign; data[ms]=parseInt(buffer, milisec+1, start);
protected void getTime (String buffer, int start, int end, int[] data, int[] timeZone) throws RuntimeException{ int stop = start+2; //get hours (hh) data[h]=parseInt(buffer, start,stop); //get minutes (mm) if (buffer.charAt(stop++)!=':') { throw new RuntimeException("Error in parsing time zone" ); } start = stop; stop = stop+2; data[m]=parseInt(buffer, start,stop); //get seconds (ss) if (buffer.charAt(stop++)!=':') { throw new RuntimeException("Error in parsing time zone" ); } start = stop; stop = stop+2; data[s]=parseInt(buffer, start,stop); if (stop == end) return; //get miliseconds (ms) start = stop; int milisec = buffer.charAt(start) == '.' ? start : -1; //find UTC sign if any int sign = findUTCSign(buffer, start, end); //parse miliseconds if ( milisec != -1 ) { if ( sign<0 ) { //get all digits after "." data[ms]=parseInt(buffer, milisec+1, end); start = end; } else { //get ms before UTC sign data[ms]=parseInt(buffer, milisec+1,sign); start = sign; } } //parse UTC time zone (hh:mm) if ( sign>0 ) { getTimeZone(buffer, data, sign, end, timeZone); } else if (start != end) { throw new RuntimeException("Error in parsing time zone" ); } }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/596c9f13474dddd6d8a29527a320bbeb53904646/AbstractDateTimeDV.java/buggy/src/org/apache/xerces/impl/dv/xs/AbstractDateTimeDV.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 225, 918, 6135, 261, 780, 1613, 16, 509, 787, 16, 509, 679, 16, 509, 8526, 501, 16, 509, 8526, 17512, 13, 1216, 3235, 95, 3639, 509, 2132, 273, 787, 15, 22, 31, 3639, 368, 588, 7507, 261, 21622, 13, 3639, 501, 63, 76, 65, 33, 2670, 1702, 12, 4106, 16, 787, 16, 5681, 1769, 3639, 368, 588, 6824, 261, 7020, 13, 3639, 309, 261, 4106, 18, 3001, 861, 12, 5681, 27245, 5, 2218, 2497, 13, 288, 7734, 604, 394, 3235, 2932, 668, 316, 5811, 813, 4157, 6, 11272, 3639, 289, 3639, 787, 273, 2132, 31, 3639, 2132, 273, 2132, 15, 22, 31, 3639, 501, 63, 81, 65, 33, 2670, 1702, 12, 4106, 16, 787, 16, 5681, 1769, 3639, 368, 588, 3974, 261, 1049, 13, 3639, 309, 261, 4106, 18, 3001, 861, 12, 5681, 27245, 5, 2218, 2497, 13, 288, 7734, 604, 394, 3235, 2932, 668, 316, 5811, 813, 4157, 6, 11272, 3639, 289, 3639, 787, 273, 2132, 31, 3639, 2132, 273, 2132, 15, 22, 31, 3639, 501, 63, 87, 65, 33, 2670, 1702, 12, 4106, 16, 787, 16, 5681, 1769, 3639, 309, 261, 5681, 422, 679, 13, 5411, 327, 31, 7734, 368, 588, 312, 330, 291, 20960, 261, 959, 13, 3639, 787, 273, 2132, 31, 3639, 509, 312, 330, 291, 557, 273, 1613, 18, 3001, 861, 12, 1937, 13, 422, 2611, 692, 787, 294, 300, 21, 31, 3639, 368, 4720, 9951, 1573, 309, 1281, 3639, 509, 1573, 273, 1104, 11471, 2766, 12, 4106, 16, 787, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 225, 918, 6135, 261, 780, 1613, 16, 509, 787, 16, 509, 679, 16, 509, 8526, 501, 16, 509, 8526, 17512, 13, 1216, 3235, 95, 3639, 509, 2132, 273, 787, 15, 22, 31, 3639, 368, 588, 7507, 261, 21622, 13, 3639, 501, 63, 76, 65, 33, 2670, 1702, 12, 4106, 16, 787, 16, 5681, 1769, 3639, 368, 588, 6824, 261, 7020, 13, 3639, 309, 261, 4106, 18, 3001, 861, 12, 5681, 27245, 5, 2218, 2497, 13, 288, 7734, 604, 394, 3235, 2932, 668, 316, 5811, 813, 4157, 6, 11272, 3639, 289, 3639, 787, 273, 2132, 31, 3639, 2132, 273, 2132, 15, 22, 31, 3639, 501, 63, 81, 65, 33, 2670, 1702, 12, 4106, 16, 787, 16, 5681, 1769, 2 ]
protected void setKeystorePasswordParam(String password) throws IOException,
private void setKeystorePasswordParam(String password) throws IOException,
protected void setKeystorePasswordParam(String password) throws IOException, UnsupportedCallbackException { if (password != null) storePasswordChars = password.toCharArray(); else // ask the user to provide one { String prompt = Messages.getString("Command.24"); //$NON-NLS-1$ PasswordCallback pcb = new PasswordCallback(prompt, false); getCallbackHandler().handle(new Callback[] { pcb }); storePasswordChars = pcb.getPassword(); pcb.clearPassword(); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/6e10879cd4d1df8b463898498b99e01d9ae63f24/Command.java/buggy/core/src/classpath/tools/gnu/classpath/tools/keytool/Command.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 16696, 2233, 3913, 786, 12, 780, 2201, 13, 1216, 1860, 16, 1377, 7221, 2428, 503, 225, 288, 565, 309, 261, 3664, 480, 446, 13, 1377, 1707, 3913, 7803, 273, 2201, 18, 869, 15936, 5621, 565, 469, 368, 6827, 326, 729, 358, 5615, 1245, 1377, 288, 3639, 514, 6866, 273, 4838, 18, 588, 780, 2932, 2189, 18, 3247, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 9234, 2428, 6125, 70, 273, 394, 9234, 2428, 12, 13325, 16, 629, 1769, 3639, 28667, 1503, 7675, 4110, 12, 2704, 8444, 8526, 288, 6125, 70, 15549, 3639, 1707, 3913, 7803, 273, 6125, 70, 18, 588, 3913, 5621, 3639, 6125, 70, 18, 8507, 3913, 5621, 1377, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 16696, 2233, 3913, 786, 12, 780, 2201, 13, 1216, 1860, 16, 1377, 7221, 2428, 503, 225, 288, 565, 309, 261, 3664, 480, 446, 13, 1377, 1707, 3913, 7803, 273, 2201, 18, 869, 15936, 5621, 565, 469, 368, 6827, 326, 729, 358, 5615, 1245, 1377, 288, 3639, 514, 6866, 273, 4838, 18, 588, 780, 2932, 2189, 18, 3247, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 9234, 2428, 6125, 70, 273, 394, 9234, 2428, 12, 13325, 16, 629, 1769, 3639, 28667, 1503, 7675, 4110, 12, 2704, 8444, 8526, 288, 6125, 70, 15549, 3639, 1707, 3913, 7803, 273, 6125, 70, 18, 588, 3913, 5621, 3639, 6125, 70, 18, 8507, 3913, 5621, 1377, 289, 225, 289, 2, -100, -100 ]
error.toString(),
error,
public void errorUnpack(String error) { this.packOpLabel.setText(error); idata.installSuccess = false; JOptionPane.showMessageDialog( this, error.toString(), parent.langpack.getString("installer.error"), JOptionPane.ERROR_MESSAGE); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/InstallPanel.java/buggy/src/lib/com/izforge/izpack/panels/InstallPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 555, 23649, 12, 780, 555, 13, 225, 288, 565, 333, 18, 2920, 3817, 2224, 18, 542, 1528, 12, 1636, 1769, 565, 612, 396, 18, 5425, 4510, 273, 629, 31, 565, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 1377, 333, 16, 1377, 555, 16, 1377, 982, 18, 4936, 2920, 18, 588, 780, 2932, 20163, 18, 1636, 6, 3631, 1377, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 555, 23649, 12, 780, 555, 13, 225, 288, 565, 333, 18, 2920, 3817, 2224, 18, 542, 1528, 12, 1636, 1769, 565, 612, 396, 18, 5425, 4510, 273, 629, 31, 565, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 1377, 333, 16, 1377, 555, 16, 1377, 982, 18, 4936, 2920, 18, 588, 780, 2932, 20163, 18, 1636, 6, 3631, 1377, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("rebuildEditorContent root node: " + (myRootCell.getSemanticNode() != null ? myRootCell.getSemanticNode().getDebugText() : "NULL"));
public void rebuildEditorContent() { Point selectionPoint = null; Point prevSelectablePoint = null; int caretX = 0; if (mySelectedCell != null) { selectionPoint = new Point(mySelectedCell.getX(), mySelectedCell.getY()); EditorCell prevSelectableCell = findPrevSelectableCell(findNodeCell(mySelectedCell.getSemanticNode())); if (prevSelectableCell != null) { prevSelectablePoint = new Point(prevSelectableCell.getX(), prevSelectableCell.getY()); } caretX = mySelectedCell.getCaretX(); } mySelectedCell = null; mySelectedStack.clear(); setRootCell(createRootCell()); System.out.println("rebuildEditorContent root node: " + (myRootCell.getSemanticNode() != null ? myRootCell.getSemanticNode().getDebugText() : "NULL")); EditorCell newSelection = null; if (selectionPoint != null) { newSelection = findNearestCell(selectionPoint.x, selectionPoint.y); } if (newSelection == null && prevSelectablePoint != null) { newSelection = findNearestCell(prevSelectablePoint.x, prevSelectablePoint.y); } if (newSelection != null) { changeSelection(newSelection); newSelection.setCaretX(caretX); } }
14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/9376c5fe95c4d6756cab83ec762232ae3dbdc2a8/AbstractEditorComponent.java/clean/source/jetbrains/mps/nodeEditor/AbstractEditorComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 13419, 6946, 1350, 1435, 288, 565, 4686, 4421, 2148, 273, 446, 31, 565, 4686, 2807, 31544, 2148, 273, 446, 31, 565, 509, 21683, 60, 273, 374, 31, 565, 309, 261, 4811, 7416, 4020, 480, 446, 13, 288, 1377, 4421, 2148, 273, 394, 4686, 12, 4811, 7416, 4020, 18, 588, 60, 9334, 3399, 7416, 4020, 18, 588, 61, 10663, 1377, 18451, 4020, 2807, 31544, 4020, 273, 1104, 9958, 31544, 4020, 12, 4720, 907, 4020, 12, 4811, 7416, 4020, 18, 588, 13185, 9941, 907, 1435, 10019, 1377, 309, 261, 10001, 31544, 4020, 480, 446, 13, 288, 3639, 2807, 31544, 2148, 273, 394, 4686, 12, 10001, 31544, 4020, 18, 588, 60, 9334, 2807, 31544, 4020, 18, 588, 61, 10663, 1377, 289, 1377, 21683, 60, 273, 3399, 7416, 4020, 18, 588, 39, 20731, 60, 5621, 565, 289, 565, 3399, 7416, 4020, 273, 446, 31, 565, 3399, 7416, 2624, 18, 8507, 5621, 565, 31706, 4020, 12, 2640, 2375, 4020, 10663, 3639, 18451, 4020, 394, 6233, 273, 446, 31, 565, 309, 261, 10705, 2148, 480, 446, 13, 288, 1377, 394, 6233, 273, 1104, 28031, 4020, 12, 10705, 2148, 18, 92, 16, 4421, 2148, 18, 93, 1769, 565, 289, 565, 309, 261, 2704, 6233, 422, 446, 597, 2807, 31544, 2148, 480, 446, 13, 288, 1377, 394, 6233, 273, 1104, 28031, 4020, 12, 10001, 31544, 2148, 18, 92, 16, 2807, 31544, 2148, 18, 93, 1769, 565, 289, 565, 309, 261, 2704, 6233, 480, 446, 13, 288, 1377, 2549, 6233, 12, 2704, 6233, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13419, 6946, 1350, 1435, 288, 565, 4686, 4421, 2148, 273, 446, 31, 565, 4686, 2807, 31544, 2148, 273, 446, 31, 565, 509, 21683, 60, 273, 374, 31, 565, 309, 261, 4811, 7416, 4020, 480, 446, 13, 288, 1377, 4421, 2148, 273, 394, 4686, 12, 4811, 7416, 4020, 18, 588, 60, 9334, 3399, 7416, 4020, 18, 588, 61, 10663, 1377, 18451, 4020, 2807, 31544, 4020, 273, 1104, 9958, 31544, 4020, 12, 4720, 907, 4020, 12, 4811, 7416, 4020, 18, 588, 13185, 9941, 907, 1435, 10019, 1377, 309, 261, 10001, 31544, 4020, 480, 446, 13, 288, 3639, 2807, 31544, 2148, 273, 394, 4686, 12, 10001, 31544, 4020, 18, 588, 60, 9334, 2807, 31544, 4020, 18, 588, 61, 10663, 2 ]
tSerialization( "com/limegroup/gnutella/downloader/ResumeDownloader.1_3.dat", true);
tSerialization("ResumeDownloader.1_3.dat", true);
public void testSerialization13() throws IOException, ClassNotFoundException { tSerialization( "com/limegroup/gnutella/downloader/ResumeDownloader.1_3.dat", true); }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/bb3dec7616d329414483ed54619b27cab137b02a/ResumeDownloaderTest.java/buggy/components/gnutella-core/src/test/java/com/limegroup/gnutella/downloader/ResumeDownloaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 16764, 3437, 1435, 5411, 1216, 1860, 16, 10403, 288, 3639, 268, 16764, 12, 5411, 315, 832, 19, 80, 494, 1655, 19, 1600, 322, 1165, 69, 19, 2378, 6714, 19, 20911, 4164, 6714, 18, 21, 67, 23, 18, 3404, 3113, 638, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 16764, 3437, 1435, 5411, 1216, 1860, 16, 10403, 288, 3639, 268, 16764, 12, 5411, 315, 832, 19, 80, 494, 1655, 19, 1600, 322, 1165, 69, 19, 2378, 6714, 19, 20911, 4164, 6714, 18, 21, 67, 23, 18, 3404, 3113, 638, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if ((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType.equalsIgnoreCase("Percent Stacked")))
if ((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType.equalsIgnoreCase("Percent Stacked")))
private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) { Chart helperModel = (Chart) EcoreUtil.copy(currentChart); if ((currentChart instanceof ChartWithAxes)) // Chart is ChartWithAxes { if (currentChart.getType().equals(sType)) // Original chart is of this type (BarChart) { if (!currentChart.getSubType().equals(sNewSubType)) // Original chart is of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for (int i = 0; i < axes.size(); i++) { if (sNewSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) axes.get(i)).setPercent(true); } else { ((Axis) axes.get(i)).setPercent(false); } EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for (int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); if ((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType .equalsIgnoreCase("Percent Stacked"))) { series.setStacked(true); } else { series.setStacked(false); } } } } } else if (currentChart.getType().equals("Line Chart") || currentChart.getType().equals("Stock Chart") || currentChart.getType().equals("Scatter Chart")) { if (!currentChart.getType().equals("Line Chart")) { currentChart.setSampleData(getConvertedSampleData(currentChart.getSampleData())); } currentChart.setType(sType); currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for (int i = 0; i < axes.size(); i++) { if (sNewSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) axes.get(i)).setPercent(true); } else { ((Axis) axes.get(i)).setPercent(false); } EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for (int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); if ((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType.equalsIgnoreCase("Percent Stacked"))) { series.setStacked(true); } else { series.setStacked(false); } ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().set(j, series); } } } else { return null; } ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(true); } else { // Create a new instance of the correct type and set initial properties currentChart = ChartWithAxesImpl.create(); currentChart.setType(sType); currentChart.setSubType(sNewSubType); ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.TEXT_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(true); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setType(AxisType.LINEAR_LITERAL); // Copy generic chart properties from the old chart currentChart.setBlock(helperModel.getBlock()); currentChart.setDescription(helperModel.getDescription()); currentChart.setGridColumnCount(helperModel.getGridColumnCount()); currentChart.setSampleData(helperModel.getSampleData()); currentChart.setScript(helperModel.getScript()); currentChart.setSeriesThickness(helperModel.getSeriesThickness()); currentChart.setUnits(helperModel.getUnits()); if (helperModel.getType().equals("Pie Chart")) { // Clear existing series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().clear(); // Copy base series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().add( ((ChartWithoutAxes) helperModel).getSeriesDefinitions().get(0)); // Clear existing series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .getSeriesDefinitions().clear(); // Copy orthogonal series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .getSeriesDefinitions().addAll( ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)) .getSeriesDefinitions().get(0)).getSeriesDefinitions()); // Update the base series Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)) .getSeriesDefinitions().get(0)).getDesignTimeSeries(); series = getConvertedSeries(series); // Clear existing series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions() .get(0)).getSeries().clear(); // Add converted series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions() .get(0)).getSeries().add(series); // Update the orthogonal series EList seriesdefinitions = ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)) .getAssociatedAxes().get(0)).getSeriesDefinitions(); for (int j = 0; j < seriesdefinitions.size(); j++) { series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); if ((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType.equalsIgnoreCase("Percent Stacked"))) { series.setStacked(true); } else { series.setStacked(false); } // Clear any existing series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); // Add the new series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } else { return null; } } if (currentChart instanceof ChartWithAxes && !((ChartWithAxes) currentChart).getOrientation().equals(newOrientation)) { ((ChartWithAxes) currentChart).setOrientation(newOrientation); } if (!currentChart.getDimension().equals(getDimensionFor(sNewDimension))) { currentChart.setDimension(getDimensionFor(sNewDimension)); } return currentChart; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/7793e94b4d7fab5891f226c6c937e37d85bebad8/BarChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/BarChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 3639, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984, 13, 512, 3644, 1304, 18, 3530, 12, 2972, 7984, 1769, 3639, 309, 14015, 2972, 7984, 1276, 14804, 1190, 26494, 3719, 368, 14804, 353, 14804, 1190, 26494, 3639, 288, 5411, 309, 261, 2972, 7984, 18, 588, 559, 7675, 14963, 12, 87, 559, 3719, 368, 19225, 4980, 353, 434, 333, 618, 261, 5190, 7984, 13, 5411, 288, 7734, 309, 16051, 2972, 7984, 18, 588, 30511, 7675, 14963, 12, 87, 1908, 30511, 3719, 368, 19225, 4980, 353, 434, 326, 1931, 12308, 7734, 288, 10792, 783, 7984, 18, 542, 30511, 12, 87, 1908, 30511, 1769, 10792, 17021, 6515, 273, 14015, 6558, 13, 14015, 7984, 1190, 26494, 13, 783, 7984, 2934, 588, 26494, 7675, 588, 12, 20, 13, 2934, 588, 19233, 26494, 5621, 10792, 364, 261, 474, 277, 273, 374, 31, 277, 411, 6515, 18, 1467, 5621, 277, 27245, 10792, 288, 13491, 309, 261, 87, 1908, 30511, 18, 14963, 5556, 2932, 8410, 7283, 329, 6, 3719, 13491, 288, 18701, 14015, 6558, 13, 6515, 18, 588, 12, 77, 13, 2934, 542, 8410, 12, 3767, 1769, 13491, 289, 13491, 469, 13491, 288, 18701, 14015, 6558, 13, 6515, 18, 588, 12, 77, 13, 2934, 542, 8410, 12, 5743, 1769, 13491, 289, 13491, 17021, 4166, 13314, 273, 14015, 6558, 13, 6515, 18, 588, 12, 77, 13, 2934, 588, 6485, 7130, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 3639, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984, 13, 512, 3644, 1304, 18, 3530, 12, 2972, 7984, 1769, 3639, 309, 14015, 2972, 7984, 1276, 14804, 1190, 26494, 3719, 368, 14804, 353, 14804, 1190, 26494, 3639, 288, 5411, 309, 261, 2972, 7984, 18, 588, 559, 7675, 14963, 12, 87, 559, 3719, 368, 19225, 4980, 353, 434, 333, 618, 261, 5190, 7984, 13, 5411, 288, 7734, 309, 16051, 2972, 7984, 18, 588, 30511, 7675, 14963, 12, 87, 1908, 30511, 3719, 368, 19225, 4980, 353, 434, 326, 1931, 12308, 7734, 288, 10792, 783, 7984, 2 ]
this.superClass = superClass;
setSuper(name == null ? Type.pointer_type : ClassType.make(name));
public void setSuper (ClassType superClass) { this.superClass = superClass; }
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/110c3fa4ab737b798514e3f374cb172d501ceba3/ClassType.java/buggy/gnu/bytecode/ClassType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 8051, 261, 18328, 18846, 13, 225, 288, 565, 444, 8051, 12, 529, 422, 446, 692, 1412, 18, 10437, 67, 723, 294, 1659, 559, 18, 6540, 12, 529, 10019, 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, 1071, 918, 444, 8051, 261, 18328, 18846, 13, 225, 288, 565, 444, 8051, 12, 529, 422, 446, 692, 1412, 18, 10437, 67, 723, 294, 1659, 559, 18, 6540, 12, 529, 10019, 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 ]
public boolean isFunction() {
public boolean isFunction() {
public boolean isFunction() { return itsFunctionType != 0; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/c3fc6c32a5dcb28dfdba7d54fc0f2593304a1ed6/InterpreterData.java/buggy/js/rhino/src/org/mozilla/javascript/InterpreterData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 11233, 1435, 288, 3639, 327, 2097, 2083, 559, 480, 374, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 377, 1071, 1250, 11233, 1435, 288, 3639, 327, 2097, 2083, 559, 480, 374, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
XMLResource resource = (XMLResource) collection.createResource(docName, "XMLResource");
Resource resource; if(binary) resource = collection.createResource(docName, "BinaryResource"); else resource = collection.createResource(docName, "XMLResource");
private void loadFromFile(Collection collection, File file, String docName) throws XPathException { if(file.isFile()) { if(docName == null) docName = file.getName(); try { XMLResource resource = (XMLResource) collection.createResource(docName, "XMLResource"); resource.setContent(file); collection.storeResource(resource); } catch (XMLDBException e) { throw new XPathException(getASTNode(), "Could not store file " + file.getAbsolutePath() + ": " + e.getMessage(), e); } } }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/34d35ac8959fb7002ca8c7d89e5afb09df11efd6/XMLDBStore.java/buggy/src/org/exist/xquery/functions/xmldb/XMLDBStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1262, 13087, 12, 2532, 1849, 16, 1387, 585, 16, 514, 997, 461, 13, 1216, 10172, 503, 288, 202, 202, 430, 12, 768, 18, 291, 812, 10756, 288, 1082, 202, 430, 12, 2434, 461, 422, 446, 13, 9506, 202, 2434, 461, 273, 585, 18, 17994, 5621, 1082, 202, 698, 288, 9506, 202, 4201, 1420, 1058, 273, 6862, 202, 12, 4201, 1420, 13, 1849, 18, 2640, 1420, 12, 2434, 461, 16, 315, 4201, 1420, 8863, 9506, 202, 3146, 18, 542, 1350, 12, 768, 1769, 9506, 202, 5548, 18, 2233, 1420, 12, 3146, 1769, 1082, 202, 97, 1044, 261, 4201, 2290, 503, 425, 13, 288, 9506, 202, 12849, 394, 10172, 503, 12, 588, 9053, 907, 9334, 315, 4445, 486, 1707, 585, 315, 397, 585, 18, 588, 10368, 743, 1435, 397, 9944, 202, 6877, 315, 397, 425, 18, 24906, 9334, 425, 1769, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1262, 13087, 12, 2532, 1849, 16, 1387, 585, 16, 514, 997, 461, 13, 1216, 10172, 503, 288, 202, 202, 430, 12, 768, 18, 291, 812, 10756, 288, 1082, 202, 430, 12, 2434, 461, 422, 446, 13, 9506, 202, 2434, 461, 273, 585, 18, 17994, 5621, 1082, 202, 698, 288, 9506, 202, 4201, 1420, 1058, 273, 6862, 202, 12, 4201, 1420, 13, 1849, 18, 2640, 1420, 12, 2434, 461, 16, 315, 4201, 1420, 8863, 9506, 202, 3146, 18, 542, 1350, 12, 768, 1769, 9506, 202, 5548, 18, 2233, 1420, 12, 3146, 1769, 1082, 202, 97, 1044, 261, 4201, 2290, 503, 425, 13, 288, 9506, 202, 12849, 394, 10172, 503, 12, 588, 9053, 907, 9334, 315, 4445, 2 ]
pc = catchStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1];
pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop];
public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; final Scriptable undefined = Undefined.instance; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = undefined; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = undefined; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean( ScriptRuntime.instanceOf(scope, lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(rhs, lhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop--]; lhs = stack[stackTop]; // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theData.itsThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, scope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : stack[++stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theData.itsThisObj; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[stackTop--]; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); if (theData.itsNestedFunctions[i] instanceof InterpretedFunction) { stack[++stackTop] = new InterpretedFunction( (InterpretedFunction) (theData.itsNestedFunctions[i]), scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); } else stack[++stackTop] = ScriptRuntime.createFunctionObject(scope, theData.itsNestedFunctions[i].getClass(), cx); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) { pc = finallyStack[tryStackTop - 1]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); tryStackTop--; } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) { pc = finallyStack[tryStackTop - 1]; if (pc == 0) throw jsx; stack[0] = jsx; tryStackTop--; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[tryStackTop - 1]; scope = scopeStack[tryStackTop - 1]; if (pc == 0) throw jx; tryStackTop--; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/1c7b998781b6501d979d7d3aa4eaf74c8b5531b5/Interpreter.java/clean/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 30010, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1033, 8499, 31, 3639, 1033, 8526, 2110, 273, 394, 1033, 63, 5787, 751, 18, 1282, 2747, 2624, 15533, 3639, 509, 2110, 3401, 273, 300, 21, 31, 3639, 1160, 8526, 277, 1085, 273, 326, 751, 18, 1282, 45, 1085, 31, 7734, 509, 6125, 273, 374, 31, 3639, 509, 277, 1085, 1782, 273, 326, 751, 18, 1282, 45, 1085, 3401, 31, 7734, 1033, 8526, 1191, 273, 446, 31, 3639, 368, 1399, 364, 394, 5814, 19, 407, 278, 30752, 5527, 18, 3639, 309, 261, 5787, 751, 18, 1282, 2747, 1333, 1031, 405, 374, 13, 5411, 1191, 273, 394, 1033, 63, 5787, 751, 18, 1282, 2747, 1333, 1031, 15533, 18701, 1033, 8526, 4153, 273, 446, 31, 3639, 727, 22780, 3109, 273, 22243, 18, 1336, 31, 3639, 509, 277, 273, 326, 751, 18, 1282, 3092, 1388, 18, 1467, 5621, 3639, 309, 261, 77, 405, 374, 13, 288, 5411, 4153, 273, 394, 1033, 63, 77, 15533, 5411, 364, 261, 77, 273, 374, 31, 277, 411, 326, 751, 18, 1282, 3092, 1388, 18, 588, 1662, 1380, 5621, 277, 27245, 288, 7734, 309, 261, 77, 1545, 326, 751, 18, 1282, 382, 2615, 18, 2469, 13, 10792, 4153, 63, 77, 65, 273, 3109, 31, 7734, 469, 4766, 565, 4153, 63, 77, 65, 273, 326, 751, 18, 1282, 382, 2615, 63, 77, 15533, 7734, 289, 5411, 364, 261, 274, 277, 411, 4153, 18, 2469, 31, 277, 27245, 7734, 4153, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 10634, 12, 30010, 751, 326, 751, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 1033, 8499, 31, 3639, 1033, 8526, 2110, 273, 394, 1033, 63, 5787, 751, 18, 1282, 2747, 2624, 15533, 3639, 509, 2110, 3401, 273, 300, 21, 31, 3639, 1160, 8526, 277, 1085, 273, 326, 751, 18, 1282, 45, 1085, 31, 7734, 509, 6125, 273, 374, 31, 3639, 509, 277, 1085, 1782, 273, 326, 751, 18, 1282, 45, 1085, 3401, 31, 7734, 1033, 8526, 1191, 273, 446, 31, 3639, 368, 1399, 364, 394, 5814, 19, 407, 278, 30752, 5527, 18, 3639, 309, 261, 5787, 751, 18, 1282, 2747, 1333, 1031, 405, 374, 13, 5411, 1191, 273, 394, 1033, 63, 5787, 751, 18, 1282, 2 ]
if (oldMap.get(ruby) == null) { oldMap.put(ruby, new RubyStack()); } ((RubyStack)oldMap.get(ruby)).push(ruby.getDynamicVars());
ruby.varMapStack.push(ruby.getDynamicVars());
public static void push(Ruby ruby) { // HACK +++ if (oldMap.get(ruby) == null) { oldMap.put(ruby, new RubyStack()); // throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); } // HACK --- ((RubyStack)oldMap.get(ruby)).push(ruby.getDynamicVars()); ruby.setDynamicVars(null); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/f629550c5947df9c1dbe414645f3dc76bcb70df4/RubyVarmap.java/clean/org/jruby/runtime/RubyVarmap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1817, 12, 54, 10340, 22155, 13, 288, 3639, 368, 670, 3649, 965, 15, 3639, 309, 261, 1673, 863, 18, 588, 12, 27768, 13, 422, 446, 13, 288, 5411, 1592, 863, 18, 458, 12, 27768, 16, 394, 19817, 2624, 10663, 5411, 368, 604, 394, 3235, 2932, 46, 54, 10340, 300, 10937, 43, 30, 12324, 7530, 364, 1592, 863, 316, 19817, 1537, 1458, 8863, 3639, 289, 3639, 368, 670, 3649, 9948, 7734, 14015, 54, 10340, 2624, 13, 1673, 863, 18, 588, 12, 27768, 13, 2934, 6206, 12, 27768, 18, 588, 9791, 5555, 10663, 3639, 22155, 18, 542, 9791, 5555, 12, 2011, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1817, 12, 54, 10340, 22155, 13, 288, 3639, 368, 670, 3649, 965, 15, 3639, 309, 261, 1673, 863, 18, 588, 12, 27768, 13, 422, 446, 13, 288, 5411, 1592, 863, 18, 458, 12, 27768, 16, 394, 19817, 2624, 10663, 5411, 368, 604, 394, 3235, 2932, 46, 54, 10340, 300, 10937, 43, 30, 12324, 7530, 364, 1592, 863, 316, 19817, 1537, 1458, 8863, 3639, 289, 3639, 368, 670, 3649, 9948, 7734, 14015, 54, 10340, 2624, 13, 1673, 863, 18, 588, 12, 27768, 13, 2934, 6206, 12, 27768, 18, 588, 9791, 5555, 10663, 3639, 22155, 18, 542, 9791, 5555, 12, 2011, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void mSTRING() throws RecognitionException { int STRING_StartIndex = input.index(); try { int type = STRING; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 49) ) { return ; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:17: ( ( '"' ( options {greedy=false; } : . )* '"' ) | ( '\'' ( options {greedy=false; } : . )* '\'' ) ) int alt10=2; int LA10_0 = input.LA(1); if ( LA10_0=='"' ) { alt10=1; } else if ( LA10_0=='\'' ) { alt10=2; } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("1006:1: STRING : ( ( \'\"\' ( options {greedy=false; } : . )* \'\"\' ) | ( \'\\\'\' ( options {greedy=false; } : . )* \'\\\'\' ) );", 10, 0, input); throw nvae; } switch (alt10) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:17: ( '"' ( options {greedy=false; } : . )* '"' ) { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:17: ( '"' ( options {greedy=false; } : . )* '"' ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:18: '"' ( options {greedy=false; } : . )* '"' { match('"'); if (failed) return ; // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:22: ( options {greedy=false; } : . )* loop8: do { int alt8=2; int LA8_0 = input.LA(1); if ( LA8_0=='"' ) { alt8=2; } else if ( (LA8_0>='\u0000' && LA8_0<='!')||(LA8_0>='#' && LA8_0<='\uFFFE') ) { alt8=1; } switch (alt8) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:49: . { matchAny(); if (failed) return ; } break; default : break loop8; } } while (true); match('"'); if (failed) return ; } } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:61: ( '\'' ( options {greedy=false; } : . )* '\'' ) { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:61: ( '\'' ( options {greedy=false; } : . )* '\'' ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:62: '\'' ( options {greedy=false; } : . )* '\'' { match('\''); if (failed) return ; // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:67: ( options {greedy=false; } : . )* loop9: do { int alt9=2; int LA9_0 = input.LA(1); if ( LA9_0=='\'' ) { alt9=2; } else if ( (LA9_0>='\u0000' && LA9_0<='&')||(LA9_0>='(' && LA9_0<='\uFFFE') ) { alt9=1; } switch (alt9) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1007:94: . { matchAny(); if (failed) return ; } break; default : break loop9; } } while (true); match('\''); if (failed) return ; } } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 49, STRING_StartIndex); } } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/7f81b86a0f548bd02b09afc74b46454cdf158154/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 5804, 1435, 1216, 9539, 288, 3639, 509, 9469, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 9469, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 5411, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 5411, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 17160, 13, 262, 288, 327, 274, 289, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 6625, 27, 30, 4033, 30, 261, 261, 4754, 261, 702, 288, 11556, 24009, 33, 5743, 31, 289, 294, 263, 8618, 4754, 262, 571, 261, 15053, 261, 702, 288, 11556, 24009, 33, 5743, 31, 289, 294, 263, 8618, 15053, 262, 262, 5411, 509, 3770, 2163, 33, 22, 31, 5411, 509, 2928, 2163, 67, 20, 273, 810, 18, 2534, 12, 21, 1769, 5411, 309, 261, 2928, 2163, 67, 20, 631, 4970, 11, 262, 288, 7734, 3770, 2163, 33, 21, 31, 5411, 289, 5411, 469, 309, 261, 2928, 2163, 67, 20, 18920, 11421, 262, 288, 7734, 3770, 2163, 33, 22, 31, 5411, 289, 5411, 469, 288, 7734, 309, 261, 823, 6440, 34, 20, 13, 288, 7307, 33, 3767, 31, 327, 274, 97, 7734, 17114, 15077, 273, 10792, 394, 17114, 2932, 6625, 26, 30, 21, 30, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 312, 5804, 1435, 1216, 9539, 288, 3639, 509, 9469, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 9469, 31, 5411, 509, 787, 273, 23577, 1016, 5621, 5411, 509, 980, 273, 9851, 5621, 5411, 509, 1149, 2555, 273, 23577, 2555, 382, 1670, 5621, 5411, 509, 1904, 273, 3155, 18, 5280, 67, 15814, 31, 5411, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 17160, 13, 262, 288, 327, 274, 289, 5411, 368, 385, 5581, 15298, 64, 10649, 8464, 17, 7482, 17, 2704, 64, 12215, 17, 9576, 64, 4816, 64, 5254, 64, 4683, 64, 3341, 64, 12215, 64, 4936, 64, 72, 1321, 18, 75, 30, 6625, 27, 30, 4033, 2 ]
test(DBus.Binding.Tests.class, tests, "InvertMapping", in, out);
test(DBus.Binding.Tests.class, tests, "InvertMapping", in, out);*/
public static void doTests(DBus.Binding.Tests tests, DBus.Binding.SingleTests singletests) { Random r = new Random(); int i; test(DBus.Binding.Tests.class, tests, "IdentityBool", false, false); test(DBus.Binding.Tests.class, tests, "IdentityBool", true, true); test(DBus.Binding.Tests.class, tests, "Invert", false, true); test(DBus.Binding.Tests.class, tests, "Invert", true, false); test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) 0, (byte) 0); test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) 1, (byte) 1); test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) -1, (byte) -1); test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) Byte.MAX_VALUE, (byte) Byte.MAX_VALUE); test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) Byte.MIN_VALUE, (byte) Byte.MIN_VALUE); i = r.nextInt(); test(DBus.Binding.Tests.class, tests, "IdentityByte", (byte) i, (byte) i); test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) 0, (short) 0); test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) 1, (short) 1); test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) -1, (short) -1); test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) Short.MAX_VALUE, (short) Short.MAX_VALUE); test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) Short.MIN_VALUE, (short) Short.MIN_VALUE); i = r.nextInt(); test(DBus.Binding.Tests.class, tests, "IdentityInt16", (short) i, (short) i); test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) 0, (int) 0); test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) 1, (int) 1); test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) -1, (int) -1); test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) Integer.MAX_VALUE, (int) Integer.MAX_VALUE); test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) Integer.MIN_VALUE, (int) Integer.MIN_VALUE); i = r.nextInt(); test(DBus.Binding.Tests.class, tests, "IdentityInt32", (int) i, (int) i); test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) 0, (long) 0); test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) 1, (long) 1); test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) -1, (long) -1); test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) Long.MAX_VALUE, (long) Long.MAX_VALUE); test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) Long.MIN_VALUE, (long) Long.MIN_VALUE); i = r.nextInt(); test(DBus.Binding.Tests.class, tests, "IdentityInt64", (long) i, (long) i); test(DBus.Binding.Tests.class, tests, "IdentityUInt16", new UInt16(0), new UInt16(0)); test(DBus.Binding.Tests.class, tests, "IdentityUInt16", new UInt16(1), new UInt16(1)); test(DBus.Binding.Tests.class, tests, "IdentityUInt16", new UInt16(UInt16.MAX_VALUE), new UInt16(UInt16.MAX_VALUE)); test(DBus.Binding.Tests.class, tests, "IdentityUInt16", new UInt16(UInt16.MIN_VALUE), new UInt16(UInt16.MIN_VALUE)); i = r.nextInt(); i = i > 0 ? i : -i; test(DBus.Binding.Tests.class, tests, "IdentityUInt16", new UInt16(i%UInt16.MAX_VALUE), new UInt16(i%UInt16.MAX_VALUE)); test(DBus.Binding.Tests.class, tests, "IdentityUInt32", new UInt32(0), new UInt32(0)); test(DBus.Binding.Tests.class, tests, "IdentityUInt32", new UInt32(1), new UInt32(1)); test(DBus.Binding.Tests.class, tests, "IdentityUInt32", new UInt32(UInt32.MAX_VALUE), new UInt32(UInt32.MAX_VALUE)); test(DBus.Binding.Tests.class, tests, "IdentityUInt32", new UInt32(UInt32.MIN_VALUE), new UInt32(UInt32.MIN_VALUE)); i = r.nextInt(); i = i > 0 ? i : -i; test(DBus.Binding.Tests.class, tests, "IdentityUInt32", new UInt32(i%UInt32.MAX_VALUE), new UInt32(i%UInt32.MAX_VALUE)); test(DBus.Binding.Tests.class, tests, "IdentityUInt64", new UInt64(0), new UInt64(0)); test(DBus.Binding.Tests.class, tests, "IdentityUInt64", new UInt64(1), new UInt64(1)); test(DBus.Binding.Tests.class, tests, "IdentityUInt64", new UInt64(UInt64.MAX_VALUE), new UInt64(UInt64.MAX_VALUE)); test(DBus.Binding.Tests.class, tests, "IdentityUInt64", new UInt64(UInt64.MIN_VALUE), new UInt64(UInt64.MIN_VALUE)); i = r.nextInt(); i = i > 0 ? i : -i; test(DBus.Binding.Tests.class, tests, "IdentityUInt64", new UInt64(i%UInt64.MAX_VALUE), new UInt64(i%UInt64.MAX_VALUE)); test(DBus.Binding.Tests.class, tests, "IdentityDouble", 0.0, 0.0); test(DBus.Binding.Tests.class, tests, "IdentityDouble", 1.0, 1.0); test(DBus.Binding.Tests.class, tests, "IdentityDouble", -1.0, -1.0); test(DBus.Binding.Tests.class, tests, "IdentityDouble", Double.MAX_VALUE, Double.MAX_VALUE); test(DBus.Binding.Tests.class, tests, "IdentityDouble", Double.MIN_VALUE, Double.MIN_VALUE); i = r.nextInt(); test(DBus.Binding.Tests.class, tests, "IdentityDouble", (double) i, (double) i); test(DBus.Binding.Tests.class, tests, "IdentityString", "", ""); test(DBus.Binding.Tests.class, tests, "IdentityString", "The Quick Brown Fox Jumped Over The Lazy Dog", "The Quick Brown Fox Jumped Over The Lazy Dog"); test(DBus.Binding.Tests.class, tests, "IdentityString", "ひらがなゲーム - かなぶん", "ひらがなゲーム - かなぶん"); testArray(DBus.Binding.Tests.class, tests, "IdentityBoolArray", Boolean.TYPE); testArray(DBus.Binding.Tests.class, tests, "IdentityByteArray", Byte.TYPE); testArray(DBus.Binding.Tests.class, tests, "IdentityInt16Array", Short.TYPE); testArray(DBus.Binding.Tests.class, tests, "IdentityInt32Array", Integer.TYPE); testArray(DBus.Binding.Tests.class, tests, "IdentityInt64Array", Long.TYPE); testArray(DBus.Binding.Tests.class, tests, "IdentityDoubleArray", Double.class); /* testArray(DBus.Binding.Tests.class, tests, "IdentityUInt16Array", UInt16.class); testArray(DBus.Binding.Tests.class, tests, "IdentityUInt32Array", UInt32.class); testArray(DBus.Binding.Tests.class, tests, "IdentityUInt64Array", UInt64.class); testArray(DBus.Binding.Tests.class, tests, "IdentityStringArray", String.class); int[] is = new int[0]; test(DBus.Binding.Tests.class, tests, "Sum", 0L, is); Random r = new Random(); int len = (r.nextInt() % 100) + 15; is = new int[(len<0 ? -len: len)+15]; long result = 0; for (int i = 0; i < len; i++) { is[i] = r.nextInt(); result += is[i]; } test(DBus.Binding.Tests.class, tests, "Sum", result, is); byte[] bs = new byte[0]; test(DBus.Binding.SingleTests.class, singletests, "Sum", (short) 0, bs); len = (r.nextInt() % 100); bs = new byte[(len<0 ? -len: len)+15]; short res = 0; for (int i = 0; i < len; i++) { bs[i] = (byte) r.nextInt(); res += bs[i]; } test(DBus.Binding.SingleTests.class, singletests, "Sum", res, bs); test(DBus.Binding.Tests.class, tests, "DeStruct", new DBus.Binding.Triplet<String,UInt32,Short>("hi", new UInt32(12), new Short((short) 99)), new DBus.Binding.TestStruct("hi", new UInt32(12), new Short((short) 99))); Map<String, String> in = new HashMap<String, String>(); Map<String, List<String>> out = new HashMap<String, List<String>>(); test(DBus.Binding.Tests.class, tests, "InvertMapping", in, out); in.put("hi", "there"); in.put("to", "there"); in.put("from", "here"); in.put("in", "out"); List<String> l = new Vector<String>(); l.add("hi"); l.add("to"); out.put("there", l); l = new Vector<String>(); l.add("from"); out.put("here", l); l = new Vector<String>(); l.add("in"); out.put("out", l); test(DBus.Binding.Tests.class, tests, "InvertMapping", in, out); test(DBus.Binding.Tests.class, tests, "Trigger", null, tests, new UInt64(21389479283L)); try { ctc.conn.sendSignal(new DBus.Binding.TestSignals.Trigger("/Test", new UInt16(15), 12.5)); } catch (DBusException DBe) { throw new DBusExecutionException(DBe.getMessage()); }*/ test(DBus.Binding.Tests.class, tests, "Exit", null); }
5401 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5401/7ef28f53bc2f8884398b5f04c486df608b436824/cross_test_client.java/clean/org/freedesktop/dbus/test/cross_test_client.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 760, 918, 741, 14650, 12, 2290, 407, 18, 5250, 18, 14650, 7434, 16, 2383, 407, 18, 5250, 18, 5281, 14650, 4864, 1810, 25563, 13, 282, 288, 1377, 8072, 436, 273, 394, 8072, 5621, 1377, 509, 277, 31, 1377, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 4334, 7464, 3113, 629, 16, 629, 1769, 4202, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 4334, 7464, 3113, 638, 16, 638, 1769, 2398, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 382, 1097, 3113, 629, 16, 638, 1769, 4202, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 382, 1097, 3113, 638, 16, 629, 1769, 2398, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 4334, 3216, 3113, 261, 7229, 13, 374, 16, 261, 7229, 13, 374, 1769, 4202, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 4334, 3216, 3113, 261, 7229, 13, 404, 16, 261, 7229, 13, 404, 1769, 4202, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 4334, 3216, 3113, 261, 7229, 13, 300, 21, 16, 261, 7229, 13, 300, 21, 1769, 4202, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 4334, 3216, 3113, 261, 7229, 13, 3506, 18, 6694, 67, 4051, 16, 261, 7229, 13, 3506, 18, 6694, 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, 565, 1071, 760, 918, 741, 14650, 12, 2290, 407, 18, 5250, 18, 14650, 7434, 16, 2383, 407, 18, 5250, 18, 5281, 14650, 4864, 1810, 25563, 13, 282, 288, 1377, 8072, 436, 273, 394, 8072, 5621, 1377, 509, 277, 31, 1377, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 4334, 7464, 3113, 629, 16, 629, 1769, 4202, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 4334, 7464, 3113, 638, 16, 638, 1769, 2398, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 315, 382, 1097, 3113, 629, 16, 638, 1769, 4202, 1842, 12, 2290, 407, 18, 5250, 18, 14650, 18, 1106, 16, 7434, 16, 2 ]
num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little);
num = in.readInt(); denom = in.readInt();
protected void initStandardMetadata() { try { Hashtable ifd = ifds[0]; super.initStandardMetadata(); Integer obj = new Integer(0); int offset; Integer k = new Integer(UIC4TAG); long[] temp = (long[]) ifd.get(k); Long[] q = new Long[temp.length]; for (int i=0; i<q.length; i++) q[i] = new Long(temp[i]); if (q == null) offset = -1; Integer w = new Integer(q[1].intValue()); if (w == null) offset = -1; else offset = w.intValue(); if (offset < 0) throw new FormatException("UIC4TAG not found"); in.seek(offset); int currentcode = -1; byte[] toread; TiffRational[] temp2 = (TiffRational[]) ifd.get(new Integer(METAMORPH_ID)); Long[] v = new Long[temp2.length]; for (int i=0; i<v.length; i++) v[i] = new Long(temp2[i].longValue()); if (v == null) throw new FormatException("Metamorph ID not found"); int planes = v[1].intValue(); boolean little = TiffTools.isLittleEndian(ifd); while ((currentcode < 66) && ((in.length() - in.getFilePointer()) > 2)) { currentcode = DataTools.read2SignedBytes(in, little); // variable declarations, because switch is dumb int num, denom; int xnum, xdenom, ynum, ydenom; double xpos, ypos; String thedate, thetime; switch (currentcode) { case 0: String autoscale = DataTools.read4SignedBytes(in, little) == 0 ? "no auto-scaling" : "16-bit to 8-bit scaling"; put("AutoScale", autoscale); break; case 1: put("MinScale", DataTools.read4SignedBytes(in, little)); break; case 2: put("MaxScale", DataTools.read4SignedBytes(in, little)); break; case 3: int calib = DataTools.read4SignedBytes(in, little); String calibration = calib == 0 ? "on" : "off"; put("Spatial Calibration", calibration); break; case 4: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("XCalibration", new TiffRational(num, denom)); break; case 5: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("YCalibration", new TiffRational(num, denom)); break; case 6: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); put("CalibrationUnits", new String(toread)); break; case 7: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); String name = new String(toread); put("Name", name); imageName = name; break; case 8: int thresh = DataTools.read4SignedBytes(in, little); String threshState = "off"; if (thresh == 1) threshState = "inside"; else if (thresh == 2) threshState = "outside"; put("ThreshState", threshState); break; case 9: put("ThreshStateRed", DataTools.read4SignedBytes(in, little)); break; // there is no 10 case 11: put("ThreshStateGreen", DataTools.read4SignedBytes(in, little)); break; case 12: put("ThreshStateBlue", DataTools.read4SignedBytes(in, little)); break; case 13: put("ThreshStateLo", DataTools.read4SignedBytes(in, little)); break; case 14: put("ThreshStateHi", DataTools.read4SignedBytes(in, little)); break; case 15: int zoom = DataTools.read4SignedBytes(in, little); put("Zoom", zoom);// OMETools.setAttribute(ome, "DisplayOptions", "Zoom", "" + zoom); break; case 16: // oh how we hate you Julian format... thedate = decodeDate(DataTools.read4SignedBytes(in, little)); thetime = decodeTime(DataTools.read4SignedBytes(in, little)); put("DateTime", thedate + " " + thetime); imageCreationDate = thedate + " " + thetime; break; case 17: thedate = decodeDate(DataTools.read4SignedBytes(in, little)); thetime = decodeTime(DataTools.read4SignedBytes(in, little)); put("LastSavedTime", thedate + " " + thetime); break; case 18: put("currentBuffer", DataTools.read4SignedBytes(in, little)); break; case 19: put("grayFit", DataTools.read4SignedBytes(in, little)); break; case 20: put("grayPointCount", DataTools.read4SignedBytes(in, little)); break; case 21: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayX", new TiffRational(num, denom)); break; case 22: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("gray", new TiffRational(num, denom)); break; case 23: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayMin", new TiffRational(num, denom)); break; case 24: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("grayMax", new TiffRational(num, denom)); break; case 25: num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); put("grayUnitName", new String(toread)); break; case 26: int standardLUT = DataTools.read4SignedBytes(in, little); String standLUT; switch (standardLUT) { case 0: standLUT = "monochrome"; break; case 1: standLUT = "pseudocolor"; break; case 2: standLUT = "Red"; break; case 3: standLUT = "Green"; break; case 4: standLUT = "Blue"; break; case 5: standLUT = "user-defined"; break; default: standLUT = "monochrome"; break; } put("StandardLUT", standLUT); break; case 27: put("Wavelength", DataTools.read4SignedBytes(in, little)); break; case 28: for (int i = 0; i < planes; i++) { xnum = DataTools.read4SignedBytes(in, little); xdenom = DataTools.read4SignedBytes(in, little); ynum = DataTools.read4SignedBytes(in, little); ydenom = DataTools.read4SignedBytes(in, little); xpos = xnum / xdenom; ypos = ynum / ydenom; put("Stage Position Plane " + i, "(" + xpos + ", " + ypos + ")"); } break; case 29: for (int i = 0; i < planes; i++) { xnum = DataTools.read4SignedBytes(in, little); xdenom = DataTools.read4SignedBytes(in, little); ynum = DataTools.read4SignedBytes(in, little); ydenom = DataTools.read4SignedBytes(in, little); xpos = xnum / xdenom; ypos = ynum / ydenom; put("Camera Offset Plane " + i, "(" + xpos + ", " + ypos + ")"); } break; case 30: put("OverlayMask", DataTools.read4SignedBytes(in, little)); break; case 31: put("OverlayCompress", DataTools.read4SignedBytes(in, little)); break; case 32: put("Overlay", DataTools.read4SignedBytes(in, little)); break; case 33: put("SpecialOverlayMask", DataTools.read4SignedBytes(in, little)); break; case 34: put("SpecialOverlayCompress", DataTools.read4SignedBytes(in, little)); break; case 35: put("SpecialOverlay", DataTools.read4SignedBytes(in, little)); break; case 36: put("ImageProperty", DataTools.read4SignedBytes(in, little)); break; case 37: for (int i = 0; i<planes; i++) { num = DataTools.read4SignedBytes(in, little); toread = new byte[num]; in.read(toread); String s = new String(toread); put("StageLabel Plane " + i, s); } break; case 38: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AutoScaleLoInfo", new TiffRational(num, denom)); break; case 39: num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AutoScaleHiInfo", new TiffRational(num, denom)); break; case 40: for (int i=0;i<planes;i++) { num = DataTools.read4SignedBytes(in, little); denom = DataTools.read4SignedBytes(in, little); put("AbsoluteZ Plane " + i, new TiffRational(num, denom)); } break; case 41: for (int i=0; i<planes; i++) { put("AbsoluteZValid Plane " + i, DataTools.read4SignedBytes(in, little)); } break; case 42: put("Gamma", DataTools.read4SignedBytes(in, little)); break; case 43: put("GammaRed", DataTools.read4SignedBytes(in, little)); break; case 44: put("GammaGreen", DataTools.read4SignedBytes(in, little)); break; case 45: put("GammaBlue", DataTools.read4SignedBytes(in, little)); break; } // end switch } } catch (NullPointerException n) { n.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (FormatException e) { e.printStackTrace(); } try { super.initStandardMetadata(); } catch (Throwable t) { t.printStackTrace(); } // parse (mangle) TIFF comment String descr = (String) metadata.get("Comment"); if (descr != null) { StringTokenizer st = new StringTokenizer(descr, "\n"); StringBuffer sb = new StringBuffer(); boolean first = true; while (st.hasMoreTokens()) { String line = st.nextToken(); int colon = line.indexOf(": "); if (colon < 0) { // normal line (not a key/value pair) if (line.trim().length() > 0) { // not a blank line sb.append(line); if (!line.endsWith(".")) sb.append("."); sb.append(" "); } first = false; continue; } if (first) { // first line could be mangled; make a reasonable guess int dot = line.lastIndexOf(".", colon); if (dot >= 0) { String s = line.substring(0, dot + 1); sb.append(s); if (!s.endsWith(".")) sb.append("."); sb.append(" "); } line = line.substring(dot + 1); colon -= dot + 1; first = false; } // add key/value pair embedded in comment as separate metadata String key = line.substring(0, colon); String value = line.substring(colon + 2); put(key, value); } // replace comment with trimmed version descr = sb.toString().trim(); if (descr.equals("")) metadata.remove("Comment"); else put("Comment", descr); } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/2df09d33bfdc966378aae0cc09cb503afb983bc2/MetamorphReader.java/clean/loci/formats/in/MetamorphReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 8336, 2277, 1435, 288, 565, 775, 288, 1377, 18559, 309, 72, 273, 309, 2377, 63, 20, 15533, 1377, 2240, 18, 2738, 8336, 2277, 5621, 1377, 2144, 1081, 273, 394, 2144, 12, 20, 1769, 1377, 509, 1384, 31, 1377, 2144, 417, 273, 394, 2144, 12, 57, 2871, 24, 7927, 1769, 1377, 1525, 8526, 1906, 273, 261, 5748, 63, 5717, 309, 72, 18, 588, 12, 79, 1769, 1377, 3407, 8526, 1043, 273, 394, 3407, 63, 5814, 18, 2469, 15533, 1377, 364, 261, 474, 277, 33, 20, 31, 277, 32, 85, 18, 2469, 31, 277, 27245, 1043, 63, 77, 65, 273, 394, 3407, 12, 5814, 63, 77, 19226, 1377, 309, 261, 85, 422, 446, 13, 1384, 273, 300, 21, 31, 1377, 2144, 341, 273, 394, 2144, 12, 85, 63, 21, 8009, 474, 620, 10663, 1377, 309, 261, 91, 422, 446, 13, 1384, 273, 300, 21, 31, 1377, 469, 1384, 273, 225, 341, 18, 474, 620, 5621, 1377, 309, 261, 3348, 411, 374, 13, 604, 394, 4077, 503, 2932, 57, 2871, 24, 7927, 486, 1392, 8863, 1377, 316, 18, 16508, 12, 3348, 1769, 1377, 509, 783, 710, 273, 300, 21, 31, 1377, 1160, 8526, 358, 896, 31, 1377, 399, 3048, 54, 8371, 8526, 1906, 22, 273, 261, 56, 3048, 54, 8371, 63, 5717, 3639, 309, 72, 18, 588, 12, 2704, 2144, 12, 18315, 2192, 916, 8939, 67, 734, 10019, 1377, 3407, 8526, 331, 273, 394, 3407, 63, 5814, 22, 18, 2469, 15533, 1377, 364, 261, 474, 277, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 8336, 2277, 1435, 288, 565, 775, 288, 1377, 18559, 309, 72, 273, 309, 2377, 63, 20, 15533, 1377, 2240, 18, 2738, 8336, 2277, 5621, 1377, 2144, 1081, 273, 394, 2144, 12, 20, 1769, 1377, 509, 1384, 31, 1377, 2144, 417, 273, 394, 2144, 12, 57, 2871, 24, 7927, 1769, 1377, 1525, 8526, 1906, 273, 261, 5748, 63, 5717, 309, 72, 18, 588, 12, 79, 1769, 1377, 3407, 8526, 1043, 273, 394, 3407, 63, 5814, 18, 2469, 15533, 1377, 364, 261, 474, 277, 33, 20, 31, 277, 32, 85, 18, 2469, 31, 277, 27245, 1043, 63, 77, 65, 273, 394, 3407, 12, 5814, 63, 77, 19226, 1377, 309, 261, 85, 422, 446, 13, 1384, 273, 300, 2 ]
public static IDebugTarget newDebugTarget( ILaunch launch, IProject project, ICDITarget cdiTarget, final String name, IProcess debuggeeProcess, IBinaryObject file, boolean allowTerminate, boolean allowDisconnect, boolean resumeTarget ) throws DebugException { return newDebugTarget( launch, project, cdiTarget, name, debuggeeProcess, file, allowTerminate, allowDisconnect, null, resumeTarget );
public static IDebugTarget newDebugTarget( final ILaunch launch, final IProject project, final ICDITarget cdiTarget, final String name, final IProcess debuggeeProcess, final IBinaryObject file, final boolean allowTerminate, final boolean allowDisconnect, final String stopSymbol, final boolean resumeTarget ) throws DebugException { final IDebugTarget[] target = new IDebugTarget[1]; IWorkspaceRunnable r = new IWorkspaceRunnable() { public void run( IProgressMonitor m ) throws CoreException { target[0] = new CDebugTarget( launch, project, cdiTarget, name, debuggeeProcess, file, allowTerminate, allowDisconnect ); ((CDebugTarget)target[0]).start( stopSymbol, resumeTarget ); } }; try { ResourcesPlugin.getWorkspace().run( r, null ); } catch( CoreException e ) { CDebugCorePlugin.log( e ); throw new DebugException( e.getStatus() ); } return target[0];
public static IDebugTarget newDebugTarget( ILaunch launch, IProject project, ICDITarget cdiTarget, final String name, IProcess debuggeeProcess, IBinaryObject file, boolean allowTerminate, boolean allowDisconnect, boolean resumeTarget ) throws DebugException { return newDebugTarget( launch, project, cdiTarget, name, debuggeeProcess, file, allowTerminate, allowDisconnect, null, resumeTarget ); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/17464c08f4d94cc47098c0d0ca9a1f7ddc481fe8/CDIDebugModel.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDIDebugModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 2829, 2326, 394, 2829, 2326, 12, 467, 9569, 8037, 16, 467, 4109, 1984, 16, 467, 10160, 1285, 826, 276, 3211, 2326, 16, 727, 514, 508, 16, 467, 2227, 1198, 908, 73, 2227, 16, 467, 5905, 921, 585, 16, 1250, 1699, 26106, 16, 1250, 1699, 18895, 16, 1250, 10774, 2326, 262, 1216, 4015, 503, 288, 202, 202, 2463, 394, 2829, 2326, 12, 8037, 16, 1984, 16, 276, 3211, 2326, 16, 508, 16, 1198, 908, 73, 2227, 16, 585, 16, 1699, 26106, 16, 1699, 18895, 16, 446, 16, 10774, 2326, 11272, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 467, 2829, 2326, 394, 2829, 2326, 12, 467, 9569, 8037, 16, 467, 4109, 1984, 16, 467, 10160, 1285, 826, 276, 3211, 2326, 16, 727, 514, 508, 16, 467, 2227, 1198, 908, 73, 2227, 16, 467, 5905, 921, 585, 16, 1250, 1699, 26106, 16, 1250, 1699, 18895, 16, 1250, 10774, 2326, 262, 1216, 4015, 503, 288, 202, 202, 2463, 394, 2829, 2326, 12, 8037, 16, 1984, 16, 276, 3211, 2326, 16, 508, 16, 1198, 908, 73, 2227, 16, 585, 16, 1699, 26106, 16, 1699, 18895, 16, 446, 16, 10774, 2326, 11272, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
problemReporter().superfluousSemicolon(this.endPosition+1, this.endStatementPosition);
if(!this.statementRecoveryActivated) problemReporter().superfluousSemicolon(this.endPosition+1, this.endStatementPosition);
protected void consumeEmptyTypeDeclaration() { // TypeDeclaration ::= ';' pushOnAstLengthStack(0); problemReporter().superfluousSemicolon(this.endPosition+1, this.endStatementPosition); flushCommentsDefinedPriorTo(this.endStatementPosition);}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/d85ef445439a7932d1fe7c7dafa9bf16e2d2dd51/Parser.java/clean/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 7865, 1921, 559, 6094, 1435, 288, 202, 759, 1412, 6094, 493, 33, 7554, 225, 202, 6206, 1398, 21385, 1782, 2624, 12, 20, 1769, 202, 18968, 13289, 7675, 9565, 2242, 89, 1481, 13185, 17280, 12, 2211, 18, 409, 2555, 15, 21, 16, 333, 18, 409, 3406, 2555, 1769, 202, 11330, 9051, 8116, 25355, 774, 12, 2211, 18, 409, 3406, 2555, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4750, 918, 7865, 1921, 559, 6094, 1435, 288, 202, 759, 1412, 6094, 493, 33, 7554, 225, 202, 6206, 1398, 21385, 1782, 2624, 12, 20, 1769, 202, 18968, 13289, 7675, 9565, 2242, 89, 1481, 13185, 17280, 12, 2211, 18, 409, 2555, 15, 21, 16, 333, 18, 409, 3406, 2555, 1769, 202, 11330, 9051, 8116, 25355, 774, 12, 2211, 18, 409, 3406, 2555, 1769, 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 ]
double length = getLengthProperty(thisObj);
long length = getLengthProperty(thisObj);
private static Object jsFunction_splice(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { /* create an empty Array to return. */ scope = getTopLevelScope(scope); Object result = ScriptRuntime.newObject(cx, scope, "Array", null); int argc = args.length; if (argc == 0) return result; double length = getLengthProperty(thisObj); /* Convert the first argument into a starting index. */ double begin = ScriptRuntime.toInteger(args[0]); double end; double delta; double count; if (begin < 0) { begin += length; if (begin < 0) begin = 0; } else if (begin > length) { begin = length; } argc--; /* Convert the second argument from a count into a fencepost index. */ delta = length - begin; if (args.length == 1) { count = delta; end = length; } else { count = ScriptRuntime.toInteger(args[1]); if (count < 0) count = 0; else if (count > delta) count = delta; end = begin + count; argc--; } long lbegin = (long)begin; long lend = (long)end; /* If there are elements to remove, put them into the return value. */ if (count > 0) { if (count == 1 && (cx.getLanguageVersion() == Context.VERSION_1_2)) { /* * JS lacks "list context", whereby in Perl one turns the * single scalar that's spliced out into an array just by * assigning it to @single instead of $single, or by using it * as Perl push's first argument, for instance. * * JS1.2 emulated Perl too closely and returned a non-Array for * the single-splice-out case, requiring callers to test and * wrap in [] if necessary. So JS1.3, default, and other * versions all return an array of length 1 for uniformity. */ result = getElem(thisObj, lbegin); } else { for (long last = lbegin; last < lend; last++) { Scriptable resultArray = (Scriptable)result; Object temp = getElem(thisObj, last); setElem(resultArray, last - lbegin, temp); } } } else if (count == 0 && cx.getLanguageVersion() == Context.VERSION_1_2) { /* Emulate C JS1.2; if no elements are removed, return undefined. */ result = Context.getUndefinedValue(); } /* Find the direction (up or down) to copy and make way for argv. */ delta = argc - count; if (delta > 0) { for (long last = (long)length - 1; last >= lend; last--) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } else if (delta < 0) { for (long last = lend; last < length; last++) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } /* Copy from argv into the hole to complete the splice. */ int argoffset = args.length - argc; for (int i = 0; i < argc; i++) { setElem(thisObj, lbegin + i, args[i + argoffset]); } /* Update length in case we deleted elements from the end. */ ScriptRuntime.setProp(thisObj, "length", new Double(length + delta), thisObj); return result; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/9a4a059b275cc2eb1fb0e0946f333dc746b26cc2/NativeArray.java/clean/src/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 3828, 2083, 67, 19535, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 5411, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 1748, 752, 392, 1008, 1510, 358, 327, 18, 1195, 3639, 2146, 273, 13729, 2355, 3876, 12, 4887, 1769, 3639, 1033, 563, 273, 7739, 5576, 18, 2704, 921, 12, 71, 92, 16, 2146, 16, 315, 1076, 3113, 446, 1769, 3639, 509, 1501, 71, 273, 833, 18, 2469, 31, 3639, 309, 261, 3175, 71, 422, 374, 13, 5411, 327, 563, 31, 3639, 1525, 769, 273, 9888, 1396, 12, 2211, 2675, 1769, 3639, 1748, 4037, 326, 1122, 1237, 1368, 279, 5023, 770, 18, 1195, 3639, 1645, 2376, 273, 7739, 5576, 18, 869, 4522, 12, 1968, 63, 20, 19226, 3639, 1645, 679, 31, 3639, 1645, 3622, 31, 3639, 1645, 1056, 31, 3639, 309, 261, 10086, 411, 374, 13, 288, 5411, 2376, 1011, 769, 31, 5411, 309, 261, 10086, 411, 374, 13, 7734, 2376, 273, 374, 31, 3639, 289, 469, 309, 261, 10086, 405, 769, 13, 288, 5411, 2376, 273, 769, 31, 3639, 289, 3639, 1501, 71, 413, 31, 3639, 1748, 4037, 326, 2205, 1237, 628, 279, 1056, 1368, 279, 284, 802, 2767, 770, 18, 1195, 3639, 3622, 273, 769, 300, 2376, 31, 3639, 309, 261, 1968, 18, 2469, 422, 404, 13, 288, 5411, 1056, 273, 3622, 31, 5411, 679, 273, 769, 31, 3639, 289, 469, 288, 5411, 1056, 273, 7739, 5576, 18, 869, 4522, 12, 1968, 63, 21, 19226, 5411, 309, 261, 1883, 411, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 3828, 2083, 67, 19535, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 5411, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 1748, 752, 392, 1008, 1510, 358, 327, 18, 1195, 3639, 2146, 273, 13729, 2355, 3876, 12, 4887, 1769, 3639, 1033, 563, 273, 7739, 5576, 18, 2704, 921, 12, 71, 92, 16, 2146, 16, 315, 1076, 3113, 446, 1769, 3639, 509, 1501, 71, 273, 833, 18, 2469, 31, 3639, 309, 261, 3175, 71, 422, 374, 13, 5411, 327, 563, 31, 3639, 1525, 769, 273, 9888, 1396, 12, 2211, 2675, 1769, 3639, 1748, 4037, 326, 1122, 1237, 1368, 279, 5023, 770, 18, 1195, 3639, 1645, 2376, 273, 7739, 5576, 18, 869, 4522, 12, 1968, 2 ]
paint(g, holeX + holeWidth, holeY, width - (holeX + holeWidth), stripeHeight);
paint(g, holeX + holeWidth, holeY, x + width - (holeX + holeWidth), stripeHeight);
public void paintExcept(Graphics g, int holeX, int holeY, int holeWidth, int holeHeight) { int stripeHeight; stripeHeight = holeY - y; if (stripeHeight > 0) paint(g, x, y, width, stripeHeight); // patch #1 in the image above stripeHeight = holeHeight; if (stripeHeight > 0) { paint(g, x, holeY, holeX - x, stripeHeight); // patches #2 and #3 paint(g, holeX + holeWidth, holeY, width - (holeX + holeWidth), stripeHeight); } stripeHeight = height - (holeY - y + holeHeight); if (stripeHeight > 0) paint(g, x, y + height - stripeHeight, width, stripeHeight); // #4 }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ae9ec43c5570a0f69e3d8c8b733283719f52a770/TitledBorder.java/clean/core/src/classpath/javax/javax/swing/border/TitledBorder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 12574, 30212, 12, 17558, 314, 16, 17311, 509, 19922, 60, 16, 509, 19922, 61, 16, 509, 19922, 2384, 16, 509, 19922, 2686, 13, 1377, 288, 3639, 509, 14268, 2686, 31, 3639, 14268, 2686, 273, 19922, 61, 300, 677, 31, 3639, 309, 261, 26991, 2686, 405, 374, 13, 1850, 12574, 12, 75, 16, 619, 16, 677, 16, 1835, 16, 14268, 2686, 1769, 282, 368, 4729, 468, 21, 316, 326, 1316, 5721, 3639, 14268, 2686, 273, 19922, 2686, 31, 3639, 309, 261, 26991, 2686, 405, 374, 13, 3639, 288, 1850, 12574, 12, 75, 16, 619, 16, 19922, 61, 16, 19922, 60, 300, 619, 16, 14268, 2686, 1769, 225, 368, 16482, 468, 22, 471, 468, 23, 1850, 12574, 12, 75, 16, 19922, 60, 397, 19922, 2384, 16, 19922, 61, 16, 619, 397, 1835, 300, 261, 27167, 60, 397, 19922, 2384, 3631, 14268, 2686, 1769, 3639, 289, 3639, 14268, 2686, 273, 2072, 300, 261, 27167, 61, 300, 677, 397, 19922, 2686, 1769, 3639, 309, 261, 26991, 2686, 405, 374, 13, 1850, 12574, 12, 75, 16, 619, 16, 677, 397, 2072, 300, 14268, 2686, 16, 1835, 16, 14268, 2686, 1769, 368, 468, 24, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 12574, 30212, 12, 17558, 314, 16, 17311, 509, 19922, 60, 16, 509, 19922, 61, 16, 509, 19922, 2384, 16, 509, 19922, 2686, 13, 1377, 288, 3639, 509, 14268, 2686, 31, 3639, 14268, 2686, 273, 19922, 61, 300, 677, 31, 3639, 309, 261, 26991, 2686, 405, 374, 13, 1850, 12574, 12, 75, 16, 619, 16, 677, 16, 1835, 16, 14268, 2686, 1769, 282, 368, 4729, 468, 21, 316, 326, 1316, 5721, 3639, 14268, 2686, 273, 19922, 2686, 31, 3639, 309, 261, 26991, 2686, 405, 374, 13, 3639, 288, 1850, 12574, 12, 75, 16, 619, 16, 19922, 61, 16, 19922, 60, 300, 619, 16, 14268, 2686, 1769, 225, 368, 16482, 468, 22, 471, 468, 23, 1850, 12574, 12, 2 ]
WorkbenchColors.shutdown(); JFaceColors.disposeColors();
WorkbenchColors.shutdown();
private void shutdown() { // shutdown application-specific portions first advisor.postShutdown(); // for dynamic UI Platform.getExtensionRegistry().removeRegistryChangeListener(extensionEventHandler); // shutdown the rest of the workbench WorkbenchColors.shutdown(); JFaceColors.disposeColors(); if (getDecoratorManager() != null) { ((DecoratorManager) getDecoratorManager()).shutdown(); } activityHelper.shutdown(); ProgressManager.getInstance().shutdown(); uninitializeImages(); if (WorkbenchPlugin.getDefault() != null) { WorkbenchPlugin.getDefault().reset(); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d9f96fc2c89d5f2c81351ce5a11fe651ecf37c71/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5731, 1435, 288, 202, 202, 759, 5731, 2521, 17, 12524, 1756, 1115, 1122, 202, 202, 361, 10227, 18, 2767, 10961, 5621, 202, 202, 759, 364, 5976, 6484, 3196, 202, 8201, 18, 588, 3625, 4243, 7675, 4479, 4243, 15744, 12, 6447, 16402, 1769, 202, 202, 759, 5731, 326, 3127, 434, 326, 1440, 22144, 202, 202, 2421, 22144, 12570, 18, 15132, 5621, 202, 202, 46, 11824, 12570, 18, 2251, 4150, 12570, 5621, 202, 202, 430, 261, 588, 10361, 1318, 1435, 480, 446, 13, 288, 1082, 202, 12443, 10361, 1318, 13, 336, 10361, 1318, 1435, 2934, 15132, 5621, 202, 202, 97, 202, 202, 9653, 2276, 18, 15132, 5621, 202, 202, 5491, 1318, 18, 588, 1442, 7675, 15132, 5621, 202, 202, 318, 11160, 8946, 5621, 202, 202, 430, 261, 2421, 22144, 3773, 18, 588, 1868, 1435, 480, 446, 13, 288, 1082, 202, 2421, 22144, 3773, 18, 588, 1868, 7675, 6208, 5621, 202, 202, 97, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 5731, 1435, 288, 202, 202, 759, 5731, 2521, 17, 12524, 1756, 1115, 1122, 202, 202, 361, 10227, 18, 2767, 10961, 5621, 202, 202, 759, 364, 5976, 6484, 3196, 202, 8201, 18, 588, 3625, 4243, 7675, 4479, 4243, 15744, 12, 6447, 16402, 1769, 202, 202, 759, 5731, 326, 3127, 434, 326, 1440, 22144, 202, 202, 2421, 22144, 12570, 18, 15132, 5621, 202, 202, 46, 11824, 12570, 18, 2251, 4150, 12570, 5621, 202, 202, 430, 261, 588, 10361, 1318, 1435, 480, 446, 13, 288, 1082, 202, 12443, 10361, 1318, 13, 336, 10361, 1318, 1435, 2934, 15132, 5621, 202, 202, 97, 202, 202, 9653, 2276, 18, 15132, 5621, 202, 202, 5491, 1318, 18, 588, 1442, 7675, 15132, 5621, 2 ]
setOnclick((String) evalAttr("onclick", getOnclick(),
setOnclick((String) evalAttr("onclick", getOnclickExpr(),
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELButtonTag.java/buggy/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELButtonTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 653, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 8853, 12443, 12, 5507, 13, 5302, 3843, 2932, 9278, 3113, 336, 8853, 4742, 9334, 4766, 5411, 3411, 18, 1106, 13, 2934, 13491, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 8853, 12, 5743, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 15034, 12443, 12, 5507, 13, 5302, 3843, 2932, 19626, 3113, 8088, 329, 4742, 9334, 4766, 6647, 3411, 18, 1106, 13, 2934, 15604, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 15034, 12, 5743, 1769, 3639, 289, 3639, 775, 288, 5411, 22131, 27065, 12443, 780, 13, 5302, 3843, 2932, 265, 27065, 3113, 30070, 27065, 9334, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 2 ]
Set results = extractor.execute( project, pluginDescriptor );
List results = extractor.execute( project, pluginDescriptor );
public void testShouldFindTwoMojoDescriptorsInTestSourceDirectory() throws Exception { JavaMojoDescriptorExtractor extractor = new JavaMojoDescriptorExtractor(); File sourceFile = fileOf( "dir-flag.txt" ); System.out.println( "found source file: " + sourceFile ); File dir = sourceFile.getParentFile(); Model model = new Model(); model.setArtifactId( "maven-unitTesting-plugin" ); MavenProject project = new MavenProject( model ); project.setFile( new File( dir, "pom.xml" ) ); project.addCompileSourceRoot( new File( dir, "source" ).getPath() ); PluginDescriptor pluginDescriptor = new PluginDescriptor(); pluginDescriptor.setGoalPrefix( "test" ); Set results = extractor.execute( project, pluginDescriptor ); assertEquals( 2, results.size() ); }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/5877385df1e5b2dff3e57131c8fac869556c3b8c/JavaMojoDescriptorExtractorTest.java/clean/maven-plugin-tools/maven-plugin-tools-java/src/test/java/org/apache/maven/tools/plugin/extractor/java/JavaMojoDescriptorExtractorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14309, 3125, 11710, 49, 10007, 12705, 382, 4709, 1830, 2853, 1435, 3639, 1216, 1185, 565, 288, 3639, 5110, 49, 10007, 3187, 10958, 14031, 273, 394, 5110, 49, 10007, 3187, 10958, 5621, 3639, 1387, 16338, 273, 585, 951, 12, 315, 1214, 17, 6420, 18, 5830, 6, 11272, 3639, 2332, 18, 659, 18, 8222, 12, 315, 7015, 1084, 585, 30, 315, 397, 16338, 11272, 3639, 1387, 1577, 273, 16338, 18, 588, 3054, 812, 5621, 3639, 3164, 938, 273, 394, 3164, 5621, 3639, 938, 18, 542, 7581, 548, 12, 315, 81, 7638, 17, 4873, 22218, 17, 4094, 6, 11272, 3639, 17176, 4109, 1984, 273, 394, 17176, 4109, 12, 938, 11272, 3639, 1984, 18, 542, 812, 12, 394, 1387, 12, 1577, 16, 315, 84, 362, 18, 2902, 6, 262, 11272, 3639, 1984, 18, 1289, 9937, 1830, 2375, 12, 394, 1387, 12, 1577, 16, 315, 3168, 6, 262, 18, 588, 743, 1435, 11272, 3639, 6258, 3187, 1909, 3187, 273, 394, 6258, 3187, 5621, 3639, 1909, 3187, 18, 542, 27716, 2244, 12, 315, 3813, 6, 11272, 3639, 987, 1686, 273, 14031, 18, 8837, 12, 1984, 16, 1909, 3187, 11272, 3639, 1815, 8867, 12, 576, 16, 1686, 18, 1467, 1435, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14309, 3125, 11710, 49, 10007, 12705, 382, 4709, 1830, 2853, 1435, 3639, 1216, 1185, 565, 288, 3639, 5110, 49, 10007, 3187, 10958, 14031, 273, 394, 5110, 49, 10007, 3187, 10958, 5621, 3639, 1387, 16338, 273, 585, 951, 12, 315, 1214, 17, 6420, 18, 5830, 6, 11272, 3639, 2332, 18, 659, 18, 8222, 12, 315, 7015, 1084, 585, 30, 315, 397, 16338, 11272, 3639, 1387, 1577, 273, 16338, 18, 588, 3054, 812, 5621, 3639, 3164, 938, 273, 394, 3164, 5621, 3639, 938, 18, 542, 7581, 548, 12, 315, 81, 7638, 17, 4873, 22218, 17, 4094, 6, 11272, 3639, 17176, 4109, 1984, 273, 394, 17176, 4109, 12, 938, 11272, 3639, 1984, 18, 542, 812, 12, 394, 1387, 2 ]
int savedLength = xpath.length(); getXPath(root, xpath); int oldLength = xpath.length();
private ICUResourceWriter.Resource parseCurrencyData(Node root, StringBuffer xpath){ ICUResourceWriter.Resource first = null; ICUResourceWriter.Resource current = null; int savedLength = xpath.length(); getXPath(root, xpath); int oldLength = xpath.length(); if(isDraft(root, xpath)&& !writeDraft){ return null; } //the alt atrribute is set .. so ignore the resource if(isAlternate(root)){ return null; } for(Node node=root.getFirstChild(); node!=null; node=node.getNextSibling()){ if(node.getNodeType()!=Node.ELEMENT_NODE){ continue; } String name = node.getNodeName(); ICUResourceWriter.Resource res = null; getXPath(node, xpath); if(name.equals(LDMLConstants.REGION)){ res = parseCurrencyRegion(node, xpath); }else if(name.equals(LDMLConstants.FRACTIONS)){ res = parseCurrencyFraction(node, xpath); }else{ System.err.println("Encountered unknown element: "+name); System.exit(-1); } if(res!=null){ if(current == null){ current = first = res; }else{ current.next = res; current = findLast(res); } res = null; } xpath.delete(oldLength, xpath.length()); } xpath.delete(savedLength, xpath.length()); return first; }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/590794d27fc46553bbd8a2c851e682b74d2e9a4f/LDML2ICUConverter.java/clean/icu4j/src/com/ibm/icu/dev/tool/cldr/LDML2ICUConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 28009, 1420, 2289, 18, 1420, 1109, 7623, 751, 12, 907, 1365, 16, 6674, 6748, 15329, 3639, 28009, 1420, 2289, 18, 1420, 1122, 273, 446, 31, 3639, 28009, 1420, 2289, 18, 1420, 783, 273, 446, 31, 3639, 509, 5198, 1782, 273, 6748, 18, 2469, 5621, 3639, 6538, 743, 12, 3085, 16, 6748, 1769, 3639, 509, 1592, 1782, 273, 6748, 18, 2469, 5621, 3639, 309, 12, 291, 12714, 12, 3085, 16, 6748, 13, 10, 10, 401, 2626, 12714, 15329, 5411, 327, 446, 31, 3639, 289, 3639, 368, 5787, 3770, 622, 523, 495, 624, 353, 444, 6116, 1427, 2305, 326, 1058, 3639, 309, 12, 291, 25265, 12, 3085, 3719, 95, 5411, 327, 446, 31, 3639, 289, 3639, 364, 12, 907, 756, 33, 3085, 18, 588, 3759, 1763, 5621, 756, 5, 33, 2011, 31, 756, 33, 2159, 18, 588, 2134, 10291, 10756, 95, 5411, 309, 12, 2159, 18, 588, 15101, 1435, 5, 33, 907, 18, 10976, 67, 8744, 15329, 7734, 1324, 31, 5411, 289, 5411, 514, 508, 273, 756, 18, 588, 18948, 5621, 5411, 28009, 1420, 2289, 18, 1420, 400, 273, 446, 31, 5411, 6538, 743, 12, 2159, 16, 6748, 1769, 5411, 309, 12, 529, 18, 14963, 12, 12069, 1495, 2918, 18, 28314, 3719, 95, 9079, 400, 273, 1109, 7623, 5165, 12, 2159, 16, 6748, 1769, 5411, 289, 12107, 309, 12, 529, 18, 14963, 12, 12069, 1495, 2918, 18, 30316, 55, 3719, 95, 7734, 400, 273, 1109, 7623, 13724, 12, 2159, 16, 6748, 1769, 5411, 289, 12107, 95, 7734, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28009, 1420, 2289, 18, 1420, 1109, 7623, 751, 12, 907, 1365, 16, 6674, 6748, 15329, 3639, 28009, 1420, 2289, 18, 1420, 1122, 273, 446, 31, 3639, 28009, 1420, 2289, 18, 1420, 783, 273, 446, 31, 3639, 509, 5198, 1782, 273, 6748, 18, 2469, 5621, 3639, 6538, 743, 12, 3085, 16, 6748, 1769, 3639, 509, 1592, 1782, 273, 6748, 18, 2469, 5621, 3639, 309, 12, 291, 12714, 12, 3085, 16, 6748, 13, 10, 10, 401, 2626, 12714, 15329, 5411, 327, 446, 31, 3639, 289, 3639, 368, 5787, 3770, 622, 523, 495, 624, 353, 444, 6116, 1427, 2305, 326, 1058, 3639, 309, 12, 291, 25265, 12, 3085, 3719, 95, 5411, 327, 446, 31, 3639, 289, 3639, 364, 12, 907, 2 ]
setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY)));
{ setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY))); super.registerKeyboardAction(action, accelerator, JComponent.WHEN_IN_FOCUSED_WINDOW); }
protected void configurePropertiesFromAction(Action action) { super.configurePropertiesFromAction(action); if (! (this instanceof JMenu) && action != null) setAccelerator((KeyStroke) (action.getValue(Action.ACCELERATOR_KEY))); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/JMenuItem.java/buggy/core/src/classpath/javax/javax/swing/JMenuItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 5068, 2297, 1265, 1803, 12, 1803, 1301, 13, 225, 288, 565, 2240, 18, 14895, 2297, 1265, 1803, 12, 1128, 1769, 565, 309, 16051, 261, 2211, 1276, 804, 4599, 13, 597, 1301, 480, 446, 13, 1377, 288, 444, 28417, 12443, 653, 14602, 13, 261, 1128, 18, 24805, 12, 1803, 18, 31110, 14668, 3575, 67, 3297, 3719, 1769, 2240, 18, 4861, 17872, 1803, 12, 1128, 16, 15153, 7385, 16, 29058, 18, 12557, 1157, 67, 706, 67, 3313, 39, 20093, 67, 23407, 1769, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 5068, 2297, 1265, 1803, 12, 1803, 1301, 13, 225, 288, 565, 2240, 18, 14895, 2297, 1265, 1803, 12, 1128, 1769, 565, 309, 16051, 261, 2211, 1276, 804, 4599, 13, 597, 1301, 480, 446, 13, 1377, 288, 444, 28417, 12443, 653, 14602, 13, 261, 1128, 18, 24805, 12, 1803, 18, 31110, 14668, 3575, 67, 3297, 3719, 1769, 2240, 18, 4861, 17872, 1803, 12, 1128, 16, 15153, 7385, 16, 29058, 18, 12557, 1157, 67, 706, 67, 3313, 39, 20093, 67, 23407, 1769, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public String getTypeString() { return type; }
public abstract String getTypeString();
public String getTypeString() { return type; }
11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/3ad1bf448b0bbc5b930eabe830e65e56526cd301/Type.java/buggy/src/polyglot/types/Type.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 3130, 780, 1435, 288, 327, 618, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 3130, 780, 1435, 288, 327, 618, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
UIAction action;
protected JComponent buildComponent(Element current) { String tag = current.getTagName(); JComponent comp = null; String label = null;; // menu tag if (tag.equals(menu_tag)) { Node node; JMenu menu = new MenuCtrl(); String my_id = current.getAttribute(id_attr); comp = menu; label = getReferencedLabel(current, label_attr); if (label != null) ((JMenuItem)comp).setText(label); menu.setActionCommand(my_id); node = current.getFirstChild().getNextSibling(); // loop through all its children while (node != null) { processNode(node, menu); node = node.getNextSibling(); } } else if (tag.equals(menuitem_tag)) { // menuitem tag String type = current.getAttribute(type_attr); UIAction action; // which type of menuitem? if (type.equals("")) { // no type ? it's a regular menuitem comp = buildMenuItem(current); } else if (type.equals(separator_attr)) { // separator comp = buildSeparator(current); } else if (type.equals(checkbox_attr)) { // checkboxes comp = buildCheckBoxMenuItem(current); } else if (type.equals(radio_attr)) { // radio comp = buildRadioMenuItem(current); } } comp.setFont(new Font("Helvetica", Font.PLAIN, 12)); return comp; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/a112eda973917bda5c74cb0ead33e27e85fdf535/XMLMenuBuilder.java/clean/grendel/ui/XMLMenuBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 29058, 1361, 1841, 12, 1046, 783, 13, 288, 565, 514, 1047, 273, 783, 18, 588, 8520, 5621, 565, 29058, 1161, 273, 446, 31, 565, 514, 1433, 273, 446, 25708, 3639, 368, 3824, 1047, 565, 309, 261, 2692, 18, 14963, 12, 5414, 67, 2692, 3719, 288, 1377, 2029, 756, 31, 1377, 804, 4599, 3824, 273, 394, 9809, 12418, 5621, 1377, 514, 3399, 67, 350, 273, 783, 18, 588, 1499, 12, 350, 67, 1747, 1769, 1377, 1161, 273, 3824, 31, 1377, 1433, 273, 13223, 72, 2224, 12, 2972, 16, 1433, 67, 1747, 1769, 1377, 309, 261, 1925, 480, 446, 13, 14015, 46, 12958, 13, 2919, 2934, 542, 1528, 12, 1925, 1769, 1377, 3824, 18, 542, 1803, 2189, 12, 4811, 67, 350, 1769, 1377, 756, 273, 783, 18, 588, 3759, 1763, 7675, 588, 2134, 10291, 5621, 1377, 368, 2798, 3059, 777, 2097, 2325, 1377, 1323, 261, 2159, 480, 446, 13, 288, 3639, 1207, 907, 12, 2159, 16, 3824, 1769, 3639, 756, 273, 756, 18, 588, 2134, 10291, 5621, 1377, 289, 565, 289, 469, 309, 261, 2692, 18, 14963, 12, 5414, 1726, 67, 2692, 3719, 288, 368, 3824, 1726, 1047, 1377, 514, 618, 273, 783, 18, 588, 1499, 12, 723, 67, 1747, 1769, 1171, 368, 1492, 618, 434, 3824, 1726, 35, 1377, 309, 261, 723, 18, 14963, 2932, 6, 3719, 288, 540, 368, 1158, 618, 692, 518, 1807, 279, 6736, 3824, 1726, 3639, 1161, 273, 1361, 12958, 12, 2972, 1769, 1377, 289, 469, 309, 261, 723, 18, 14963, 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, 4750, 29058, 1361, 1841, 12, 1046, 783, 13, 288, 565, 514, 1047, 273, 783, 18, 588, 8520, 5621, 565, 29058, 1161, 273, 446, 31, 565, 514, 1433, 273, 446, 25708, 3639, 368, 3824, 1047, 565, 309, 261, 2692, 18, 14963, 12, 5414, 67, 2692, 3719, 288, 1377, 2029, 756, 31, 1377, 804, 4599, 3824, 273, 394, 9809, 12418, 5621, 1377, 514, 3399, 67, 350, 273, 783, 18, 588, 1499, 12, 350, 67, 1747, 1769, 1377, 1161, 273, 3824, 31, 1377, 1433, 273, 13223, 72, 2224, 12, 2972, 16, 1433, 67, 1747, 1769, 1377, 309, 261, 1925, 480, 446, 13, 14015, 46, 12958, 13, 2919, 2934, 542, 1528, 12, 1925, 1769, 1377, 3824, 18, 542, 1803, 2189, 12, 4811, 2 ]
getClientRequest().cancel();
ClientRequester cr = getClientRequest(); if(cr != null) cancel();
public void cancel() { getClientRequest().cancel(); }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/a50635a130638d404670a3dc2345c116012ba72c/ClientRequest.java/buggy/src/freenet/node/fcp/ClientRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3755, 1435, 288, 202, 202, 588, 1227, 691, 7675, 10996, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3755, 1435, 288, 202, 202, 588, 1227, 691, 7675, 10996, 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, -100 ]
downloads = new ArrayList<IDownloader>();
downloads = Collections.synchronizedList(new ArrayList<IDownloader>()); listeners = Collections.synchronizedList(new ArrayList<IDownloadsModelListener>());
public DownloadsModel() { downloads = new ArrayList<IDownloader>(); }
36868 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36868/3bea34f771353d019051e8c701deda0a0cfc0ee2/DownloadsModel.java/buggy/src/nz/net/kallisti/emusicj/models/DownloadsModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13059, 87, 1488, 1435, 288, 202, 202, 7813, 87, 273, 394, 2407, 32, 734, 995, 6714, 34, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 13059, 87, 1488, 1435, 288, 202, 202, 7813, 87, 273, 394, 2407, 32, 734, 995, 6714, 34, 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 ]
if (startGMToffset > 0)
dstName = sysTimeZoneId.substring(prevIndex, --index); prevIndex = index; do c = sysTimeZoneId.charAt(index++); while ((c == '-' || c == '+' || c == ':' || Character.isDigit(c)) && index < idLength); if (index < idLength) index--; { String offset = sysTimeZoneId.substring(prevIndex, index); prevIndex = index; if (offset.charAt(0) == '+' || offset.charAt(0) == '-') dstOffs = parseTime(offset.substring(1)); else dstOffs = parseTime(offset); if (offset.charAt(0) == '-') dstOffs = -dstOffs; dstOffs = -dstOffs; } if (index >= idLength) { TimeZone tz = (TimeZone) timezones().get(stdName); if (tz != null) if (tz.getRawOffset() == stdOffs && tz.useDaylightTime() && tz.getDSTSavings() == (dstOffs - stdOffs)) return tz; return new SimpleTimeZone(stdOffs, stdName); } if (sysTimeZoneId.charAt(index) == ',' || sysTimeZoneId.charAt(index) == ';') { index++; int offs = index; while (sysTimeZoneId.charAt(index) != ',' && sysTimeZoneId.charAt(index) != ';') index++; String startTime = sysTimeZoneId.substring(offs, index); index++; String endTime = sysTimeZoneId.substring(index); index = startTime.indexOf('/'); int startMillis; int endMillis; String startDate; String endDate; if (index != -1) { startDate = startTime.substring(0, index); startMillis = parseTime(startTime.substring(index + 1)); } else { startDate = startTime; startMillis = 2 * 60 * 60 * 1000; } index = endTime.indexOf('/'); if (index != -1) { endDate = endTime.substring(0, index); endMillis = parseTime(endTime.substring(index + 1)); } else { endDate = endTime; endMillis = 2 * 60 * 60 * 1000; } int[] start = getDateParams(startDate); int[] end = getDateParams(endDate); return new SimpleTimeZone(stdOffs, stdName, start[0], start[1], start[2], startMillis, end[0], end[1], end[2], endMillis, (dstOffs - stdOffs)); } } catch (IndexOutOfBoundsException _)
static TimeZone getDefaultTimeZone(String sysTimeZoneId) { // First find start of GMT offset info and any Daylight zone name. int startGMToffset = 0; int sysTimeZoneIdLength = sysTimeZoneId.length(); for (int i = 0; i < sysTimeZoneIdLength && startGMToffset == 0; i++) { char c = sysTimeZoneId.charAt(i); if (Character.isDigit(c)) startGMToffset = i; else if ((c == '+' || c == '-') && i + 1 < sysTimeZoneIdLength && Character.isDigit(sysTimeZoneId.charAt(i + 1))) startGMToffset = i; } String tzBasename; if (startGMToffset == 0) tzBasename = sysTimeZoneId; else tzBasename = sysTimeZoneId.substring (0, startGMToffset); int startDaylightZoneName = 0; for (int i = sysTimeZoneIdLength - 1; i >= 0 && !Character.isDigit(sysTimeZoneId.charAt(i)); --i) startDaylightZoneName = i; boolean useDaylightTime = startDaylightZoneName > 0; // Integer.parseInt() doesn't handle leading +. if (sysTimeZoneId.charAt(startGMToffset) == '+') startGMToffset++; int gmtOffset = 0; if (startGMToffset > 0) { gmtOffset = Integer.parseInt (startDaylightZoneName == 0 ? sysTimeZoneId.substring(startGMToffset) : sysTimeZoneId.substring(startGMToffset, startDaylightZoneName)); // Offset could be in hours or seconds. Convert to millis. // The offset is given as the time to add to local time to get GMT // we need the time to add to GMT to get localtime. if (Math.abs(gmtOffset) < 24) gmtOffset *= 60 * 60; gmtOffset *= -1000; } // Try to be optimistic and get the timezone that matches the base name. // If we only have the base name then just accept this timezone. // Otherwise check the gmtOffset and day light attributes. TimeZone tz = (TimeZone) timezones().get(tzBasename); if (tz != null && (tzBasename == sysTimeZoneId || (tz.getRawOffset() == gmtOffset && tz.useDaylightTime() == useDaylightTime))) return tz; // Maybe there is one with the daylight zone name? if (useDaylightTime) { String daylightZoneName; daylightZoneName = sysTimeZoneId.substring(startDaylightZoneName); if (!daylightZoneName.equals(tzBasename)) { tz = (TimeZone) timezones().get(tzBasename); if (tz != null && tz.getRawOffset() == gmtOffset && tz.useDaylightTime()) return tz; } } // If no match, see if a valid timezone has similar attributes as this // and then use it instead. We take the first one that looks OKish. if (startGMToffset > 0) { String[] ids = getAvailableIDs(gmtOffset); for (int i = 0; i < ids.length; i++) { tz = (TimeZone) timezones().get(ids[i]); if (tz.useDaylightTime() == useDaylightTime) return tz; } } return null; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/d77391db2f173e63585cb4d0d5317e7759e09f0c/TimeZone.java/buggy/core/src/classpath/java/java/util/TimeZone.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 16491, 4829, 16760, 12, 780, 2589, 16760, 548, 13, 225, 288, 565, 368, 5783, 1104, 787, 434, 21706, 1384, 1123, 471, 1281, 13735, 5099, 4157, 508, 18, 565, 509, 787, 43, 49, 774, 74, 988, 273, 374, 31, 565, 509, 2589, 16760, 548, 1782, 273, 2589, 16760, 548, 18, 2469, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2589, 16760, 548, 1782, 597, 787, 43, 49, 774, 74, 988, 422, 374, 31, 277, 27245, 1377, 288, 202, 3001, 276, 273, 2589, 16760, 548, 18, 3001, 861, 12, 77, 1769, 202, 430, 261, 7069, 18, 291, 10907, 12, 71, 3719, 202, 225, 787, 43, 49, 774, 74, 988, 273, 277, 31, 202, 12107, 309, 14015, 71, 422, 10058, 747, 276, 422, 4014, 13, 1082, 597, 277, 397, 404, 411, 2589, 16760, 548, 1782, 1082, 597, 6577, 18, 291, 10907, 12, 9499, 16760, 548, 18, 3001, 861, 12, 77, 397, 404, 20349, 202, 225, 787, 43, 49, 774, 74, 988, 273, 277, 31, 1377, 289, 3639, 514, 6016, 11494, 1069, 31, 565, 309, 261, 1937, 43, 49, 774, 74, 988, 422, 374, 13, 1377, 6016, 11494, 1069, 273, 2589, 16760, 548, 31, 565, 469, 1377, 6016, 11494, 1069, 273, 2589, 16760, 548, 18, 28023, 261, 20, 16, 787, 43, 49, 774, 74, 988, 1769, 565, 509, 787, 4245, 5099, 4226, 461, 273, 374, 31, 565, 364, 261, 474, 277, 273, 2589, 16760, 548, 1782, 300, 404, 31, 202, 277, 1545, 374, 597, 401, 7069, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 16491, 4829, 16760, 12, 780, 2589, 16760, 548, 13, 225, 288, 565, 368, 5783, 1104, 787, 434, 21706, 1384, 1123, 471, 1281, 13735, 5099, 4157, 508, 18, 565, 509, 787, 43, 49, 774, 74, 988, 273, 374, 31, 565, 509, 2589, 16760, 548, 1782, 273, 2589, 16760, 548, 18, 2469, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2589, 16760, 548, 1782, 597, 787, 43, 49, 774, 74, 988, 422, 374, 31, 277, 27245, 1377, 288, 202, 3001, 276, 273, 2589, 16760, 548, 18, 3001, 861, 12, 77, 1769, 202, 430, 261, 7069, 18, 291, 10907, 12, 71, 3719, 202, 225, 787, 43, 49, 774, 74, 988, 273, 277, 31, 202, 12107, 309, 14015, 2 ]
if (eofActions.getDefault() != null) println(" { " + eofActions.getDefault().content + " }");
Action defaultAction = eofActions.getDefault(); if (defaultAction != null) { println(" {"); if ( scanner.debugOption ) { print(" System.out.println("); if ( scanner.lineCount ) print("\"line: \"+(yyline+1)+\" \"+"); if ( scanner.columnCount ) print("\"col: \"+(yycolumn+1)+\" \"+"); println("\"match: <<EOF>>\");"); print(" System.out.println(\"action ["+defaultAction.priority+"] { "); print(escapify(defaultAction.content)); println(" }\");"); } println(" " + defaultAction.content); println(" }"); }
private void emitEOFVal() { EOFActions eofActions = parser.getEOFActions(); if ( scanner.eofCode != null ) println(" zzDoEOF();"); if ( eofActions.numActions() > 0 ) { println(" switch (zzLexicalState) {"); Enumeration stateNames = scanner.states.names(); // record lex states already emitted: Hashtable used = new Hashtable(); // pick a start value for break case labels. // must be larger than any value of a lex state: int last = dfa.numStates; while ( stateNames.hasMoreElements() ) { String name = (String) stateNames.nextElement(); int num = scanner.states.getNumber(name).intValue(); Action action = eofActions.getAction(num); // only emit code if the lex state is not redundant, so // that case labels don't overlap // (redundant = points to the same dfa state as another one). // applies only to scanners that don't use BOL, because // in BOL scanners lex states get mapped at runtime, so // case labels will always be unique. boolean unused = true; if (!scanner.bolUsed) { Integer key = new Integer(dfa.lexState[2*num]); unused = used.get(key) == null; if (!unused) Out.warning("Lexical states <"+name+"> and <"+used.get(key)+"> are equivalent."); else used.put(key,name); } if (action != null && unused) { println(" case "+name+":"); println(" { "+action.content+" }"); println(" case "+(++last)+": break;"); } } println(" default:"); } if (eofActions.getDefault() != null) println(" { " + eofActions.getDefault().content + " }"); else if ( scanner.eofVal != null ) println(" { " + scanner.eofVal + " }"); else if ( scanner.isInteger ) println(" return YYEOF;"); else println(" return null;"); if (eofActions.numActions() > 0) println(" }"); }
45285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45285/7d723a6e2a3c22aab5ff72c1a8eb953281a7b08b/Emitter.java/clean/jflex/src/JFlex/Emitter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3626, 12706, 3053, 1435, 288, 565, 6431, 6100, 14813, 6100, 273, 2082, 18, 588, 12706, 6100, 5621, 565, 309, 261, 7683, 18, 9339, 1085, 480, 446, 262, 4202, 3785, 2932, 5411, 11273, 3244, 12706, 26994, 1769, 1850, 309, 261, 14813, 6100, 18, 2107, 6100, 1435, 405, 374, 262, 288, 1377, 3785, 2932, 5411, 1620, 261, 6378, 14756, 1706, 1119, 13, 288, 8863, 5411, 13864, 919, 1557, 273, 7683, 18, 7992, 18, 1973, 5621, 1377, 368, 1409, 5275, 5493, 1818, 17826, 30, 1377, 18559, 1399, 273, 394, 18559, 5621, 1377, 368, 6002, 279, 787, 460, 364, 898, 648, 3249, 18, 4202, 368, 1297, 506, 10974, 2353, 1281, 460, 434, 279, 5275, 919, 30, 1377, 509, 1142, 273, 23074, 18, 2107, 7629, 31, 5411, 1323, 261, 919, 1557, 18, 5332, 7417, 3471, 1435, 262, 288, 3639, 514, 508, 273, 261, 780, 13, 919, 1557, 18, 4285, 1046, 5621, 3639, 509, 818, 273, 7683, 18, 7992, 18, 588, 1854, 12, 529, 2934, 474, 620, 5621, 3639, 4382, 1301, 273, 14813, 6100, 18, 588, 1803, 12, 2107, 1769, 3639, 368, 1338, 3626, 981, 309, 326, 5275, 919, 353, 486, 19530, 16, 1427, 3639, 368, 716, 648, 3249, 2727, 1404, 7227, 3639, 368, 261, 1118, 15362, 273, 3143, 358, 326, 1967, 23074, 919, 487, 4042, 1245, 2934, 3639, 368, 10294, 1338, 358, 888, 19637, 716, 2727, 1404, 999, 605, 1741, 16, 2724, 3639, 368, 316, 605, 1741, 888, 19637, 5275, 5493, 336, 5525, 622, 3099, 16, 1427, 3639, 368, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3626, 12706, 3053, 1435, 288, 565, 6431, 6100, 14813, 6100, 273, 2082, 18, 588, 12706, 6100, 5621, 565, 309, 261, 7683, 18, 9339, 1085, 480, 446, 262, 4202, 3785, 2932, 5411, 11273, 3244, 12706, 26994, 1769, 1850, 309, 261, 14813, 6100, 18, 2107, 6100, 1435, 405, 374, 262, 288, 1377, 3785, 2932, 5411, 1620, 261, 6378, 14756, 1706, 1119, 13, 288, 8863, 5411, 13864, 919, 1557, 273, 7683, 18, 7992, 18, 1973, 5621, 1377, 368, 1409, 5275, 5493, 1818, 17826, 30, 1377, 18559, 1399, 273, 394, 18559, 5621, 1377, 368, 6002, 279, 787, 460, 364, 898, 648, 3249, 18, 4202, 368, 1297, 506, 10974, 2353, 1281, 460, 434, 279, 5275, 919, 30, 1377, 509, 1142, 273, 2 ]
boolean synPredMatched582 = false;
boolean synPredMatched62 = false;
public final void mMODULE_NAME(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = MODULE_NAME; int _saveIndex; boolean synPredMatched574 = false; if (((LA(1)=='A') && (LA(2)=='R') && (LA(3)=='R'))) { int _m574 = mark(); synPredMatched574 = true; inputState.guessing++; try { { match("ARRAY"); } } catch (RecognitionException pe) { synPredMatched574 = false; } rewind(_m574); inputState.guessing--; } if ( synPredMatched574 ) { match("ARRAY"); if ( inputState.guessing==0 ) { _ttype = ARRAY_REF; } } else { boolean synPredMatched576 = false; if (((LA(1)=='S') && (LA(2)=='C') && (LA(3)=='A'))) { int _m576 = mark(); synPredMatched576 = true; inputState.guessing++; try { { match("SCALAR"); } } catch (RecognitionException pe) { synPredMatched576 = false; } rewind(_m576); inputState.guessing--; } if ( synPredMatched576 ) { match("SCALAR"); if ( inputState.guessing==0 ) { _ttype = SCALAR_REF; } } else { boolean synPredMatched578 = false; if (((LA(1)=='H') && (LA(2)=='A') && (LA(3)=='S'))) { int _m578 = mark(); synPredMatched578 = true; inputState.guessing++; try { { match("HASH"); } } catch (RecognitionException pe) { synPredMatched578 = false; } rewind(_m578); inputState.guessing--; } if ( synPredMatched578 ) { match("HASH"); if ( inputState.guessing==0 ) { _ttype = HASH_REF; } } else { boolean synPredMatched580 = false; if (((LA(1)=='C') && (LA(2)=='O') && (LA(3)=='D'))) { int _m580 = mark(); synPredMatched580 = true; inputState.guessing++; try { { match("CODE"); } } catch (RecognitionException pe) { synPredMatched580 = false; } rewind(_m580); inputState.guessing--; } if ( synPredMatched580 ) { match("CODE"); if ( inputState.guessing==0 ) { _ttype = CODE_REF; } } else { boolean synPredMatched582 = false; if (((LA(1)=='R') && (LA(2)=='E') && (LA(3)=='F'))) { int _m582 = mark(); synPredMatched582 = true; inputState.guessing++; try { { match("REF"); } } catch (RecognitionException pe) { synPredMatched582 = false; } rewind(_m582); inputState.guessing--; } if ( synPredMatched582 ) { match("REF"); if ( inputState.guessing==0 ) { _ttype = REF; } } else { boolean synPredMatched584 = false; if (((LA(1)=='F') && (LA(2)=='i') && (LA(3)=='l'))) { int _m584 = mark(); synPredMatched584 = true; inputState.guessing++; try { { match("FileHandle"); } } catch (RecognitionException pe) { synPredMatched584 = false; } rewind(_m584); inputState.guessing--; } if ( synPredMatched584 ) { match("FileHandle"); if ( inputState.guessing==0 ) { _ttype = FILE_HANDLE; } } else { boolean synPredMatched586 = false; if (((LA(1)=='f') && (LA(2)=='i') && (LA(3)=='l'))) { int _m586 = mark(); synPredMatched586 = true; inputState.guessing++; try { { match("fileno("); } } catch (RecognitionException pe) { synPredMatched586 = false; } rewind(_m586); inputState.guessing--; } if ( synPredMatched586 ) { { match("fileno("); } { int _cnt589=0; _loop589: do { if (((LA(1) >= '0' && LA(1) <= '9'))) { matchRange('0','9'); } else { if ( _cnt589>=1 ) { break _loop589; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt589++; } while (true); } match(')'); if ( inputState.guessing==0 ) { _ttype = FILE_NO; } } else if ((_tokenSet_0.member(LA(1))) && (true) && (true)) { mPURE_NAME(false); if ( inputState.guessing==0 ) { _ttype = PURE_NAME; } } else { 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; }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/e64750c6db180cbb479f839977df4ff0912d0937/PerlBaseLexer.java/clean/org.epic.debug/src/org/epic/debug/varparser/PerlBaseLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 312, 12194, 67, 1985, 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, 14057, 67, 1985, 31, 202, 202, 474, 389, 5688, 1016, 31, 9506, 202, 6494, 6194, 10391, 15400, 25, 5608, 273, 629, 31, 202, 202, 430, 261, 12443, 2534, 12, 21, 13, 18920, 37, 6134, 597, 261, 2534, 12, 22, 13, 18920, 54, 6134, 597, 261, 2534, 12, 23, 13, 18920, 54, 11, 20349, 288, 1082, 202, 474, 389, 81, 25, 5608, 273, 2267, 5621, 1082, 202, 11982, 10391, 15400, 25, 5608, 273, 638, 31, 1082, 202, 2630, 1119, 18, 20885, 310, 9904, 31, 1082, 202, 698, 288, 9506, 202, 95, 9506, 202, 1916, 2932, 8552, 8863, 9506, 202, 97, 1082, 202, 97, 1082, 202, 14683, 261, 5650, 7909, 503, 2804, 13, 288, 9506, 202, 11982, 10391, 15400, 25, 5608, 273, 629, 31, 1082, 202, 97, 1082, 202, 266, 10094, 24899, 81, 25, 5608, 1769, 1082, 202, 2630, 1119, 18, 20885, 310, 413, 31, 202, 202, 97, 202, 202, 430, 261, 6194, 10391, 15400, 25, 5608, 262, 288, 1082, 202, 1916, 2932, 8552, 8863, 1082, 202, 430, 261, 810, 1119, 18, 20885, 310, 631, 20, 262, 288, 9506, 202, 67, 88, 723, 273, 14884, 67, 10771, 31, 1082, 202, 97, 202, 202, 97, 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, 727, 918, 312, 12194, 67, 1985, 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, 14057, 67, 1985, 31, 202, 202, 474, 389, 5688, 1016, 31, 9506, 202, 6494, 6194, 10391, 15400, 25, 5608, 273, 629, 31, 202, 202, 430, 261, 12443, 2534, 12, 21, 13, 18920, 37, 6134, 597, 261, 2534, 12, 22, 13, 18920, 54, 6134, 597, 261, 2534, 12, 23, 13, 18920, 54, 11, 20349, 288, 1082, 202, 474, 389, 81, 25, 5608, 273, 2267, 5621, 1082, 202, 2 ]
config = resConfig;
config = clonedResConfig;
protected void createFieldEditors() { // Get the preference store for the build settings super.createFieldEditors(); // Iterate over the options in the category and create a field editor // for each Object[][] options; if ( isItResourceConfigPage ) { options = category.getOptions(resConfig); } else { options = category.getOptions(configuration); } for (int index = 0; index < options.length; ++index) { // Get the option IHoldsOptions holder = (IHoldsOptions)options[index][0]; if (holder == null) break; // The array may not be full IOption opt = (IOption)options[index][1]; // check to see if the option has an applicability calculator IOptionApplicability applicabilityCalculator = opt.getApplicabilityCalculator(); // is the option visible? IBuildObject config; if ( isItResourceConfigPage ) { config = resConfig; } else { config = configuration; } if (applicabilityCalculator == null || applicabilityCalculator.isOptionVisible(config, holder, opt)) { try { // Figure out which type the option is and add a proper field // editor for it switch (opt.getValueType()) { case IOption.STRING: // fix for PR 63973 // Check browse type. // If browsing is set, use a field editor that has a // browse button of // the appropriate type. // Otherwise, use a regular text field. switch (opt.getBrowseType()) { case IOption.BROWSE_DIR: Composite fieldEditorParent2 = getFieldEditorParent(); DirectoryFieldEditor dirFieldEditor = new DirectoryFieldEditor( opt.getId(), opt.getName(), fieldEditorParent2); setFieldEditorEnablement(holder, opt, applicabilityCalculator, dirFieldEditor, fieldEditorParent2); addField(dirFieldEditor); fieldsMap.put(opt.getId(), dirFieldEditor); fieldEditorsToParentMap.put(dirFieldEditor, fieldEditorParent2); break; case IOption.BROWSE_FILE: Composite fieldEditorParent3 = getFieldEditorParent(); FileFieldEditor fileFieldEditor = new FileFieldEditor( opt.getId(), opt.getName(), fieldEditorParent3); setFieldEditorEnablement(holder, opt, applicabilityCalculator, fileFieldEditor, fieldEditorParent3); addField(fileFieldEditor); fieldsMap.put(opt.getId(), fileFieldEditor); fieldEditorsToParentMap.put(fileFieldEditor, fieldEditorParent3); break; case IOption.BROWSE_NONE: Composite fieldEditorParent4 = getFieldEditorParent(); StringFieldEditor stringField = new StringFieldEditor( opt.getId(), opt.getName(), fieldEditorParent4); setFieldEditorEnablement(holder, opt, applicabilityCalculator, stringField, fieldEditorParent4); addField(stringField); fieldsMap.put(opt.getId(), stringField); fieldEditorsToParentMap.put(stringField, fieldEditorParent4); break; default: // should not be possible throw (new AssertionError()); } // end fix for 63973 break; case IOption.BOOLEAN: Composite fieldEditorParent5 = getFieldEditorParent(); BooleanFieldEditor booleanField = new BooleanFieldEditor( opt.getId(), opt.getName(), fieldEditorParent5); setFieldEditorEnablement(holder, opt, applicabilityCalculator, booleanField, fieldEditorParent5); addField(booleanField); fieldsMap.put(opt.getId(), booleanField); fieldEditorsToParentMap.put(booleanField, fieldEditorParent5); break; case IOption.ENUMERATED: String selId; String sel; try { selId = opt.getSelectedEnum(); sel = opt.getEnumName(selId); } catch (BuildException e) { // If we get this exception, then the option type is // wrong break; } // Get all applicable values for this enumerated Option, But display // only the enumerated values that are valid (static set of enumerated values defined // in the plugin.xml file) in the UI Combobox. This refrains the user from selecting an // invalid value and avoids issuing an error message. String[] enumNames = opt.getApplicableValues(); Vector enumValidList = new Vector(); for (int i = 0; i < enumNames.length; ++i) { if (opt.getValueHandler().isEnumValueAppropriate(getConfigurationHandle(), opt.getOptionHolder(), opt, opt.getValueHandlerExtraArgument(), enumNames[i])) { enumValidList.add(enumNames[i]); } } String[] enumValidNames = new String[enumValidList.size()]; enumValidList.copyInto(enumValidNames); Composite fieldEditorParent6 = getFieldEditorParent(); BuildOptionComboFieldEditor comboField = new BuildOptionComboFieldEditor( opt.getId(), opt.getName(), enumValidNames, sel, fieldEditorParent6); setFieldEditorEnablement(holder, opt, applicabilityCalculator, comboField, fieldEditorParent6); addField(comboField); fieldsMap.put(opt.getId(), comboField); fieldEditorsToParentMap.put(comboField, fieldEditorParent6); break; case IOption.INCLUDE_PATH: case IOption.STRING_LIST: case IOption.PREPROCESSOR_SYMBOLS: case IOption.LIBRARIES: case IOption.OBJECTS: Composite fieldEditorParent7 = getFieldEditorParent(); FileListControlFieldEditor listField = new FileListControlFieldEditor( opt.getId(), opt.getName(), fieldEditorParent7, opt.getBrowseType()); setFieldEditorEnablement(holder, opt, applicabilityCalculator, listField, fieldEditorParent7); addField(listField); fieldsMap.put(opt.getId(), listField); fieldEditorsToParentMap.put(listField, fieldEditorParent7); break; default: break; } } catch (BuildException e) { } } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ca2e8c288e0d3b7b382d3418afbe110662fcfed4/BuildOptionSettingsPage.java/clean/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildOptionSettingsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 974, 4666, 1383, 1435, 288, 202, 202, 759, 968, 326, 11555, 1707, 364, 326, 1361, 1947, 202, 202, 9565, 18, 2640, 974, 4666, 1383, 5621, 202, 202, 759, 11436, 1879, 326, 702, 316, 326, 3150, 471, 752, 279, 652, 4858, 202, 202, 759, 364, 1517, 202, 202, 921, 63, 6362, 65, 702, 31, 202, 202, 430, 261, 353, 7193, 1420, 809, 1964, 262, 288, 1082, 202, 2116, 273, 3150, 18, 588, 1320, 12, 455, 809, 1769, 202, 202, 97, 469, 288, 1082, 202, 2116, 273, 3150, 18, 588, 1320, 12, 7025, 1769, 202, 202, 97, 9506, 202, 1884, 261, 474, 770, 273, 374, 31, 770, 411, 702, 18, 2469, 31, 965, 1615, 13, 288, 1082, 202, 759, 968, 326, 1456, 1082, 202, 45, 20586, 87, 1320, 10438, 273, 261, 45, 20586, 87, 1320, 13, 2116, 63, 1615, 6362, 20, 15533, 1082, 202, 430, 261, 4505, 422, 446, 13, 898, 31, 202, 759, 225, 1021, 526, 2026, 486, 506, 1983, 1082, 202, 45, 1895, 2153, 273, 261, 45, 1895, 13, 2116, 63, 1615, 6362, 21, 15533, 25083, 202, 759, 866, 358, 2621, 309, 326, 1456, 711, 392, 513, 1780, 2967, 15497, 1082, 202, 45, 1895, 1294, 1780, 2967, 513, 1780, 2967, 19278, 273, 2153, 18, 588, 1294, 1780, 2967, 19278, 5621, 25083, 202, 759, 353, 326, 1456, 6021, 35, 1082, 202, 45, 3116, 921, 642, 31, 1082, 202, 430, 261, 353, 7193, 1420, 809, 1964, 262, 288, 9506, 202, 1425, 273, 400, 809, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 974, 4666, 1383, 1435, 288, 202, 202, 759, 968, 326, 11555, 1707, 364, 326, 1361, 1947, 202, 202, 9565, 18, 2640, 974, 4666, 1383, 5621, 202, 202, 759, 11436, 1879, 326, 702, 316, 326, 3150, 471, 752, 279, 652, 4858, 202, 202, 759, 364, 1517, 202, 202, 921, 63, 6362, 65, 702, 31, 202, 202, 430, 261, 353, 7193, 1420, 809, 1964, 262, 288, 1082, 202, 2116, 273, 3150, 18, 588, 1320, 12, 455, 809, 1769, 202, 202, 97, 469, 288, 1082, 202, 2116, 273, 3150, 18, 588, 1320, 12, 7025, 1769, 202, 202, 97, 9506, 202, 1884, 261, 474, 770, 273, 374, 31, 770, 411, 702, 18, 2469, 31, 965, 1615, 13, 288, 2 ]
logFileName = new File(logDir, "log" + getFormatedTime(now) + ".xml") .getAbsolutePath();
logFileName = new File(logDir, "log" + getFormatedTime(now) + ".xml").getAbsolutePath();
protected void createLogFileName(Element logElement, Date now) throws CruiseControlException { XMLLogHelper helper = new XMLLogHelper(logElement); if (helper.isBuildSuccessful()) { logFileName = new File( logDir, "log" + getFormatedTime(now) + "L" + helper.getLabel() + ".xml") .getAbsolutePath(); } else { logFileName = new File(logDir, "log" + getFormatedTime(now) + ".xml") .getAbsolutePath(); } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/fd158509e4f6aa010e583ca0516756a1c2532047/Project.java/buggy/main/src/net/sourceforge/cruisecontrol/Project.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 752, 1343, 4771, 12, 1046, 613, 1046, 16, 2167, 2037, 13, 3639, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 3167, 1343, 2276, 4222, 273, 394, 3167, 1343, 2276, 12, 1330, 1046, 1769, 3639, 309, 261, 4759, 18, 291, 3116, 14277, 10756, 288, 5411, 613, 4771, 273, 7734, 394, 1387, 12, 10792, 31101, 16, 10792, 315, 1330, 6, 13491, 397, 11221, 690, 950, 12, 3338, 13, 13491, 397, 315, 48, 6, 13491, 397, 4222, 18, 588, 2224, 1435, 13491, 397, 3552, 2902, 7923, 10792, 263, 588, 10368, 743, 5621, 3639, 289, 469, 288, 5411, 613, 4771, 273, 7734, 394, 1387, 12, 1330, 1621, 16, 315, 1330, 6, 397, 11221, 690, 950, 12, 3338, 13, 397, 3552, 2902, 7923, 10792, 263, 588, 10368, 743, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 752, 1343, 4771, 12, 1046, 613, 1046, 16, 2167, 2037, 13, 3639, 1216, 385, 8653, 784, 3367, 503, 288, 3639, 3167, 1343, 2276, 4222, 273, 394, 3167, 1343, 2276, 12, 1330, 1046, 1769, 3639, 309, 261, 4759, 18, 291, 3116, 14277, 10756, 288, 5411, 613, 4771, 273, 7734, 394, 1387, 12, 10792, 31101, 16, 10792, 315, 1330, 6, 13491, 397, 11221, 690, 950, 12, 3338, 13, 13491, 397, 315, 48, 6, 13491, 397, 4222, 18, 588, 2224, 1435, 13491, 397, 3552, 2902, 7923, 10792, 263, 588, 10368, 743, 5621, 3639, 289, 469, 288, 5411, 613, 4771, 273, 7734, 394, 1387, 12, 1330, 1621, 16, 315, 1330, 6, 397, 11221, 690, 950, 12, 3338, 13, 397, 3552, 2 ]
public void fireTableRowsUpdated(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE)); }
public void fireTableRowsUpdated (int firstRow, int lastRow) { fireTableChanged (new TableModelEvent (this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE)); }
public void fireTableRowsUpdated(int firstRow, int lastRow) { fireTableChanged(new TableModelEvent(this, firstRow, lastRow, TableModelEvent.ALL_COLUMNS, TableModelEvent.UPDATE)); } // fireTableRowsUpdated()
27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/fab59a31bd9990444e42708fa321ad9450bd4564/AbstractTableModel.java/clean/libjava/javax/swing/table/AbstractTableModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4452, 1388, 4300, 7381, 12, 474, 1122, 1999, 16, 509, 1142, 1999, 13, 288, 202, 202, 12179, 1388, 5033, 12, 2704, 3555, 1488, 1133, 12, 2211, 16, 1122, 1999, 16, 1142, 1999, 16, 1082, 202, 1388, 1488, 1133, 18, 4685, 67, 25936, 16, 3555, 1488, 1133, 18, 8217, 10019, 202, 97, 368, 4452, 1388, 4300, 7381, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4452, 1388, 4300, 7381, 12, 474, 1122, 1999, 16, 509, 1142, 1999, 13, 288, 202, 202, 12179, 1388, 5033, 12, 2704, 3555, 1488, 1133, 12, 2211, 16, 1122, 1999, 16, 1142, 1999, 16, 1082, 202, 1388, 1488, 1133, 18, 4685, 67, 25936, 16, 3555, 1488, 1133, 18, 8217, 10019, 202, 97, 368, 4452, 1388, 4300, 7381, 1435, 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 ]
for( i = 0; i < 256; i++ ) { if( inUse[ i ] )
for( i = 0; i < 256; i++ ) { if( m_inUse[ i ] )
private void makeMaps() { int i; nInUse = 0; for( i = 0; i < 256; i++ ) { if( inUse[ i ] ) { seqToUnseq[ nInUse ] = (char)i; unseqToSeq[ i ] = (char)nInUse; nInUse++; } } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/84717d4b5b511f43b98719d95241c7e4ac0dc31d/CBZip2OutputStream.java/clean/proposal/myrmidon/src/java/org/apache/aut/bzip2/CBZip2OutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1221, 8903, 1435, 565, 288, 3639, 509, 277, 31, 3639, 290, 15435, 273, 374, 31, 3639, 364, 12, 277, 273, 374, 31, 277, 411, 8303, 31, 277, 9904, 262, 288, 5411, 309, 12, 316, 3727, 63, 277, 308, 262, 5411, 288, 7734, 3833, 774, 984, 5436, 63, 290, 15435, 308, 273, 261, 3001, 13, 77, 31, 7734, 640, 5436, 774, 6926, 63, 277, 308, 273, 261, 3001, 13, 82, 15435, 31, 7734, 290, 15435, 9904, 31, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1221, 8903, 1435, 565, 288, 3639, 509, 277, 31, 3639, 290, 15435, 273, 374, 31, 3639, 364, 12, 277, 273, 374, 31, 277, 411, 8303, 31, 277, 9904, 262, 288, 5411, 309, 12, 316, 3727, 63, 277, 308, 262, 5411, 288, 7734, 3833, 774, 984, 5436, 63, 290, 15435, 308, 273, 261, 3001, 13, 77, 31, 7734, 640, 5436, 774, 6926, 63, 277, 308, 273, 261, 3001, 13, 82, 15435, 31, 7734, 290, 15435, 9904, 31, 5411, 289, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
GuiUtils.showNewPanel(m_rightPane, panel);
GuiUtils.showNewPanel(rightPane, panel);
public void valueChanged(TreeSelectionEvent e) { // check selection value int rows[] = m_tree.getSelectionRows(); if( (rows == null) || (rows.length == 0) ) { return; } // return the selected plugin panel PluginPanel panel = (PluginPanel)m_pluginPanels.get(rows[rows.length - 1]); if(panel.canBeDisplayed()) { GuiUtils.showNewPanel(m_rightPane, panel); } }
48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/TreePluginPanelContainer.java/clean/src/java/org/apache/ftpserver/gui/TreePluginPanelContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 460, 5033, 12, 2471, 6233, 1133, 425, 13, 288, 7734, 368, 866, 4421, 460, 3639, 509, 2595, 8526, 273, 312, 67, 3413, 18, 588, 6233, 4300, 5621, 3639, 309, 12, 261, 3870, 422, 446, 13, 747, 261, 3870, 18, 2469, 422, 374, 13, 262, 288, 5411, 327, 31, 3639, 289, 7734, 368, 327, 326, 3170, 1909, 6594, 3639, 6258, 5537, 6594, 273, 261, 3773, 5537, 13, 81, 67, 4094, 5537, 87, 18, 588, 12, 3870, 63, 3870, 18, 2469, 300, 404, 19226, 3639, 309, 12, 13916, 18, 4169, 1919, 4236, 329, 10756, 288, 5411, 611, 4881, 1989, 18, 4500, 1908, 5537, 12, 4083, 8485, 16, 6594, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 460, 5033, 12, 2471, 6233, 1133, 425, 13, 288, 7734, 368, 866, 4421, 460, 3639, 509, 2595, 8526, 273, 312, 67, 3413, 18, 588, 6233, 4300, 5621, 3639, 309, 12, 261, 3870, 422, 446, 13, 747, 261, 3870, 18, 2469, 422, 374, 13, 262, 288, 5411, 327, 31, 3639, 289, 7734, 368, 327, 326, 3170, 1909, 6594, 3639, 6258, 5537, 6594, 273, 261, 3773, 5537, 13, 81, 67, 4094, 5537, 87, 18, 588, 12, 3870, 63, 3870, 18, 2469, 300, 404, 19226, 3639, 309, 12, 13916, 18, 4169, 1919, 4236, 329, 10756, 288, 5411, 611, 4881, 1989, 18, 4500, 1908, 5537, 12, 4083, 8485, 16, 6594, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100 ]
if (! retval.getAutoCommit()) {
if (!retval.getAutoCommit()) {
protected Connection getConnection() throws SQLException { Connection retval = db.getConnection(); if (! retval.getAutoCommit()) { retval.setAutoCommit(true); } return retval; }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/be90eb9e0d8c6624a4922dd569d6c73b4ae3046a/ObjectStoreInterMineImpl.java/clean/intermine/src/java/org/intermine/objectstore/intermine/ObjectStoreInterMineImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4050, 6742, 1435, 1216, 6483, 288, 3639, 4050, 5221, 273, 1319, 18, 588, 1952, 5621, 3639, 309, 16051, 18341, 18, 588, 4965, 5580, 10756, 288, 5411, 5221, 18, 542, 4965, 5580, 12, 3767, 1769, 3639, 289, 3639, 327, 5221, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4050, 6742, 1435, 1216, 6483, 288, 3639, 4050, 5221, 273, 1319, 18, 588, 1952, 5621, 3639, 309, 16051, 18341, 18, 588, 4965, 5580, 10756, 288, 5411, 5221, 18, 542, 4965, 5580, 12, 3767, 1769, 3639, 289, 3639, 327, 5221, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (allRows instanceof Results) { Results results = (Results) allRows;
for (Iterator rowIterator = allRows.iterator(); rowIterator.hasNext();) { List thisRow = (List) rowIterator.next();
public ActionForward saveBag(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServletException { HttpSession session = request.getSession(); ServletContext servletContext = session.getServletContext(); Profile profile = (Profile) session.getAttribute(Constants.PROFILE); //PagedTable pt = (PagedTable) session.getAttribute(Constants.RESULTS_TABLE); PagedTable pt = SessionMethods.getResultsTable(session, request.getParameter("table")); SaveBagForm crf = (SaveBagForm) form; InterMineBag bag = null; boolean storingIds = false; int defaultMax = 10000; int maxBagSize = WebUtil.getIntSessionProperty(session, "max.bag.size", defaultMax); // Create the right kind of bag String selected = crf.getSelectedObjects()[0]; int index = selected.indexOf(","); int col = Integer.parseInt(index == -1 ? selected : selected.substring(0, index)); Object type = ((Column) pt.getColumns().get(col)).getType(); if (type instanceof ClassDescriptor) { bag = new InterMineIdBag(); storingIds = true; } else { bag = new InterMinePrimitiveBag(); } // Go through the selected items and add to the set for (Iterator itemIterator = Arrays.asList(crf.getSelectedObjects()).iterator(); itemIterator.hasNext();) { String selectedObject = (String) itemIterator.next(); // selectedObject is of the form "column,row" or "column" int commaIndex = selectedObject.indexOf(","); if (commaIndex == -1) { int column = Integer.parseInt(selectedObject); List allRows = pt.getAllRows(); if (allRows instanceof Results) { Results results = (Results) allRows; if (results.size() > maxBagSize) { ActionMessage actionMessage = new ActionMessage("bag.tooBig", new Integer(maxBagSize)); recordError(actionMessage, request); return mapping.findForward("results"); } try { // make a copy of the Results object with a larger batch size so the object // store doesn't need to do lots of queries // we copy because setBatchSize() throws an exception if size() has already // been called Results newResults = results.getObjectStore().execute(results.getQuery()); if (maxBagSize > results.getObjectStore().getMaxLimit()) { newResults.setBatchSize(results.getObjectStore().getMaxLimit()); } else { newResults.setBatchSize(maxBagSize); } // make sure we can get the first batch try { newResults.get(0); } catch (IndexOutOfBoundsException e) { // Ignore - that means there are NO rows in this results object. } allRows = newResults; } catch (RuntimeException e) { if (e.getCause() instanceof ObjectStoreException) { recordError(new ActionMessage("errors.query.objectstoreerror"), request, (ObjectStoreException) e.getCause(), LOG); return mapping.findForward("results"); } throw e; } catch (ObjectStoreException e) { recordError(new ActionMessage("errors.query.objectstoreerror"), request, e, LOG); return mapping.findForward("results"); } } for (Iterator rowIterator = allRows.iterator(); rowIterator.hasNext();) { List thisRow = (List) rowIterator.next(); if (storingIds) { Integer id = ((InterMineObject) thisRow.get(column)).getId(); bag.add(id); } else { bag.add(thisRow.get(column)); } if (bag.size() > maxBagSize) { ActionMessage actionMessage = new ActionMessage("bag.tooBig", new Integer(maxBagSize)); recordError(actionMessage, request); return mapping.findForward("results"); } } } else { // use the column,row to pick out the object from PagedTable int column = Integer.parseInt(selectedObject.substring(0, commaIndex)); int row = Integer.parseInt(selectedObject.substring(commaIndex + 1)); Object value = ((List) pt.getRows().get(row)).get(column); if (storingIds) { Integer id = ((InterMineObject) value).getId(); bag.add(id); } else { bag.add(value); } if (bag.size() > maxBagSize) { ActionMessage actionMessage = new ActionMessage("bag.tooBig", new Integer(maxBagSize)); recordError(actionMessage, request); return mapping.findForward("results"); } } } String bagName; if (request.getParameter("saveNewBag") != null) { bagName = crf.getNewBagName(); } else { bagName = crf.getExistingBagName(); } InterMineBag existingBag = (InterMineBag) profile.getSavedBags().get(bagName); if (existingBag != null) { if (!existingBag.getClass().equals(bag.getClass())) { recordError(new ActionMessage("bag.typesDontMatch"), request); return mapping.findForward("results"); } bag.addAll(existingBag); } if (bag.size() > maxBagSize) { ActionMessage actionMessage = new ActionMessage("bag.tooBig", new Integer(maxBagSize)); recordError(actionMessage, request); return mapping.findForward("results"); } profile.saveBag(bagName, bag); recordMessage(new ActionMessage("bag.saved", bagName), request); return mapping.findForward("results"); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/5184009a6198f2907d8c92b488bb32928005458c/SaveBagAction.java/clean/intermine/web/main/src/org/intermine/web/results/SaveBagAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 1923, 5013, 12, 1803, 3233, 2874, 16, 4766, 4382, 1204, 646, 16, 4766, 9984, 590, 16, 4766, 12446, 766, 13, 3639, 1216, 16517, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 5621, 3639, 22717, 20474, 273, 1339, 18, 588, 4745, 1042, 5621, 3639, 11357, 3042, 273, 261, 4029, 13, 1339, 18, 588, 1499, 12, 2918, 18, 22462, 1769, 3639, 368, 10156, 329, 1388, 5818, 273, 261, 10156, 329, 1388, 13, 1339, 18, 588, 1499, 12, 2918, 18, 20602, 67, 7775, 1769, 3639, 7724, 329, 1388, 5818, 273, 3877, 4712, 18, 588, 3447, 1388, 12, 3184, 16, 590, 18, 588, 1662, 2932, 2121, 7923, 1769, 3639, 7074, 5013, 1204, 4422, 74, 273, 261, 4755, 5013, 1204, 13, 646, 31, 3639, 5294, 49, 558, 5013, 13189, 273, 446, 31, 3639, 1250, 15729, 2673, 273, 629, 31, 3639, 509, 805, 2747, 273, 12619, 31, 3639, 509, 943, 5013, 1225, 273, 2999, 1304, 18, 588, 1702, 2157, 1396, 12, 3184, 16, 315, 1896, 18, 22551, 18, 1467, 3113, 805, 2747, 1769, 3639, 368, 1788, 326, 2145, 3846, 434, 13189, 3639, 514, 3170, 273, 4422, 74, 18, 588, 7416, 4710, 1435, 63, 20, 15533, 3639, 509, 770, 273, 3170, 18, 31806, 2932, 16, 8863, 3639, 509, 645, 273, 2144, 18, 2670, 1702, 12, 1615, 422, 300, 21, 692, 3170, 294, 3170, 18, 28023, 12, 20, 16, 770, 10019, 3639, 1033, 618, 273, 14015, 1494, 13, 5818, 18, 588, 3380, 7675, 588, 12, 1293, 13, 2934, 588, 559, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4382, 8514, 1923, 5013, 12, 1803, 3233, 2874, 16, 4766, 4382, 1204, 646, 16, 4766, 9984, 590, 16, 4766, 12446, 766, 13, 3639, 1216, 16517, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 5621, 3639, 22717, 20474, 273, 1339, 18, 588, 4745, 1042, 5621, 3639, 11357, 3042, 273, 261, 4029, 13, 1339, 18, 588, 1499, 12, 2918, 18, 22462, 1769, 3639, 368, 10156, 329, 1388, 5818, 273, 261, 10156, 329, 1388, 13, 1339, 18, 588, 1499, 12, 2918, 18, 20602, 67, 7775, 1769, 3639, 7724, 329, 1388, 5818, 273, 3877, 4712, 18, 588, 3447, 1388, 12, 3184, 16, 590, 18, 588, 1662, 2932, 2121, 7923, 1769, 3639, 7074, 5013, 1204, 4422, 74, 273, 261, 4755, 5013, 2 ]
getCurrentFrame().getEvalState().setSelf(getCurrentFrame().getSelf());
private IRubyObject yieldInternal(Block yieldBlock, IRubyObject value, IRubyObject self, RubyModule klass, boolean aValue) { // block is executed under its own self, so save the old one (use a stack?) IRubyObject oldSelf = getCurrentFrame().getEvalState().getSelf(); try { setCRef(yieldBlock.getCRef()); if (klass == null) { self = yieldBlock.getSelf(); } getCurrentFrame().getEvalState().setSelf(getCurrentFrame().getSelf()); // FIXME: during refactoring, it was determined that all calls to yield are passing false for yieldProc; is this still needed? IRubyObject[] args = getBlockArgs(value, self, false, aValue, yieldBlock); while (true) { try { // FIXME: is it appropriate to use the current frame's (the block's frame's) lastClass? IRubyObject result = yieldBlock.getMethod().call(runtime, self, getCurrentFrame().getLastClass(), null, args, false); return result; } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.RedoJump) { // do nothing, allow loop to redo } else { throw je; } } } } finally { getCurrentFrame().getEvalState().setSelf(oldSelf); unsetCRef(); } }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/6e15491217631472c05c6928672f9c7064a978b3/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 2824, 3061, 12, 1768, 2824, 1768, 16, 15908, 10340, 921, 460, 16, 15908, 10340, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 24406, 13, 288, 3639, 368, 1203, 353, 7120, 3613, 2097, 4953, 365, 16, 1427, 1923, 326, 1592, 1245, 261, 1202, 279, 2110, 8535, 3639, 15908, 10340, 921, 1592, 10084, 273, 5175, 3219, 7675, 588, 13904, 1119, 7675, 588, 10084, 5621, 7734, 775, 288, 5411, 11440, 1957, 12, 23604, 1768, 18, 588, 39, 1957, 10663, 13491, 309, 261, 22626, 422, 446, 13, 288, 7734, 365, 273, 2824, 1768, 18, 588, 10084, 5621, 21821, 289, 4766, 4202, 368, 9852, 30, 4982, 283, 3493, 6053, 16, 518, 1703, 11383, 716, 777, 4097, 358, 2824, 854, 9588, 629, 364, 2824, 15417, 31, 353, 333, 4859, 3577, 35, 5411, 15908, 10340, 921, 8526, 833, 273, 11902, 2615, 12, 1132, 16, 365, 16, 629, 16, 24406, 16, 2824, 1768, 1769, 5411, 1323, 261, 3767, 13, 288, 7734, 775, 288, 10792, 368, 9852, 30, 353, 518, 5505, 358, 999, 326, 783, 2623, 1807, 261, 5787, 1203, 1807, 2623, 1807, 13, 1142, 797, 35, 10792, 15908, 10340, 921, 563, 273, 2824, 1768, 18, 588, 1305, 7675, 1991, 12, 9448, 16, 365, 16, 5175, 3219, 7675, 588, 3024, 797, 9334, 446, 16, 833, 16, 629, 1769, 4766, 3639, 327, 563, 31, 7734, 289, 1044, 261, 26743, 503, 30356, 13, 288, 10792, 309, 261, 78, 73, 18, 588, 26743, 559, 1435, 422, 804, 2801, 503, 18, 26743, 559, 18, 3715, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 2824, 3061, 12, 1768, 2824, 1768, 16, 15908, 10340, 921, 460, 16, 15908, 10340, 921, 365, 16, 19817, 3120, 7352, 16, 1250, 24406, 13, 288, 3639, 368, 1203, 353, 7120, 3613, 2097, 4953, 365, 16, 1427, 1923, 326, 1592, 1245, 261, 1202, 279, 2110, 8535, 3639, 15908, 10340, 921, 1592, 10084, 273, 5175, 3219, 7675, 588, 13904, 1119, 7675, 588, 10084, 5621, 7734, 775, 288, 5411, 11440, 1957, 12, 23604, 1768, 18, 588, 39, 1957, 10663, 13491, 309, 261, 22626, 422, 446, 13, 288, 7734, 365, 273, 2824, 1768, 18, 588, 10084, 5621, 21821, 289, 4766, 4202, 368, 9852, 30, 4982, 283, 3493, 6053, 16, 518, 1703, 11383, 716, 777, 4097, 358, 2824, 854, 2 ]
public SienaOutput(EPOutputInterface ep, Element e)
public SienaOutput(EPOutputInterface ep, Element el)
public SienaOutput(EPOutputInterface ep, Element e) throws InstantiationException { super(ep,e); // Set up debugging, etc. // Figure out to whom we should be publishing sienaHost = e.getAttribute("SienaHost"); if(sienaHost == null || sienaHost.length() == 0) { debug.error("Siena host not specified, " + "cannot continue building hd output channel"); sienaHost = null; throw new InstantiationException("Cannot connect to specified " + "Siena host"); } // Now attempt to connect hd = new HierarchicalDispatcher(); try { hd.setReceiver(new TCPPacketReceiver(0)); hd.setMaster(sienaHost); } catch(Exception ex) { debug.error("Cannot connect to specified Siena host", ex); hd = null; sienaHost = null; throw new InstantiationException("Cannot connect to specified " + "Siena host"); } }
14534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14534/7075fd5bf4a8604c14ad899ca05846a7ef5ddb87/SienaOutput.java/buggy/ep/output/SienaOutput.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 27834, 24457, 1447, 12, 10541, 1447, 1358, 5529, 16, 3010, 415, 13, 282, 1216, 19248, 288, 565, 2240, 12, 881, 16, 73, 1769, 368, 1000, 731, 10450, 16, 5527, 18, 3639, 368, 18818, 596, 358, 600, 362, 732, 1410, 506, 23636, 565, 7533, 24457, 2594, 273, 425, 18, 588, 1499, 2932, 55, 77, 24457, 2594, 8863, 565, 309, 12, 7722, 24457, 2594, 422, 446, 747, 7533, 24457, 2594, 18, 2469, 1435, 422, 374, 13, 288, 1377, 1198, 18, 1636, 2932, 55, 77, 24457, 1479, 486, 1269, 16, 315, 397, 1377, 315, 12892, 1324, 10504, 15921, 876, 1904, 8863, 1377, 7533, 24457, 2594, 273, 446, 31, 1377, 604, 394, 19248, 2932, 4515, 3077, 358, 1269, 315, 397, 1377, 315, 55, 77, 24457, 1479, 8863, 565, 289, 3639, 368, 4494, 4395, 358, 3077, 565, 15921, 273, 394, 28267, 6681, 5621, 565, 775, 288, 1377, 15921, 18, 542, 12952, 12, 2704, 9911, 6667, 12952, 12, 20, 10019, 1377, 15921, 18, 542, 7786, 12, 7722, 24457, 2594, 1769, 565, 289, 1044, 12, 503, 431, 13, 288, 1377, 1198, 18, 1636, 2932, 4515, 3077, 358, 1269, 27834, 24457, 1479, 3113, 431, 1769, 1377, 15921, 273, 446, 31, 1377, 7533, 24457, 2594, 273, 446, 31, 1377, 604, 394, 19248, 2932, 4515, 3077, 358, 1269, 315, 397, 4202, 315, 55, 77, 24457, 1479, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 27834, 24457, 1447, 12, 10541, 1447, 1358, 5529, 16, 3010, 415, 13, 282, 1216, 19248, 288, 565, 2240, 12, 881, 16, 73, 1769, 368, 1000, 731, 10450, 16, 5527, 18, 3639, 368, 18818, 596, 358, 600, 362, 732, 1410, 506, 23636, 565, 7533, 24457, 2594, 273, 425, 18, 588, 1499, 2932, 55, 77, 24457, 2594, 8863, 565, 309, 12, 7722, 24457, 2594, 422, 446, 747, 7533, 24457, 2594, 18, 2469, 1435, 422, 374, 13, 288, 1377, 1198, 18, 1636, 2932, 55, 77, 24457, 1479, 486, 1269, 16, 315, 397, 1377, 315, 12892, 1324, 10504, 15921, 876, 1904, 8863, 1377, 7533, 24457, 2594, 273, 446, 31, 1377, 604, 394, 19248, 2932, 4515, 3077, 358, 1269, 315, 397, 1377, 2 ]
addDynamicProperty(new GetParamsDynamicProperty(request,response)); addDynamicProperty(new GetSessionDynamicProperty(request,response)); addDynamicProperty(new GenericDynamicProperty(REQUEST_PROPERTY, HttpServletRequest.class,new GrailsHttpServletRequest( request,controller),true) ); addDynamicProperty(new GenericDynamicProperty(RESPONSE_PROPERTY, HttpServletResponse.class,response,true) );
addDynamicProperty(controllerDynamicMethods.getDynamicProperty(GetParamsDynamicProperty.PROPERTY_NAME)); addDynamicProperty(controllerDynamicMethods.getDynamicProperty(GetSessionDynamicProperty.PROPERTY_NAME)); addDynamicProperty(controllerDynamicMethods.getDynamicProperty(ControllerDynamicMethods.REQUEST_PROPERTY)); addDynamicProperty(controllerDynamicMethods.getDynamicProperty(ControllerDynamicMethods.RESPONSE_PROPERTY) ); addDynamicProperty(controllerDynamicMethods.getDynamicProperty(ControllerDynamicMethods.SERVLET_CONTEXT) ); addDynamicProperty(controllerDynamicMethods.getDynamicProperty(ControllerDynamicMethods.GRAILS_ATTRIBUTES) );
public TagLibDynamicMethods(GroovyObject taglib, GroovyObject controller, HttpServletRequest request, HttpServletResponse response) throws IntrospectionException { super(taglib); addDynamicProperty(new GenericDynamicProperty(OUT_PROPERTY, Writer.class,false)); // add dynamic properties addDynamicProperty(new GetParamsDynamicProperty(request,response)); addDynamicProperty(new GetSessionDynamicProperty(request,response)); addDynamicProperty(new GenericDynamicProperty(REQUEST_PROPERTY, HttpServletRequest.class,new GrailsHttpServletRequest( request,controller),true) ); addDynamicProperty(new GenericDynamicProperty(RESPONSE_PROPERTY, HttpServletResponse.class,response,true) ); }
51576 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51576/9319b2487e82433202c4b7e86c557193a7ad2ae3/TagLibDynamicMethods.java/clean/src/web/org/codehaus/groovy/grails/web/metaclass/TagLibDynamicMethods.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4034, 5664, 9791, 4712, 12, 43, 12859, 921, 1047, 2941, 16, 20841, 921, 2596, 16, 9984, 590, 16, 12446, 766, 13, 1216, 3094, 26362, 503, 288, 3639, 2240, 12, 2692, 2941, 1769, 3639, 527, 9791, 1396, 12, 2704, 7928, 9791, 1396, 12, 5069, 67, 9900, 16, 5497, 18, 1106, 16, 5743, 10019, 3639, 368, 527, 5976, 1790, 3639, 527, 9791, 1396, 12, 2704, 968, 1370, 9791, 1396, 12, 2293, 16, 2740, 10019, 3639, 527, 9791, 1396, 12, 2704, 23994, 9791, 1396, 12, 2293, 16, 2740, 10019, 3639, 527, 9791, 1396, 12, 2704, 7928, 9791, 1396, 12, 5519, 67, 9900, 16, 9984, 18, 1106, 16, 2704, 10812, 14573, 2940, 18572, 12, 590, 16, 5723, 3631, 3767, 13, 11272, 3639, 527, 9791, 1396, 12, 2704, 7928, 9791, 1396, 12, 14508, 67, 9900, 16, 12446, 18, 1106, 16, 2740, 16, 3767, 13, 11272, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4034, 5664, 9791, 4712, 12, 43, 12859, 921, 1047, 2941, 16, 20841, 921, 2596, 16, 9984, 590, 16, 12446, 766, 13, 1216, 3094, 26362, 503, 288, 3639, 2240, 12, 2692, 2941, 1769, 3639, 527, 9791, 1396, 12, 2704, 7928, 9791, 1396, 12, 5069, 67, 9900, 16, 5497, 18, 1106, 16, 5743, 10019, 3639, 368, 527, 5976, 1790, 3639, 527, 9791, 1396, 12, 2704, 968, 1370, 9791, 1396, 12, 2293, 16, 2740, 10019, 3639, 527, 9791, 1396, 12, 2704, 23994, 9791, 1396, 12, 2293, 16, 2740, 10019, 3639, 527, 9791, 1396, 12, 2704, 7928, 9791, 1396, 12, 5519, 67, 9900, 16, 9984, 18, 1106, 16, 2704, 10812, 14573, 2940, 18572, 12, 590, 16, 5723, 3631, 3767, 13, 11272, 2 ]
if (REPOS_DEBUG) System.out.println(" Added " + numAdded + " classes to repository");
private void addFileToRepository(ClassProducer classProducer, List<String> repositoryClassList) throws IOException, InterruptedException { String fileName = classProducer.getFileName(); if (REPOS_DEBUG) System.out.println("Scanning " + fileName); int numAdded = 0; try { // Load all referenced classes into the Repository for (;;) { if (Thread.interrupted()) throw new InterruptedException(); try { JavaClass jclass = classProducer.getNextClass(); if (jclass == null) break; Repository.addClass(jclass); ++numAdded; repositoryClassList.add(jclass.getClassName()); } catch (ClassFormatException e) { e.printStackTrace(); bugReporter.logError(e.getMessage()); } } if (REPOS_DEBUG) System.out.println(" Added " + numAdded + " classes to repository"); progressCallback.finishArchive(); // If the archive or directory scanned contained source files, // add it to the end of the source path. if (classProducer.containsSourceFiles()) project.addSourceDir(fileName); } catch (IOException e) { // You'd think that the message for a FileNotFoundException would include // the filename, but you'd be wrong. So, we'll add it explicitly. throw new IOException("Could not analyze " + fileName + ": " + e.getMessage()); } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/5950a18271795dcfc05b17ef11ab7f16c970307b/FindBugs.java/clean/findbugs/src/java/edu/umd/cs/findbugs/FindBugs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 18671, 774, 3305, 12, 797, 12140, 667, 12140, 16, 987, 32, 780, 34, 3352, 30546, 13, 202, 15069, 1860, 16, 7558, 288, 377, 514, 3968, 273, 667, 12140, 18, 588, 4771, 5621, 377, 309, 261, 862, 7057, 67, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1541, 10903, 315, 397, 3968, 1769, 377, 509, 818, 8602, 273, 374, 31, 377, 775, 288, 202, 759, 4444, 777, 8042, 3318, 1368, 326, 6281, 202, 1884, 261, 25708, 13, 288, 202, 202, 430, 261, 3830, 18, 474, 5954, 10756, 1082, 202, 12849, 394, 7558, 5621, 202, 202, 698, 288, 1082, 202, 5852, 797, 525, 1106, 273, 667, 12140, 18, 588, 2134, 797, 5621, 1082, 202, 430, 261, 78, 1106, 422, 446, 13, 9506, 202, 8820, 31, 1082, 202, 3305, 18, 1289, 797, 12, 78, 1106, 1769, 1082, 202, 9904, 2107, 8602, 31, 1082, 202, 9071, 30546, 18, 1289, 12, 78, 1106, 18, 588, 3834, 10663, 202, 202, 97, 1044, 261, 797, 9291, 425, 13, 288, 1082, 202, 73, 18, 1188, 6332, 5621, 1082, 202, 925, 13289, 18, 1330, 668, 12, 73, 18, 24906, 10663, 202, 202, 97, 202, 97, 202, 430, 261, 862, 7057, 67, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 225, 25808, 315, 397, 818, 8602, 397, 315, 3318, 358, 3352, 8863, 202, 8298, 2428, 18, 13749, 7465, 5621, 202, 759, 971, 326, 5052, 578, 1867, 22711, 7542, 1084, 1390, 16, 202, 759, 527, 518, 358, 326, 679, 434, 326, 1084, 589, 18, 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, 282, 3238, 918, 18671, 774, 3305, 12, 797, 12140, 667, 12140, 16, 987, 32, 780, 34, 3352, 30546, 13, 202, 15069, 1860, 16, 7558, 288, 377, 514, 3968, 273, 667, 12140, 18, 588, 4771, 5621, 377, 309, 261, 862, 7057, 67, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1541, 10903, 315, 397, 3968, 1769, 377, 509, 818, 8602, 273, 374, 31, 377, 775, 288, 202, 759, 4444, 777, 8042, 3318, 1368, 326, 6281, 202, 1884, 261, 25708, 13, 288, 202, 202, 430, 261, 3830, 18, 474, 5954, 10756, 1082, 202, 12849, 394, 7558, 5621, 202, 202, 698, 288, 1082, 202, 5852, 797, 525, 1106, 273, 667, 12140, 18, 588, 2134, 797, 5621, 1082, 202, 430, 261, 78, 1106, 2 ]
userManager.denyAccountRequest(getSuperUser(),(AccountRequest)result.get(0), null);
userManager.denyAccountRequest(getSuperUser(), ianRequest, null);
public void testDenyAccountRequest() { log.info("+ testdenyAccountRequest"); User jason = userManager.getUser("jason"); List result = userManager.getAccountRequests(); try { userManager.denyAccountRequest(jason,(AccountRequest)result.get(0), null); fail("should raise Permission denied Exception"); } catch (PermissionDeniedException e) { } try { userManager.denyAccountRequest(getSuperUser(),(AccountRequest)result.get(0), null); } catch (PermissionDeniedException e) { fail("should NOT raise Permission denied Exception"); } }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/34612e7451faa62a902aa9c18a27bd832f7daba8/UserManagerServiceTest.java/clean/tests/org/gridlab/gridsphere/services/user/UserManagerServiceTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8517, 93, 3032, 691, 1435, 288, 3639, 613, 18, 1376, 2932, 15, 1842, 13002, 93, 3032, 691, 8863, 3639, 2177, 525, 2753, 273, 30833, 18, 588, 1299, 2932, 78, 2753, 8863, 3639, 987, 563, 273, 30833, 18, 588, 3032, 6421, 5621, 3639, 775, 288, 5411, 30833, 18, 13002, 93, 3032, 691, 12, 78, 2753, 16, 12, 3032, 691, 13, 2088, 18, 588, 12, 20, 3631, 446, 1769, 5411, 2321, 2932, 13139, 1002, 8509, 15338, 1185, 8863, 3639, 289, 1044, 261, 5041, 15877, 425, 13, 288, 3639, 289, 3639, 775, 288, 5411, 30833, 18, 13002, 93, 3032, 691, 12, 588, 8051, 1299, 9334, 277, 304, 691, 16, 446, 1769, 3639, 289, 1044, 261, 5041, 15877, 425, 13, 288, 6647, 2321, 2932, 13139, 4269, 1002, 8509, 15338, 1185, 8863, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 8517, 93, 3032, 691, 1435, 288, 3639, 613, 18, 1376, 2932, 15, 1842, 13002, 93, 3032, 691, 8863, 3639, 2177, 525, 2753, 273, 30833, 18, 588, 1299, 2932, 78, 2753, 8863, 3639, 987, 563, 273, 30833, 18, 588, 3032, 6421, 5621, 3639, 775, 288, 5411, 30833, 18, 13002, 93, 3032, 691, 12, 78, 2753, 16, 12, 3032, 691, 13, 2088, 18, 588, 12, 20, 3631, 446, 1769, 5411, 2321, 2932, 13139, 1002, 8509, 15338, 1185, 8863, 3639, 289, 1044, 261, 5041, 15877, 425, 13, 288, 3639, 289, 3639, 775, 288, 5411, 30833, 18, 13002, 93, 3032, 691, 12, 588, 8051, 1299, 9334, 277, 304, 691, 16, 446, 1769, 3639, 289, 1044, 261, 5041, 15877, 425, 2 ]
fieldsMap.put(opt.getId(), dirFieldEditor);
fieldsMap.put(prefName, dirFieldEditor);
protected void createFieldEditors() { // Get the preference store for the build settings super.createFieldEditors(); // Iterate over the options in the category and create a field editor // for each Object[][] options; if ( isItResourceConfigPage ) { options = category.getOptions(resConfig); } else { options = category.getOptions(configuration); } for (int index = 0; index < options.length; ++index) { // Get the option IHoldsOptions holder = (IHoldsOptions)options[index][0]; if (holder == null) break; // The array may not be full IOption opt = (IOption)options[index][1]; // check to see if the option has an applicability calculator IOptionApplicability applicabilityCalculator = opt.getApplicabilityCalculator(); // is the option visible? IBuildObject config; if ( isItResourceConfigPage ) { config = resConfig; } else { config = configuration; } if (applicabilityCalculator == null || applicabilityCalculator.isOptionVisible(config, holder, opt)) { try { // Figure out which type the option is and add a proper field // editor for it switch (opt.getValueType()) { case IOption.STRING: // fix for PR 63973 // Check browse type. // If browsing is set, use a field editor that has a // browse button of // the appropriate type. // Otherwise, use a regular text field. switch (opt.getBrowseType()) { case IOption.BROWSE_DIR: Composite fieldEditorParent2 = getFieldEditorParent(); DirectoryFieldEditor dirFieldEditor = new DirectoryFieldEditor( opt.getId(), opt.getName(), fieldEditorParent2); setFieldEditorEnablement(holder, opt, applicabilityCalculator, dirFieldEditor, fieldEditorParent2); addField(dirFieldEditor); fieldsMap.put(opt.getId(), dirFieldEditor); fieldEditorsToParentMap.put(dirFieldEditor, fieldEditorParent2); break; case IOption.BROWSE_FILE: Composite fieldEditorParent3 = getFieldEditorParent(); FileFieldEditor fileFieldEditor = new FileFieldEditor( opt.getId(), opt.getName(), fieldEditorParent3); setFieldEditorEnablement(holder, opt, applicabilityCalculator, fileFieldEditor, fieldEditorParent3); addField(fileFieldEditor); fieldsMap.put(opt.getId(), fileFieldEditor); fieldEditorsToParentMap.put(fileFieldEditor, fieldEditorParent3); break; case IOption.BROWSE_NONE: Composite fieldEditorParent4 = getFieldEditorParent(); StringFieldEditor stringField = new StringFieldEditor( opt.getId(), opt.getName(), fieldEditorParent4); setFieldEditorEnablement(holder, opt, applicabilityCalculator, stringField, fieldEditorParent4); addField(stringField); fieldsMap.put(opt.getId(), stringField); fieldEditorsToParentMap.put(stringField, fieldEditorParent4); break; default: // should not be possible throw (new AssertionError()); } // end fix for 63973 break; case IOption.BOOLEAN: Composite fieldEditorParent5 = getFieldEditorParent(); BooleanFieldEditor booleanField = new BooleanFieldEditor( opt.getId(), opt.getName(), fieldEditorParent5); setFieldEditorEnablement(holder, opt, applicabilityCalculator, booleanField, fieldEditorParent5); addField(booleanField); fieldsMap.put(opt.getId(), booleanField); fieldEditorsToParentMap.put(booleanField, fieldEditorParent5); break; case IOption.ENUMERATED: String selId; String sel; try { selId = opt.getSelectedEnum(); sel = opt.getEnumName(selId); } catch (BuildException e) { // If we get this exception, then the option type is // wrong break; } // Get all applicable values for this enumerated Option, But display // only the enumerated values that are valid (static set of enumerated values defined // in the plugin.xml file) in the UI Combobox. This refrains the user from selecting an // invalid value and avoids issuing an error message. String[] enumNames = opt.getApplicableValues(); Vector enumValidList = new Vector(); for (int i = 0; i < enumNames.length; ++i) { if (opt.getValueHandler().isEnumValueAppropriate(getConfigurationHandle(), opt.getOptionHolder(), opt, opt.getValueHandlerExtraArgument(), enumNames[i])) { enumValidList.add(enumNames[i]); } } String[] enumValidNames = new String[enumValidList.size()]; enumValidList.copyInto(enumValidNames); Composite fieldEditorParent6 = getFieldEditorParent(); BuildOptionComboFieldEditor comboField = new BuildOptionComboFieldEditor( opt.getId(), opt.getName(), enumValidNames, sel, fieldEditorParent6); setFieldEditorEnablement(holder, opt, applicabilityCalculator, comboField, fieldEditorParent6); addField(comboField); fieldsMap.put(opt.getId(), comboField); fieldEditorsToParentMap.put(comboField, fieldEditorParent6); break; case IOption.INCLUDE_PATH: case IOption.STRING_LIST: case IOption.PREPROCESSOR_SYMBOLS: case IOption.LIBRARIES: case IOption.OBJECTS: Composite fieldEditorParent7 = getFieldEditorParent(); FileListControlFieldEditor listField = new FileListControlFieldEditor( opt.getId(), opt.getName(), fieldEditorParent7, opt.getBrowseType()); setFieldEditorEnablement(holder, opt, applicabilityCalculator, listField, fieldEditorParent7); addField(listField); fieldsMap.put(opt.getId(), listField); fieldEditorsToParentMap.put(listField, fieldEditorParent7); break; default: break; } } catch (BuildException e) { } } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/ca2e8c288e0d3b7b382d3418afbe110662fcfed4/BuildOptionSettingsPage.java/clean/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildOptionSettingsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 974, 4666, 1383, 1435, 288, 202, 202, 759, 968, 326, 11555, 1707, 364, 326, 1361, 1947, 202, 202, 9565, 18, 2640, 974, 4666, 1383, 5621, 202, 202, 759, 11436, 1879, 326, 702, 316, 326, 3150, 471, 752, 279, 652, 4858, 202, 202, 759, 364, 1517, 202, 202, 921, 63, 6362, 65, 702, 31, 202, 202, 430, 261, 353, 7193, 1420, 809, 1964, 262, 288, 1082, 202, 2116, 273, 3150, 18, 588, 1320, 12, 455, 809, 1769, 202, 202, 97, 469, 288, 1082, 202, 2116, 273, 3150, 18, 588, 1320, 12, 7025, 1769, 202, 202, 97, 9506, 202, 1884, 261, 474, 770, 273, 374, 31, 770, 411, 702, 18, 2469, 31, 965, 1615, 13, 288, 1082, 202, 759, 968, 326, 1456, 1082, 202, 45, 20586, 87, 1320, 10438, 273, 261, 45, 20586, 87, 1320, 13, 2116, 63, 1615, 6362, 20, 15533, 1082, 202, 430, 261, 4505, 422, 446, 13, 898, 31, 202, 759, 225, 1021, 526, 2026, 486, 506, 1983, 1082, 202, 45, 1895, 2153, 273, 261, 45, 1895, 13, 2116, 63, 1615, 6362, 21, 15533, 25083, 202, 759, 866, 358, 2621, 309, 326, 1456, 711, 392, 513, 1780, 2967, 15497, 1082, 202, 45, 1895, 1294, 1780, 2967, 513, 1780, 2967, 19278, 273, 2153, 18, 588, 1294, 1780, 2967, 19278, 5621, 25083, 202, 759, 353, 326, 1456, 6021, 35, 1082, 202, 45, 3116, 921, 642, 31, 1082, 202, 430, 261, 353, 7193, 1420, 809, 1964, 262, 288, 9506, 202, 1425, 273, 400, 809, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 752, 974, 4666, 1383, 1435, 288, 202, 202, 759, 968, 326, 11555, 1707, 364, 326, 1361, 1947, 202, 202, 9565, 18, 2640, 974, 4666, 1383, 5621, 202, 202, 759, 11436, 1879, 326, 702, 316, 326, 3150, 471, 752, 279, 652, 4858, 202, 202, 759, 364, 1517, 202, 202, 921, 63, 6362, 65, 702, 31, 202, 202, 430, 261, 353, 7193, 1420, 809, 1964, 262, 288, 1082, 202, 2116, 273, 3150, 18, 588, 1320, 12, 455, 809, 1769, 202, 202, 97, 469, 288, 1082, 202, 2116, 273, 3150, 18, 588, 1320, 12, 7025, 1769, 202, 202, 97, 9506, 202, 1884, 261, 474, 770, 273, 374, 31, 770, 411, 702, 18, 2469, 31, 965, 1615, 13, 288, 2 ]
staticSprocDelPhoneNr( service, newUser.getId() );
String[] sprocParameters = new String[]{String.valueOf( newUser.getId() )}; database.sqlUpdateProcedure( SPROC_DEL_PHONE_NR, sprocParameters );
private void removePhoneNumbers( UserDomainObject newUser ) { staticSprocDelPhoneNr( service, newUser.getId() ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/c83617d9726a104623b6b1e5e60386ce5debb0ff/ImcmsAuthenticatorAndUserAndRoleMapper.java/buggy/server/src/imcode/server/user/ImcmsAuthenticatorAndUserAndRoleMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1206, 9451, 10072, 12, 2177, 3748, 921, 394, 1299, 262, 288, 3639, 514, 8526, 272, 9381, 2402, 273, 394, 514, 63, 7073, 780, 18, 1132, 951, 12, 394, 1299, 18, 26321, 1435, 262, 20451, 2063, 18, 4669, 1891, 17213, 12, 348, 3373, 39, 67, 24733, 67, 8939, 5998, 67, 50, 54, 16, 272, 9381, 2402, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1206, 9451, 10072, 12, 2177, 3748, 921, 394, 1299, 262, 288, 3639, 514, 8526, 272, 9381, 2402, 273, 394, 514, 63, 7073, 780, 18, 1132, 951, 12, 394, 1299, 18, 26321, 1435, 262, 20451, 2063, 18, 4669, 1891, 17213, 12, 348, 3373, 39, 67, 24733, 67, 8939, 5998, 67, 50, 54, 16, 272, 9381, 2402, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void updateMessage() { String message = currentPage.getMessage(); int messageType = IMessageProvider.NONE; if (message != null && currentPage instanceof IMessageProvider) messageType = ((IMessageProvider) currentPage).getMessageType(); String errorMessage = currentPage.getErrorMessage(); if(errorMessage != null){ message = errorMessage; messageType = IMessageProvider.ERROR; } messageArea.updateText(message,messageType); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c81847dd2b0ee97067c6b2deeda3abad31c93db8/PreferenceDialog.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 2725, 1079, 1435, 95, 202, 202, 780, 2150, 33, 2972, 1964, 18, 24906, 5621, 202, 202, 474, 2150, 559, 33, 45, 1079, 2249, 18, 9826, 31, 202, 202, 430, 12, 2150, 5, 33, 2011, 10, 10, 2972, 1964, 1336, 792, 45, 1079, 2249, 13, 1082, 202, 2150, 559, 33, 12443, 45, 1079, 2249, 13, 2972, 1964, 2934, 588, 24563, 5621, 202, 202, 780, 1636, 1079, 33, 2972, 1964, 18, 588, 14935, 5621, 202, 202, 430, 12, 1636, 1079, 5, 33, 2011, 15329, 1082, 202, 2150, 33, 1636, 1079, 31, 1082, 202, 2150, 559, 33, 45, 1079, 2249, 18, 3589, 31, 202, 202, 97, 9506, 202, 2150, 5484, 18, 2725, 1528, 12, 2150, 16, 2150, 559, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6459, 2725, 1079, 1435, 95, 202, 202, 780, 2150, 33, 2972, 1964, 18, 24906, 5621, 202, 202, 474, 2150, 559, 33, 45, 1079, 2249, 18, 9826, 31, 202, 202, 430, 12, 2150, 5, 33, 2011, 10, 10, 2972, 1964, 1336, 792, 45, 1079, 2249, 13, 1082, 202, 2150, 559, 33, 12443, 45, 1079, 2249, 13, 2972, 1964, 2934, 588, 24563, 5621, 202, 202, 780, 1636, 1079, 33, 2972, 1964, 18, 588, 14935, 5621, 202, 202, 430, 12, 1636, 1079, 5, 33, 2011, 15329, 1082, 202, 2150, 33, 1636, 1079, 31, 1082, 202, 2150, 559, 33, 45, 1079, 2249, 18, 3589, 31, 202, 202, 97, 9506, 202, 2150, 5484, 18, 2725, 1528, 12, 2150, 16, 2150, 559, 2 ]
log.debug( "Not authenticated. Make sure you entered a valid username and/or password" );
log.error( "Not authenticated. Make sure you entered a valid username and/or password" );
public static void main( String args[] ) throws IOException { ProteinLoaderCLI cli = null; try { /* OPTIONS STAGE */ /* help */ OptionBuilder.withDescription( "Print help for this application" ); Option helpOpt = OptionBuilder.create( 'h' ); /* username */ OptionBuilder.hasArgs(); OptionBuilder.withDescription( "Username" ); Option usernameOpt = OptionBuilder.create( 'u' ); /* password */ OptionBuilder.hasArgs(); OptionBuilder.withDescription( "Password" ); Option passwordOpt = OptionBuilder.create( 'p' ); /* environment (test or prod) */ OptionBuilder.hasArgs(); OptionBuilder.withDescription( "Set use of test or production environment" ); Option testOpt = OptionBuilder.create( 't' ); /* parse and load */ OptionBuilder.hasArgs(); OptionBuilder.withDescription( "Specify file (requires file arg) and load database with entries from file" ); Option loadOpt = OptionBuilder.create( 'l' ); /* remove */ OptionBuilder.withDescription( "Remove gene products (proteins, etc.) from database" ); Option removeOpt = OptionBuilder.create( 'r' ); Options opt = new Options(); opt.addOption( helpOpt ); opt.addOption( usernameOpt ); opt.addOption( passwordOpt ); opt.addOption( testOpt ); opt.addOption( loadOpt ); opt.addOption( removeOpt ); /* COMMAND LINE PARSER STAGE */ BasicParser parser = new BasicParser(); CommandLine cl = parser.parse( opt, args ); /* INTERROGATION STAGE */ if ( cl.hasOption( 'h' ) ) { printHelp( opt ); System.exit( 0 ); } /* check if using test or production context */ if ( cl.hasOption( 't' ) ) { boolean isTest = Boolean.parseBoolean( cl.getOptionValue( 't' ) ); if ( isTest ) ctx = SpringContextUtil.getApplicationContext( true ); else ctx = SpringContextUtil.getApplicationContext( false ); cli = new ProteinLoaderCLI(); } // if no ctx is set, default to test environment. else { ctx = SpringContextUtil.getApplicationContext( true ); cli = new ProteinLoaderCLI(); } /* check username and password. */ if ( cl.hasOption( 'u' ) ) { if ( cl.hasOption( 'p' ) ) { username = cl.getOptionValue( 'u' ); password = cl.getOptionValue( 'p' ); manAuthentication = ( ManualAuthenticationProcessing ) ctx .getBean( "manualAuthenticationProcessing" ); manAuthentication.validateRequest( username, password ); } } else { log.debug( "Not authenticated. Make sure you entered a valid username and/or password" ); // TODO inform user of this (print to System.out). System.exit( 0 ); } ProteinFileParser protInfoParser = new ProteinFileParser( ProteinFileParser.PERSIST_CONCURRENTLY, cli.geneDao, cli.gpDao ); /* check load option. */ if ( cl.hasOption( 'l' ) ) { String filename = cl.getOptionValue( 'l' ); System.out.println( "option l: " + filename ); protInfoParser.parse( filename ); } /* check remove option. */ else if ( cl.hasOption( 'r' ) ) { protInfoParser.removeAll(); } /* defaults to print help. */ else { printHelp( opt ); } } catch ( ParseException e ) { e.printStackTrace(); } }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/20cf3613797ca4d626cb2fdd7279967e3e66f03e/ProteinLoaderCLI.java/buggy/src/impl/edu/columbia/gemma/loader/genome/gene/ProteinLoaderCLI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 514, 833, 8526, 262, 1216, 1860, 288, 3639, 1186, 10297, 2886, 7697, 4942, 273, 446, 31, 3639, 775, 288, 5411, 1748, 16726, 2347, 2833, 1195, 5411, 1748, 2809, 1195, 5411, 2698, 1263, 18, 1918, 3291, 12, 315, 5108, 2809, 364, 333, 2521, 6, 11272, 5411, 2698, 2809, 6179, 273, 2698, 1263, 18, 2640, 12, 296, 76, 11, 11272, 5411, 1748, 2718, 1195, 5411, 2698, 1263, 18, 5332, 2615, 5621, 5411, 2698, 1263, 18, 1918, 3291, 12, 315, 8575, 6, 11272, 5411, 2698, 2718, 6179, 273, 2698, 1263, 18, 2640, 12, 296, 89, 11, 11272, 5411, 1748, 2201, 1195, 5411, 2698, 1263, 18, 5332, 2615, 5621, 5411, 2698, 1263, 18, 1918, 3291, 12, 315, 3913, 6, 11272, 5411, 2698, 2201, 6179, 273, 2698, 1263, 18, 2640, 12, 296, 84, 11, 11272, 5411, 1748, 3330, 261, 3813, 578, 10791, 13, 1195, 5411, 2698, 1263, 18, 5332, 2615, 5621, 5411, 2698, 1263, 18, 1918, 3291, 12, 315, 694, 999, 434, 1842, 578, 12449, 3330, 6, 11272, 5411, 2698, 1842, 6179, 273, 2698, 1263, 18, 2640, 12, 296, 88, 11, 11272, 5411, 1748, 1109, 471, 1262, 1195, 5411, 2698, 1263, 18, 5332, 2615, 5621, 5411, 2698, 1263, 18, 1918, 3291, 12, 315, 19302, 585, 261, 18942, 585, 1501, 13, 471, 1262, 2063, 598, 3222, 628, 585, 6, 11272, 5411, 2698, 1262, 6179, 273, 2698, 1263, 18, 2640, 12, 296, 80, 11, 11272, 5411, 1748, 1206, 1195, 5411, 2698, 1263, 18, 1918, 3291, 12, 315, 3288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 514, 833, 8526, 262, 1216, 1860, 288, 3639, 1186, 10297, 2886, 7697, 4942, 273, 446, 31, 3639, 775, 288, 5411, 1748, 16726, 2347, 2833, 1195, 5411, 1748, 2809, 1195, 5411, 2698, 1263, 18, 1918, 3291, 12, 315, 5108, 2809, 364, 333, 2521, 6, 11272, 5411, 2698, 2809, 6179, 273, 2698, 1263, 18, 2640, 12, 296, 76, 11, 11272, 5411, 1748, 2718, 1195, 5411, 2698, 1263, 18, 5332, 2615, 5621, 5411, 2698, 1263, 18, 1918, 3291, 12, 315, 8575, 6, 11272, 5411, 2698, 2718, 6179, 273, 2698, 1263, 18, 2640, 12, 296, 89, 11, 11272, 5411, 1748, 2201, 1195, 5411, 2698, 1263, 18, 5332, 2615, 5621, 5411, 2698, 1263, 18, 1918, 3291, 12, 315, 2 ]
while (!foundRoot && element != null) { if (false && isTreepathContentProvider) { ITreePathContentProvider treePathContentProvider = (ITreePathContentProvider) contentProvider; foundRoot = treePathContentProvider.getParents(element).length > 0; element = null; } else if (roots.contains(element)) { result.add(saveable); foundRoot = true; } else { element = contentProvider.getParent(element);
if (roots.contains(element)) { result.add(saveable); foundRoot = true; } else if (isTreepathContentProvider) { ITreePathContentProvider treePathContentProvider = (ITreePathContentProvider) contentProvider; TreePath[] parentPaths = treePathContentProvider.getParents(element); for (int l = 0; !foundRoot && l < parentPaths.length; l++) { TreePath parentPath = parentPaths[l]; for (int m = 0; !foundRoot && m < parentPath.getSegmentCount(); m++) { if (roots.contains(parentPath.getSegment(m))) { result.add(saveable); foundRoot = true; } } } } else { while (!foundRoot && element != null) { if (roots.contains(element)) { result.add(saveable); foundRoot = true; } else { element = contentProvider.getParent(element); }
private Saveable[] computeSaveables() { ITreeContentProvider contentProvider = (ITreeContentProvider) viewer .getContentProvider(); boolean isTreepathContentProvider = contentProvider instanceof ITreePathContentProvider; Object viewerInput = viewer.getInput(); List result = new ArrayList(); Set roots = new HashSet(Arrays.asList(contentProvider .getElements(viewerInput))); SaveablesProvider[] saveablesProviders = getSaveablesProviders(); for (int i = 0; i < saveablesProviders.length; i++) { SaveablesProvider saveablesProvider = saveablesProviders[i]; Saveable[] saveables = saveablesProvider.getSaveables(); for (int j = 0; j < saveables.length; j++) { Saveable saveable = saveables[j]; Object[] elements = saveablesProvider.getElements(saveable); // the saveable is added to the result if at least one of the // elements representing the saveable appears in the tree, i.e. // if its parent chain leads to a root node. boolean foundRoot = false; for (int k = 0; !foundRoot && k < elements.length; k++) { Object element = elements[k]; while (!foundRoot && element != null) { if (false && isTreepathContentProvider) { ITreePathContentProvider treePathContentProvider = (ITreePathContentProvider) contentProvider; foundRoot = treePathContentProvider.getParents(element).length > 0; element = null; } else if (roots.contains(element)) { // found a parent chain leading to a root. The // saveable is part of the tree. result.add(saveable); foundRoot = true; } else { element = contentProvider.getParent(element); } } } } } return (Saveable[]) result.toArray(new Saveable[result.size()]); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/a1df44490da0c451a6c2915dc4bf26f9e28af80f/NavigatorSaveablesService.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/NavigatorSaveablesService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 7074, 429, 8526, 3671, 4755, 1538, 1435, 288, 202, 202, 1285, 992, 1350, 2249, 913, 2249, 273, 261, 1285, 992, 1350, 2249, 13, 14157, 9506, 202, 18, 588, 1350, 2249, 5621, 202, 202, 6494, 353, 2471, 803, 1350, 2249, 273, 913, 2249, 1276, 467, 2471, 743, 1350, 2249, 31, 202, 202, 921, 14157, 1210, 273, 14157, 18, 588, 1210, 5621, 202, 202, 682, 563, 273, 394, 2407, 5621, 202, 202, 694, 12876, 273, 394, 6847, 12, 12726, 18, 345, 682, 12, 1745, 2249, 9506, 202, 18, 588, 3471, 12, 25256, 1210, 3719, 1769, 202, 202, 4755, 1538, 2249, 8526, 1923, 1538, 10672, 273, 1322, 836, 1538, 10672, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1923, 1538, 10672, 18, 2469, 31, 277, 27245, 288, 1082, 202, 4755, 1538, 2249, 1923, 1538, 2249, 273, 1923, 1538, 10672, 63, 77, 15533, 1082, 202, 4755, 429, 8526, 1923, 1538, 273, 1923, 1538, 2249, 18, 588, 4755, 1538, 5621, 1082, 202, 1884, 261, 474, 525, 273, 374, 31, 525, 411, 1923, 1538, 18, 2469, 31, 525, 27245, 288, 9506, 202, 4755, 429, 1923, 429, 273, 1923, 1538, 63, 78, 15533, 9506, 202, 921, 8526, 2186, 273, 1923, 1538, 2249, 18, 588, 3471, 12, 5688, 429, 1769, 9506, 202, 759, 326, 1923, 429, 353, 3096, 358, 326, 563, 309, 622, 4520, 1245, 434, 326, 9506, 202, 759, 2186, 5123, 326, 1923, 429, 14606, 316, 326, 2151, 16, 277, 18, 73, 18, 9506, 202, 759, 309, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 7074, 429, 8526, 3671, 4755, 1538, 1435, 288, 202, 202, 1285, 992, 1350, 2249, 913, 2249, 273, 261, 1285, 992, 1350, 2249, 13, 14157, 9506, 202, 18, 588, 1350, 2249, 5621, 202, 202, 6494, 353, 2471, 803, 1350, 2249, 273, 913, 2249, 1276, 467, 2471, 743, 1350, 2249, 31, 202, 202, 921, 14157, 1210, 273, 14157, 18, 588, 1210, 5621, 202, 202, 682, 563, 273, 394, 2407, 5621, 202, 202, 694, 12876, 273, 394, 6847, 12, 12726, 18, 345, 682, 12, 1745, 2249, 9506, 202, 18, 588, 3471, 12, 25256, 1210, 3719, 1769, 202, 202, 4755, 1538, 2249, 8526, 1923, 1538, 10672, 273, 1322, 836, 1538, 10672, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 2 ]
if (listeners == null) { listeners = new ListenerCollection();
synchronized (this) { listeners = ListenerArray.add(listeners, listener);
public void addPropertyChangeListener(PropertyChangeListener listener) { if (listeners == null) { listeners = new ListenerCollection(); } listeners.addListener(listener); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/9129bdc5d65ed077c2c6a878ab1465b321e7ecf8/Context.java/buggy/js/rhino/src/org/mozilla/javascript/Context.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14324, 15744, 12, 1396, 15744, 2991, 13, 288, 3639, 309, 261, 16072, 422, 446, 13, 288, 5411, 4679, 273, 394, 10652, 2532, 5621, 3639, 289, 5411, 4679, 18, 1289, 2223, 12, 12757, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 14324, 15744, 12, 1396, 15744, 2991, 13, 288, 3639, 309, 261, 16072, 422, 446, 13, 288, 5411, 4679, 273, 394, 10652, 2532, 5621, 3639, 289, 5411, 4679, 18, 1289, 2223, 12, 12757, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
HierarchyBrowsing hb = (HierarchyBrowsing) applicationContext.getBean("hierarchyBrowsingService");
public void testImageThumbnailExplodsOnHessianSerialization() { HierarchyBrowsing hb = (HierarchyBrowsing) applicationContext.getBean("hierarchyBrowsingService"); Set imgIds = new HashSet(); imgIds.add(new Integer(1191)); imgIds.add(new Integer(4665)); imgIds.add(new Integer(1304)); imgIds.add(new Integer(4977)); imgIds.add(new Integer(3540)); imgIds.add(new Integer(2064)); Set result = hb.findPDIHierarchies(imgIds); Set test = Utils.getImagesinPID(result); assertTrue("Images in should eq. images out",imgIds.size()==test.size()); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/9570ef74198a070d72e77c417c9d25244a942de2/LeftOuterJoinTest.java/buggy/components/server/test/org/openmicroscopy/omero/server/itests/LeftOuterJoinTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2040, 16270, 424, 412, 369, 87, 1398, 44, 20529, 16764, 1435, 288, 9079, 1000, 3774, 2673, 273, 394, 6847, 5621, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 2499, 12416, 10019, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 24, 6028, 25, 10019, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 3437, 3028, 10019, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 7616, 4700, 10019, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 4763, 7132, 10019, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 3462, 1105, 10019, 3639, 1000, 563, 273, 21749, 18, 4720, 52, 2565, 44, 5148, 606, 12, 6081, 2673, 1769, 3639, 1000, 1842, 273, 6091, 18, 588, 8946, 267, 16522, 12, 2088, 1769, 3639, 1815, 5510, 2932, 8946, 316, 1410, 7555, 18, 4602, 596, 3113, 6081, 2673, 18, 1467, 1435, 631, 3813, 18, 1467, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2040, 16270, 424, 412, 369, 87, 1398, 44, 20529, 16764, 1435, 288, 9079, 1000, 3774, 2673, 273, 394, 6847, 5621, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 2499, 12416, 10019, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 24, 6028, 25, 10019, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 3437, 3028, 10019, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 7616, 4700, 10019, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 4763, 7132, 10019, 3639, 3774, 2673, 18, 1289, 12, 2704, 2144, 12, 3462, 1105, 10019, 3639, 1000, 563, 273, 21749, 18, 4720, 52, 2565, 44, 5148, 606, 12, 6081, 2673, 1769, 3639, 1000, 1842, 273, 6091, 18, 2 ]
Component oldFocusOwner = getGlobalFocusOwner(); if (oldFocusOwner != null && oldFocusOwner != target) { FocusEvent lost = new FocusEvent(oldFocusOwner, FocusEvent.FOCUS_LOST, fe.isTemporary(), target); oldFocusOwner.dispatchEvent(lost); } if (! (target instanceof Window)) { if (((FocusEvent) e).isTemporary ()) setGlobalFocusOwner (target); else setGlobalPermanentFocusOwner (target); } Container parent = target.getParent (); while (parent != null && !(parent instanceof Window)) parent = parent.getParent (); if (! (parent == null && ! (target instanceof Window))) { Window toplevel = parent == null ? (Window) target : (Window) parent; Component focusOwner = getFocusOwner (); if (focusOwner != null && ! (focusOwner instanceof Window)) toplevel.setFocusOwner (focusOwner); }
retval = handleFocusGained(fe);
public boolean dispatchEvent (AWTEvent e) { if (e instanceof WindowEvent) { Window target = (Window) e.getSource (); if (e.id == WindowEvent.WINDOW_ACTIVATED) setGlobalActiveWindow (target); else if (e.id == WindowEvent.WINDOW_GAINED_FOCUS) { setGlobalFocusedWindow (target); FocusTraversalPolicy p = target.getFocusTraversalPolicy(); Component toFocus = p.getInitialComponent(target); if (toFocus != null) toFocus.requestFocusInWindow(); } else if (e.id != WindowEvent.WINDOW_LOST_FOCUS && e.id != WindowEvent.WINDOW_DEACTIVATED) return false; redispatchEvent(target, e); return true; } else if (e instanceof FocusEvent) { FocusEvent fe = (FocusEvent) e; Component target = fe.getComponent (); if (e.id == FocusEvent.FOCUS_GAINED) { // If old focus owner != new focus owner, notify old focus // owner that it has lost focus. Component oldFocusOwner = getGlobalFocusOwner(); if (oldFocusOwner != null && oldFocusOwner != target) { FocusEvent lost = new FocusEvent(oldFocusOwner, FocusEvent.FOCUS_LOST, fe.isTemporary(), target); oldFocusOwner.dispatchEvent(lost); } if (! (target instanceof Window)) { if (((FocusEvent) e).isTemporary ()) setGlobalFocusOwner (target); else setGlobalPermanentFocusOwner (target); } // Keep track of this window's focus owner. // Find the target Component's top-level ancestor. target // may be a window. Container parent = target.getParent (); while (parent != null && !(parent instanceof Window)) parent = parent.getParent (); // If the parent is null and target is not a window, then target is an // unanchored component and so we don't want to set the focus owner. if (! (parent == null && ! (target instanceof Window))) { Window toplevel = parent == null ? (Window) target : (Window) parent; Component focusOwner = getFocusOwner (); if (focusOwner != null && ! (focusOwner instanceof Window)) toplevel.setFocusOwner (focusOwner); } } else if (e.id == FocusEvent.FOCUS_LOST) { if (((FocusEvent) e).isTemporary ()) setGlobalFocusOwner (null); else setGlobalPermanentFocusOwner (null); } redispatchEvent(target, e); return true; } else if (e instanceof KeyEvent) { // Loop through all registered KeyEventDispatchers, giving // each a chance to handle this event. Iterator i = getKeyEventDispatchers().iterator(); while (i.hasNext ()) { KeyEventDispatcher dispatcher = (KeyEventDispatcher) i.next (); if (dispatcher.dispatchKeyEvent ((KeyEvent) e)) return true; } // processKeyEvent checks if this event represents a focus // traversal key stroke. Component focusOwner = getGlobalPermanentFocusOwner (); if (focusOwner != null) processKeyEvent (focusOwner, (KeyEvent) e); if (e.isConsumed ()) return true; if (enqueueKeyEvent ((KeyEvent) e)) // This event was enqueued for dispatch at a later time. return true; else // This event wasn't handled by any of the registered // KeyEventDispatchers, and wasn't enqueued for dispatch // later, so send it to the default dispatcher. return dispatchKeyEvent ((KeyEvent) e); } return false; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/ce4b863f6d33a3df71b723d099233298e1a182d9/DefaultKeyboardFocusManager.java/clean/java/awt/DefaultKeyboardFocusManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 15678, 261, 37, 8588, 1133, 425, 13, 225, 288, 565, 309, 261, 73, 1276, 6076, 1133, 13, 1377, 288, 3639, 6076, 1018, 273, 261, 3829, 13, 425, 18, 588, 1830, 261, 1769, 3639, 309, 261, 73, 18, 350, 422, 6076, 1133, 18, 23407, 67, 22271, 6344, 13, 1850, 444, 5160, 3896, 3829, 261, 3299, 1769, 3639, 469, 309, 261, 73, 18, 350, 422, 6076, 1133, 18, 23407, 67, 43, 6964, 2056, 67, 3313, 39, 3378, 13, 1850, 288, 5411, 444, 5160, 30946, 3829, 261, 3299, 1769, 5411, 478, 4560, 25087, 2582, 293, 273, 1018, 18, 588, 9233, 25087, 2582, 5621, 5411, 5435, 358, 9233, 273, 293, 18, 588, 4435, 1841, 12, 3299, 1769, 5411, 309, 261, 869, 9233, 480, 446, 13, 2868, 358, 9233, 18, 2293, 9233, 382, 3829, 5621, 1850, 289, 3639, 469, 309, 261, 73, 18, 350, 480, 6076, 1133, 18, 23407, 67, 1502, 882, 67, 3313, 39, 3378, 1171, 597, 425, 18, 350, 480, 6076, 1133, 18, 23407, 67, 1639, 22271, 6344, 13, 1850, 327, 629, 31, 3639, 5813, 2272, 1133, 12, 3299, 16, 425, 1769, 3639, 327, 638, 31, 1377, 289, 565, 469, 309, 261, 73, 1276, 478, 4560, 1133, 13, 1377, 288, 3639, 478, 4560, 1133, 1656, 273, 261, 9233, 1133, 13, 425, 31, 3639, 5435, 1018, 273, 1656, 18, 588, 1841, 261, 1769, 3639, 309, 261, 73, 18, 350, 422, 478, 4560, 1133, 18, 3313, 39, 3378, 67, 43, 6964, 2056, 13, 1850, 288, 5411, 368, 971, 1592, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 15678, 261, 37, 8588, 1133, 425, 13, 225, 288, 565, 309, 261, 73, 1276, 6076, 1133, 13, 1377, 288, 3639, 6076, 1018, 273, 261, 3829, 13, 425, 18, 588, 1830, 261, 1769, 3639, 309, 261, 73, 18, 350, 422, 6076, 1133, 18, 23407, 67, 22271, 6344, 13, 1850, 444, 5160, 3896, 3829, 261, 3299, 1769, 3639, 469, 309, 261, 73, 18, 350, 422, 6076, 1133, 18, 23407, 67, 43, 6964, 2056, 67, 3313, 39, 3378, 13, 1850, 288, 5411, 444, 5160, 30946, 3829, 261, 3299, 1769, 5411, 478, 4560, 25087, 2582, 293, 273, 1018, 18, 588, 9233, 25087, 2582, 5621, 5411, 5435, 358, 9233, 273, 293, 18, 588, 4435, 1841, 12, 3299, 1769, 5411, 309, 261, 2 ]
try { float x1 = parseFloat(); skipCommaSpaces(); float y1 = parseFloat(); skipCommaSpaces(); float x = parseFloat(); skipCommaSpaces(); float y = parseFloat();
float x1 = parseFloat(); skipCommaSpaces(); float y1 = parseFloat(); skipCommaSpaces(); float x = parseFloat(); skipCommaSpaces(); float y = parseFloat();
protected void parseq() throws ParseException { read(); skipSpaces(); for (;;) { switch (current) { default: return; case '+': case '-': case '.': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': } try { float x1 = parseFloat(); skipCommaSpaces(); float y1 = parseFloat(); skipCommaSpaces(); float x = parseFloat(); skipCommaSpaces(); float y = parseFloat(); pathHandler.curvetoQuadraticRel(x1, y1, x, y); } catch (NumberFormatException e) { reportError("character.unexpected", new Object[] { new Integer(current) }); skipSubPath(); return; } skipCommaSpaces(); } }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/18cf7f4389e32536616bfa061ce5b22e568000c9/PathParser.java/buggy/sources/org/apache/batik/parser/PathParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1109, 85, 1435, 1216, 10616, 288, 202, 896, 5621, 202, 7457, 12077, 5621, 202, 1884, 261, 25708, 13, 288, 202, 565, 1620, 261, 2972, 13, 288, 202, 565, 805, 30, 202, 202, 2463, 31, 202, 565, 648, 15126, 4278, 648, 4014, 30, 648, 2611, 30, 202, 565, 648, 296, 20, 4278, 648, 296, 21, 4278, 648, 296, 22, 4278, 648, 296, 23, 4278, 648, 296, 24, 4278, 202, 565, 648, 296, 25, 4278, 648, 296, 26, 4278, 648, 296, 27, 4278, 648, 296, 28, 4278, 648, 296, 29, 4278, 202, 565, 289, 202, 565, 775, 288, 202, 202, 5659, 619, 21, 273, 13711, 5621, 202, 202, 7457, 15594, 12077, 5621, 202, 202, 5659, 677, 21, 273, 13711, 5621, 202, 202, 7457, 15594, 12077, 5621, 202, 202, 5659, 619, 273, 13711, 5621, 202, 202, 7457, 15594, 12077, 5621, 202, 202, 5659, 677, 273, 13711, 5621, 202, 202, 803, 1503, 18, 1397, 90, 11453, 24483, 20004, 1971, 12, 92, 21, 16, 677, 21, 16, 619, 16, 677, 1769, 202, 565, 289, 1044, 261, 1854, 9291, 425, 13, 288, 5411, 17887, 2932, 11560, 18, 21248, 3113, 13491, 394, 1033, 8526, 288, 394, 2144, 12, 2972, 13, 15549, 5411, 2488, 1676, 743, 5621, 202, 202, 2463, 31, 202, 565, 289, 202, 565, 2488, 15594, 12077, 5621, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1109, 85, 1435, 1216, 10616, 288, 202, 896, 5621, 202, 7457, 12077, 5621, 202, 1884, 261, 25708, 13, 288, 202, 565, 1620, 261, 2972, 13, 288, 202, 565, 805, 30, 202, 202, 2463, 31, 202, 565, 648, 15126, 4278, 648, 4014, 30, 648, 2611, 30, 202, 565, 648, 296, 20, 4278, 648, 296, 21, 4278, 648, 296, 22, 4278, 648, 296, 23, 4278, 648, 296, 24, 4278, 202, 565, 648, 296, 25, 4278, 648, 296, 26, 4278, 648, 296, 27, 4278, 648, 296, 28, 4278, 648, 296, 29, 4278, 202, 565, 289, 202, 565, 775, 288, 202, 202, 5659, 619, 21, 273, 13711, 5621, 202, 202, 7457, 15594, 12077, 5621, 202, 202, 5659, 677, 21, 273, 2 ]
if(modifiables) columnNames.add(I18n.getMessage("thaw.common.localPath"));
if(FileTable.this.modifiables) this.columnNames.add(I18n.getMessage("thaw.common.localPath"));
public FileListModel() { super(); columnNames = new Vector(); columnNames.add(I18n.getMessage("thaw.common.file")); columnNames.add(I18n.getMessage("thaw.common.size")); if(modifiables) columnNames.add(I18n.getMessage("thaw.common.localPath")); //columnNames.add(I18n.getMessage("thaw.plugin.index.category")); columnNames.add(I18n.getMessage("thaw.common.key")); columnNames.add(I18n.getMessage("thaw.common.status")); }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/FileTable.java/clean/src/thaw/plugins/index/FileTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1387, 682, 1488, 1435, 288, 1082, 202, 9565, 5621, 1082, 202, 2827, 1557, 273, 394, 5589, 5621, 1082, 202, 2827, 1557, 18, 1289, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 6054, 18, 768, 7923, 1769, 1082, 202, 2827, 1557, 18, 1289, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 6054, 18, 1467, 7923, 1769, 25083, 202, 430, 12, 1711, 704, 1538, 13, 9506, 202, 2827, 1557, 18, 1289, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 6054, 18, 3729, 743, 7923, 1769, 1082, 202, 759, 2827, 1557, 18, 1289, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 4094, 18, 1615, 18, 4743, 7923, 1769, 1082, 202, 2827, 1557, 18, 1289, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 6054, 18, 856, 7923, 1769, 1082, 202, 2827, 1557, 18, 1289, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 6054, 18, 2327, 7923, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1387, 682, 1488, 1435, 288, 1082, 202, 9565, 5621, 1082, 202, 2827, 1557, 273, 394, 5589, 5621, 1082, 202, 2827, 1557, 18, 1289, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 6054, 18, 768, 7923, 1769, 1082, 202, 2827, 1557, 18, 1289, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 6054, 18, 1467, 7923, 1769, 25083, 202, 430, 12, 1711, 704, 1538, 13, 9506, 202, 2827, 1557, 18, 1289, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 6054, 18, 3729, 743, 7923, 1769, 1082, 202, 759, 2827, 1557, 18, 1289, 12, 45, 2643, 82, 18, 24906, 2932, 451, 2219, 18, 4094, 18, 1615, 18, 4743, 7923, 1769, 1082, 202, 2827, 2 ]
final boolean NEW_PARSER = true;
protected static void runInterpreter(String iString2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = new Ruby(); ruby.init(); // Parse and interpret file RubyString rs = RubyString.m_newString(ruby, iString2Eval); ruby.defineGlobalConstant("ARGV", JavaUtil.convertJavaToRuby(ruby, args, String[].class)); // New Version // // ruby.getInterpreter().eval(ruby.getClasses().getObjectClass(), ruby.getRubyParser().compileString(iFileName, rs, 0)); // Old Version // // Initialize Parser parse p = new parse(ruby); ruby.getInterpreter().eval(ruby.getRubyTopSelf(), p.rb_compile_string(iFileName, rs, 0)); }
47619 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47619/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/Main.java/clean/org/jruby/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 4750, 760, 918, 1086, 30010, 12, 780, 277, 780, 22, 13904, 16, 514, 277, 4771, 16, 514, 8526, 833, 13, 288, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 282, 368, 9190, 2509, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 282, 19817, 22155, 273, 394, 19817, 5621, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 282, 22155, 18, 2738, 5621, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 282, 368, 2884, 471, 10634, 585, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 282, 19817, 780, 3597, 273, 19817, 780, 18, 81, 67, 2704, 780, 12, 27768, 16, 277, 780, 22, 13904, 1769, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 22155, 18, 11255, 5160, 6902, 2932, 10973, 58, 3113, 5110, 1304, 18, 6283, 5852, 774, 54, 10340, 12, 27768, 16, 833, 16, 514, 63, 8009, 1106, 10019, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 4750, 760, 918, 1086, 30010, 12, 780, 277, 780, 22, 13904, 16, 514, 277, 4771, 16, 514, 8526, 833, 13, 288, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 282, 368, 9190, 2509, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 282, 19817, 22155, 273, 394, 19817, 5621, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 282, 22155, 18, 2738, 5621, 727, 1250, 12887, 67, 30692, 273, 638, 31, 225, 727, 1250, 12887, 67, 30692, 273, 638, 31, 282, 368, 2884, 471, 2 ]
if(C_DEBUG && A_OpenCms.isLogging()) {
if(C_DEBUG && (A_OpenCms.isLogging() && I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING)) {
public byte[] getContent(CmsObject cms, String templateFile, String elementName, Hashtable parameters, String templateSelector) throws CmsException { if(C_DEBUG && A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "getting content of element " + ((elementName == null) ? "<root>" : elementName)); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "template file is: " + templateFile); A_OpenCms.log(C_OPENCMS_DEBUG, this.getClassName() + "selected template section is: " + ((templateSelector == null) ? "<default>" : templateSelector)); } CmsXmlTemplateFile templateDocument = getOwnTemplateFile(cms, templateFile, elementName, parameters, templateSelector); I_CmsRegistry reg = cms.getRegistry(); CmsRequestContext reqCont = cms.getRequestContext(); I_CmsSession session = reqCont.getSession(true); CmsXmlLanguageFile lang = new CmsXmlLanguageFile(cms); String projectName = new String(); String syncPath = new String(); String allResources = new String(); Vector folders = new Vector(); String projectId = new String(); int numRes = 0; // clear session values on first load String step = (String)parameters.get(C_STEP); projectId = (String)parameters.get(C_SYNCPROJECT); syncPath = (String)parameters.get(C_SYNCPATH); allResources = (String)parameters.get(C_SYNCRESOURCES); if(step == null) { // if the dialog was opened the first time remove the session values // and get the id of the current project if(session.getValue(C_STEP) == null){ // remove all session values session.removeValue(C_SYNCPROJECT); session.removeValue(C_SYNCPATH); session.removeValue(C_SYNCRESOURCES); session.removeValue(C_ADDFOLDER); session.removeValue("lasturl"); // get the id of the current project when the dialog is opened. // when changing the project in the dialog the currentProject is set // because of the folder-tree that is used to choose resources. // when leaving the dialog the currentProject is reset to the original project. session.putValue(C_CURPROJECT, reqCont.currentProject().getId() + ""); session.putValue(C_STEP, "nextstep"); } } else { if("OK".equalsIgnoreCase(step)) { projectId = (String)parameters.get(C_SYNCPROJECT); syncPath = (String)parameters.get(C_SYNCPATH); allResources = (String)parameters.get(C_SYNCRESOURCES); // the form has just been submitted, store the data in the session if(((projectId == null) || projectId.equals("")) || ((syncPath == null) || syncPath.equals("")) || ((allResources == null) || allResources.equals(""))) { templateSelector = "datamissing"; } else { // all the required data has been entered session.putValue(C_SYNCPROJECT, projectId); session.putValue(C_SYNCPATH, syncPath); session.putValue(C_SYNCRESOURCES, allResources); // 'allResources' has the "form res1;res2;...resk;" // this is because the simpler 'getParameterValues' method doesn't work with Silverstream folders = parseResources(allResources); numRes = folders.size(); for(int i = 0;i < numRes;i++) { // modify the foldername if nescessary (the root folder is always given // as a nice name) if(lang.getLanguageValue("title.rootfolder").equals(folders.elementAt(i))) { folders.setElementAt("/", i); } } checkRedundancies(folders); numRes = folders.size(); // could have been changed // check if all the resources are writeable // if not, return a message Vector notWriteable = new Vector(); for(int i = numRes - 1;i >= 0;i--) { String theFolder = (String)folders.elementAt(i); if(!checkWriteable(cms, theFolder, Integer.parseInt(projectId))) { notWriteable.addElement(theFolder); templateSelector = "errorsyncproperties"; } } if("errorsyncproperties".equals(templateSelector)){ // at least one of the choosen folders was not writeable templateDocument.setData("details", "The following folders were not writeable:" + notWriteable.toString()); } } if(templateSelector == null || "".equals(templateSelector)){ // create the Hashtable for the resources Hashtable hashResources = new Hashtable(); numRes = folders.size(); for(int i = 0;i < numRes;i++) { String key = C_SYNCHRONISATION_RESOURCETAG+(i+1); String value = (String)folders.elementAt(i); hashResources.put(key, value); } // get the project name CmsProject theProject = cms.readProject(Integer.parseInt(projectId)); projectName = theProject.getName(); // now update the registry reg.setSystemValue(C_SYNCHRONISATION_PROJECT, projectName); reg.setSystemValue(C_SYNCHRONISATION_PATH, syncPath); reg.setSystemValues(C_SYNCHRONISATION_RESOURCE, hashResources); templateSelector = "done"; // if the currentProject was changed in the dialog reset it // to the original currentProject int curProjectId = Integer.parseInt((String)session.getValue(C_CURPROJECT)); if (curProjectId != reqCont.currentProject().getId()){ reqCont.setCurrentProject(curProjectId); } // remove the values from the session session.removeValue(C_CURPROJECT); session.removeValue(C_STEP); } } else if("fromerrorpage".equals(step)) { // after an error fill in the data from the session into the template templateDocument.setData(C_SYNCPROJECT, (String)session.getValue(C_SYNCPROJECT)); templateDocument.setData(C_SYNCPATH, (String)session.getValue(C_SYNCPATH)); templateDocument.setData(C_ADDFOLDER, ""); templateDocument.setData(C_SYNCRESOURCES, (String)session.getValue(C_SYNCRESOURCES)); templateSelector = ""; } else if("cancel".equals(step)){ // if the currentProject was changed in the dialog // reset to the original currentProject int curProjectId = Integer.parseInt((String)session.getValue(C_CURPROJECT)); if (curProjectId != reqCont.currentProject().getId()){ reqCont.setCurrentProject(curProjectId); } // remove the values from the session session.removeValue(C_CURPROJECT); session.removeValue(C_STEP); templateSelector = "done"; } } // if there are still values in the session (like after an error), use them if((projectId == null) || ("".equals(projectId))) { projectId = (String)session.getValue(C_SYNCPROJECT); } if((syncPath == null) || ("".equals(syncPath))) { syncPath = (String)session.getValue(C_SYNCPATH); } if((allResources == null) || ("".equals(allResources))) { allResources = (String)session.getValue(C_SYNCRESOURCES); } // try to read the values from the registry file and check if they are // available in the VFS if((projectId == null) || ("".equals(projectId))) { projectName = reg.getSystemValue(C_SYNCHRONISATION_PROJECT); int countAccessible = 0; if((projectName != null) && (!"".equals(projectName))){ // does this is an accessible project or // if there is more than one project with this name Vector allProjects = cms.getAllAccessibleProjects(); for (int i = 0; i < allProjects.size(); i++){ CmsProject nextProject = (CmsProject)allProjects.elementAt(i); if(projectName.equals(nextProject.getName())){ countAccessible++; projectId = nextProject.getId()+""; } } if ((countAccessible == 0) || (countAccessible > 1)){ projectId = ""; } } else { projectId = ""; } } if((syncPath == null) || ("".equals(syncPath))) { syncPath = reg.getSystemValue(C_SYNCHRONISATION_PATH); if(syncPath == null){ syncPath = ""; } } if((allResources == null) || ("".equals(allResources))) { allResources = ""; if (!((projectId == null) || ("".equals(projectId)))){ Hashtable resources = reg.getSystemValues(C_SYNCHRONISATION_RESOURCE); numRes = resources.size(); if (numRes > 0){ allResources = new String(); for (int i=1; i < numRes+1; i++) { String path = (String)resources.get(C_SYNCHRONISATION_RESOURCETAG+i); // try to read this resource from the project try{ CmsResource resource = cms.readFileHeaderForHist(path, Integer.parseInt(projectId)); allResources = allResources + path + ";"; } catch (CmsException exc){ } } // remove the last semikolon if (allResources.endsWith(";")){ allResources = allResources.substring(0,allResources.lastIndexOf(";")); } } } } if(!"done".equals(templateSelector)){ // Check if the user requested a project change in the dialog // and set the currentProject if(projectId != null && !("".equals(projectId))) { if(!(Integer.parseInt(projectId) == reqCont.currentProject().getId())) { reqCont.setCurrentProject(Integer.parseInt(projectId)); } } } templateDocument.setData(C_SYNCPROJECT, projectId); templateDocument.setData(C_SYNCRESOURCES, allResources); templateDocument.setData(C_SYNCPATH, syncPath); session.putValue(C_SYNCPROJECT, projectId); session.putValue(C_SYNCPATH, syncPath); session.putValue(C_SYNCRESOURCES, allResources); // Now load the template file and start the processing return startProcessing(cms, templateDocument, elementName, parameters, templateSelector); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/65fec749058083642e3e85283287c65357fa8690/CmsAdminSyncProperties.java/clean/src/com/opencms/workplace/CmsAdminSyncProperties.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 309, 12, 39, 67, 9394, 597, 261, 37, 67, 3678, 4747, 18, 291, 7735, 1435, 597, 467, 67, 4747, 1343, 10585, 18, 39, 67, 3670, 16560, 916, 67, 5127, 67, 28162, 3719, 288, 5411, 432, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 333, 18, 588, 3834, 1435, 397, 315, 588, 1787, 913, 434, 930, 315, 397, 14015, 2956, 461, 422, 446, 13, 692, 3532, 3085, 2984, 294, 14453, 10019, 5411, 432, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 333, 18, 588, 3834, 1435, 397, 315, 3202, 585, 353, 30, 315, 397, 28215, 1769, 5411, 432, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 333, 18, 588, 3834, 1435, 397, 315, 8109, 1542, 2442, 353, 30, 315, 397, 14015, 3202, 4320, 422, 446, 13, 692, 3532, 1886, 2984, 294, 1542, 4320, 10019, 3639, 289, 3639, 16084, 2283, 812, 1542, 2519, 273, 336, 5460, 2283, 812, 12, 6851, 16, 28215, 16, 14453, 16, 1472, 16, 1542, 4320, 1769, 3639, 467, 67, 4747, 4243, 960, 273, 6166, 18, 588, 4243, 5621, 3639, 2149, 21426, 1111, 660, 273, 6166, 18, 588, 21426, 5621, 3639, 467, 67, 4747, 2157, 1339, 273, 1111, 660, 18, 588, 2157, 12, 3767, 1769, 3639, 16084, 3779, 812, 3303, 273, 394, 16084, 3779, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 8526, 5154, 12, 4747, 921, 6166, 16, 514, 28215, 16, 514, 14453, 16, 18559, 1472, 16, 514, 1542, 4320, 13, 1216, 11228, 288, 3639, 309, 12, 39, 67, 9394, 597, 261, 37, 67, 3678, 4747, 18, 291, 7735, 1435, 597, 467, 67, 4747, 1343, 10585, 18, 39, 67, 3670, 16560, 916, 67, 5127, 67, 28162, 3719, 288, 5411, 432, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 333, 18, 588, 3834, 1435, 397, 315, 588, 1787, 913, 434, 930, 315, 397, 14015, 2956, 461, 422, 446, 13, 692, 3532, 3085, 2984, 294, 14453, 10019, 5411, 432, 67, 3678, 4747, 18, 1330, 12, 39, 67, 11437, 13802, 67, 9394, 16, 333, 18, 2 ]
return ticket.getId() + ": " + ticket.getValue(Key.SUMMARY);
return /* ticket.getId() + ": " + */ ticket.getValue(Key.SUMMARY);
public static String getTicketDescription(TracTicket ticket) { return ticket.getId() + ": " + ticket.getValue(Key.SUMMARY); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8a5baf0128b1372a301a8b0a137ef6b2e46d52b8/TracRepositoryConnector.java/buggy/org.eclipse.mylyn.trac.core/src/org/eclipse/mylyn/internal/trac/core/TracRepositoryConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 3181, 29378, 3291, 12, 1609, 71, 13614, 9322, 13, 288, 202, 202, 2463, 9322, 18, 26321, 1435, 397, 6398, 315, 397, 9322, 18, 24805, 12, 653, 18, 14020, 11293, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 3181, 29378, 3291, 12, 1609, 71, 13614, 9322, 13, 288, 202, 202, 2463, 9322, 18, 26321, 1435, 397, 6398, 315, 397, 9322, 18, 24805, 12, 653, 18, 14020, 11293, 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 ]
public void release() { // This method is never called by jcl-over-slf4j classes. However, // in certain deployment scenarios, in particular if jcl104-over-slf4j.jar is // in the the web-app class loader and the official commons-logging.jar is // deployed in some parent class loader (e.g. commons/lib), then it is possible // for the parent class loader to mask the classes shipping in // jcl104-over-slf4j.jar. System.out.println("WARN: The method "+SLF4FLogFactory.class+"#release() was invoked."); System.out.println("WARN: Please see http://www.slf4j.org/codes.html for an explanation."); System.out.flush(); }
47711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47711/55a650f08cd7afee64689a758942104c88458c85/SLF4FLogFactory.java/buggy/jcl104-over-slf4j/src/main/java/org/apache/commons/logging/impl/SLF4FLogFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 225, 918, 225, 3992, 1435, 225, 288, 3639, 368, 225, 1220, 225, 707, 225, 353, 225, 5903, 225, 2566, 225, 635, 225, 525, 830, 17, 1643, 17, 2069, 74, 24, 78, 225, 3318, 18, 225, 10724, 16, 3639, 368, 225, 316, 225, 8626, 225, 6314, 225, 22456, 16, 225, 316, 225, 6826, 225, 309, 225, 525, 830, 21869, 17, 1643, 17, 2069, 74, 24, 78, 18, 11930, 225, 353, 3639, 368, 225, 316, 225, 326, 225, 326, 225, 3311, 17, 2910, 225, 667, 225, 4088, 225, 471, 225, 326, 225, 3397, 22354, 225, 24021, 17, 11167, 18, 11930, 225, 353, 3639, 368, 225, 19357, 225, 316, 225, 2690, 225, 982, 225, 667, 225, 4088, 225, 261, 73, 18, 75, 18, 225, 24021, 19, 2941, 3631, 225, 1508, 225, 518, 225, 353, 225, 3323, 1850, 368, 225, 364, 225, 326, 225, 982, 225, 667, 225, 4088, 225, 358, 225, 3066, 225, 326, 225, 3318, 225, 11252, 225, 316, 1850, 368, 225, 525, 830, 21869, 17, 1643, 17, 2069, 74, 24, 78, 18, 11930, 18, 3639, 2332, 18, 659, 18, 8222, 2932, 27999, 30, 225, 1021, 225, 707, 225, 13773, 4559, 42, 24, 42, 1343, 1733, 18, 1106, 9078, 7, 9340, 1435, 225, 1703, 225, 8187, 1199, 1769, 3639, 2332, 18, 659, 18, 8222, 2932, 27999, 30, 225, 7801, 225, 2621, 225, 1062, 2207, 5591, 18, 2069, 74, 24, 78, 18, 3341, 19, 7000, 18, 2620, 225, 364, 225, 392, 225, 21285, 1199, 1769, 3639, 2332, 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, 225, 918, 225, 3992, 1435, 225, 288, 3639, 368, 225, 1220, 225, 707, 225, 353, 225, 5903, 225, 2566, 225, 635, 225, 525, 830, 17, 1643, 17, 2069, 74, 24, 78, 225, 3318, 18, 225, 10724, 16, 3639, 368, 225, 316, 225, 8626, 225, 6314, 225, 22456, 16, 225, 316, 225, 6826, 225, 309, 225, 525, 830, 21869, 17, 1643, 17, 2069, 74, 24, 78, 18, 11930, 225, 353, 3639, 368, 225, 316, 225, 326, 225, 326, 225, 3311, 17, 2910, 225, 667, 225, 4088, 225, 471, 225, 326, 225, 3397, 22354, 225, 24021, 17, 11167, 18, 11930, 225, 353, 3639, 368, 225, 19357, 225, 316, 225, 2690, 225, 982, 225, 667, 225, 4088, 225, 261, 73, 2 ]
IProgressMonitor monitor, long cancelTime, int treeHeight, int[] currentHeight) {
IProgressMonitor monitor, long cancelTime, int[] numItemsLeft) {
private void createRefreshJob() { refreshJob = new WorkbenchJob("Refresh Filter"){//$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { if(treeViewer.getControl().isDisposed()) { return Status.CANCEL_STATUS; } String text = getFilterString(); if (text == null) { return Status.OK_STATUS; } boolean initial = initialText != null && initialText.equals(text); if (initial) { patternFilter.setPattern(null); } else if (text != null){ patternFilter.setPattern(text); } Control redrawFalseControl = treeComposite != null ? treeComposite : treeViewer.getControl(); try { // don't want the user to see updates that will be made to the tree // we are setting redraw(false) on the composite to avoid dancing scrollbar redrawFalseControl.setRedraw(false); if (!narrowingDown) { // collapse all TreeItem[] is = treeViewer.getTree().getItems(); for (int i = 0; i < is.length; i++) { TreeItem item = is[i]; if (item.getExpanded()) { treeViewer.setExpandedState(item.getData(), false); } } } treeViewer.refresh(true); if (text.length() > 0 && !initial) { /* Expand elements one at a time. After each is expanded, check * to see if the filter text has been modified. If it has, then * cancel the refresh job so the user doesn't have to endure * expansion of all the nodes. */ TreeItem[] items = getViewer().getTree().getItems(); int treeHeight = getViewer().getTree().getBounds().height; int startHeight = items.length == 0 ? 0 : items[0].getBounds().y; long stopTime = SOFT_MAX_EXPAND_TIME + System.currentTimeMillis(); if (items.length > 0 && recursiveExpand(items, monitor, stopTime, treeHeight, new int[] { startHeight })) { return Status.CANCEL_STATUS; } // enabled toolbar - there is text to clear // and the list is currently being filtered updateToolbar(true); } else { // disabled toolbar - there is no text to clear // and the list is currently not filtered updateToolbar(false); } } finally { // done updating the tree - set redraw back to true TreeItem[] items = getViewer().getTree().getItems(); if (items.length > 0) { treeViewer.getTree().setTopItem(items[0]); } redrawFalseControl.setRedraw(true); } return Status.OK_STATUS; } /** * Returns true if the job should be canceled (because of timeout or actual cancellation). * @param items * @param provider * @param monitor * @param cancelTime * @param currentHeight * @param treeHeight * @return */ private boolean recursiveExpand(TreeItem[] items, IProgressMonitor monitor, long cancelTime, int treeHeight, int[] currentHeight) { boolean canceled = false; for (int i = 0; !canceled && i < items.length; i++) { TreeItem item = items[i]; boolean visible = currentHeight[0] <= treeHeight; if (monitor.isCanceled() || (!visible && System.currentTimeMillis() > cancelTime)) { canceled = true; } else { if (!item.getExpanded()) { // do the expansion through the viewer so that it can refresh children appropriately. treeViewer.setExpandedState(item.getData(), true); } currentHeight[0] = currentHeight[0] + item.getBounds().height; TreeItem[] children = item.getItems(); if (items.length > 0) { canceled = recursiveExpand(children, monitor, cancelTime, treeHeight, currentHeight); } } } return canceled; } }; refreshJob.setSystem(true); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/0533d67f2c0524ef1952354e3fa27dd6583e2e7e/FilteredTree.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 8323, 2278, 1435, 288, 202, 202, 9144, 2278, 273, 394, 4147, 22144, 2278, 2932, 8323, 4008, 7923, 95, 759, 8, 3993, 17, 5106, 17, 21, 8, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 9506, 380, 632, 5946, 2358, 18, 20416, 18, 4881, 18, 8298, 18, 5370, 2278, 7, 2681, 382, 57, 1285, 76, 896, 12, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 13, 9506, 1195, 1082, 202, 482, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 430, 12, 3413, 18415, 18, 588, 3367, 7675, 291, 1669, 7423, 10756, 288, 6862, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 9506, 202, 97, 6862, 9506, 202, 780, 977, 273, 12267, 780, 5621, 9506, 202, 430, 261, 955, 422, 446, 13, 288, 6862, 202, 2463, 2685, 18, 3141, 67, 8608, 31, 9506, 202, 97, 6862, 1082, 3639, 1250, 2172, 273, 2172, 1528, 480, 446, 597, 2172, 1528, 18, 14963, 12, 955, 1769, 1875, 3639, 309, 261, 6769, 13, 288, 1082, 5411, 1936, 1586, 18, 542, 3234, 12, 2011, 1769, 1082, 3639, 289, 469, 309, 261, 955, 480, 446, 15329, 1082, 5411, 1936, 1586, 18, 542, 3234, 12, 955, 1769, 1082, 3639, 289, 1082, 540, 1082, 3639, 8888, 16540, 8381, 3367, 273, 2151, 9400, 480, 446, 692, 2151, 9400, 294, 2151, 18415, 18, 588, 3367, 5621, 1082, 3639, 775, 288, 9506, 3639, 368, 2727, 1404, 2545, 326, 729, 358, 2621, 4533, 716, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 8323, 2278, 1435, 288, 202, 202, 9144, 2278, 273, 394, 4147, 22144, 2278, 2932, 8323, 4008, 7923, 95, 759, 8, 3993, 17, 5106, 17, 21, 8, 1082, 202, 20308, 261, 5836, 17, 24060, 13, 9506, 380, 632, 5946, 2358, 18, 20416, 18, 4881, 18, 8298, 18, 5370, 2278, 7, 2681, 382, 57, 1285, 76, 896, 12, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 13, 9506, 1195, 1082, 202, 482, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 430, 12, 3413, 18415, 18, 588, 3367, 7675, 291, 1669, 7423, 10756, 288, 6862, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 9506, 202, 2 ]
if (target == null) {
if (targetCache == null) {
public ProxyControl(Composite parent) { // Create the invisible dummy composite control = new Composite(parent, SWT.NO_BACKGROUND); control.setVisible(false); // Attach a layout to the dummy composite. This is used to make the preferred // size of the dummy match the preferred size of the target. control.setLayout(new Layout() { protected void layout (Composite composite, boolean flushCache) { ProxyControl.this.layout(); // does nothing. The bounds of the target are updated by the controlListener } protected Point computeSize (Composite composite, int wHint, int hHint, boolean flushCache) { if (target == null) { // Note: If we returned (0,0), SWT would ignore the result and use a default value. return new Point(1,1); } return target.computeSize(wHint, hHint); } }); // Attach listeners to the dummy control.addDisposeListener(disposeListener); control.addListener(SWT.Show, visibilityListener); control.addListener(SWT.Hide, visibilityListener); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/aaa67ee0d5b82c6c46eb51216d63b2b2927d58b7/ProxyControl.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/newapi/ProxyControl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7659, 3367, 12, 9400, 982, 13, 288, 202, 565, 368, 1788, 326, 24697, 9609, 9635, 202, 202, 7098, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 3417, 67, 8720, 20166, 1769, 202, 202, 7098, 18, 542, 6207, 12, 5743, 1769, 9506, 202, 759, 8659, 279, 3511, 358, 326, 9609, 9635, 18, 1220, 353, 1399, 358, 1221, 326, 9119, 202, 202, 759, 963, 434, 326, 9609, 845, 326, 9119, 963, 434, 326, 1018, 18, 202, 202, 7098, 18, 542, 3744, 12, 2704, 9995, 1435, 288, 1082, 202, 1117, 918, 3511, 261, 9400, 9635, 16, 1250, 3663, 1649, 13, 288, 9506, 565, 7659, 3367, 18, 2211, 18, 6741, 5621, 9506, 565, 368, 1552, 5083, 18, 1021, 4972, 434, 326, 1018, 854, 3526, 635, 326, 3325, 2223, 1082, 202, 97, 25083, 202, 1117, 4686, 3671, 1225, 261, 9400, 9635, 16, 509, 341, 7002, 16, 509, 366, 7002, 16, 1250, 3663, 1649, 13, 288, 9506, 202, 430, 261, 3299, 422, 446, 13, 288, 6862, 565, 368, 3609, 30, 971, 732, 2106, 261, 20, 16, 20, 3631, 348, 8588, 4102, 2305, 326, 563, 471, 999, 279, 805, 460, 18, 6862, 202, 2463, 394, 4686, 12, 21, 16, 21, 1769, 9506, 202, 97, 6862, 9506, 202, 2463, 1018, 18, 9200, 1225, 12, 91, 7002, 16, 366, 7002, 1769, 1082, 202, 97, 202, 202, 22938, 9506, 202, 759, 8659, 4679, 358, 326, 9609, 202, 202, 7098, 18, 1289, 1669, 4150, 2223, 12, 2251, 4150, 2223, 1769, 202, 202, 7098, 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, 7659, 3367, 12, 9400, 982, 13, 288, 202, 565, 368, 1788, 326, 24697, 9609, 9635, 202, 202, 7098, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 3417, 67, 8720, 20166, 1769, 202, 202, 7098, 18, 542, 6207, 12, 5743, 1769, 9506, 202, 759, 8659, 279, 3511, 358, 326, 9609, 9635, 18, 1220, 353, 1399, 358, 1221, 326, 9119, 202, 202, 759, 963, 434, 326, 9609, 845, 326, 9119, 963, 434, 326, 1018, 18, 202, 202, 7098, 18, 542, 3744, 12, 2704, 9995, 1435, 288, 1082, 202, 1117, 918, 3511, 261, 9400, 9635, 16, 1250, 3663, 1649, 13, 288, 9506, 565, 7659, 3367, 18, 2211, 18, 6741, 5621, 9506, 565, 368, 1552, 5083, 18, 1021, 4972, 2 ]
filepath + ":18: line longer than 80 characters", filepath + ":19:25: line contains a tab character",
filepath + ":18: Line is longer than 80 characters.", filepath + ":19:25: Line contains a tab character.",
public void testSimple() throws Exception { mConfig.setIntProperty(Defn.MAX_FILE_LENGTH_PROP, 20) ; mConfig.setIntProperty(Defn.MAX_METHOD_LENGTH_PROP, 19) ; mConfig.setIntProperty(Defn.MAX_CONSTRUCTOR_LENGTH_PROP, 9) ; mConfig.setPatternProperty(Defn.PARAMETER_PATTERN_PROP, "^a[A-Z][a-zA-Z0-9]*$"); mConfig.setPatternProperty(Defn.STATIC_PATTERN_PROP, "^s[A-Z][a-zA-Z0-9]*$"); mConfig.setPatternProperty(Defn.MEMBER_PATTERN_PROP, "^m[A-Z][a-zA-Z0-9]*$"); mConfig.setPatternProperty(Defn.IGNORE_LINE_LENGTH_PATTERN_PROP,"^.*is OK.*regexp.*$"); mConfig.setPatternProperty(Defn.TODO_PATTERN_PROP, "FIXME:"); final Checker c = createChecker(); final String filepath = getPath("InputSimple.java"); assertNotNull(c); final String[] expected = { filepath + ":1: file length is 198 lines (max allowed is 20).", filepath + ":3: Line does not match expected header line of '// Created: 2001'.", filepath + ":18: line longer than 80 characters", filepath + ":19:25: line contains a tab character", filepath + ":25:29: variable name 'badConstant' must match pattern '^[A-Z](_?[A-Z0-9]+)*$'.", filepath + ":30:24: variable name 'badStatic' must match pattern '^s[A-Z][a-zA-Z0-9]*$'.", filepath + ":35:17: variable name 'badMember' must match pattern '^m[A-Z][a-zA-Z0-9]*$'.", filepath + ":39:19: variable 'mNumCreated2' must be private and have accessor methods.", filepath + ":42:40: ',' is not followed by whitespace.", filepath + ":49:23: variable 'sTest1' must be private and have accessor methods.", filepath + ":51:26: variable 'sTest3' must be private and have accessor methods.", filepath + ":53:16: variable 'sTest2' must be private and have accessor methods.", filepath + ":56:9: variable 'mTest1' must be private and have accessor methods.", filepath + ":58:16: variable 'mTest2' must be private and have accessor methods.", filepath + ":71:19: parameter name 'badFormat1' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":71:30: ',' is not followed by whitespace.", filepath + ":71:34: parameter name 'badFormat2' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":72:25: parameter name 'badFormat3' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":80: method length is 20 lines (max allowed is 19).", filepath + ":103: constructor length is 10 lines (max allowed is 9).", filepath + ":119:13: variable name 'ABC' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":123:19: variable name 'CDE' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":127:9: '{' should be on the previous line.", filepath + ":130:18: variable name 'I' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":131:9: '{' should be on the previous line.", filepath + ":132:20: variable name 'InnerBlockVariable' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":137:10: method name 'ALL_UPPERCASE_METHOD' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":142:30: variable name 'BAD__NAME' must match pattern '^[A-Z](_?[A-Z0-9]+)*$'.", filepath + ":145: line longer than 80 characters", filepath + ":145:35: line contains a tab character", filepath + ":146:64: line contains a tab character", filepath + ":153:27: '=' is not followed by whitespace.", filepath + ":154:9: line contains a tab character", filepath + ":154:27: '=' is not followed by whitespace.", filepath + ":155:10: line contains a tab character", filepath + ":155:27: '=' is not followed by whitespace.", filepath + ":156:1: line contains a tab character", filepath + ":156:27: '=' is not followed by whitespace.", filepath + ":157:3: line contains a tab character", filepath + ":157:27: '=' is not followed by whitespace.", filepath + ":158:3: line contains a tab character", filepath + ":158:27: '=' is not followed by whitespace.", filepath + ":161: Comment matches to-do format 'FIXME:'.", filepath + ":162: Comment matches to-do format 'FIXME:'.", filepath + ":163: Comment matches to-do format 'FIXME:'.", filepath + ":167: Comment matches to-do format 'FIXME:'.", filepath + ":194:5: More than 7 parameters.", }; verify(c, filepath, expected); }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/9aa8268e473071cbe26aa9d3a8631f1902e3fef0/CheckerTest.java/buggy/src/tests/com/puppycrawl/tools/checkstyle/CheckerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5784, 1435, 3639, 1216, 1185, 565, 288, 3639, 312, 809, 18, 542, 1702, 1396, 12, 3262, 82, 18, 6694, 67, 3776, 67, 7096, 67, 15811, 16, 4200, 13, 274, 3639, 312, 809, 18, 542, 1702, 1396, 12, 3262, 82, 18, 6694, 67, 5327, 67, 7096, 67, 15811, 16, 5342, 13, 274, 3639, 312, 809, 18, 542, 1702, 1396, 12, 3262, 82, 18, 6694, 67, 26935, 916, 67, 7096, 67, 15811, 16, 2468, 13, 274, 3639, 312, 809, 18, 542, 3234, 1396, 12, 3262, 82, 18, 9819, 67, 10831, 67, 15811, 16, 15017, 69, 63, 37, 17, 62, 6362, 69, 17, 9600, 17, 62, 20, 17, 29, 5772, 8, 8863, 3639, 312, 809, 18, 542, 3234, 1396, 12, 3262, 82, 18, 22741, 67, 10831, 67, 15811, 16, 15017, 87, 63, 37, 17, 62, 6362, 69, 17, 9600, 17, 62, 20, 17, 29, 5772, 8, 8863, 3639, 312, 809, 18, 542, 3234, 1396, 12, 3262, 82, 18, 19630, 67, 10831, 67, 15811, 16, 15017, 81, 63, 37, 17, 62, 6362, 69, 17, 9600, 17, 62, 20, 17, 29, 5772, 8, 8863, 3639, 312, 809, 18, 542, 3234, 1396, 12, 3262, 82, 18, 20118, 67, 5997, 67, 7096, 67, 10831, 67, 15811, 10837, 66, 4509, 291, 7791, 4509, 17745, 4509, 8, 8863, 3639, 312, 809, 18, 542, 3234, 1396, 12, 3262, 82, 18, 6241, 67, 10831, 67, 15811, 16, 315, 25810, 2773, 1769, 3639, 727, 31577, 276, 273, 752, 8847, 5621, 3639, 727, 514, 3608, 273, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 5784, 1435, 3639, 1216, 1185, 565, 288, 3639, 312, 809, 18, 542, 1702, 1396, 12, 3262, 82, 18, 6694, 67, 3776, 67, 7096, 67, 15811, 16, 4200, 13, 274, 3639, 312, 809, 18, 542, 1702, 1396, 12, 3262, 82, 18, 6694, 67, 5327, 67, 7096, 67, 15811, 16, 5342, 13, 274, 3639, 312, 809, 18, 542, 1702, 1396, 12, 3262, 82, 18, 6694, 67, 26935, 916, 67, 7096, 67, 15811, 16, 2468, 13, 274, 3639, 312, 809, 18, 542, 3234, 1396, 12, 3262, 82, 18, 9819, 67, 10831, 67, 15811, 16, 15017, 69, 63, 37, 17, 62, 6362, 69, 17, 9600, 17, 62, 20, 17, 29, 5772, 8, 8863, 3639, 312, 809, 18, 542, 3234, 2 ]
for(int i=0;i<listenerMethods.length;i++) { if(!listenerMethods[i].getReturnType().equals(java.lang.Void.TYPE) || Modifier.isPrivate(listenerMethods[i].getModifiers())) { throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " non-void or private."); } if(!listenerMethods[i].getDeclaringClass().isAssignableFrom(listenerType)) { throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " not from class " + listenerType.getName()); } } }
for (int i = 0; i < listenerMethods.length; i++) { if (!listenerMethods[i].getReturnType().equals(java.lang.Void.TYPE) || Modifier.isPrivate(listenerMethods[i].getModifiers())) { throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " non-void or private."); } if (!listenerMethods[i].getDeclaringClass() .isAssignableFrom(listenerType)) { throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " not from class " + listenerType.getName()); } } }
private void checkMethods() throws IntrospectionException { if(!addListenerMethod.getDeclaringClass().isAssignableFrom(removeListenerMethod.getDeclaringClass()) && !removeListenerMethod.getDeclaringClass().isAssignableFrom(addListenerMethod.getDeclaringClass())) { throw new IntrospectionException("add and remove listener methods do not come from the same class. This is bad."); } if(!addListenerMethod.getReturnType().equals(java.lang.Void.TYPE) || addListenerMethod.getParameterTypes().length != 1 || !listenerType.equals(addListenerMethod.getParameterTypes()[0]) || !Modifier.isPublic(addListenerMethod.getModifiers())) { throw new IntrospectionException("Add Listener Method invalid."); } if(!removeListenerMethod.getReturnType().equals(java.lang.Void.TYPE) || removeListenerMethod.getParameterTypes().length != 1 || !listenerType.equals(removeListenerMethod.getParameterTypes()[0]) || removeListenerMethod.getExceptionTypes().length > 0 || !Modifier.isPublic(removeListenerMethod.getModifiers())) { throw new IntrospectionException("Remove Listener Method invalid."); } for(int i=0;i<listenerMethods.length;i++) { if(!listenerMethods[i].getReturnType().equals(java.lang.Void.TYPE) || Modifier.isPrivate(listenerMethods[i].getModifiers())) { throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " non-void or private."); } if(!listenerMethods[i].getDeclaringClass().isAssignableFrom(listenerType)) { throw new IntrospectionException("Event Method " + listenerMethods[i].getName() + " not from class " + listenerType.getName()); } } }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/a2d8683cf369cf1e7520f83d833554eb043a4164/EventSetDescriptor.java/buggy/java/beans/EventSetDescriptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 4712, 1435, 1216, 3094, 26362, 503, 288, 202, 202, 430, 12, 5, 1289, 2223, 1305, 18, 588, 3456, 14682, 7675, 291, 7961, 1265, 12, 4479, 2223, 1305, 18, 588, 3456, 14682, 10756, 1082, 282, 597, 401, 4479, 2223, 1305, 18, 588, 3456, 14682, 7675, 291, 7961, 1265, 12, 1289, 2223, 1305, 18, 588, 3456, 14682, 1435, 3719, 288, 1082, 202, 12849, 394, 3094, 26362, 503, 2932, 1289, 471, 1206, 2991, 2590, 741, 486, 12404, 628, 326, 1967, 667, 18, 225, 1220, 353, 5570, 1199, 1769, 202, 202, 97, 202, 202, 430, 12, 5, 1289, 2223, 1305, 18, 588, 9102, 7675, 14963, 12, 6290, 18, 4936, 18, 19038, 18, 2399, 13, 10402, 747, 12087, 1305, 18, 588, 1662, 2016, 7675, 2469, 480, 404, 1082, 282, 747, 401, 12757, 559, 18, 14963, 12, 1289, 2223, 1305, 18, 588, 1662, 2016, 1435, 63, 20, 5717, 1082, 282, 747, 401, 9829, 18, 291, 4782, 12, 1289, 2223, 1305, 18, 588, 11948, 1435, 3719, 288, 1082, 202, 12849, 394, 3094, 26362, 503, 2932, 986, 10652, 2985, 2057, 1199, 1769, 202, 202, 97, 202, 202, 430, 12, 5, 4479, 2223, 1305, 18, 588, 9102, 7675, 14963, 12, 6290, 18, 4936, 18, 19038, 18, 2399, 13, 10402, 747, 18873, 1305, 18, 588, 1662, 2016, 7675, 2469, 480, 404, 1082, 282, 747, 401, 12757, 559, 18, 14963, 12, 4479, 2223, 1305, 18, 588, 1662, 2016, 1435, 63, 20, 5717, 1082, 282, 747, 18873, 1305, 18, 588, 503, 2016, 7675, 2469, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 4712, 1435, 1216, 3094, 26362, 503, 288, 202, 202, 430, 12, 5, 1289, 2223, 1305, 18, 588, 3456, 14682, 7675, 291, 7961, 1265, 12, 4479, 2223, 1305, 18, 588, 3456, 14682, 10756, 1082, 282, 597, 401, 4479, 2223, 1305, 18, 588, 3456, 14682, 7675, 291, 7961, 1265, 12, 1289, 2223, 1305, 18, 588, 3456, 14682, 1435, 3719, 288, 1082, 202, 12849, 394, 3094, 26362, 503, 2932, 1289, 471, 1206, 2991, 2590, 741, 486, 12404, 628, 326, 1967, 667, 18, 225, 1220, 353, 5570, 1199, 1769, 202, 202, 97, 202, 202, 430, 12, 5, 1289, 2223, 1305, 18, 588, 9102, 7675, 14963, 12, 6290, 18, 4936, 18, 19038, 18, 2399, 13, 10402, 747, 12087, 1305, 2 ]
assertEquals("239 91 11 91 11 91 11 7 49 254 129 147", visualized);
assertEquals("239 91 11 91 11 91 11 254 40 129", visualized);
public void testTextEncodation() throws Exception { String visualized; visualized = encodeHighLevel("aimaimaim"); assertEquals("239 91 11 91 11 91 11 254", visualized); //239 shifts to Text encodation, 254 unlatches visualized = encodeHighLevel("aimaimaim'"); assertEquals("239 91 11 91 11 91 11 7 49 254 129 147", visualized); visualized = encodeHighLevel("aimaimaIm"); assertEquals("239 91 11 91 11 87 218 254 110 129 251 147", visualized); visualized = encodeHighLevel("aimaimaimB"); assertEquals("239 91 11 91 11 91 11 12 209 254 129 147", visualized); }
47348 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47348/ac262af72415c9e519cceced811a21b3c89b70a2/DataMatrixHighLevelEncodeTest.java/buggy/barcode4j/src/test/java/org/krysalis/barcode4j/impl/datamatrix/DataMatrixHighLevelEncodeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1528, 25100, 367, 1435, 1216, 1185, 288, 3639, 514, 11623, 1235, 31, 3639, 11623, 1235, 273, 2017, 8573, 2355, 2932, 4581, 4581, 4581, 8863, 3639, 1815, 8867, 2932, 4366, 29, 26936, 4648, 26936, 4648, 26936, 4648, 29338, 3113, 11623, 1235, 1769, 3639, 368, 4366, 29, 27552, 358, 3867, 17755, 367, 16, 29338, 640, 80, 505, 281, 3639, 11623, 1235, 273, 2017, 8573, 2355, 2932, 4581, 4581, 4581, 4970, 1769, 3639, 1815, 8867, 2932, 4366, 29, 26936, 4648, 26936, 4648, 26936, 4648, 29338, 8063, 2593, 29, 3113, 11623, 1235, 1769, 1850, 11623, 1235, 273, 2017, 8573, 2355, 2932, 4581, 4581, 69, 1170, 8863, 3639, 1815, 8867, 2932, 4366, 29, 26936, 4648, 26936, 4648, 1725, 27, 576, 2643, 29338, 20168, 2593, 29, 6969, 21, 5045, 27, 3113, 11623, 1235, 1769, 3639, 11623, 1235, 273, 2017, 8573, 2355, 2932, 4581, 4581, 4581, 38, 8863, 3639, 1815, 8867, 2932, 4366, 29, 26936, 4648, 26936, 4648, 26936, 4648, 2593, 4200, 29, 29338, 2593, 29, 5045, 27, 3113, 11623, 1235, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1528, 25100, 367, 1435, 1216, 1185, 288, 3639, 514, 11623, 1235, 31, 3639, 11623, 1235, 273, 2017, 8573, 2355, 2932, 4581, 4581, 4581, 8863, 3639, 1815, 8867, 2932, 4366, 29, 26936, 4648, 26936, 4648, 26936, 4648, 29338, 3113, 11623, 1235, 1769, 3639, 368, 4366, 29, 27552, 358, 3867, 17755, 367, 16, 29338, 640, 80, 505, 281, 3639, 11623, 1235, 273, 2017, 8573, 2355, 2932, 4581, 4581, 4581, 4970, 1769, 3639, 1815, 8867, 2932, 4366, 29, 26936, 4648, 26936, 4648, 26936, 4648, 29338, 8063, 2593, 29, 3113, 11623, 1235, 1769, 1850, 11623, 1235, 273, 2017, 8573, 2355, 2932, 4581, 4581, 69, 1170, 8863, 3639, 1815, 8867, 2932, 4366, 29, 26936, 4648, 26936, 4648, 1725, 27, 576, 2 ]
public void close() {
public void close() {
public void close() { }
17035 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17035/cfc1e0db255153cb8ed18cd1e735fa4815ad666b/CompositeOperation.java/buggy/mitosis/src/main/java/org/apache/directory/mitosis/operation/CompositeOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1746, 1435, 288, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1746, 1435, 288, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 { fDocument.doReplace(begin, end-begin, text); } catch (BadLocationException e) { e.printStackTrace();
if (!toBeUpdated) { changesBegin = -1; changesDocumentEnd = -1; changesTextEnd = -1; toBeUpdated = true;
public void changeContent(int begin, int end, String text) { super.changeContent(begin, end, text); try { fDocument.doReplace(begin, end-begin, text); } catch (BadLocationException e) { e.printStackTrace(); } }
54405 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54405/d5a22bb82b82fb3eb3a2dcc8b0cd8aff9b3d5ccd/DocumentText.java/buggy/trunk/TEF/src/editortest/view/DocumentText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2549, 1350, 12, 474, 2376, 16, 509, 679, 16, 514, 977, 13, 288, 202, 202, 9565, 18, 3427, 1350, 12, 10086, 16, 679, 16, 977, 1769, 202, 202, 698, 288, 1082, 202, 74, 2519, 18, 2896, 5729, 12, 10086, 16, 679, 17, 10086, 16, 977, 1769, 202, 202, 97, 1044, 261, 6434, 2735, 503, 425, 13, 288, 6862, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2549, 1350, 12, 474, 2376, 16, 509, 679, 16, 514, 977, 13, 288, 202, 202, 9565, 18, 3427, 1350, 12, 10086, 16, 679, 16, 977, 1769, 202, 202, 698, 288, 1082, 202, 74, 2519, 18, 2896, 5729, 12, 10086, 16, 679, 17, 10086, 16, 977, 1769, 202, 202, 97, 1044, 261, 6434, 2735, 503, 425, 13, 288, 6862, 202, 73, 18, 1188, 6332, 5621, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
setCommunityService(cs);
setCommunityService(cs, false);
public AgentUserService(ServiceBroker sb, MessageAddress agent) { if (sb == null) { throw new IllegalArgumentException("ServiceBroker is null"); } _serviceBroker = sb; _log = (LoggingService) _serviceBroker.getService(this, LoggingService.class, null); if (_log.isDebugEnabled()) { _log.debug("Service Broker = " + sb); } _bbs = (BlackboardService) _serviceBroker.getService(this, BlackboardService.class, null); _uidService = (UIDService) _serviceBroker.getService(this, UIDService.class, null); if (_uidService == null) { if (_log.isInfoEnabled()) { _log.info("Unable to get UID service"); } _serviceBroker.addServiceListener(new UIDServiceListener()); } if (agent != null) { _source = agent; } else { AgentIdentificationService _agentIdentificationservice = (AgentIdentificationService) _serviceBroker.getService(this, AgentIdentificationService.class, null); if(_agentIdentificationservice != null) { _source = _agentIdentificationservice.getMessageAddress(); if(_log.isDebugEnabled()){ _log.debug("Setting agent source as "+_source); } } else { if(_log.isDebugEnabled()){ _log.debug("AgentIdentificationservice service is not avilable "); _log.debug("AddingListener for AgentIdentificationservice "); } _serviceBroker.addServiceListener(new AgentIdentificationServiceListener()); } } CommunityService cs = (CommunityService) _serviceBroker.getService(this, CommunityService.class, null); if (cs == null) { if(_log.isDebugEnabled()){ _log.debug("CommunityService service is not avilable "); } _serviceBroker.addServiceListener(new CommunityServiceListener()); } else { if(_log.isDebugEnabled()){ _log.debug("set communityService called "); } setCommunityService(cs); addCommunityListener(cs); } if (_bbs != null) { startSubscription(); } else { if(_log.isDebugEnabled()){ _log.debug("BB service is not avilable "); } _serviceBroker.addServiceListener(new BlackBoardServiceListener()); } }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/06163325f8ed94ce5810473836d9bda22b084d70/AgentUserService.java/buggy/securityservices/src/org/cougaar/core/security/acl/user/AgentUserService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8669, 1299, 1179, 12, 1179, 11194, 2393, 16, 2350, 1887, 4040, 13, 288, 565, 309, 261, 18366, 422, 446, 13, 288, 1377, 604, 394, 2754, 2932, 1179, 11194, 353, 446, 8863, 565, 289, 565, 389, 3278, 11194, 273, 2393, 31, 565, 389, 1330, 273, 261, 7735, 1179, 13, 1377, 389, 3278, 11194, 18, 588, 1179, 12, 2211, 16, 10253, 1179, 18, 1106, 16, 446, 1769, 565, 309, 261, 67, 1330, 18, 291, 2829, 1526, 10756, 288, 1377, 389, 1330, 18, 4148, 2932, 1179, 20438, 273, 315, 397, 2393, 1769, 565, 289, 565, 389, 70, 2038, 273, 261, 13155, 3752, 1179, 13, 4202, 389, 3278, 11194, 18, 588, 1179, 12, 2211, 16, 22467, 3752, 1179, 18, 1106, 16, 446, 1769, 565, 389, 1911, 1179, 273, 261, 3060, 1179, 13, 1377, 389, 3278, 11194, 18, 588, 1179, 12, 2211, 16, 10034, 1179, 18, 1106, 16, 446, 1769, 565, 309, 261, 67, 1911, 1179, 422, 446, 13, 288, 1377, 309, 261, 67, 1330, 18, 291, 966, 1526, 10756, 288, 3639, 389, 1330, 18, 1376, 2932, 3370, 358, 336, 10034, 1156, 8863, 1377, 289, 1377, 389, 3278, 11194, 18, 1289, 1179, 2223, 12, 2704, 10034, 1179, 2223, 10663, 565, 289, 565, 309, 261, 5629, 480, 446, 13, 288, 1377, 389, 3168, 273, 4040, 31, 565, 289, 565, 469, 288, 1377, 8669, 24371, 1179, 389, 5629, 24371, 3278, 273, 225, 202, 12, 3630, 24371, 1179, 13, 202, 67, 3278, 11194, 18, 588, 1179, 12, 2211, 16, 8669, 24371, 1179, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 8669, 1299, 1179, 12, 1179, 11194, 2393, 16, 2350, 1887, 4040, 13, 288, 565, 309, 261, 18366, 422, 446, 13, 288, 1377, 604, 394, 2754, 2932, 1179, 11194, 353, 446, 8863, 565, 289, 565, 389, 3278, 11194, 273, 2393, 31, 565, 389, 1330, 273, 261, 7735, 1179, 13, 1377, 389, 3278, 11194, 18, 588, 1179, 12, 2211, 16, 10253, 1179, 18, 1106, 16, 446, 1769, 565, 309, 261, 67, 1330, 18, 291, 2829, 1526, 10756, 288, 1377, 389, 1330, 18, 4148, 2932, 1179, 20438, 273, 315, 397, 2393, 1769, 565, 289, 565, 389, 70, 2038, 273, 261, 13155, 3752, 1179, 13, 4202, 389, 3278, 11194, 18, 588, 1179, 12, 2211, 16, 22467, 3752, 1179, 18, 1106, 16, 2 ]
setJMenuBar(mMenubar);
setJMenuBar(mMenubar);
public AddressBook() { super("Address Book","0"); setBackground(Color.lightGray); getContentPane().setLayout(new BorderLayout()); //create menubar (top) //merge both the editors commands with this applications commands. //mMenubar = NsMenuManager.createMenuBar("grendel.addressbook.Menus", "grendel.addressbook.MenuLabels", "mainMenubar", defaultActions); // FIXME - need to build the menu bar // (Jeff) mMenubar = buildMenu("menus.xml",defaultActions); setJMenuBar(mMenubar); //collapsble panels holds toolbar. CollapsiblePanel collapsePanel = new CollapsiblePanel(true); collapsePanel.setBorder (new EmptyBorder(5,5,5,5)); //toolbar buttons mTtoolbar = createToolbar(); //collapsible item collapsePanel.add(mTtoolbar); //create status bar (bottom) // mStatusbar = createStatusbar(); JPanel panel1 = new JPanel(); panel1.setLayout(new BorderLayout()); panel1.add(collapsePanel, BorderLayout.NORTH); //hack together the data sources. mDataSourceList = new DataSourceList (); mDataSourceList.addEntry (new DataSource ("Four11 Directory", "ldap.four11.com")); mDataSourceList.addEntry (new DataSource ("InfoSpace Directory", "ldap.infospace.com")); mDataSourceList.addEntry (new DataSource ("WhoWhere Directory", "ldap.whowhere.com")); mDataSourceList.addEntry (new DataSource ("InfoSeek Directory", "ldap.infoseek.com")); //Create address panel AddressPanel addressPanel = new AddressPanel (mDataSourceList); panel1.add(addressPanel, BorderLayout.CENTER); // getContentPane().add(mMenubar, BorderLayout.NORTH); getContentPane().add(panel1, BorderLayout.CENTER); setSize (600, 400); //Create Local Address Book //myLocalAddressBook = new ACS_Personal ("MyAddressBook.nab", true); }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/8c4478f8940802ba535b872e33a4659e26f6567e/AddressBook.java/buggy/grendel/addressbook/AddressBook.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5267, 9084, 1435, 288, 3639, 2240, 2932, 1887, 20258, 15937, 20, 8863, 3639, 31217, 12, 2957, 18, 5099, 23521, 1769, 3639, 5154, 8485, 7675, 542, 3744, 12, 2704, 30814, 10663, 3639, 368, 2640, 21247, 373, 297, 261, 3669, 13, 3639, 368, 2702, 3937, 326, 29431, 4364, 598, 333, 12165, 4364, 18, 3639, 368, 81, 49, 275, 373, 297, 273, 31436, 4599, 1318, 18, 2640, 4599, 5190, 2932, 75, 1187, 3771, 18, 2867, 3618, 18, 29755, 3113, 315, 75, 1187, 3771, 18, 2867, 3618, 18, 4599, 5888, 3113, 315, 5254, 49, 275, 373, 297, 3113, 805, 6100, 1769, 3639, 368, 9852, 300, 1608, 358, 1361, 326, 3824, 4653, 3639, 368, 261, 46, 17098, 13, 3639, 312, 49, 275, 373, 297, 273, 1361, 4599, 2932, 26065, 18, 2902, 3113, 1886, 6100, 1769, 377, 202, 202, 542, 46, 4599, 5190, 12, 81, 49, 275, 373, 297, 1769, 5411, 368, 1293, 3762, 87, 7119, 20582, 14798, 12748, 18, 5411, 1558, 3762, 2736, 5537, 13627, 5537, 273, 394, 1558, 3762, 2736, 5537, 12, 3767, 1769, 5411, 13627, 5537, 18, 542, 8107, 261, 2704, 8953, 8107, 12, 25, 16, 25, 16, 25, 16, 25, 10019, 5411, 368, 18849, 9502, 5411, 21115, 18849, 273, 752, 17907, 5621, 5411, 368, 1293, 3762, 2736, 761, 7734, 13627, 5537, 18, 1289, 12, 81, 56, 18849, 1769, 3639, 368, 2640, 1267, 4653, 261, 9176, 13, 7734, 368, 3639, 312, 1482, 3215, 273, 752, 1482, 3215, 5621, 3639, 24048, 6594, 21, 273, 394, 24048, 5621, 3639, 6594, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5267, 9084, 1435, 288, 3639, 2240, 2932, 1887, 20258, 15937, 20, 8863, 3639, 31217, 12, 2957, 18, 5099, 23521, 1769, 3639, 5154, 8485, 7675, 542, 3744, 12, 2704, 30814, 10663, 3639, 368, 2640, 21247, 373, 297, 261, 3669, 13, 3639, 368, 2702, 3937, 326, 29431, 4364, 598, 333, 12165, 4364, 18, 3639, 368, 81, 49, 275, 373, 297, 273, 31436, 4599, 1318, 18, 2640, 4599, 5190, 2932, 75, 1187, 3771, 18, 2867, 3618, 18, 29755, 3113, 315, 75, 1187, 3771, 18, 2867, 3618, 18, 4599, 5888, 3113, 315, 5254, 49, 275, 373, 297, 3113, 805, 6100, 1769, 3639, 368, 9852, 300, 1608, 358, 1361, 326, 3824, 4653, 3639, 368, 261, 46, 17098, 13, 3639, 312, 49, 275, 2 ]
public String[] selectTriggerListeners(Connection conn, String triggerName, String groupName) throws SQLException;
String[] selectTriggerListeners(Connection conn, String triggerName, String groupName) throws SQLException;
public String[] selectTriggerListeners(Connection conn, String triggerName, String groupName) throws SQLException;
3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/DriverDelegate.java/buggy/src/java/org/quartz/impl/jdbcjobstore/DriverDelegate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8526, 2027, 6518, 5583, 12, 1952, 1487, 16, 514, 3080, 461, 16, 5411, 514, 11619, 13, 1216, 6483, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 8526, 2027, 6518, 5583, 12, 1952, 1487, 16, 514, 3080, 461, 16, 5411, 514, 11619, 13, 1216, 6483, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ if (next == null) next = r; else next.append(r); }
{ if (next == null) next = r; else next.append(r); }
public void append(ResultSet r) { if (next == null) next = r; else next.append(r); }
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSet.java/buggy/src/interfaces/jdbc/postgresql/ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 714, 12, 13198, 436, 13, 202, 95, 202, 202, 430, 261, 4285, 422, 446, 13, 1082, 202, 4285, 273, 436, 31, 202, 202, 12107, 1082, 202, 4285, 18, 6923, 12, 86, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 714, 12, 13198, 436, 13, 202, 95, 202, 202, 430, 261, 4285, 422, 446, 13, 1082, 202, 4285, 273, 436, 31, 202, 202, 12107, 1082, 202, 4285, 18, 6923, 12, 86, 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 ]
newY = checkBounds(newY, m_originalImage.getHeight(this), this.getHeight());
newY = checkBounds(newY, m_originalImage.getHeight(this), this.getHeight(), false);
protected void setTopLeft(int x, int y) { int newX = x; newX = checkBounds(newX, m_originalImage.getWidth(this), this.getWidth()); int newY = y; newY = checkBounds(newY, m_originalImage.getHeight(this), this.getHeight()); setCoords(newX, newY); m_control.setLargeCoords(newX,newY); }
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/b3ee779f9d8a5dc53f849fd0ffbc7b965f0e3270/ImageScrollerLargeView.java/clean/triplea/src/games/strategy/ui/ImageScrollerLargeView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 444, 3401, 3910, 12, 474, 619, 16, 509, 677, 13, 202, 95, 202, 202, 474, 394, 60, 273, 619, 31, 202, 202, 2704, 60, 273, 866, 5694, 12, 2704, 60, 16, 312, 67, 8830, 2040, 18, 588, 2384, 12, 2211, 3631, 333, 18, 588, 2384, 10663, 9506, 202, 474, 394, 61, 273, 677, 31, 202, 202, 2704, 61, 273, 866, 5694, 12, 2704, 61, 16, 312, 67, 8830, 2040, 18, 588, 2686, 12, 2211, 3631, 333, 18, 588, 2686, 10663, 9506, 202, 542, 13089, 12, 2704, 60, 16, 394, 61, 1769, 202, 202, 81, 67, 7098, 18, 542, 20020, 13089, 12, 2704, 60, 16, 2704, 61, 1769, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 444, 3401, 3910, 12, 474, 619, 16, 509, 677, 13, 202, 95, 202, 202, 474, 394, 60, 273, 619, 31, 202, 202, 2704, 60, 273, 866, 5694, 12, 2704, 60, 16, 312, 67, 8830, 2040, 18, 588, 2384, 12, 2211, 3631, 333, 18, 588, 2384, 10663, 9506, 202, 474, 394, 61, 273, 677, 31, 202, 202, 2704, 61, 273, 866, 5694, 12, 2704, 61, 16, 312, 67, 8830, 2040, 18, 588, 2686, 12, 2211, 3631, 333, 18, 588, 2686, 10663, 9506, 202, 542, 13089, 12, 2704, 60, 16, 394, 61, 1769, 202, 202, 81, 67, 7098, 18, 542, 20020, 13089, 12, 2704, 60, 16, 2704, 61, 1769, 1082, 202, 97, 2, -100, -100, -100, -100, -100 ]
IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface();
ImcmsServices imcref = Imcms.getServices();
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { HttpSession session = req.getSession(false); // Lets get an user object imcode.server.user.UserDomainObject user = super.getUserObj(req ); if (user == null) return; if (!isUserAuthorized(req, res, user)) { log("isUserAuthorized==false"); return; } String action = req.getParameter("action"); if (action == null) { String header = "ChatCreator servlet. "; ChatError err = new ChatError(req, res, header, 3); log(header + err.getErrorMsg()); return; } Chat myChat = (Chat) session.getAttribute("myChat"); if (myChat == null) { myChat = createChat( getMetaId(req)); } int metaId = myChat.getChatId(); if (action.equalsIgnoreCase("admin_chat")) { log("admin_chat"); //ok nu hmtar vi in all data frn formulret och updaterar chat-objektet if (req.getParameter("addMsgType") != null && (!req.getParameter("msgType").trim().equals(""))) { myChat.addMsgType(req.getParameter("msgType")); } if (req.getParameter("removeMsgType") != null && req.getParameter("msgTypes") != null) { int type = Integer.parseInt(req.getParameter("msgTypes")); if (type < 100 || type >= 104) { myChat.removeMsgType(type); } } if (req.getParameterValues("authorized") != null) { myChat.setSelectedAuto(req.getParameterValues("authorized")); } if (req.getParameter("update") != null) { myChat.setRefreshTime(Integer.parseInt(req.getParameter("update"))); } if (req.getParameter("reload") != null) { myChat.setAutoRefreshEnabled(Integer.parseInt(req.getParameter("reload"))); } if (req.getParameter("inOut") != null) { myChat.setShowEnterAndLeaveMessagesEnabled(Integer.parseInt(req.getParameter("inOut"))); } if (req.getParameter("private") != null) { myChat.setShowPrivateMessagesEnabled(Integer.parseInt(req.getParameter("private"))); } if (req.getParameter("dateTime") != null) { myChat.setShowDateTimesEnabled(Integer.parseInt(req.getParameter("dateTime"))); } if (req.getParameter("font") != null) { myChat.setFontSize(Integer.parseInt(req.getParameter("font"))); } IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface(); //lets save to db if (req.getParameter("okChat") != null) { createChat(metaId, myChat, imcref, user, res); return; }//end if(action.equalsIgnoreCase("okChat")) //check if template adminpage is wanted if (req.getParameter("admin_templates_meta") != null) { log("admin_templates_meta"); if (req.getParameter("add_templates") != null) { String newLibName = req.getParameter("template_lib_name"); if (newLibName == null) { String header = "ChatCreator servlet. "; new ChatError(req, res, header, 80); //obs kolla om rtt nr return; } // Lets check if we already have a templateset with that name String libNameExists = imcref.sqlProcedureStr("C_FindTemplateLib", new String[]{newLibName}); if (!libNameExists.equalsIgnoreCase("-1")) { String header = "ChatCreator servlet. "; new ChatError(req, res, header, 84);//obs kolla om rtt nr return; } log("lang_prefix for External Template Folder = " + user.getLanguageIso639_2()); imcref.sqlUpdateProcedure("C_AddTemplateLib", new String[]{newLibName}); // Lets copy the original folders to the new foldernames FileManager fileObj = new FileManager(); File templateSrc = new File(imcref.getExternalTemplateFolder(metaId, user), "original"); File imageSrc = new File(RmiConf.getImagePathForExternalDocument(imcref, metaId, user), "original"); File templateTarget = new File(imcref.getExternalTemplateFolder(metaId, user), newLibName); File imageTarget = new File(RmiConf.getImagePathForExternalDocument(imcref, metaId, user), newLibName); fileObj.copyDirectory(templateSrc, templateTarget); fileObj.copyDirectory(imageSrc, imageTarget); }//done add new template lib if (req.getParameter("change_templatelib") != null) {//ok lets handle the change set case log("change_templatelib"); // Lets get the new library name and validate it String newLibName = req.getParameter("new_templateset_name"); //log("newLibName: "+newLibName); if (newLibName == null) { String header = "ChatCreator servlet. "; new ChatError(req, res, header, 80);//obs kolla om rtt nr return; } // Lets find the selected template in the database and get its id // if not found, -1 will be returned String templateId = imcref.sqlProcedureStr("C_GetTemplateIdFromName", new String[]{newLibName}); if (templateId.equalsIgnoreCase("-1")) { String header = "ChatCreator servlet. "; new ChatError(req, res, header, 81); return; } // Ok, lets update the chat with this new templateset. //but first lets delete the old one. imcref.sqlUpdateProcedure("C_deleteChatTemplateset", new String[]{"" + metaId}); imcref.sqlUpdateProcedure("C_SetNewTemplateLib", new String[]{"" + metaId, newLibName}); } if (req.getParameter("UPLOAD_CHAT") != null) { log("UPLOAD_CHAT"); //ok lets handle the upload of templates and images String folderName = req.getParameter("TEMPLATE_NAME"); String uploadType = req.getParameter("UPLOAD_TYPE"); //log(folderName +" "+uploadType+" "+metaId); if (folderName == null || uploadType == null) { return; } Vector tags = new Vector(); tags.add("#META_ID#"); tags.add(metaId + ""); tags.add("#UPLOAD_TYPE#"); tags.add(uploadType); tags.add("#FOLDER_NAME#"); tags.add(folderName); //sendHtml(req,res,vm, ADMIN_TEMPLATES_TEMPLATE_2) ; sendHtml(req, res, tags, ADMIN_TEMPLATES_TEMPLATE_2, null); return; } } //check if template adminpage is wanted if (req.getParameter("adminTemplates") != null) { log("adminTemplates"); //ok now lets get the template set name String templateSetName = imcref.sqlProcedureStr("C_GetTemplateLib", new String[]{"" + metaId}); if (templateSetName == null) { templateSetName = ""; } //ok lets get all the template set there is String[] templateLibs = imcref.sqlProcedure("C_GetAllTemplateLibs", new String[]{}); Vector vect = new Vector(); if (templateLibs != null) { vect = super.convert2Vector(templateLibs); } Vector tags = new Vector(); tags.add("#TEMPLATE_LIST#"); tags.add(createOptionCode(templateSetName, vect)); tags.add("#CURRENT_TEMPLATE_SET#"); tags.add(templateSetName); sendHtml(req, res, tags, ADMIN_TEMPLATES_TEMPLATE, null); return; } }//end if(action.equalsIgnoreCase("ADD_CHAT")) log("default kret"); sendHtml(req, res, createTaggs(myChat, user), HTML_TEMPLATE, myChat); } // End POST
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d060a6873350aa2972f54c354321cf3756f50e6f/ChatCreator.java/buggy/server/src/com/imcode/imcms/servlet/chat/ChatCreator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 5411, 1216, 16517, 16, 1860, 288, 3639, 26166, 1339, 273, 1111, 18, 588, 2157, 12, 5743, 1769, 3639, 368, 511, 2413, 336, 392, 729, 733, 3639, 709, 710, 18, 3567, 18, 1355, 18, 1299, 3748, 921, 729, 273, 2240, 18, 588, 1299, 2675, 12, 3658, 11272, 3639, 309, 261, 1355, 422, 446, 13, 327, 31, 3639, 309, 16051, 291, 1299, 15341, 12, 3658, 16, 400, 16, 729, 3719, 288, 5411, 613, 2932, 291, 1299, 15341, 631, 5743, 8863, 5411, 327, 31, 3639, 289, 3639, 514, 1301, 273, 1111, 18, 588, 1662, 2932, 1128, 8863, 3639, 309, 261, 1128, 422, 446, 13, 288, 5411, 514, 1446, 273, 315, 14163, 10636, 8100, 18, 13636, 5411, 16903, 668, 393, 273, 394, 16903, 668, 12, 3658, 16, 400, 16, 1446, 16, 890, 1769, 5411, 613, 12, 3374, 397, 393, 18, 588, 668, 3332, 10663, 5411, 327, 31, 3639, 289, 3639, 16903, 3399, 14163, 273, 261, 14163, 13, 1339, 18, 588, 1499, 2932, 4811, 14163, 8863, 3639, 309, 261, 4811, 14163, 422, 446, 13, 288, 5411, 3399, 14163, 273, 752, 14163, 12, 11312, 548, 12, 3658, 10019, 3639, 289, 3639, 509, 2191, 548, 273, 3399, 14163, 18, 588, 14163, 548, 5621, 3639, 309, 261, 1128, 18, 14963, 5556, 2932, 3666, 67, 10880, 6, 3719, 288, 5411, 613, 2932, 3666, 67, 10880, 8863, 5411, 368, 601, 9244, 366, 1010, 297, 13206, 316, 777, 501, 3812, 82, 646, 332, 1349, 320, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 5411, 1216, 16517, 16, 1860, 288, 3639, 26166, 1339, 273, 1111, 18, 588, 2157, 12, 5743, 1769, 3639, 368, 511, 2413, 336, 392, 729, 733, 3639, 709, 710, 18, 3567, 18, 1355, 18, 1299, 3748, 921, 729, 273, 2240, 18, 588, 1299, 2675, 12, 3658, 11272, 3639, 309, 261, 1355, 422, 446, 13, 327, 31, 3639, 309, 16051, 291, 1299, 15341, 12, 3658, 16, 400, 16, 729, 3719, 288, 5411, 613, 2932, 291, 1299, 15341, 631, 5743, 8863, 5411, 327, 31, 3639, 289, 3639, 514, 1301, 273, 1111, 18, 588, 1662, 2932, 1128, 8863, 3639, 309, 261, 1128, 422, 446, 13, 288, 5411, 514, 1446, 273, 2 ]
if ((Scheduler) schedulers.get(sched.getSchedulerName()) != null) throw new SchedulerException("Scheduler with name '" + sched.getSchedulerName() + "' already exists.", SchedulerException.ERR_BAD_CONFIGURATION);
if ((Scheduler) schedulers.get(sched.getSchedulerName()) != null) { throw new SchedulerException("Scheduler with name '" + sched.getSchedulerName() + "' already exists.", SchedulerException.ERR_BAD_CONFIGURATION); }
public synchronized void bind(Scheduler sched) throws SchedulerException { if ((Scheduler) schedulers.get(sched.getSchedulerName()) != null) throw new SchedulerException("Scheduler with name '" + sched.getSchedulerName() + "' already exists.", SchedulerException.ERR_BAD_CONFIGURATION); schedulers.put(sched.getSchedulerName(), sched); }
15562 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15562/f6eeea5a952e67d6b7fc8b54ae64d0b9e7098a98/SchedulerRepository.java/buggy/src/java/org/quartz/impl/SchedulerRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1993, 12, 11870, 23964, 13, 1216, 12620, 503, 288, 3639, 309, 14015, 11870, 13, 272, 4292, 414, 18, 588, 12, 87, 2049, 18, 588, 11870, 461, 10756, 480, 446, 13, 7734, 604, 394, 12620, 503, 2932, 11870, 598, 508, 2119, 13491, 397, 23964, 18, 588, 11870, 461, 1435, 397, 2491, 1818, 1704, 1199, 16, 13491, 12620, 503, 18, 9712, 67, 16234, 67, 21200, 1769, 3639, 272, 4292, 414, 18, 458, 12, 87, 2049, 18, 588, 11870, 461, 9334, 23964, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1993, 12, 11870, 23964, 13, 1216, 12620, 503, 288, 3639, 309, 14015, 11870, 13, 272, 4292, 414, 18, 588, 12, 87, 2049, 18, 588, 11870, 461, 10756, 480, 446, 13, 7734, 604, 394, 12620, 503, 2932, 11870, 598, 508, 2119, 13491, 397, 23964, 18, 588, 11870, 461, 1435, 397, 2491, 1818, 1704, 1199, 16, 13491, 12620, 503, 18, 9712, 67, 16234, 67, 21200, 1769, 3639, 272, 4292, 414, 18, 458, 12, 87, 2049, 18, 588, 11870, 461, 9334, 23964, 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 ]
if ( selectionKey.attachment() == null){
if ( selectionKey.attachment() != null){
public void enableSelectionKeys() { SelectionKey selectionKey; int size = getKeysToEnable().size(); long currentTime = System.currentTimeMillis(); for (int i=0; i < size; i++) { selectionKey = (SelectionKey)getKeysToEnable().poll(); selectionKey.interestOps( selectionKey.interestOps() | SelectionKey.OP_READ); if ( selectionKey.attachment() == null){ ((JettyReadTask)selectionKey .attachment()).setIdleTime(currentTime); } keepAlivePipeline.trap(selectionKey); } }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/518e4fc9d0bb4936c60cac7dcb7134ea2ad09c30/JettySelectorThread.java/buggy/trunk/extras/grizzly/src/main/java/org/mortbay/jetty/grizzly/JettySelectorThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4237, 6233, 2396, 1435, 565, 288, 3639, 12977, 653, 4421, 653, 31, 3639, 509, 963, 273, 24753, 774, 8317, 7675, 1467, 5621, 3639, 1525, 6680, 273, 2332, 18, 2972, 28512, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 411, 963, 31, 277, 27245, 288, 5411, 4421, 653, 273, 261, 6233, 653, 13, 588, 2396, 774, 8317, 7675, 13835, 5621, 5411, 4421, 653, 18, 2761, 395, 8132, 12, 10792, 4421, 653, 18, 2761, 395, 8132, 1435, 571, 12977, 653, 18, 3665, 67, 6949, 1769, 5411, 309, 261, 4421, 653, 18, 11461, 1435, 480, 446, 15329, 7734, 14015, 46, 22084, 1994, 2174, 13, 10705, 653, 13491, 263, 11461, 1435, 2934, 542, 13834, 950, 12, 2972, 950, 1769, 5411, 289, 5411, 24115, 8798, 18, 27170, 12, 10705, 653, 1769, 6647, 289, 377, 289, 1377, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4237, 6233, 2396, 1435, 565, 288, 3639, 12977, 653, 4421, 653, 31, 3639, 509, 963, 273, 24753, 774, 8317, 7675, 1467, 5621, 3639, 1525, 6680, 273, 2332, 18, 2972, 28512, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 411, 963, 31, 277, 27245, 288, 5411, 4421, 653, 273, 261, 6233, 653, 13, 588, 2396, 774, 8317, 7675, 13835, 5621, 5411, 4421, 653, 18, 2761, 395, 8132, 12, 10792, 4421, 653, 18, 2761, 395, 8132, 1435, 571, 12977, 653, 18, 3665, 67, 6949, 1769, 5411, 309, 261, 4421, 653, 18, 11461, 1435, 480, 446, 15329, 7734, 14015, 46, 22084, 1994, 2174, 13, 10705, 653, 13491, 263, 11461, 1435, 2934, 542, 13834, 950, 12, 2972, 950, 2 ]
if(log.isInfoEnabled()) log.info("mbr=" + mbr);
if(log.isDebugEnabled()) log.debug("mbr=" + mbr);
public synchronized void handleLeave(Address mbr, boolean suspected) { Vector v=new Vector(); // contains either leaving mbrs or suspected mbrs if(log.isInfoEnabled()) log.info("mbr=" + mbr); if(!gms.members.contains(mbr)) { if(log.isErrorEnabled()) log.error("mbr " + mbr + " is not a member !"); return; } v.addElement(mbr); if(suspected) gms.castViewChange(null, null, v); else gms.castViewChange(null, v, null); }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/85b7a7c351493f88f1d6a3045b9cbd0b817f95cd/CoordGmsImpl.java/buggy/src/org/jgroups/protocols/pbcast/CoordGmsImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1640, 21300, 12, 1887, 312, 2848, 16, 1250, 11375, 1789, 13, 288, 3639, 5589, 331, 33, 2704, 5589, 5621, 3639, 368, 1914, 3344, 15086, 312, 2848, 87, 578, 11375, 1789, 312, 2848, 87, 5411, 309, 12, 1330, 18, 291, 2829, 1526, 10756, 613, 18, 4148, 2932, 1627, 86, 1546, 397, 312, 2848, 1769, 3639, 309, 12, 5, 75, 959, 18, 7640, 18, 12298, 12, 1627, 86, 3719, 288, 7734, 309, 12, 1330, 18, 291, 668, 1526, 10756, 613, 18, 1636, 2932, 1627, 86, 315, 397, 312, 2848, 397, 315, 353, 486, 279, 3140, 401, 8863, 5411, 327, 31, 3639, 289, 3639, 331, 18, 1289, 1046, 12, 1627, 86, 1769, 3639, 309, 12, 87, 407, 1789, 13, 5411, 314, 959, 18, 4155, 1767, 3043, 12, 2011, 16, 446, 16, 331, 1769, 3639, 469, 5411, 314, 959, 18, 4155, 1767, 3043, 12, 2011, 16, 331, 16, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 1640, 21300, 12, 1887, 312, 2848, 16, 1250, 11375, 1789, 13, 288, 3639, 5589, 331, 33, 2704, 5589, 5621, 3639, 368, 1914, 3344, 15086, 312, 2848, 87, 578, 11375, 1789, 312, 2848, 87, 5411, 309, 12, 1330, 18, 291, 2829, 1526, 10756, 613, 18, 4148, 2932, 1627, 86, 1546, 397, 312, 2848, 1769, 3639, 309, 12, 5, 75, 959, 18, 7640, 18, 12298, 12, 1627, 86, 3719, 288, 7734, 309, 12, 1330, 18, 291, 668, 1526, 10756, 613, 18, 1636, 2932, 1627, 86, 315, 397, 312, 2848, 397, 315, 353, 486, 279, 3140, 401, 8863, 5411, 327, 31, 3639, 289, 3639, 331, 18, 1289, 1046, 12, 1627, 86, 1769, 3639, 309, 12, 87, 407, 1789, 2 ]
createLabel( propertiesSection, LABEL_NAME );
createLabel( propertiesSection, LABEL_NAME, maxStrLengthProperty );
private void createPropertiesSection( Composite composite ) { Group propertiesSection = new Group( composite, SWT.NONE ); propertiesSection.setText( GROUP_PROPERTIES ); propertiesSection.setLayout( new GridLayout( 2, false ) ); propertiesSection.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createLabel( propertiesSection, LABEL_NAME ); nameEditor = new Text( propertiesSection, SWT.BORDER ); nameEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); nameEditor.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { updateMessageLine( ); } } ); createLabel( propertiesSection, LABEL_PROMPT_TEXT ); promptTextEditor = new Text( propertiesSection, SWT.BORDER ); promptTextEditor.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); createLabel( propertiesSection, LABEL_PARAM_DATA_TYPE ); dataTypeChooser = new Combo( propertiesSection, SWT.READ_ONLY | SWT.DROP_DOWN ); dataTypeChooser.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); dataTypeChooser.setItems( ChoiceSetFactory.getDisplayNamefromChoiceSet( dataType ) ); dataTypeChooser.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { changeDataType( ); if ( allowBlank != null && !allowBlank.isDisposed( ) ) { if ( DesignChoiceConstants.PARAM_TYPE_STRING.equals( getSelectedDataType( ) ) ) { allowBlank.setEnabled( true ); } else { allowBlank.setEnabled( false ); allowBlank.setSelection( false ); checkBoxChange( allowBlank, CHECKBOX_ALLOW_BLANK ); } } } } ); createLabel( propertiesSection, LABEL_DISPALY_TYPE ); controlTypeChooser = new Combo( propertiesSection, SWT.READ_ONLY | SWT.DROP_DOWN ); controlTypeChooser.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); controlTypeChooser.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { changeControlType( ); } } ); createLabel( propertiesSection, LABEL_LIST_OF_VALUE ); Composite choiceArea = new Composite( propertiesSection, SWT.NONE ); choiceArea.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); choiceArea.setLayout( UIUtil.createGridLayoutWithoutMargin( 2, true ) ); staticRadio = new Button( choiceArea, SWT.RADIO ); staticRadio.setText( RADIO_STATIC ); staticRadio.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { switchParamterType( ); } } ); dynamicRadio = new Button( choiceArea, SWT.RADIO ); dynamicRadio.setText( RADIO_DYNAMIC ); dynamicRadio.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { switchParamterType( ); } } ); valueArea = new Composite( propertiesSection, SWT.NONE ); valueArea.setLayout( UIUtil.createGridLayoutWithoutMargin( 2, false ) ); GridData gd = new GridData( GridData.FILL_BOTH ); gd.heightHint = 150; gd.widthHint = 550; gd.horizontalSpan = 2; valueArea.setLayoutData( gd ); createLabel( propertiesSection, null ); errorMessageLine = new CLabel( propertiesSection, SWT.NONE ); errorMessageLine.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4fe09b53fc6ad2edcaeb950e226a6b5c999af9a3/ParameterDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 2297, 5285, 12, 14728, 9635, 262, 202, 95, 202, 202, 1114, 1790, 5285, 273, 394, 3756, 12, 9635, 16, 348, 8588, 18, 9826, 11272, 202, 202, 4738, 5285, 18, 542, 1528, 12, 13839, 67, 17421, 11272, 202, 202, 4738, 5285, 18, 542, 3744, 12, 394, 7145, 3744, 12, 576, 16, 629, 262, 11272, 202, 202, 4738, 5285, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 2640, 2224, 12, 1790, 5285, 16, 18210, 67, 1985, 11272, 202, 202, 529, 6946, 273, 394, 3867, 12, 1790, 5285, 16, 348, 8588, 18, 38, 7954, 11272, 202, 202, 529, 6946, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 529, 6946, 18, 1289, 11047, 2223, 12, 394, 9518, 2223, 12, 262, 288, 1082, 202, 482, 918, 5612, 1528, 12, 9518, 1133, 425, 262, 1082, 202, 95, 9506, 202, 2725, 1079, 1670, 12, 11272, 1082, 202, 97, 202, 202, 97, 11272, 202, 202, 2640, 2224, 12, 1790, 5285, 16, 18210, 67, 3373, 49, 1856, 67, 5151, 11272, 202, 202, 13325, 1528, 6946, 273, 394, 3867, 12, 1790, 5285, 16, 348, 8588, 18, 38, 7954, 11272, 202, 202, 13325, 1528, 6946, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 2640, 2224, 12, 1790, 5285, 16, 18210, 67, 8388, 67, 4883, 67, 2399, 11272, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 2297, 5285, 12, 14728, 9635, 262, 202, 95, 202, 202, 1114, 1790, 5285, 273, 394, 3756, 12, 9635, 16, 348, 8588, 18, 9826, 11272, 202, 202, 4738, 5285, 18, 542, 1528, 12, 13839, 67, 17421, 11272, 202, 202, 4738, 5285, 18, 542, 3744, 12, 394, 7145, 3744, 12, 576, 16, 629, 262, 11272, 202, 202, 4738, 5285, 18, 542, 3744, 751, 12, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 262, 11272, 202, 202, 2640, 2224, 12, 1790, 5285, 16, 18210, 67, 1985, 11272, 202, 202, 529, 6946, 273, 394, 3867, 12, 1790, 5285, 16, 348, 8588, 18, 38, 7954, 11272, 202, 202, 529, 6946, 18, 542, 3744, 751, 12, 394, 2 ]
addToList(propList, filter, new VSchemaObject(F_STR_EXT, null, F_EX)); addToList(propList, filter, new VSchemaObject(F_STR_EXT_PT, null, F_EP));
addToList(propList, filter, new VSchemaObject(F_STR_EXT, PDEUIMessages.XMLContentAssistProcessor_extensions, F_EX)); addToList(propList, filter, new VSchemaObject(F_STR_EXT_PT, PDEUIMessages.XMLContentAssistProcessor_extensionPoints, F_EP));
private ICompletionProposal[] computeAddChildProposal(IDocumentNode node, int offset, IDocument doc, String filter) { ArrayList propList = new ArrayList(); if (node instanceof IPluginBase) { addToList(propList, filter, new VSchemaObject(F_STR_EXT, null, F_EX)); addToList(propList, filter, new VSchemaObject(F_STR_EXT_PT, null, F_EP)); } else if (node instanceof IPluginExtensionPoint) { return null; } else { IPluginObject obj = XMLUtil.getTopLevelParent(node); if (obj instanceof IPluginExtension) { ISchemaElement sElem = XMLUtil.getSchemaElement(node, ((IPluginExtension)obj).getPoint()); if (sElem != null && sElem.getType() instanceof ISchemaComplexType) { IDocumentNode[] children = node.getChildNodes(); ISchemaCompositor comp = ((ISchemaComplexType)sElem.getType()).getCompositor(); if (comp == null) return null; ISchemaObject[] sChildren = comp.getChildren(); // TODO need to check compositor max/min etc. ArrayList list = new ArrayList(); for (int i = 0; i < sChildren.length && sChildren[i] instanceof ISchemaElement; i++) { int k; // if we break early we wont add for (k = 0; k < children.length; k++) if (children[k].getXMLTagName().equals(sChildren[i].getName()) && ((ISchemaElement)sChildren[i]).getMaxOccurs() == 1) break; if (k == children.length) list.add(sChildren[i]); } int length = list.size(); for (int i = 0; i < length; i++) addToList(propList, filter, (ISchemaElement)list.get(i)); } } } return convertListToProposal(propList, node, offset); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/9ee52d9b4a9340bc1b988c42e8aa5c24cdcad3f9/XMLContentAssistProcessor.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/contentassist/XMLContentAssistProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 11238, 14592, 8526, 3671, 986, 1763, 14592, 12, 734, 504, 650, 907, 756, 16, 509, 1384, 16, 1599, 504, 650, 997, 16, 514, 1034, 13, 288, 202, 202, 19558, 2270, 682, 273, 394, 2407, 5621, 202, 202, 430, 261, 2159, 1276, 467, 3773, 2171, 13, 288, 1082, 202, 1289, 25772, 12, 5986, 682, 16, 1034, 16, 394, 776, 3078, 921, 12, 42, 67, 3902, 67, 4142, 16, 446, 16, 478, 67, 2294, 10019, 1082, 202, 1289, 25772, 12, 5986, 682, 16, 1034, 16, 394, 776, 3078, 921, 12, 42, 67, 3902, 67, 4142, 67, 1856, 16, 446, 16, 478, 67, 10541, 10019, 202, 202, 97, 469, 309, 261, 2159, 1276, 467, 3773, 3625, 2148, 13, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 469, 288, 1082, 202, 45, 3773, 921, 1081, 273, 3167, 1304, 18, 588, 27046, 3054, 12, 2159, 1769, 1082, 202, 430, 261, 2603, 1276, 467, 3773, 3625, 13, 288, 9506, 202, 45, 3078, 1046, 272, 7498, 273, 3167, 1304, 18, 588, 3078, 1046, 12, 2159, 16, 14015, 45, 3773, 3625, 13, 2603, 2934, 588, 2148, 10663, 9506, 202, 430, 261, 87, 7498, 480, 446, 597, 272, 7498, 18, 588, 559, 1435, 1276, 467, 3078, 12795, 559, 13, 288, 6862, 202, 734, 504, 650, 907, 8526, 2325, 273, 756, 18, 588, 22460, 5621, 6862, 202, 45, 3078, 799, 1724, 280, 1161, 273, 14015, 45, 3078, 12795, 559, 13, 87, 7498, 18, 588, 559, 1435, 2934, 588, 799, 1724, 280, 5621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 467, 11238, 14592, 8526, 3671, 986, 1763, 14592, 12, 734, 504, 650, 907, 756, 16, 509, 1384, 16, 1599, 504, 650, 997, 16, 514, 1034, 13, 288, 202, 202, 19558, 2270, 682, 273, 394, 2407, 5621, 202, 202, 430, 261, 2159, 1276, 467, 3773, 2171, 13, 288, 1082, 202, 1289, 25772, 12, 5986, 682, 16, 1034, 16, 394, 776, 3078, 921, 12, 42, 67, 3902, 67, 4142, 16, 446, 16, 478, 67, 2294, 10019, 1082, 202, 1289, 25772, 12, 5986, 682, 16, 1034, 16, 394, 776, 3078, 921, 12, 42, 67, 3902, 67, 4142, 67, 1856, 16, 446, 16, 478, 67, 10541, 10019, 202, 202, 97, 469, 309, 261, 2159, 1276, 467, 3773, 3625, 2148, 13, 2 ]
public BinaryExpr createEqualityExpr(Expr lhs, Expr rhs, int equalityOperator) throws JaxenException { switch ( equalityOperator ) { case EQUALS: { return new DefaultEqualsExpr( lhs, rhs ); } case NOT_EQUALS: { return new DefaultNotEqualsExpr( lhs, rhs ); } } throw new JaxenException( "Unhandled operator in createEqualityExpr(): " + equalityOperator ); }
12974 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12974/b2b8245c3f10c560d442911f2a4a99b31d6e660f/DefaultXPathFactory.java/clean/src/java/main/org/jaxen/expr/DefaultXPathFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 7896, 4742, 752, 20273, 4742, 12, 4742, 8499, 16, 225, 8074, 7711, 16, 225, 509, 14958, 5592, 13, 1216, 25824, 275, 503, 288, 225, 1620, 261, 14958, 5592, 262, 225, 288, 3593, 27557, 18611, 327, 394, 2989, 8867, 4742, 12, 8499, 16, 7711, 11272, 97, 3593, 4269, 67, 12853, 55, 18611, 327, 394, 2989, 1248, 8867, 4742, 12, 8499, 16, 7711, 11272, 97, 225, 289, 225, 604, 394, 25824, 275, 503, 12, 315, 26952, 3726, 316, 752, 20273, 4742, 13332, 315, 397, 14958, 5592, 11272, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 7896, 4742, 752, 20273, 4742, 12, 4742, 8499, 16, 225, 8074, 7711, 16, 225, 509, 14958, 5592, 13, 1216, 25824, 275, 503, 288, 225, 1620, 261, 14958, 5592, 262, 225, 288, 3593, 27557, 18611, 327, 394, 2989, 8867, 4742, 12, 8499, 16, 7711, 11272, 97, 3593, 4269, 67, 12853, 55, 18611, 327, 394, 2989, 1248, 8867, 4742, 12, 8499, 16, 7711, 11272, 97, 225, 289, 225, 604, 394, 25824, 275, 503, 12, 315, 26952, 3726, 316, 752, 20273, 4742, 13332, 315, 397, 14958, 5592, 11272, 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 ]
RubyModule rubyClass = threadContext.getRubyClass(); if (rubyClass == null) {
RubyModule containingClass = threadContext.getRubyClass(); if (containingClass == null) {
public void visitDefnNode(DefnNode iVisited) { RubyModule rubyClass = threadContext.getRubyClass(); if (rubyClass == null) { throw new TypeError(runtime, "No class to add method."); } String name = iVisited.getName(); if (rubyClass == runtime.getClasses().getObjectClass() && name.equals("initialize")) { runtime.getWarnings().warn("redefining Object#initialize may cause infinite loop"); } Visibility visibility = threadContext.getCurrentVisibility(); if (name.equals("initialize") || visibility.isModuleFunction()) { visibility = Visibility.PRIVATE; } else if (visibility.isPublic() && rubyClass == runtime.getClasses().getObjectClass()) { visibility = iVisited.getVisibility(); } DefaultMethod newMethod = new DefaultMethod(iVisited.getBodyNode(), (ArgsNode) iVisited.getArgsNode(), visibility, runtime.getRubyClass()); iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod)); rubyClass.addMethod(name, newMethod); if (threadContext.getCurrentVisibility().isModuleFunction()) { rubyClass.getSingletonClass().addMethod(name, new WrapperCallable(newMethod, Visibility.PUBLIC)); rubyClass.callMethod("singleton_method_added", builtins.toSymbol(name)); } rubyClass.callMethod("method_added", builtins.toSymbol(name)); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/43e9fa2839b5fdb050b372d628601d8a4bcc43a4/EvaluateVisitor.java/clean/src/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 2650, 1042, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 13, 288, 5411, 604, 394, 3580, 12, 9448, 16, 315, 2279, 667, 358, 527, 707, 1199, 1769, 3639, 289, 3639, 514, 508, 273, 277, 30019, 18, 17994, 5621, 3639, 309, 261, 27768, 797, 422, 3099, 18, 588, 4818, 7675, 588, 921, 797, 1435, 597, 508, 18, 14963, 2932, 11160, 6, 3719, 288, 5411, 3099, 18, 588, 4312, 7675, 8935, 2932, 266, 5649, 310, 1033, 7, 11160, 2026, 4620, 14853, 2798, 8863, 3639, 289, 3639, 27791, 9478, 273, 2650, 1042, 18, 588, 3935, 10135, 5621, 3639, 309, 261, 529, 18, 14963, 2932, 11160, 7923, 747, 9478, 18, 291, 3120, 2083, 10756, 288, 5411, 9478, 273, 27791, 18, 20055, 31, 3639, 289, 469, 309, 261, 14422, 18, 291, 4782, 1435, 597, 22155, 797, 422, 3099, 18, 588, 4818, 7675, 588, 921, 797, 10756, 288, 5411, 9478, 273, 277, 30019, 18, 588, 10135, 5621, 3639, 289, 3639, 2989, 1305, 394, 1305, 273, 394, 2989, 1305, 12, 77, 30019, 18, 588, 2250, 907, 9334, 4766, 10792, 261, 2615, 907, 13, 277, 30019, 18, 588, 2615, 907, 9334, 4766, 10792, 9478, 16, 4766, 10792, 3099, 18, 588, 54, 10340, 797, 10663, 7734, 277, 30019, 18, 588, 2250, 907, 7675, 9436, 12, 2704, 1788, 26743, 2326, 7413, 12, 2704, 1305, 10019, 7734, 22155, 797, 18, 1289, 1305, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 3262, 82, 907, 12, 3262, 82, 907, 277, 30019, 13, 288, 3639, 19817, 3120, 22155, 797, 273, 2650, 1042, 18, 588, 54, 10340, 797, 5621, 3639, 309, 261, 27768, 797, 422, 446, 13, 288, 5411, 604, 394, 3580, 12, 9448, 16, 315, 2279, 667, 358, 527, 707, 1199, 1769, 3639, 289, 3639, 514, 508, 273, 277, 30019, 18, 17994, 5621, 3639, 309, 261, 27768, 797, 422, 3099, 18, 588, 4818, 7675, 588, 921, 797, 1435, 597, 508, 18, 14963, 2932, 11160, 6, 3719, 288, 5411, 3099, 18, 588, 4312, 7675, 8935, 2932, 266, 5649, 310, 1033, 7, 11160, 2026, 4620, 14853, 2798, 8863, 3639, 289, 3639, 27791, 9478, 273, 2650, 1042, 18, 588, 3935, 10135, 2 ]
Logger.error(this, "onSuccess called twice for "+this+" ("+identifier+")");
Logger.error(this, "onSuccess called twice for "+this+" ("+identifier+ ')');
public void onSuccess(FetchResult result, ClientGetter state) { Logger.minor(this, "Succeeded: "+identifier); Bucket data = result.asBucket(); if(returnBucket != data) Logger.error(this, "returnBucket = "+returnBucket+" but onSuccess() data = "+data); boolean dontFree = false; // FIXME I don't think this is a problem in this case...? (Disk write while locked..) AllDataMessage adm = null; synchronized(this) { if(succeeded) { Logger.error(this, "onSuccess called twice for "+this+" ("+identifier+")"); return; // We might be called twice; ignore it if so. } if(returnType == ClientGetMessage.RETURN_TYPE_DIRECT) { // Send all the data at once // FIXME there should be other options adm = new AllDataMessage(data, identifier); if(persistenceType == PERSIST_CONNECTION) adm.setFreeOnSent(); dontFree = true; /* * } else if(returnType == ClientGetMessage.RETURN_TYPE_NONE) { // Do nothing */ } else if(returnType == ClientGetMessage.RETURN_TYPE_DISK) { // Write to temp file, then rename over filename FileOutputStream fos = null; boolean closed = false; try { if(data != returnBucket) { fos = new FileOutputStream(tempFile); BucketTools.copyTo(data, fos, data.size()); if(fos != null) { fos.close(); // must be closed before rename closed = true; } } if(!tempFile.renameTo(targetFile)) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_RENAME_FILE, false, null, identifier); // Don't delete temp file, user might want it. } returnBucket = new FileBucket(targetFile, false, false, false, false); } catch (FileNotFoundException e) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier); } catch (IOException e) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier); } try { if((fos != null) && !closed) fos.close(); } catch (IOException e) { Logger.error(this, "Caught "+e+" closing file "+tempFile, e); } } progressPending = null; this.foundDataLength = data.size(); this.foundDataMimeType = result.getMimeType(); this.succeeded = true; finished = true; } trySendDataFoundOrGetFailed(null); if(adm != null) trySendAllDataMessage(adm, null); if(!dontFree) data.free(); finish(); }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/62fd59041864b4ed1f43adc676de6bfb5ea977f3/ClientGet.java/clean/src/freenet/node/fcp/ClientGet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20613, 12, 5005, 1253, 563, 16, 2445, 8461, 919, 13, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 30500, 30, 13773, 5644, 1769, 202, 202, 4103, 501, 273, 563, 18, 345, 4103, 5621, 202, 202, 430, 12, 2463, 4103, 480, 501, 13, 1082, 202, 3328, 18, 1636, 12, 2211, 16, 315, 2463, 4103, 273, 13773, 2463, 4103, 9078, 1496, 20613, 1435, 501, 273, 13773, 892, 1769, 202, 202, 6494, 14046, 9194, 273, 629, 31, 202, 202, 759, 9852, 467, 2727, 1404, 15507, 333, 353, 279, 6199, 316, 333, 648, 2777, 35, 261, 6247, 1045, 1323, 8586, 838, 13, 202, 202, 1595, 751, 1079, 31003, 273, 446, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 87, 20983, 13, 288, 9506, 202, 3328, 18, 1636, 12, 2211, 16, 315, 265, 4510, 2566, 13605, 364, 13773, 2211, 9078, 7566, 15, 5644, 9078, 2225, 1769, 9506, 202, 2463, 31, 368, 1660, 4825, 506, 2566, 13605, 31, 2305, 518, 309, 1427, 18, 1082, 202, 97, 1082, 202, 430, 12, 2463, 559, 422, 2445, 967, 1079, 18, 14033, 67, 2399, 67, 17541, 13, 288, 9506, 202, 759, 2479, 777, 326, 501, 622, 3647, 9506, 202, 759, 9852, 1915, 1410, 506, 1308, 702, 9506, 202, 20864, 273, 394, 4826, 751, 1079, 12, 892, 16, 2756, 1769, 9506, 202, 430, 12, 24854, 559, 422, 10950, 18732, 67, 15461, 13, 6862, 202, 20864, 18, 542, 9194, 1398, 7828, 5621, 9506, 202, 72, 1580, 9194, 273, 638, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20613, 12, 5005, 1253, 563, 16, 2445, 8461, 919, 13, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 30500, 30, 13773, 5644, 1769, 202, 202, 4103, 501, 273, 563, 18, 345, 4103, 5621, 202, 202, 430, 12, 2463, 4103, 480, 501, 13, 1082, 202, 3328, 18, 1636, 12, 2211, 16, 315, 2463, 4103, 273, 13773, 2463, 4103, 9078, 1496, 20613, 1435, 501, 273, 13773, 892, 1769, 202, 202, 6494, 14046, 9194, 273, 629, 31, 202, 202, 759, 9852, 467, 2727, 1404, 15507, 333, 353, 279, 6199, 316, 333, 648, 2777, 35, 261, 6247, 1045, 1323, 8586, 838, 13, 202, 202, 1595, 751, 1079, 31003, 273, 446, 31, 202, 202, 22043, 12, 2211, 13, 2 ]