rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
baseURI = new URI("http: | baseURI = new IRI("http: | protected void setUp() throws Exception { baseURI = new URI("http://feedvalidator.org/testcases/atom/"); super.setUp(); } | 46425 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46425/a7724f57b1ed9f7e36f7b511e06e7dbc231182d4/FeedValidatorTest.java/clean/parser/src/test/java/org/apache/abdera/test/parser/stax/FeedValidatorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
24292,
1435,
1216,
1185,
288,
565,
1026,
3098,
273,
394,
3699,
2932,
2505,
2207,
7848,
7357,
18,
3341,
19,
3813,
22186,
19,
7466,
4898,
1769,
565,
2240,
18,
542,
1211,
5621,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
24292,
1435,
1216,
1185,
288,
565,
1026,
3098,
273,
394,
3699,
2932,
2505,
2207,
7848,
7357,
18,
3341,
19,
3813,
22186,
19,
7466,
4898,
1769,
565,
2240,
18,
542,
1211,
5621,
22... |
newFile.create(contents, false, monitor); | newFile.create(contents, false, new SubProgressMonitor(monitor, 1)); | private IFile createFile(IPath makefilePath) throws CoreException { // Create or get the handle for the makefile IWorkspaceRoot root = CCorePlugin.getWorkspace().getRoot(); IFile newFile = root.getFileForLocation(makefilePath); if (newFile == null) { newFile = root.getFile(makefilePath); } // Create the file if it does not exist ByteArrayInputStream contents = new ByteArrayInputStream(new byte[0]); try { newFile.create(contents, false, monitor); // Make sure the new file is marked as derived if (!newFile.isDerived()) { newFile.setDerived(true); } } catch (CoreException e) { // If the file already existed locally, just refresh to get contents if (e.getStatus().getCode() == IResourceStatus.PATH_OCCUPIED) newFile.refreshLocal(IResource.DEPTH_ZERO, null); else throw e; } return newFile; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/77a7513b82466bcfc73a61cc9f34581b758ec8f5/GnuMakefileGenerator.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/makegen/gnu/GnuMakefileGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
812,
21266,
12,
45,
743,
1221,
22787,
13,
1216,
30015,
288,
202,
202,
759,
1788,
578,
336,
326,
1640,
364,
326,
1221,
768,
202,
202,
45,
8241,
2375,
1365,
273,
385,
4670... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
812,
21266,
12,
45,
743,
1221,
22787,
13,
1216,
30015,
288,
202,
202,
759,
1788,
578,
336,
326,
1640,
364,
326,
1221,
768,
202,
202,
45,
8241,
2375,
1365,
273,
385,
4670... |
&& (actualParams[i].type == java.sql.Types.CHAR || | && (actualParams[i].type == java.sql.Types.CHAR || | public boolean compatibleParameters( ParameterListItem actualParams[]) throws SQLException { int i; boolean isOkay = true; isOkay = parameterList.length == actualParams.length; for(i=0; isOkay && i<actualParams.length; i++) { if ((parameterList[i].formalType.startsWith("char") || parameterList[i].formalType.startsWith("varchar") || parameterList[i].formalType.startsWith("text") || parameterList[i].formalType.startsWith("nchar") || parameterList[i].formalType.startsWith("nvarchar") || parameterList[i].formalType.startsWith("ntext")) && (actualParams[i].type == java.sql.Types.CHAR || actualParams[i].type == java.sql.Types.VARCHAR || actualParams[i].type == java.sql.Types.LONGVARCHAR)) { isOkay = parameterList[i].maxLength >= actualParams[i].maxLength; } else { isOkay = parameterList[i].formalType.equalsIgnoreCase(actualParams[i].formalType); } } return isOkay; } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/94e0726b04f349bc8a5ee29394cce902177ab087/Procedure.java/clean/src/main/net/sourceforge/jtds/jdbc/Procedure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
1250,
7318,
2402,
12,
1377,
5498,
13575,
3214,
1370,
63,
5717,
1377,
1216,
6483,
282,
288,
1377,
509,
377,
277,
31,
1377,
1250,
353,
8809,
528,
273,
638,
31,
1377,
353,
8809,
528,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
7318,
2402,
12,
1377,
5498,
13575,
3214,
1370,
63,
5717,
1377,
1216,
6483,
282,
288,
1377,
509,
377,
277,
31,
1377,
1250,
353,
8809,
528,
273,
638,
31,
1377,
353,
8809,
528,
... |
public void testComponent() throws Exception { Instrument instrument = new Instrument(); instrument.set(new Symbol("DELL")); instrument.set(new CountryOfIssue("USA")); instrument.set(new SecurityType(SecurityType.COMMON_STOCK)); quickfix.fix44.NewOrderSingle newOrderSingle = new quickfix.fix44.NewOrderSingle(); newOrderSingle.set(instrument); newOrderSingle.set(new OrderQty(100)); newOrderSingle.set(new Price(45)); assertEquals(new Symbol("DELL"), newOrderSingle.getSymbol()); assertEquals(new CountryOfIssue("USA"), newOrderSingle.getCountryOfIssue()); assertEquals(new SecurityType(SecurityType.COMMON_STOCK), newOrderSingle.getSecurityType()); newOrderSingle.set(new ClOrdID("CLIENT_ORDER_ID")); Instrument instrument2 = newOrderSingle.getInstrument(); assertEquals(new Symbol("DELL"), instrument2.getSymbol()); assertEquals(new CountryOfIssue("USA"), instrument2.getCountryOfIssue()); assertEquals(new SecurityType(SecurityType.COMMON_STOCK), instrument2.getSecurityType()); try { instrument2.getField(new ClOrdID()); fail("should have thrown exception"); } catch (FieldNotFound e) { // expected } } | 6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/687565539d84115c31e47580ebda99933142832e/MessageTest.java/buggy/core/src/test/java/quickfix/MessageTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1841,
1435,
1216,
1185,
288,
3639,
25565,
10353,
273,
394,
25565,
5621,
3639,
10353,
18,
542,
12,
2704,
8565,
2932,
1639,
4503,
7923,
1769,
3639,
10353,
18,
542,
12,
2704,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1841,
1435,
1216,
1185,
288,
3639,
25565,
10353,
273,
394,
25565,
5621,
3639,
10353,
18,
542,
12,
2704,
8565,
2932,
1639,
4503,
7923,
1769,
3639,
10353,
18,
542,
12,
2704,
... | ||
IWorkbenchPage wp = getWorkbench().getActiveWorkbenchWindow().getActivePage(); | IWorkbenchPage wp = plugin.getWorkbench().getActiveWorkbenchWindow().getActivePage(); | public IEditorPart doOpenEditor(IPath path, boolean activate) { if (path == null) return null; IWorkspace w = ResourcesPlugin.getWorkspace(); IFile file = w.getRoot().getFileForLocation(path); IWorkbenchPage wp = getWorkbench().getActiveWorkbenchWindow().getActivePage(); try { if (file != null && file.exists()) { // File is inside the workspace return wp.openEditor(file, null, activate); } else { IStorage storage = new FileStorage(path); IEditorRegistry registry = PlatformUI.getWorkbench().getEditorRegistry(); IEditorDescriptor desc = registry.getDefaultEditor(path.lastSegment()); if (desc == null) desc = registry.getDefaultEditor(); IEditorInput input = new ExternalEditorInput(storage); return wp.openEditor(input, desc.getId()); } } catch (PartInitException e) { log(IStatus.ERROR, "Unexpected error opening path " + path.toString(),e); return null; } } | 1319 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1319/a71e14de37a8973cd3053470e0eb1c1ab82f1d7e/PydevPlugin.java/buggy/org.python.pydev/src/org/python/pydev/plugin/PydevPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
6946,
1988,
741,
3678,
6946,
12,
45,
743,
589,
16,
1250,
10235,
13,
288,
202,
202,
430,
261,
803,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
45,
8241,
341,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
6946,
1988,
741,
3678,
6946,
12,
45,
743,
589,
16,
1250,
10235,
13,
288,
202,
202,
430,
261,
803,
422,
446,
13,
1082,
202,
2463,
446,
31,
202,
202,
45,
8241,
341,
273,
... |
match(input,53,FOLLOW_53_in_lhs_eval3310); | match(input,53,FOLLOW_53_in_lhs_eval3319); | public PatternDescr lhs_eval() throws RecognitionException { PatternDescr d; Token loc=null; String c = null; d = null; String text = ""; try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1182:17: ( 'eval' loc= '(' c= paren_chunk2 ')' ) // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1182:17: 'eval' loc= '(' c= paren_chunk2 ')' { match(input,53,FOLLOW_53_in_lhs_eval3310); loc=(Token)input.LT(1); match(input,23,FOLLOW_23_in_lhs_eval3314); following.push(FOLLOW_paren_chunk2_in_lhs_eval3322); c=paren_chunk2(); following.pop(); match(input,25,FOLLOW_25_in_lhs_eval3326); checkTrailingSemicolon( c, offset(loc.getLine()) ); d = new EvalDescr( c ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/d7954b0ad5c135d35db2bb329a4a335275a5b5a2/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6830,
16198,
8499,
67,
8622,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
514,
276,
273,
446,
31,
540,
202,
202,
72,
273,
446,
31,
540,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6830,
16198,
8499,
67,
8622,
1435,
1216,
9539,
288,
6647,
6830,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
514,
276,
273,
446,
31,
540,
202,
202,
72,
273,
446,
31,
540,... |
String global, boolean flat); | String global, boolean flat); | public Object newRegExp(Context cx, Scriptable scope, String source, String global, boolean flat); | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/dbefc5595ba41854ec04751abfc8db52f70a5796/RegExpProxy.java/clean/src/org/mozilla/javascript/RegExpProxy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
394,
13673,
12,
1042,
9494,
16,
22780,
2146,
16,
514,
1084,
16,
4766,
2398,
514,
2552,
16,
1250,
3569,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
394,
13673,
12,
1042,
9494,
16,
22780,
2146,
16,
514,
1084,
16,
4766,
2398,
514,
2552,
16,
1250,
3569,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
new NoViableAltException("1004:1: STRING : ( ( \'\"\' ( options {greedy=false; } : . )* \'\"\' ) | ( \'\\\'\' ( options {greedy=false; } : . )* \'\\\'\' ) );", 10, 0, input); | new NoViableAltException("998:1: STRING : ( ( \'\"\' ( options {greedy=false; } : . )* \'\"\' ) | ( \'\\\'\' ( options {greedy=false; } : . )* \'\\\'\' ) );", 10, 0, input); | 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 ; } // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005: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("1004:1: STRING : ( ( \'\"\' ( options {greedy=false; } : . )* \'\"\' ) | ( \'\\\'\' ( options {greedy=false; } : . )* \'\\\'\' ) );", 10, 0, input); throw nvae; } switch (alt10) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005:17: ( '"' ( options {greedy=false; } : . )* '"' ) { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005:17: ( '"' ( options {greedy=false; } : . )* '"' ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005:18: '"' ( options {greedy=false; } : . )* '"' { match('"'); if (failed) return ; // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005: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 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005:49: . { matchAny(); if (failed) return ; } break; default : break loop8; } } while (true); match('"'); if (failed) return ; } } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005:61: ( '\'' ( options {greedy=false; } : . )* '\'' ) { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005:61: ( '\'' ( options {greedy=false; } : . )* '\'' ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005:62: '\'' ( options {greedy=false; } : . )* '\'' { match('\''); if (failed) return ; // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005: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 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005: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/cdf6cb875caeaced53629d36cdc1a31cdc22d9ca/RuleParserLexer.java/clean/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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
r = (Report)v.firstElement(); r.indent(3); vDesc.addElement(r); | if(v.size() > 0) { r = (Report)v.firstElement(); r.indent(3); vDesc.addElement(r); } | public Vector ejectEntity(Entity entity, boolean autoEject) { Vector vDesc = new Vector(); Report r; // An entity can only eject it's crew once. if (entity.getCrew().isEjected()) return vDesc; // Mek pilots may get hurt during ejection, // and run around the board afterwards. if (entity instanceof Mech) { PilotingRollData rollTarget = new PilotingRollData(entity.getId(), entity.getCrew().getPiloting(), "ejecting"); if (entity.isProne()) { rollTarget.addModifier(5, "Mech is prone"); } if (entity.getCrew().isUnconscious()) { rollTarget.addModifier(3, "pilot unconscious"); } if (autoEject) { rollTarget.addModifier(1, "automatic ejection"); } if (entity.getInternal(Mech.LOC_HEAD) < 3) { rollTarget.addModifier(Math.min(3 - entity.getInternal(Mech.LOC_HEAD),2), "Head Internal Structure Damage"); } int facing = entity.getFacing(); Coords targetCoords = entity.getPosition().translated((facing + 3)%6); IHex targetHex = game.getBoard().getHex(targetCoords); if (targetHex != null) { if (targetHex.terrainLevel(Terrains.WATER) > 0 && !(targetHex.containsTerrain(Terrains.ICE))) { rollTarget.addModifier(-1, "landing in water"); } else if (targetHex.containsTerrain(Terrains.ROUGH)) { rollTarget.addModifier(0, "landing in rough"); } else if (targetHex.containsTerrain(Terrains.RUBBLE)) { rollTarget.addModifier(0, "landing in rubble"); } else if (targetHex.terrainLevel(Terrains.WOODS) == 1) { rollTarget.addModifier(2, "landing in light woods"); } else if (targetHex.terrainLevel(Terrains.WOODS) == 2) { rollTarget.addModifier(3, "landing in heavy woods"); } else if (targetHex.terrainLevel(Terrains.WOODS) == 3) { rollTarget.addModifier(4, "landing in ultra heavy woods"); } else if (targetHex.terrainLevel(Terrains.JUNGLE) == 1) { rollTarget.addModifier(3, "landing in light jungle"); } else if (targetHex.terrainLevel(Terrains.JUNGLE) == 2) { rollTarget.addModifier(5, "landing in heavy jungle"); } else if (targetHex.terrainLevel(Terrains.JUNGLE) == 3) { rollTarget.addModifier(7, "landing in ultra heavy jungle"); } else if (targetHex.terrainLevel(Terrains.BLDG_ELEV) > 0) { rollTarget.addModifier(targetHex.terrainLevel(Terrains.BLDG_ELEV), "landing in a building"); } else rollTarget.addModifier(-2, "landing in clear terrain"); } else { rollTarget.addModifier(-2, "landing off the board"); } if (autoEject) { r = new Report(6395); r.subject = entity.getId(); r.addDesc(entity); r.indent(2); r.newlines = 0; vDesc.addElement(r); } // okay, print the info r = new Report(2180); r.subject = entity.getId(); r.addDesc(entity); r.add(rollTarget.getLastPlainDesc(), true); r.indent(3); vDesc.addElement(r); // roll final int diceRoll = Compute.d6(2); r = new Report(2190); r.subject = entity.getId(); r.add(rollTarget.getValueAsString()); r.add(rollTarget.getDesc()); r.add(diceRoll); r.indent(4); r.newlines = 0; // create the MechWarrior in any case, for campaign tracking MechWarrior pilot = new MechWarrior(entity); pilot.setDeployed(true); pilot.setId(getFreeEntityId()); game.addEntity(pilot.getId(), pilot); send(createAddEntityPacket(pilot.getId())); // make him not get a move this turn pilot.setDone(true); if (diceRoll < rollTarget.getValue()) { r.choose(false); vDesc.addElement(r); Report.addNewline(vDesc); Vector v = damageCrew(pilot, 1); r = (Report)v.firstElement(); r.indent(3); vDesc.addElement(r); } else { r.choose(true); vDesc.addElement(r); } if (entity.getCrew().isDoomed()) { vDesc.addAll( destroyEntity(pilot, "deadly ejection", false, false)); } else { // Add the pilot as an infantry unit on the battlefield. if (game.getBoard().contains(targetCoords)) { pilot.setPosition(targetCoords);/* Can pilots eject into water??? ASSUMPTION : They can (because they get a -1 mod to the PSR. // Did the pilot land in water? if ( game.getBoard().getHex( targetCoords).levelOf ( Terrain.WATER ) > 0 ) { //report missing desc.append("and the pilot ejects, but lands in water!!!\n"); //report missing desc.append(destroyEntity( pilot, "a watery grave", false )); } else { //report missing desc.append("and the pilot ejects safely!\n"); }*/ //report safe ejection r = new Report(6400); r.subject = entity.getId(); r.indent(5); vDesc.addElement(r); if (game.getOptions().booleanOption("vacuum")) { //ended up in a vacuum r = new Report(6405); r.subject = entity.getId(); r.indent(3); vDesc.addElement(r); vDesc.addAll( destroyEntity(pilot, "explosive decompression", false, false)); } // Update the entity this.entityUpdate(pilot.getId()); // check if the pilot lands in a minefield doEntityDisplacementMinefieldCheck( pilot, entity.getPosition(), targetCoords ); } else { //ejects safely r = new Report(6410); r.subject = entity.getId(); r.indent(3); vDesc.addElement(r); if (game.getOptions().booleanOption("vacuum")) { //landed in vacuum r = new Report(6405); r.subject = entity.getId(); r.indent(3); vDesc.addElement(r); vDesc.addAll( destroyEntity(pilot, "explosive decompression", false, false)); } else { game.removeEntity( pilot.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT ); send(createRemoveEntityPacket(pilot.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT) ); } } if (game.getOptions().booleanOption("ejected_pilots_flee")) { game.removeEntity(pilot.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT); send(createRemoveEntityPacket(pilot.getId(), IEntityRemovalConditions.REMOVE_IN_RETREAT)); } } // Pilot safely ejects. } // End entity-is-Mek // Mark the entity's crew as "ejected". entity.getCrew().setEjected( true ); vDesc.addAll( destroyEntity(entity, "ejection", true, true)); // only remove the unit that ejected in the movement phase if (game.getPhase() == IGame.PHASE_MOVEMENT) { game.removeEntity( entity.getId(), IEntityRemovalConditions.REMOVE_EJECTED ); send(createRemoveEntityPacket(entity.getId(), IEntityRemovalConditions.REMOVE_EJECTED)); } return vDesc; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/4497b901b4d736795ea83320920c33afc652fee6/Server.java/clean/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5589,
425,
937,
1943,
12,
1943,
1522,
16,
1250,
3656,
41,
937,
13,
288,
3639,
5589,
331,
4217,
273,
394,
5589,
5621,
3639,
8706,
436,
31,
3639,
368,
1922,
1522,
848,
1338,
425,
93... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5589,
425,
937,
1943,
12,
1943,
1522,
16,
1250,
3656,
41,
937,
13,
288,
3639,
5589,
331,
4217,
273,
394,
5589,
5621,
3639,
8706,
436,
31,
3639,
368,
1922,
1522,
848,
1338,
425,
93... |
synchronized void startResultSet(final SQLWarningChain wChain) { | synchronized void startResultSet(final SQLWarningChain wChain, final TdsStatement stmt) { | synchronized void startResultSet(final SQLWarningChain wChain) { try { while (!isResultRow() && !isEndOfResults()) { final PacketResult res = processSubPacket(); if (res instanceof PacketMsgResult) { wChain.addOrReturn((PacketMsgResult) res); } } } catch (java.io.IOException e) { wChain.addException(new SQLException("Network problem. " + e.getMessage())); } catch (net.sourceforge.jtds.jdbc.TdsUnknownPacketSubType e) { wChain.addException(new SQLException("Unknown response. " + e.getMessage())); } catch (net.sourceforge.jtds.jdbc.TdsException e) { wChain.addException(new SQLException(e.toString())); } catch (SQLException e) { wChain.addException(e); } } | 439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/9db5c1e6691a6fe3d8b463f25975f411ab0e317c/Tds.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
787,
13198,
12,
6385,
3063,
6210,
3893,
341,
3893,
16,
727,
399,
2377,
3406,
3480,
13,
288,
3639,
775,
288,
5411,
1323,
16051,
291,
1253,
1999,
1435,
597,
401,
291,
23358,
3447... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
918,
787,
13198,
12,
6385,
3063,
6210,
3893,
341,
3893,
16,
727,
399,
2377,
3406,
3480,
13,
288,
3639,
775,
288,
5411,
1323,
16051,
291,
1253,
1999,
1435,
597,
401,
291,
23358,
3447... |
protected Destination createDestination(ActiveMQDestination destination) throws Throwable { | protected Destination createDestination(ConnectionContext context, ActiveMQDestination destination) throws Throwable { | protected Destination createDestination(ActiveMQDestination destination) throws Throwable { final ActiveMQTempDestination tempDest = (ActiveMQTempDestination) destination; return new Topic(destination, null, memoryManager, destinationStatistics, taskRunnerFactory) { public void addSubscription(ConnectionContext context,Subscription sub) throws Throwable { // Only consumers on the same connection can consume from // the temporary destination if( !tempDest.getConnectionId().equals( sub.getConsumerInfo().getConsumerId().getConnectionId() ) ) { throw new JMSException("Cannot subscribe to remote temporary destination: "+tempDest); } super.addSubscription(context, sub); }; }; } | 11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/0f502fae3d40a2b7d928c950e77c183405c90f03/TempTopicRegion.java/clean/activemq-core/src/main/java/org/apache/activemq/broker/region/TempTopicRegion.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
10691,
752,
5683,
12,
1952,
1042,
819,
16,
8857,
9682,
5683,
2929,
13,
1216,
4206,
288,
3639,
727,
8857,
9682,
7185,
5683,
1906,
9378,
273,
261,
3896,
9682,
7185,
5683,
13,
2929,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10691,
752,
5683,
12,
1952,
1042,
819,
16,
8857,
9682,
5683,
2929,
13,
1216,
4206,
288,
3639,
727,
8857,
9682,
7185,
5683,
1906,
9378,
273,
261,
3896,
9682,
7185,
5683,
13,
2929,
31... |
if(!(obj instanceof Sequential)) return false; for(ISeq s = seq(), ms = ((IPersistentCollection)obj).seq();s!=null;s = s.rest(), ms = ms.rest()) { if(ms == null || !RT.equal(s.first(),ms.first())) | if(!(obj instanceof Sequential)) | public boolean equals(Object obj) { if(!(obj instanceof Sequential)) return false; for(ISeq s = seq(), ms = ((IPersistentCollection)obj).seq();s!=null;s = s.rest(), ms = ms.rest()) { if(ms == null || !RT.equal(s.first(),ms.first())) return false; } return true;} | 48838 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48838/be12a746746c53c1f00758df7daa1fa5edc03935/ASeq.java/buggy/src/jvm/clojure/lang/ASeq.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
1606,
12,
921,
1081,
13,
288,
565,
309,
12,
5,
12,
2603,
1276,
3265,
13628,
3719,
3639,
327,
629,
31,
565,
364,
12,
45,
6926,
272,
273,
3833,
9334,
4086,
273,
14015,
2579,
6572,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
1606,
12,
921,
1081,
13,
288,
565,
309,
12,
5,
12,
2603,
1276,
3265,
13628,
3719,
3639,
327,
629,
31,
565,
364,
12,
45,
6926,
272,
273,
3833,
9334,
4086,
273,
14015,
2579,
6572,
... |
for (int i = 0; i < messageListeners.size(); i++) | listeners = new ArrayList(messageListeners).iterator(); } while (listeners.hasNext()) { MessageListener listener = (MessageListener) listeners.next(); if (evt instanceof MessageDeliveredEvent) | private void fireMessageEvent(EventObject evt) { synchronized(messageListeners) { for (int i = 0; i < messageListeners.size(); i++) { MessageListener l = (MessageListener)messageListeners.get(i); if (evt instanceof MessageDeliveredEvent ) { l.messageDelivered((MessageDeliveredEvent)evt); } else if (evt instanceof MessageReceivedEvent) { l.messageReceived((MessageReceivedEvent) evt); } else if (evt instanceof MessageDeliveryFailedEvent) { l.messageDeliveryFailed((MessageDeliveryFailedEvent) evt); } } } } | 27035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27035/4b7af66795876f56cf66335081d9d374016ece8d/OperationSetBasicInstantMessagingJabberImpl.java/buggy/src/net/java/sip/communicator/impl/protocol/jabber/OperationSetBasicInstantMessagingJabberImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4452,
1079,
1133,
12,
1133,
921,
6324,
13,
565,
288,
3639,
3852,
12,
2150,
5583,
13,
3639,
288,
5411,
4679,
273,
394,
2407,
12,
2150,
5583,
2934,
9838,
5621,
289,
225,
1323,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4452,
1079,
1133,
12,
1133,
921,
6324,
13,
565,
288,
3639,
3852,
12,
2150,
5583,
13,
3639,
288,
5411,
4679,
273,
394,
2407,
12,
2150,
5583,
2934,
9838,
5621,
289,
225,
1323,
... |
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { | private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); if (unscaledValue == null) { throw new StreamCorruptedException("null unscaled value"); } } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/b9a5b853972008d1ab118808770a7ecdcbbe33cf/BigDecimal.java/buggy/modules/math/src/main/java/java/math/BigDecimal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
17362,
12,
921,
4348,
316,
13,
1216,
1860,
16,
5411,
10403,
288,
3639,
316,
18,
1886,
1994,
921,
5621,
3639,
309,
261,
318,
20665,
620,
422,
446,
13,
288,
5411,
604,
394,
396... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
3238,
918,
17362,
12,
921,
4348,
316,
13,
1216,
1860,
16,
5411,
10403,
288,
3639,
316,
18,
1886,
1994,
921,
5621,
3639,
309,
261,
318,
20665,
620,
422,
446,
13,
288,
5411,
604,
394,
396... |
j.pv.println(node); | j.println(node); | void processEquation(Node node) { if(node==null) return; try { System.out.print("fun:\t\t"); j.pv.println(node); MatrixNodeI matEqn = j.dec.preprocess(node,j); j.println(matEqn); Object res = j.evaluate(matEqn); System.out.println("Res: "+res); System.out.println("Variables"); j.getVarTab().print(j.pv); } catch(ParseException e1) { System.out.println("Parse Error: "+e1.getMessage()); } catch(IllegalArgumentException e2) { System.out.println(e2.getMessage()); } catch(Exception e3) { System.out.println("Exception "+e3.getMessage()); e3.printStackTrace(); } } | 54194 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54194/4f303d30b1e9325b8e6560f423a82b2e3baee2a7/MatrixConsole.java/clean/src/org/lsmp/djepExamples/MatrixConsole.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1207,
13142,
367,
12,
907,
756,
13,
202,
95,
202,
202,
430,
12,
2159,
631,
2011,
13,
327,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
1188,
2932,
12125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
1207,
13142,
367,
12,
907,
756,
13,
202,
95,
202,
202,
430,
12,
2159,
631,
2011,
13,
327,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
3163,
18,
659,
18,
1188,
2932,
12125,
... |
ToHitData toHit = new ToHitData(0, ""); | ToHitData toHit = new ToHitData(); | public static ToHitData getAttackerTerrainModifier(Game game, int entityId) { final Hex hex = game.board.getHex(game.getEntity(entityId).getPosition()); ToHitData toHit = new ToHitData(0, ""); if (hex.getTerrainType() == Terrain.WATER) { toHit.addModifier(1, "attacker in water"); } return toHit; } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/64222a6a404ed0e12732a5e18cf98bb7dfb4c12c/Compute.java/buggy/megamek/src/megamek/common/Compute.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2974,
13616,
751,
336,
3075,
484,
264,
56,
264,
7596,
9829,
12,
12496,
7920,
16,
509,
15052,
13,
288,
3639,
727,
15734,
3827,
273,
7920,
18,
3752,
18,
588,
7037,
12,
13957,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2974,
13616,
751,
336,
3075,
484,
264,
56,
264,
7596,
9829,
12,
12496,
7920,
16,
509,
15052,
13,
288,
3639,
727,
15734,
3827,
273,
7920,
18,
3752,
18,
588,
7037,
12,
13957,
1... |
initSystem(); | initGL(); | public void setDisplayMode(int width, int height, boolean fullscreen) throws SlickException { try { targetDisplayMode = null; if (fullscreen) { DisplayMode[] modes = Display.getAvailableDisplayModes(); for (int i=0;i<modes.length;i++) { DisplayMode current = modes[i]; if ((current.getWidth() == width) && (current.getHeight() == height)) { if ((targetDisplayMode == null) || (current.getFrequency() == originalDisplayMode.getFrequency())) { targetDisplayMode = current; } } } } else { targetDisplayMode = new DisplayMode(width,height); } if (targetDisplayMode == null) { throw new SlickException("Failed to find value mode: "+width+"x"+height+" fs="+fullscreen); } this.width = width; this.height = height; Display.setDisplayMode(targetDisplayMode); Display.setFullscreen(fullscreen); if (Display.isCreated()) { initSystem(); enterOrtho(); } } catch (LWJGLException e) { throw new SlickException("Unable to setup mode "+width+"x"+height+" fullscreen="+fullscreen, e); } } | 47738 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47738/79f4f44c266d00b623979c94a87b253114b6f52a/AppGameContainer.java/clean/src/org/newdawn/slick/AppGameContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
23512,
2309,
12,
474,
1835,
16,
509,
2072,
16,
1250,
1983,
9252,
13,
1216,
9708,
1200,
503,
288,
202,
202,
698,
288,
1082,
202,
3299,
4236,
2309,
273,
446,
31,
1082,
202,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23512,
2309,
12,
474,
1835,
16,
509,
2072,
16,
1250,
1983,
9252,
13,
1216,
9708,
1200,
503,
288,
202,
202,
698,
288,
1082,
202,
3299,
4236,
2309,
273,
446,
31,
1082,
202,... |
WorkbenchHelpSystem.getInstance().setHelp(control, IBugzillaConstants.SEARCH_PAGE_CONTEXT); | WorkbenchHelpSystem.getInstance().setHelp(control, BugzillaUiPlugin.SEARCH_PAGE_CONTEXT); | public void createControl(Composite parent) { readConfiguration(); Composite control = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(2, false); layout.marginHeight = 0; layout.marginWidth = 0; control.setLayout(layout); GridData gd = new GridData(GridData.FILL_BOTH); control.setLayoutData(gd); if (scontainer == null) { // Not presenting in search pane so add parent's content super.createControl(control); } else { // if (repository == null) { // search pane so add repository selection createRepositoryGroup(control); } createSearchGroup(control); createOptionsGroup(control); createEmail(control); createLastDays(control); // createSaveQuery(control); // createMaxHits(control); input = new SavedQueryFile(BugzillaPlugin.getDefault().getStateLocation().toString(), "/queries"); // createUpdate(control);// if (originalQuery != null) {// try {// updateDefaults(originalQuery.getQueryUrl(), String.valueOf(originalQuery.getMaxHits()));// } catch (UnsupportedEncodingException e) {// // ignore// }// } setControl(control); WorkbenchHelpSystem.getInstance().setHelp(control, IBugzillaConstants.SEARCH_PAGE_CONTEXT); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/bd9ab3a29c773cac8e20028f6d24e407b568a2c2/BugzillaSearchPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
896,
1750,
5621,
202,
202,
9400,
3325,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
3511,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
3367,
12,
9400,
982,
13,
288,
202,
202,
896,
1750,
5621,
202,
202,
9400,
3325,
273,
394,
14728,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
6313,
3744,
3511,
... |
super(name); } | super(name); } | public DeprecatedUIPreferences(String name) { super(name); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7946b6460d44217ceadf6c1b4e0462e195d53d80/DeprecatedUIPreferences.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dialogs/DeprecatedUIPreferences.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9336,
5370,
12377,
12,
780,
508,
13,
288,
3639,
2240,
12,
529,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9336,
5370,
12377,
12,
780,
508,
13,
288,
3639,
2240,
12,
529,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
InterpreterData(Object securityDomain, int languageVersion) | InterpreterData(SecurityController securityController, Object securityDomain, int languageVersion, String sourceFile, String encodedSource) | InterpreterData(Object securityDomain, int languageVersion) { itsICodeTop = INITIAL_MAX_ICODE_LENGTH; itsICode = new byte[itsICodeTop]; itsStringTable = new String[INITIAL_STRINGTABLE_SIZE]; this.securityDomain = securityDomain; this.languageVersion = languageVersion; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/58db1d9fd563d817a093133d18a6d0d8ef61f07e/InterpreterData.java/buggy/js/rhino/src/org/mozilla/javascript/InterpreterData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
5294,
11599,
751,
12,
4368,
2933,
4373,
2933,
16,
1033,
4373,
3748,
16,
509,
2653,
1444,
16,
514,
16338,
16,
514,
3749,
1830,
13,
565,
288,
3639,
2097,
45,
1085,
3401,
273,
28226,
67,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5294,
11599,
751,
12,
4368,
2933,
4373,
2933,
16,
1033,
4373,
3748,
16,
509,
2653,
1444,
16,
514,
16338,
16,
514,
3749,
1830,
13,
565,
288,
3639,
2097,
45,
1085,
3401,
273,
28226,
67,
6... |
Closure body = null; | Object body = null; | public Object invokeMethod(final String methodName, Object args) { try { return super.invokeMethod(methodName, args); } catch(MissingMethodException mme) { if(LOG.isDebugEnabled()) { LOG.debug("No method ["+methodName+"] found invoking as tag"); } Map attrs = null; Closure body = null; // retrieve tag lib and writer from binding Binding binding = getBinding(); final Writer out = (Writer)binding.getVariable(GroovyPage.OUT); GroovyObject tagLib = (GroovyObject)binding.getVariable(GrailsApplicationAttributes.TAG_LIB); // get attributes and body closure if (args instanceof Object[]) { Object[] argArray = (Object[])args; if(argArray.length > 0 && argArray[0] instanceof Map) attrs = (Map)argArray[0]; if(argArray.length > 1) { Object closureArg = argArray[1]; if(closureArg instanceof Closure) { body = (Closure)closureArg; } } } else if(args instanceof Map) { attrs = (Map)args; } if(attrs == null) { attrs = new HashMap(); } // in a direct invocation the body is expected to return a string // invoke the body closure and create a new closure that outputs // to the response writer on each body invokation final Closure body1 = body; Closure actualBody = new Closure(this) { public Object doCall(Object obj) { return call(new Object[] {obj} ); } public Object doCall() { return call(new Object[0]); } public Object doCall(Object[] args) { return call(args); } public Object call(Object[] args) { if(body1 != null) { Object bodyResponse = body1.call(); if(bodyResponse instanceof String) { try { out.write((String)bodyResponse); } catch (IOException e) { throw new GrailsTagException("I/O error invoking tag library closure ["+methodName+"] as method"); } } } return null; } }; if(tagLib != null) { tagLib.setProperty( TagLibDynamicMethods.OUT_PROPERTY, out ); Object tagLibProp; try { tagLibProp = tagLib.getProperty(methodName); if(tagLibProp instanceof Closure) { Closure tag = (Closure)tagLibProp; if(tag.getParameterTypes().length == 1) { tag.call( new Object[]{ attrs }); if(actualBody != null) { actualBody.call(); } return null; } if(tag.getParameterTypes().length == 2) { tag.call( new Object[] { attrs, actualBody }); return null; } }else { throw new GrailsTagException("Tag ["+methodName+"] does not exist in tag library ["+tagLib.getClass().getName()+"]"); } } catch (MissingPropertyException mpe) { if(args instanceof Object[]) throw new MissingMethodException(methodName,GroovyPage.class, (Object[])args); else throw new MissingMethodException(methodName,GroovyPage.class, new Object[]{ args }); } } throw new MissingMethodException(methodName,GroovyPage.class, new Object[]{ args }); } } | 51763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51763/03eb7c0b6e4194b14465191a5045e08915a4af07/GroovyPage.java/clean/src/web/org/codehaus/groovy/grails/web/pages/GroovyPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
27632,
12,
6385,
514,
4918,
16,
1033,
833,
13,
288,
3639,
775,
288,
5411,
327,
2240,
18,
14407,
1305,
12,
2039,
461,
16,
833,
1769,
3639,
289,
3639,
1044,
12,
4841,
14513,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
27632,
12,
6385,
514,
4918,
16,
1033,
833,
13,
288,
3639,
775,
288,
5411,
327,
2240,
18,
14407,
1305,
12,
2039,
461,
16,
833,
1769,
3639,
289,
3639,
1044,
12,
4841,
14513,
3... |
IPath destinationLocation = destination.getLocation(); | URI destinationLocation = destination.getLocationURI(); | public String validateDestination(IContainer destination, IResource[] sourceResources) { if (!isAccessible(destination)) { return IDEWorkbenchMessages.CopyFilesAndFoldersOperation_destinationAccessError; } String destinationMessage = validateDestinationLocation(destination); if (destinationMessage != null) { return destinationMessage; } IContainer firstParent = null; IPath destinationLocation = destination.getLocation(); for (int i = 0; i < sourceResources.length; i++) { IResource sourceResource = sourceResources[i]; if (firstParent == null) { firstParent = sourceResource.getParent(); } else if (firstParent.equals(sourceResource.getParent()) == false) { // Resources must have common parent. Fixes bug 33398. return IDEWorkbenchMessages.CopyFilesAndFoldersOperation_parentNotEqual; } IPath sourceLocation = sourceResource.getLocation(); if (sourceLocation == null) { if (sourceResource.isLinked()) { // Don't allow copying linked resources with undefined path // variables. See bug 28754. return NLS .bind( IDEWorkbenchMessages.CopyFilesAndFoldersOperation_missingPathVariable, sourceResource.getName()); } return NLS .bind( IDEWorkbenchMessages.CopyFilesAndFoldersOperation_resourceDeleted, sourceResource.getName()); } if (sourceLocation.equals(destinationLocation)) { return NLS .bind( IDEWorkbenchMessages.CopyFilesAndFoldersOperation_sameSourceAndDest, sourceResource.getName()); } // is the source a parent of the destination? if (sourceLocation.isPrefixOf(destinationLocation)) { return IDEWorkbenchMessages.CopyFilesAndFoldersOperation_destinationDescendentError; } String linkedResourceMessage = validateLinkedResource(destination, sourceResource); if (linkedResourceMessage != null) { return linkedResourceMessage; } } return null; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c3030d76123b051b1a39f59363c9a1acc57e3d1c/CopyFilesAndFoldersOperation.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1954,
5683,
12,
45,
2170,
2929,
16,
1082,
202,
45,
1420,
8526,
1084,
3805,
13,
288,
202,
202,
430,
16051,
291,
10451,
12,
10590,
3719,
288,
1082,
202,
2463,
1599,
41,
242... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1954,
5683,
12,
45,
2170,
2929,
16,
1082,
202,
45,
1420,
8526,
1084,
3805,
13,
288,
202,
202,
430,
16051,
291,
10451,
12,
10590,
3719,
288,
1082,
202,
2463,
1599,
41,
242... |
return (Detector) constructor.newInstance(new Object[] {bugReporter}); | return (Detector) constructor.newInstance(new Object[]{bugReporter}); | public Detector create(BugReporter bugReporter) { try { Constructor constructor = detectorClass.getConstructor(constructorArgTypes); return (Detector) constructor.newInstance(new Object[] {bugReporter}); } catch (Exception e) { throw new RuntimeException("Could not instantiate Detector", e); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/DetectorFactory.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/DetectorFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
22198,
752,
12,
19865,
13289,
7934,
13289,
13,
288,
202,
202,
698,
288,
1082,
202,
6293,
3885,
273,
13826,
797,
18,
588,
6293,
12,
12316,
4117,
2016,
1769,
1082,
202,
2463,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22198,
752,
12,
19865,
13289,
7934,
13289,
13,
288,
202,
202,
698,
288,
1082,
202,
6293,
3885,
273,
13826,
797,
18,
588,
6293,
12,
12316,
4117,
2016,
1769,
1082,
202,
2463,
261,... |
" ^^\n" + | " ^^^\n" + | public void test101() { this.runNegativeTest( new String[] { "X.java", "public class X {\n" + " Character c0 = \'a\';\n" + " public static void main(String argv[]) {\n" + " Character c1;\n" + " c1 = \'b\';\n" + "\n" + " Character c2 = \'c\';\n" + " Character[] c3 = { \'d\' };\n" + " \n" + " }\n" + "}\n" }, "----------\n" + "1. ERROR in X.java (at line 2)\n" + " Character c0 = \'a\';\n" + " ^^\n" + "Type mismatch: cannot convert from char to Character\n" + "----------\n" + "2. ERROR in X.java (at line 5)\n" + " c1 = \'b\';\n" + " ^^^\n" + "Type mismatch: cannot convert from char to Character\n" + "----------\n" + "3. ERROR in X.java (at line 7)\n" + " Character c2 = \'c\';\n" + " ^^\n" + "Type mismatch: cannot convert from char to Character\n" + "----------\n" + "4. ERROR in X.java (at line 8)\n" + " Character[] c3 = { \'d\' };\n" + " ^^^\n" + "Type mismatch: cannot convert from char to Character\n" + "----------\n" );} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/e60ca02f81acc7600a43413bd7fb7c0779ae6a52/Compliance_1_4.java/clean/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_4.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
15168,
1435,
288,
202,
2211,
18,
2681,
14959,
4709,
12,
202,
202,
2704,
514,
8526,
288,
1082,
202,
6,
60,
18,
6290,
3113,
1082,
202,
6,
482,
667,
1139,
18890,
82,
6,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
15168,
1435,
288,
202,
2211,
18,
2681,
14959,
4709,
12,
202,
202,
2704,
514,
8526,
288,
1082,
202,
6,
60,
18,
6290,
3113,
1082,
202,
6,
482,
667,
1139,
18890,
82,
6,
397,
... |
if (!(addedNoEmailInIdAccounts.size() == 0 && addedEmailInIdAccounts.size() == 0) && (notAddedNoEmailInIdAccounts != null || notAddedEmailInIdAccounts != null)) | if (addedParticipantEIds.size() != 0 && (notAddedNoEmailInIdAccounts != null || notAddedEmailInIdAccounts != null)) | public void doAdd_participant(RunData data) { SessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ()); String siteTitle = getStateSite(state).getTitle(); Hashtable selectedRoles = (Hashtable) state.getAttribute(STATE_SELECTED_PARTICIPANT_ROLES); int i; //accept noEmailInIdAccounts and/or emailInIdAccount account names String emailInIdAccountName = ServerConfigurationService.getString("emailInIdAccountName", ""); String noEmailInIdAccounts = null; String emailInIdAccounts = null; if (state.getAttribute("noEmailInIdAccountValue") != null) { noEmailInIdAccounts = (String) state.getAttribute("noEmailInIdAccountValue"); } if (state.getAttribute("emailInIdAccountValue") != null) { emailInIdAccounts = (String) state.getAttribute("emailInIdAccountValue"); } boolean notify = false; if (state.getAttribute("form_selectedNotify") != null) { notify = ((Boolean) state.getAttribute("form_selectedNotify")).booleanValue(); } boolean same_role = ((Boolean) state.getAttribute("form_same_role")).booleanValue(); String pw = null; String notAddedNoEmailInIdAccounts = null; String notAddedEmailInIdAccounts = null; Vector addedNoEmailInIdAccounts = new Vector(); Hashtable eIdRoles = new Hashtable(); if (noEmailInIdAccounts != null) { // adding noEmailInIdAccounts String[] noEmailInIdAccountArray = noEmailInIdAccounts.replaceAll(",","\r\n").split("\r\n"); for (i = 0; i < noEmailInIdAccountArray.length; i++) { String noEmailInIdAccount = StringUtil.trimToNull(noEmailInIdAccountArray[i].replaceAll("[\t\r\n]","")); if(noEmailInIdAccount != null) { // get role String role = null; if (same_role) { // if all added participants have a same role role = (String) state.getAttribute("form_selectedRole"); } else { // if all added participants have different role role = (String) selectedRoles.get(noEmailInIdAccount); } // update the hashtable eIdRoles.put(noEmailInIdAccount, role); } } // batch add and updates the successful added list addedNoEmailInIdAccounts.addAll(addUsersRealm(state, eIdRoles, notify, false)); for (Iterator iEIds = eIdRoles.keySet().iterator(); iEIds.hasNext();) { String iEId = (String) iEIds.next(); if (!addedNoEmailInIdAccounts.contains(iEId)) { // not added eids notAddedNoEmailInIdAccounts.concat(iEId + "\n"); } } } // noEmailInIdAccounts // for those email in EId accounts eIdRoles.clear(); Vector addedEmailInIdAccounts = new Vector(); if (emailInIdAccounts != null) { String[] emailInIdAccountArray = emailInIdAccounts.split("\r\n"); for (i = 0; i < emailInIdAccountArray.length; i++) { String emailInIdAccount = StringUtil.trimToNull(emailInIdAccountArray[i].replaceAll("[ \t\r\n]","")); // remove the trailing dots and empty space while (emailInIdAccount.endsWith(".") || emailInIdAccount.endsWith(" ")) { emailInIdAccount = emailInIdAccount.substring(0, emailInIdAccount.length() -1); } if(emailInIdAccount != null) { try { UserDirectoryService.getUserByEid(emailInIdAccount); } catch (UserNotDefinedException e) { //if there is no such user yet, add the user try { UserEdit uEdit = UserDirectoryService.addUser(null, emailInIdAccount); //set email address uEdit.setEmail(emailInIdAccount); // set the guest user type uEdit.setType("guest"); // set password to a positive random number Random generator = new Random(System.currentTimeMillis()); Integer num = new Integer(generator.nextInt(Integer.MAX_VALUE)); if (num.intValue() < 0) num = new Integer(num.intValue() *-1); pw = num.toString(); uEdit.setPassword(pw); // and save UserDirectoryService.commitEdit(uEdit); boolean notifyNewUserEmail = (ServerConfigurationService.getString("notifyNewUserEmail", Boolean.TRUE.toString())).equalsIgnoreCase(Boolean.TRUE.toString()); if (notifyNewUserEmail) { notifyNewUserEmail(uEdit.getEid(), uEdit.getEmail(), pw, siteTitle); } } catch(UserIdInvalidException ee) { addAlert(state, emailInIdAccountName + " id " + emailInIdAccount + " "+rb.getString("java.isinval") ); M_log.warn("doAdd_participant: UserDirectoryService addUser exception " + e.getMessage()); } catch(UserAlreadyDefinedException ee) { addAlert(state, "The " + emailInIdAccountName + " " + emailInIdAccount + " " + rb.getString("java.beenused")); M_log.warn("doAdd_participant: UserDirectoryService addUser exception " + e.getMessage()); } catch(UserPermissionException ee) { addAlert(state, rb.getString("java.haveadd")+ " " + emailInIdAccount); M_log.warn("doAdd_participant: UserDirectoryService addUser exception " + e.getMessage()); } } // add role if user exists if (state.getAttribute(STATE_MESSAGE) == null) { // get role String role = null; if (same_role) { // if all added participants have a same role role = (String) state.getAttribute("form_selectedRole"); } else { // if all added participants have different role role = (String) selectedRoles.get(emailInIdAccount); } eIdRoles.put(emailInIdAccount, role); } // if } // if } // for addedEmailInIdAccounts.addAll(addUsersRealm(state, eIdRoles, notify, true)); // update the not added user list for (Iterator iEIds = eIdRoles.keySet().iterator(); iEIds.hasNext();) { String iEId = (String) iEIds.next(); if (!addedEmailInIdAccounts.contains(iEId)) { notAddedEmailInIdAccounts = notAddedEmailInIdAccounts.concat(iEId + "\n"); } } } // emailInIdAccounts if (!(addedNoEmailInIdAccounts.size() == 0 && addedEmailInIdAccounts.size() == 0) && (notAddedNoEmailInIdAccounts != null || notAddedEmailInIdAccounts != null)) { // at lease one noEmailInIdAccount account or a emailInIdAccount account added addAlert(state, rb.getString("java.allusers")); } if (notAddedNoEmailInIdAccounts == null && notAddedEmailInIdAccounts == null) { // all account has been added successfully removeAddParticipantContext(state); } else { state.setAttribute("noEmailInIdAccountValue", notAddedNoEmailInIdAccounts); state.setAttribute("emailInIdAccountValue", notAddedEmailInIdAccounts); } if (state.getAttribute(STATE_MESSAGE) != null) { state.setAttribute(STATE_TEMPLATE_INDEX, "22"); } else { state.setAttribute(STATE_TEMPLATE_INDEX, "12"); } return; } // doAdd_participant | 54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/4515134a233ece10214afcde62b3bcd54654760e/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
986,
67,
2680,
14265,
12,
1997,
751,
501,
13,
202,
95,
202,
202,
2157,
1119,
919,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
892,
2934,
588,
18566,
2157,
1119,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
986,
67,
2680,
14265,
12,
1997,
751,
501,
13,
202,
95,
202,
202,
2157,
1119,
919,
273,
14015,
46,
2413,
5868,
1997,
751,
13,
892,
2934,
588,
18566,
2157,
1119,
261,
... |
public void tearDown() { | public void tearDown() throws Exception { | public void tearDown() { if (testProject != null) { try { testProject.delete(true, null); } catch (CoreException e) { fail(e.toString()); } testProject = null; testFolder = null; testFile = null; } super.tearDown(); navigator = null; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/74dcdd59a7639efe020690d2407f78f16ab92af7/NavigatorTest.java/buggy/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/navigator/NavigatorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
268,
2091,
4164,
1435,
288,
202,
202,
430,
261,
3813,
4109,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
3813,
4109,
18,
3733,
12,
3767,
16,
446,
1769,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
268,
2091,
4164,
1435,
288,
202,
202,
430,
261,
3813,
4109,
480,
446,
13,
288,
1082,
202,
698,
288,
9506,
202,
3813,
4109,
18,
3733,
12,
3767,
16,
446,
1769,
1082,
202,
... |
String localName = node.getLocalName(); String prefix = node.getPrefix(); | String nodeName = node.getNodeName(); String prefix = ""; String localName = nodeName; int colon = nodeName.indexOf(':'); if (colon >= 0) { prefix = nodeName.substring(0, colon); localName = nodeName.substring(colon + 1); } Namespace ns = null; | private void buildTree(Node node, Document doc, Element current, boolean atRoot) { // Recurse through the tree switch (node.getNodeType()) { case Node.DOCUMENT_NODE: NodeList nodes = node.getChildNodes(); for (int i=0, size=nodes.getLength(); i<size; i++) { buildTree(nodes.item(i), doc, current, true); } break; case Node.ELEMENT_NODE: String localName = node.getLocalName(); String prefix = node.getPrefix(); String uri = node.getNamespaceURI(); Element element = null; Namespace ns = null; if (uri == null) { if (localName == null) { // Sometimes localName is null, if so try the tag name localName = ((org.w3c.dom.Element)node).getTagName(); } element = factory.element(localName); } else { ns = Namespace.getNamespace(prefix, uri); element = factory.element(localName, ns); } // Add attributes NamedNodeMap attributeList = node.getAttributes(); for (int i=0, size=attributeList.getLength(); i<size; i++) { Attr att = (Attr) attributeList.item(i); // Distinguish between namespace and attribute String attname = att.getName(); String attvalue = att.getValue(); // Don't add xmlns attributes, but do add them as // additional namespaces if they're different than this // element's namespace (perhaps we should also have logic // not to mark them as additional if it's been done // already, but it probably doesn't matter) if (attname.equals("xmlns")) { Namespace declaredNS = Namespace.getNamespace("", attvalue); if (!declaredNS.equals(ns)) { element.addNamespaceDeclaration(declaredNS); } } else if (attname.startsWith("xmlns:")) { String attsubname = attname.substring(6); Namespace declaredNS = Namespace.getNamespace(attsubname, attvalue); if (!declaredNS.equals(ns)) { element.addNamespaceDeclaration(declaredNS); } } else { prefix = att.getPrefix(); uri = att.getNamespaceURI(); String attLocalName = att.getLocalName(); if (attLocalName == null) { // Sometimes attLocalName is null, try attname attLocalName = attname; } Namespace attns = Namespace.getNamespace(prefix, uri); Attribute attribute = factory.attribute(attLocalName, attvalue, attns); element.setAttribute(attribute); } } if (atRoot) { // If at root, set as document root doc.setRootElement(element); } else { // else add to parent element current.addContent(element); } // Recurse on child nodes // The list should never be null nor should it ever contain // null nodes, but some DOM impls are broken NodeList children = node.getChildNodes(); if (children != null) { for (int i=0, size=children.getLength(); i<size; i++) { Node item = children.item(i); if (item != null) { buildTree(item, doc, element, false); } } } break; case Node.TEXT_NODE: String data = node.getNodeValue(); current.addContent(factory.text(data)); break; case Node.CDATA_SECTION_NODE: String cdata = node.getNodeValue(); current.addContent(factory.cdata(cdata)); break; case Node.PROCESSING_INSTRUCTION_NODE: if (atRoot) { doc.addContent( factory.processingInstruction(node.getNodeName(), node.getNodeValue())); } else { current.addContent( factory.processingInstruction(node.getNodeName(), node.getNodeValue())); } break; case Node.COMMENT_NODE: if (atRoot) { doc.addContent(factory.comment(node.getNodeValue())); } else { current.addContent(factory.comment(node.getNodeValue())); } break; case Node.ENTITY_REFERENCE_NODE: EntityRef entity = factory.entityRef(node.getNodeName()); current.addContent(entity); break; case Node.ENTITY_NODE: // ?? break; case Node.DOCUMENT_TYPE_NODE: DocumentType domDocType = (DocumentType)node; String publicID = domDocType.getPublicId(); String systemID = domDocType.getSystemId(); String internalDTD = domDocType.getInternalSubset(); DocType docType = factory.docType(domDocType.getName()); docType.setPublicID(publicID); docType.setSystemID(systemID); docType.setInternalSubset(internalDTD); doc.setDocType(docType); break; } } | 49530 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49530/c6346ad73f3919c15f9968139a8bb6da97bf755b/DOMBuilder.java/clean/core/src/java/org/jdom/input/DOMBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1361,
2471,
12,
907,
756,
16,
21821,
4319,
997,
16,
21821,
3010,
783,
16,
21821,
1250,
622,
2375,
13,
288,
3639,
368,
868,
17682,
3059,
326,
2151,
3639,
1620,
261,
2159,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
2471,
12,
907,
756,
16,
21821,
4319,
997,
16,
21821,
3010,
783,
16,
21821,
1250,
622,
2375,
13,
288,
3639,
368,
868,
17682,
3059,
326,
2151,
3639,
1620,
261,
2159,
18,
... |
throw new PSQLException("postgresql.geo.circle", s); | throw new PSQLException("postgresql.geo.circle", PSQLState.DATA_TYPE_MISMATCH, s); | public void setValue(String s) throws SQLException { PGtokenizer t = new PGtokenizer(PGtokenizer.removeAngle(s), ','); if (t.getSize() != 2) throw new PSQLException("postgresql.geo.circle", s); try { center = new PGpoint(t.getToken(0)); radius = Double.valueOf(t.getToken(1)).doubleValue(); } catch (NumberFormatException e) { throw new PSQLException("postgresql.geo.circle", e); } } | 46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/509a9cd3f922c38c19d35e81bb1427d663ba4aba/PGcircle.java/clean/src/interfaces/jdbc/org/postgresql/geometric/PGcircle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5524,
12,
780,
272,
13,
1216,
6483,
202,
95,
202,
202,
18679,
2316,
1824,
268,
273,
394,
22116,
2316,
1824,
12,
18679,
2316,
1824,
18,
4479,
8467,
12,
87,
3631,
3316,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5524,
12,
780,
272,
13,
1216,
6483,
202,
95,
202,
202,
18679,
2316,
1824,
268,
273,
394,
22116,
2316,
1824,
12,
18679,
2316,
1824,
18,
4479,
8467,
12,
87,
3631,
3316,
176... |
match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint2327); if (failed) return text; | match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint2309); if (failed) return text; | public String literal_constraint() throws RecognitionException { String text = null; Token t=null; text = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1051:4: ( ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' ) ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1051:4: ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' ) { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1051:4: ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' ) int alt39=5; switch ( input.LA(1) ) { case STRING: alt39=1; break; case INT: alt39=2; break; case FLOAT: alt39=3; break; case BOOL: alt39=4; break; case 66: alt39=5; break; default: if (backtracking>0) {failed=true; return text;} NoViableAltException nvae = new NoViableAltException("1051:4: ( ( STRING )=>t= STRING | ( INT )=>t= INT | ( FLOAT )=>t= FLOAT | ( BOOL )=>t= BOOL | t= 'null' )", 39, 0, input); throw nvae; } switch (alt39) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1051:6: ( STRING )=>t= STRING { t=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_literal_constraint2303); if (failed) return text; if ( backtracking==0 ) { text = getString( t ); } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1052:5: ( INT )=>t= INT { t=(Token)input.LT(1); match(input,INT,FOLLOW_INT_in_literal_constraint2314); if (failed) return text; if ( backtracking==0 ) { text = t.getText(); } } break; case 3 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1053:5: ( FLOAT )=>t= FLOAT { t=(Token)input.LT(1); match(input,FLOAT,FOLLOW_FLOAT_in_literal_constraint2327); if (failed) return text; if ( backtracking==0 ) { text = t.getText(); } } break; case 4 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1054:5: ( BOOL )=>t= BOOL { t=(Token)input.LT(1); match(input,BOOL,FOLLOW_BOOL_in_literal_constraint2338); if (failed) return text; if ( backtracking==0 ) { text = t.getText(); } } break; case 5 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1055:5: t= 'null' { t=(Token)input.LT(1); match(input,66,FOLLOW_66_in_literal_constraint2350); if (failed) return text; if ( backtracking==0 ) { text = null; } } break; } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/afea9f80e7c11e7b76df18f232d3b5ca5ad21e72/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
7158,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
273,
446,
31,
3639,
3155,
268,
33,
2011,
31,
1171,
202,
202,
955,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
7158,
67,
13364,
1435,
1216,
9539,
288,
6647,
514,
977,
273,
446,
31,
3639,
3155,
268,
33,
2011,
31,
1171,
202,
202,
955,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
... |
assertTrue("Insert test failed", testBuffer.toString().equals( "This is a test truebuffer")); | assertEquals("Insert test failed", "This is a test truebuffer", testBuffer.toString()); | public void test_insertIZ() { // Test for method java.lang.StringBuffer // java.lang.StringBuffer.insert(int, boolean) testBuffer.insert(15, true); assertTrue("Insert test failed", testBuffer.toString().equals( "This is a test truebuffer")); } | 54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/StringBufferTest.java/buggy/modules/luni/src/test/java/tests/api/java/lang/StringBufferTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
6387,
6867,
1435,
288,
202,
202,
759,
7766,
364,
707,
2252,
18,
4936,
18,
780,
1892,
202,
202,
759,
2252,
18,
4936,
18,
780,
1892,
18,
6387,
12,
474,
16,
1250... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
6387,
6867,
1435,
288,
202,
202,
759,
7766,
364,
707,
2252,
18,
4936,
18,
780,
1892,
202,
202,
759,
2252,
18,
4936,
18,
780,
1892,
18,
6387,
12,
474,
16,
1250... |
new ShowMasterHex(masterFrame, client.getCaretaker(), hex, lastPoint); | new ShowMasterHex(masterFrame, client, hex, lastPoint); | public void actionPerformed(ActionEvent e) { GUIMasterHex hex = getHexContainingPoint(lastPoint); if (hex != null) { // XXX Remove direct caretaker reference. new ShowMasterHex(masterFrame, client.getCaretaker(), hex, lastPoint); // Work around a Windows JDK 1.3 bug. hex.repaint(); } } | 51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/1b12d0d0c2efe018ac127d8b2ee116f3bf208471/MasterBoard.java/clean/Colossus/MasterBoard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
5411,
288,
7734,
611,
57,
3445,
2440,
7037,
3827,
273,
336,
7037,
24344,
2148,
12,
2722,
2148,
1769,
7734,
309,
261,
7118,
480,
446,
13,
7734,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2398,
1071,
918,
26100,
12,
1803,
1133,
425,
13,
5411,
288,
7734,
611,
57,
3445,
2440,
7037,
3827,
273,
336,
7037,
24344,
2148,
12,
2722,
2148,
1769,
7734,
309,
261,
7118,
480,
446,
13,
7734,
... |
return new File(ConfigManager.cacheConfigDir, cacheConfigFileName); | return new File(cacheConfigDir, cacheConfigFileName); | public File getCacheConfigFile(String cacheConfigFileName) { return new File(ConfigManager.cacheConfigDir, cacheConfigFileName); } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/9f48fcd2029e6a653737050ed28a6016be4f5dcb/ConfigManager.java/buggy/src/org/lockss/config/ConfigManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1387,
8577,
13705,
12,
780,
1247,
809,
4771,
13,
288,
565,
327,
394,
1387,
12,
2493,
809,
1621,
16,
1247,
809,
4771,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1387,
8577,
13705,
12,
780,
1247,
809,
4771,
13,
288,
565,
327,
394,
1387,
12,
2493,
809,
1621,
16,
1247,
809,
4771,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if (locals == null && code != null && code.co_varnames.length > 0) { f_fastlocals = new PyObject[code.co_varnames.length-code.xxx_npurecell]; | if (locals == null && code != null) { if ((code.co_flags&PyTableCode.CO_OPTIMIZED)!=0) { if (code.co_nlocals>0) f_fastlocals = new PyObject[code.co_nlocals-code.xxx_npurecell]; } else f_locals = new PyStringMap(); | public PyFrame(PyTableCode code, PyObject locals, PyObject globals, PyObject builtins) { super(__class__); f_code = code; f_locals = locals; f_globals = globals; f_builtins = builtins; // This needs work to be efficient with multiple interpreter states if (locals == null && code != null && code.co_varnames.length > 0) { f_fastlocals = new PyObject[code.co_varnames.length-code.xxx_npurecell]; // internal: may change } if (code != null) { // reserve space for env int env_sz = 0; if (code.co_freevars != null) env_sz += (f_nfreevars = code.co_freevars.length); if (code.co_cellvars != null) env_sz += (f_ncells = code.co_cellvars.length); if (env_sz > 0) f_env = new PyCell[env_sz]; } } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/4f31c6df01a1124d5cbe66045d6ff73f0d0aa2b8/PyFrame.java/buggy/org/python/core/PyFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4707,
3219,
12,
9413,
1388,
1085,
981,
16,
4707,
921,
8985,
16,
4707,
921,
10941,
16,
10402,
4707,
921,
6650,
2679,
13,
565,
288,
3639,
2240,
12,
972,
1106,
972,
1769,
3639,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4707,
3219,
12,
9413,
1388,
1085,
981,
16,
4707,
921,
8985,
16,
4707,
921,
10941,
16,
10402,
4707,
921,
6650,
2679,
13,
565,
288,
3639,
2240,
12,
972,
1106,
972,
1769,
3639,
284,
... |
event.setStopFurtherProcessing(stopFurtherProcessing); | RequestContext.getEvent().setStopFurtherProcessing(stopFurtherProcessing); | public void setStopFurtherProcessing(boolean stopFurtherProcessing) { event.setStopFurtherProcessing(stopFurtherProcessing); } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/2a078073c574457fa71082e7a1ec5ed077a93fa2/MuleEventContext.java/clean/src/java/org/mule/impl/MuleEventContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
4947,
42,
8753,
7798,
12,
6494,
2132,
42,
8753,
7798,
13,
565,
288,
3639,
20479,
18,
588,
1133,
7675,
542,
4947,
42,
8753,
7798,
12,
5681,
42,
8753,
7798,
1769,
565,
289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
4947,
42,
8753,
7798,
12,
6494,
2132,
42,
8753,
7798,
13,
565,
288,
3639,
20479,
18,
588,
1133,
7675,
542,
4947,
42,
8753,
7798,
12,
5681,
42,
8753,
7798,
1769,
565,
289... |
if(i != 0) { | if(buffer.length() != 0) { | static String[] splitOnTokens(String text) { char[] array = text.toCharArray(); if(text.indexOf("?") == -1 && text.indexOf("*") == -1) { return new String[] { text }; } ArrayList list = new ArrayList(); StringBuffer buffer = new StringBuffer(); for(int i=0; i<array.length; i++) { if(array[i] == '?' || array[i] == '*') { if(i != 0) { list.add(buffer.toString()); buffer.setLength(0); } list.add(new String( new char[] { array[i] } )); } else { buffer.append(array[i]); } } if(buffer.length() != 0) { list.add(buffer.toString()); } return (String[]) list.toArray(new String[0]); } | 651 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/651/031803c6e44cc820e37024007cbc086c51f02042/WildcardUtils.java/buggy/genjava/gj-core/src/java/com/generationjava/util/WildcardUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
514,
8526,
1416,
1398,
5157,
12,
780,
977,
13,
288,
3639,
1149,
8526,
526,
273,
977,
18,
869,
15936,
5621,
3639,
309,
12,
955,
18,
31806,
2932,
7225,
13,
422,
300,
21,
597,
977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
514,
8526,
1416,
1398,
5157,
12,
780,
977,
13,
288,
3639,
1149,
8526,
526,
273,
977,
18,
869,
15936,
5621,
3639,
309,
12,
955,
18,
31806,
2932,
7225,
13,
422,
300,
21,
597,
977,
... |
+ "\tLocale: " + voices[i].getLocale().toString() + newline | public String toString() { String newline = System.getProperty("line.separator"); Voice[] voices = getVoices(); String s = "VoiceDirectory '" + this.getClass().getName() + "'" + newline; for (int i = 0; i < voices.length; i++) { s += voices[i].getName() + newline + "\tDescription: " + voices[i].getDescription() + newline + "\tGender: " + voices[i].getGender().toString() + newline + "\tAge: " + voices[i].getAge().toString() + newline + "\tLocale: " + voices[i].getLocale().toString() + newline + "\tPitch: " + voices[i].getPitch() + newline + "\tPitch Range: " + voices[i].getPitchRange() + newline + "\tPitch Shift: " + voices[i].getPitchShift() + newline + "\tRate: " + voices[i].getRate() + newline + "\tVolume: " + voices[i].getVolume() + newline + newline; } return s; } | 5078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5078/65ce49df4d2b219e3adcad637e6933317b987604/VoiceDirectory.java/buggy/com/sun/speech/freetts/VoiceDirectory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
3639,
514,
9472,
273,
2332,
18,
588,
1396,
2932,
1369,
18,
11287,
8863,
3639,
23582,
8526,
331,
17725,
273,
11031,
17725,
5621,
3639,
514,
272,
273,
315,
14572,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1762,
1435,
288,
3639,
514,
9472,
273,
2332,
18,
588,
1396,
2932,
1369,
18,
11287,
8863,
3639,
23582,
8526,
331,
17725,
273,
11031,
17725,
5621,
3639,
514,
272,
273,
315,
14572,
... | |
NotePadMeta npi = new NotePadMeta(n, lastclick.x, lastclick.y, Const.NOTE_MIN_SIZE, Const.NOTE_MIN_SIZE); chef.jobMeta.addNote(npi); chef.addUndoNew(new NotePadMeta[] {npi}, new int[] { chef.jobMeta.indexOfNote(npi)} ); redraw(); | chef.jobMeta.removeNote(idx); chef.addUndoDelete(new NotePadMeta[] {ni}, new int[] {idx} ); | public void widgetSelected(SelectionEvent e) { selrect=null; String title = Messages.getString("ChefGraph.Dialog.EditNote.Title"); //$NON-NLS-1$ String message = Messages.getString("ChefGraph.Dialog.EditNote.Message"); //$NON-NLS-1$ EnterTextDialog dd = new EnterTextDialog(shell, title, message, ""); //$NON-NLS-1$ String n = dd.open(); if (n!=null) { NotePadMeta npi = new NotePadMeta(n, lastclick.x, lastclick.y, Const.NOTE_MIN_SIZE, Const.NOTE_MIN_SIZE); chef.jobMeta.addNote(npi); chef.addUndoNew(new NotePadMeta[] {npi}, new int[] { chef.jobMeta.indexOfNote(npi)} ); redraw(); } } | 9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/444154823bb101b30df857a2f0a25a1948eb1bd9/ChefGraph.java/clean/src/be/ibridge/kettle/chef/ChefGraph.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
15106,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
15106,
202,
95,
20982,
202,
1786,
2607,
33,
2011,
31,
6862,
9506,
202,
780,
2077,
273,
4838,
18,
588,
780,
2932,
39,
580,
74,
4137,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15106,
202,
482,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
15106,
202,
95,
20982,
202,
1786,
2607,
33,
2011,
31,
6862,
9506,
202,
780,
2077,
273,
4838,
18,
588,
780,
2932,
39,
580,
74,
4137,... |
updateDocumentSections( document.getId(), document.getSections() ); | updateDocumentSections( document.getId(), document.getSections() ); | public void saveDocument( DocumentDomainObject document, UserDomainObject user ) throws MaxCategoryDomainObjectsOfTypeExceededException { if ( !userHasMoreThanReadPermissionOnDocument( user, document ) ) { return; // TODO: More specific check needed. Throw exception ? } checkMaxDocumentCategoriesOfType( document ); sqlUpdateMeta( document ); updateDocumentSections( document.getId(), document.getSections() ); updateDocumentCategories( document ); updateDocumentRolePermissions( document ); updateDocumentKeywords( document.getId(), document.getKeywords() ); DocumentPermissionSetMapper documentPermissionSetMapper = new DocumentPermissionSetMapper( service ); documentPermissionSetMapper.saveRestrictedDocumentPermissionSets( document ); document.saveDocument( this, user ); touchDocument( document ); } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/78b8cf3c8e17332a572ee863855f4395ff68a51c/DocumentMapper.java/clean/server/src/imcode/server/document/DocumentMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
2519,
12,
4319,
3748,
921,
1668,
16,
2177,
3748,
921,
729,
262,
1216,
4238,
4457,
3748,
4710,
18859,
14083,
288,
3639,
309,
261,
401,
1355,
5582,
7417,
9516,
1994,
5041,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1923,
2519,
12,
4319,
3748,
921,
1668,
16,
2177,
3748,
921,
729,
262,
1216,
4238,
4457,
3748,
4710,
18859,
14083,
288,
3639,
309,
261,
401,
1355,
5582,
7417,
9516,
1994,
5041,
... |
public static String[] getSelectedTargets(PermissionsSessionData session, String owner){ LogService.instance().log(LogService.DEBUG,"PermissionsXML.getSelectedTargets(): processing for "+owner); | public static String[] getSelectedTargets(PermissionsSessionData session, Element owner){ LogService.instance().log(LogService.DEBUG,"PermissionsXML.getSelectedTargets(): processing for "+owner.getAttribute("name")); | public static String[] getSelectedTargets(PermissionsSessionData session, String owner){ LogService.instance().log(LogService.DEBUG,"PermissionsXML.getSelectedTargets(): processing for "+owner); ArrayList targets = new ArrayList(); Element o = getOwner(session,owner); if (o != null){ NodeList tl = o.getElementsByTagName("target"); for (int i=0;i<tl.getLength();i++){ Element target = (Element)tl.item(i); if ((target.getAttribute("selected") != null) && (target.getAttribute("selected").equals("true"))){ targets.add(target.getAttribute("token")); LogService.instance().log(LogService.DEBUG,"PermissionsXML.getSelectedTargets(): adding "+target.getAttribute("token")); } } } return (String[])targets.toArray(new String[0]); } | 24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/7dd3da13bce84a7bc06f53daab65383ca9a2f527/PermissionsXML.java/buggy/source/org/jasig/portal/channels/permissionsmanager/PermissionsXML.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
8526,
16625,
9432,
12,
6521,
2157,
751,
1339,
16,
514,
3410,
15329,
1377,
1827,
1179,
18,
1336,
7675,
1330,
12,
1343,
1179,
18,
9394,
10837,
6521,
4201,
18,
588,
7416,
943... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
8526,
16625,
9432,
12,
6521,
2157,
751,
1339,
16,
514,
3410,
15329,
1377,
1827,
1179,
18,
1336,
7675,
1330,
12,
1343,
1179,
18,
9394,
10837,
6521,
4201,
18,
588,
7416,
943... |
if (isClosing || force) isClosing = windowManager.close(); } | XMLMemento mem = recordWorkbenchState(); saveMementoToFile(mem); } | public void run() { if (isClosing || force) isClosing = windowManager.close(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/2688254ae4cc014a21e20baa88abc90f0febd5d3/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
430,
261,
291,
15745,
747,
2944,
13,
6862,
202,
291,
15745,
273,
2742,
1318,
18,
4412,
5621,
1082,
202,
97,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
430,
261,
291,
15745,
747,
2944,
13,
6862,
202,
291,
15745,
273,
2742,
1318,
18,
4412,
5621,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
... |
public region difference(region d) { assert d != null; assert d.rank == rank; return ArbitraryRegion.difference(this, d); } | 1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/a4bd134d01f58c164e6d6a8a0201e38e2196061c/MultiDimRegion.java/buggy/x10.runtime/src/x10/array/MultiDimRegion.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6858,
23444,
12,
6858,
72,
15329,
11231,
72,
5,
33,
2011,
31,
11231,
72,
18,
11500,
631,
11500,
31,
2463,
686,
3682,
3345,
5165,
18,
23444,
12,
2211,
16,
72,
1769,
97,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6858,
23444,
12,
6858,
72,
15329,
11231,
72,
5,
33,
2011,
31,
11231,
72,
18,
11500,
631,
11500,
31,
2463,
686,
3682,
3345,
5165,
18,
23444,
12,
2211,
16,
72,
1769,
97,
2,
-100,
-100,
... | ||
public double jsFunction_getUTCDate() { | private double jsFunction_getUTCDate() { | public double jsFunction_getUTCDate() { if (this.date != this.date) return this.date; return DateFromTime(this.date); } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/5af1999afa2517f3fdd455bd42c304be785b5b59/NativeDate.java/clean/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1645,
3828,
2083,
67,
588,
11471,
1626,
1435,
288,
3639,
309,
261,
2211,
18,
712,
480,
333,
18,
712,
13,
5411,
327,
333,
18,
712,
31,
3639,
327,
2167,
1265,
950,
12,
2211,
18,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1645,
3828,
2083,
67,
588,
11471,
1626,
1435,
288,
3639,
309,
261,
2211,
18,
712,
480,
333,
18,
712,
13,
5411,
327,
333,
18,
712,
31,
3639,
327,
2167,
1265,
950,
12,
2211,
18,
7... |
switch (read()) | switch(c = read()) | private char parseBody(final boolean attribute, final TokenConsumer tokenConsumer) throws IOException, EndException, ParseException { //System.out.println(" body("+(attribute?"attribute":"method")+")"); int bracketdepth = (attribute ? 0 : 1); int curlyBracketDepth = bracketdepth; char c = read(); while (true) { switch (c) { case '/' : int i = readComment(); if (i >= 0) c = (char)i; else c = read(); break; case '{' : curlyBracketDepth++; // FALL THROUGH case '(' : bracketdepth++; //System.out.print("<("+bracketdepth+")>"); if(tokenConsumer!=null && curlyBracketDepth==0) tokenConsumer.addToken(c); if(tokenConsumer!=null) tokenConsumer.addChar(c); c = read(); break; case '}' : curlyBracketDepth--; // FALL THROUGH case ')' : bracketdepth--; //System.out.print("<("+bracketdepth+")>"); if (bracketdepth == 0 && !attribute) return '}'; if (bracketdepth < 0) throw new ParseException("';' expected."); if (tokenConsumer!=null && curlyBracketDepth==0) tokenConsumer.addToken(c); if(tokenConsumer!=null) tokenConsumer.addChar(c); c = read(); break; case ';' : // dont have to test for "attribute" here // since then the test in the '}' branch would have // already terminated the loop if (bracketdepth == 0) return ';'; c = read(); break; case ',' : if (bracketdepth == 0) return ','; if (tokenConsumer!=null && curlyBracketDepth==0) tokenConsumer.addToken(c); if(tokenConsumer!=null) tokenConsumer.addChar(c); c = read(); break; // ignore brackets inside of literal String's case '"' : if (tokenConsumer!=null && curlyBracketDepth==0) tokenConsumer.addToken(c); if(tokenConsumer!=null) tokenConsumer.addChar(c); il : while (true) { switch (c=read()) { case '"' : if (tokenConsumer!=null && curlyBracketDepth==0) tokenConsumer.addToken(c); if(tokenConsumer!=null) tokenConsumer.addChar(c); break il; case '\\' : read(); break; // ignore escaped characters } if (tokenConsumer!=null && curlyBracketDepth==0) tokenConsumer.addToken(c); if(tokenConsumer!=null) tokenConsumer.addChar(c); } c = read(); break; // ignore brackets inside of literal characters case '\'' : il : while (true) { switch (read()) { case '\'' : break il; case '\\' : read(); break; // ignore escaped characters } } c = read(); break; case '<' : if(bracketdepth>0) { if (tokenConsumer!=null && curlyBracketDepth==0) tokenConsumer.addToken(c); if(tokenConsumer!=null) tokenConsumer.addChar(c); c = read(); } else { buf.append(c); while(true) { if (tokenConsumer!=null && curlyBracketDepth==0) tokenConsumer.addToken(c); if(tokenConsumer!=null) tokenConsumer.addChar(c); c = read(); if(c=='>') break; } //System.out.println("gb||"+buf+"|| ("+positionLine+':'+positionColumn+')'); } break; default : if (tokenConsumer!=null && curlyBracketDepth==0) tokenConsumer.addToken(c); if(tokenConsumer!=null) tokenConsumer.addChar(c); c = read(); break; } } } | 50290 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50290/4ad0d600872d08179b13c522685ded86339425bb/Injector.java/buggy/instrument/src/com/exedio/cope/instrument/Injector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1149,
1109,
2250,
12,
6385,
1250,
1566,
16,
727,
3155,
5869,
1147,
5869,
13,
202,
202,
15069,
1860,
16,
4403,
503,
16,
10616,
202,
95,
202,
202,
759,
3163,
18,
659,
18,
8222,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1149,
1109,
2250,
12,
6385,
1250,
1566,
16,
727,
3155,
5869,
1147,
5869,
13,
202,
202,
15069,
1860,
16,
4403,
503,
16,
10616,
202,
95,
202,
202,
759,
3163,
18,
659,
18,
8222,... |
reportingAsset + " not local to this cluster." | reportingAsset + " not local to this agent." | private void allocateLocal(Task task) { Asset reportingAsset = task.getDirectObject(); Asset reportee = (Asset) findIndirectObject(task, Constants.Preposition.FOR); Asset localReportingAsset = findLocalAsset(reportingAsset); if ((localReportingAsset == null) || (!((HasRelationships )localReportingAsset).isLocal())) { //(!localReportingAsset.getClusterPG().getMessageAddress().equals(getMessageAddress()))) { myLogger.error(getMessageAddress().toString()+ "/AssetReportPlugin: unable to process " + task.getVerb() + " task - " + reportingAsset + " reporting to " + reportee + ".\n" + reportingAsset + " not local to this cluster." ); return; } long startTime = (long) task.getPreferredValue(AspectType.START_TIME); long endTime = (long) task.getPreferredValue(AspectType.END_TIME); // Make RelationshipSchedule for the reporting asset Collection roles = (Collection) findIndirectObject(task, Constants.Preposition.AS); RelationshipSchedule schedule = myPlanningFactory.newRelationshipSchedule((HasRelationships) reportingAsset); for (Iterator iterator = roles.iterator(); iterator.hasNext();) { Relationship relationship = myPlanningFactory.newRelationship((Role) iterator.next(), (HasRelationships) reportingAsset, (HasRelationships) reportee, startTime, endTime); schedule.add(relationship); } ((HasRelationships) reportingAsset).setRelationshipSchedule(schedule); // create the transfer NewSchedule availSchedule = myPlanningFactory.newSimpleSchedule(startTime, endTime); AllocationResult newEstimatedResult = PluginHelper.createEstimatedAllocationResult(task, theLDMF, 1.0, true); AssetTransfer assetTransfer = myPlanningFactory.createAssetTransfer(task.getPlan(), task, reportingAsset, availSchedule, reportee, newEstimatedResult, Role.ASSIGNED); publishAdd(assetTransfer); } | 10687 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10687/4ca02740bedf766baa9e7478b9ab2bec14e4058a/AssetReportPlugin.java/buggy/planning/src/org/cougaar/planning/plugin/asset/AssetReportPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
10101,
2042,
12,
2174,
1562,
13,
288,
565,
10494,
16096,
6672,
273,
1562,
18,
588,
5368,
921,
5621,
565,
10494,
2605,
1340,
273,
261,
6672,
13,
1104,
24943,
921,
12,
4146,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10101,
2042,
12,
2174,
1562,
13,
288,
565,
10494,
16096,
6672,
273,
1562,
18,
588,
5368,
921,
5621,
565,
10494,
2605,
1340,
273,
261,
6672,
13,
1104,
24943,
921,
12,
4146,
16,
... |
public Object getValue(ClassLoader classLoader, Class objectClass, Element propertyElement) throws InvalidPropertyException { try { Element layoutDataElement = DomUtil.getChildElementByTagName(propertyElement, "layout-data"); String type = layoutDataElement.getAttribute("type"); // Load properties from XML. PropertyLoader propertyLoader = PropertyLoader.forClassLoader(classLoader); Element propertiesElement = DomUtil.getChildElementByTagName(layoutDataElement, "properties"); Style propertyStyle = propertyLoader.getProperties(propertiesElement, type); // Instantiate object. Class propertyClass = Class.forName(type, true, classLoader); LayoutData layoutData = (LayoutData) propertyClass.newInstance(); ComponentIntrospector ci = ComponentIntrospector.forName(type, classLoader); //BUGBUG. probably want to move the real work here into something generic in the componentxml package. Iterator it = propertyStyle.getPropertyNames(); while (it.hasNext()) { String propertyName = (String) it.next(); Method writeMethod = ci.getWriteMethod(propertyName); writeMethod.invoke(layoutData, new Object[]{propertyStyle.getProperty(propertyName)}); } return layoutData; } catch (ClassNotFoundException ex) { throw new InvalidPropertyException("Unable to process properties.", ex); } catch (ComponentXmlException ex) { throw new InvalidPropertyException("Unable to process properties.", ex); } catch (InstantiationException ex) { throw new InvalidPropertyException("Unable to process properties.", ex); } catch (IllegalAccessException ex) { throw new InvalidPropertyException("Unable to process properties.", ex); } catch (IllegalArgumentException ex) { throw new InvalidPropertyException("Unable to process properties.", ex); } catch (InvocationTargetException ex) { throw new InvalidPropertyException("Unable to process properties.", ex); } } | 45635 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45635/56cddbe97656001c725dd3ad695af03943fa4786/LayoutDataPeer.java/clean/src/app/java/nextapp/echo2/app/componentxml/propertypeer/LayoutDataPeer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2366,
12,
7805,
11138,
16,
1659,
23992,
16,
3010,
1272,
1046,
13,
565,
1216,
1962,
1396,
503,
288,
3639,
775,
288,
5411,
3010,
3511,
751,
1046,
273,
12965,
1304,
18,
588,
1763... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2366,
12,
7805,
11138,
16,
1659,
23992,
16,
3010,
1272,
1046,
13,
565,
1216,
1962,
1396,
503,
288,
3639,
775,
288,
5411,
3010,
3511,
751,
1046,
273,
12965,
1304,
18,
588,
1763... | ||
if (answer.equalsIgnoreCase("y") || answer.equalsIgnoreCase("yes")) { answer = "true"; } setting.setSetting(answer); } else { setting.setSetting(answer); | gotAnswer = true; } catch (IOException exception) { System.out.println("Cannot read from STDIN. Skipping question."); } catch (NumberFormatException exception) { System.out.println("Answer is not a number."); } catch (CDKException exception) { System.out.println(); System.out.println(exception.toString()); | private void processIOSetting(IOSetting setting) { // post the question if (setting.getLevel() < this.level) { System.out.print(setting.getQuestion()); if (setting instanceof BooleanIOSetting) { BooleanIOSetting boolSet = (BooleanIOSetting)setting; boolean set = boolSet.isSet(); if (set) { System.out.print(" [Yn]"); } else { System.out.print(" [yN]"); } } else if (setting instanceof StringIOSetting) { System.out.print(" [" + setting.getSetting() + "]"); } else if (setting instanceof OptionIOSetting) { OptionIOSetting optionSet = (OptionIOSetting)setting; Vector settings = optionSet.getOptions(); for (int i=0; i<settings.size(); i++) { System.out.println(); System.out.print((i+1) + ". " + settings.elementAt(i)); } } System.out.println(); } // get the answer boolean gotAnswer = false; BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); while (!gotAnswer) { try { System.out.print("> "); String answer = input.readLine(); if (answer.length() == 0) { // pressed ENTER -> take default } else if (setting instanceof OptionIOSetting) { ((OptionIOSetting)setting).setSetting(Integer.parseInt(answer)); } else if (setting instanceof BooleanIOSetting) { if (answer.equalsIgnoreCase("n") || answer.equalsIgnoreCase("no")) { answer = "false"; } if (answer.equalsIgnoreCase("y") || answer.equalsIgnoreCase("yes")) { answer = "true"; } setting.setSetting(answer); } else { setting.setSetting(answer); } gotAnswer = true; } catch (IOException exception) { System.out.println("Cannot read from STDIN. Skipping question."); } catch (NumberFormatException exception) { System.out.println("Answer is not a number."); } catch (CDKException exception) { System.out.println(); System.out.println(exception.toString()); } } }; | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/b5a0f0c6928f6f4782ce977ee494dee986cefa40/TextGUIListener.java/clean/src/org/openscience/cdk/io/listener/TextGUIListener.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
4294,
5568,
12,
4294,
5568,
3637,
13,
288,
3639,
368,
1603,
326,
5073,
3639,
309,
261,
8920,
18,
588,
2355,
1435,
411,
333,
18,
2815,
13,
288,
5411,
2332,
18,
659,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
4294,
5568,
12,
4294,
5568,
3637,
13,
288,
3639,
368,
1603,
326,
5073,
3639,
309,
261,
8920,
18,
588,
2355,
1435,
411,
333,
18,
2815,
13,
288,
5411,
2332,
18,
659,
18,
... |
e = ((SAXException)e).getException(); | Exception nested = ((SAXException)e).getException(); if (nested != null) { e = nested; } | public static void main(String argv[]) { // is there anything to do? if (argv.length == 0) { printUsage(); System.exit(1); } // variables Writer writer = null; ParserWrapper parser = null; boolean namespaces = DEFAULT_NAMESPACES; boolean validation = DEFAULT_VALIDATION; boolean schemaValidation = DEFAULT_SCHEMA_VALIDATION; boolean schemaFullChecking = DEFAULT_SCHEMA_FULL_CHECKING; boolean canonical = DEFAULT_CANONICAL; // process arguments for (int i = 0; i < argv.length; i++) { String arg = argv[i]; if (arg.startsWith("-")) { String option = arg.substring(1); if (option.equals("p")) { // get parser name if (++i == argv.length) { System.err.println("error: Missing argument to -p option."); } String parserName = argv[i]; // create parser try { parser = (ParserWrapper)Class.forName(parserName).newInstance(); } catch (Exception e) { parser = null; System.err.println("error: Unable to instantiate parser ("+parserName+")"); } continue; } if (option.equalsIgnoreCase("n")) { namespaces = option.equals("n"); continue; } if (option.equalsIgnoreCase("v")) { validation = option.equals("v"); continue; } if (option.equalsIgnoreCase("s")) { schemaValidation = option.equals("s"); continue; } if (option.equalsIgnoreCase("f")) { schemaFullChecking = option.equals("f"); continue; } if (option.equalsIgnoreCase("c")) { canonical = option.equals("c"); continue; } if (option.equals("h")) { printUsage(); continue; } } // use default parser? if (parser == null) { // create parser try { parser = (ParserWrapper)Class.forName(DEFAULT_PARSER_NAME).newInstance(); } catch (Exception e) { System.err.println("error: Unable to instantiate parser ("+DEFAULT_PARSER_NAME+")"); continue; } } // set parser features try { parser.setFeature(NAMESPACES_FEATURE_ID, namespaces); } catch (SAXException e) { System.err.println("warning: Parser does not support feature ("+NAMESPACES_FEATURE_ID+")"); } try { parser.setFeature(VALIDATION_FEATURE_ID, validation); } catch (SAXException e) { System.err.println("warning: Parser does not support feature ("+VALIDATION_FEATURE_ID+")"); } try { parser.setFeature(SCHEMA_VALIDATION_FEATURE_ID, schemaValidation); } catch (SAXException e) { System.err.println("warning: Parser does not support feature ("+SCHEMA_VALIDATION_FEATURE_ID+")"); } try { parser.setFeature(SCHEMA_FULL_CHECKING_FEATURE_ID, schemaFullChecking); } catch (SAXException e) { System.err.println("warning: Parser does not support feature ("+SCHEMA_FULL_CHECKING_FEATURE_ID+")"); } // setup writer if (writer == null) { writer = new Writer(); try { writer.setOutput(System.out, "UTF8"); } catch (UnsupportedEncodingException e) { System.err.println("error: Unable to set output. Exiting."); System.exit(1); } } // parse file writer.setCanonical(canonical); try { Document document = parser.parse(arg); writer.write(document); } catch (SAXParseException e) { // ignore } catch (Exception e) { System.err.println("error: Parse error occurred - "+e.getMessage()); if (e instanceof SAXException) { e = ((SAXException)e).getException(); } e.printStackTrace(System.err); } } } // main(String[]) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/5c2a81050d9a8de84ccde0f9e2d5ffe079841245/Writer.java/clean/samples/dom/Writer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
3639,
368,
353,
1915,
6967,
358,
741,
35,
3639,
309,
261,
19485,
18,
2469,
422,
374,
13,
288,
5411,
1172,
5357,
5621,
5411,
2332,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
3639,
368,
353,
1915,
6967,
358,
741,
35,
3639,
309,
261,
19485,
18,
2469,
422,
374,
13,
288,
5411,
1172,
5357,
5621,
5411,
2332,
18,... |
computeTransform(); | EventQueue.invokeLater (new RootNodeChangedRunnable(root, bridgeContext)); } }; t.setPriority(Thread.MIN_PRIORITY); t.start(); } | public void setSVGDocument(final SVGDocument doc) { new Thread() { public void run() { setPriority(Thread.MIN_PRIORITY); if (document != null) { // fire the unload event Event evt = document.createEvent("SVGEvents"); evt.initEvent("SVGUnload", false, false); ((EventTarget)(document. getRootElement())). dispatchEvent(evt); } document = doc; if (document == null) { gvtRoot = null; } else { bridgeContext = createBridgeContext(doc); bridgeContext.setViewCSS((ViewCSS)doc.getDocumentElement()); bridgeContext.setGVTBuilder(builder); long t1 = System.currentTimeMillis(); gvtRoot = builder.build(bridgeContext, document); long t2 = System.currentTimeMillis(); System.out.println("---- GVT tree construction ---- " + (t2 - t1) + " ms"); computeTransform(); // <!> HACK maybe not the right place to dispatch // this event // fire the load event Event evt = document.createEvent("SVGEvents"); evt.initEvent("SVGLoad", false, false); ((EventTarget)(document. getRootElement())). dispatchEvent(evt); ((EventTarget)doc).addEventListener("DOMAttrModified", new MutationListener(), false); } if (userAgent.getEventDispatcher() != null) { userAgent.getEventDispatcher().setRootNode(gvtRoot); } rotateAngle = 0; rotateCos = 1; if (zoomHandler != null) { zoomHandler.zoomChanged(1); } repaint = true; repaint(); if (thumbnailCanvas != null) { thumbnailCanvas.fullRepaint(); } } }.start(); } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/48fcb7144ee3cdcab6e501b463b38251f0f23436/JSVGCanvas.java/buggy/sources/org/apache/batik/refimpl/util/JSVGCanvas.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
13928,
9266,
2519,
12,
6385,
11281,
2519,
997,
13,
288,
3639,
394,
4884,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
7734,
444,
8183,
12,
3830,
18,
6236,
67,
19804,
1769,
7734... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13928,
9266,
2519,
12,
6385,
11281,
2519,
997,
13,
288,
3639,
394,
4884,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
7734,
444,
8183,
12,
3830,
18,
6236,
67,
19804,
1769,
7734... |
if(keyType.equals("SSK") && extra.length != ClientSSK.EXTRA_LENGTH) | if(keyType.equals("SSK") && (extra.length != ClientSSK.EXTRA_LENGTH)) | private void writeFullBinaryKey(DataOutputStream dos) throws IOException { if(keyType.equals("CHK")) { dos.writeByte(CHK); } else if(keyType.equals("SSK")) { dos.writeByte(SSK); } else if(keyType.equals("KSK")) { dos.writeByte(KSK); } else if(keyType.equals("USK")) { throw new MalformedURLException("Cannot write USKs as binary keys"); } else throw new MalformedURLException("Cannot write key of type "+keyType+" - do not know how"); if(!keyType.equals("KSK")) { if(routingKey.length != 32) throw new MalformedURLException("Routing key must be of length 32"); dos.write(routingKey); if(cryptoKey.length != 32) throw new MalformedURLException("Crypto key must be of length 32"); dos.write(cryptoKey); if(keyType.equals("CHK") && extra.length != ClientCHK.EXTRA_LENGTH) throw new MalformedURLException("Wrong number of extra bytes for CHK"); if(keyType.equals("SSK") && extra.length != ClientSSK.EXTRA_LENGTH) throw new MalformedURLException("Wrong number of extra bytes for SSK"); dos.write(extra); } if(!keyType.equals("CHK")) dos.writeUTF(docName); if(metaStr != null) { dos.writeInt(metaStr.length); for(int i=0;i<metaStr.length;i++) dos.writeUTF(metaStr[i]); } else dos.writeInt(0); } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/FreenetURI.java/buggy/src/freenet/keys/FreenetURI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
5080,
5905,
653,
12,
751,
4632,
16153,
13,
1216,
1860,
288,
202,
202,
430,
12,
856,
559,
18,
14963,
2932,
1792,
47,
6,
3719,
288,
1082,
202,
19219,
18,
2626,
3216,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
5080,
5905,
653,
12,
751,
4632,
16153,
13,
1216,
1860,
288,
202,
202,
430,
12,
856,
559,
18,
14963,
2932,
1792,
47,
6,
3719,
288,
1082,
202,
19219,
18,
2626,
3216,... |
return (int) (p * (0.299 * ((0xff0000 & rgb) >> 16) + 0.587 * ((0xff00 & rgb) >> 8) + 0.114 * (0xff & rgb))); | int alpha = 0xff000000 & rgb; int red = (0xff0000 & rgb) >> 16; int green = (0xff00 & rgb) >> 8; int blue = (0xff & rgb); int gray = (int) ((0.299 * red + 0.587 * green + 0.114 * blue) * p); if (b) gray = Math.min(gray + 128, 255); return gray | gray << 8 | gray << 16 | alpha ; | public int filterRGB(int x, int y, int rgb) { return (int) (p * (0.299 * ((0xff0000 & rgb) >> 16) + 0.587 * ((0xff00 & rgb) >> 8) + 0.114 * (0xff & rgb))); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/GrayFilter.java/clean/core/src/classpath/javax/javax/swing/GrayFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
1034,
11343,
12,
474,
619,
16,
509,
677,
16,
509,
6917,
13,
565,
288,
565,
327,
261,
474,
13,
261,
84,
380,
261,
20,
18,
22,
2733,
380,
14015,
20,
5297,
2787,
473,
6917,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
1034,
11343,
12,
474,
619,
16,
509,
677,
16,
509,
6917,
13,
565,
288,
565,
327,
261,
474,
13,
261,
84,
380,
261,
20,
18,
22,
2733,
380,
14015,
20,
5297,
2787,
473,
6917,
... |
Default.setUCD(); | public static void verify() throws IOException { Default.setUCD(); checkIdentical("ea=h", "dt=nar"); checkIdentical("ea=f", "dt=wide"); checkIdentical("gc=ps", "lb=op"); checkIdentical("lb=sg", "gc=cs");/*For LB we now have:GC:Ps == LB:OPGC:Nd && !(EA:F)Try these on for size, and report any discrepancies>GC:L& && EA:W -> LB:ID>GC:L& && EA:A -> LB:AI>GC:L& && EA:N -> LB:AL>GC:L& && EA:Na -> LB:ALplus>LB:ID contains Ideo:TAlso, try these rulesGC:S# && EA:W -> LB:IDGC:S# && EA:A -> LB:AIGC:S# && EA:N -> LB:ALGC:S# && EA:Na -> LB:ALwhere S# is Sm | Sk | Sothese will generate exceptions, but I need to see the list to them before Ican help you narrow these down.>The trivial ones that I could glean from reading the TR are>LB:SG == GC:Cs>GC:Pi -> LB:QU>GC:Pf -> LB:QU>GC:Mc -> LB:CM>GC:Me -> LB:CM>GC:Mn -> LB:CM>GC:Pe -> LB:CL*/ } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/d1ef79fafdbbeaaf4dcbaa9d3c534754c217d955/VerifyUCD.java/clean/tools/unicodetools/com/ibm/text/UCD/VerifyUCD.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
3929,
1435,
1216,
1860,
288,
13491,
866,
6106,
1706,
2932,
24852,
33,
76,
3113,
315,
7510,
33,
82,
297,
8863,
3639,
866,
6106,
1706,
2932,
24852,
33,
74,
3113,
315,
7510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3929,
1435,
1216,
1860,
288,
13491,
866,
6106,
1706,
2932,
24852,
33,
76,
3113,
315,
7510,
33,
82,
297,
8863,
3639,
866,
6106,
1706,
2932,
24852,
33,
74,
3113,
315,
7510,
... | |
_compileButton.setEnabled(false); | _compileButton.setEnabled(false); | void compile() { _compileButton.setEnabled(false); String filename = _definitionsView.getCurrentFileName(); if (filename.length() == 0) { // the file has never been saved. we can only get here // if the file was never changed and never saved. return; } // Clear the output window before compilation _outputView.clear(); File file = new File(filename); CompilerError[] errors = DrJava.compiler.compile(new File[] { file }); _errorPanel.resetErrors(errors); if (errors.length == 0) { // Success doesn't print anything, so we should print something // to let them know it worked. System.out.println(file.getName() + " compiled successfully."); _resetInteractions(); } } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/19f352f86be54a48e35fa3c387c0a98798be1f17/MainFrame.java/clean/drjava/src/edu/rice/cs/drjava/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4074,
1435,
377,
288,
202,
67,
11100,
3616,
18,
542,
1526,
12,
5743,
1769,
1377,
514,
1544,
273,
389,
13314,
1767,
18,
588,
3935,
4771,
5621,
1377,
309,
261,
3459,
18,
2469,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
4074,
1435,
377,
288,
202,
67,
11100,
3616,
18,
542,
1526,
12,
5743,
1769,
1377,
514,
1544,
273,
389,
13314,
1767,
18,
588,
3935,
4771,
5621,
1377,
309,
261,
3459,
18,
2469,
1435,
... |
if (mee == null || mee.getName().equals("base") && mee.getSource() == getOwner()) { | if (mee == null || mee.getName().equals("base") && mee.getSource() == getOwner()) { | protected void modelChanged(MElementEvent mee) { // base should get it's own figtext and it's own update method // TODO: remove the mee == null as soon as everything is migrated if (mee == null || mee.getName().equals("base") && mee.getSource() == getOwner()) { updateNameText(); } else super.modelChanged(mee); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/23464f9cbc3169e9d2f1919998cae2c59b514985/FigClassifierRole.java/buggy/src_new/org/argouml/uml/diagram/collaboration/ui/FigClassifierRole.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
938,
5033,
12,
12310,
1133,
312,
1340,
13,
288,
3639,
368,
1026,
1410,
336,
518,
1807,
4953,
4291,
955,
471,
518,
1807,
4953,
1089,
707,
3639,
368,
2660,
30,
1206,
326,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
938,
5033,
12,
12310,
1133,
312,
1340,
13,
288,
3639,
368,
1026,
1410,
336,
518,
1807,
4953,
4291,
955,
471,
518,
1807,
4953,
1089,
707,
3639,
368,
2660,
30,
1206,
326,
312,
... |
cacheMap.remove( dsAndDs ); | synchronized void clearCache( DataSourceAndDataSet dsAndDs ) { Object cacheDir = cacheMap.get( dsAndDs ); if ( cacheDir != null ) { cacheMap.remove( dsAndDs ); folderUtil.deleteDir( (String) cacheDir ); } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/29417d2bf721760fe586e6e6083f71cbc951a623/CacheMapManager.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/CacheMapManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
22043,
918,
19346,
12,
12806,
1876,
13676,
3780,
1876,
22831,
262,
202,
95,
202,
202,
921,
19946,
273,
1247,
863,
18,
588,
12,
3780,
1876,
22831,
11272,
202,
202,
430,
261,
19946,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22043,
918,
19346,
12,
12806,
1876,
13676,
3780,
1876,
22831,
262,
202,
95,
202,
202,
921,
19946,
273,
1247,
863,
18,
588,
12,
3780,
1876,
22831,
11272,
202,
202,
430,
261,
19946,
48... | |
final Comparable comp = (Comparable) context.declaration.getExtractor().getValue( left ); | final Comparable comp = (Comparable) context.getVariableDeclaration().getExtractor().getValue( left ); | public boolean evaluateCachedRight(final VariableContextEntry context, final Object left) { final Comparable comp = (Comparable) context.declaration.getExtractor().getValue( left ); return comp.compareTo( ((ObjectVariableContextEntry) context).right ) >= 0; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/b6d27b51773c616f04e39b7d6c5e3cd95aeab255/ObjectFactory.java/clean/drools-core/src/main/java/org/drools/base/evaluators/ObjectFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
5956,
9839,
4726,
12,
6385,
7110,
1042,
1622,
819,
16,
4766,
6647,
727,
1033,
2002,
13,
288,
5411,
727,
13633,
1161,
273,
261,
799,
10207,
13,
819,
18,
588,
26547,
7675,
588,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
5956,
9839,
4726,
12,
6385,
7110,
1042,
1622,
819,
16,
4766,
6647,
727,
1033,
2002,
13,
288,
5411,
727,
13633,
1161,
273,
261,
799,
10207,
13,
819,
18,
588,
26547,
7675,
588,
... |
Language getLanguage(); | @NotNull Language getLanguage(); | Language getLanguage(); | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/b0928dfe3b72abd7f6798ef2e683a7ee875764af/PsiElement.java/clean/openapi/src/com/intellij/psi/PsiElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
9889,
12898,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
9889,
12898,
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,
... |
public void render (RequestEvaluator reval, ESNode thisNode) { | public void render (RequestEvaluator reval, ESNode thisNode, ESObject paramObject) { | public void render (RequestEvaluator reval, ESNode thisNode) { if ("response".equalsIgnoreCase (handler)) { renderFromResponse (reval); return; } try { ESObject handlerObject = null; ESValue[] arguments = new ESValue[1]; ESRequestData par = new ESRequestData (reval); par.setData (parameters); arguments[0] = par; if (handler != null) { // not a global macro - need to find handler object if (thisNode != null) { // was called with this object - check it or its parents for matching prototype if (!handler.equalsIgnoreCase ("this") && !handler.equalsIgnoreCase (thisNode.getPrototypeName ())) { // the handler object is not what we want INode n = thisNode.getNode(); // walk down parent chain to find handler object while (n != null) { if (handler.equalsIgnoreCase (n.getPrototype())) { handlerObject = reval.getNodeWrapper (n); break; } n = n.getParent (); } } else { // we already have the right handler object handlerObject = thisNode; } } if (handlerObject == null) { // eiter because thisNode == null or the right object wasn't found in the targetNode path // go check request path for an object with matching prototype int l = reval.reqPath.size(); for (int i=l-1; i>=0; i--) { if (handler.equalsIgnoreCase (((ESNode) reval.reqPath.getProperty(i)).getPrototypeName())) { handlerObject = (ESNode) reval.reqPath.getProperty(i); break; } } } } else { // this is a global macro with no handler specified handlerObject = reval.global; } if (handlerObject != null) { ESValue v = handlerObject.doIndirectCall (reval.evaluator, handlerObject, name+"_macro", arguments); if (v != ESUndefined.theUndefined && v != ESNull.theNull) reval.res.write (v); } else { String msg = "[HopMacro unhandled: "+handler+"."+name+"]"; reval.res.write (" "+msg+" "); IServer.getLogger().log (msg); } } catch (Exception x) { String msg = "[HopMacro error: "+x+"]"; reval.res.write (" "+msg+" "); IServer.getLogger().log (msg); } } | 3798 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3798/0a2cbec8f7ef10c7d5b02de1b5a45c1af7603f85/Skin.java/buggy/src/helma/framework/core/Skin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1743,
261,
691,
15876,
283,
1125,
16,
14054,
907,
333,
907,
13,
288,
202,
565,
309,
7566,
2740,
9654,
14963,
5556,
261,
4176,
3719,
288,
202,
3639,
1743,
1265,
1064,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
261,
691,
15876,
283,
1125,
16,
14054,
907,
333,
907,
13,
288,
202,
565,
309,
7566,
2740,
9654,
14963,
5556,
261,
4176,
3719,
288,
202,
3639,
1743,
1265,
1064,
261,
... |
return _elseStatement; | return elseStatement; | public JElseStatement getElseStatement() { return _elseStatement; } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/JIfElseIfElseStatement.java/clean/modules/interop/src/java/org/apache/geronimo/interop/generator/JIfElseIfElseStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
804,
12427,
3406,
4774,
80,
307,
3406,
1435,
288,
3639,
327,
469,
3406,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
804,
12427,
3406,
4774,
80,
307,
3406,
1435,
288,
3639,
327,
469,
3406,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if (Boolean.valueOf(addtoGradebook).booleanValue()) | if (!addtoGradebook.equals("no")) | private void postOrSaveAssignment(RunData data, String postOrSave) { boolean post = (postOrSave != null && postOrSave.equals("post")) ? true : false; // assignment old title String aOldTitle = null; SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid()); String mode = (String) state.getAttribute(STATE_MODE); if (!mode.equals(MODE_INSTRUCTOR_PREVIEW_ASSIGNMENT)) { // read input data if the mode is not preview mode setNewAssignmentParameters(data, true); } if (state.getAttribute(STATE_MESSAGE) == null) { ParameterParser params = data.getParameters(); // put the names and values into vm file String title = (String) state.getAttribute(NEW_ASSIGNMENT_TITLE); // open time int openMonth = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENMONTH)).intValue(); int openDay = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENDAY)).intValue(); int openYear = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENYEAR)).intValue(); int openHour = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENHOUR)).intValue(); int openMin = ((Integer) state.getAttribute(NEW_ASSIGNMENT_OPENMIN)).intValue(); String openAMPM = (String) state.getAttribute(NEW_ASSIGNMENT_OPENAMPM); if ((openAMPM.equals("PM")) && (openHour != 12)) { openHour = openHour + 12; } if ((openHour == 12) && (openAMPM.equals("AM"))) { openHour = 0; } Time openTime = TimeService.newTimeLocal(openYear, openMonth, openDay, openHour, openMin, 0, 0); // due time int dueMonth = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEMONTH)).intValue(); int dueDay = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEDAY)).intValue(); int dueYear = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEYEAR)).intValue(); int dueHour = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEHOUR)).intValue(); int dueMin = ((Integer) state.getAttribute(NEW_ASSIGNMENT_DUEMIN)).intValue(); String dueAMPM = (String) state.getAttribute(NEW_ASSIGNMENT_DUEAMPM); if ((dueAMPM.equals("PM")) && (dueHour != 12)) { dueHour = dueHour + 12; } if ((dueHour == 12) && (dueAMPM.equals("AM"))) { dueHour = 0; } Time dueTime = TimeService.newTimeLocal(dueYear, dueMonth, dueDay, dueHour, dueMin, 0, 0); // close time Time closeTime = TimeService.newTime(); boolean enableCloseDate = ((Boolean) state.getAttribute(NEW_ASSIGNMENT_ENABLECLOSEDATE)).booleanValue(); if (enableCloseDate) { int closeMonth = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEMONTH)).intValue(); int closeDay = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEDAY)).intValue(); int closeYear = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEYEAR)).intValue(); int closeHour = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEHOUR)).intValue(); int closeMin = ((Integer) state.getAttribute(NEW_ASSIGNMENT_CLOSEMIN)).intValue(); String closeAMPM = (String) state.getAttribute(NEW_ASSIGNMENT_CLOSEAMPM); if ((closeAMPM.equals("PM")) && (closeHour != 12)) { closeHour = closeHour + 12; } if ((closeHour == 12) && (closeAMPM.equals("AM"))) { closeHour = 0; } closeTime = TimeService.newTimeLocal(closeYear, closeMonth, closeDay, closeHour, closeMin, 0, 0); } // sections String s = (String) state.getAttribute(NEW_ASSIGNMENT_SECTION); int submissionType = ((Integer) state.getAttribute(NEW_ASSIGNMENT_SUBMISSION_TYPE)).intValue(); int gradeType = ((Integer) state.getAttribute(NEW_ASSIGNMENT_GRADE_TYPE)).intValue(); String gradePoints = (String) state.getAttribute(NEW_ASSIGNMENT_GRADE_POINTS); String description = (String) state.getAttribute(NEW_ASSIGNMENT_DESCRIPTION); String checkAddDueTime = state.getAttribute(ResourceProperties.NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE)!=null?(String) state.getAttribute(ResourceProperties.NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE):null; String checkAutoAnnounce = (String) state.getAttribute(ResourceProperties.NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE); String checkAddHonorPledge = (String) state.getAttribute(NEW_ASSIGNMENT_CHECK_ADD_HONOR_PLEDGE); String addtoGradebook = (String) state.getAttribute(NEW_ASSIGNMENT_ADD_TO_GRADEBOOK); // the attachments List attachments = (List) state.getAttribute(ATTACHMENTS); List attachments1 = EntityManager.newReferenceList(attachments); boolean newAssignment = true; // correct inputs if (state.getAttribute(STATE_MESSAGE) == null) { String assignmentId = params.getString("assignmentId"); String assignmentContentId = params.getString("assignmentContentId"); // AssignmentContent object AssignmentContentEdit ac = null; if (assignmentContentId.length() == 0) { // new assignment // only show alert when dealing with new assignment // allow editing assignment after due date if (dueTime.before(TimeService.newTime())) { addAlert(state, rb.getString("assig4")); } else { try { ac = AssignmentService.addAssignmentContent((String) state.getAttribute(STATE_CONTEXT_STRING)); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot3")); } } } else { try { // edit assignment ac = AssignmentService.editAssignmentContent(assignmentContentId); } catch (InUseException e) { addAlert(state, rb.getString("theassicon")); } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin4")); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot15")); } } // Assignment AssignmentEdit a = null; if (assignmentId.length() == 0) { // create a new assignment try { a = AssignmentService.addAssignment((String) state.getAttribute(STATE_CONTEXT_STRING)); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot1")); } } else { // not a new assignment newAssignment = false; try { // edit assignment a = AssignmentService.editAssignment(assignmentId); aOldTitle = a.getTitle(); } catch (InUseException e) { addAlert(state, rb.getString("theassicon")); } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin3")); } catch (PermissionException e) { addAlert(state, rb.getString("youarenot14")); } // try-catch } // if-else if ((state.getAttribute(STATE_MESSAGE) == null) && (ac != null) && (a != null)) { ac.setTitle(title); ac.setInstructions(description); ac.setHonorPledge(Integer.parseInt(checkAddHonorPledge)); ac.setTypeOfSubmission(submissionType); ac.setTypeOfGrade(gradeType); if (gradeType == 3) { try { ac.setMaxGradePoint(Integer.parseInt(gradePoints)); } catch (NumberFormatException e) { alertInvalidPoint(state, gradePoints); } } ac.setGroupProject(true); ac.setIndividuallyGraded(false); if (submissionType != 1) { ac.setAllowAttachments(true); } else { ac.setAllowAttachments(false); } // clear attachments ac.clearAttachments(); // add each attachment Iterator it = EntityManager.newReferenceList(attachments1).iterator(); while (it.hasNext()) { Reference r = (Reference) it.next(); ac.addAttachment(r); } state.setAttribute(ATTACHMENTS_MODIFIED, new Boolean(false)); // commit the changes AssignmentService.commitEdit(ac); } try { a.setTitle(title); a.setContent(ac); a.setContext((String) state.getAttribute(STATE_CONTEXT_STRING)); a.setSection(s); // old open time Time oldOpenTime = a.getOpenTime(); a.setOpenTime(openTime); // old due time Time oldDueTime = a.getDueTime(); a.setDueTime(dueTime); // set the drop dead date as the due date a.setDropDeadTime(dueTime); if (enableCloseDate) { a.setCloseTime(closeTime); } else { // if editing an old assignment with close date if (a.getCloseTime() != null) { a.setCloseTime(null); } } // post the assignment a.setDraft(!post); // set the auto check/auto announce property ResourcePropertiesEdit aPropertiesEdit = a.getPropertiesEdit(); if (aPropertiesEdit.getProperty("newAssignment") != null) { if (aPropertiesEdit.getProperty("newAssignment").equalsIgnoreCase(Boolean.TRUE.toString())) { // not a newly created assignment, been added. aPropertiesEdit.addProperty("newAssignment", Boolean.FALSE.toString()); } } else { // for newly created assignment aPropertiesEdit.addProperty("newAssignment", Boolean.TRUE.toString()); } if (checkAddDueTime != null) { aPropertiesEdit.addProperty(ResourceProperties.NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE, checkAddDueTime); } else { aPropertiesEdit.removeProperty(ResourceProperties.NEW_ASSIGNMENT_CHECK_ADD_DUE_DATE); } aPropertiesEdit.addProperty(ResourceProperties.NEW_ASSIGNMENT_CHECK_AUTO_ANNOUNCE, checkAutoAnnounce); aPropertiesEdit.addProperty(NEW_ASSIGNMENT_ADD_TO_GRADEBOOK, addtoGradebook); // set group property String range = (String) state.getAttribute(NEW_ASSIGNMENT_RANGE); try { if (range.equals("site")) { a.setAccess(Assignment.AssignmentAccess.SITE); a.clearGroupAccess(); } else if (range.equals("groups")) { String siteId = (String) state.getAttribute(STATE_CONTEXT_STRING); try { Site site = SiteService.getSite(siteId); Collection groupChoice = (Collection) state.getAttribute(NEW_ASSIGNMENT_GROUPS); Collection groups = new Vector(); for (Iterator iGroups = groupChoice.iterator(); iGroups.hasNext();) { String groupId = (String) iGroups.next(); groups.add(site.getGroup(groupId)); } a.setGroupAccess(groups); } catch (Exception e) { Log.warn("chef", this + "cannot find site with id "+ siteId); } } } catch (PermissionException e) { addAlert(state, rb.getString("youarenot1")); } if (state.getAttribute(STATE_MESSAGE) == null) { // commit assignment first AssignmentService.commitEdit(a); if (state.getAttribute(STATE_MESSAGE) == null) { state.setAttribute(STATE_MODE, MODE_LIST_ASSIGNMENTS); state.setAttribute(ATTACHMENTS, EntityManager.newReferenceList()); resetAssignment(state); } if (post) { // add due date to schedule and add open date to announcement only if user is posting the assignment // add the due date to schedule if the schedule exists if (state.getAttribute(CALENDAR) != null) { Calendar c = (Calendar) state.getAttribute(CALENDAR); String dueDateScheduled = a.getProperties().getProperty(NEW_ASSIGNMENT_DUE_DATE_SCHEDULED); String oldEventId = aPropertiesEdit.getProperty(ResourceProperties.PROP_ASSIGNMENT_DUEDATE_CALENDAR_EVENT_ID); CalendarEvent e = null; if (dueDateScheduled != null || oldEventId != null) { // find the old event boolean found = false; if (oldEventId != null && c != null) { try { e = c.getEvent(oldEventId); found = true; } catch (IdUnusedException ee) { Log.warn("chef", "The old event has been deleted: event id=" + oldEventId + ". "); } catch (PermissionException ee) { Log.warn("chef", "You do not have the permission to view the schedule event id= " + oldEventId + "."); } } else { TimeBreakdown b = oldDueTime.breakdownLocal(); // TODO: check- this was new Time(year...), not local! -ggolden Time startTime = TimeService.newTimeLocal(b.getYear(), b.getMonth(), b.getDay(), 0, 0, 0, 0); Time endTime = TimeService.newTimeLocal(b.getYear(), b.getMonth(), b.getDay(), 23, 59, 59, 999); try { Iterator events = c.getEvents(TimeService.newTimeRange(startTime, endTime), null) .iterator(); while ((!found) && (events.hasNext())) { e = (CalendarEvent) events.next(); if (((String) e.getDisplayName()).indexOf(rb.getString("assig1") + " " + title) != -1) { found = true; } } } catch (PermissionException ignore) { // ignore PermissionException } } if (found) { // remove the founded old event try { c.removeEvent(c.editEvent(e.getId())); } catch (PermissionException ee) { Log.warn("chef", rb.getString("cannotrem") + " " + title + ". "); } catch (InUseException ee) { Log.warn("chef", rb.getString("somelsis") + " " + rb.getString("calen")); } } } if (checkAddDueTime.equalsIgnoreCase(Boolean.TRUE.toString())) { if (c != null) { // commit related properties into Assignment object String ref = ""; try { ref = a.getReference(); AssignmentEdit aEdit = AssignmentService.editAssignment(ref); try { e = null; CalendarEvent.EventAccess eAccess = CalendarEvent.EventAccess.SITE; Collection eGroups = new Vector(); if (aEdit.getAccess().equals(Assignment.AssignmentAccess.GROUPED)) { eAccess = CalendarEvent.EventAccess.GROUPED; Collection groupRefs = aEdit.getGroups(); // make a collection of Group objects from the collection of group ref strings Site site = SiteService.getSite((String) state.getAttribute(STATE_CONTEXT_STRING)); for (Iterator iGroupRefs = groupRefs.iterator(); iGroupRefs.hasNext();) { String groupRef = (String) iGroupRefs.next(); eGroups.add(site.getGroup(groupRef)); } } e = c.addEvent(/* TimeRange */TimeService.newTimeRange(dueTime.getTime(), /* 0 duration */0 * 60 * 1000), /* title */rb.getString("due") + " " + title, /* description */rb.getString("assig1") + " " + title + " " + "is due on " + dueTime.toStringLocalFull() + ". ", /* type */rb.getString("deadl"), /* location */"", /* access */ eAccess, /* groups */ eGroups, /* attachments */EntityManager.newReferenceList()); aEdit.getProperties().addProperty(NEW_ASSIGNMENT_DUE_DATE_SCHEDULED, Boolean.TRUE.toString()); if (e != null) { aEdit.getProperties().addProperty(ResourceProperties.PROP_ASSIGNMENT_DUEDATE_CALENDAR_EVENT_ID, e.getId()); } } catch (IdUnusedException ee) { Log.warn("chef", ee.getMessage()); } catch (PermissionException ee) { Log.warn("chef", rb.getString("cannotfin1")); } catch (Exception ee) { Log.warn("chef", ee.getMessage()); } // try-catch AssignmentService.commitEdit(aEdit); } catch (Exception ignore) { // ignore the exception Log.warn("chef", rb.getString("cannotfin2") + ref); } } // if } // if } // the open date been announced if (checkAutoAnnounce.equalsIgnoreCase(Boolean.TRUE.toString())) { AnnouncementChannel channel = (AnnouncementChannel) state.getAttribute(ANNOUNCEMENT_CHANNEL); if (channel != null) { String openDateAnnounced = a.getProperties().getProperty(NEW_ASSIGNMENT_OPEN_DATE_ANNOUNCED); // open date has been announced or title has been changed? boolean openDateMessageModified = false; if (openDateAnnounced != null && openDateAnnounced.equalsIgnoreCase(Boolean.TRUE.toString())) { if (oldOpenTime != null && (!oldOpenTime.toStringLocalFull().equals(openTime.toStringLocalFull())) // open time changes || !aOldTitle.equals(title)) // assignment title changes { // need to change message openDateMessageModified = true; } } // add the open date to annoucement if (openDateAnnounced == null // no announcement yet || (openDateAnnounced != null && openDateAnnounced.equalsIgnoreCase(Boolean.TRUE.toString()) && openDateMessageModified)) // announced, but open date or announcement title changes { // announcement channel is in place try { AnnouncementMessageEdit message = channel.addAnnouncementMessage(); AnnouncementMessageHeaderEdit header = message.getAnnouncementHeaderEdit(); header.setDraft(/* draft */false); header.replaceAttachments(/* attachment */EntityManager.newReferenceList()); if (openDateAnnounced == null) { // making new announcement header.setSubject(/* subject */rb.getString("assig6") + " " + title); message.setBody(/* body */rb.getString("opedat") + " " + FormattedText.convertPlaintextToFormattedText(title) + " is " + openTime.toStringLocalFull() + ". "); } else { // revised announcement header.setSubject(/* subject */rb.getString("assig5") + " " + title); message.setBody(/* body */rb.getString("newope") + " " + FormattedText.convertPlaintextToFormattedText(title) + " is " + openTime.toStringLocalFull() + ". "); } // group information if (a.getAccess().equals(Assignment.AssignmentAccess.GROUPED)) { try { // get the group ids selected Collection groupRefs = a.getGroups(); // make a collection of Group objects Collection groups = new Vector(); //make a collection of Group objects from the collection of group ref strings Site site = SiteService.getSite((String) state.getAttribute(STATE_CONTEXT_STRING)); for (Iterator iGroupRefs = groupRefs.iterator(); iGroupRefs.hasNext();) { String groupRef = (String) iGroupRefs.next(); groups.add(site.getGroup(groupRef)); } // set access header.setGroupAccess(groups); } catch (Exception exception) { // log Log.warn("chef", exception.getMessage()); } } else { // site announcement header.clearGroupAccess(); } channel.commitMessage(message, NotificationService.NOTI_NONE); // commit related properties into Assignment object String ref = ""; try { ref = a.getReference(); AssignmentEdit aEdit = AssignmentService.editAssignment(ref); aEdit.getPropertiesEdit().addProperty(NEW_ASSIGNMENT_OPEN_DATE_ANNOUNCED, Boolean.TRUE.toString()); if (message != null) { aEdit.getPropertiesEdit().addProperty(ResourceProperties.PROP_ASSIGNMENT_OPENDATE_ANNOUNCEMENT_MESSAGE_ID, message.getId()); } AssignmentService.commitEdit(aEdit); } catch (Exception ignore) { // ignore the exception Log.warn("chef", rb.getString("cannotfin2") + ref); } } catch (PermissionException ee) { Log.warn("chef", rb.getString("cannotmak")); } } } } // if // integrate with Gradebook String aReference = a.getReference(); String addUpdateRemoveAssignment = "remove"; if (Boolean.valueOf(addtoGradebook).booleanValue()) { if (!AssignmentService.getAllowGroupAssignmentsInGradebook() && (range.equals("groups"))) { // if grouped assignment is not allowed to add into Gradebook addAlert(state, rb.getString("java.alert.noGroupedAssignmentIntoGB")); String ref = ""; try { ref = a.getReference(); AssignmentEdit aEdit = AssignmentService.editAssignment(ref); aEdit.getPropertiesEdit().removeProperty(NEW_ASSIGNMENT_ADD_TO_GRADEBOOK); AssignmentService.commitEdit(aEdit); } catch (Exception ignore) { // ignore the exception Log.warn("chef", rb.getString("cannotfin2") + ref); } integrateGradebook(state, aReference, "remove", null, null, -1, null, null, null); } else { if (newAssignment) { addUpdateRemoveAssignment = "add"; } else { addUpdateRemoveAssignment = "update"; } if (!addUpdateRemoveAssignment.equals("remove") && gradeType == 3) { try { // no assignment committed yet. Use user input data integrateGradebook(state, aReference, addUpdateRemoveAssignment, aOldTitle, title, Integer.parseInt (gradePoints), dueTime, null, null); // add all existing grades, if any, into Gradebook integrateGradebook(state, aReference, null, null, null, -1, null, null, "update"); } catch (NumberFormatException nE) { alertInvalidPoint(state, gradePoints); } } else { integrateGradebook(state, aReference, "remove", null, null, -1, null, null, null); } } } else { // remove assignment entry from Gradebook integrateGradebook(state, aReference, "remove", null, null, -1, null, null, null); } } // if post } // if } catch (IdUnusedException e) { addAlert(state, rb.getString("cannotfin3")); } // try-catch } // if } // if } // doPost_assignment | 54270 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54270/2599c85aa5ec5d87ae87e3624213730a4573b0a5/AssignmentAction.java/clean/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1603,
1162,
4755,
7729,
12,
1997,
751,
501,
16,
514,
1603,
1162,
4755,
13,
202,
95,
202,
202,
6494,
1603,
273,
261,
2767,
1162,
4755,
480,
446,
597,
1603,
1162,
4755,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1603,
1162,
4755,
7729,
12,
1997,
751,
501,
16,
514,
1603,
1162,
4755,
13,
202,
95,
202,
202,
6494,
1603,
273,
261,
2767,
1162,
4755,
480,
446,
597,
1603,
1162,
4755,
18... |
beforeOption = null; | beforeOption = null; | protected void add_IE(final Option newOptionObject, final Object index) { final HtmlSelect select = getHtmlSelect(); final HtmlOption beforeOption; if (Context.getUndefinedValue().equals(index)) { beforeOption = null; } else { final int intIndex = ((Integer) Context.jsToJava(index, Integer.class)).intValue(); if (intIndex >= select.getOptionSize()) { beforeOption = null; } else { beforeOption = select.getOption(intIndex); } } addBefore(newOptionObject, beforeOption); } | 47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/4a3061046876575acc5d58b84618ad7d3de6d151/Select.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/host/Select.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
67,
8732,
12,
6385,
2698,
394,
1895,
921,
16,
727,
1033,
770,
13,
288,
3639,
727,
5430,
3391,
2027,
273,
19633,
3391,
5621,
3639,
727,
5430,
1895,
1865,
1895,
31,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
67,
8732,
12,
6385,
2698,
394,
1895,
921,
16,
727,
1033,
770,
13,
288,
3639,
727,
5430,
3391,
2027,
273,
19633,
3391,
5621,
3639,
727,
5430,
1895,
1865,
1895,
31,
3639,
... |
public int compare( String source, String target ) { int result = 0; if ( columnIndex == 1 ) result = super.compare( getFileName( source ), getFileName( target ) ); else if ( columnIndex == 2 ) result = super.compare( getFilePath( source ), getFilePath( target ) ); | /* * @see java.util.Comparator#compare(java.lang.Object, * java.lang.Object) */ public int compare( Object o1, Object o2 ) { String source = (String) o1; String target = (String) o2; int result = 0; if ( columnIndex == 1 ) result = this.compareStr( getFileName( source ), getFileName( target ) ); else if ( columnIndex == 2 ) result = this.compareStr( getFilePath( source ), getFilePath( target ) ); | private void sortJar( final int columnIndex, final boolean asc ) { try { jarViewer.setSorter( new ViewerSorter( new RuleBasedCollator( ( (RuleBasedCollator) Collator.getInstance( ) ).getRules( ) ) { public int compare( String source, String target ) { int result = 0; if ( columnIndex == 1 ) result = super.compare( getFileName( source ), getFileName( target ) ); else if ( columnIndex == 2 ) result = super.compare( getFilePath( source ), getFilePath( target ) ); if ( !asc ) return result; else return result *= -1; } } ) ); } catch ( ParseException e ) { // TODO Auto-generated catch block e.printStackTrace( ); } refreshJar( ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/f56460dc465d6004052327c67845d57d0ba26e89/JdbcDriverManagerDialog.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/dialogs/JdbcDriverManagerDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1524,
10813,
12,
727,
509,
14882,
16,
727,
1250,
6972,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
11930,
18415,
18,
542,
24952,
12,
394,
4441,
264,
24952,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1524,
10813,
12,
727,
509,
14882,
16,
727,
1250,
6972,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
11930,
18415,
18,
542,
24952,
12,
394,
4441,
264,
24952,
12,... |
schemaDOM.startAnnotationCDATA(); | if (fAnnotationDepth != -1) { schemaDOM.startAnnotationCDATA(); } | public void startCDATA(Augmentations augs) throws XNIException { schemaDOM.startAnnotationCDATA(); } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/565d2b4003fdeee13a663e69473a534389f13b26/SchemaDOMParser.java/clean/src/org/apache/xerces/impl/xs/opti/SchemaDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
18375,
12,
37,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
540,
309,
261,
74,
3257,
6148,
480,
300,
21,
13,
288,
1963,
8168,
18,
1937,
3257,
18375,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
18375,
12,
37,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
540,
309,
261,
74,
3257,
6148,
480,
300,
21,
13,
288,
1963,
8168,
18,
1937,
3257,
18375,
5621,
... |
public int setVarNum(int num) { int r1 = f1.setVarNum(num); int r2 = f2.setVarNum(num); //assertSame(r1 == r2, "setVarNum"); return r1; } | 5661 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5661/71f86273df58be2740a3795cf7aa832e81bfb010/TestBDDFactory.java/buggy/JavaBDD/net/sf/javabdd/TestBDDFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
444,
1537,
2578,
12,
474,
818,
13,
288,
3639,
509,
436,
21,
273,
284,
21,
18,
542,
1537,
2578,
12,
2107,
1769,
3639,
509,
436,
22,
273,
284,
22,
18,
542,
1537,
2578,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
444,
1537,
2578,
12,
474,
818,
13,
288,
3639,
509,
436,
21,
273,
284,
21,
18,
542,
1537,
2578,
12,
2107,
1769,
3639,
509,
436,
22,
273,
284,
22,
18,
542,
1537,
2578,
12,
... | ||
onlyStaticMethods, | private void findIntefacesMethods( char[] selector, TypeBinding[] argTypes, ReferenceBinding receiverType, ReferenceBinding[] itsInterfaces, Scope scope, ObjectVector methodsFound, boolean onlyStaticMethods, boolean exactMatch, boolean isCompletingDeclaration, InvocationSite invocationSite, Scope invocationScope, boolean implicitCall, boolean superCall, boolean canBePrefixed) { if (selector == null) return; if (itsInterfaces != NoSuperInterfaces) { ReferenceBinding[][] interfacesToVisit = new ReferenceBinding[5][]; int lastPosition = 0; interfacesToVisit[lastPosition] = itsInterfaces; for (int i = 0; i <= lastPosition; i++) { ReferenceBinding[] interfaces = interfacesToVisit[i]; for (int j = 0, length = interfaces.length; j < length; j++) { ReferenceBinding currentType = interfaces[j]; if ((currentType.tagBits & TagBits.InterfaceVisited) == 0) { // if interface as not already been visited currentType.tagBits |= TagBits.InterfaceVisited; MethodBinding[] methods = currentType.availableMethods(); if(methods != null) { if(isCompletingDeclaration){ findLocalMethodDeclarations( selector, methods, scope, methodsFound, onlyStaticMethods, exactMatch, receiverType); } else { findLocalMethods( selector, argTypes, methods, scope, methodsFound, onlyStaticMethods, exactMatch, receiverType, invocationSite, invocationScope, implicitCall, superCall, canBePrefixed); } } itsInterfaces = currentType.superInterfaces(); if (itsInterfaces != NoSuperInterfaces) { if (++lastPosition == interfacesToVisit.length) System.arraycopy( interfacesToVisit, 0, interfacesToVisit = new ReferenceBinding[lastPosition * 2][], 0, lastPosition); interfacesToVisit[lastPosition] = itsInterfaces; } } } } // bit reinitialization for (int i = 0; i <= lastPosition; i++) { ReferenceBinding[] interfaces = interfacesToVisit[i]; for (int j = 0, length = interfaces.length; j < length; j++){ interfaces[j].tagBits &= ~TagBits.InterfaceVisited; } } } } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/0841b38e29c9b9a090c0d849b31ae1e8b6484d97/CompletionEngine.java/buggy/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1104,
382,
736,
4601,
4712,
12,
202,
202,
3001,
8526,
3451,
16,
202,
202,
559,
5250,
8526,
30973,
16,
202,
202,
2404,
5250,
5971,
559,
16,
202,
202,
2404,
5250,
8526,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1104,
382,
736,
4601,
4712,
12,
202,
202,
3001,
8526,
3451,
16,
202,
202,
559,
5250,
8526,
30973,
16,
202,
202,
2404,
5250,
5971,
559,
16,
202,
202,
2404,
5250,
8526,
20... | |
throw NativeGlobal.constructError( Context.getContext(), "TypeError", ScriptRuntime.getMessage("msg.instanceof.bad.prototype", args), instance); | String m = ScriptRuntime.getMessage("msg.instanceof.bad.prototype", args); throw NativeGlobal.constructError(Context.getContext(), "TypeError", m, instance); | public boolean hasInstance(Scriptable instance) { FlattenedObject flat = new FlattenedObject(this); Object protoProp = flat.getProperty("prototype"); if ((protoProp instanceof Scriptable) && (protoProp != Undefined.instance)) { try { protoProp = ((FlattenedObject)protoProp).getObject(); return ScriptRuntime.jsDelegatesTo(instance, (Scriptable)protoProp); } catch (ClassCastException e) { } } Object[] args = { names[0] }; throw NativeGlobal.constructError( Context.getContext(), "TypeError", ScriptRuntime.getMessage("msg.instanceof.bad.prototype", args), instance); } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/92cc537362a2c4d8865665593daaa42cec248179/NativeFunction.java/buggy/org/mozilla/javascript/NativeFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1442,
12,
3651,
429,
791,
13,
288,
3639,
24226,
23016,
3569,
273,
394,
24226,
23016,
12,
2211,
1769,
3639,
1033,
3760,
4658,
273,
3569,
18,
588,
1396,
2932,
18541,
8863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
1442,
12,
3651,
429,
791,
13,
288,
3639,
24226,
23016,
3569,
273,
394,
24226,
23016,
12,
2211,
1769,
3639,
1033,
3760,
4658,
273,
3569,
18,
588,
1396,
2932,
18541,
8863,
... |
} | throw new ParserException(e); } catch (RuntimeException e) { throw new ParserException(e); } | private void markHumanReviewed() { try{ List<ObjectClass> ocs = (List<ObjectClass>)cadsrObjects.getElements(DomainObjectFactory.newObjectClass().getClass()); List<DataElementConcept> decs = (List<DataElementConcept>) cadsrObjects.getElements(DomainObjectFactory.newDataElementConcept().getClass()); for(ObjectClass oc : ocs) { Element classElement = elements.get(oc.getLongName()); String xpath = "//*[local-name()='TaggedValue' and @tag='HUMAN_REVIEWED' and @modelElement='" + classElement.getAttributeValue("xmi.id") + "']"; JDOMXPath path = new JDOMXPath(xpath); Element tv = (Element)path.selectSingleNode(modelElement); boolean reviewed = reviewTracker.get(oc.getLongName()); if(tv == null) { addTaggedValue("HUMAN_REVIEWED", reviewed?"1":"0", getNewId(classElement.getAttributeValue("xmi.id")), classElement.getAttributeValue("xmi.id"), classElement.getNamespace()); } else { tv.setAttribute("value", reviewed?"1":"0"); } } for(DataElementConcept dec : decs) { String fullPropName = dec.getObjectClass().getLongName() + "." + dec.getProperty().getLongName(); Boolean reviewed = reviewTracker.get(fullPropName); if(reviewed == null) { continue; } Element attributeElement = elements.get(fullPropName); String xpath = "//*[local-name()='TaggedValue' and @tag='HUMAN_REVIEWED' and @modelElement='" + attributeElement.getAttributeValue("xmi.id") + "']"; JDOMXPath path = new JDOMXPath(xpath); Element tv = (Element)path.selectSingleNode(modelElement); if(tv == null) { addTaggedValue("HUMAN_REVIEWED", reviewed?"1":"0", getNewId(attributeElement.getAttributeValue("xmi.id")), attributeElement.getAttributeValue("xmi.id"), attributeElement.getNamespace()); } else { tv.setAttribute("value", reviewed?"1":"0"); } } } catch (JaxenException e){ } // end of try-catch } | 55019 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55019/79a91bb776fbd3c1a00be4d82fbb69b59b899572/XMIWriter.java/buggy/src/gov/nih/nci/ncicb/cadsr/loader/parser/XMIWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2267,
28201,
9159,
329,
1435,
288,
565,
775,
95,
4202,
987,
32,
921,
797,
34,
320,
2143,
273,
261,
682,
32,
921,
797,
23429,
71,
361,
11254,
4710,
18,
588,
3471,
12,
3748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2267,
28201,
9159,
329,
1435,
288,
565,
775,
95,
4202,
987,
32,
921,
797,
34,
320,
2143,
273,
261,
682,
32,
921,
797,
23429,
71,
361,
11254,
4710,
18,
588,
3471,
12,
3748,
... |
if (dns.host.sameName(this) && ! dns.host.sameValue(this)) { if (dns.debug > 1) System.out.println("JmDNS DNSRecord.Address.handleQuery() Conflicting probe detected"); if (dns.getState().isProbing() && lexCompare(dns.host) >= 0) { dns.host.name = dns.incrementHostName(dns.host.getName()); dns.getCache().clear(); for (Iterator i=dns.services.values().iterator(); i.hasNext(); ) { ServiceInfo info = (ServiceInfo) i.next(); info.revertState(); | DNSRecord.Address dnsAddress = dns.getLocalHost().getDNSAddressRecord(this); if (dnsAddress != null) { if ( dnsAddress.sameType(this) && dnsAddress.sameName(this) && (! dnsAddress.sameValue(this) ) ) { logger.finer("handleQuery() Conflicting probe detected. dns state " + dns.getState() + " lex compare " + lexCompare(dnsAddress)); if (dns.getState().isProbing() && lexCompare(dnsAddress) >= 0) { dns.getLocalHost().incrementHostName(); dns.getCache().clear(); for (Iterator i=dns.services.values().iterator(); i.hasNext(); ) { ServiceInfo info = (ServiceInfo) i.next(); info.revertState(); } | boolean handleQuery(JmDNS dns, long expirationTime) { if (dns.host.sameName(this) && ! dns.host.sameValue(this)) { if (dns.debug > 1) System.out.println("JmDNS DNSRecord.Address.handleQuery() Conflicting probe detected"); // Tie-breaker test if (dns.getState().isProbing() && lexCompare(dns.host) >= 0) { // We lost the tie-break. We have to choose a different name. dns.host.name = dns.incrementHostName(dns.host.getName()); dns.getCache().clear(); for (Iterator i=dns.services.values().iterator(); i.hasNext(); ) { ServiceInfo info = (ServiceInfo) i.next(); info.revertState(); } } dns.revertState(); return true; } return false; } | 2281 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2281/3fae35de8c4ce868da36396d46828869c5809036/DNSRecord.java/clean/jmdns/src/javax/jmdns/DNSRecord.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1250,
1640,
1138,
12,
46,
81,
11602,
6605,
16,
1525,
7686,
950,
13,
288,
5411,
309,
261,
14926,
18,
2564,
18,
14307,
461,
12,
2211,
13,
597,
401,
6605,
18,
2564,
18,
14307,
620,
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,
8585,
326,
22398,
316,
326,
981,
30,
540,
1250,
1640,
1138,
12,
46,
81,
11602,
6605,
16,
1525,
7686,
950,
13,
288,
5411,
309,
261,
14926,
18,
2564,
18,
14307,
461,
12,
2211,
13,
597,
401,
6605,
18,
2564,
18,
14307,
620,
12,
2... |
{ SecurityManager sm = System.getSecurityManager(); if(sm != null) sm.checkPermission( new SecurityPermission("setPolicy") ); | { SecurityManager sm = System.getSecurityManager(); if(sm != null) sm.checkPermission( new SecurityPermission("setPolicy") ); | public static void setPolicy(Policy policy){ SecurityManager sm = System.getSecurityManager(); if(sm != null) sm.checkPermission( new SecurityPermission("setPolicy") ); currentPolicy = policy;} | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/929d12f9c1cf27322f4228118023127504d9e8ac/Policy.java/buggy/java/security/Policy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
760,
918,
444,
2582,
12,
2582,
3329,
15329,
202,
4368,
1318,
3029,
273,
2332,
18,
588,
4368,
1318,
5621,
202,
430,
12,
4808,
480,
446,
13,
202,
202,
4808,
18,
1893,
5041,
12,
394,
6036... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
760,
918,
444,
2582,
12,
2582,
3329,
15329,
202,
4368,
1318,
3029,
273,
2332,
18,
588,
4368,
1318,
5621,
202,
430,
12,
4808,
480,
446,
13,
202,
202,
4808,
18,
1893,
5041,
12,
394,
6036... |
throw recv.getRuntime().newNameError("identifier " + name + " needs to be constant"); | throw recv.getRuntime().newNameError("identifier " + name + " needs to be constant", name); | public static RubyClass newInstance(IRubyObject recv, IRubyObject[] args) { String name = null; if (args.length > 0 && args[0] instanceof RubyString) { name = args[0].toString(); } RubyArray member = recv.getRuntime().newArray(); for (int i = name == null ? 0 : 1; i < args.length; i++) { member.append(RubySymbol.newSymbol(recv.getRuntime(), args[i].asSymbol())); } RubyClass newStruct; if (name == null) { newStruct = new RubyClass((RubyClass) recv); } else { if (!IdUtil.isConstant(name)) { throw recv.getRuntime().newNameError("identifier " + name + " needs to be constant"); } newStruct = ((RubyClass) recv).defineClassUnder(name, (RubyClass) recv); } newStruct.setInstanceVariable("__size__", member.length()); newStruct.setInstanceVariable("__member__", member); CallbackFactory callbackFactory = recv.getRuntime().callbackFactory(RubyStruct.class); newStruct.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("[]", callbackFactory.getOptSingletonMethod("newStruct")); newStruct.defineSingletonMethod("members", callbackFactory.getSingletonMethod("members")); // define access methods. for (int i = name == null ? 0 : 1; i < args.length; i++) { String memberName = args[i].asSymbol(); newStruct.defineMethod(memberName, callbackFactory.getMethod("get")); newStruct.defineMethod(memberName + "=", callbackFactory.getMethod("set", IRubyObject.class)); } return newStruct; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/1278c5bb3507a052d150d814f15453542ae41aed/RubyStruct.java/buggy/src/org/jruby/RubyStruct.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
5984,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
514,
508,
273,
446,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
597,
833,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
797,
5984,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
8526,
833,
13,
288,
3639,
514,
508,
273,
446,
31,
3639,
309,
261,
1968,
18,
2469,
405,
374,
597,
833,
63... |
} else { myLogger.error("SolarPowerPS: no light input!"); return randomFilter(0); | float calculatePowerProduced() { SimEnvironment lightInput = getLightConsumerDefinition() .getEnvironments()[0]; //Varying stream of power if (lightInput != null) { float powerGenerated = getCurrentUpperPowerGeneration() * (lightInput.getLightIntensity() / lightInput .getMaxLumens()); return randomFilter(powerGenerated); } else { myLogger.error("SolarPowerPS: no light input!"); return randomFilter(0); } } | 5015 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5015/6925431c436dac1dff1860acb5e82373e91f018d/SolarPowerPS.java/clean/BIOSIM/src/com/traclabs/biosim/server/simulation/power/SolarPowerPS.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1431,
4604,
13788,
8390,
3263,
1435,
288,
3639,
9587,
5494,
9052,
1210,
273,
9014,
750,
5869,
1852,
1435,
7734,
263,
588,
28749,
1435,
63,
20,
15533,
3639,
368,
58,
814,
310,
1407,
434,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1431,
4604,
13788,
8390,
3263,
1435,
288,
3639,
9587,
5494,
9052,
1210,
273,
9014,
750,
5869,
1852,
1435,
7734,
263,
588,
28749,
1435,
63,
20,
15533,
3639,
368,
58,
814,
310,
1407,
434,
7... | |
stringClass.includeModule(ruby.getRubyClass("Comparable")); | public static RubyClass createStringClass(Ruby ruby) { org.jruby.RubyClass stringClass = ruby.defineClass("String", ruby.getObjectClass()); // stringClass.includeModule(ruby.getModules().getComparable()); // stringClass.includeModule(ruby.getModules().getEnumerable()); stringClass.defineSingletonMethod("new", getSingletonMethodNew()); stringClass.defineMethod("initialize", getMethodInitialize());/* rb_define_method(rb_cString, "clone", rb_str_clone, 0); rb_define_method(rb_cString, "dup", rb_str_dup, 0); rb_define_method(rb_cString, "<=>", rb_str_cmp_m, 1); rb_define_method(rb_cString, "==", rb_str_equal, 1); rb_define_method(rb_cString, "===", rb_str_equal, 1); rb_define_method(rb_cString, "eql?", rb_str_equal, 1); rb_define_method(rb_cString, "hash", rb_str_hash_m, 0); rb_define_method(rb_cString, "+", rb_str_plus, 1); rb_define_method(rb_cString, "*", rb_str_times, 1); rb_define_method(rb_cString, "%", rb_str_format, 1); */ stringClass.defineMethod("[]", getMethodSlice()); /*rb_define_method(rb_cString, "[]=", rb_str_aset_m, -1); rb_define_method(rb_cString, "length", rb_str_length, 0); rb_define_method(rb_cString, "size", rb_str_length, 0); rb_define_method(rb_cString, "empty?", rb_str_empty, 0); rb_define_method(rb_cString, "=~", rb_str_match, 1); rb_define_method(rb_cString, "~", rb_str_match2, 0); rb_define_method(rb_cString, "succ", rb_str_succ, 0); rb_define_method(rb_cString, "succ!", rb_str_succ_bang, 0); rb_define_method(rb_cString, "next", rb_str_succ, 0); rb_define_method(rb_cString, "next!", rb_str_succ_bang, 0); rb_define_method(rb_cString, "upto", rb_str_upto_m, 1); rb_define_method(rb_cString, "index", rb_str_index_m, -1); rb_define_method(rb_cString, "rindex", rb_str_rindex, -1); rb_define_method(rb_cString, "replace", rb_str_replace_m, 1); rb_define_method(rb_cString, "to_i", rb_str_to_i, 0); rb_define_method(rb_cString, "to_f", rb_str_to_f, 0); rb_define_method(rb_cString, "to_s", rb_str_to_s, 0); rb_define_method(rb_cString, "to_str", rb_str_to_s, 0); rb_define_method(rb_cString, "inspect", rb_str_inspect, 0); rb_define_method(rb_cString, "dump", rb_str_dump, 0); rb_define_method(rb_cString, "upcase", rb_str_upcase, 0); rb_define_method(rb_cString, "downcase", rb_str_downcase, 0); rb_define_method(rb_cString, "capitalize", rb_str_capitalize, 0); rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0); rb_define_method(rb_cString, "upcase!", rb_str_upcase_bang, 0); rb_define_method(rb_cString, "downcase!", rb_str_downcase_bang, 0); rb_define_method(rb_cString, "capitalize!", rb_str_capitalize_bang, 0); rb_define_method(rb_cString, "swapcase!", rb_str_swapcase_bang, 0); rb_define_method(rb_cString, "hex", rb_str_hex, 0); rb_define_method(rb_cString, "oct", rb_str_oct, 0); rb_define_method(rb_cString, "split", rb_str_split_m, -1);*/ stringClass.defineMethod("reverse", getMethodReverse()); /*rb_define_method(rb_cString, "reverse!", rb_str_reverse_bang, 0); rb_define_method(rb_cString, "concat", rb_str_concat, 1); rb_define_method(rb_cString, "<<", rb_str_concat, 1); rb_define_method(rb_cString, "crypt", rb_str_crypt, 1); rb_define_method(rb_cString, "intern", rb_str_intern, 0); rb_define_method(rb_cString, "include?", rb_str_include, 1); rb_define_method(rb_cString, "scan", rb_str_scan, 1); rb_define_method(rb_cString, "ljust", rb_str_ljust, 1); rb_define_method(rb_cString, "rjust", rb_str_rjust, 1); rb_define_method(rb_cString, "center", rb_str_center, 1); rb_define_method(rb_cString, "sub", rb_str_sub, -1); rb_define_method(rb_cString, "gsub", rb_str_gsub, -1); rb_define_method(rb_cString, "chop", rb_str_chop, 0); rb_define_method(rb_cString, "chomp", rb_str_chomp, -1); rb_define_method(rb_cString, "strip", rb_str_strip, 0); rb_define_method(rb_cString, "sub!", rb_str_sub_bang, -1); rb_define_method(rb_cString, "gsub!", rb_str_gsub_bang, -1); rb_define_method(rb_cString, "strip!", rb_str_strip_bang, 0); rb_define_method(rb_cString, "chop!", rb_str_chop_bang, 0); rb_define_method(rb_cString, "chomp!", rb_str_chomp_bang, -1); rb_define_method(rb_cString, "tr", rb_str_tr, 2); rb_define_method(rb_cString, "tr_s", rb_str_tr_s, 2); rb_define_method(rb_cString, "delete", rb_str_delete, -1); rb_define_method(rb_cString, "squeeze", rb_str_squeeze, -1); rb_define_method(rb_cString, "count", rb_str_count, -1); rb_define_method(rb_cString, "tr!", rb_str_tr_bang, 2); rb_define_method(rb_cString, "tr_s!", rb_str_tr_s_bang, 2); rb_define_method(rb_cString, "delete!", rb_str_delete_bang, -1); rb_define_method(rb_cString, "squeeze!", rb_str_squeeze_bang, -1); rb_define_method(rb_cString, "each_line", rb_str_each_line, -1); rb_define_method(rb_cString, "each", rb_str_each_line, -1); rb_define_method(rb_cString, "each_byte", rb_str_each_byte, 0); rb_define_method(rb_cString, "sum", rb_str_sum, -1); rb_define_global_function("sub", rb_f_sub, -1); rb_define_global_function("gsub", rb_f_gsub, -1); rb_define_global_function("sub!", rb_f_sub_bang, -1); rb_define_global_function("gsub!", rb_f_gsub_bang, -1); rb_define_global_function("chop", rb_f_chop, 0); rb_define_global_function("chop!", rb_f_chop_bang, 0); rb_define_global_function("chomp", rb_f_chomp, -1); rb_define_global_function("chomp!", rb_f_chomp_bang, -1); rb_define_global_function("split", rb_f_split, -1); rb_define_global_function("scan", rb_f_scan, 1);*/ stringClass.defineMethod("slice", getMethodSlice()); /*rb_define_method(rb_cString, "slice!", rb_str_slice_bang, -1); id_to_s = rb_intern("to_s"); rb_fs = Qnil; rb_define_hooked_variable("$;", &rb_fs, 0, rb_str_setter); rb_define_hooked_variable("$-F", &rb_fs, 0, rb_str_setter);*/ return stringClass; } | 1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RbString.java/buggy/org/jruby/core/RbString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
54,
10340,
797,
2932,
799,
10207,
7923,
1769,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
54,
10340,
797,
2932,
799,
10207,
7923,
1769,
533,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
54,
10340,
797,
2932,
799,
10207,
7923,
1769,
533,
797,
18,
6702,
3120,
12,
27768,
18,
588,
54,
10340,
797,
2932,
799,
10207,
7923,
1769,
533,
7... | |
ICElement elem= project.findElement(file.getFullPath()); if (elem instanceof ITranslationUnit) { ITranslationUnit tu= (ITranslationUnit) elem; if (tu != null) { return tu.getAST(index, ITranslationUnit.AST_SKIP_INDEXED_HEADERS); } } fail("Could not create ast for " + file.getFullPath()); return null; | return TestSourceReader.createIndexBasedAST(index, project, file); | protected IASTTranslationUnit createIndexBasedAST(IIndex index, ICProject project, IFile file) throws CModelException, CoreException { ICElement elem= project.findElement(file.getFullPath()); if (elem instanceof ITranslationUnit) { ITranslationUnit tu= (ITranslationUnit) elem; if (tu != null) { return tu.getAST(index, ITranslationUnit.AST_SKIP_INDEXED_HEADERS); } } fail("Could not create ast for " + file.getFullPath()); return null; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/525d297214005c520c0fe08bf649d2f853fad98e/BaseUITestCase.java/buggy/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/BaseUITestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
467,
9053,
6717,
2802,
25207,
9802,
9053,
12,
45,
1016,
770,
16,
26899,
4109,
1984,
16,
467,
812,
585,
13,
1216,
385,
1488,
503,
16,
30015,
288,
377,
202,
2871,
1046,
3659,
33,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
9053,
6717,
2802,
25207,
9802,
9053,
12,
45,
1016,
770,
16,
26899,
4109,
1984,
16,
467,
812,
585,
13,
1216,
385,
1488,
503,
16,
30015,
288,
377,
202,
2871,
1046,
3659,
33,
19... |
final List inspectionClasses = m_inspectionClasses; | final List<Class> inspectionClasses = m_inspectionClasses; | private void registerMethodMetricsInspections(){ final List inspectionClasses = m_inspectionClasses; inspectionClasses.add(ThreeNegationsPerMethodInspection.class); inspectionClasses.add(MethodWithMultipleLoopsInspection.class); inspectionClasses.add(MultipleReturnPointsPerMethodInspection.class); inspectionClasses.add(ThrownExceptionsPerMethodInspection.class); inspectionClasses.add(ParametersPerMethodInspection.class); inspectionClasses.add(CyclomaticComplexityInspection.class); inspectionClasses.add(NestingDepthInspection.class); inspectionClasses.add(NonCommentSourceStatementsInspection.class); inspectionClasses.add(MethodCouplingInspection.class); } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/2d46d291193579a7564649b4881c7ea8e02eda5b/InspectionGadgetsPlugin.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/InspectionGadgetsPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1744,
1305,
5653,
14985,
87,
1435,
95,
3639,
727,
987,
32,
797,
34,
2763,
7017,
4818,
273,
312,
67,
2679,
7017,
4818,
31,
3639,
2763,
7017,
4818,
18,
1289,
12,
28019,
14337,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
1305,
5653,
14985,
87,
1435,
95,
3639,
727,
987,
32,
797,
34,
2763,
7017,
4818,
273,
312,
67,
2679,
7017,
4818,
31,
3639,
2763,
7017,
4818,
18,
1289,
12,
28019,
14337,
... |
def = testF2(file, offset); | def = testCtrl_F3(file, offset); | public void testNoDefinitions() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("extern int a1; // declares a\n"); //$NON-NLS-1$ buffer.append("extern const int c1; // declares c\n"); //$NON-NLS-1$ buffer.append("int f1(int); // declares f\n"); //$NON-NLS-1$ buffer.append("struct S1; // declares S\n"); //$NON-NLS-1$ buffer.append("typedef int Int; // declares Int\n"); //$NON-NLS-1$ String code = buffer.toString(); IFile file = importFile("testNoDefinitions.c", code); //$NON-NLS-1$ int offset = code.indexOf("a1; // declares a"); //$NON-NLS-1$ IASTNode def = testF2(file, offset); IASTNode decl = testF3(file, offset); try { assertNull(def); // TODO raised bug 96689 assertTrue(false); // try/catch/assertTrue(false) added to alert the tester when this test passes! } catch (AssertionFailedError e) {} assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "a1"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 11); assertEquals(((ASTNode)decl).getLength(), 2); offset = code.indexOf("c1; // declares c"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); try { assertNull(def); // TODO raised bug 96689 assertTrue(false); // try/catch/assertTrue(false) added to alert the tester when this test passes! } catch (AssertionFailedError e) {} assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "c1"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 46); assertEquals(((ASTNode)decl).getLength(), 2); offset = code.indexOf("f1(int); // declares f"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertNull(def); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "f1"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 68); assertEquals(((ASTNode)decl).getLength(), 2); offset = code.indexOf("S1; // declares S"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); try { assertNull(def); // TODO raised bug 96690 assertTrue(false); // try/catch/assertTrue(false) added to alert the tester when this test passes! } catch (AssertionFailedError e) {} assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "S1"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 98); assertEquals(((ASTNode)decl).getLength(), 2); offset = code.indexOf("Int; // declares Int"); //$NON-NLS-1$ def = testF2(file, offset); decl = testF3(file, offset); assertTrue(def instanceof IASTName); assertTrue(decl instanceof IASTName); assertEquals(((IASTName)decl).toString(), "Int"); //$NON-NLS-1$ assertEquals(((ASTNode)decl).getOffset(), 128); assertEquals(((ASTNode)decl).getLength(), 3); assertEquals(((IASTName)def).toString(), "Int"); //$NON-NLS-1$ assertEquals(((ASTNode)def).getOffset(), 128); assertEquals(((ASTNode)def).getLength(), 3); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a80f774ac034fed44b578ede9c708e773e1fabcf/CPPSelectionTestsCTagsIndexer.java/clean/core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/selectiontests/CPPSelectionTestsCTagsIndexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2279,
7130,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
338,
798,
509,
279,
21,
31,
368,
3496,
4807,
279... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
2279,
7130,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
338,
798,
509,
279,
21,
31,
368,
3496,
4807,
279... |
return 0; | return 0; | public int $tag() { return 0; } | 5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/27b51e096e467f35a33e37e0191031477ea9ba8b/Array.java/buggy/sources/scala/Array.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
271,
2692,
1435,
288,
377,
202,
2463,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
271,
2692,
1435,
288,
377,
202,
2463,
374,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
IASTExpression firstExpression, IASTExpression secondExpression, int lastOffset) { IASTBinaryExpression result = createBinaryExpression(); result.setOperator(operator); int o = ((ASTNode) firstExpression).getOffset(); ((ASTNode) result).setOffsetAndLength(o, lastOffset - o); result.setOperand1(firstExpression); firstExpression.setParent(result); firstExpression.setPropertyInParent(IASTBinaryExpression.OPERAND_ONE); result.setOperand2(secondExpression); secondExpression.setParent(result); secondExpression.setPropertyInParent(IASTBinaryExpression.OPERAND_TWO); return result; } | IASTExpression firstExpression, IASTExpression secondExpression, int lastOffset) { IASTBinaryExpression result = createBinaryExpression(); result.setOperator(operator); int o = ((ASTNode) firstExpression).getOffset(); ((ASTNode) result).setOffsetAndLength(o, lastOffset - o); result.setOperand1(firstExpression); firstExpression.setParent(result); firstExpression.setPropertyInParent(IASTBinaryExpression.OPERAND_ONE); result.setOperand2(secondExpression); secondExpression.setParent(result); secondExpression.setPropertyInParent(IASTBinaryExpression.OPERAND_TWO); return result; } | protected IASTExpression buildBinaryExpression(int operator, IASTExpression firstExpression, IASTExpression secondExpression, int lastOffset) { IASTBinaryExpression result = createBinaryExpression(); result.setOperator(operator); int o = ((ASTNode) firstExpression).getOffset(); ((ASTNode) result).setOffsetAndLength(o, lastOffset - o); result.setOperand1(firstExpression); firstExpression.setParent(result); firstExpression.setPropertyInParent(IASTBinaryExpression.OPERAND_ONE); result.setOperand2(secondExpression); secondExpression.setParent(result); secondExpression.setPropertyInParent(IASTBinaryExpression.OPERAND_TWO); return result; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/98145350e052e39e57313251e0f805a20472a08d/AbstractGNUSourceCodeParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/AbstractGNUSourceCodeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
2300,
1361,
5905,
2300,
12,
474,
3726,
16,
540,
467,
9053,
2300,
1122,
2300,
16,
467,
9053,
2300,
2205,
2300,
16,
540,
509,
1142,
2335,
13,
288,
1377,
467,
9053,
5905,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
467,
9053,
2300,
1361,
5905,
2300,
12,
474,
3726,
16,
540,
467,
9053,
2300,
1122,
2300,
16,
467,
9053,
2300,
2205,
2300,
16,
540,
509,
1142,
2335,
13,
288,
1377,
467,
9053,
5905,
... |
Reader in = new InputStreamReader(new CheckedInputStream(new FileInputStream(classes[i]), checksum), "8859_1") ; | Reader in = new InputStreamReader(new CheckedInputStream(new FileInputStream(files[i]), checksum), "8859_1") ; | public void checksumDirectory(File dir, ServletOutputStream out) throws java.io.IOException { Perl5Util perl = new Perl5Util() ; // Get all .class-files in /WEB-INF/classes File[] classes = dir.listFiles(this) ; // Loop through the classfiles and get a checksum for each. for (int i = 0; i < classes.length; ++i) { out.print(classes[i].getPath().substring(classes_path.length())+' ') ; Checksum checksum = new CRC32() ; int class_length = (int)classes[i].length() ; char[] buffer = new char[BUFFERLENGTH] ; Reader in = new InputStreamReader(new CheckedInputStream(new FileInputStream(classes[i]), checksum), "8859_1") ; StringBuffer file_buffer = new StringBuffer() ; // Read the classfile, and have the inputstream compute the checksum as we go. for (int read; -1 != (read = in.read(buffer,0,BUFFERLENGTH));) { file_buffer.append(buffer, 0, read) ; } ; // Find and print the revision. if (perl.match("/\\$"+"Revision: (\\d(?:\\.\\d)+) "+"\\$/",file_buffer.toString())) { String revision = perl.group(1) ; out.print(revision+' ') ; } else { out.print("Unknown ") ; } // Find and print the date. if (perl.match("/\\$"+"Date: (\\S+)\\s+(\\S+) "+"\\$/",file_buffer.toString())) { String date = perl.group(1) ; String time = perl.group(2) ; out.print(date+' '+time+' ') ; } else { out.print("Unknown ") ; } // Print the checksum. out.println(checksum.getValue()) ; } File[] subdirs = dir.listFiles(new DirectoryFilter()) ; for (int i = 0; i < subdirs.length; ++i) { checksumDirectory(subdirs[i],out) ; } } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/fc971a19ca56698895763a90c450e521bfa86013/Version.java/buggy/servlets/Version.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
6697,
2853,
12,
812,
1577,
16,
7971,
4632,
596,
13,
1216,
2252,
18,
1594,
18,
14106,
288,
202,
2173,
80,
25,
1304,
1534,
80,
273,
394,
5722,
80,
25,
1304,
1435,
274,
202,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6697,
2853,
12,
812,
1577,
16,
7971,
4632,
596,
13,
1216,
2252,
18,
1594,
18,
14106,
288,
202,
2173,
80,
25,
1304,
1534,
80,
273,
394,
5722,
80,
25,
1304,
1435,
274,
202,
7... |
System.out.println("Register: " + token); | public static void registerEditor(String token, Class editorClass) { initialize(); System.out.println("Register: " + token); // Register the new editor class with the given token if (editorClass != null) { if(mEditors.containsKey(token)) { System.out.println("contains key: " + token); java.util.List editorList = (java.util.List)mEditors.get(token); if(!editorList.contains(editorClass)) { System.out.println("new to List: " + token); editorList.add(editorClass); } } else { System.out.println("New token: " + token); java.util.List editorList = new ArrayList(); editorList.add(editorClass); mEditors.put(token, editorList); } } // We have been asked to remove the editor under the given token else { mEditors.remove(token); } System.out.println("Map: " + mEditors); } | 49828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49828/15408765d1cf4b1f195e39bef157bdf11e34d719/CustomEditorRegistry.java/buggy/modules/jackal/editors/org/vrjuggler/jccl/editors/CustomEditorRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
760,
918,
1744,
6946,
12,
780,
1147,
16,
1659,
4858,
797,
13,
282,
288,
1377,
4046,
5621,
8227,
368,
5433,
326,
394,
4858,
667,
598,
326,
864,
1147,
1377,
309,
261,
9177,
797,
480... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1744,
6946,
12,
780,
1147,
16,
1659,
4858,
797,
13,
282,
288,
1377,
4046,
5621,
8227,
368,
5433,
326,
394,
4858,
667,
598,
326,
864,
1147,
1377,
309,
261,
9177,
797,
480... | |
return attributeMaps[columnIndex].get(element).toString(); | Object result = attributeMaps[columnIndex].get(element); return result == null ? "" : result.toString(); | public String getColumnText(Object element, int columnIndex) { if (columnIndex < attributeMaps.length) { return attributeMaps[columnIndex].get(element).toString(); } return null; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1cfd7a35651cc6f1b8f35bc08a2de3b1ee1ba52b/ObservableMapLabelProvider.java/buggy/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/databinding/viewers/ObservableMapLabelProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6716,
1528,
12,
921,
930,
16,
509,
14882,
13,
288,
202,
202,
430,
261,
2827,
1016,
411,
1566,
8903,
18,
2469,
13,
288,
1082,
202,
2463,
1566,
8903,
63,
2827,
1016,
8009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
6716,
1528,
12,
921,
930,
16,
509,
14882,
13,
288,
202,
202,
430,
261,
2827,
1016,
411,
1566,
8903,
18,
2469,
13,
288,
1082,
202,
2463,
1566,
8903,
63,
2827,
1016,
8009,
... |
super(children, next, format, lang, letterValue, groupingSeparator, groupingSize); | super(format, lang, letterValue, groupingSeparator, groupingSize); | NodeNumberNode(TemplateNode children, TemplateNode next, int level, Pattern count, Pattern from, TemplateNode format, String lang, int letterValue, String groupingSeparator, int groupingSize) { super(children, next, format, lang, letterValue, groupingSeparator, groupingSize); this.level = level; this.count = count; this.from = from; } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/363fe84fd732aa8ca3562fb0734fe48ee20c2c65/NodeNumberNode.java/buggy/libraries/javalib/gnu/xml/transform/NodeNumberNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
2029,
1854,
907,
12,
2283,
907,
2325,
16,
5035,
907,
1024,
16,
1171,
509,
1801,
16,
6830,
1056,
16,
6830,
628,
16,
1171,
5035,
907,
740,
16,
514,
3303,
16,
1171,
509,
9471,
620,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
1854,
907,
12,
2283,
907,
2325,
16,
5035,
907,
1024,
16,
1171,
509,
1801,
16,
6830,
1056,
16,
6830,
628,
16,
1171,
5035,
907,
740,
16,
514,
3303,
16,
1171,
509,
9471,
620,
16,
5... |
vnChildren = new HashMap<String, VNObject>(); | vnChildren = new ConcurrentHashMap<String, VNObject>(); | public WorldObject() { super(null); vnChildren = new HashMap<String, VNObject>(); monitorThread = new MonitorThread(this); addObserver(monitorThread); // Record the model this.name = ModelRecorder.getInstance().addModel(this); } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/64a00b6d313fc2b3680346148d1257ba4095e408/WorldObject.java/buggy/ic2d-plugins/org.objectweb.proactive.ic2d.monitoring/src/org/objectweb/proactive/ic2d/monitoring/data/WorldObject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21820,
921,
1435,
288,
3639,
2240,
12,
2011,
1769,
3639,
21732,
4212,
273,
394,
15242,
8658,
32,
780,
16,
776,
50,
921,
34,
5621,
3639,
6438,
3830,
273,
394,
14086,
3830,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21820,
921,
1435,
288,
3639,
2240,
12,
2011,
1769,
3639,
21732,
4212,
273,
394,
15242,
8658,
32,
780,
16,
776,
50,
921,
34,
5621,
3639,
6438,
3830,
273,
394,
14086,
3830,
12,
... |
private void createEJBComponent(IDataModel model, IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException, ExecutionException{ | private void createEJBComponent(IDataModel model, IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException, ExecutionException { | private void createEJBComponent(IDataModel model, IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException, ExecutionException{ model.getDefaultOperation().execute(monitor, null); WTPActivityBridge.getInstance().enableActivity(ENTERPRISE_JAVA, true); } | 8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/69dc33207fffb43ed93751e41f68ea1bbcfc9363/DefaultJ2EEComponentCreationOp.java/buggy/plugins/org.eclipse.jst.j2ee/earproject/org/eclipse/jst/j2ee/application/internal/operations/DefaultJ2EEComponentCreationOp.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
22719,
1841,
12,
734,
396,
1488,
938,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
16,
15342,
16,
7558,
16,
20205,
288,
3639,
938,
18,
588,
1868,
2988,
7675,
8837,
12,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
22719,
1841,
12,
734,
396,
1488,
938,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
16,
15342,
16,
7558,
16,
20205,
288,
3639,
938,
18,
588,
1868,
2988,
7675,
8837,
12,
10... |
private AnAction getActionImpl(String id, boolean canReturnStub) { AnAction action = (AnAction)myId2Action.get(id); if (!canReturnStub && action instanceof ActionStub) { action = convert((ActionStub)action); } return action; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
979,
1803,
588,
1803,
2828,
12,
780,
350,
16,
6494,
4169,
990,
11974,
15329,
979,
1803,
1128,
28657,
979,
1803,
13,
4811,
548,
22,
1803,
18,
588,
12,
350,
1769,
430,
12,
5,
4169,
990,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
979,
1803,
588,
1803,
2828,
12,
780,
350,
16,
6494,
4169,
990,
11974,
15329,
979,
1803,
1128,
28657,
979,
1803,
13,
4811,
548,
22,
1803,
18,
588,
12,
350,
1769,
430,
12,
5,
4169,
990,
... | ||
tuple[2] = r.getBytes(1); tuple[3] = null; | tuple[2] = r.getBytes(1); tuple[3] = relKind.getBytes(); | public java.sql.ResultSet getTables(String catalog, String schemaPattern, String tableNamePattern, String types[]) throws SQLException { // Handle default value for types if(types==null) types = defaultTableTypes; if(tableNamePattern==null) tableNamePattern="%"; // the field descriptors for the new ResultSet Field f[] = new Field[5]; java.sql.ResultSet r; // ResultSet for the SQL query that we need to do Vector v = new Vector(); // The new ResultSet tuple stuff f[0] = new Field(connection, new String("TABLE_CAT"), iVarcharOid, 32); f[1] = new Field(connection, new String("TABLE_SCHEM"), iVarcharOid, 32); f[2] = new Field(connection, new String("TABLE_NAME"), iVarcharOid, 32); f[3] = new Field(connection, new String("TABLE_TYPE"), iVarcharOid, 32); f[4] = new Field(connection, new String("REMARKS"), iVarcharOid, 32); // Now form the query StringBuffer sql = new StringBuffer("select relname,oid from pg_class where ("); boolean notFirst=false; for(int i=0;i<types.length;i++) { for(int j=0;j<getTableTypes.length;j++) if(getTableTypes[j][0].equals(types[i])) { if(notFirst) sql.append(" or "); sql.append(getTableTypes[j][1]); notFirst=true; } } // Added by Stefan Andreasen <stefan@linux.kapow.dk> // Now take the pattern into account sql.append(") and relname like '"); sql.append(tableNamePattern.toLowerCase()); sql.append("'"); // Now run the query r = connection.ExecSQL(sql.toString()); byte remarks[]; while (r.next()) { byte[][] tuple = new byte[5][0]; // Fetch the description for the table (if any) java.sql.ResultSet dr = connection.ExecSQL("select description from pg_description where objoid="+r.getInt(2)); if(((org.postgresql.ResultSet)dr).getTupleCount()==1) { dr.next(); remarks = dr.getBytes(1); } else remarks = defaultRemarks; dr.close(); tuple[0] = null; // Catalog name tuple[1] = null; // Schema name tuple[2] = r.getBytes(1); // Table name tuple[3] = null; // Table type tuple[4] = remarks; // Remarks v.addElement(tuple); } r.close(); return new ResultSet(connection, f, v, "OK", 1); } | 46597 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46597/4f5cdadf03ae97de4fbd9ef90e15a080291b6a13/DatabaseMetaData.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
29002,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
1953,
63,
5717,
1216,
6483,
225,
288,
565,
368,
5004,
805,
460,
364,
1953,
565,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2252,
18,
4669,
18,
13198,
29002,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
1953,
63,
5717,
1216,
6483,
225,
288,
565,
368,
5004,
805,
460,
364,
1953,
565,... |
if (size() == 0) arrayList.add(new Paragraph(0)); | if (size() == 0) arrayList.add(new Paragraph(0)); | void fill() { if (size() == 0) arrayList.add(new Paragraph(0)); } | 3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/ed86dfb474e6fa22e1797452482e751a297a7e1f/Cell.java/clean/itext/src/com/lowagie/text/Cell.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3636,
1435,
288,
3639,
309,
261,
1467,
1435,
422,
374,
13,
526,
682,
18,
1289,
12,
2704,
24963,
12,
20,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
3636,
1435,
288,
3639,
309,
261,
1467,
1435,
422,
374,
13,
526,
682,
18,
1289,
12,
2704,
24963,
12,
20,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
{if (true) return new ZimbraQuery.ConjQuery(mAnalyzer, OR_TOKEN);} | {if (true) return new ZimbraQuery.ConjQuery(mAnalyzer, OR_TOKEN);} | final public ZimbraQuery.BaseQuery Conjunction() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AND_TOKEN: jj_consume_token(AND_TOKEN); {if (true) return new ZimbraQuery.ConjQuery(mAnalyzer, AND_TOKEN);} break; case OR_TOKEN: jj_consume_token(OR_TOKEN); {if (true) return new ZimbraQuery.ConjQuery(mAnalyzer, OR_TOKEN);} break; default: jj_la1[0] = jj_gen; {if (true) return new ZimbraQuery.ConjQuery(mAnalyzer, AND_TOKEN);} } throw new Error("Missing return statement in function"); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/a07eda4fc014f2ae97dbf008b9ff80eb06a01f69/ZimbraQueryParser.java/clean/ZimbraServer/src/java/com/zimbra/cs/index/queryparser/ZimbraQueryParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
2285,
381,
15397,
1138,
18,
2171,
1138,
735,
18323,
1435,
1216,
10616,
288,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
2285,
381,
15397,
1138,
18,
2171,
1138,
735,
18323,
1435,
1216,
10616,
288,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67... |
edu.umd.cs.findbugs.DetectorFactoryCollection detectorFactoryCollection = edu.umd.cs.findbugs.DetectorFactoryCollection.instance(); | DetectorFactoryCollection detectorFactoryCollection = DetectorFactoryCollection.instance(); | public static void main(String[] argv) throws Exception { edu.umd.cs.findbugs.DetectorFactoryCollection detectorFactoryCollection = edu.umd.cs.findbugs.DetectorFactoryCollection.instance(); ExecutionPlan execPlan = new ExecutionPlan(); for (int i = 0; i < argv.length; ++i) { String pluginId = argv[i]; Plugin plugin = detectorFactoryCollection.getPluginById(pluginId); if (plugin != null) execPlan.addPlugin(plugin); } execPlan.build(); System.out.println(execPlan.passList.size() + " passes in plan"); execPlan.print(); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/0ba81732c993ba2c58fc042e1039b133bc06a9b9/ExecutionPlan.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/plan/ExecutionPlan.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
12594,
1733,
2532,
13826,
1733,
2532,
273,
1082,
202,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
2774,
12,
780,
8526,
5261,
13,
1216,
1185,
288,
202,
202,
28049,
18,
379,
72,
18,
2143,
18,
4720,
19381,
18,
12594,
1733,
2532,
13826,
1733,
2532,
273,
1082,
202,
28... |
public org.quickfix.field.SecurityIDSource getSecurityIDSource() throws FieldNotFound { org.quickfix.field.SecurityIDSource value = new org.quickfix.field.SecurityIDSource(); | public quickfix.field.SecurityIDSource getSecurityIDSource() throws FieldNotFound { quickfix.field.SecurityIDSource value = new quickfix.field.SecurityIDSource(); | public org.quickfix.field.SecurityIDSource getSecurityIDSource() throws FieldNotFound { org.quickfix.field.SecurityIDSource value = new org.quickfix.field.SecurityIDSource(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequestReject.java/clean/src/java/src/quickfix/fix44/QuoteRequestReject.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
1830,
19288,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
1830,
460,
273,
394,
2358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
1830,
19288,
734,
1830,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
734,
1830,
460,
273,
394,
2358,
... |
public List calculateIntervalBalance(DateInterval interval) { System.out.println("Calculate interval balance"); List<DailyBalance> dailyBalanceList = new ArrayList<DailyBalance>(); List<Schedule> scheduleList = getSchedulesWithInterval(interval); // todos os Schedules dentro do intervalo validInterval // para cada dia do intervalo ver q horario esta definido nesse dia for (YearMonthDay date = interval.getStartDate(); isDateInInterval(date, interval) ; date = date.plusDays(1)) { // percorrer os schedules (tipicamente ha' 1 mas pode haver varios...) //System.out.println("percorrer os dias do intervalo"); for (Schedule schedule: scheduleList) { // para cada schedule... WorkSchedule workSchedule = schedule.workScheduleWithDate(date); // ...ve que Work Schedule esta' definido nesse dia DailyBalance dailyBalance = new DailyBalance(date, workSchedule); if (workSchedule != null) { // ha horario neste dia System.out.println("horario:" + workSchedule.getWorkScheduleType().getAcronym()); dailyBalance.setWorkSchedule(workSchedule); List<Clocking> clockingList = validClockingsWithDate(date); List<Leave> leaveList = leavesWithDate(date); List<MissingClocking> missingClockingList = missingClockingsWithDate(date); if (clockingList.size() > 0) { dailyBalance.setClockingList(clockingList); } if (leaveList.size() > 0) { dailyBalance.setLeaveList(leaveList); } if (missingClockingList.size() > 0) { dailyBalance.setMissingClockingList(missingClockingList); // see if this is really necessary addMissingClockingsToClockingList(clockingList, missingClockingList); } dailyBalance = calculateDailyBalance(date, workSchedule, clockingList, leaveList); dailyBalanceList.add(dailyBalance); } else { // nao ha horario neste dia => sabado ou domingo // neste caso devia ter info de DSC e DS? // TODO ver esta situacao } } } return dailyBalanceList; } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/bbb1a7c6390fd8a4e299444c3df5310482ad8ad0/Assiduousness.java/clean/src/net/sourceforge/fenixedu/domain/assiduousness/Assiduousness.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
682,
11162,
4006,
13937,
12,
1626,
4006,
6624,
15329,
3163,
18,
659,
18,
8222,
2932,
8695,
6624,
12296,
8863,
202,
202,
682,
32,
40,
12857,
13937,
34,
26790,
13937,
682,
33,
2704,
19558,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
682,
11162,
4006,
13937,
12,
1626,
4006,
6624,
15329,
3163,
18,
659,
18,
8222,
2932,
8695,
6624,
12296,
8863,
202,
202,
682,
32,
40,
12857,
13937,
34,
26790,
13937,
682,
33,
2704,
19558,
... | ||
Main.StackFrame frame = contextData.getFrame(i); | Dim.StackFrame frame = contextData.getFrame(i); | void enterInterruptImpl(Main.StackFrame lastFrame, String threadTitle, String alertMessage) { statusBar.setText("Thread: " + threadTitle); showStopLine(lastFrame); if (alertMessage != null) { MessageDialogWrapper.showMessageDialog(this, alertMessage, "Exception in Script", JOptionPane.ERROR_MESSAGE); } JMenu menu = getJMenuBar().getMenu(0); //menu.getItem(0).setEnabled(false); // File->Load menu = getJMenuBar().getMenu(2); menu.getItem(0).setEnabled(false); // Debug->Break int count = menu.getItemCount(); for (int i = 1; i < count; ++i) { menu.getItem(i).setEnabled(true); } boolean b = false; for (int ci = 0, cc = toolBar.getComponentCount(); ci < cc; ci++) { toolBar.getComponent(ci).setEnabled(b); b = true; } toolBar.setEnabled(true); // raise the debugger window toFront(); Main.ContextData contextData = lastFrame.contextData(); context.enable(); JComboBox ctx = context.context; Vector toolTips = context.toolTips; context.disableUpdate(); int frameCount = contextData.frameCount(); ctx.removeAllItems(); // workaround for JDK 1.4 bug that caches selected value even after // removeAllItems() is called ctx.setSelectedItem(null); toolTips.removeAllElements(); for (int i = 0; i < frameCount; i++) { Main.StackFrame frame = contextData.getFrame(i); String url = frame.getUrl(); int lineNumber = frame.getLineNumber(); String shortName = url; if (url.length() > 20) { shortName = "..." + url.substring(url.length() - 17); } String location = "\"" + shortName + "\", line " + lineNumber; ctx.insertItemAt(location, i); location = "\"" + url + "\", line " + lineNumber; toolTips.addElement(location); } context.enableUpdate(); ctx.setSelectedIndex(0); ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height)); } | 51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/402fd02406157693f66b2c8e6819e17c0b5b3e8a/DebugGui.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/DebugGui.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
6103,
14126,
2828,
12,
6376,
18,
2624,
3219,
1142,
3219,
16,
514,
2650,
4247,
16,
18701,
514,
6881,
1079,
13,
565,
288,
3639,
1267,
5190,
18,
542,
1528,
2932,
3830,
30,
315,
397,
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,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
6103,
14126,
2828,
12,
6376,
18,
2624,
3219,
1142,
3219,
16,
514,
2650,
4247,
16,
18701,
514,
6881,
1079,
13,
565,
288,
3639,
1267,
5190,
18,
542,
1528,
2932,
3830,
30,
315,
397,
2... |
if ( existingFrames.size() == 1 && StaticEntity.getClient() instanceof KoLmafiaGUI ) | if ( existingFrames.isEmpty() && StaticEntity.getClient() instanceof KoLmafiaGUI ) | public void dispose() { if ( isVisible() ) rememberPosition(); super.dispose(); // Determine which frame needs to be removed from // the maintained list of frames. existingFrames.remove( this ); KoLDesktop.removeTab( this ); if ( refreshListener != null ) KoLCharacter.removeCharacterListener( refreshListener ); // If the list of frames is now empty, make sure // you end the session. Ending the session for // a login frame involves exiting, and ending the // session for all other frames is calling main. if ( existingFrames.size() == 1 && StaticEntity.getClient() instanceof KoLmafiaGUI ) { StaticEntity.closeSession(); (new CreateFrameRunnable( LoginFrame.class )).run(); } } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/282a4b69b270dde14dc75d866de3ba4e81ee2e99/KoLFrame.java/clean/src/net/sourceforge/kolmafia/KoLFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
15825,
1435,
202,
95,
202,
202,
430,
261,
20453,
1435,
262,
1082,
202,
28155,
2555,
5621,
202,
202,
9565,
18,
2251,
4150,
5621,
202,
202,
759,
10229,
1492,
2623,
4260,
358,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15825,
1435,
202,
95,
202,
202,
430,
261,
20453,
1435,
262,
1082,
202,
28155,
2555,
5621,
202,
202,
9565,
18,
2251,
4150,
5621,
202,
202,
759,
10229,
1492,
2623,
4260,
358,... |
{ return new String("PostgreSQL"); } | { return new String("PostgreSQL"); } | public String getDatabaseProductName() throws SQLException { return new String("PostgreSQL"); } | 45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/clean/src/interfaces/jdbc/postgresql/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
11263,
4133,
461,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
394,
514,
2932,
3349,
23896,
8863,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
11263,
4133,
461,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
394,
514,
2932,
3349,
23896,
8863,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
}; } | public Calc compileCall(FunCall call, ExpCompiler compiler) { final MemberCalc memberCalc = compiler.compileMember(call.getArg(0)); return new AbstractMemberCalc(call, new Calc[] {memberCalc}) { public Member evaluateMember(Evaluator evaluator) { Member member = memberCalc.evaluateMember(evaluator); return memberParent(evaluator, member); } }; } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/5aca340e1cdbb6179077d96383341db48f0997be/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
29128,
4074,
1477,
12,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
7734,
727,
8596,
25779,
3140,
25779,
273,
13491,
5274,
18,
11100,
4419,
12,
1991,
18,
588,
4117,
12,
20,
100... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2398,
1071,
29128,
4074,
1477,
12,
22783,
1477,
745,
16,
7784,
9213,
5274,
13,
288,
7734,
727,
8596,
25779,
3140,
25779,
273,
13491,
5274,
18,
11100,
4419,
12,
1991,
18,
588,
4117,
12,
20,
100... | |
System.out.println("--[java]Utilities.callMethod "+mid); | Debug.log("--[java]Utilities.callMethod "+mid); | static Object callMethod(long oid, Method method, IID iid, long orb , Object[] args) { System.out.println("--[java]Utilities.callMethod "+method); int mid = InterfaceRegistry.getIndexByMethod(method, iid); if (mid < 0) { System.out.println("--[java]Utilities.callMethod we do not have implementation for "+method); return null; } System.out.println("--[java]Utilities.callMethod "+mid); return callMethodByIndex(oid,mid,iid.getString(), orb, args); } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/0ec50a33d49e7e7182932acd9d83c0fb542f60a7/Utilities.java/clean/java/xpcom/java/classes/org/mozilla/xpcom/Utilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
745,
1305,
12,
5748,
7764,
16,
2985,
707,
16,
467,
734,
22819,
16,
1525,
16823,
269,
1033,
8526,
833,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
413,
63,
6290,
65,
11864,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
745,
1305,
12,
5748,
7764,
16,
2985,
707,
16,
467,
734,
22819,
16,
1525,
16823,
269,
1033,
8526,
833,
13,
288,
3639,
2332,
18,
659,
18,
8222,
2932,
413,
63,
6290,
65,
11864,
... |
NewSearchUI.activateSearchResultView(); | public boolean performAction() { if (repository == null) { MessageDialog.openInformation(Display.getCurrent().getActiveShell(), IBugzillaConstants.TITLE_MESSAGE_DIALOG, TaskRepositoryManager.MESSAGE_NO_REPOSITORY); return false; } if (restoreQueryOptions) { saveWidgetValues(); } getPatternData(summaryPattern, summaryOperation, previousSummaryPatterns); getPatternData(commentPattern, commentOperation, previousCommentPatterns); getPatternData(this.emailPattern, emailOperation, previousEmailPatterns); // try { // // if the summary contains a single bug id, open the bug directly // int id = Integer.parseInt(summaryText); // return BugzillaUITools.show(repository.getUrl(), id); // } catch (NumberFormatException ignored) { // // ignore this since this means that the text is not a bug id // } // Don't activate the search result view until it is known that the // user is not opening a bug directly -- there is no need to open // the view if no searching is going to take place. NewSearchUI.activateSearchResultView(); String summaryText = summaryPattern.getText(); BugzillaUiPlugin.getDefault().getPreferenceStore().setValue(IBugzillaConstants.MOST_RECENT_QUERY, summaryText); Proxy proxySettings = TasksUiPlugin.getDefault().getProxySettings(); SearchHitCollector collector = new SearchHitCollector(TasksUiPlugin.getTaskListManager().getTaskList(), repository, getQuery(), proxySettings); NewSearchUI.runQueryInBackground(collector); return true; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/7293e72ccee6f264444d7a1379f64c86a8e482f6/BugzillaSearchPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
1803,
1435,
288,
202,
202,
430,
261,
9071,
422,
446,
13,
288,
1082,
202,
1079,
6353,
18,
3190,
5369,
12,
4236,
18,
588,
3935,
7675,
588,
3896,
13220,
9334,
6862,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
3073,
1803,
1435,
288,
202,
202,
430,
261,
9071,
422,
446,
13,
288,
1082,
202,
1079,
6353,
18,
3190,
5369,
12,
4236,
18,
588,
3935,
7675,
588,
3896,
13220,
9334,
6862,
2... | |
public ConditionalPermissions(AbstractBundle bundle) { | public ConditionalPermissions(AbstractBundle bundle, ConditionalPermissionAdmin cpa) { | public ConditionalPermissions(AbstractBundle bundle) { this.bundle = bundle; } | 2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/01aac89082512e7fd6ce97bdb4c9036f4da4c24f/ConditionalPermissions.java/clean/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ConditionalPermissions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
22466,
6521,
12,
7469,
3405,
3440,
13,
288,
202,
202,
2211,
18,
9991,
273,
3440,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
22466,
6521,
12,
7469,
3405,
3440,
13,
288,
202,
202,
2211,
18,
9991,
273,
3440,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Object o = getItemDetails((AbstractSearchItem) element); | Object o = getItemDetails((AbstractListItem) element); | private void refreshDetails() { StructuredSelection selection = (StructuredSelection) list .getSelection(); if (selection.size() == 1) { Object element = selection.getFirstElement(); if (element instanceof SearchListSeparator) { detailsContentProvider.setElements(new Object[0]); details.getTable().setEnabled(false); } else { Object o = getItemDetails((AbstractSearchItem) element); detailsContentProvider.setElements(new Object[] { o }); details.getTable().setEnabled(true); } } else { detailsContentProvider.setElements(new Object[0]); details.getTable().setEnabled(false); } details.refresh(); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/f6a6b077cb5b91dfa306af0b33ea1a4ed7445674/FilteredItemsSelectionDialog.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/FilteredItemsSelectionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
4460,
3790,
1435,
288,
202,
202,
30733,
6233,
4421,
273,
261,
30733,
6233,
13,
666,
9506,
202,
18,
588,
6233,
5621,
202,
202,
430,
261,
10705,
18,
1467,
1435,
422,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4460,
3790,
1435,
288,
202,
202,
30733,
6233,
4421,
273,
261,
30733,
6233,
13,
666,
9506,
202,
18,
588,
6233,
5621,
202,
202,
430,
261,
10705,
18,
1467,
1435,
422,
404,
... |
editButton.setText( JdbcPlugin.getResourceString( "driverManagerDialog.text.Edit" ) ); | editButton.setText( TEXT_EDITBUTTON ); | private void addDriverPage( TabFolder tabFolder ) { Composite page = new Composite( tabFolder, SWT.NONE ); GridLayout layout = new GridLayout( ); layout.marginHeight = 10; layout.marginWidth = 10; layout.verticalSpacing = 5; page.setLayout( layout ); page.setLayoutData( new GridData( GridData.FILL_BOTH ) ); final Table table = new Table( page, SWT.BORDER | SWT.FULL_SELECTION ); GridData data = new GridData( GridData.FILL_BOTH ); table.setLayoutData( data ); table.setHeaderVisible( true ); table.setLinesVisible( true ); TableLayout tableLayout = new TableLayout( ); table.setLayout( tableLayout ); TableColumn column0 = new TableColumn( table, SWT.NONE ); column0.setWidth( 20 ); TableColumn column1 = new TableColumn( table, SWT.NONE ); column1.setText( JdbcPlugin.getResourceString( "driverManagerDialog.text.driverColumnClassName" ) ); //$NON-NLS-1$ column1.setWidth( 300 ); column1.addSelectionListener(new SelectionListener( ) { private boolean asc = false; public void widgetSelected( SelectionEvent e ) { sortDriver( 1, asc ); asc = !asc; } public void widgetDefaultSelected( SelectionEvent e ) { widgetSelected( e ); } } ); TableColumn column2 = new TableColumn( table, SWT.NONE ); column2.setText( JdbcPlugin.getResourceString( "driverManagerDialog.text.driverColumnDisplayName" ) ); //$NON-NLS-1$ column2.setWidth( 100 ); column2.addSelectionListener( new SelectionListener( ) { private boolean asc = false; public void widgetSelected( SelectionEvent e ) { sortDriver( 2, asc ); asc = !asc; } public void widgetDefaultSelected( SelectionEvent e ) { widgetSelected( e ); } } ); TableColumn column3 = new TableColumn( table, SWT.NONE ); column3.setText( JdbcPlugin.getResourceString( "driverManagerDialog.text.driverColumnTemplate" ) ); //$NON-NLS-1$ column3.setWidth( 100 ); column3.addSelectionListener( new SelectionListener( ) { private boolean asc = false; public void widgetSelected( SelectionEvent e ) { sortDriver( 3, asc ); asc = !asc; } public void widgetDefaultSelected( SelectionEvent e ) { widgetSelected( e ); } } ); driverViewer = new TableViewer( table ); driverViewer.setContentProvider( new IStructuredContentProvider( ) { public Object[] getElements( Object inputElement ) { if ( inputElement instanceof Map ) { return ( (Map) inputElement ).entrySet( ).toArray( ); } return new Object[0]; } public void inputChanged( Viewer viewer, Object oldInput, Object newInput ) { } public void dispose( ) { } } ); driverViewer.setSorter( null ); driverViewer.addSelectionChangedListener( new ISelectionChangedListener( ) { public void selectionChanged( SelectionChangedEvent event ) { updateDriverButtons( ); } } ); driverViewer.addDoubleClickListener( new IDoubleClickListener( ) { public void doubleClick( DoubleClickEvent event ) { editDriver( ); } } ); Composite buttons = new Composite( page, SWT.NONE ); buttons.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING ) ); layout = new GridLayout( ); layout.numColumns = 2; layout.marginHeight = 0; layout.marginWidth = 0; buttons.setLayout( layout ); editButton = new Button( buttons, SWT.PUSH ); editButton.setText( JdbcPlugin.getResourceString( "driverManagerDialog.text.Edit" ) ); //$NON-NLS-1$ data = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING ); data.widthHint = btnWidth; data.heightHint = btnHeight; editButton.setLayoutData( data ); editButton.addSelectionListener( new SelectionAdapter( ) { public void widgetSelected( SelectionEvent e ) { editDriver( ); } } ); TabItem tabItem = new TabItem( tabFolder, SWT.NONE ); tabItem.setControl( page ); tabItem.setText( JdbcPlugin.getResourceString( "driverManagerDialog.text.Drivers" ) ); //$NON-NLS-1$ } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/b32dbfd0ecc09ecfa679fe1f808271a7338096d9/JdbcDriverManagerDialog.java/clean/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/dialogs/JdbcDriverManagerDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
527,
4668,
1964,
12,
9483,
3899,
3246,
3899,
262,
202,
95,
202,
202,
9400,
1363,
273,
394,
14728,
12,
3246,
3899,
16,
348,
8588,
18,
9826,
11272,
202,
202,
6313,
3744,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
4668,
1964,
12,
9483,
3899,
3246,
3899,
262,
202,
95,
202,
202,
9400,
1363,
273,
394,
14728,
12,
3246,
3899,
16,
348,
8588,
18,
9826,
11272,
202,
202,
6313,
3744,
3... |
if(null != elemName && null != ns) | if (null != elemName && null != ns) | public void execute(TransformerImpl transformer, Node sourceNode, QName mode) throws SAXException { ResultTreeHandler rhandler = transformer.getResultTreeHandler(); XPathContext xctxt = transformer.getXPathContext(); String elemName = m_name_avt.evaluate(xctxt, sourceNode, this); // make sure that if a prefix is specified on the attribute name, it is valid int indexOfNSSep = elemName.indexOf(':'); String ns ="" ; if(indexOfNSSep >= 0) { String nsprefix = elemName.substring(0, indexOfNSSep); // Catch the exception this may cause. We don't want to stop processing. try{ ns = getNamespaceForPrefix(nsprefix); // Check if valid QName. Assuming that if the prefix is defined, // it is valid. if ( indexOfNSSep+1 == elemName.length() || !isValidNCName(elemName.substring(indexOfNSSep + 1))) { transformer.getMsgMgr().warn(XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_NAME, new Object[]{elemName}); elemName = null; } } catch(Exception ex) { // Could not resolve prefix ns = null; transformer.getMsgMgr().warn(XSLTErrorResources.WG_COULD_NOT_RESOLVE_PREFIX, new Object[]{nsprefix}); } } // Check if valid QName else if (elemName.length() == 0 || !isValidNCName(elemName)) { transformer.getMsgMgr().warn(XSLTErrorResources.WG_ILLEGAL_ATTRIBUTE_NAME, new Object[]{elemName}); elemName = null; } // Only do this if name is valid String elemNameSpace = null; String prefix = null; if(null != elemName && null != ns) { if(null != m_namespace_avt) { elemNameSpace = m_namespace_avt.evaluate(xctxt, sourceNode, this); if(null != elemNameSpace && elemNameSpace.length()>0) { // Get the prefix for that attribute in the result namespace. prefix = rhandler.getPrefix(elemNameSpace); // If we didn't find the prefix mapping, make up a prefix // and have it declared in the result tree. if(null == prefix) { prefix = rhandler.getNewUniqueNSPrefix(); } // add the prefix to the attribute name. elemName = (prefix + ":"+QName.getLocalPart(elemName)); } } // Add namespace declarations. executeNSDecls(transformer); rhandler.startElement(elemNameSpace, QName.getLocalPart(elemName), elemName); if(null != prefix) { rhandler.startPrefixMapping(prefix, elemNameSpace, true); } } // Instantiate content of xsl:element. Note that if startElement was not // called(ie: if invalid element name, the element's attributes will be // excluded because transformer.m_pendingElementName will be null. super.execute(transformer, sourceNode, mode); transformer.executeChildTemplates(this, sourceNode, mode); // Now end the element if name was valid if(null != elemName && null != ns) { rhandler.endElement("", "", elemName); unexecuteNSDecls(transformer); } } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/77ad973f1d6ad8f28fd358f2ba4d4c63da65d953/ElemElement.java/buggy/src/org/apache/xalan/templates/ElemElement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
12,
8319,
2828,
8360,
16,
5397,
2029,
26799,
16,
5397,
16723,
1965,
13,
565,
1216,
14366,
225,
288,
565,
3438,
2471,
1503,
436,
4176,
273,
8360,
18,
588,
1253,
2471,
1503... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
12,
8319,
2828,
8360,
16,
5397,
2029,
26799,
16,
5397,
16723,
1965,
13,
565,
1216,
14366,
225,
288,
565,
3438,
2471,
1503,
436,
4176,
273,
8360,
18,
588,
1253,
2471,
1503... |
while (it.hasNext()) { Hop nextHop = (Hop) it.next(); try { SIPRequest sipRequest = (SIPRequest) request; String bid = sipRequest.getTransactionId(); Via via = sipRequest.getTopmostVia(); via.setBranch(bid); SIPRequest newRequest; | try { /* * JvB: Via branch should already be OK, dont touch it here? Some * apps forward statelessly, and then it's not set. So set only when * not set already, dont overwrite CANCEL branch here.. */ Via via = sipRequest.getTopmostVia(); String branch = via.getBranch(); if (branch == null || branch.length() == 0) { via.setBranch(sipRequest.getTransactionId()); } | public void sendRequest(Request request) throws SipException { Iterator it = sipStack.getRouter().getNextHops(request); if (it == null || !it.hasNext()) throw new SipException("could not determine next hop!"); // Bug reported by Rhys Ulerich if (((SIPRequest) request).getTopmostVia() == null) throw new SipException("Invalid SipRequest -- no via header!"); // Will slow down the implementation because it involves // a search to see if a transaction exists. // This is a common bug so adding some assertion // checking under debug. SIPTransaction tr = sipStack.findTransaction((SIPRequest) request, false); if (tr != null) throw new SipException("Cannot send statelessly Transaction found!"); while (it.hasNext()) { Hop nextHop = (Hop) it.next(); try { SIPRequest sipRequest = (SIPRequest) request; String bid = sipRequest.getTransactionId(); Via via = sipRequest.getTopmostVia(); via.setBranch(bid); SIPRequest newRequest; newRequest = sipRequest; MessageChannel messageChannel = sipStack .createRawMessageChannel(this.listeningPoint.port, nextHop); if (messageChannel != null) { messageChannel.sendMessage((SIPMessage) newRequest); return; } else { continue; } } catch (IOException ex) { if (LogWriter.needsLogging ) { sipStack.getLogWriter().logException (ex); } continue; } catch (ParseException ex1) { InternalErrorHandler.handleException(ex1); } } // Could not find a suitable hop to forward the request. throw new SipException("could not forward request"); } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/SipProviderImpl.java/clean/trunk/src/gov/nist/javax/sip/SipProviderImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12413,
12,
691,
590,
13,
1216,
13475,
503,
288,
3639,
4498,
518,
273,
10341,
2624,
18,
588,
8259,
7675,
588,
2134,
44,
4473,
12,
2293,
1769,
3639,
309,
261,
305,
422,
446,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12413,
12,
691,
590,
13,
1216,
13475,
503,
288,
3639,
4498,
518,
273,
10341,
2624,
18,
588,
8259,
7675,
588,
2134,
44,
4473,
12,
2293,
1769,
3639,
309,
261,
305,
422,
446,
74... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.