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 |
|---|---|---|---|---|---|---|
Style.MAP_RULES_PROP ); | IStyleModel.MAP_RULES_PROP ); | private void writeStyleProps( DesignElement obj ) { // Background property( obj, Style.BACKGROUND_ATTACHMENT_PROP ); property( obj, Style.BACKGROUND_COLOR_PROP ); property( obj, Style.BACKGROUND_IMAGE_PROP ); property( obj, Style.BACKGROUND_POSITION_X_PROP ); property( obj, Style.BACKGROUND_POSITION_Y_PROP ); property( obj, Style.BACKGROUND_REPEAT_PROP ); // Font property( obj, Style.FONT_FAMILY_PROP ); property( obj, Style.FONT_SIZE_PROP ); property( obj, Style.FONT_WEIGHT_PROP ); property( obj, Style.FONT_STYLE_PROP ); property( obj, Style.FONT_VARIANT_PROP ); property( obj, Style.COLOR_PROP ); property( obj, Style.TEXT_LINE_THROUGH_PROP ); property( obj, Style.TEXT_OVERLINE_PROP ); property( obj, Style.TEXT_UNDERLINE_PROP ); // Border property( obj, Style.BORDER_BOTTOM_COLOR_PROP ); property( obj, Style.BORDER_BOTTOM_STYLE_PROP ); property( obj, Style.BORDER_BOTTOM_WIDTH_PROP ); property( obj, Style.BORDER_LEFT_COLOR_PROP ); property( obj, Style.BORDER_LEFT_STYLE_PROP ); property( obj, Style.BORDER_LEFT_WIDTH_PROP ); property( obj, Style.BORDER_RIGHT_COLOR_PROP ); property( obj, Style.BORDER_RIGHT_STYLE_PROP ); property( obj, Style.BORDER_RIGHT_WIDTH_PROP ); property( obj, Style.BORDER_TOP_COLOR_PROP ); property( obj, Style.BORDER_TOP_STYLE_PROP ); property( obj, Style.BORDER_TOP_WIDTH_PROP ); // Margin property( obj, Style.MARGIN_TOP_PROP ); property( obj, Style.MARGIN_LEFT_PROP ); property( obj, Style.MARGIN_BOTTOM_PROP ); property( obj, Style.MARGIN_RIGHT_PROP ); // Padding property( obj, Style.PADDING_TOP_PROP ); property( obj, Style.PADDING_LEFT_PROP ); property( obj, Style.PADDING_BOTTOM_PROP ); property( obj, Style.PADDING_RIGHT_PROP ); // Formats property( obj, Style.NUMBER_ALIGN_PROP ); writeStructure( obj, Style.DATE_TIME_FORMAT_PROP ); writeStructure( obj, Style.NUMBER_FORMAT_PROP ); writeStructure( obj, Style.STRING_FORMAT_PROP ); // Text format property( obj, Style.TEXT_ALIGN_PROP ); property( obj, Style.TEXT_INDENT_PROP ); property( obj, Style.LETTER_SPACING_PROP ); property( obj, Style.LINE_HEIGHT_PROP ); property( obj, Style.ORPHANS_PROP ); property( obj, Style.TEXT_TRANSFORM_PROP ); property( obj, Style.VERTICAL_ALIGN_PROP ); property( obj, Style.WHITE_SPACE_PROP ); property( obj, Style.WIDOWS_PROP ); property( obj, Style.WORD_SPACING_PROP ); // Section Options property( obj, Style.DISPLAY_PROP ); property( obj, Style.MASTER_PAGE_PROP ); property( obj, Style.PAGE_BREAK_AFTER_PROP ); property( obj, Style.PAGE_BREAK_BEFORE_PROP ); property( obj, Style.PAGE_BREAK_INSIDE_PROP ); property( obj, Style.SHOW_IF_BLANK_PROP ); property( obj, Style.CAN_SHRINK_PROP ); // Highlight List list = (ArrayList) obj.getLocalProperty( getModule( ), Style.HIGHLIGHT_RULES_PROP ); if ( list != null && list.size( ) > 0 ) { writer.startElement( DesignSchemaConstants.LIST_PROPERTY_TAG ); writer.attribute( DesignSchemaConstants.NAME_ATTRIB, Style.HIGHLIGHT_RULES_PROP ); for ( int i = 0; i < list.size( ); i++ ) { HighlightRule rule = (HighlightRule) list.get( i ); writer.startElement( DesignSchemaConstants.STRUCTURE_TAG ); property( rule, HighlightRule.OPERATOR_MEMBER ); property( rule, HighlightRule.BACKGROUND_COLOR_MEMBER ); // Border property( rule, HighlightRule.BORDER_TOP_STYLE_MEMBER ); property( rule, HighlightRule.BORDER_TOP_WIDTH_MEMBER ); property( rule, HighlightRule.BORDER_TOP_COLOR_MEMBER ); property( rule, HighlightRule.BORDER_LEFT_STYLE_MEMBER ); property( rule, HighlightRule.BORDER_LEFT_WIDTH_MEMBER ); property( rule, HighlightRule.BORDER_LEFT_COLOR_MEMBER ); property( rule, HighlightRule.BORDER_BOTTOM_STYLE_MEMBER ); property( rule, HighlightRule.BORDER_BOTTOM_WIDTH_MEMBER ); property( rule, HighlightRule.BORDER_BOTTOM_COLOR_MEMBER ); property( rule, HighlightRule.BORDER_RIGHT_STYLE_MEMBER ); property( rule, HighlightRule.BORDER_RIGHT_WIDTH_MEMBER ); property( rule, HighlightRule.BORDER_RIGHT_COLOR_MEMBER ); // Font property( rule, HighlightRule.FONT_FAMILY_MEMBER ); property( rule, HighlightRule.FONT_SIZE_MEMBER ); property( rule, HighlightRule.FONT_STYLE_MEMBER ); property( rule, HighlightRule.FONT_WEIGHT_MEMBER ); property( rule, HighlightRule.FONT_VARIANT_MEMBER ); property( rule, HighlightRule.COLOR_MEMBER ); property( rule, HighlightRule.TEXT_UNDERLINE_MEMBER ); property( rule, HighlightRule.TEXT_OVERLINE_MEMBER ); property( rule, HighlightRule.TEXT_LINE_THROUGH_MEMBER ); property( rule, HighlightRule.TEXT_ALIGN_MEMBER ); property( rule, HighlightRule.TEXT_TRANSFORM_MEMBER ); property( rule, HighlightRule.TEXT_INDENT_MEMBER ); // Format property( rule, HighlightRule.NUMBER_ALIGN_MEMBER ); writeStructure( rule, HighlightRule.DATE_TIME_FORMAT_MEMBER ); writeStructure( rule, HighlightRule.NUMBER_FORMAT_MEMBER ); writeStructure( rule, HighlightRule.STRING_FORMAT_MEMBER ); property( rule, HighlightRule.TEST_EXPR_MEMBER ); property( rule, HighlightRule.VALUE1_MEMBER ); property( rule, HighlightRule.VALUE2_MEMBER ); writer.endElement( ); } writer.endElement( ); } // Map list = (ArrayList) obj.getLocalProperty( getModule( ), Style.MAP_RULES_PROP ); if ( list != null && list.size( ) > 0 ) { writer.startElement( DesignSchemaConstants.LIST_PROPERTY_TAG ); writer.attribute( DesignSchemaConstants.NAME_ATTRIB, Style.MAP_RULES_PROP ); for ( int i = 0; i < list.size( ); i++ ) { MapRule rule = (MapRule) list.get( i ); writer.startElement( DesignSchemaConstants.STRUCTURE_TAG ); property( rule, MapRule.TEST_EXPR_MEMBER ); property( rule, MapRule.OPERATOR_MEMBER ); property( rule, MapRule.VALUE1_MEMBER ); property( rule, MapRule.VALUE2_MEMBER ); resourceKey( rule, MapRule.DISPLAY_ID_MEMBER, MapRule.DISPLAY_MEMBER ); writer.endElement( ); } writer.endElement( ); } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/d802c33711e0d111551ae23575895cd060f085b6/ModuleWriter.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/writer/ModuleWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1045,
2885,
5047,
12,
29703,
1046,
1081,
262,
202,
95,
202,
202,
759,
8977,
202,
202,
4468,
12,
1081,
16,
9767,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
15811,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2885,
5047,
12,
29703,
1046,
1081,
262,
202,
95,
202,
202,
759,
8977,
202,
202,
4468,
12,
1081,
16,
9767,
18,
8720,
20166,
67,
789,
9833,
1792,
3212,
67,
15811,
11... |
if (this.currentTxID != null) | if (sessionState.getCurrentTxId() != null) | public void start(Xid xid, int flags) throws XAException { if (log.isTraceEnabled()) log.trace("Start xid=" + xid + ", flags=" + flags + " " + this); boolean convertTx = false; if (this.currentTxID != null) { if (flags == TMNOFLAGS && this.currentTxID instanceof LocalTxXid) { convertTx = true; } else { //This resource is already doing work as part of another global tx throw new XAException(XAException.XAER_OUTSIDE); } } synchronized (this) { switch (flags) { case TMNOFLAGS : if (convertTx) { // it was an anonymous TX, TM is now taking control over it. // convert it over to a normal XID tansaction. //Is it legal to "convert" a tx? //Surely only work done between start and end is considered part of the tx? //Is it legal to consider work done before "start" as part of the tx? setCurrentTransactionId(rm.convertTx((LocalTxXid)this.currentTxID, xid)); } else { setCurrentTransactionId(rm.startTx(xid)); } break; case TMJOIN : setCurrentTransactionId(rm.joinTx(xid)); break; case TMRESUME : setCurrentTransactionId(rm.resumeTx(xid)); break; } } } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/90e4b161b21b8aef910dbc6f515ceceadf11bf49/JBossXAResource.java/clean/src/main/org/jboss/jms/client/JBossXAResource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
787,
12,
60,
350,
19031,
16,
509,
2943,
13,
1216,
21514,
282,
288,
1377,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
540,
613,
18,
5129,
2932,
1685,
19031,
1546,
397,
19031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
787,
12,
60,
350,
19031,
16,
509,
2943,
13,
1216,
21514,
282,
288,
1377,
309,
261,
1330,
18,
291,
3448,
1526,
10756,
540,
613,
18,
5129,
2932,
1685,
19031,
1546,
397,
19031,
... |
ProteinFileParser protInfoParser = new ProteinFileParser( ProteinFileParser.PERSIST_CONCURRENTLY, cli.geneDao, cli.gpDao ); | ProteinFileParser protInfoParser = new ProteinFileParser( cli.geneDao, cli.gpDao ); | public static void main( String args[] ) throws IOException { ProteinLoaderCLI cli = null; try { /* OPTIONS STAGE */ /* help */ OptionBuilder.withDescription( "Print help for this application" ); Option helpOpt = OptionBuilder.create( 'h' ); /* username */ OptionBuilder.hasArgs(); OptionBuilder.withDescription( "Username" ); Option usernameOpt = OptionBuilder.create( 'u' ); /* password */ OptionBuilder.hasArgs(); OptionBuilder.withDescription( "Password" ); Option passwordOpt = OptionBuilder.create( 'p' ); /* environment (test or prod) */ OptionBuilder.hasArgs(); OptionBuilder.withDescription( "Set use of test or production environment" ); Option testOpt = OptionBuilder.create( 't' ); /* parse and load */ OptionBuilder.hasArgs(); OptionBuilder.withDescription( "Specify file (requires file arg) and load database with entries from file" ); Option loadOpt = OptionBuilder.create( 'l' ); /* remove */ OptionBuilder.withDescription( "Remove gene products (proteins, etc.) from database" ); Option removeOpt = OptionBuilder.create( 'r' ); Options opt = new Options(); opt.addOption( helpOpt ); opt.addOption( usernameOpt ); opt.addOption( passwordOpt ); opt.addOption( testOpt ); opt.addOption( loadOpt ); opt.addOption( removeOpt ); /* COMMAND LINE PARSER STAGE */ BasicParser parser = new BasicParser(); CommandLine cl = parser.parse( opt, args ); /* INTERROGATION STAGE */ if ( cl.hasOption( 'h' ) ) { printHelp( opt ); System.exit( 0 ); } /* check if using test or production context */ if ( cl.hasOption( 't' ) ) { boolean isTest = Boolean.parseBoolean( cl.getOptionValue( 't' ) ); if ( isTest ) ctx = SpringContextUtil.getApplicationContext( true ); else ctx = SpringContextUtil.getApplicationContext( false ); cli = new ProteinLoaderCLI(); } // if no ctx is set, default to test environment. else { ctx = SpringContextUtil.getApplicationContext( true ); cli = new ProteinLoaderCLI(); } /* check username and password. */ if ( cl.hasOption( 'u' ) ) { if ( cl.hasOption( 'p' ) ) { username = cl.getOptionValue( 'u' ); password = cl.getOptionValue( 'p' ); manAuthentication = ( ManualAuthenticationProcessing ) ctx .getBean( "manualAuthenticationProcessing" ); manAuthentication.validateRequest( username, password ); } } else { log.error( "Not authenticated. Make sure you entered a valid username and/or password" ); System.exit( 0 ); } ProteinFileParser protInfoParser = new ProteinFileParser( ProteinFileParser.PERSIST_CONCURRENTLY, cli.geneDao, cli.gpDao ); /* check load option. */ if ( cl.hasOption( 'l' ) ) { String filename = cl.getOptionValue( 'l' ); System.out.println( "option l: " + filename ); protInfoParser.parse( filename ); } /* check remove option. */ else if ( cl.hasOption( 'r' ) ) { protInfoParser.removeAll(); } /* defaults to print help. */ else { printHelp( opt ); } } catch ( ParseException e ) { e.printStackTrace(); } } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/29794625b905f79d0383dd51bb5cf76e80f8045b/ProteinLoaderCLI.java/buggy/src/impl/edu/columbia/gemma/loader/genome/gene/ProteinLoaderCLI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
514,
833,
8526,
262,
1216,
1860,
288,
3639,
1186,
10297,
2886,
7697,
4942,
273,
446,
31,
3639,
775,
288,
5411,
1748,
16726,
2347,
2833,
1195,
5411,
1748,
2809,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
514,
833,
8526,
262,
1216,
1860,
288,
3639,
1186,
10297,
2886,
7697,
4942,
273,
446,
31,
3639,
775,
288,
5411,
1748,
16726,
2347,
2833,
1195,
5411,
1748,
2809,
1... |
String stringPattern = RubyString.stringValue(args[0]).getValue(); | String stringPattern = RubyString.stringValue(args[0]).toString(); | private RubyRegexp getPattern(IRubyObject[] args) { if (args.length == 0) { isWhitespace = true; return RubyRegexp.newRegexp(runtime, "\\s+", 0, null); } if (args[0] instanceof RubyRegexp) { // Even if we have whitespace-only explicit regexp we do not // mark it as whitespace. Apparently, this is so ruby can // still get the do not ignore the front match behavior. return RubyRegexp.regexpValue(args[0]); } String stringPattern = RubyString.stringValue(args[0]).getValue(); if (stringPattern.equals(" ")) { isWhitespace = true; return RubyRegexp.newRegexp(runtime, "\\s+", 0, null); } return RubyRegexp.newRegexp(runtime, unescapeString(stringPattern), 0, null); } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/9f2efc63a858fa0507245b207025eab027840a04/Split.java/clean/src/org/jruby/util/Split.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
14621,
23420,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
23833,
273,
638,
31,
5411,
327,
19817,
14621,
18,
2704,
14621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
14621,
23420,
12,
7937,
10340,
921,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
422,
374,
13,
288,
5411,
23833,
273,
638,
31,
5411,
327,
19817,
14621,
18,
2704,
14621... |
parsePluginList = PARSE_PLUGIN_LIST.getPluginList(DEFAULT_PLUGIN); | parsePluginList = this.parsePluginList.getPluginList(DEFAULT_PLUGIN); | private static List findExtensions(String contentType){ Extension[] extensions = X_POINT.getExtensions(); // Look for a preferred plugin. List parsePluginList = PARSE_PLUGIN_LIST.getPluginList(contentType); List extensionList = matchExtensions(parsePluginList, extensions, contentType); if (extensionList != null) { return extensionList; } // If none found, look for a default plugin. parsePluginList = PARSE_PLUGIN_LIST.getPluginList(DEFAULT_PLUGIN); return matchExtensions(parsePluginList, extensions, DEFAULT_PLUGIN); } | 1316 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1316/329ff64e9d7295aff108f85e9a8103f5e5f8f398/ParserFactory.java/clean/src/java/org/apache/nutch/parse/ParserFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
987,
1104,
7513,
12,
780,
5064,
15329,
3639,
10021,
8526,
4418,
273,
1139,
67,
8941,
18,
588,
7513,
5621,
3639,
368,
10176,
364,
279,
9119,
1909,
18,
565,
987,
1109,
3773,
682,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
987,
1104,
7513,
12,
780,
5064,
15329,
3639,
10021,
8526,
4418,
273,
1139,
67,
8941,
18,
588,
7513,
5621,
3639,
368,
10176,
364,
279,
9119,
1909,
18,
565,
987,
1109,
3773,
682,... |
transports.put("aim", new TransportInstance(TransportType.aim, "AIM Transport", "org.jivesoftware.wildfire.gateway.protocols.oscar.OSCARGateway", componentManager)); | transports.put("aim", new TransportInstance(TransportType.aim, "AIM Transport", "org.jivesoftware.wildfire.gateway.protocols.oscar.OSCARTransport", componentManager)); | public void initializePlugin(PluginManager manager, File pluginDirectory) { picoContainer.start(); transports = new Hashtable<String,TransportInstance>(); componentManager = ComponentManagerFactory.getComponentManager(); /* Set up AIM transport. */ transports.put("aim", new TransportInstance(TransportType.aim, "AIM Transport", "org.jivesoftware.wildfire.gateway.protocols.oscar.OSCARGateway", componentManager)); maybeStartService("aim"); /* Set up ICQ transport. */ transports.put("icq", new TransportInstance(TransportType.icq, "ICQ Transport", "org.jivesoftware.wildfire.gateway.protocols.oscar.OSCARGateway", componentManager)); maybeStartService("icq"); /* Set up Yahoo transport. */ transports.put("yahoo", new TransportInstance(TransportType.yahoo, "Yahoo! Transport", "org.jivesoftware.wildfire.gateway.protocols.yahoo.YahooGateway", componentManager)); maybeStartService("yahoo"); } | 51636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51636/386a666102a779cc8417bb3558f6569cb225ee82/GatewayPlugin.java/clean/src/plugins/gateway/src/java/org/jivesoftware/wildfire/gateway/GatewayPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
3773,
12,
3773,
1318,
3301,
16,
1387,
1909,
2853,
13,
288,
3639,
293,
10764,
2170,
18,
1937,
5621,
3639,
28567,
273,
394,
18559,
32,
780,
16,
6568,
1442,
34,
5621,
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,
1071,
918,
4046,
3773,
12,
3773,
1318,
3301,
16,
1387,
1909,
2853,
13,
288,
3639,
293,
10764,
2170,
18,
1937,
5621,
3639,
28567,
273,
394,
18559,
32,
780,
16,
6568,
1442,
34,
5621,
3639,
... |
public Mapper createMapper() | public void createMapper( final FileNameMapper mapper ) | public Mapper createMapper() throws TaskException { if( m_mapper != null ) { throw new TaskException( "Cannot define more than one mapper" ); } m_mapper = new Mapper(); return m_mapper; } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/2afc643a3ea676cc68f2f010ea3a7560b7a0a3af/Native2Ascii.java/buggy/proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/text/Native2Ascii.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
4597,
12,
727,
25075,
4597,
5815,
262,
3639,
1216,
3837,
503,
565,
288,
3639,
309,
12,
312,
67,
13919,
480,
446,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
4515... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
752,
4597,
12,
727,
25075,
4597,
5815,
262,
3639,
1216,
3837,
503,
565,
288,
3639,
309,
12,
312,
67,
13919,
480,
446,
262,
3639,
288,
5411,
604,
394,
3837,
503,
12,
315,
4515... |
protected void genArrayCreate(Context ctx, Primitive prim, Tree size) { | protected void genArrayCreate(Context ctx, Primitive prim, Tree size) throws JCode.OffsetTooBigException { | protected void genArrayCreate(Context ctx, Primitive prim, Tree size) { genLoad(ctx, size, JType.INT); JType type; switch (prim) { case NEW_ZARRAY : type = JType.BOOLEAN; break; case NEW_BARRAY : type = JType.BYTE; break; case NEW_SARRAY : type = JType.SHORT; break; case NEW_CARRAY : type = JType.CHAR; break; case NEW_IARRAY : type = JType.INT; break; case NEW_LARRAY : type = JType.LONG; break; case NEW_FARRAY : type = JType.FLOAT; break; case NEW_DARRAY : type = JType.DOUBLE; break; default: throw Debug.abort("unexpected primitive", prim); } ctx.code.emitNEWARRAY(type); } | 10130 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10130/17d738fccbb3f04a9f884ecae15b6300c41501cf/GenJVM.java/clean/sources/scalac/backend/jvm/GenJVM.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3157,
1076,
1684,
12,
1042,
1103,
16,
14488,
15610,
16,
4902,
963,
13,
1216,
804,
1085,
18,
2335,
10703,
9901,
503,
288,
3639,
3157,
2563,
12,
5900,
16,
963,
16,
804,
559,
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,
4750,
918,
3157,
1076,
1684,
12,
1042,
1103,
16,
14488,
15610,
16,
4902,
963,
13,
1216,
804,
1085,
18,
2335,
10703,
9901,
503,
288,
3639,
3157,
2563,
12,
5900,
16,
963,
16,
804,
559,
18... |
flush(); | _printer.flush(); | public void endDocument() throws SAXException { // Print all the elements accumulated outside of // the root element. serializePreRoot(); // Flush the output, this is necessary for buffered output. flush(); // If an exception was thrown during serializing, this would // be the best time to report it. if ( _exception != null ) throw new SAXException( _exception ); } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/6a9b22474c21af7de8c770f415756a79307aa72e/BaseMarkupSerializer.java/clean/src/org/apache/xml/serialize/BaseMarkupSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
679,
2519,
1435,
3639,
1216,
14366,
565,
288,
3639,
368,
3038,
777,
326,
2186,
24893,
8220,
434,
3639,
368,
326,
1365,
930,
18,
3639,
4472,
1386,
2375,
5621,
3639,
368,
11624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
2519,
1435,
3639,
1216,
14366,
565,
288,
3639,
368,
3038,
777,
326,
2186,
24893,
8220,
434,
3639,
368,
326,
1365,
930,
18,
3639,
4472,
1386,
2375,
5621,
3639,
368,
11624,
... |
throw new CoreException(new Status(IStatus.ERROR, BugzillaCorePlugin.PLUGIN_ID, IStatus.OK, "could not update repository configuration", e)); | throw new CoreException(new Status(IStatus.ERROR, BugzillaCorePlugin.PLUGIN_ID, IStatus.OK, "could not update repository configuration", e)); | public void updateAttributes(final TaskRepository repository, Proxy proxySettings, IProgressMonitor monitor) throws CoreException { try { BugzillaCorePlugin.getRepositoryConfiguration(true, repository.getUrl(), proxySettings, repository.getUserName(), repository.getPassword(), repository.getCharacterEncoding()); } catch (Exception e) { throw new CoreException(new Status(IStatus.ERROR, BugzillaCorePlugin.PLUGIN_ID, IStatus.OK, "could not update repository configuration", e)); } } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/871dc4e66481486437f88d74914ef5aa35903f35/BugzillaRepositoryConnector.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaRepositoryConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1089,
2498,
12,
6385,
3837,
3305,
3352,
16,
7659,
2889,
2628,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
698,
288,
1082,
202,
19865,
15990,
4670,
3773,
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,
482,
918,
1089,
2498,
12,
6385,
3837,
3305,
3352,
16,
7659,
2889,
2628,
16,
467,
5491,
7187,
6438,
13,
1216,
30015,
288,
202,
202,
698,
288,
1082,
202,
19865,
15990,
4670,
3773,
18,
... |
assertFalse(root.hasEntry(p("dir"))); | assertFalse(root.hasEntry(p("/dir"))); | public void testCeatingDirectory() { assertFalse(root.hasEntry(p("dir"))); root.doCreateDirectory(null, p("dir")); assertTrue(root.hasEntry(p("dir"))); assertEquals(DirectoryEntry.class, root.getEntry(p("dir")).getClass()); assertTrue(root.getEntry(p("dir")).getChildren().isEmpty()); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/8a6fdbc15b3cd4aaa232cf2026aa4a60418c162a/RootEntryDirectoriesTest.java/clean/LocalVcs/test/com/intellij/localvcs/RootEntryDirectoriesTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
39,
73,
1776,
2853,
1435,
288,
565,
1815,
8381,
12,
3085,
18,
5332,
1622,
12,
84,
2932,
19,
1214,
6,
3719,
1769,
565,
1365,
18,
2896,
1684,
2853,
12,
2011,
16,
293,
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,
282,
1071,
918,
1842,
39,
73,
1776,
2853,
1435,
288,
565,
1815,
8381,
12,
3085,
18,
5332,
1622,
12,
84,
2932,
19,
1214,
6,
3719,
1769,
565,
1365,
18,
2896,
1684,
2853,
12,
2011,
16,
293,
2... |
sb.append(x); sb.append("="); sb.append(i); sb.append('\n'); | if(realLength > 100*1000) Logger.normal(this, "["+realLength+"] = "+i+" (prev="+i.getPrev()+")"); | protected synchronized void checkList() { // FIXME once satisfied that this works, make it only happen occasionally int statedLength = list.size(); int realLength = 0; sb.setLength(0); int x = 0; for(Enumeration e = list.elements();e.hasMoreElements();) { UpdatableSortedLinkedListItem i = (UpdatableSortedLinkedListItem) e.nextElement(); sb.append(x); sb.append("="); sb.append(i); sb.append('\n'); realLength++; } if(statedLength != realLength) { String err = "statedLength = "+statedLength+" but realLength = "+realLength+" on "+this; Logger.error(this, "Illegal ERROR: "+err, new Exception("error")); Logger.error(this, "Details:\n"+sb.toString()); throw new IllegalStateException(err); } else { Logger.minor(this, "checkList() successful: realLength = statedLength = "+realLength+" on "+this); Logger.minor(this, "Details:\n"+sb.toString()); } } | 45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/b4ecaa4055b5835413830d4125c72de27d68e306/UpdatableSortedLinkedList.java/clean/src/freenet/support/UpdatableSortedLinkedList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
3852,
918,
866,
682,
1435,
288,
377,
202,
759,
9852,
3647,
18958,
716,
333,
6330,
16,
1221,
518,
1338,
5865,
9145,
345,
285,
1230,
377,
202,
474,
28936,
1782,
273,
666,
18,
1467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
866,
682,
1435,
288,
377,
202,
759,
9852,
3647,
18958,
716,
333,
6330,
16,
1221,
518,
1338,
5865,
9145,
345,
285,
1230,
377,
202,
474,
28936,
1782,
273,
666,
18,
1467,
... |
DebuggerThread() { makeDaemon(true); } | DebuggerThread() { makeDaemon(true); } | DebuggerThread() { makeDaemon(true); } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/adc94596e6496781a4e0763b29a52be3daab1a7a/DebuggerThread.java/buggy/rvm/src/vm/scheduler/DebuggerThread.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
28645,
3830,
1435,
1377,
288,
1377,
1221,
12858,
12,
3767,
1769,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
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,
565,
28645,
3830,
1435,
1377,
288,
1377,
1221,
12858,
12,
3767,
1769,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
new NoViableAltException("971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 33, 2, input); | new NoViableAltException("971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 2, input); | public List constraints() throws RecognitionException { List constraints = null; constraints = new ArrayList(); try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:4: ( ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) int alt32=2; int LA32_0 = input.LA(1); if ( (LA32_0==ID) ) { int LA32_1 = input.LA(2); if ( (LA32_1==39) ) { int LA32_2 = input.LA(3); if ( (LA32_2==ID) ) { int LA32_4 = input.LA(4); if ( (LA32_4==67) ) { alt32=2; } else if ( (LA32_4==EOF||LA32_4==RIGHT_PAREN||LA32_4==33||(LA32_4>=57 && LA32_4<=65)) ) { alt32=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 4, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 2, input); throw nvae; } } else if ( (LA32_1==EOF||LA32_1==RIGHT_PAREN||LA32_1==33||(LA32_1>=57 && LA32_1<=65)) ) { alt32=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 1, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("970:4: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 32, 0, input); throw nvae; } switch (alt32) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:5: ( constraint[constraints] )=> constraint[constraints] { pushFollow(FOLLOW_constraint_in_constraints1982); constraint(constraints); _fsp--; if (failed) return constraints; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:970:29: predicate[constraints] { pushFollow(FOLLOW_predicate_in_constraints1985); predicate(constraints); _fsp--; if (failed) return constraints; } break; } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:971:3: ( ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )* loop34: do { int alt34=2; int LA34_0 = input.LA(1); if ( (LA34_0==33) ) { alt34=1; } switch (alt34) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:971:5: ( ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) )=> ',' ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) { match(input,33,FOLLOW_33_in_constraints1993); if (failed) return constraints; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] ) int alt33=2; int LA33_0 = input.LA(1); if ( (LA33_0==ID) ) { int LA33_1 = input.LA(2); if ( (LA33_1==39) ) { int LA33_2 = input.LA(3); if ( (LA33_2==ID) ) { int LA33_4 = input.LA(4); if ( (LA33_4==67) ) { alt33=2; } else if ( (LA33_4==EOF||LA33_4==RIGHT_PAREN||LA33_4==33||(LA33_4>=57 && LA33_4<=65)) ) { alt33=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 33, 4, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 33, 2, input); throw nvae; } } else if ( (LA33_1==EOF||LA33_1==RIGHT_PAREN||LA33_1==33||(LA33_1>=57 && LA33_1<=65)) ) { alt33=1; } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 33, 1, input); throw nvae; } } else { if (backtracking>0) {failed=true; return constraints;} NoViableAltException nvae = new NoViableAltException("971:9: ( ( constraint[constraints] )=> constraint[constraints] | predicate[constraints] )", 33, 0, input); throw nvae; } switch (alt33) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:971:10: ( constraint[constraints] )=> constraint[constraints] { pushFollow(FOLLOW_constraint_in_constraints1996); constraint(constraints); _fsp--; if (failed) return constraints; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:971:34: predicate[constraints] { pushFollow(FOLLOW_predicate_in_constraints1999); predicate(constraints); _fsp--; if (failed) return constraints; } break; } } break; default : break loop34; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return constraints; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/0aa286f40333d2c596071d72d310904501c4f8b2/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
273,
446,
31,
1171,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
987,
6237,
1435,
1216,
9539,
288,
6647,
987,
6237,
273,
446,
31,
1171,
202,
202,
11967,
273,
394,
2407,
5621,
540,
202,
3639,
775,
288,
5411,
368,
463,
31027,
14915,
1695,
10649,
84... |
public String getBaseURL() { | public String getBaseURL () { | public String getBaseURL() { return baseUrl; } | 57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/9a4ed9a276ff3906598aa1c6aa55aeb8a2745a6e/PanelManager.java/buggy/demos/browser/src/java/org/xhtmlrenderer/demo/browser/PanelManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8297,
1785,
1832,
288,
3639,
327,
9818,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8297,
1785,
1832,
288,
3639,
327,
9818,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
statusLabel.setText("Starting to load " + currentURL); urlField.setText(currentURL); | if (null != statusLabel && null != urlField) { statusLabel.setText("Starting to load " + currentURL); urlField.setText(currentURL); } | public void eventDispatched(WebclientEvent event){ boolean enabledState; String status; if (event instanceof DocumentLoadEvent) { switch ((int) event.getType()) { case ((int) DocumentLoadEvent.START_DOCUMENT_LOAD_EVENT_MASK): stopButton.setEnabled(true); refreshButton.setEnabled(true); currentURL = (String) event.getEventData(); System.out.println("debug: edburns: Currently Viewing: " + currentURL); statusLabel.setText("Starting to load " + currentURL); urlField.setText(currentURL); currentDocument = null; break; case ((int) DocumentLoadEvent.END_DOCUMENT_LOAD_EVENT_MASK): stopButton.setEnabled(false); backButton.setEnabled(history.canBack()); backMenuItem.setEnabled(history.canBack()); forwardButton.setEnabled(history.canForward()); forwardMenuItem.setEnabled(history.canForward()); populateHistoryMenu(); statusLabel.setText("Done."); urlStatusLabel.setText(""); currentDocument = currentPage.getDOM(); // add the new document to the domViewer if (null != currentDocument && null != domViewer) { domViewer.setDocument(currentDocument); } break; case ((int) DocumentLoadEvent.PROGRESS_URL_LOAD_EVENT_MASK): status = "Status: " + (String) event.getEventData(); statusLabel.setText(status); break; case ((int) DocumentLoadEvent.STATUS_URL_LOAD_EVENT_MASK): status = "Status: " + (String) event.getEventData(); statusLabel.setText(status); break; case ((int) DocumentLoadEvent.START_URL_LOAD_EVENT_MASK): status = (String) event.getEventData(); urlStatusLabel.setText("startURL: " + status); break; case ((int) DocumentLoadEvent.END_URL_LOAD_EVENT_MASK): status = (String) event.getEventData(); urlStatusLabel.setText(" endURL: " + status); break; } } else if (event instanceof NewWindowEvent) { chromeFlag = (long) event.getType(); // send a "new window" event to the window Toolkit.getDefaultToolkit(). getSystemEventQueue(). postEvent(new ActionEvent(newItem, ActionEvent.ACTION_PERFORMED, "New Window2")); }} | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/636945d6cae7057bcd6b97b497339ba9a9435bd3/EMWindow.java/buggy/java/webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
871,
5325,
329,
12,
4079,
2625,
1133,
871,
15329,
565,
1250,
3696,
1119,
31,
565,
514,
1267,
31,
565,
309,
261,
2575,
1276,
4319,
2563,
1133,
13,
288,
3639,
1620,
14015,
474,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
871,
5325,
329,
12,
4079,
2625,
1133,
871,
15329,
565,
1250,
3696,
1119,
31,
565,
514,
1267,
31,
565,
309,
261,
2575,
1276,
4319,
2563,
1133,
13,
288,
3639,
1620,
14015,
474,
13,
... |
logln("Warning: Not testing the zh_CN behavior because resource is absent"); | logln("Warning: Not testing the mt_MT behavior because resource is absent"); | public void TestDisplayName() { TimeZone zone = TimeZone.getTimeZone("PST"); String name = zone.getDisplayName(Locale.ENGLISH); logln("PST->" + name); if (!name.equals("Pacific Standard Time")) errln("Fail: Expected \"Pacific Standard Time\", got " + name + " for " + zone); //***************************************************************** // THE FOLLOWING LINES MUST BE UPDATED IF THE LOCALE DATA CHANGES // THE FOLLOWING LINES MUST BE UPDATED IF THE LOCALE DATA CHANGES // THE FOLLOWING LINES MUST BE UPDATED IF THE LOCALE DATA CHANGES //***************************************************************** Object[] DATA = { new Boolean(false), new Integer(TimeZone.SHORT), "PST", new Boolean(true), new Integer(TimeZone.SHORT), "PDT", new Boolean(false), new Integer(TimeZone.LONG), "Pacific Standard Time", new Boolean(true), new Integer(TimeZone.LONG), "Pacific Daylight Time", }; for (int i=0; i<DATA.length; i+=3) { name = zone.getDisplayName(((Boolean)DATA[i]).booleanValue(), ((Integer)DATA[i+1]).intValue(), Locale.ENGLISH); if (!name.equals(DATA[i+2])) errln("Fail: Expected " + DATA[i+2] + "; got " + name); } // Make sure that we don't display the DST name by constructing a fake // PST zone that has DST all year long. SimpleTimeZone zone2 = new SimpleTimeZone(0, "PST"); zone2.setStartRule(Calendar.JANUARY, 1, 0); zone2.setEndRule(Calendar.DECEMBER, 31, 0); logln("Modified PST inDaylightTime->" + zone2.inDaylightTime(new Date())); name = zone2.getDisplayName(Locale.ENGLISH); logln("Modified PST->" + name); if (!name.equals("Pacific Standard Time")) errln("Fail: Expected \"Pacific Standard Time\""); // Make sure we get the default display format for Locales // with no display name data. Locale zh_CN = Locale.SIMPLIFIED_CHINESE; name = zone.getDisplayName(zh_CN); //***************************************************************** // THE FOLLOWING LINE MUST BE UPDATED IF THE LOCALE DATA CHANGES // THE FOLLOWING LINE MUST BE UPDATED IF THE LOCALE DATA CHANGES // THE FOLLOWING LINE MUST BE UPDATED IF THE LOCALE DATA CHANGES //***************************************************************** logln("PST(zh_CN)->" + name); // Now be smart -- check to see if zh resource is even present. // If not, we expect the en fallback behavior. // in icu4j 2.1 we know we have the zh_CN locale data, though it's incomplete /* ResourceBundle enRB = ICULocaleData.getResourceBundle("DateFormatZoneData", Locale.ENGLISH); ResourceBundle zhRB = ICULocaleData.getResourceBundle("DateFormatZoneData", zh_CN); boolean noZH = enRB == zhRB; if (noZH) { logln("Warning: Not testing the zh_CN behavior because resource is absent"); if (!name.equals("Pacific Standard Time")) errln("Fail: Expected Pacific Standard Time"); } else */ if (!name.equals("Pacific Standard Time") && !name.equals("GMT-08:00") && !name.equals("GMT-8:00") && !name.equals("GMT-0800") && !name.equals("GMT-800")) { errln("Fail: Expected GMT-08:00 or something similar"); errln("************************************************************"); errln("THE ABOVE FAILURE MAY JUST MEAN THE LOCALE DATA HAS CHANGED"); errln("************************************************************"); } // Now try a non-existent zone zone2 = new SimpleTimeZone(90*60*1000, "xyzzy"); name = zone2.getDisplayName(Locale.ENGLISH); logln("GMT+90min->" + name); if (!name.equals("GMT+01:30") && !name.equals("GMT+1:30") && !name.equals("GMT+0130") && !name.equals("GMT+130")) errln("Fail: Expected GMT+01:30 or something similar"); } | 5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/e63ba2cfd8e67a14569996e9b7cce89c4cd2b820/TimeZoneTest.java/buggy/icu4j/src/com/ibm/icu/dev/test/timezone/TimeZoneTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
7766,
20524,
1435,
288,
3639,
16491,
4157,
273,
16491,
18,
588,
16760,
2932,
52,
882,
8863,
3639,
514,
508,
273,
4157,
18,
588,
20524,
12,
3916,
18,
16324,
13462,
1769,
3639,
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,
1071,
918,
7766,
20524,
1435,
288,
3639,
16491,
4157,
273,
16491,
18,
588,
16760,
2932,
52,
882,
8863,
3639,
514,
508,
273,
4157,
18,
588,
20524,
12,
3916,
18,
16324,
13462,
1769,
3639,
6... |
} | } | public Hashtable getExportpoints() { if((m_exportpoints == null) || (m_exportpoints.size() == 0)){ m_exportpoints = new Hashtable(); try { NodeList exportpointsList = m_xmlReg.getElementsByTagName("exportpoint"); for (int x = 0; x < exportpointsList.getLength(); x++) { try { String curExportpoint = ((Element) exportpointsList.item(x)).getElementsByTagName("source").item(0).getFirstChild().getNodeValue(); String curPath = ((Element) exportpointsList.item(x)).getElementsByTagName("destination").item(0).getFirstChild().getNodeValue(); m_exportpoints.put(curExportpoint, com.opencms.boot.CmsBase.getAbsoluteWebPath(curPath)); } catch(Exception exc) { exc.printStackTrace(); // ignore the exception and try the next view-pair. } } } catch (Exception exc) { exc.printStackTrace(); // no return-values } } return m_exportpoints;} | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/5c27bc595df503fc5e3629ec92d99ba38b58a0e9/CmsRegistry.java/clean/src/com/opencms/file/CmsRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
18559,
29566,
4139,
1435,
288,
565,
309,
12443,
81,
67,
6530,
4139,
422,
446,
13,
747,
261,
81,
67,
6530,
4139,
18,
1467,
1435,
422,
374,
3719,
95,
3639,
312,
67,
6530,
4139,
273,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18559,
29566,
4139,
1435,
288,
565,
309,
12443,
81,
67,
6530,
4139,
422,
446,
13,
747,
261,
81,
67,
6530,
4139,
18,
1467,
1435,
422,
374,
3719,
95,
3639,
312,
67,
6530,
4139,
273,
394,... |
bindingColumn.setAggregrateOn( ( (GroupHandle) DEUtil.getGroups( (DesignElementHandle) target ) | bindingColumn.setAggregateOn( ( (GroupHandle) DEUtil.getGroups( (DesignElementHandle) target ) | protected static DataItemHandle performInsertDataSetColumn( ResultSetColumnHandle model, Object target, Object targetParent ) throws SemanticException { /* * search the target container, if container has the same dataset, add * the column binding if it does not exist in the container. If the * container's dataset is not the dragged dataset column's dataset, * column binding will be added to the new dataitem, and set dataitem's * dataset with the dragged dataset column's dataset. */ DataItemHandle dataHandle = DesignElementFactory.getInstance( ) .newDataItem( null ); DataSetHandle dataSet = (DataSetHandle) model.getElementHandle( ); dataHandle.setResultSetColumn( model.getColumnName( ) ); if ( targetParent instanceof ReportItemHandle ) { ReportItemHandle container = (ReportItemHandle) targetParent; ComputedColumn bindingColumn = StructureFactory.newComputedColumn( dataHandle, model.getColumnName( ) ); bindingColumn.setDataType( model.getDataType( ) ); bindingColumn.setExpression( DEUtil.getExpression( model ) ); if ( target instanceof DesignElementHandle ) { if ( ExpressionUtil.hasAggregation( bindingColumn.getExpression( ) ) ) { String groupType = DEUtil.getGroupControlType( (DesignElementHandle) target ); if ( groupType.equals( DEUtil.TYPE_GROUP_GROUP ) ) bindingColumn.setAggregrateOn( ( (GroupHandle) DEUtil.getGroups( (DesignElementHandle) target ) .get( 0 ) ).getName( ) ); else if ( groupType.equals( DEUtil.TYPE_GROUP_LISTING ) ) bindingColumn.setAggregrateOn( null ); } } DataSetHandle containerDataSet = DEUtil.getFirstDataSet( container ); container = DEUtil.getListingContainer( container ); if ( containerDataSet == null && container != null ) { container.setDataSet( dataSet ); containerDataSet = dataSet; } if ( dataSet.equals( containerDataSet ) && container != null ) { container.addColumnBinding( bindingColumn, false ); } else { // should not happen dataHandle.setDataSet( dataSet ); dataHandle.addColumnBinding( bindingColumn, false ); } // GroupHandle groupHandle = getGroupHandle( target ); // if ( groupHandle != null ) // { // ComputedColumn bindingColumn = // StructureFactory.newComputedColumn( groupHandle, // model.getColumnName( ) ); // // bindingColumn.setColumnName( model.getColumnName( ) ); // bindingColumn.setDataType( model.getDataType( ) ); // bindingColumn.setExpression( DEUtil.getExpression( model ) ); // // groupHandle.addColumnBinding( bindingColumn, false ); // } // else // { // ComputedColumn bindingColumn = // StructureFactory.newComputedColumn( container, // model.getColumnName( ) ); // bindingColumn.setDataType( model.getDataType( ) ); // bindingColumn.setExpression( DEUtil.getExpression( model ) ); // container.addColumnBinding( bindingColumn, false ); // } // ComputedColumn bindingColumn = // StructureFactory.createComputedColumn( ); // bindingColumn.setName( model.getColumnName( ) ); // bindingColumn.setDataType( model.getDataType( ) ); // bindingColumn.setExpression( DEUtil.getExpression( model ) ); // GroupHandle groupHandle = getGroupHandle( target ); // // if ( groupHandle != null ) // { // for ( Iterator iter = groupHandle.getColumnBindings( ) // .iterator( ); iter.hasNext( ); ) // { // ComputedColumnHandle element = (ComputedColumnHandle) iter.next( // ); // if ( element.getStructure( ).equals( bindingColumn ) ) // { // bindingExist = true; // break; // } // } // } // else // { // for ( Iterator iter = container.getColumnBindings( ).iterator( ); // iter.hasNext( ); ) // { // ComputedColumnHandle element = (ComputedColumnHandle) iter.next( // ); // if ( element.getStructure( ).equals( bindingColumn ) ) // { // bindingExist = true; // break; // } // } // // } } else { ComputedColumn bindingColumn = StructureFactory.newComputedColumn( dataHandle, model.getColumnName( ) ); bindingColumn.setDataType( model.getDataType( ) ); bindingColumn.setExpression( DEUtil.getExpression( model ) ); if ( target instanceof DesignElementHandle ) { if ( ExpressionUtil.hasAggregation( bindingColumn.getExpression( ) ) ) { String groupType = DEUtil.getGroupControlType( (DesignElementHandle) target ); if ( groupType.equals( DEUtil.TYPE_GROUP_GROUP ) ) bindingColumn.setAggregrateOn( ( (GroupHandle) DEUtil.getGroups( (DesignElementHandle) target ) .get( 0 ) ).getName( ) ); else if ( groupType.equals( DEUtil.TYPE_GROUP_LISTING ) ) bindingColumn.setAggregrateOn( null ); } } dataHandle.addColumnBinding( bindingColumn, false ); dataHandle.setDataSet( dataSet ); } // if ( !bindingExist ) // { // ComputedColumn bindingColumn = StructureFactory.newComputedColumn( // dataHandle, // model.getColumnName( ) ); // bindingColumn.setDataType( model.getDataType( ) ); // bindingColumn.setExpression( DEUtil.getExpression( model ) ); // dataHandle.addColumnBinding( bindingColumn, false ); // dataHandle.setDataSet( dataSet ); // } InsertInLayoutRule rule = new LabelAddRule( target ); if ( rule.canInsert( ) ) { // LabelHandle label = SessionHandleAdapter.getInstance( ) // .getReportDesignHandle( ) // .getElementFactory( ) // .newLabel( null ); LabelHandle label = DesignElementFactory.getInstance( ) .newLabel( null ); label.setText( ResultSetColumnProvider.getDisplayName( model ) ); rule.insert( label ); } rule = new GroupKeySetRule( target, model ); if ( rule.canInsert( ) ) { rule.insert( model ); } return dataHandle; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/25925f18944f0667bd8c9a5e0179d4a86fc250ba/InsertInLayoutUtil.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dnd/InsertInLayoutUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
1910,
1180,
3259,
3073,
4600,
13676,
1494,
12,
1082,
202,
13198,
1494,
3259,
938,
16,
1033,
1018,
16,
1033,
1018,
3054,
262,
1082,
202,
15069,
24747,
503,
202,
95,
202,
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,
1117,
760,
1910,
1180,
3259,
3073,
4600,
13676,
1494,
12,
1082,
202,
13198,
1494,
3259,
938,
16,
1033,
1018,
16,
1033,
1018,
3054,
262,
1082,
202,
15069,
24747,
503,
202,
95,
202,
20... |
}catch (org.omg.CORBA.SystemException _sysex) | } catch (org.omg.CORBA.SystemException _sysex) | protected void invoke(Interceptor interceptor) throws UserException { info.caller_op = op; try { Debug.output( Debug.DEBUG1 | Debug.INTERCEPTOR, "Invoking CI " + interceptor.name()); switch (op) { case SEND_REQUEST : ((ClientRequestInterceptor) interceptor).send_request(info); break; case SEND_POLL : ((ClientRequestInterceptor) interceptor).send_poll(info); break; case RECEIVE_REPLY : ((ClientRequestInterceptor) interceptor).receive_reply(info); break; case RECEIVE_EXCEPTION : ((ClientRequestInterceptor) interceptor).receive_exception(info); break; case RECEIVE_OTHER : ((ClientRequestInterceptor) interceptor).receive_other(info); } }catch (ForwardRequest _fwd) { Debug.output(Debug.INFORMATION | Debug.INTERCEPTOR, _fwd); reverseDirection(); op = RECEIVE_OTHER; info.reply_status = LOCATION_FORWARD.value; info.forward_reference = _fwd.forward; interceptor_ex = _fwd; }catch (org.omg.CORBA.SystemException _sysex) { Debug.output(Debug.INFORMATION | Debug.INTERCEPTOR, _sysex); reverseDirection(); op = RECEIVE_EXCEPTION; interceptor_ex = _sysex; SystemExceptionHelper.insert(info.received_exception, _sysex); try { info.received_exception_id = SystemExceptionHelper.type(_sysex).id(); }catch(org.omg.CORBA.TypeCodePackage.BadKind _bk) { Debug.output(Debug.INFORMATION | Debug.INTERCEPTOR, _bk); } }catch (Throwable th) { Debug.output(Debug.IMPORTANT | Debug.INTERCEPTOR, "ClientInterceptorIterator: Caught a " + th); } info.caller_op = op; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/1dfba0b8b47c2634b0b6ce9d9cf75ada49b78f37/ClientInterceptorIterator.java/buggy/src/org/jacorb/orb/portableInterceptor/ClientInterceptorIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
4356,
12,
10281,
13810,
13,
202,
15069,
2177,
503,
565,
288,
202,
1376,
18,
16140,
67,
556,
273,
1061,
31,
202,
698,
3639,
288,
202,
565,
4015,
18,
2844,
12,
4015,
18,
9394,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4356,
12,
10281,
13810,
13,
202,
15069,
2177,
503,
565,
288,
202,
1376,
18,
16140,
67,
556,
273,
1061,
31,
202,
698,
3639,
288,
202,
565,
4015,
18,
2844,
12,
4015,
18,
9394,
... |
if (yy_r) { | if (yyFlexR) { | public Symbol next_token() throws java.io.IOException { int yy_input; int yy_action; int [] yytrans_l = yytrans; int [] yy_rowMap_l = yy_rowMap; byte [] yy_attr_l = YY_ATTRIBUTE; int yy_pushbackPos_l = yy_pushbackPos = -1; boolean yy_was_pushback; while (true) { // cached fields: int yy_currentPos_l; int yy_startRead_l; int yy_markedPos_l = yy_markedPos; int yy_endRead_l = yy_endRead; char [] yy_buffer_l = yy_buffer; char [] yycmap_l = yycmap; boolean yy_r = false; for (yy_currentPos_l = yy_startRead; yy_currentPos_l < yy_markedPos_l; yy_currentPos_l++) { switch (yy_buffer_l[yy_currentPos_l]) { case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yyline++; yycolumn = 0; yy_r = false; break; case '\r': yyline++; yycolumn = 0; yy_r = true; break; case '\n': if (yy_r) yy_r = false; else { yyline++; yycolumn = 0; } break; default: yy_r = false; yycolumn++; } } if (yy_r) { // peek one character ahead if it is \n (if we have counted one line too much) boolean yy_peek; if (yy_markedPos_l < yy_endRead_l) yy_peek = yy_buffer_l[yy_markedPos_l] == '\n'; else if (yy_atEOF) yy_peek = false; else { boolean eof = yy_refill(); yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; if (eof) yy_peek = false; else yy_peek = yy_buffer_l[yy_markedPos_l] == '\n'; } if (yy_peek) yyline--; } if (yy_markedPos_l > yy_startRead) { switch (yy_buffer_l[yy_markedPos_l-1]) { case '\n': case '\u000B': case '\u000C': case '\u0085': case '\u2028': case '\u2029': yy_atBOL = true; break; case '\r': if (yy_markedPos_l < yy_endRead_l) yy_atBOL = yy_buffer_l[yy_markedPos_l] != '\n'; else if (yy_atEOF) yy_atBOL = false; else { boolean eof = yy_refill(); yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; if (eof) yy_atBOL = false; else yy_atBOL = yy_buffer_l[yy_markedPos_l] != '\n'; } break; default: yy_atBOL = false; } } yy_action = -1; yy_startRead_l = yy_currentPos_l = yy_currentPos = yy_startRead = yy_markedPos_l; if (yy_atBOL) yy_state = YY_LEXSTATE[yy_lexical_state+1]; else yy_state = YY_LEXSTATE[yy_lexical_state]; yy_was_pushback = false; yy_forAction: { while (true) { if (yy_currentPos_l < yy_endRead_l) yy_input = yy_buffer_l[yy_currentPos_l++]; else if (yy_atEOF) { yy_input = YYEOF; break yy_forAction; } else { // store back cached positions yy_currentPos = yy_currentPos_l; yy_markedPos = yy_markedPos_l; yy_pushbackPos = yy_pushbackPos_l; boolean eof = yy_refill(); // get translated positions and possibly new buffer yy_currentPos_l = yy_currentPos; yy_markedPos_l = yy_markedPos; yy_buffer_l = yy_buffer; yy_endRead_l = yy_endRead; yy_pushbackPos_l = yy_pushbackPos; if (eof) { yy_input = YYEOF; break yy_forAction; } else { yy_input = yy_buffer_l[yy_currentPos_l++]; } } int yy_next = yytrans_l[ yy_rowMap_l[yy_state] + yycmap_l[yy_input] ]; if (yy_next == -1) break yy_forAction; yy_state = yy_next; int yy_attributes = yy_attr_l[yy_state]; if ( (yy_attributes & 2) == 2 ) yy_pushbackPos_l = yy_currentPos_l; if ( (yy_attributes & 1) == 1 ) { yy_was_pushback = (yy_attributes & 4) == 4; yy_action = yy_state; yy_markedPos_l = yy_currentPos_l; if ( (yy_attributes & 8) == 8 ) break yy_forAction; } } } // store back cached position yy_markedPos = yy_markedPos_l; if (yy_was_pushback) yy_markedPos = yy_pushbackPos_l; switch (yy_action) { case 708: case 727: case 728: case 738: { lexThrow = concExc(lexThrow,yytext().substring(12).trim()); } case 745: break; case 539: case 589: case 590: case 633: { lexThrow = concExc(lexThrow,yytext().substring(8).trim()); } case 746: break; case 559: case 560: case 602: case 603: { bufferSize = Integer.parseInt(yytext().substring(8).trim()); } case 747: break; case 637: case 673: case 674: case 705: { eofThrow = concExc(eofThrow,yytext().substring(10).trim()); } case 748: break; case 670: case 703: case 704: case 725: { initThrow = concExc(initThrow,yytext().substring(11).trim()); } case 749: break; case 679: case 710: case 711: case 729: { scanErrorException = yytext().substring(11).trim(); } case 750: break; case 723: case 724: { lexThrow = concExc(lexThrow,string); yybegin(MACROS); } case 751: break; case 700: case 701: { initThrow = concExc(initThrow,string); yybegin(MACROS); } case 752: break; case 666: case 667: { eofThrow = concExc(eofThrow,string); yybegin(MACROS); } case 753: break; case 68: { yybegin(REGEXP); return symbol(MORETHAN); } case 754: break; case 375: { packed = false; useRowMap = true; } case 755: break; case 137: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(REGEXPEND); } case 756: break; case 88: { yybegin(REGEXP); return symbol(RBRACE); } case 757: break; case 32: { yybegin(REGEXP); return symbol(EQUALS); } case 758: break; case 45: { yybegin(CHARCLASS); return symbol(OPENCLASS); } case 759: break; case 418: case 419: { eofCode = conc(eofCode,string); yybegin(MACROS); } case 760: break; case 548: { isAbstract = true; } case 761: break; case 99: case 100: case 102: case 103: case 104: case 105: case 106: case 107: case 108: case 109: case 110: case 111: case 112: case 113: case 114: case 119: case 121: case 180: case 183: case 184: case 185: case 186: case 187: case 188: case 189: case 190: case 191: case 192: case 193: case 194: case 195: case 196: case 197: case 198: case 199: case 200: case 201: case 202: case 203: case 204: case 205: case 206: case 207: case 208: case 209: case 210: case 216: case 219: case 246: case 247: case 249: case 250: case 251: case 252: case 253: case 254: case 255: case 256: case 257: case 258: case 259: case 260: case 261: case 262: case 263: case 264: case 265: case 266: case 267: case 268: case 270: case 271: case 272: case 273: case 274: case 275: case 276: case 277: case 278: case 282: case 283: case 304: case 305: case 306: case 307: case 308: case 309: case 310: case 311: case 312: case 313: case 314: case 315: case 316: case 317: case 318: case 319: case 321: case 322: case 323: case 325: case 326: case 327: case 328: case 329: case 330: case 331: case 333: case 334: case 335: case 336: case 337: case 338: case 340: case 343: case 344: case 364: case 365: case 366: case 367: case 368: case 369: case 370: case 371: case 372: case 374: case 376: case 377: case 378: case 379: case 380: case 383: case 384: case 385: case 386: case 387: case 388: case 389: case 390: case 391: case 392: case 393: case 394: case 395: case 396: case 399: case 400: case 423: case 424: case 425: case 426: case 427: case 428: case 429: case 430: case 431: case 433: case 434: case 435: case 436: case 437: case 438: case 439: case 440: case 441: case 443: case 444: case 445: case 448: case 449: case 450: case 453: case 454: case 480: case 483: case 484: case 485: case 491: case 492: case 493: case 494: case 495: case 496: case 497: case 498: case 499: case 502: case 504: case 507: case 534: case 536: case 537: case 543: case 544: case 546: case 547: case 549: case 550: case 551: case 586: case 587: case 588: case 595: case 596: case 597: case 598: case 599: case 632: case 640: { throw new ScannerException(file,ErrorMessages.UNKNOWN_OPTION, yyline, yycolumn); } case 762: break; case 86: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_NL, yyline, yycolumn); } case 763: break; case 76: { balance++; return symbol(OPENCLASS); } case 764: break; case 75: { throw new ScannerException(file,ErrorMessages.EOL_IN_CHARCLASS,yyline,yycolumn); } case 765: break; case 31: case 34: { throw new ScannerException(file,ErrorMessages.UNKNOWN_OPTION, yyline, yycolumn); } case 766: break; case 19: case 20: case 21: case 30: case 36: case 61: case 62: case 63: case 70: case 82: case 85: case 87: { throw new ScannerException(file,ErrorMessages.UNEXPECTED_CHAR, yyline, yycolumn); } case 767: break; case 214: case 215: { inclusive_states = false; yybegin(STATELIST); } case 768: break; case 223: case 286: case 346: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16))); } case 769: break; case 240: { return symbol(MACROUSE, yytext().substring(1,yytext().length()-1)); } case 770: break; case 241: case 242: { classCode = conc(classCode,string); yybegin(MACROS); } case 771: break; case 285: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16))); } case 772: break; case 339: { packed = true; useRowMap = true; } case 773: break; case 442: { packed = false; useRowMap = false; } case 774: break; case 503: case 556: { className = yytext().substring(7).trim(); } case 775: break; case 127: case 130: case 221: { return symbol(CHAR, new Character( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8))); } case 776: break; case 126: case 128: case 129: { return symbol(CHAR, new Character(yytext().charAt(1))); } case 777: break; case 74: case 79: { return symbol(CHAR, new Character(yytext().charAt(0))); } case 778: break; case 39: case 40: case 50: { return symbol(CHAR, new Character(yytext().charAt(0))); } case 779: break; case 49: { yybegin(REGEXPSTART); return symbol(LBRACE); } case 780: break; case 58: { lookAheadUsed = true; return symbol(DOLLAR); } case 781: break; case 175: { return symbol(REPEAT, new Integer(yytext().substring(1).trim())); } case 782: break; case 473: case 474: { initCode = conc(initCode,string); yybegin(MACROS); } case 783: break; case 487: case 488: case 538: case 540: { throw new ScannerException(file,ErrorMessages.QUIL_THROW, yyline); } case 784: break; case 500: case 501: case 552: case 554: { throw new ScannerException(file,ErrorMessages.QUIL_CUPSYM, yyline); } case 785: break; case 592: case 593: case 636: case 638: { throw new ScannerException(file,ErrorMessages.QUIL_EOFTHROW, yyline); } case 786: break; case 37: { return symbol_countUpdate(RBRACE, null); } case 787: break; case 676: case 677: case 707: case 709: { throw new ScannerException(file,ErrorMessages.QUIL_YYLEXTHROW, yyline); } case 788: break; case 1: case 18: { /* ignore */ } case 789: break; case 397: { debugOption = true; } case 790: break; case 505: case 506: case 558: case 561: { throw new ScannerException(file,ErrorMessages.NO_BUFFER_SIZE, yyline); } case 791: break; case 630: case 631: case 669: case 671: { throw new ScannerException(file,ErrorMessages.QUIL_INITTHROW, yyline); } case 792: break; case 643: case 644: case 678: case 680: { throw new ScannerException(file,ErrorMessages.QUIL_SCANERROR, yyline); } case 793: break; case 15: case 16: { userCode.append(yytext()); } case 794: break; case 446: { columnCount = true; } case 795: break; case 583: case 584: { eofVal = string.toString(); yybegin(MACROS); } case 796: break; case 80: { return symbol(HAT); } case 797: break; case 0: case 14: case 17: { return symbol(EOF); } case 798: break; case 51: { return symbol(BAR); } case 799: break; case 38: { yybegin(STATES); return symbol_countUpdate(LESSTHAN, null); } case 800: break; case 57: { return symbol(QUESTION); } case 801: break; case 398: case 479: { return symbol(UNICODE); } case 802: break; case 672: { isImplementing = concExc(isImplementing, yytext().substring(12).trim()); } case 803: break; case 77: { if (balance > 0) balance--; else yybegin(REGEXP); return symbol(CLOSECLASS); } case 804: break; case 545: { eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 805: break; case 135: { return symbol(CHAR,new Character('\b')); } case 806: break; case 134: { return symbol(CHAR,new Character('\f')); } case 807: break; case 133: { return symbol(CHAR,new Character('\r')); } case 808: break; case 132: { return symbol(CHAR,new Character('\t')); } case 809: break; case 131: { return symbol(CHAR,new Character('\n')); } case 810: break; case 47: { lookAheadUsed = true; return symbol(LOOKAHEAD); } case 811: break; case 59: { bolUsed = true; return symbol(HAT); } case 812: break; case 60: case 232: case 408: case 409: case 462: case 466: case 515: case 522: case 568: case 569: case 574: case 575: case 609: case 612: case 613: case 618: case 621: case 622: case 652: case 653: case 654: case 655: case 659: case 660: case 661: case 662: case 688: case 689: case 690: case 696: case 697: case 698: case 718: case 722: case 734: case 737: { actionText.append(yytext()); } case 813: break; case 155: case 157: case 158: { string.append(yytext().charAt(1)); } case 814: break; case 156: case 159: case 237: { string.append( (char) Integer.parseInt(yytext().substring(1,yytext().length()), 8)); } case 815: break; case 160: { string.append('\"'); } case 816: break; case 161: { string.append('\n'); } case 817: break; case 162: { string.append('\t'); } case 818: break; case 163: { string.append('\r'); } case 819: break; case 164: { string.append('\f'); } case 820: break; case 165: { string.append('\b'); } case 821: break; case 217: case 218: { inclusive_states = true; yybegin(STATELIST); } case 822: break; case 239: case 300: case 358: { string.append( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16)); } case 823: break; case 299: { string.append( (char) Integer.parseInt(yytext().substring(2,yytext().length()), 16)); } case 824: break; case 461: { throw new ScannerException(file,ErrorMessages.EOF_WO_ACTION); } case 825: break; case 83: case 84: { string.append(yytext()); } case 826: break; case 69: { string.append(yytext()); } case 827: break; case 567: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol(EOFRULE); } case 828: break; case 81: { return symbol(DASH); } case 829: break; case 73: { yybegin(nextState); return symbol(STRING, string.toString()); } case 830: break; case 67: { return symbol(COMMA); } case 831: break; case 44: { return symbol(POINT); } case 832: break; case 46: { return symbol(STAR); } case 833: break; case 52: { return symbol(BANG); } case 834: break; case 53: { return symbol(TILDE); } case 835: break; case 56: { return symbol(PLUS); } case 836: break; case 320: case 341: { return symbol(FULL); } case 837: break; case 95: { commentbalance++; } case 838: break; case 71: case 72: { throw new ScannerException(file,ErrorMessages.UNTERMINATED_STR, yyline, yycolumn); } case 839: break; case 65: { balance++; actionText.append('{'); } case 840: break; case 123: { nextState = REGEXPSTART; yybegin(COMMENT); } case 841: break; case 89: { yybegin(REGEXP); } case 842: break; case 35: { yybegin(REGEXP); } case 843: break; case 24: case 25: { yybegin(MACROS); } case 844: break; case 650: { return symbol(JLETTERCLASS); } case 845: break; case 140: { yybegin(REPEATEXP); return symbol(REPEAT, new Integer(yytext().trim().substring(1).trim())); } case 846: break; case 78: { string.setLength(0); nextState = CHARCLASS; yybegin(STRING_CONTENT); } case 847: break; case 743: { return symbol(JLETTERDIGITCLASS); } case 848: break; case 120: { macroDefinition = false; yybegin(REGEXPSTART); return symbol(DELIMITER); } case 849: break; case 27: { return symbol(IDENT, yytext()); } case 850: break; case 42: case 43: { if (macroDefinition) { yybegin(MACROS); } return symbol(REGEXPEND); } case 851: break; case 55: { return symbol(CLOSEBRACKET); } case 852: break; case 169: { yypushback(1); yycolumn--; return symbol(CHAR, new Character(yytext().charAt(0))); } case 853: break; case 118: { Out.warning(ErrorMessages.NOT_AT_BOL, yyline); yypushback(1); } case 854: break; case 229: { return symbol_countUpdate(MACROUSE, makeMacroIdent()); } case 855: break; case 382: { isYYEOF = true; } case 856: break; case 486: { notUnix = true; } case 857: break; case 139: { nextState = REGEXP; yybegin(COMMENT); } case 858: break; case 97: { nextState = MACROS; yybegin(COMMENT); } case 859: break; case 181: case 182: { string.setLength(0); yybegin(COPY); } case 860: break; case 269: { cupCompatible = true; isImplementing = concExc(isImplementing, "java_cup.runtime.Scanner"); if (functionName == null) functionName = "next_token"; if (tokenType == null) tokenType = "java_cup.runtime.Symbol"; if (eofVal == null) eofVal = "return new java_cup.runtime.Symbol("+cupSymbol+".EOF);"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 861: break; case 432: case 489: case 541: { tokenType = yytext().substring(6).trim(); } case 862: break; case 591: case 635: { isExtending = yytext().substring(9).trim(); } case 863: break; case 639: case 675: { functionName = yytext().substring(10).trim(); } case 864: break; case 713: { return symbol(LOWERCLASS); } case 865: break; case 712: { return symbol(UPPERCLASS); } case 866: break; case 22: { states.insert(yytext(),inclusive_states); } case 867: break; case 54: { return symbol(OPENBRACKET); } case 868: break; case 566: { return symbol(DIGITCLASS); } case 869: break; case 606: { return symbol(LETTERCLASS); } case 870: break; case 124: { } case 871: break; case 94: { if (commentbalance > 0) commentbalance--; else yybegin(nextState); } case 872: break; case 90: case 177: { t.start(); yybegin(MACROS); macroDefinition = true; return symbol(USERCODE,userCode); } case 873: break; case 66: { } case 874: break; case 41: { } case 875: break; case 29: { } case 876: break; case 28: case 33: { } case 877: break; case 23: case 26: { } case 878: break; case 48: { string.setLength(0); nextState = REGEXP; yybegin(STRING_CONTENT); } case 879: break; case 64: { if (balance > 0) { balance--; actionText.append('}'); } else { yybegin(REGEXPSTART); Action a = new Action(actionText.toString(), action_line); actions.addElement(a); return symbol(ACTION, a); } } case 880: break; case 145: case 146: { if (macroDefinition) { yybegin(EATWSPNL); return symbol(BAR); } else { yybegin(REGEXPSTART); return symbol(NOACTION); } } case 881: break; case 178: case 179: { } case 882: break; case 248: case 482: { isInteger = true; } case 883: break; case 324: { lineCount = true; } case 884: break; case 332: { charCount = true; } case 885: break; case 381: { isFinal = true; } case 886: break; case 451: { isInteger = true; if (eofVal == null) eofVal = "return 0;"; eofCode = conc(eofCode, " yyclose();"); eofThrow = concExc(eofThrow, "java.io.IOException"); } case 887: break; case 452: { isPublic = true; } case 888: break; case 481: { isIntWrap = true; } case 889: break; case 508: { actionText.setLength(0); yybegin(JAVA_CODE); action_line = yyline+1; return symbol_countUpdate(EOFRULE, null); } case 890: break; case 535: { File f = new File(yytext().substring(9).trim()); if ( !f.canRead() ) throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); // check for cycle if (files.search(f) > 0) throw new ScannerException(file,ErrorMessages.FILE_CYCLE, yyline); try { yypushStream( new FileReader(f) ); files.push(file); file = f; Out.println("Including \""+file+"\""); } catch (FileNotFoundException e) { throw new ScannerException(file,ErrorMessages.NOT_READABLE, yyline); } } case 891: break; case 553: case 600: case 601: case 645: { cupSymbol = yytext().substring(8).trim(); if (cupCompatible) Out.warning(ErrorMessages.CUPSYM_AFTER_CUP, yyline); } case 892: break; case 555: { cupDebug = true; } case 893: break; case 557: { caseless = true; } case 894: break; case 641: { visibility = "private"; Skeleton.makePrivate(); } case 895: break; case 642: { standalone = true; isInteger = true; } case 896: break; default: if (yy_input == YYEOF && yy_startRead == yy_currentPos) { yy_atEOF = true; yy_do_eof(); switch (yy_lexical_state) { case STRING_CONTENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_STRING); } case 745: break; case MACROS: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 746: break; case STATELIST: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 747: break; case CHARCLASS: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 748: break; case JAVA_CODE: { throw new ScannerException(file,ErrorMessages.EOF_IN_ACTION, action_line-1); } case 749: break; case REPEATEXP: { throw new ScannerException(file,ErrorMessages.EOF_IN_REGEXP); } case 750: break; case COMMENT: { throw new ScannerException(file,ErrorMessages.EOF_IN_COMMENT); } case 751: break; case STATES: { throw new ScannerException(file,ErrorMessages.EOF_IN_STATES); } case 752: break; case COPY: { throw new ScannerException(file,ErrorMessages.EOF_IN_MACROS); } case 753: break; default: { if ( yymoreStreams() ) { file = (File) files.pop(); yypopStream(); } else return symbol(EOF); } } } else { yy_ScanError(YY_NO_MATCH); } } } } | 6220 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6220/c5b664099369e6ab7a60ec6354a7dd4322f53873/LexScan.java/clean/jflex/src/JFlex/LexScan.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8565,
1024,
67,
2316,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
9016,
67,
2630,
31,
565,
509,
9016,
67,
1128,
31,
565,
509,
5378,
9016,
2338,
67,
80,
273,
9016,
2338,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8565,
1024,
67,
2316,
1435,
1216,
2252,
18,
1594,
18,
14106,
288,
565,
509,
9016,
67,
2630,
31,
565,
509,
9016,
67,
1128,
31,
565,
509,
5378,
9016,
2338,
67,
80,
273,
9016,
2338,
... |
} catch (Exception e) | } catch (Exception e) | public void sendMessage(RequestMessage requestMessage) { if (!connected()) createConnection(); ResponseMessage responseMessage = null; boolean transactionComplete = false; int badTransmissionCount = 0; while (!transactionComplete) { String requestMessageXML = null; try {// requestMessage.stampTime(); requestMessageXML = requestMessage.translateToXML(false); if (requestMessageXML.getBytes().length > ServerConstants.MAX_PACKET_SIZE) { debug("requestMessage is Bigger than acceptable server size \n CANNOT SEND : " + requestMessageXML); break; } output.println(requestMessageXML); if (show(5)) debug("Services Client: just sent message: " + requestMessageXML); if (show(5)) debug("Services Client: awaiting a response"); response = reader.readLine(); responseMessage = (ResponseMessage) ResponseMessage .translateFromXMLString(response, translationSpace); // System.out.println("the response lagged "+(System.currentTimeMillis() - responseMessage.timeStamp)+"ms; the round trip took "+(System.currentTimeMillis() - requestMessage.timeStamp)+"ms.)"); if (responseMessage instanceof ServerToClientConnection.BadTransmissionResponse) { badTransmissionCount++; if (badTransmissionCount == 3) { debug("ERROR: Quitting sending to the server because of the network condition after " + badTransmissionCount + " times try "); break; } else debug("ERROR: BADTransmission of: " + requestMessageXML + "\n\t Resending."); } else { if (show(5)) debug("received response: " + response); processResponse(responseMessage); transactionComplete = true; } } catch (Exception e) { debug("ERROR: Failed sending " + requestMessage + ": " + e); transactionComplete = true; } } } | 51914 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51914/e3af0ac6dc29032be374466553b7374a4fbc7374/ServicesClient.java/buggy/ecologylab/services/distributed/legacy/ServicesClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15399,
12,
691,
1079,
590,
1079,
13,
565,
288,
3639,
309,
16051,
8537,
10756,
5411,
27870,
5621,
3639,
2306,
1079,
766,
1079,
273,
446,
31,
3639,
1250,
2492,
6322,
273,
629,
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,
1071,
918,
15399,
12,
691,
1079,
590,
1079,
13,
565,
288,
3639,
309,
16051,
8537,
10756,
5411,
27870,
5621,
3639,
2306,
1079,
766,
1079,
273,
446,
31,
3639,
1250,
2492,
6322,
273,
629,
31... |
offsets = (int) in.getFilePointer(); | offsets = (int) (fileLength - in.available()); | protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); little = true; location = 0; // some DICOM files have a 128 byte header followed by a 4 byte identifier byte[] four = new byte[4]; in.seek(128); in.read(four); if ((new String(four)).equals("DICM")) { // header exists, so we'll read it in.seek(0); byte[] header = new byte[128]; in.read(header); metadata.put("Header information", new String(header)); in.skipBytes(4); location = 128; } else in.seek(0); boolean decodingTags = true; boolean signed = false; while (decodingTags) { int tag = getNextTag(); if ((location & 1) != 0) oddLocations = true; if (inSequence) { addInfo(tag, null); if (in.getFilePointer() >= (in.length() - 4)) decodingTags = false; continue; } String s; switch (tag) { case TRANSFER_SYNTAX_UID: byte[] st = new byte[elementLength]; in.read(st); s = new String(st); addInfo(tag, s); if (s.indexOf("1.2.4") > -1 || s.indexOf("1.2.5") > -1) { throw new FormatException("Sorry, compressed DICOM images not " + "supported"); } if (s.indexOf("1.2.840.10008.1.2.2") >= 0) { bigEndianTransferSyntax = true; } break; case NUMBER_OF_FRAMES: st = new byte[elementLength]; in.read(st); s = new String(st); addInfo(tag, s); double frames = Double.parseDouble(s); if (frames > 1.0) numImages = (int) frames; break; case SAMPLES_PER_PIXEL: int samplesPerPixel = DataTools.read2SignedBytes(in, little); addInfo(tag, samplesPerPixel); break; case PHOTOMETRIC_INTERPRETATION: st = new byte[elementLength]; in.read(st); String photoInterpretation = new String(st); addInfo(tag, photoInterpretation); break; case PLANAR_CONFIGURATION: int planarConfiguration = DataTools.read2SignedBytes(in, little); addInfo(tag, planarConfiguration); break; case ROWS: height = DataTools.read2SignedBytes(in, little); addInfo(tag, height); break; case COLUMNS: width = DataTools.read2SignedBytes(in, little); addInfo(tag, width); break; case PIXEL_SPACING: st = new byte[elementLength]; in.read(st); String scale = new String(st); addInfo(tag, scale); break; case SLICE_SPACING: st = new byte[elementLength]; in.read(st); String spacing = new String(st); addInfo(tag, spacing); break; case BITS_ALLOCATED: bitsPerPixel = DataTools.read2SignedBytes(in, little); addInfo(tag, bitsPerPixel); break; case PIXEL_REPRESENTATION: int pixelRepresentation = DataTools.read2SignedBytes(in, little); signed = pixelRepresentation == 1; addInfo(tag, pixelRepresentation); break; case WINDOW_CENTER: case WINDOW_WIDTH: case RESCALE_INTERCEPT: case RESCALE_SLOPE: st = new byte[elementLength]; in.read(st); String c = new String(st); addInfo(tag, c); break; case PIXEL_DATA: if (elementLength != 0) { offsets = (int) in.getFilePointer(); addInfo(tag, location); decodingTags = false; } else addInfo(tag, null); break; case 0x7f880010: if (elementLength != 0) { offsets = location + 4; decodingTags = false; } break; default: addInfo(tag, null); } if (in.getFilePointer() >= (in.length() - 4)) decodingTags = false; } if (numImages == 0) numImages = 1; // populate OME-XML node if (ome != null) { OMETools.setPixels(ome, new Integer((String) metadata.get("Columns")), // SizeX new Integer((String) metadata.get("Rows")), // SizeY new Integer(numImages), // SizeZ new Integer(1), // SizeC new Integer(1), // SizeT "int" + ((String) metadata.get("Bits Allocated")), // PixelType new Boolean(!little), // BigEndian "XYZTC"); OMETools.setImage(ome, null, // name ((String) metadata.get("Content Date")) + "T" + ((String) metadata.get("Content Time")), // CreationDate (String) metadata.get("Image Type")); OMETools.setInstrument(ome, (String) metadata.get("Manufacturer"), (String) metadata.get("Manufacturer's Model Name"), null, null); } } | 55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/91859a26506b8a1d312b398da2c3ecd94e02fa60/DicomReader.java/clean/loci/formats/DicomReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
565,
1272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
565,
1272... |
x = -x; | bits &= 0x7fffffffffffffffL; x = Double.longBitsToDouble(bits); | public static Object abs (Object value) { if (value == null || value == Values.empty) return value; value = numberCast(value); if (value instanceof Double) { Double d = (Double) value; double x = d.doubleValue(); if (x >= 0) return d; x = -x; /* #ifdef JAVA5 */ // return Double.valueOf(x); /* #else */ return new Double(x); /* #endif */ } if (value instanceof Float) { Float d = (Float) value; float x = d.floatValue(); if (x >= 0) return d; x = -x; /* #ifdef JAVA5 */ // return Float.valueOf(x) ; /* #else */ return new Float(x); /* #endif */ } if (value instanceof BigDecimal) { BigDecimal dec = (BigDecimal) value; if (dec.signum() < 0) dec = dec.negate(); return dec; } return ((Numeric) value).abs(); } | 36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/c6abdf4f35134d717a6c609763ba2ffb329a5e9b/NumberValue.java/buggy/gnu/xquery/util/NumberValue.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1033,
2417,
261,
921,
460,
13,
225,
288,
565,
309,
261,
1132,
422,
446,
747,
460,
422,
6876,
18,
5531,
13,
1377,
327,
460,
31,
565,
460,
273,
1300,
9735,
12,
1132,
1769,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1033,
2417,
261,
921,
460,
13,
225,
288,
565,
309,
261,
1132,
422,
446,
747,
460,
422,
6876,
18,
5531,
13,
1377,
327,
460,
31,
565,
460,
273,
1300,
9735,
12,
1132,
1769,
56... |
Mounted m = (Mounted)equipmentList.elementAt(cs.getIndex()); | Mounted m = (Mounted)equipmentList.get(cs.getIndex()); | public EquipmentType getEquipmentType(CriticalSlot cs) { if (cs.getType() != CriticalSlot.TYPE_EQUIPMENT) return null; Mounted m = (Mounted)equipmentList.elementAt(cs.getIndex()); return m.getType(); } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/cbe74d020e74a85c0e3b8ebf32d1ebc85c1ba62f/Entity.java/clean/megamek/src/megamek/common/Entity.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19008,
11568,
559,
4774,
372,
11568,
559,
12,
30286,
8764,
2873,
13,
288,
3639,
309,
261,
2143,
18,
588,
559,
1435,
480,
385,
15197,
8764,
18,
2399,
67,
41,
3500,
2579,
3212,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19008,
11568,
559,
4774,
372,
11568,
559,
12,
30286,
8764,
2873,
13,
288,
3639,
309,
261,
2143,
18,
588,
559,
1435,
480,
385,
15197,
8764,
18,
2399,
67,
41,
3500,
2579,
3212,
13,
... |
if (procedureNamePattern == null) procedureNamePattern = "%"; if (columnNamePattern == null) columnNamePattern = "%"; | public java.sql.ResultSet getProcedureColumns(String catalog, String schemaPattern, String procedureNamePattern, String columnNamePattern) throws SQLException { if (procedureNamePattern == null) procedureNamePattern = "%"; if (columnNamePattern == null) columnNamePattern = "%"; // for now, this returns an empty result set. Field f[] = new Field[13]; 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, "PROCEDURE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "PROCEDURE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "PROCEDURE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "COLUMN_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[6] = new Field(connection, "TYPE_NAME", iVarcharOid, NAME_SIZE); f[7] = new Field(connection, "PRECISION", iInt4Oid, 4); f[8] = new Field(connection, "LENGTH", iInt4Oid, 4); f[9] = new Field(connection, "SCALE", iInt2Oid, 2); f[10] = new Field(connection, "RADIX", iInt2Oid, 2); f[11] = new Field(connection, "NULLABLE", iInt2Oid, 2); f[12] = new Field(connection, "REMARKS", iVarcharOid, NAME_SIZE); // add query loop here return connection.getResultSet(null, f, v, "OK", 1); } | 11803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11803/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/AbstractJdbc1DatabaseMetaData.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
3570,
8153,
3380,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
12131,
461,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
430,
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,
2252,
18,
4669,
18,
13198,
3570,
8153,
3380,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
12131,
461,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
430,
261,
... | |
usedMemCol = new Color(display, 255, 255, 175); | usedMemCol = display.getSystemColor(SWT.COLOR_INFO_BACKGROUND); | public HeapStatus(Composite parent, IPreferenceStore prefStore) { super(parent, SWT.NONE); maxMem = getMaxMem(); maxMemKnown = maxMem != Long.MAX_VALUE; this.prefStore = prefStore; prefStore.addPropertyChangeListener(prefListener); setUpdateIntervalInMS(prefStore.getInt(IHeapStatusConstants.PREF_UPDATE_INTERVAL)); showMax = prefStore.getBoolean(IHeapStatusConstants.PREF_SHOW_MAX); button = new Canvas(this, SWT.NONE); button.setToolTipText(WorkbenchMessages.HeapStatus_buttonToolTip); ImageDescriptor imageDesc = WorkbenchImages.getWorkbenchImageDescriptor("elcl16/trash.gif"); //$NON-NLS-1$ gcImage = imageDesc.createImage(); if (gcImage != null) imgBounds = gcImage.getBounds(); Display display = getDisplay(); usedMemCol = new Color(display, 255, 255, 175); // light yellow lowMemCol = new Color(display, 255, 70, 70); // medium red freeMemCol = new Color(display, 255, 190, 125); // light orange bgCol = display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND); sepCol = topLeftCol = armCol = display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW); bottomRightCol = display.getSystemColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW); markCol = textCol = display.getSystemColor(SWT.COLOR_WIDGET_FOREGROUND); createContextMenu(); Listener listener = new Listener() { public void handleEvent(Event event) { switch (event.type) { case SWT.Dispose: doDispose(); break; case SWT.Resize: Rectangle rect = getClientArea(); button.setBounds(rect.width - imgBounds.width - 1, 1, imgBounds.width, rect.height - 2); break; case SWT.Paint: if (event.widget == HeapStatus.this) { paintComposite(event.gc); } else if (event.widget == button) { paintButton(event.gc); } break; case SWT.MouseUp: if (event.button == 1) { gc(); arm(false); } break; case SWT.MouseDown: if (event.button == 1) { if (event.widget == HeapStatus.this) setMark(); else if (event.widget == button) arm(true); } break; case SWT.MouseExit: arm(false); break; } } }; addListener(SWT.Dispose, listener); addListener(SWT.MouseDown, listener); addListener(SWT.Paint, listener); addListener(SWT.Resize, listener); button.addListener(SWT.MouseDown, listener); button.addListener(SWT.MouseExit, listener); button.addListener(SWT.MouseUp, listener); button.addListener(SWT.Paint, listener); // make sure stats are updated before first paint updateStats(); getDisplay().asyncExec(new Runnable() { public void run() { if (!isDisposed()) { getDisplay().timerExec(updateInterval, timer); } } }); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/8fb6039a25cd362736c55942c574a206e62facca/HeapStatus.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/HeapStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
30241,
1482,
12,
9400,
982,
16,
467,
9624,
2257,
11307,
2257,
13,
288,
202,
202,
9565,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
1896,
3545,
273,
7288,
3545,
5621,
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,
482,
30241,
1482,
12,
9400,
982,
16,
467,
9624,
2257,
11307,
2257,
13,
288,
202,
202,
9565,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
202,
1896,
3545,
273,
7288,
3545,
5621,
20... |
if (bufferPosition + window < cepstraBufferSize) { Arrays.fill(cepstraBuffer, bufferPosition, bufferPosition + window, last); bufferPosition += window; } else { for (int i = 0; i < window; i++) { addCepstrumData(last); } | for (int i = 0; i < window; i++) { addCepstrumData(last); | private int replicateLastCepstrum() { float[] last = null; if (bufferPosition > 0) { last = this.cepstraBuffer[bufferPosition - 1]; } else if (bufferPosition == 0) { last = cepstraBuffer[cepstraBuffer.length - 1]; } else { throw new Error("BufferPosition < 0"); } if (bufferPosition + window < cepstraBufferSize) { Arrays.fill(cepstraBuffer, bufferPosition, bufferPosition + window, last); bufferPosition += window; } else { for (int i = 0; i < window; i++) { addCepstrumData(last); } } return window; } | 8321 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8321/95b0c224eabe18249590c45d72f37aa525597dc9/LiveFeatureExtractor.java/clean/sphinx4/edu/cmu/sphinx/frontend/LiveFeatureExtractor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
28476,
3024,
39,
881,
701,
379,
1435,
288,
3639,
1431,
8526,
1142,
273,
446,
31,
3639,
309,
261,
4106,
2555,
405,
374,
13,
288,
5411,
1142,
273,
333,
18,
311,
84,
701,
69,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
28476,
3024,
39,
881,
701,
379,
1435,
288,
3639,
1431,
8526,
1142,
273,
446,
31,
3639,
309,
261,
4106,
2555,
405,
374,
13,
288,
5411,
1142,
273,
333,
18,
311,
84,
701,
69,
... |
public org.quickfix.field.OrderQty2 getOrderQty2() throws FieldNotFound { org.quickfix.field.OrderQty2 value = new org.quickfix.field.OrderQty2(); | public quickfix.field.OrderQty2 getOrderQty2() throws FieldNotFound { quickfix.field.OrderQty2 value = new quickfix.field.OrderQty2(); | public org.quickfix.field.OrderQty2 getOrderQty2() throws FieldNotFound { org.quickfix.field.OrderQty2 value = new org.quickfix.field.OrderQty2(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix41/OrderCancelReplaceRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2448,
53,
4098,
22,
11973,
53,
4098,
22,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2448,
53,
4098,
22,
460,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2448,
53,
4098,
22,
11973,
53,
4098,
22,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2448,
53,
4098,
22,
460,
273,
... |
verifyFieldsForClass(anObject, aClass.getSuperclass(), alreadyProcessed); try { alreadyProcessed.addElement(anObject); | verifyFieldsForClass(anObject, aClass.getSuperclass(), alreadyProcessed); try { alreadyProcessed.addElement(anObject); | static private void verifyFieldsForClass( Object anObject, Class aClass, Vector alreadyProcessed ) { if (alreadyProcessed.contains(anObject) || isBaseObjectClass(aClass)) { return; } verifyFieldsForClass(anObject, aClass.getSuperclass(), alreadyProcessed); try { alreadyProcessed.addElement(anObject); Field[] fields = aClass.getDeclaredFields(); for (int i = 0; i < fields.length; ++i) { verifyField(fields[i], anObject, alreadyProcessed); } } finally { alreadyProcessed.removeElement(anObject); } } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/Verifier.java/clean/jmock/core/src/org/jmock/util/Verifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
3238,
918,
3929,
2314,
22581,
12,
1033,
392,
921,
16,
1659,
20148,
16,
5589,
1818,
13533,
262,
288,
202,
202,
430,
261,
17583,
13533,
18,
12298,
12,
304,
921,
13,
747,
353,
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,
3845,
3238,
918,
3929,
2314,
22581,
12,
1033,
392,
921,
16,
1659,
20148,
16,
5589,
1818,
13533,
262,
288,
202,
202,
430,
261,
17583,
13533,
18,
12298,
12,
304,
921,
13,
747,
353,
2... |
return RubyString.newString(getRuntime(), "" + getValue()); | return getRuntime().newString("" + getValue()); | public RubyString to_s() { return RubyString.newString(getRuntime(), "" + getValue()); } | 45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyFloat.java/clean/src/org/jruby/RubyFloat.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
358,
67,
87,
1435,
288,
3639,
327,
18814,
7675,
2704,
780,
2932,
6,
397,
2366,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
358,
67,
87,
1435,
288,
3639,
327,
18814,
7675,
2704,
780,
2932,
6,
397,
2366,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
ruby.getRubyFrame().tmpPush(); ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { savedCRef = ruby.getCRef(); ruby.setCRef(lRefValue); ruby.getRubyFrame().setCbase(lRefValue); } | ruby.getRubyFrame().tmpPush(); ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { savedCRef = ruby.getCRef(); ruby.setCRef(lRefValue); ruby.getRubyFrame().setCbase(lRefValue); } | public RubyObject eval(Ruby ruby, RubyObject self) { CRefNode savedCRef = null; ruby.getRubyFrame().tmpPush(); ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { savedCRef = ruby.getCRef(); ruby.setCRef(lRefValue); ruby.getRubyFrame().setCbase(lRefValue); } if (getTable() != null) { ruby.getScope().setLocalValues(new ArrayList(Collections.nCopies(getTable().size(), ruby.getNil()))); ruby.getScope().setLocalNames(getTable()); } /* else { ruby.getRubyScope().setLocalValues(null); ruby.getRubyScope().setLocalNames(null); }*/ // unneeded, it is done in RubyScope.push() Benoit RubyObject result = getNextNode().eval(ruby, self); ruby.getScope().pop(); ruby.getRubyFrame().tmpPop(); if (savedCRef != null) { ruby.setCRef(savedCRef); } return result; } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/7798138390a306a202dcec9bde45928dae2e852e/ScopeNode.java/clean/org/jruby/nodes/ScopeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
202,
202,
39,
1957,
907,
5198,
39,
1957,
273,
446,
31,
202,
202,
27768,
18,
588,
54,
10340,
3219,
7675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19817,
921,
5302,
12,
54,
10340,
22155,
16,
19817,
921,
365,
13,
288,
202,
202,
39,
1957,
907,
5198,
39,
1957,
273,
446,
31,
202,
202,
27768,
18,
588,
54,
10340,
3219,
7675,
... |
CommentPK pk = (CommentPK)entityContext.getPrimaryKey(); | CommentPK pk = (CommentPK) entityContext.getPrimaryKey(); | public void ejbLoad() throws RemoteException { PreparedStatement stmt= null; Connection conn = null; try { CommentPK pk = (CommentPK)entityContext.getPrimaryKey(); id = pk.getId(); conn = getConnection(); stmt = conn.prepareStatement("SELECT * FROM comments WHERE id=?"); stmt.setInt(1, id.intValue()); ResultSet rs = stmt.executeQuery(); if (!rs.first()) { throw new EJBException("Object comment not found"); } fromUserId = new Integer(rs.getInt("from_user_id")); toUserId = new Integer(rs.getInt("to_user_id")); itemId =new Integer( rs.getInt("item_id")); rating = rs.getInt("rating"); date = rs.getString("date"); comment = rs.getString("comment"); rs.close(); stmt.close(); conn.close(); } catch (Exception e) { try { if(stmt != null) stmt.close(); if(conn != null) conn.close(); } catch (Exception ignore){} throw new RemoteException("Failed to update comment bean: " +e); } } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/CommentBean.java/buggy/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/CommentBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
18024,
2563,
1435,
1216,
18361,
225,
288,
565,
16913,
3480,
33,
446,
31,
565,
4050,
1487,
273,
446,
31,
565,
775,
565,
288,
1377,
9821,
8784,
2365,
273,
261,
4469,
8784,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18024,
2563,
1435,
1216,
18361,
225,
288,
565,
16913,
3480,
33,
446,
31,
565,
4050,
1487,
273,
446,
31,
565,
775,
565,
288,
1377,
9821,
8784,
2365,
273,
261,
4469,
8784,
13,
... |
return new BugCodeMatcher(element.valueOf("@name")); | return new BugMatcher(element.valueOf("@name"), ""); | private Matcher getMatcher(Element element) throws FilterException { // These will be either BugCode, Priority, Class, Method, Field, or Or elements. String name = element.getName(); if (name.equals("BugCode")) { return new BugCodeMatcher(element.valueOf("@name")); } else if (name.equals("BugPattern")) { return new BugPatternMatcher(element.valueOf("@name")); } else if (name.equals("Priority")) { return new PriorityMatcher(element.valueOf("@value")); } else if (name.equals("Class")) { Attribute nameAttr = element.attribute("name"); if (nameAttr == null) throw new FilterException("Missing name attribute in Class element"); return new ClassMatcher(nameAttr.getValue()); } else if (name.equals("Method")) { Attribute nameAttr = element.attribute("name"); Attribute paramsAttr = element.attribute("params"); Attribute returnsAttr = element.attribute("returns"); if (nameAttr == null) throw new FilterException("Missing name attribute in Method element"); if ((paramsAttr != null || returnsAttr != null) && (paramsAttr == null || returnsAttr == null)) throw new FilterException("Method element must have both params and returns attributes if either is used"); if (paramsAttr == null) return new MethodMatcher(nameAttr.getValue()); else return new MethodMatcher(nameAttr.getValue(), paramsAttr.getValue(), returnsAttr.getValue()); } else if (name.equals("Field")) { Attribute nameAttr = element.attribute("name"); if (nameAttr == null) throw new FilterException("Missing name attribute in Field element"); return new FieldMatcher(nameAttr.getValue()); } else if (name.equals("Or")) { OrMatcher orMatcher = new OrMatcher(); Iterator<Element> i = element.elementIterator(); while (i.hasNext()) { orMatcher.addChild(getMatcher(i.next())); } return orMatcher; } else throw new FilterException("Unknown element: " + name); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/3d4a2cdaca5ad0cc03498808071324c8df15b3b3/Filter.java/clean/findbugs/src/java/edu/umd/cs/findbugs/filter/Filter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
9757,
336,
6286,
12,
1046,
930,
13,
1216,
4008,
503,
288,
202,
202,
759,
8646,
903,
506,
3344,
16907,
1085,
16,
13354,
16,
1659,
16,
2985,
16,
2286,
16,
578,
2965,
2186,
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,
9757,
336,
6286,
12,
1046,
930,
13,
1216,
4008,
503,
288,
202,
202,
759,
8646,
903,
506,
3344,
16907,
1085,
16,
13354,
16,
1659,
16,
2985,
16,
2286,
16,
578,
2965,
2186,
18,
... |
return jjStopAtPos(0, 28); | return jjStopAtPos(0, 29); | private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 33: jjmatchedKind = 37; return jjMoveStringLiteralDfa1_0(0x1000000000L); case 35: jjmatchedKind = 11; return jjMoveStringLiteralDfa1_0(0x500L); case 36: jjmatchedKind = 6; return jjMoveStringLiteralDfa1_0(0x80L); case 37: return jjStopAtPos(0, 28); case 38: return jjMoveStringLiteralDfa1_0(0x20000000L); case 40: return jjStopAtPos(0, 4); case 42: return jjStopAtPos(0, 26); case 43: return jjStopAtPos(0, 25); case 44: return jjStopAtPos(0, 3); case 45: return jjStopAtPos(0, 24); case 47: return jjStopAtPos(0, 27); case 60: jjmatchedKind = 31; return jjMoveStringLiteralDfa1_0(0x100000000L); case 61: jjmatchedKind = 38; return jjMoveStringLiteralDfa1_0(0x800000000L); case 62: jjmatchedKind = 33; return jjMoveStringLiteralDfa1_0(0x400000000L); case 91: return jjStopAtPos(0, 1); case 93: return jjStopAtPos(0, 2); case 101: return jjMoveStringLiteralDfa1_0(0xc0000000000L); case 102: return jjMoveStringLiteralDfa1_0(0x400000L); case 105: return jjMoveStringLiteralDfa1_0(0x30000000000L); case 115: return jjMoveStringLiteralDfa1_0(0x300000000000L); case 116: return jjMoveStringLiteralDfa1_0(0x200000L); case 124: return jjMoveStringLiteralDfa1_0(0x40000000L); default : return jjMoveNfa_0(0, 0); }} | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/b827d0bf89e728dc8324fc63c2ad3662c9d19cd3/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
20,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
13159,
30,
540,
10684,
11073,
5677,
273,
18091,
31,
540,
327,
10684,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
7607,
28565,
40,
507,
20,
67,
20,
1435,
95,
282,
1620,
12,
1397,
2156,
13,
282,
288,
1377,
648,
13159,
30,
540,
10684,
11073,
5677,
273,
18091,
31,
540,
327,
10684,
76... |
saveEntry(entry); | entry.container.saveDockableWindow(entry.win); | public void removeDockableWindow(String name) { Entry entry = (Entry)windows.get(name); if(entry == null) throw new IllegalArgumentException("This DockableWindowManager" + " does not have a window named " + name); saveEntry(entry); entry.container.removeDockableWindow(entry.win); windows.remove(name); } | 6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/4322e592a252b85bde544e44b3b1592ffc24ec52/DockableWindowManager.java/buggy/org/gjt/sp/jedit/gui/DockableWindowManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
40,
975,
429,
3829,
12,
780,
508,
13,
202,
95,
202,
202,
1622,
1241,
273,
261,
1622,
13,
13226,
18,
588,
12,
529,
1769,
202,
202,
430,
12,
4099,
422,
446,
13,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
40,
975,
429,
3829,
12,
780,
508,
13,
202,
95,
202,
202,
1622,
1241,
273,
261,
1622,
13,
13226,
18,
588,
12,
529,
1769,
202,
202,
430,
12,
4099,
422,
446,
13,
1... |
return super.getName(methodName); } | return super.getName(methodName); } | protected Object getName(String methodName) { return super.getName(methodName); } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/3566e1a7ad8b593e1e164b778b867ec924da1894/MarkupBuilder.java/clean/src/main/groovy/xml/MarkupBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
1723,
12,
780,
4918,
13,
288,
202,
202,
2463,
2240,
18,
17994,
12,
2039,
461,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
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,
377,
4750,
1033,
1723,
12,
780,
4918,
13,
288,
202,
202,
2463,
2240,
18,
17994,
12,
2039,
461,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
protected synchronized void swapBuffers() throws GLException { | public synchronized void swapBuffers() throws GLException { | protected synchronized void swapBuffers() throws GLException { } | 46813 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46813/f90ab644c419486f7894fda3725a9c81de8bb283/WindowsOffscreenGLContext.java/clean/src/net/java/games/jogl/impl/windows/WindowsOffscreenGLContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
7720,
13699,
1435,
1216,
10252,
503,
288,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
7720,
13699,
1435,
1216,
10252,
503,
288,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
log.error("-- GetStateEvent, cnt=" + cnt); | System.err.println("-- GetStateEvent, cnt=" + cnt); | public void recvLoop() throws Exception { Thread task = new Thread(new Runnable() { public void run() { Object tmp; while (! closed) { try { tmp = channel.receive(0); if (tmp instanceof ExitEvent) { log.error("-- received EXIT, waiting for ChannelReconnected callback"); break; } if (tmp instanceof GetStateEvent) { synchronized (Coordinator.this) { log.error("-- GetStateEvent, cnt=" + cnt); channel.returnState(Util.objectToByteBuffer(new Integer(cnt))); } continue; } } catch (ChannelNotConnectedException not) { break; } catch (ChannelClosedException closed) { break; } catch (Exception e) { log.error(e); continue; } } } }); task.start(); } | 3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/13de68466e3cf7fde6ee0bde0cee09a33e837e89/STATE_TRANSFER_Test.java/buggy/tests/junit/org/jgroups/protocols/STATE_TRANSFER_Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
10665,
6452,
1435,
1216,
1185,
288,
540,
4884,
1562,
273,
394,
4884,
12,
2704,
10254,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
9079,
1033,
1853,
31,
9079,
1323,
16051,
4375,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
10665,
6452,
1435,
1216,
1185,
288,
540,
4884,
1562,
273,
394,
4884,
12,
2704,
10254,
1435,
288,
5411,
1071,
918,
1086,
1435,
288,
9079,
1033,
1853,
31,
9079,
1323,
16051,
4375,... |
Iterator strings = os.iterator(runtime.getClasses().getStringClass()); | Iterator strings = os.iterator(runtime.getClass("String")); | public void testObjectSpace() { ObjectSpace os = new ObjectSpace(); IRubyObject o1 = runtime.newFixnum(10); IRubyObject o2 = runtime.newFixnum(20); IRubyObject o3 = runtime.newFixnum(30); IRubyObject o4 = runtime.newString("hello"); os.add(o1); os.add(o2); os.add(o3); os.add(o4); List storedFixnums = new ArrayList(3); storedFixnums.add(o1); storedFixnums.add(o2); storedFixnums.add(o3); Iterator strings = os.iterator(runtime.getClasses().getStringClass()); assertTrue(strings.hasNext()); assertSame(o4, strings.next()); assertTrue(! strings.hasNext()); Iterator numerics = os.iterator(runtime.getClasses().getNumericClass()); for (int i = 0; i < 3; i++) { assertTrue(numerics.hasNext()); Object item = numerics.next(); assertTrue(storedFixnums.contains(item)); storedFixnums.remove(item); } assertTrue(! numerics.hasNext()); } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/ca6b16e996ea9af83ce593594b9c69b9364a9924/TestObjectSpace.java/clean/test/org/jruby/test/TestObjectSpace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
921,
3819,
1435,
288,
3639,
1033,
3819,
1140,
273,
394,
1033,
3819,
5621,
3639,
15908,
10340,
921,
320,
21,
273,
3099,
18,
2704,
8585,
2107,
12,
2163,
1769,
3639,
15908,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
921,
3819,
1435,
288,
3639,
1033,
3819,
1140,
273,
394,
1033,
3819,
5621,
3639,
15908,
10340,
921,
320,
21,
273,
3099,
18,
2704,
8585,
2107,
12,
2163,
1769,
3639,
15908,
... |
if (orderedHaplos[i][j].getPercentage()*100 > dt){ | if (orderedHaplos[i][j].getPercentage()*100 > Options.getHaplotypeDisplayThreshold()){ | public void adjustDisplay(int dt){ //this is called when the controller wants to change the haps //displayed, instead of directly repainting so that none of this math //is done when the screen repaints for other reasons (resizing, focus change, etc) //first filter haps on displaythresh Haplotype[][] filts; filts = new Haplotype[orderedHaplos.length][]; int numhaps = 0; int printable = 0; for (int i = 0; i < orderedHaplos.length; i++){ Vector tempVector = new Vector(); for (int j = 0; j < orderedHaplos[i].length; j++){ if (orderedHaplos[i][j].getPercentage()*100 > dt){ tempVector.add(orderedHaplos[i][j]); numhaps++; } } if (numhaps > 1){ printable++; numhaps=0; } filts[i] = new Haplotype[tempVector.size()]; tempVector.copyInto(filts[i]); } // if user sets display thresh higher than most common hap in any given block if (!(printable == filts.length)){ JOptionPane.showMessageDialog(this.getParent(), "Error: At least one block has too few haplotypes of frequency > " + dt, "Error", JOptionPane.ERROR_MESSAGE); return; } displayThresh = dt; filteredHaplos = filts; //then re-tag try{ filteredHaplos = theData.generateCrossovers(filteredHaplos); }catch (HaploViewException e){ JOptionPane.showMessageDialog(this.getParent(), e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE); } multidprimeArray = theData.getMultiDprime(); //if the haps pane exists, we want to make sure the vert scroll bar appears if necessary if (this.getParent() != null){ if (this.getPreferredSize().height > this.getParent().getHeight()){ ((JScrollPane)this.getParent().getParent()).setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS ); }else{ ((JScrollPane)this.getParent().getParent()).setVerticalScrollBarPolicy( JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); } } repaint(); } | 51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/f8f34aa4f0ace8092ba1fa18efb4d719ba00759a/HaplotypeDisplay.java/buggy/edu/mit/wi/haploview/HaplotypeDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5765,
4236,
12,
474,
3681,
15329,
3639,
368,
2211,
353,
2566,
1347,
326,
2596,
14805,
358,
2549,
326,
5622,
87,
3639,
368,
5417,
329,
16,
3560,
434,
5122,
24962,
310,
1427,
716... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5765,
4236,
12,
474,
3681,
15329,
3639,
368,
2211,
353,
2566,
1347,
326,
2596,
14805,
358,
2549,
326,
5622,
87,
3639,
368,
5417,
329,
16,
3560,
434,
5122,
24962,
310,
1427,
716... |
out.println("rc += tightMarshalThrowable1(wireFormat, " + getter + ", bs);"); | out.println(" rc += tightMarshalThrowable1(wireFormat, " + getter + ", bs);"); | protected int generateTightMarshal1Body(PrintWriter out) { List properties = getProperties(); int baseSize = 0; for (Iterator iter = properties.iterator(); iter.hasNext();) { JProperty property = (JProperty) iter.next(); JAnnotation annotation = property.getAnnotation("openwire:property"); JAnnotationValue size = annotation.getValue("size"); JClass propertyType = property.getType(); String type = propertyType.getSimpleName(); String getter = "info." + property.getGetter().getSimpleName() + "()"; out.print(indent); if (type.equals("boolean")) { out.println("bs.writeBoolean(" + getter + ");"); } else if (type.equals("byte")) { baseSize += 1; } else if (type.equals("char")) { baseSize += 2; } else if (type.equals("short")) { baseSize += 2; } else if (type.equals("int")) { baseSize += 4; } else if (type.equals("long")) { out.println("rc+=tightMarshalLong1(wireFormat, " + getter + ", bs);"); } else if (type.equals("String")) { out.println("rc += tightMarshalString1(" + getter + ", bs);"); } else if (type.equals("byte[]")) { if (size == null) { out.println("rc += tightMarshalByteArray1(" + getter + ", bs);"); } else { out.println("rc += tightMarshalConstByteArray1(" + getter + ", bs, "+size.asInt()+");"); } } else if (type.equals("ByteSequence")) { out.println("rc += tightMarshalByteSequence1(" + getter + ", bs);"); } else if (propertyType.isArrayType()) { if (size != null) { out.println("rc += tightMarshalObjectArrayConstSize1(wireFormat, " + getter + ", bs, " + size.asInt() + ");"); } else { out.println("rc += tightMarshalObjectArray1(wireFormat, " + getter + ", bs);"); } } else if (isThrowable(propertyType)) { out.println("rc += tightMarshalThrowable1(wireFormat, " + getter + ", bs);"); } else { if (isCachedProperty(property)) { out.println("rc += tightMarshalCachedObject1(wireFormat, (DataStructure)" + getter + ", bs);"); } else { out.println("rc += tightMarshalNestedObject1(wireFormat, (DataStructure)" + getter + ", bs);"); } } } return baseSize; } | 17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/cd0fb615deb6accf8dfdc07fbe58b53cf6b972a2/OpenWireJavaMarshallingScript.java/clean/activemq-core/src/gram/java/org/apache/activemq/openwire/tool/OpenWireJavaMarshallingScript.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
509,
2103,
56,
750,
8105,
21,
2250,
12,
5108,
2289,
596,
13,
288,
3639,
987,
1790,
273,
9392,
5621,
3639,
509,
1026,
1225,
273,
374,
31,
3639,
364,
261,
3198,
1400,
273,
1790,
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,
4750,
509,
2103,
56,
750,
8105,
21,
2250,
12,
5108,
2289,
596,
13,
288,
3639,
987,
1790,
273,
9392,
5621,
3639,
509,
1026,
1225,
273,
374,
31,
3639,
364,
261,
3198,
1400,
273,
1790,
18,... |
System.setOut(console); System.setErr(console); | System.setOut(console); System.setErr(console); | public static void open(String consolePath) throws IOException { String pluginHome = System.getProperty("netscape.oji.plugin.home"); Properties props = loadProperties(pluginHome); boolean append = Boolean.valueOf(props.getProperty("netscape.oji.plugin.console.append")).booleanValue(); // redirect I/O to specified file. MRJSession.out = System.out; MRJSession.err = System.err; console = new PrintStream(new FileOutputStream(consolePath, append)); System.setOut(console); System.setErr(console); Date date = new Date(); String version = props.getProperty("netscape.oji.plugin.version"); System.out.println("MRJ Plugin for Mac OS X v" + version); System.out.println("[starting up Java Applet Security @ " + date + "]"); // bring up MRJ Applet Security. if (System.getSecurityManager() == null) { try { // make sure that the classes in MRJPlugin.jar are granted all permissions. // see p. 117 of "Inside Java 2 Platform Security" for more information. System.setProperty("java.security.policy", "file:" + pluginHome + "/MRJPlugin.policy"); String name = props.getProperty("netscape.oji.plugin.security"); SecurityManager securityManager = (SecurityManager) Class.forName(name).newInstance(); System.setSecurityManager(securityManager); } catch (Exception ex) { } } } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/d13cda72a38dba7f0427de2b0f79b81d41d9e273/MRJSession.java/buggy/plugin/oji/MRJCarbon/plugin/Source/MRJSession.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
1696,
12,
780,
2983,
743,
13,
1216,
1860,
288,
3639,
514,
1909,
8684,
273,
2332,
18,
588,
1396,
2932,
2758,
12476,
18,
10089,
18,
4094,
18,
8712,
8863,
3639,
6183,
3458,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1696,
12,
780,
2983,
743,
13,
1216,
1860,
288,
3639,
514,
1909,
8684,
273,
2332,
18,
588,
1396,
2932,
2758,
12476,
18,
10089,
18,
4094,
18,
8712,
8863,
3639,
6183,
3458,
... |
public FrameBodyTDRC(byte textEncoding, String text) | public FrameBodyTDRC() | public FrameBodyTDRC(byte textEncoding, String text) { super(textEncoding, text); this.setYear("2010"); } | 40452 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40452/8e6062659057068b4b85fb7b41c567e179db6f7c/FrameBodyTDRC.java/buggy/src/org/jaudiotagger/tag/id3/framebody/FrameBodyTDRC.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8058,
2250,
56,
6331,
39,
1435,
565,
288,
3639,
2240,
12,
955,
4705,
16,
977,
1769,
3639,
333,
18,
542,
5593,
2932,
6734,
20,
8863,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
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,
8058,
2250,
56,
6331,
39,
1435,
565,
288,
3639,
2240,
12,
955,
4705,
16,
977,
1769,
3639,
333,
18,
542,
5593,
2932,
6734,
20,
8863,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
((Axis) axes.get(i)).setPercent(true); | series.setStacked(true); | private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) { Chart helperModel = (Chart) EcoreUtil.copy(currentChart); if((currentChart instanceof ChartWithAxes)) // Chart is ChartWithAxes { if(currentChart.getType().equals(sType)) // Original chart is of this type (BarChart) { if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { if(sNewSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) axes.get(i)).setPercent(true); } else { ((Axis) axes.get(i)).setPercent(false); } EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); if((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType.equalsIgnoreCase("Percent Stacked"))) { series.setStacked(true); } else { series.setStacked(false); } } } } } else if(currentChart.getType().equals("Line Chart") || currentChart.getType().equals("Stock Chart") || currentChart.getType().equals("Scatter Chart")) { if(!currentChart.getType().equals("Line Chart")) { currentChart.setSampleData(getConvertedSampleData(currentChart.getSampleData())); } currentChart.setType(sType); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.TEXT_LITERAL); if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is not of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { if(sNewSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) axes.get(i)).setPercent(true); } else { ((Axis) axes.get(i)).setPercent(false); } EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); if((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType.equalsIgnoreCase("Percent Stacked"))) { series.setStacked(true); } else { series.setStacked(false); } ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().set(j, series); } } } } else { return null; } } else { // Create a new instance of the correct type and set initial properties currentChart = ChartWithAxesImpl.create(); currentChart.setType(sType); currentChart.setSubType(sNewSubType); ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.TEXT_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); // Copy generic chart properties from the old chart currentChart.setBlock(helperModel.getBlock()); currentChart.setDescription(helperModel.getDescription()); currentChart.setGridColumnCount(helperModel.getGridColumnCount()); currentChart.setSampleData(helperModel.getSampleData()); currentChart.setScript(helperModel.getScript()); currentChart.setSeriesThickness(helperModel.getSeriesThickness()); currentChart.setUnits(helperModel.getUnits()); if(helperModel.getType().equals("Pie Chart")) { // Clear existing series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().clear(); // Copy base series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().add(((ChartWithoutAxes) helperModel).getSeriesDefinitions().get(0)); // Clear existing series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().clear(); // Copy orthogonal series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().addAll(((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeriesDefinitions()); // Update the base series Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getDesignTimeSeries(); series = getConvertedSeries(series); // Clear existing series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().clear(); // Add converted series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().add(series); // Update the orthogonal series EList seriesdefinitions = ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); if((sNewSubType.equalsIgnoreCase("Stacked") || sNewSubType.equalsIgnoreCase("Percent Stacked"))) { series.setStacked(true); } else { series.setStacked(false); } // Clear any existing series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); // Add the new series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } else { return null; } } if(currentChart instanceof ChartWithAxes && !((ChartWithAxes) currentChart).getOrientation().equals(newOrientation)) { ((ChartWithAxes) currentChart).setOrientation(newOrientation); } if(!currentChart.getDimension().equals(getDimensionFor(sNewDimension))) { currentChart.setDimension(getDimensionFor(sNewDimension)); } return currentChart; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/6bb323f181d48ff09735e3426faa8c503d1d7457/BarChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/BarChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14804,
336,
22063,
7984,
12,
7984,
783,
7984,
16,
514,
272,
1908,
30511,
16,
531,
12556,
394,
14097,
16,
514,
272,
1908,
8611,
13,
565,
288,
3639,
14804,
4222,
1488,
273,
261,
7984,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
14804,
336,
22063,
7984,
12,
7984,
783,
7984,
16,
514,
272,
1908,
30511,
16,
531,
12556,
394,
14097,
16,
514,
272,
1908,
8611,
13,
565,
288,
3639,
14804,
4222,
1488,
273,
261,
7984,... |
WorkbenchPlugin.log("Unable to create editor contributor: " + id, e.getStatus()); | IStatus status = StatusUtil.newStatus(e.getStatus(), "Unable to create editor contributor."); StatusManager.getManager().handle(status); | public IEditorActionBarContributor createActionBarContributor() { // Handle case for predefined editor descriptors, like the // one for IEditorRegistry.SYSTEM_INPLACE_EDITOR_ID, which // don't have a configuration element. if (configurationElement == null) { return null; } // Get the contributor class name. String className = configurationElement .getAttribute(IWorkbenchRegistryConstants.ATT_CONTRIBUTOR_CLASS); if (className == null) { return null; } // Create the contributor object. IEditorActionBarContributor contributor = null; try { contributor = (IEditorActionBarContributor) WorkbenchPlugin .createExtension(configurationElement, IWorkbenchRegistryConstants.ATT_CONTRIBUTOR_CLASS); } catch (CoreException e) { WorkbenchPlugin.log("Unable to create editor contributor: " + //$NON-NLS-1$ id, e.getStatus()); } return contributor; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/35492165b8206aabe441da70f8f0c8802b959190/EditorDescriptor.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/EditorDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
6946,
1803,
5190,
442,
19293,
752,
1803,
5190,
442,
19293,
1435,
288,
3639,
368,
5004,
648,
364,
19555,
4858,
14215,
16,
3007,
326,
3639,
368,
1245,
364,
467,
6946,
4243,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
6946,
1803,
5190,
442,
19293,
752,
1803,
5190,
442,
19293,
1435,
288,
3639,
368,
5004,
648,
364,
19555,
4858,
14215,
16,
3007,
326,
3639,
368,
1245,
364,
467,
6946,
4243,
18,
1... |
ParserRule rule = context.parent.rules.getEscapeRule(); | rule = context.parent.rules.getEscapeRule(); | private boolean checkDelegateEnd() { LineContext tempContext = context; context = context.parent; keywords = context.rules.getKeywords(); boolean tempEscaped = escaped; boolean b = handleRule(context.inRule,true); context = tempContext; keywords = context.rules.getKeywords(); if(b && !tempEscaped) { markKeyword(true); tokenHandler.handleToken( (context.parent.inRule.action & ParserRule.EXCLUDE_MATCH) == ParserRule.EXCLUDE_MATCH ? context.parent.rules.getDefault() : context.parent.inRule.token, pos - line.offset,pattern.count,context); context = (LineContext)context.parent.clone(); keywords = context.rules.getKeywords(); context.inRule = null; lastOffset = pos + pattern.count; // move pos to last character of match sequence pos += (pattern.count - 1); return true; } // check escape rule of parent ParserRule rule = context.parent.rules.getEscapeRule(); if(rule != null && handleRule(rule,false)) return true; return false; } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/d008ade0ae33b8d328650ef60052d224965f19b3/TokenMarker.java/clean/org/gjt/sp/jedit/syntax/TokenMarker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
866,
9586,
1638,
1435,
202,
95,
202,
202,
1670,
1042,
1906,
1042,
273,
819,
31,
202,
202,
2472,
273,
819,
18,
2938,
31,
202,
202,
11771,
273,
819,
18,
7482,
18,
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,
225,
202,
1152,
1250,
866,
9586,
1638,
1435,
202,
95,
202,
202,
1670,
1042,
1906,
1042,
273,
819,
31,
202,
202,
2472,
273,
819,
18,
2938,
31,
202,
202,
11771,
273,
819,
18,
7482,
18,
588,
... |
throws IOException { final long offset; final PackedObjectReader objReader; | throws IOException { final long offset; final PackedObjectReader objReader; | public synchronized PackedObjectReader get(final ObjectId id) throws IOException { final long offset; final PackedObjectReader objReader; offset = findOffset(id); if (offset == -1) { return null; } packStream.position(offset); objReader = reader(); objReader.setId(id); return objReader; } | 45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/a4e486719ce78b8050373e6534dfaf4a1572b269/PackReader.java/clean/org.spearce.jgit/src/org/spearce/jgit/lib/PackReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
7930,
23016,
2514,
336,
12,
6385,
21192,
612,
13,
3639,
1216,
1860,
565,
288,
3639,
727,
1525,
1384,
31,
3639,
727,
7930,
23016,
2514,
1081,
2514,
31,
3639,
1384,
273,
1104,
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,
1071,
3852,
7930,
23016,
2514,
336,
12,
6385,
21192,
612,
13,
3639,
1216,
1860,
565,
288,
3639,
727,
1525,
1384,
31,
3639,
727,
7930,
23016,
2514,
1081,
2514,
31,
3639,
1384,
273,
1104,
2... |
bugReporter.reportBug(new BugInstance(bugType, priority) | bugReporter.reportBug(new BugInstance(this, bugType, priority) | public void inspectResult(JavaClass javaClass, MethodGen methodGen, CFG cfg, Dataflow<ResourceValueFrame, ResourceValueAnalysis<Lock>> dataflow, Lock resource) { ResourceValueFrame exitFrame = dataflow.getResultFact(cfg.getExit()); int exitStatus = exitFrame.getStatus(); if (exitStatus == ResourceValueFrame.OPEN || exitStatus == ResourceValueFrame.OPEN_ON_EXCEPTION_PATH) { String bugType; int priority; if (exitStatus == ResourceValueFrame.OPEN) { bugType = "UL_UNRELEASED_LOCK"; priority = HIGH_PRIORITY; } else { bugType = "UL_UNRELEASED_LOCK_EXCEPTION_PATH"; priority = NORMAL_PRIORITY; } String sourceFile = javaClass.getSourceFileName(); bugReporter.reportBug(new BugInstance(bugType, priority) .addClassAndMethod(methodGen, sourceFile) .addSourceLine(methodGen, sourceFile, resource.getLocation().getHandle())); } } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/471821a5392b2c785504cd8da1e82a1014496f4c/FindUnreleasedLock.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindUnreleasedLock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5334,
1253,
12,
5852,
797,
2252,
797,
16,
2985,
7642,
707,
7642,
16,
7577,
2776,
16,
202,
12900,
1910,
2426,
32,
1420,
620,
3219,
16,
2591,
620,
9418,
32,
2531,
9778,
501... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5334,
1253,
12,
5852,
797,
2252,
797,
16,
2985,
7642,
707,
7642,
16,
7577,
2776,
16,
202,
12900,
1910,
2426,
32,
1420,
620,
3219,
16,
2591,
620,
9418,
32,
2531,
9778,
501... |
case Wavelet.BIGPACKDATA: | case CompassMote.BIGPACKDATA: | public void messageReceived(int to, Message m) { UnicastPack pack = (UnicastPack) m; int id = pack.get_data_src(); if (id != owner.getID()) return; switch (pack.get_data_type()) { case Wavelet.BIGPACKHEADER: // If true, this is the initial request, else an ACK. if (!busy && pack.get_data_data_bpHeader_packTotal() == 0) { System.out.println("Got BP header request from mote " + id); type = pack.get_data_data_bpHeader_requestType(); // Build a new BigPack of the requested type BigPack newPack = owner.buildPack(type); if (newPack == null) { System.out.println("BP could not be built for mote " + id + "!"); return; } newMessage(newPack); curPackNum = HEADER_PACK_NUM; sendHeader(); // Send BP header } else if (busy && pack.get_data_data_bpHeader_packTotal() != 0 && curPackNum == HEADER_PACK_NUM && pack.get_data_data_bpHeader_requestType() == type) { System.out.println("Got BP header ack from mote " + id); curPackNum++; sendData(); // Send BP data } break; case Wavelet.BIGPACKDATA: if (busy && pack.get_data_data_bpData_curPack() == curPackNum) { if (morePacksExist()) { System.out.println("Got BP data ack from mote " + id); curPackNum++; sendData(); // Send BP data } else { System.out.println("BP sent to mote " + id + " complete"); busy = false; owner.packerDone(type); // Done! } } break; } } | 52796 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52796/e4b1dd13d7bb52d8759a2c5fe719f1d893aa4897/Packer.java/clean/java/edu/rice/compass/bigpack/Packer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
883,
8872,
12,
474,
358,
16,
2350,
312,
13,
288,
202,
202,
984,
12544,
4420,
2298,
273,
261,
984,
12544,
4420,
13,
312,
31,
202,
202,
474,
612,
273,
2298,
18,
588,
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,
225,
202,
482,
918,
883,
8872,
12,
474,
358,
16,
2350,
312,
13,
288,
202,
202,
984,
12544,
4420,
2298,
273,
261,
984,
12544,
4420,
13,
312,
31,
202,
202,
474,
612,
273,
2298,
18,
588,
67,
... |
private void analyzeMethod(ClassContext classContext, Method method) { try { PostDominatorsAnalysis postDominators = classContext.getNonImplicitExceptionDominatorsAnalysis(method); ValueNumberDataflow vnaDataflow = classContext.getValueNumberDataflow(method); CFG cfg = classContext.getCFG(method); Map<ValueNumber,Integer> valueNumberToParamMap = vnaDataflow.getValueNumberToParamMap(method); if (VERBOSE_DEBUG) { System.out.print("Value number to param map: "); for (Iterator<ValueNumber> i = valueNumberToParamMap.keySet().iterator(); i.hasNext();) { ValueNumber valueNumber = i.next(); System.out.print(valueNumber.getNumber() + "->" + valueNumberToParamMap.get(valueNumber)); } System.out.println(); } BitSet entryPostDominators = postDominators.getResultFact(cfg.getEntry()); if (VERBOSE_DEBUG) { System.out.println("Non-implicit exception entry postdominators: " + entryPostDominators); } UnconditionalDerefProperty property = new UnconditionalDerefProperty(); for (Iterator<BasicBlock> i = cfg.blockIterator(); i.hasNext();) { BasicBlock basicBlock = i.next(); // We're only interested in null checks which postdominate // the cfg entry if (!basicBlock.isNullCheck() /*|| !entryPostDominators.get(basicBlock.getId())*/) { continue; } if (VERBOSE_DEBUG) { System.out.println("Check block " + basicBlock.getId()); } // See if the checked value is a param InstructionHandle handle = basicBlock.getExceptionThrower(); ValueNumberFrame vnaFrame = vnaDataflow.getStartFact(basicBlock); if (!vnaFrame.isValid()) continue; ValueNumber instance = vnaFrame.getInstance( handle.getInstruction(), classContext.getConstantPoolGen()); if (VERBOSE_DEBUG) { System.out.println("\tvn == " + instance.getNumber()); } Integer param = valueNumberToParamMap.get(instance); if (param == null) { continue; } property.setUnconditionalDeref(param.intValue(), true); } if (!property.isEmpty()) { database.setProperty( XMethodFactory.createXMethod(classContext.getJavaClass(), method), property); } } catch (CFGBuilderException e) { reportError(e); } catch (DataflowAnalysisException e) { reportError(e); } } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/13144ac671697df2b3df3012d7d9f8ecd00397cc/TrainUnconditionalDerefParams.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/TrainUnconditionalDerefParams.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
304,
9508,
1305,
12,
797,
1042,
1106,
1042,
16,
1305,
2039,
15329,
202,
202,
698,
95,
1082,
202,
3349,
8832,
30425,
9418,
2767,
8832,
30425,
33,
1106,
1042,
18,
588,
3989... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
304,
9508,
1305,
12,
797,
1042,
1106,
1042,
16,
1305,
2039,
15329,
202,
202,
698,
95,
1082,
202,
3349,
8832,
30425,
9418,
2767,
8832,
30425,
33,
1106,
1042,
18,
588,
3989... | ||
public ServerGame(GameData data, Set localPlayers, IServerMessenger messenger, Map remotePlayerMapping, IChannelMessenger channelMessenger, IRemoteMessenger remoteMessenger, IMessageManager messageManager) | public ServerGame(GameData data, Set localPlayers, IServerMessenger messenger, Map remotePlayerMapping, IChannelMessenger channelMessenger, IRemoteMessenger remoteMessenger) | public ServerGame(GameData data, Set localPlayers, IServerMessenger messenger, Map remotePlayerMapping, IChannelMessenger channelMessenger, IRemoteMessenger remoteMessenger, IMessageManager messageManager) { m_data = data; m_messenger = messenger; m_messageManager = messageManager; m_remoteMessenger = remoteMessenger; m_channelMessenger = channelMessenger; m_vault = new Vault(m_channelMessenger); m_remotePlayers = new HashMap(remotePlayerMapping); m_channelMessenger.createChannel(IGameModifiedChannel.class, IGame.GAME_MODIFICATION_CHANNEL); m_channelMessenger.registerChannelSubscriber(m_gameModifiedChannel, IGame.GAME_MODIFICATION_CHANNEL); m_channelMessenger.createChannel(data.getGameLoader().getDisplayType(), DISPLAY_CHANNEL); setupLocalPlayers(localPlayers); //add a null destination for the null player. IDestination nullDest = new IDestination() { public Message sendMessage(Message message) { return null; } public String getName() { return PlayerID.NULL_PLAYERID.getName(); } }; m_messageManager.addDestination(nullDest); setupDelegateMessaging(data); m_changePerformer = new ChangePerformer(m_data); m_randomStats = new RandomStats(m_remoteMessenger); } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/94dcbc456ee416c732facb9e512450d43ee98531/ServerGame.java/clean/src/games/strategy/engine/framework/ServerGame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3224,
12496,
12,
12496,
751,
501,
16,
1000,
1191,
1749,
3907,
16,
467,
2081,
29329,
31086,
16,
1635,
2632,
12148,
3233,
16,
467,
2909,
29329,
1904,
29329,
16,
467,
5169,
29329,
2632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3224,
12496,
12,
12496,
751,
501,
16,
1000,
1191,
1749,
3907,
16,
467,
2081,
29329,
31086,
16,
1635,
2632,
12148,
3233,
16,
467,
2909,
29329,
1904,
29329,
16,
467,
5169,
29329,
2632,
... |
if (item.indexOf('/') >= 0) type = CLDRFile.TZID; | if (item.indexOf('/') >= 0) type = CLDRFile.TZ_EXEMPLAR; | private static int getType(String item) { int type = CLDRFile.LANGUAGE_NAME; if (item.indexOf('/') >= 0) type = CLDRFile.TZID; // America/Los_Angeles else if (item.length() == 4) type = CLDRFile.SCRIPT_NAME; // Hant else if (item.charAt(0) <= '9') type = CLDRFile.TERRITORY_NAME; // 001 else if (item.charAt(0) < 'a') { if (item.length() == 3) type = CLDRFile.CURRENCY_NAME; else type = CLDRFile.TERRITORY_NAME; // US or USD } return type; } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/93c2c2a206a00b577feb6880bbe25f4be405e413/GenerateG2xG2.java/buggy/tools/java/org/unicode/cldr/tool/GenerateG2xG2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
3130,
12,
780,
761,
13,
288,
202,
202,
474,
618,
273,
14934,
6331,
812,
18,
15547,
67,
1985,
31,
202,
202,
430,
261,
1726,
18,
31806,
2668,
2473,
13,
1545,
374,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
3130,
12,
780,
761,
13,
288,
202,
202,
474,
618,
273,
14934,
6331,
812,
18,
15547,
67,
1985,
31,
202,
202,
430,
261,
1726,
18,
31806,
2668,
2473,
13,
1545,
374,
1... |
public IASTSimpleTypeSpecifier createSimpleTypeSpecifier(IASTScope scope, Type kind, ITokenDuple typeName, boolean isShort, boolean isLong, boolean isSigned, boolean isUnsigned, boolean isTypename ) | public IASTSimpleTypeSpecifier createSimpleTypeSpecifier(IASTScope scope, Type kind, ITokenDuple typeName, boolean isShort, boolean isLong, boolean isSigned, boolean isUnsigned, boolean isTypename, boolean isComplex, boolean isImaginary ) | public IASTSimpleTypeSpecifier createSimpleTypeSpecifier(IASTScope scope, Type kind, ITokenDuple typeName, boolean isShort, boolean isLong, boolean isSigned, boolean isUnsigned, boolean isTypename ) { return new ASTSimpleTypeSpecifier( kind, typeName, isShort, isLong, isSigned, isUnsigned, isTypename ); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/5be9f16c62f0d96b0b15c3ec0642ea39b98ee65b/QuickParseASTFactory.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/QuickParseASTFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
9053,
5784,
559,
21416,
752,
5784,
559,
21416,
12,
45,
9053,
3876,
2146,
16,
1412,
3846,
16,
467,
1345,
40,
2268,
8173,
16,
1250,
353,
4897,
16,
1250,
353,
3708,
16,
1250,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
9053,
5784,
559,
21416,
752,
5784,
559,
21416,
12,
45,
9053,
3876,
2146,
16,
1412,
3846,
16,
467,
1345,
40,
2268,
8173,
16,
1250,
353,
4897,
16,
1250,
353,
3708,
16,
1250,
35... |
try{ DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.newDocument(); Element instructions = root; if(input.equals("")){ debug.warn("No data provided to xmlify"); } else{ /*xxx not needed any more? Document instructions = builder.parse(new File(fileName)); */ document = builder.newDocument(); NodeList patternList = instructions.getElementsByTagName("pattern"); NodeList locationList = instructions.getElementsByTagName("location"); NodeList attrList = instructions.getElementsByTagName("attrname"); if((attrList.getLength()!= patternList.getLength()) && (attrList.getLength()!= locationList.getLength())){ debug.fatal("Error: Invalid xml file. Tags missing."); System.exit(1); } else{ int ruleNo = locationList.getLength(); for(int i = 0; i < ruleNo; i++){ String pattern = (patternList.item(i)).getFirstChild().getNodeValue(); String location = locationList.item(i).getFirstChild().getNodeValue(); String attribute = attrList.item(i).getFirstChild().getNodeValue(); document = buildDom(input, pattern, location, attribute, document); } } } return document; } catch(ParserConfigurationException pc){ pc.printStackTrace(); } return null; | try{ DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.newDocument(); Element instructions = root; if(instructions == null) { debug.warn("No rules for xmlification"); return null; } if(input.equals("")){ debug.warn("No data provided to xmlify"); return null; } /*xxx not needed any more? Document instructions = builder.parse(new File(fileName)); */ document = builder.newDocument(); NodeList patternList = instructions.getElementsByTagName("pattern"); NodeList locationList = instructions.getElementsByTagName("location"); NodeList attrList = instructions.getElementsByTagName("attrname"); if((attrList.getLength()!= patternList.getLength()) && (attrList.getLength()!= locationList.getLength())){ debug.fatal("Error: Invalid xml file. Tags missing."); return null; } else{ int ruleNo = locationList.getLength(); for(int i = 0; i < ruleNo; i++){ String pattern = (patternList.item(i)).getFirstChild().getNodeValue(); String location = locationList.item(i).getFirstChild().getNodeValue(); String attribute = attrList.item(i).getFirstChild().getNodeValue(); document = buildDom(input, pattern, location, attribute, document); } } return document; | public Document extractDomInfo(String input){ try{ //build a new document factory DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.newDocument(); Element instructions = root; if(input.equals("")){ //invalid input, throw a tantrum debug.warn("No data provided to xmlify"); } else{ //proceed to extract information from the xml file /*xxx not needed any more? //step 1: parse the xml file. Document instructions = builder.parse(new File(fileName)); */ document = builder.newDocument(); //step 2a: get a list of regular expressions to use on string //the xml file must contain regex within the tag "pattern" NodeList patternList = instructions.getElementsByTagName("pattern"); //step 2b: get a list of locations where to store the extracted data //the xml file must contain location within the tag "location" NodeList locationList = instructions.getElementsByTagName("location"); //step 2c: get a list of attribute names where to store //the extracted data //the xml file must contain location within the tag "attrname" NodeList attrList = instructions.getElementsByTagName("attrname"); //in case the number of tags in the xml file dont match up, shutdown. if((attrList.getLength()!= patternList.getLength()) && (attrList.getLength()!= locationList.getLength())){ debug.fatal("Error: Invalid xml file. Tags missing."); System.exit(1); } else{ //get the total number of rules to process int ruleNo = locationList.getLength(); //now extract the pattern, location and attribute //and build the dom for each set for(int i = 0; i < ruleNo; i++){ String pattern = (patternList.item(i)).getFirstChild().getNodeValue(); String location = locationList.item(i).getFirstChild().getNodeValue(); String attribute = attrList.item(i).getFirstChild().getNodeValue(); document = buildDom(input, pattern, location, attribute, document); } } } return document; } //do some error catching catch(ParserConfigurationException pc){ pc.printStackTrace(); } return null; } | 14534 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14534/60812e245e541fc0ee6e310a9a669b4ebdd95844/Xmlifier.java/buggy/ep/transform/Xmlifier.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4319,
2608,
8832,
966,
12,
780,
810,
15329,
202,
698,
95,
202,
377,
202,
565,
368,
3510,
279,
394,
1668,
3272,
202,
565,
30236,
3272,
273,
30236,
18,
2704,
1442,
5621,
202,
565,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4319,
2608,
8832,
966,
12,
780,
810,
15329,
202,
698,
95,
202,
377,
202,
565,
368,
3510,
279,
394,
1668,
3272,
202,
565,
30236,
3272,
273,
30236,
18,
2704,
1442,
5621,
202,
565,
4... |
baos.close(); if (baosDebug != null) { | if (baos != null) baos.close(); if (baosDebug != null) | boolean doFETCH(String tag, String sequenceSet, int attributes, List<ImapPartSpecifier> parts, boolean byUID) throws IOException, ImapParseException { if (!checkState(tag, ImapSession.STATE_SELECTED)) return CONTINUE_PROCESSING; // 6.4.8: "However, server implementations MUST implicitly include the UID message // data item as part of any FETCH response caused by a UID command, regardless // of whether a UID was specified as a message data item to the FETCH." if (byUID) attributes |= FETCH_UID; String command = (byUID ? "UID FETCH" : "FETCH"); boolean markRead = mSession.getFolder().isWritable() && (attributes & FETCH_MARK_READ) != 0; List<ImapPartSpecifier> fullMessage = new ArrayList<ImapPartSpecifier>(); if (parts != null && !parts.isEmpty()) for (Iterator<ImapPartSpecifier> it = parts.iterator(); it.hasNext(); ) { ImapPartSpecifier pspec = it.next(); if (pspec.isEntireMessage()) { it.remove(); fullMessage.add(pspec); } } Set<ImapMessage> i4set; synchronized (mMailbox) { i4set = mSession.getFolder().getSubsequence(sequenceSet, byUID); } boolean allPresent = byUID || !i4set.contains(null); i4set.remove(null); for (ImapMessage i4msg : i4set) { OutputStream baos = new BufferedOutputStream(new ConnectionOutputStream(), 4000); ByteArrayOutputStream baosDebug = ZimbraLog.imap.isDebugEnabled() ? new ByteArrayOutputStream() : null; PrintStream result = new PrintStream(new ByteUtil.TeeOutputStream(baos, baosDebug), false, "utf-8"); try { boolean markMessage = markRead && (i4msg.flags & Flag.BITMASK_UNREAD) != 0; boolean empty = true; byte[] raw = null; MailItem item = null; MimeMessage mm = null; if (!fullMessage.isEmpty() || !parts.isEmpty() || (attributes & ~FETCH_FROM_CACHE) != 0) { GetItemOperation op = new GetItemOperation(mSession, getContext(), mMailbox, Requester.IMAP, i4msg.msgId, i4msg.getType()); op.schedule(); item = op.getItem(); } result.print("* " + i4msg.sequence + " FETCH ("); if ((attributes & FETCH_UID) != 0) { result.print((empty ? "" : " ") + "UID " + i4msg.imapUid); empty = false; } if ((attributes & FETCH_INTERNALDATE) != 0) { result.print((empty ? "" : " ") + "INTERNALDATE \"" + mTimeFormat.format(new Date(item.getDate())) + '"'); empty = false; } if ((attributes & FETCH_RFC822_SIZE) != 0) { result.print((empty ? "" : " ") + "RFC822.SIZE " + i4msg.getSize(item)); empty = false; } if ((attributes & FETCH_BINARY_SIZE) != 0) { result.print((empty ? "" : " ") + "BINARY.SIZE[] " + i4msg.getSize(item)); empty = false; } if (!fullMessage.isEmpty()) { raw = ImapMessage.getContent(item); for (ImapPartSpecifier pspec : fullMessage) { ZimbraLog.imap.info("before pspec.write"); result.print(empty ? "" : " "); pspec.write(result, baos, raw); empty = false; ZimbraLog.imap.info("after pspec.write"); } } if (!parts.isEmpty() || (attributes & ~FETCH_FROM_MIME) != 0) { try { // don't use msg.getMimeMessage() because it implicitly expands TNEF attachments InputStream is = raw != null ? new ByteArrayInputStream(raw) : ImapMessage.getContentStream(item); mm = new Mime.FixedMimeMessage(JMSession.getSession(), is); is.close(); } catch (IOException e) { throw ServiceException.FAILURE("error closing stream for message " + i4msg.msgId, e); } } if ((attributes & FETCH_BODY) != 0) { result.print((empty ? "" : " ") + "BODY "); i4msg.serializeStructure(result, mm, false); empty = false; } if ((attributes & FETCH_BODYSTRUCTURE) != 0) { result.print((empty ? "" : " ") + "BODYSTRUCTURE "); i4msg.serializeStructure(result, mm, true); empty = false; } if ((attributes & FETCH_ENVELOPE) != 0) { result.print((empty ? "" : " ") + "ENVELOPE "); i4msg.serializeEnvelope(result, mm); empty = false; } for (ImapPartSpecifier pspec: parts) { result.print(empty ? "" : " "); pspec.write(result, mm); empty = false; } // FIXME: optimize by doing a single mark-read op on multiple messages if (markMessage) { AlterTagOperation op = new AlterTagOperation(mSession, getContext(), mMailbox, Requester.IMAP, i4msg.msgId, i4msg.getType(), Flag.ID_FLAG_UNREAD, false); op.schedule(); } // 6.4.5: "The \Seen flag is implicitly set; if this causes the flags to // change, they SHOULD be included as part of the FETCH responses." if ((attributes & FETCH_FLAGS) != 0 || markMessage) { mSession.getFolder().undirtyMessage(i4msg); result.print((empty ? "" : " ") + i4msg.getFlags(mSession)); empty = false; } } catch (ImapPartSpecifier.BinaryDecodingException e) { // don't write this response line if we're returning NO baos = null; throw new ImapParseException(tag, "UNKNOWN-CTE", command + "failed: unknown content-type-encoding", false); } catch (ServiceException e) { ZimbraLog.imap.warn("ignoring error during " + command + ": ", e); continue; } catch (MessagingException e) { ZimbraLog.imap.warn("ignoring error during " + command + ": ", e); continue; } finally { result.write(')'); result.write(LINE_SEPARATOR_BYTES, 0, LINE_SEPARATOR_BYTES.length); baos.close(); if (baosDebug != null) { ZimbraLog.imap.debug(" S: " + baosDebug); } } } sendNotifications(false, false); if (allPresent) sendOK(tag, command + " completed"); else { // RFC 2180 4.1.2: "The server MAY allow the EXPUNGE of a multi-accessed mailbox, // and on subsequent FETCH commands return FETCH responses only // for non-expunged messages and a tagged NO." sendNO(tag, "some of the requested messages no longer exist"); } return CONTINUE_PROCESSING; } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/ecf5d48bac17375aad037ae7bce3658098876cc2/OzImapConnectionHandler.java/clean/ZimbraServer/src/java/com/zimbra/cs/imap/OzImapConnectionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1250,
741,
20231,
12,
780,
1047,
16,
514,
3102,
694,
16,
509,
1677,
16,
987,
32,
20827,
1988,
21416,
34,
2140,
16,
1250,
635,
3060,
13,
1216,
1860,
16,
467,
1458,
13047,
288,
3639,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
741,
20231,
12,
780,
1047,
16,
514,
3102,
694,
16,
509,
1677,
16,
987,
32,
20827,
1988,
21416,
34,
2140,
16,
1250,
635,
3060,
13,
1216,
1860,
16,
467,
1458,
13047,
288,
3639,
309,... |
MylarPlugin.getContextManager().addListener(uiUpdateManager); | UiExtensionPointReader.initExtensions(); MylarPlugin.getContextManager().addListener(uiUpdateManager); | public void run() { MylarPlugin.getContextManager().addListener(uiUpdateManager); Workbench.getInstance().getActiveWorkbenchWindow().getPartService().addPartListener(viewerConfigurator); IWorkbenchWindow[] windows= workbench.getWorkbenchWindows(); for (int i= 0; i < windows.length; i++) { windows[i].addPageListener(viewerConfigurator);// IWorkbenchPage[] pages= windows[i].getPages();// for (int j= 0; j < pages.length; j++) {// pages[j].addPartListener(viewerManager);// } } if (ApplyMylarToOutlineAction.getDefault() != null) ApplyMylarToOutlineAction.getDefault().update(); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/ffea9ed89adc29b1ae1184818ee9577e822d6fde/MylarUiPlugin.java/clean/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/ui/MylarUiPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
1086,
1435,
288,
7734,
22597,
3625,
2148,
2514,
18,
2738,
7513,
5621,
8005,
7901,
3773,
18,
29120,
1318,
7675,
1289,
2223,
12,
4881,
1891,
1318,
1769,
27573,
4147,
22144,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
1435,
288,
7734,
22597,
3625,
2148,
2514,
18,
2738,
7513,
5621,
8005,
7901,
3773,
18,
29120,
1318,
7675,
1289,
2223,
12,
4881,
1891,
1318,
1769,
27573,
4147,
22144,
18,
58... |
CTabItem item = getTab(oldPart); if (item == null) { return; } oldPart.setVisible(false); | CTabItem item = getTab(oldPart); if (item == null) { return; } oldPart.setVisible(false); | public void removePart(IPresentablePart oldPart) { if (current == oldPart) { titleLabel.setImage(null); current = null; } CTabItem item = getTab(oldPart); if (item == null) { return; } oldPart.setVisible(false); item.dispose(); // Layout the folder again in case there is only one item setControlSize(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/38085a8072ad4fd21bad0983f8bc31ac736c9f72/R21BasicStackPresentation.java/buggy/bundles/org.eclipse.ui.presentations.r21/src/org/eclipse/ui/internal/presentations/R21BasicStackPresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
1988,
12,
2579,
1581,
429,
1988,
1592,
1988,
13,
288,
3639,
309,
261,
2972,
422,
1592,
1988,
13,
288,
540,
202,
2649,
2224,
18,
542,
2040,
12,
2011,
1769,
5411,
783,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
1988,
12,
2579,
1581,
429,
1988,
1592,
1988,
13,
288,
3639,
309,
261,
2972,
422,
1592,
1988,
13,
288,
540,
202,
2649,
2224,
18,
542,
2040,
12,
2011,
1769,
5411,
783,
27... |
List nodes = xpath.selectNodes(dom4jDoc); | List foundNodes = xpath.selectNodes(dom4jDoc); | protected void initialise(UMOMessage message) { splitExpression = splitExpression.trim(); if (logger.isDebugEnabled()) { if (splitExpression.length() == 0) { logger.warn("splitExpression is not specified, no processing will take place"); } else { logger.debug("splitExpression is " + splitExpression); } } Object src = message.getPayload(); try { if (src instanceof byte[]) { src = new String((byte[]) src); } Document dom4jDoc; if (src instanceof String) { String xml = (String) src; SAXReader reader = new SAXReader(); setDoSchemaValidation(reader, isValidateSchema()); InputStream xsdAsStream = ClassHelper.getResourceAsStream(getExternalSchemaLocation(), getClass()); if (xsdAsStream == null) { throw new IllegalArgumentException("Couldn't find schema at " + getExternalSchemaLocation()); } // Need this one to map schemaLocation to a physical location reader.setProperty(JAXP_PROPERTIES_SCHEMA_SOURCE, xsdAsStream); dom4jDoc = reader.read(new StringReader(xml)); } else if (src instanceof org.dom4j.Document) { dom4jDoc = (org.dom4j.Document) src; } else { logger.error("Non-xml message payload: " + src.getClass().toString()); return; } if (dom4jDoc != null) { if (splitExpression.length() > 0) { XPath xpath = dom4jDoc.createXPath(splitExpression); if (namespaces != null) { xpath.setNamespaceURIs(namespaces); } List nodes = xpath.selectNodes(dom4jDoc); if (logger.isDebugEnabled()) { logger.debug("Split into " + nodes.size()); } List parts = new ArrayList(); //Rather than reparsing these in when individual messages are created, lets do it now //We can also avoid parsing the Xml again altogether for (Iterator iterator = nodes.iterator(); iterator.hasNext();) { Node node = (Node) iterator.next(); if(node instanceof Element) { //Can't do detach here just in case the source object was a document. node = (Node)node.clone(); parts.add(DocumentHelper.createDocument((Element)node)); } else { logger.warn("Dcoument node: " + node.asXML() + " is not an element and thus is not a valid part"); } } FilteringXmlMessageSplitter.nodes.set(parts); } } else { logger.warn("Unsupported message type, ignoring"); } } catch (Exception ex) { throw new IllegalArgumentException("Failed to initialise the payload: " + ex.getMessage(), ex); } Map theProperties = new HashMap(); for (Iterator iterator = message.getPropertyNames().iterator(); iterator.hasNext();) { Object propertyKey = iterator.next(); theProperties.put(propertyKey, message.getProperty(propertyKey)); } properties.set(theProperties); } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/65d774ee765ef057132d52265e50a7593c393b0c/FilteringXmlMessageSplitter.java/clean/src/java/org/mule/routing/outbound/FilteringXmlMessageSplitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
21301,
12,
2799,
51,
1079,
883,
13,
565,
288,
3639,
1416,
2300,
273,
1416,
2300,
18,
5290,
5621,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
309,
261,
4939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21301,
12,
2799,
51,
1079,
883,
13,
565,
288,
3639,
1416,
2300,
273,
1416,
2300,
18,
5290,
5621,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
309,
261,
4939,
... |
public static Reader getStdInput() { | static public Reader getStdInput() { | public static Reader getStdInput() { return input; } | 14414 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14414/b9575731aa8c78d3dcdfc6f61ed88ee1fc0a482a/IO.java/buggy/cycmoo/lang/IO.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
5393,
336,
10436,
1210,
1435,
288,
3639,
327,
810,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1071,
5393,
336,
10436,
1210,
1435,
288,
3639,
327,
810,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
logger.info("Found " + entryNames.length + " entries in dictionary " + | logger.info("Found ", "" + entryNames.length, " entries in dictionary ", | public String[] getDictionaryEntries(String dictionaryName) { Dictionary dictionary = (Dictionary)dictionaries.get(dictionaryName); if (dictionary == null) { logger.error("Cannot find requested dictionary"); return new String[0]; } else { // FIXME: dummy method that needs an implementation Entry[] entries = dictionary.getEntry(); String[] entryNames = new String[entries.length]; logger.info("Found " + entryNames.length + " entries in dictionary " + dictionaryName); for (int i=0; i<entries.length; i++) { entryNames[i] = entries[i].getTerm(); } return entryNames; } } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/884a2b9e0a1cd2737846972a46b9d7a5f55059d7/DictionaryDatabase.java/buggy/src/org/openscience/cdk/dict/DictionaryDatabase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
2343,
3192,
5400,
12,
780,
3880,
461,
13,
288,
3639,
16447,
3880,
273,
261,
10905,
13,
72,
14336,
18,
588,
12,
15556,
461,
1769,
3639,
309,
261,
15556,
422,
446,
13,
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,
377,
1071,
514,
8526,
2343,
3192,
5400,
12,
780,
3880,
461,
13,
288,
3639,
16447,
3880,
273,
261,
10905,
13,
72,
14336,
18,
588,
12,
15556,
461,
1769,
3639,
309,
261,
15556,
422,
446,
13,
28... |
if (formats.length == 0) { pw.print(n); } else { int i; if (n == 0 && formats.length >= 3 && formats[2] != null) { i = 2; } else if (n < 0 && formats.length >= 2 && formats[1] != null) { n = -n; i = 1; } else { i = 0; } formats[i].format(n, pw); } } | if (formats.length == 0) { pw.print(n); } else { int i; if (n == 0 && formats.length >= 3 && formats[2] != null) { i = 2; } else if (n < 0 && formats.length >= 2 && formats[1] != null) { n = -n; i = 1; } else { i = 0; } formats[i].format(n, pw); } } | void format(double n, PrintWriter pw) { if (formats.length == 0) { pw.print(n); } else { int i; if (n == 0 && formats.length >= 3 && formats[2] != null) { i = 2; } else if (n < 0 && formats.length >= 2 && formats[1] != null) { n = -n; i = 1; } else { i = 0; } formats[i].format(n, pw); } } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/Format.java/clean/src/main/mondrian/util/Format.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
740,
12,
9056,
290,
16,
14071,
8772,
13,
288,
1082,
202,
430,
261,
11962,
18,
2469,
422,
374,
13,
288,
9506,
202,
14921,
18,
1188,
12,
82,
1769,
1082,
202,
97,
469,
288,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
6459,
740,
12,
9056,
290,
16,
14071,
8772,
13,
288,
1082,
202,
430,
261,
11962,
18,
2469,
422,
374,
13,
288,
9506,
202,
14921,
18,
1188,
12,
82,
1769,
1082,
202,
97,
469,
288,
9... |
public JavaScriptException(Object value) | public JavaScriptException(Object value, String sourceName, int lineNumber) | public JavaScriptException(Object value) { super(ScriptRuntime.toString(value)); this.value = value; } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/965090841fd2987f6eeb940daa588522a6e3b6ff/JavaScriptException.java/clean/js/rhino/src/org/mozilla/javascript/JavaScriptException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
11905,
503,
12,
921,
460,
16,
514,
28337,
16,
509,
13629,
13,
565,
288,
3639,
2240,
12,
3651,
5576,
18,
10492,
12,
1132,
10019,
3639,
333,
18,
1132,
273,
460,
31,
565,
289,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11905,
503,
12,
921,
460,
16,
514,
28337,
16,
509,
13629,
13,
565,
288,
3639,
2240,
12,
3651,
5576,
18,
10492,
12,
1132,
10019,
3639,
333,
18,
1132,
273,
460,
31,
565,
289,
2,
-... |
this.hierarchy = input; } | this.hierarchy = input; } | public void setHierarchy(Hierarchy input) throws OLAPException { this.hierarchy = input; } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/MondrianHierarchyFilter.java/buggy/src/main/mondrian/jolap/MondrianHierarchyFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
12074,
12,
12074,
810,
13,
1216,
531,
48,
2203,
503,
288,
202,
202,
2211,
18,
17937,
273,
810,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
12074,
12,
12074,
810,
13,
1216,
531,
48,
2203,
503,
288,
202,
202,
2211,
18,
17937,
273,
810,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
StatusWindow temp; if (index >= windows.size() || index < 0) | if (index > windows.size()) | public void newActive(int index) { StatusWindow temp; if (index >= windows.size() || index < 0) { temp = (StatusWindow)windows.getFirst(); } else { temp = (StatusWindow)windows.get(index); } doActivate(temp); } | 12160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12160/f3a2a1b81ab7a88729f363d7a9ce4680a7cd0e93/WindowManager.java/clean/rero/src/rero/gui/windows/WindowManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
394,
3896,
12,
474,
770,
13,
565,
288,
4202,
2685,
3829,
1906,
31,
4202,
309,
261,
1615,
1545,
9965,
18,
1467,
1435,
747,
770,
411,
374,
13,
4202,
288,
1850,
1906,
273,
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,
377,
1071,
918,
394,
3896,
12,
474,
770,
13,
565,
288,
4202,
2685,
3829,
1906,
31,
4202,
309,
261,
1615,
1545,
9965,
18,
1467,
1435,
747,
770,
411,
374,
13,
4202,
288,
1850,
1906,
273,
261,
... |
throw new PortalException(e.getMessage(), e); | throw new PortalException(e); | public void setRuntimeData(ChannelRuntimeData rd) throws PortalException { this.runtimeData = rd; // internal state handling String action = runtimeData.getParameter("action"); if (action != null) { if (action.equals("edit")) { // this is an action from the initial profile listing screen // At this point we're supposed to pick up which profile is to be // edited. Integer profileId = null; try { profileId = new Integer(runtimeData.getParameter("profileId")); } catch (NumberFormatException nfe) {} boolean systemProfile = false; if (profileId == null) { // return back to the base state if the profile hasn't been specified context.setState(null); } else { String profileType = runtimeData.getParameter("profileType"); if (profileType == null) { // return to the profile listing context.setState(null); } else { if (profileType.equals("system")) systemProfile = true; // find the UserProfile try { if (systemProfile) { profile = context.getUserLayoutStore().getSystemProfileById(profileId.intValue()); } else { profile = context.getUserLayoutStore().getUserProfileById(context.getPerson(), profileId.intValue()); } } catch (Exception e) { throw new PortalException(e.getMessage(), e); } if (profile == null) { // failed to find the specified profile, return to the base state context.setState(null); } } } } else if (action.equals("completeEdit")) { if (runtimeData.getParameter("submitCancel") != null) { // cancel button has been hit context.setState(null); } else if (runtimeData.getParameter("submitSave") != null) { // save changes profile.setProfileName(runtimeData.getParameter("profileName")); profile.setProfileDescription(runtimeData.getParameter("profileDescription")); // determine new theme stylesheet id int newId = Integer.parseInt(runtimeData.getParameter("stylesheetID")); if (newId != profile.getThemeStylesheetId()) { profile.setThemeStylesheetId(newId); // see if the mime type has changed, alert user } try { if (profile.isSystemProfile()) { // only administrative users should be able to do this context.getUserLayoutStore().updateSystemProfile(profile); } else { context.getUserLayoutStore().updateUserProfile(context.getPerson(), profile); } } catch (Exception e) { throw new PortalException(e.getMessage(), e); } context.setState(null); } } } } | 24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/948a50c00c52659556ab3183d5ea2e316077d789/ManageProfilesState.java/buggy/source/org/jasig/portal/channels/UserPreferences/ManageProfilesState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
5576,
751,
12,
2909,
5576,
751,
9437,
13,
1216,
25478,
503,
288,
1377,
333,
18,
9448,
751,
273,
9437,
31,
1377,
368,
2713,
919,
5057,
1377,
514,
1301,
273,
3099,
751,
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,
918,
444,
5576,
751,
12,
2909,
5576,
751,
9437,
13,
1216,
25478,
503,
288,
1377,
333,
18,
9448,
751,
273,
9437,
31,
1377,
368,
2713,
919,
5057,
1377,
514,
1301,
273,
3099,
751,
18... |
public TA_RetCode MINUS_DI( int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ int today, lookbackTotal, outIdx; double prevHigh, prevLow, prevClose; double prevMinusDM, prevTR; double tempReal, tempReal2, diffP, diffM; int i; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 14; else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; if( optInTimePeriod > 1 ) lookbackTotal = optInTimePeriod + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_MINUS_DI.ordinal()]) ; else lookbackTotal = 1; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outIdx = 0; if( optInTimePeriod <= 1 ) { outBegIdx.value = startIdx; today = startIdx-1; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; while( today < endIdx ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffM > 0) && (diffP < diffM) ) { { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; if( (((-0.00000001)<tempReal)&&(tempReal<0.00000001)) ) outReal[outIdx++] = (double)0.0; else outReal[outIdx++] = diffM/tempReal; } else outReal[outIdx++] = (double)0.0; prevClose = inClose[today]; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS; } outBegIdx.value = today = startIdx; prevMinusDM = 0.0; prevTR = 0.0; today = startIdx - lookbackTotal; prevHigh = inHigh[today]; prevLow = inLow[today]; prevClose = inClose[today]; i = optInTimePeriod-1; while( i-- > 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM += diffM; } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR += tempReal; prevClose = inClose[today]; } i = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_MINUS_DI.ordinal()]) + 1; while( i-- != 0 ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod) + diffM; } else { prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod); } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; } if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) outReal[0] = (100.0*(prevMinusDM/prevTR)) ; else outReal[0] = 0.0; outIdx = 1; while( today < endIdx ) { today++; tempReal = inHigh[today]; diffP = tempReal-prevHigh; prevHigh = tempReal; tempReal = inLow[today]; diffM = prevLow-tempReal; prevLow = tempReal; if( (diffM > 0) && (diffP < diffM) ) { prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod) + diffM; } else { prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod); } { tempReal = prevHigh-prevLow; tempReal2 = Math.abs (prevHigh-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; tempReal2 = Math.abs (prevLow-prevClose); if( tempReal2 > tempReal ) tempReal = tempReal2; } ; prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; prevClose = inClose[today]; if( ! (((-0.00000001)<prevTR)&&(prevTR<0.00000001)) ) outReal[outIdx++] = (100.0*(prevMinusDM/prevTR)) ; else outReal[outIdx++] = 0.0; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;} | 51465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51465/1a230e9b7099cbd2b7e9eb1294130ca009bfedf4/Core.java/buggy/trunk/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
9833,
67,
7055,
1085,
6236,
3378,
67,
2565,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
474,
3838,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9833,
67,
7055,
1085,
6236,
3378,
67,
2565,
12,
474,
1937,
4223,
16,
474,
409,
4223,
16,
9056,
267,
8573,
63,
6487,
9056,
267,
10520,
63,
6487,
9056,
267,
4605,
63,
6487,
474,
3838,
38... | ||
switch (methodId) { | switch (f.methodId) { | public Object execMethod (int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (prototypeFlag) { switch (methodId) { case Id_constructor: return jsConstructor(cx, scope, args, f, thisObj == null); case Id_toString: return toStringHelper(cx, scope, thisObj, cx.hasFeature(Context.FEATURE_TO_STRING_AS_SOURCE), false); case Id_toLocaleString: return toStringHelper(cx, scope, thisObj, false, true); case Id_toSource: return toStringHelper(cx, scope, thisObj, true, false); case Id_join: return js_join(cx, thisObj, args); case Id_reverse: return js_reverse(cx, thisObj, args); case Id_sort: return js_sort(cx, scope, thisObj, args); case Id_push: return js_push(cx, thisObj, args); case Id_pop: return js_pop(cx, thisObj, args); case Id_shift: return js_shift(cx, thisObj, args); case Id_unshift: return js_unshift(cx, thisObj, args); case Id_splice: return js_splice(cx, scope, thisObj, args); case Id_concat: return js_concat(cx, scope, thisObj, args); case Id_slice: return js_slice(cx, thisObj, args); } } return super.execMethod(methodId, f, cx, scope, thisObj, args); } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeArray.java/buggy/js/rhino/src/org/mozilla/javascript/NativeArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
3639,
261,
474,
707,
548,
16,
3124,
2083,
284,
16,
540,
1772,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
... |
void reset(int startLine, int lineCount) { int endLine = startLine + lineCount; if (startLine < 0 || endLine > lineWidth.length) return; for (int i = startLine; i < endLine; i++) { lineWidth[i] = -1; lineHeight[i] = -1; | void reset() { if (layouts != null) { for (int i = 0; i < layouts.length; i++) { TextLayout layout = layouts[i]; if (layout != null) layout.dispose(); } layouts = null; | void reset(int startLine, int lineCount) { int endLine = startLine + lineCount; if (startLine < 0 || endLine > lineWidth.length) return; for (int i = startLine; i < endLine; i++) { lineWidth[i] = -1; lineHeight[i] = -1; } if (startLine <= maxWidthLineIndex && maxWidthLineIndex < endLine) { maxWidth = 0; maxWidthLineIndex = -1; if (lineCount != this.lineCount) { for (int i = 0; i < this.lineCount; i++) { if (lineWidth[i] > maxWidth) { maxWidth = lineWidth[i]; maxWidthLineIndex = i; } } } }} | 12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/8541553dadf05d49f0a2dbb7c8dd48ef34038820/StyledTextRenderer.java/buggy/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
918,
2715,
12,
474,
24636,
16,
509,
980,
1380,
13,
288,
202,
474,
31763,
273,
24636,
397,
980,
1380,
31,
202,
430,
261,
1937,
1670,
411,
374,
747,
31763,
405,
26162,
18,
2469,
13,
327,
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,
918,
2715,
12,
474,
24636,
16,
509,
980,
1380,
13,
288,
202,
474,
31763,
273,
24636,
397,
980,
1380,
31,
202,
430,
261,
1937,
1670,
411,
374,
747,
31763,
405,
26162,
18,
2469,
13,
327,
31,
... |
if (method.isVarArgs()) return; | private void checkParametersNumber(final List<CandidateInfo> conflicts, final int argumentsCount) { boolean parametersNumberMatch = false; for (CandidateInfo info : conflicts) { if (info instanceof MethodCandidateInfo) { final PsiMethod method = ((MethodCandidateInfo)info).getElement(); if (method.isVarArgs()) return; //Do not filter if there is at least one varargs method if (method.getParameterList().getParameters().length == argumentsCount) { parametersNumberMatch = true; } } } if (parametersNumberMatch) { for (Iterator<CandidateInfo> iterator = conflicts.iterator(); iterator.hasNext();) { CandidateInfo info = iterator.next(); if (info instanceof MethodCandidateInfo) { final PsiMethod method = ((MethodCandidateInfo)info).getElement(); if (method.getParameterList().getParameters().length != argumentsCount) { iterator.remove(); } } } } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/3314476891c70f6e28a00beba3f4835933188dec/JavaMethodsConflictResolver.java/buggy/source/com/intellij/psi/scope/conflictResolvers/JavaMethodsConflictResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
866,
2402,
1854,
12,
6385,
987,
32,
11910,
966,
34,
14450,
16,
727,
509,
1775,
1380,
13,
288,
565,
1250,
1472,
1854,
2060,
273,
629,
31,
565,
364,
261,
11910,
966,
1123,
294,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
866,
2402,
1854,
12,
6385,
987,
32,
11910,
966,
34,
14450,
16,
727,
509,
1775,
1380,
13,
288,
565,
1250,
1472,
1854,
2060,
273,
629,
31,
565,
364,
261,
11910,
966,
1123,
294,... | |
if (processingContext.getAxisOperation() != null && processingContext.getOperationContext() != null) { | if (processingContext.getAxisOperation() != null && processingContext.getOperationContext() != null) { | public MessageContext createFaultMessageContext(MessageContext processingContext, Throwable e) throws AxisFault { if (processingContext.isProcessingFault()) { // We get the error file processing the fault. nothing we can do throw new AxisFault(Messages.getMessage("errorwhileProcessingFault")); } MessageContext faultContext = new MessageContext(); faultContext.setConfigurationContext(engineContext); faultContext.setSessionContext(processingContext.getSessionContext()); faultContext.setTransportIn(processingContext.getTransportIn()); faultContext.setTransportOut(processingContext.getTransportOut()); faultContext.setMessageID(UUIDGenerator.getUUID()); faultContext.addRelatesTo( new RelatesTo( processingContext.getOptions().getMessageId(), AddressingConstants.Final.WSA_RELATES_TO_RELATIONSHIP_TYPE_DEFAULT_VALUE)); faultContext.setProperty(MessageContext.CHARACTER_SET_ENCODING, processingContext.getProperty(MessageContext.CHARACTER_SET_ENCODING)); // register the fault message context if (processingContext.getAxisOperation() != null && processingContext.getOperationContext() != null) { processingContext.getAxisOperation().addFaultMessageContext(faultContext, processingContext.getOperationContext()); } ServiceContext serviceContext = processingContext.getServiceContext(); if (serviceContext != null) { faultContext.setServiceContext(serviceContext); } faultContext.setProcessingFault(true); // there are some information that the fault thrower wants to pass to the fault path. Object faultInfoForHeaders = processingContext.getProperty(Constants.FAULT_INFORMATION_FOR_HEADERS); if (faultInfoForHeaders != null) { faultContext.setProperty(Constants.FAULT_INFORMATION_FOR_HEADERS, faultInfoForHeaders); } // if the exception is due to a problem in the faultTo header itself, we can not use those // fault informatio to send the error. Try to send using replyTo, leave it to transport boolean doNotSendFaultUsingFaultTo = false; if (faultInfoForHeaders != null) { String problemHeaderName = (String) ((Map) faultInfoForHeaders).get(AddressingConstants.Final.FAULT_HEADER_PROB_HEADER_QNAME); doNotSendFaultUsingFaultTo = (problemHeaderName != null && (AddressingConstants.WSA_DEFAULT_PREFIX + ":" + AddressingConstants.WSA_FAULT_TO).equals(problemHeaderName)); } EndpointReference faultTo = processingContext.getFaultTo(); if (faultTo != null && !doNotSendFaultUsingFaultTo) { faultContext.setTo(processingContext.getFaultTo()); } else if (!doNotSendFaultUsingFaultTo && processingContext.getEnvelope().getHeader() != null && processingContext.getEnvelope().getHeader().getFirstChildWithName(new QName("FaultTo")) != null) { OMElement faultToElement = processingContext.getEnvelope().getHeader().getFirstChildWithName(new QName("FaultTo")); faultTo = new EndpointReference(""); faultTo.fromOM(faultToElement); faultContext.setTo(faultTo); } else if (processingContext.getReplyTo() != null) { faultContext.setTo(processingContext.getReplyTo()); } if (faultTo == null || AddressingConstants.Final.WSA_ANONYMOUS_URL.equals(faultTo.getAddress()) || AddressingConstants.Submission.WSA_ANONYMOUS_URL.equals(faultTo.getAddress()) || AddressingConstants.Final.WSA_NONE_URI.equals(faultTo.getAddress())) { Object writer = processingContext.getProperty(MessageContext.TRANSPORT_OUT); if (writer != null) { faultContext.setProperty(MessageContext.TRANSPORT_OUT, writer); } else { throw new AxisFault(Messages.getMessage("nowhereToSendError")); } } faultContext.setOperationContext(processingContext.getOperationContext()); faultContext.setProcessingFault(true); faultContext.setServerSide(true); SOAPEnvelope envelope; faultContext.setProperty(Constants.OUT_TRANSPORT_INFO, processingContext.getProperty(Constants.OUT_TRANSPORT_INFO)); if (processingContext.isSOAP11()) { envelope = OMAbstractFactory.getSOAP11Factory().getDefaultFaultEnvelope(); } else { // Following will make SOAP 1.2 as the default, too. envelope = OMAbstractFactory.getSOAP12Factory().getDefaultFaultEnvelope(); } extractFaultInformationFromMessageContext(processingContext, envelope.getBody().getFault(), e); faultContext.setEnvelope(envelope); faultContext.setProperty(Constants.OUT_TRANSPORT_INFO, processingContext.getProperty(Constants.OUT_TRANSPORT_INFO)); return faultContext; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/705f7ef2387f0c2e39cecfb67fe479112c48dd30/AxisEngine.java/buggy/modules/core/src/org/apache/axis2/engine/AxisEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2350,
1042,
752,
7083,
1079,
1042,
12,
1079,
1042,
4929,
1042,
16,
4206,
425,
13,
5411,
1216,
15509,
7083,
288,
3639,
309,
261,
10632,
1042,
18,
291,
7798,
7083,
10756,
288,
5411,
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,
2350,
1042,
752,
7083,
1079,
1042,
12,
1079,
1042,
4929,
1042,
16,
4206,
425,
13,
5411,
1216,
15509,
7083,
288,
3639,
309,
261,
10632,
1042,
18,
291,
7798,
7083,
10756,
288,
5411,
3... |
nonAutoActivateButton.setEnabled(isEditable()); | protected void createClient(Section section, FormToolkit toolkit) { initializeFonts(); Composite mainContainer = toolkit.createComposite(section); GridLayout layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 2; layout.verticalSpacing = 10; mainContainer.setLayout(layout); mainContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); /* * create new manifest part */ Composite topContainer = toolkit.createComposite(mainContainer); layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 2; layout.numColumns = 2; layout.makeColumnsEqualWidth= false; topContainer.setLayout(layout); toolkit.createLabel(topContainer, "To take advantage of this feature, the plug-in must contain a manifest.mf file."); Hyperlink manifestLink = toolkit.createHyperlink(topContainer, "Create a manifest file",SWT.NULL); manifestLink.addHyperlinkListener(new IHyperlinkListener(){ public void linkActivated(HyperlinkEvent e) { /** * TODO: hook code to create manifest.mf here */ } public void linkExited(HyperlinkEvent e) { } public void linkEntered(HyperlinkEvent e) { } }); /* * Bottom parts (Activation Rule & Exceptions) */ Composite bottomContainer = toolkit.createComposite(mainContainer); layout = new GridLayout(); layout.makeColumnsEqualWidth = true; layout.marginHeight = layout.marginWidth = 0; layout.numColumns = 2; bottomContainer.setLayout(layout); bottomContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); /* * Activation rule part */ Composite ruleContainer = toolkit.createComposite(bottomContainer); layout = new GridLayout(); layout.marginHeight = layout.marginWidth = 2; ruleContainer.setLayout(layout); ruleContainer.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING)); Label activateLabel = toolkit.createLabel(ruleContainer, "Activation Rule"); activateLabel.setFont(boldFont); autoActivateButton = toolkit .createButton( ruleContainer, "Always activate this plug-in", SWT.RADIO); GridData gd = new GridData(); gd.horizontalIndent = 5; autoActivateButton.setLayoutData(gd); autoActivateButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { /* * TODO: set auto-start header properties */ } }); /* * auto-activate should be set to true by default with empty exceptions package list */ autoActivateButton.setSelection(true); nonAutoActivateButton = toolkit .createButton( ruleContainer, "Do not activate this plug-in", SWT.RADIO); gd = new GridData(); gd.horizontalIndent = 5; nonAutoActivateButton.setLayoutData(gd); nonAutoActivateButton.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { /* * TODO: set auto-start header properties */ } }); /* * Exceptions part */ Composite exceptionsContainer = toolkit.createComposite(bottomContainer); layout = new GridLayout(); layout.marginWidth = layout.marginHeight = 2; layout.verticalSpacing = 3; exceptionsContainer.setLayout(layout); exceptionsContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); Label exceptionLabel = toolkit.createLabel(exceptionsContainer, "Exceptions to the Rule"); exceptionLabel.setFont(boldFont); exceptionLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Label label = toolkit.createLabel(exceptionsContainer, "Ignore the activation rule when loaded classes belong to the following subset of packages:", SWT.WRAP); gd = new GridData(GridData.FILL_HORIZONTAL); gd.widthHint = 225; label.setLayoutData(gd); Composite exceptionsPkgContainer = toolkit.createComposite(exceptionsContainer); layout = new GridLayout(); layout.marginWidth = layout.marginHeight = 0; layout.numColumns = 2; exceptionsPkgContainer.setLayout(layout); exceptionsPkgContainer.setLayoutData(new GridData(GridData.FILL_BOTH)); EditableTablePart tablePart = getTablePart(); IModel model = (IModel) getPage().getModel(); tablePart.setEditable(model.isEditable()); createViewerPartControl(exceptionsPkgContainer, SWT.FULL_SELECTION, 2, toolkit); osgiTableViewer = tablePart.getTableViewer(); osgiTableViewer.setContentProvider(new TableContentProvider()); osgiTableViewer.setLabelProvider(new TableLabelProvider()); toolkit.paintBordersFor(exceptionsContainer); section.setClient(mainContainer); initialize(); } | 14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/94a3cd05e7d4d18da04fefb83132edf7a57ca04f/OSGiSection.java/clean/ui/org.eclipse.pde.ui/src_Forms/org/eclipse/pde/internal/ui/neweditor/plugin/OSGiSection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
5836,
4965,
21370,
3616,
18,
542,
1526,
12,
291,
15470,
10663,
918,
5836,
4965,
21370,
3616,
18,
542,
1526,
12,
291,
15470,
10663,
30872,
12,
5285,
5836,
4965,
21370,
3616,
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,
1117,
5836,
4965,
21370,
3616,
18,
542,
1526,
12,
291,
15470,
10663,
918,
5836,
4965,
21370,
3616,
18,
542,
1526,
12,
291,
15470,
10663,
30872,
12,
5285,
5836,
4965,
21370,
3616,
18,
... | |
caOperations = CertDirectoryServiceFactory.getCertDirectoryServiceCAInstance( caPolicy.ldapType, caPolicy.ldapURL, support.getServiceBroker(), cadnname); | CertDirectoryServiceRequestor cdsr = new CertDirectoryServiceRequestorImpl(caPolicy.ldapURL, caPolicy.ldapType, support.getServiceBroker(), cadnname); caOperations = (CertDirectoryServiceCA) support.getServiceBroker().getService(cdsr, CertDirectoryServiceCA.class, null); | public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException { PrintWriter out=res.getWriter(); res.setContentType("text/html"); String alias=req.getParameter("alias"); //String role=req.getParameter("role"); String cadnname=req.getParameter("cadnname"); out.println("<html>"); out.println("<script language=\"javascript\">"); out.println("function submitme(form)"); out.println("{ form.submit()}</script>"); out.println("</head>"); out.println("<body>"); if((alias==null)||(alias=="")) { out.println("Error in getting the certificate alias"); out.flush(); out.close(); return; } if((cadnname==null)||(cadnname=="")) { out.println("Error in getting the CA's DN "); out.flush(); out.close(); return; } try { caPolicy = configParser.getCaPolicy(cadnname); nodeConfiguration = new NodeConfiguration(cadnname, support.getServiceBroker()); caOperations = CertDirectoryServiceFactory.getCertDirectoryServiceCAInstance( caPolicy.ldapType, caPolicy.ldapURL, support.getServiceBroker(), cadnname); } catch (Exception e) { out.print("Unable to read policy file: " + e); out.flush(); out.close(); return; } String actionType = req.getParameter("actiontype"); // 0 is deny, 1 is approve, -1 is unknown status if (actionType != null) { // retrieve pending certificate X509Certificate certimpl; try { //certimpl=ldapentries[0].getCertificate(); PendingCertCache pendingCache = PendingCertCache.getPendingCache(cadnname, support.getServiceBroker()); certimpl = (X509Certificate) pendingCache.getCertificate(nodeConfiguration.getPendingDirectoryName(cadnname), alias); if (actionType.indexOf("Approve") >= 0) { caOperations.publishCertificate(certimpl, CertificateUtility.EntityCert,null); out.println("Certificate is now approved: " + certimpl.getSubjectDN().getName()); // need to move to approved directory pendingCache.moveCertificate( nodeConfiguration.getPendingDirectoryName(cadnname), nodeConfiguration.getX509DirectoryName(cadnname), alias); } if (actionType.indexOf("Deny") >= 0) { out.println("Certificate is denied: " + certimpl.getSubjectDN().getName()); // need to move to denied directory pendingCache.moveCertificate( nodeConfiguration.getPendingDirectoryName(cadnname), nodeConfiguration.getDeniedDirectoryName(cadnname), alias); } } catch (Exception exp) { out.println("error----------- "+exp.toString()); out.flush(); out.close(); return; } } String uri = req.getRequestURI(); String certlistUri = uri.substring(0, uri.lastIndexOf('/')) + "/PendingCertificateServlet"; out.println(appendForm(certlistUri,cadnname)); out.println("</body>"); out.println("</html>"); } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/142369560e72a2158eb7bcb5ef783e21f556cbb8/ProcessPendingCertServlet.java/buggy/securityservices/src/org/cougaar/core/security/certauthority/servlet/ProcessPendingCertServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
3349,
261,
2940,
18572,
225,
1111,
16,
12446,
400,
13,
565,
1216,
16517,
16,
14106,
225,
288,
565,
14071,
596,
33,
455,
18,
588,
2289,
5621,
565,
400,
18,
542,
8046,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
3349,
261,
2940,
18572,
225,
1111,
16,
12446,
400,
13,
565,
1216,
16517,
16,
14106,
225,
288,
565,
14071,
596,
33,
455,
18,
588,
2289,
5621,
565,
400,
18,
542,
8046,
293... |
if(generatedURI != null && !uri.equals(generatedURI)) Logger.error(this, "onGeneratedURI("+uri+","+state+") but already set generatedURI to "+generatedURI); generatedURI = uri; | synchronized(this) { if(generatedURI != null && !uri.equals(generatedURI)) Logger.error(this, "onGeneratedURI("+uri+","+state+") but already set generatedURI to "+generatedURI); generatedURI = uri; } | public void onGeneratedURI(FreenetURI uri, BaseClientPutter state) { if(generatedURI != null && !uri.equals(generatedURI)) Logger.error(this, "onGeneratedURI("+uri+","+state+") but already set generatedURI to "+generatedURI); generatedURI = uri; trySendGeneratedURIMessage(); } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/2feef30f4266f2b8f54b92445661044a936a611a/ClientPut.java/buggy/src/freenet/node/fcp/ClientPut.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
603,
7823,
3098,
12,
42,
2842,
278,
3098,
2003,
16,
3360,
1227,
6426,
387,
919,
13,
288,
202,
202,
430,
12,
11168,
3098,
480,
446,
597,
401,
1650,
18,
14963,
12,
11168,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
7823,
3098,
12,
42,
2842,
278,
3098,
2003,
16,
3360,
1227,
6426,
387,
919,
13,
288,
202,
202,
430,
12,
11168,
3098,
480,
446,
597,
401,
1650,
18,
14963,
12,
11168,
... |
if (yESet) result.append(y); else result.append("<unset>"); | if (yESet) result.append(y); else result.append("<unset>"); | public String toString() { if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (x: "); if (xESet) result.append(x); else result.append("<unset>"); result.append(", y: "); if (yESet) result.append(y); else result.append("<unset>"); result.append(')'); return result.toString(); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/LocationImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/LocationImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
565,
288,
3639,
309,
261,
73,
2520,
3886,
10756,
327,
2240,
18,
10492,
5621,
3639,
6674,
563,
273,
394,
6674,
12,
9565,
18,
10492,
10663,
3639,
563,
18,
6923,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
565,
288,
3639,
309,
261,
73,
2520,
3886,
10756,
327,
2240,
18,
10492,
5621,
3639,
6674,
563,
273,
394,
6674,
12,
9565,
18,
10492,
10663,
3639,
563,
18,
6923,
2932,... |
filterEntries(); | filterEntries(); | public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection // bug. if (e.getPropertyName().equals( JFileChooser.SELECTED_FILE_CHANGED_PROPERTY)) { if (filechooser.getSelectedFile() == null) setFileName(null); else setFileName(filechooser.getSelectedFile().toString()); int index = -1; File file = filechooser.getSelectedFile(); for (index = 0; index < model.getSize(); index++) if (((File) model.getElementAt(index)).equals(file)) break; if (index == -1) return; filelist.setSelectedIndex(index); filelist.ensureIndexIsVisible(index); filelist.revalidate(); filelist.repaint(); } else if (e.getPropertyName().equals( JFileChooser.DIRECTORY_CHANGED_PROPERTY)) { filelist.clearSelection(); filelist.revalidate(); filelist.repaint(); setDirectorySelected(false); setDirectory(filechooser.getCurrentDirectory()); boxEntries(); } else if (e.getPropertyName().equals( JFileChooser.CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.FILE_FILTER_CHANGED_PROPERTY)) filterEntries(); else if (e.getPropertyName().equals( JFileChooser.DIALOG_TYPE_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.DIALOG_TITLE_CHANGED_PROPERTY)) { Window owner = SwingUtilities.windowForComponent(filechooser); if (owner instanceof JDialog) ((JDialog) owner).setTitle(getDialogTitle(filechooser)); accept.setText(getApproveButtonText(filechooser)); accept.setToolTipText(getApproveButtonToolTipText(filechooser)); accept.setMnemonic(getApproveButtonMnemonic(filechooser)); } else if (e.getPropertyName().equals( JFileChooser.APPROVE_BUTTON_TEXT_CHANGED_PROPERTY)) accept.setText(getApproveButtonText(filechooser)); else if (e.getPropertyName().equals( JFileChooser.APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY)) accept.setToolTipText(getApproveButtonToolTipText(filechooser)); else if (e.getPropertyName().equals( JFileChooser.APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY)) accept.setMnemonic(getApproveButtonMnemonic(filechooser)); else if (e.getPropertyName().equals( JFileChooser.CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY)) { if (filechooser.getControlButtonsAreShown()) { GridBagConstraints c = new GridBagConstraints(); c.gridy = 1; bottomPanel.add(filters, c); c.fill = GridBagConstraints.BOTH; c.gridy = 2; c.anchor = GridBagConstraints.EAST; bottomPanel.add(closePanel, c); bottomPanel.revalidate(); bottomPanel.repaint(); bottomPanel.doLayout(); } else bottomPanel.remove(closePanel); } else if (e.getPropertyName().equals( JFileChooser.ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY)) { if (filechooser.isAcceptAllFileFilterUsed()) filechooser.addChoosableFileFilter(getAcceptAllFileFilter(filechooser)); else filechooser.removeChoosableFileFilter(getAcceptAllFileFilter(filechooser)); } else if (e.getPropertyName().equals( JFileChooser.ACCESSORY_CHANGED_PROPERTY)) { JComponent old = (JComponent) e.getOldValue(); if (old != null) getAccessoryPanel().remove(old); JComponent newval = (JComponent) e.getNewValue(); if (newval != null) getAccessoryPanel().add(newval); } if (e.getPropertyName().equals(JFileChooser.DIRECTORY_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.FILE_FILTER_CHANGED_PROPERTY) || e.getPropertyName().equals( JFileChooser.FILE_HIDING_CHANGED_PROPERTY)) rescanCurrentDirectory(filechooser); filechooser.revalidate(); filechooser.repaint(); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
202,
95,
3639,
368,
9852,
30,
13531,
585,
4421,
7336,
603,
804,
682,
3229,
4421,
3639,
368,
7934,
18,
3639,
309,
261,
73,
18,
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,
225,
202,
482,
918,
1272,
3043,
12,
1396,
20930,
425,
13,
202,
95,
3639,
368,
9852,
30,
13531,
585,
4421,
7336,
603,
804,
682,
3229,
4421,
3639,
368,
7934,
18,
3639,
309,
261,
73,
18,
588,
... |
queue = new int[n]; top = 0; | queue = new int[n]; top = 0; | public Frame[] analyze (final String owner, final MethodNode m) throws AnalyzerException { n = m.instructions.size(); indexes = new IntMap(2*n); handlers = new List[n]; frames = new Frame[n]; subroutines = new Subroutine[n]; queued = new boolean[n]; queue = new int[n]; top = 0; // computes instruction indexes for (int i = 0; i < n; ++i) { Object insn = m.instructions.get(i); if (insn instanceof LabelNode) { insn = ((LabelNode)insn).label; } indexes.put(insn, i); } // computes exception handlers for each instruction for (int i = 0; i < m.tryCatchBlocks.size(); ++i) { TryCatchBlockNode tcb = (TryCatchBlockNode)m.tryCatchBlocks.get(i); int begin = indexes.get(tcb.start); int end = indexes.get(tcb.end); for (int j = begin; j < end; ++j) { List insnHandlers = handlers[j]; if (insnHandlers == null) { insnHandlers = new ArrayList(); handlers[j] = insnHandlers; } insnHandlers.add(tcb); } } // initializes the data structures for the control flow analysis algorithm Frame current = newFrame(m.maxLocals, m.maxStack); Frame handler = newFrame(m.maxLocals, m.maxStack); Type[] args = Type.getArgumentTypes(m.desc); int local = 0; if ((m.access & ACC_STATIC) == 0) { Type ctype = Type.getType("L" + owner + ";"); current.setLocal(local++, interpreter.newValue(ctype)); } for (int i = 0; i < args.length; ++i) { current.setLocal(local++, interpreter.newValue(args[i])); if (args[i].getSize() == 2) { current.setLocal(local++, interpreter.newValue(null)); } } while (local < m.maxLocals) { current.setLocal(local++, interpreter.newValue(null)); } merge(0, current, null); // control flow analysis while (top > 0) { int insn = queue[--top]; Frame f = frames[insn]; Subroutine subroutine = subroutines[insn]; queued[insn] = false; try { Object o = m.instructions.get(insn); if (o instanceof LabelNode) { merge(insn + 1, f, subroutine); } else { AbstractInsnNode insnNode = (AbstractInsnNode)o; int insnOpcode = insnNode.getOpcode(); current.init(f).execute(insnNode, interpreter); subroutine = subroutine == null ? null : subroutine.copy(); if (insnNode instanceof JumpInsnNode) { JumpInsnNode j = (JumpInsnNode)insnNode; if (insnOpcode != GOTO && insnOpcode != JSR) { merge(insn + 1, current, subroutine); } if (insnOpcode == JSR) { subroutine = new Subroutine(j.label, m.maxLocals, j); } merge(indexes.get(j.label), current, subroutine); } else if (insnNode instanceof LookupSwitchInsnNode) { LookupSwitchInsnNode lsi = (LookupSwitchInsnNode)insnNode; merge(indexes.get(lsi.dflt), current, subroutine); for (int j = 0; j < lsi.labels.size(); ++j) { Label label = (Label)lsi.labels.get(j); merge(indexes.get(label), current, subroutine); } } else if (insnNode instanceof TableSwitchInsnNode) { TableSwitchInsnNode tsi = (TableSwitchInsnNode)insnNode; merge(indexes.get(tsi.dflt), current, subroutine); for (int j = 0; j < tsi.labels.size(); ++j) { Label label = (Label)tsi.labels.get(j); merge(indexes.get(label), current, subroutine); } } else if (insnOpcode == RET) { if (subroutine == null) { throw new AnalyzerException( "RET instruction outside of a sub routine"); } for (int i = 0; i < subroutine.callers.size(); ++i) { int caller = indexes.get(subroutine.callers.get(i)); merge(caller + 1, frames[caller], current, subroutine.access); } } else if (insnOpcode != ATHROW && (insnOpcode < IRETURN || insnOpcode > RETURN)) { if (subroutine != null) { if (insnNode instanceof VarInsnNode) { int var = ((VarInsnNode)insnNode).var; subroutine.access[var] = true; if (insnOpcode == LLOAD || insnOpcode == DLOAD || insnOpcode == LSTORE || insnOpcode == DSTORE) { subroutine.access[var + 1] = true; } } else if (insnNode instanceof IincInsnNode) { int var = ((IincInsnNode)insnNode).var; subroutine.access[var] = true; } } merge(insn + 1, current, subroutine); } } List insnHandlers = handlers[insn]; if (insnHandlers != null) { for (int i = 0; i < insnHandlers.size(); ++i) { TryCatchBlockNode tcb = (TryCatchBlockNode)insnHandlers.get(i); Type type; if (tcb.type == null) { type = Type.getType("Ljava/lang/Throwable;"); } else { type = Type.getType("L" + tcb.type + ";"); } handler.init(f); handler.clearStack(); handler.push(interpreter.newValue(type)); merge(indexes.get(tcb.handler), handler, subroutine); } } } catch (Exception e) { throw new AnalyzerException( "Error at instruction " + insn + ": " + e.getMessage()); } } return frames; } | 2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/5a4ae382e5048d91453ece2c63115d3356d8a60f/Analyzer.java/buggy/asm/src/org/objectweb/asm/tree/analysis/Analyzer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8058,
8526,
12375,
261,
6385,
514,
3410,
16,
727,
2985,
907,
312,
13,
377,
1216,
1922,
6893,
503,
225,
288,
565,
290,
273,
312,
18,
25758,
18,
1467,
5621,
565,
5596,
273,
394,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8058,
8526,
12375,
261,
6385,
514,
3410,
16,
727,
2985,
907,
312,
13,
377,
1216,
1922,
6893,
503,
225,
288,
565,
290,
273,
312,
18,
25758,
18,
1467,
5621,
565,
5596,
273,
394,
309... |
public void remove (int Index) { svs.removeElementAt(Index); } | public void remove(int Index) { Preferences.getPreferances().getAccounts().removeAccount(Index); } | public void remove (int Index) { svs.removeElementAt(Index); } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/b13c667b376deb4a8f2c235ffd847b57616d23c4/ServerArray.java/buggy/grendel/sources/grendel/prefs/base/ServerArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
261,
474,
3340,
13,
288,
565,
5893,
87,
18,
4479,
1046,
861,
12,
1016,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
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,
282,
1071,
918,
1206,
261,
474,
3340,
13,
288,
565,
5893,
87,
18,
4479,
1046,
861,
12,
1016,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
SetSplitter(DUPLICATE); | SetSplitter(DUPLICATE ()); | void Init(final int N, final int W) { Add(new SplitJoin() { public void Init() { SetSplitter(WEIGHTED_ROUND_ROBIN(N, N)); Add(new Filter() { public void InitIO () { input = new FloatChannel(); output = new FloatChannel(); } float weights[] = new float[W]; int curr; public void Init() { for(int i=0; i<W; i++) weights[i] = calcWeight(i, N, W); curr = 0; } public void Work() { output.Push(input.Pop()*weights[curr++]); if(curr>= W) curr = 0; } }); Add(new Identity()); SetJoiner(ROUND_ROBIN); }}); Add(new SplitJoin() { public void Init() { SetSplitter(DUPLICATE); Add(new Filter() { public void InitIO () { input = new FloatChannel(); output = new FloatChannel(); } public void Work() { float val = input.Pop(); output.Push(val - input.Pop()); } }); Add(new Filter() { public void InitIO () { input = new FloatChannel(); output = new FloatChannel(); } public void Work() { float val = input.Pop(); output.Push(val + input.Pop()); } }); SetJoiner(WEIGHTED_ROUND_ROBIN(N, N)); }});}} | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/ca08101ccba65e529ef4dc89b5600373f939b218/radio.java/buggy/streams/library/radio.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
4378,
12,
6385,
509,
423,
16,
727,
509,
678,
13,
288,
1377,
1436,
12,
2704,
5385,
4572,
1435,
288,
540,
1071,
918,
4378,
1435,
288,
5411,
1000,
26738,
12,
6950,
16055,
6404,
67,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
918,
4378,
12,
6385,
509,
423,
16,
727,
509,
678,
13,
288,
1377,
1436,
12,
2704,
5385,
4572,
1435,
288,
540,
1071,
918,
4378,
1435,
288,
5411,
1000,
26738,
12,
6950,
16055,
6404,
67,
15... |
index = indexForElement(widget,sorter,position, element,size); | lastInsertion = insertionPosition(items,sorter,lastInsertion, element); index = lastInsertion + i; | private void createAddedElements(Widget widget, Object[] elements) { if(elements.length == 1){ if (equals(elements[0], widget.getData())) return; } ViewerSorter sorter = getSorter (); Item[] items = null; if (sorter == null) { items = getChildren(widget); for (int i = 0; i < elements.length; i++) { for (int j = 0; j < items.length; j++) { if (items[j].getData().equals(elements[i])) { //refresh the element in case it has new children refresh(elements[i]); return; } } } } //As the items are sorted already we optimize for a //start position int position = 0; int size; if(widget instanceof Control) size = getItemCount((Control) widget); else{ if(widget instanceof Item) size = getItemCount((Item) widget); else{ if(items == null) items = getChildren(widget); size = items.length; } } for (int i = 0; i < elements.length; i++) { Object element = elements[i]; int index; if(sorter == null) index = size; else{ index = indexForElement(widget,sorter,position, element,size); // Assume sorter is consistent with equals() - therefore we can // just check against the item prior to this index (if any) if (index >0 && getChild (widget, index - 1).getData().equals(element)) { //refresh the element in case it has new children refresh(element); break; } position = index; } createTreeItem(widget, element, index); size++; } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/dee7ced3518d5293cc6dc8052bea8d633d4f6834/AbstractTreeViewer.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
8602,
3471,
12,
4609,
3604,
16,
1033,
8526,
2186,
13,
288,
202,
202,
430,
12,
6274,
18,
2469,
422,
404,
15329,
1082,
202,
430,
261,
14963,
12,
6274,
63,
20,
6487,
3604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8602,
3471,
12,
4609,
3604,
16,
1033,
8526,
2186,
13,
288,
202,
202,
430,
12,
6274,
18,
2469,
422,
404,
15329,
1082,
202,
430,
261,
14963,
12,
6274,
63,
20,
6487,
3604,
... |
if( !Class.forName( "org.apache.taglibs.display.ColumnDecorator" ).isAssignableFrom( c ) ) throw new JspException( "column decorator class is not a subclass of ColumnDecorator." ); | if (!Class.forName("org.apache.taglibs.display.ColumnDecorator").isAssignableFrom(c)) throw new JspException("column decorator class is not a subclass of ColumnDecorator."); | private ColumnDecorator loadColumnDecorator( String columnDecorator ) throws JspException { if( columnDecorator == null || columnDecorator.length() == 0 ) return null; try { Class c = Class.forName( columnDecorator ); // paulsenj - removed 'jakarta' from class name if( !Class.forName( "org.apache.taglibs.display.ColumnDecorator" ).isAssignableFrom( c ) ) throw new JspException( "column decorator class is not a subclass of ColumnDecorator." ); return (ColumnDecorator)c.newInstance(); } catch( Exception e ) { throw new JspException( e.toString() ); } } | 7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/a71dc315013464c01719d449044bb7645788f6e6/TableTag.java/clean/_OLD/displaytag08/src/org/apache/taglibs/display/TableTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
4753,
10361,
1262,
1494,
10361,
12,
514,
1057,
10361,
262,
1216,
27485,
282,
288,
1377,
309,
12,
1057,
10361,
422,
446,
747,
1057,
10361,
18,
2469,
1435,
422,
374,
262,
540,
327,
44... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
4753,
10361,
1262,
1494,
10361,
12,
514,
1057,
10361,
262,
1216,
27485,
282,
288,
1377,
309,
12,
1057,
10361,
422,
446,
747,
1057,
10361,
18,
2469,
1435,
422,
374,
262,
540,
327,
44... |
Object result = OptionPanel.confirm(InternalFramesUIProvider.this, "Really Close?", "Close Jin?", OptionPanel.OK); if (result == OptionPanel.OK) context.shutdown(); | context.quit(true); | public void actionPerformed(ActionEvent evt){ ConnectionManager connManager = context.getConnManager(); Object source = evt.getSource(); if (source == newConnection){ connManager.showNewConnectionUI(); } else if (source == closeConnection){ Object result = OptionPanel.OK; Session session = context.getConnManager().getSession(); if ((session != null) && session.isConnected()){ result = OptionPanel.confirm(InternalFramesUIProvider.this, "Close Session?", "Disconnect from the server and close the session?", OptionPanel.OK); } if (result == OptionPanel.OK) connManager.closeSession(); } else if (source == exit){ Object result = OptionPanel.confirm(InternalFramesUIProvider.this, "Really Close?", "Close Jin?", OptionPanel.OK); if (result == OptionPanel.OK) context.shutdown(); } else{ // One of the recent account menu items int index = Utilities.indexOf(getMenuComponents(), source); User user = (User)recentAccounts.elementAt(index - separatorIndex - 1); connManager.showLoginInformationUI(user.getServer(), user.getPreferredConnDetails()); } } | 1161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1161/afe73e9c1f241b80e8686da0a8fb1124cbd1a71e/InternalFramesUIProvider.java/buggy/src/free/jin/InternalFramesUIProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26100,
12,
1803,
1133,
6324,
15329,
1377,
4050,
1318,
1487,
1318,
273,
819,
18,
588,
3543,
1318,
5621,
1377,
1033,
1084,
273,
6324,
18,
588,
1830,
5621,
1377,
309,
261,
3168,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26100,
12,
1803,
1133,
6324,
15329,
1377,
4050,
1318,
1487,
1318,
273,
819,
18,
588,
3543,
1318,
5621,
1377,
1033,
1084,
273,
6324,
18,
588,
1830,
5621,
1377,
309,
261,
3168,
4... |
path = PathUtil.append(getLocation().getPath(), path); | path = PathUtil.append(locationPath, PathUtil.encode(path)); | public String getFullPath(String path) { if (path != null && path.startsWith("/")) { if ("/".equals(path)) { return getRepositoryRoot(); } // assume it is full path in repository // prepend root only. return PathUtil.append(getRepositoryRoot(), path); } // it was a relative path relative to location path. // decode?? if ("".equals(path)) { path = getLocation().getPath(); } else { path = PathUtil.append(getLocation().getPath(), path); } if (!path.startsWith("/")) { path = '/' + path; } return path; } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/34dbf3ee287103c6a70361543b6f3ec2e1cb30d1/DAVRepository.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/DAVRepository.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
10208,
743,
12,
780,
589,
13,
288,
377,
202,
3639,
309,
261,
803,
480,
446,
597,
589,
18,
17514,
1190,
2932,
4898,
3719,
288,
540,
202,
430,
7566,
4898,
18,
14963,
12,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10208,
743,
12,
780,
589,
13,
288,
377,
202,
3639,
309,
261,
803,
480,
446,
597,
589,
18,
17514,
1190,
2932,
4898,
3719,
288,
540,
202,
430,
7566,
4898,
18,
14963,
12,
803,
... |
Dimension result = new Dimension(d.width + arrowButtonWidth, d.height); return result; | cachedMinimumSize = new Dimension(d.width + arrowButtonWidth, d.height); isMinimumSizeDirty = false; } return new Dimension(cachedMinimumSize); | public Dimension getMinimumSize(JComponent c) { Dimension d = getDisplaySize(); int arrowButtonWidth = d.height; Dimension result = new Dimension(d.width + arrowButtonWidth, d.height); return result; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e8a49a412752cdcc88a774cac2de160a23c6f550/BasicComboBoxUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboBoxUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
13037,
30665,
1225,
12,
46,
1841,
276,
13,
225,
288,
565,
13037,
302,
273,
13854,
1225,
5621,
565,
509,
12274,
3616,
2384,
273,
302,
18,
4210,
31,
565,
13037,
563,
273,
394,
13037,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13037,
30665,
1225,
12,
46,
1841,
276,
13,
225,
288,
565,
13037,
302,
273,
13854,
1225,
5621,
565,
509,
12274,
3616,
2384,
273,
302,
18,
4210,
31,
565,
13037,
563,
273,
394,
13037,
... |
public ASTFloatingPointLiteral(int id) { | public ASTFloatingPointLiteral(int id) { | public ASTFloatingPointLiteral(int id) { super(id); } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/db561fa3a70ed2d8e5214b27d7905e75cbaa2125/ASTFloatingPointLiteral.java/buggy/src/java/org/apache/velocity/runtime/parser/node/ASTFloatingPointLiteral.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
9183,
28344,
2148,
6177,
12,
474,
612,
13,
288,
3639,
2240,
12,
350,
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,
... | [
1,
1,
1,
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,
9183,
28344,
2148,
6177,
12,
474,
612,
13,
288,
3639,
2240,
12,
350,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
{ return false; } | { return false; } | public boolean nullsAreSortedAtStart() throws SQLException { return false; } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/6a061da272f04e1463864065f87f1f3fd61d6162/DatabaseMetaData.java/buggy/src/interfaces/jdbc/postgresql/DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
27778,
4704,
11739,
861,
1685,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
629,
31,
202,
97,
2,
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,
1250,
27778,
4704,
11739,
861,
1685,
1435,
1216,
6483,
202,
95,
202,
202,
2463,
629,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Logger.minor(this, "Memory in use at start: "+memUsedAtStart); | Logger.minor(this, "Memory in use at start: "+memUsedAtStart+" max="+Runtime.getRuntime().maxMemory()); | private void realEncode(SplitfileBlock[] dataBlockStatus, SplitfileBlock[] checkBlockStatus, int blockLength, BucketFactory bf) throws IOException { Runtime.getRuntime().gc(); Runtime.getRuntime().runFinalization(); Runtime.getRuntime().gc(); Runtime.getRuntime().runFinalization(); long memUsedAtStart = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); Logger.minor(this, "Memory in use at start: "+memUsedAtStart); System.err.println("************* Encoding " + dataBlockStatus.length + " -> " + checkBlockStatus.length + " *************"); Logger.minor(this, "Doing encode: " + dataBlockStatus.length + " data blocks, " + checkBlockStatus.length + " check blocks, block length " + blockLength + " with " + this); if (dataBlockStatus.length + checkBlockStatus.length != n) throw new IllegalArgumentException(); if (dataBlockStatus.length != k) throw new IllegalArgumentException(); Buffer[] dataPackets = new Buffer[k]; Buffer[] checkPackets = new Buffer[n - k]; Bucket[] buckets = new Bucket[n]; DataInputStream[] readers = new DataInputStream[k]; OutputStream[] writers = new OutputStream[n - k]; try { int[] toEncode = new int[n - k]; int numberToEncode = 0; // can be less than n-k byte[] realBuffer = new byte[n * STRIPE_SIZE]; for (int i = 0; i < k; i++) dataPackets[i] = new Buffer(realBuffer, i * STRIPE_SIZE, STRIPE_SIZE); for (int i = 0; i < n - k; i++) checkPackets[i] = new Buffer(realBuffer, (i + k) * STRIPE_SIZE, STRIPE_SIZE); for (int i = 0; i < dataBlockStatus.length; i++) { buckets[i] = dataBlockStatus[i].getData(); long sz = buckets[i].size(); if (sz < blockLength) { if (i != dataBlockStatus.length - 1) throw new IllegalArgumentException( "All buckets except the last must be the full size"); if (sz < blockLength) buckets[i] = pad(buckets[i], blockLength, bf, (int) sz); else throw new IllegalArgumentException("Too big: " + sz + " bigger than " + blockLength); } readers[i] = new DataInputStream(buckets[i].getInputStream()); } for (int i = 0; i < checkBlockStatus.length; i++) { buckets[i + k] = checkBlockStatus[i].getData(); if (buckets[i + k] == null) { buckets[i + k] = bf.makeBucket(blockLength); writers[i] = buckets[i + k].getOutputStream(); toEncode[numberToEncode++] = i + k; } else { writers[i] = null; } } if (numberToEncode > 0) { // Do the (striped) decode for (int offset = 0; offset < blockLength; offset += STRIPE_SIZE) { // Read the data in first for (int i = 0; i < k; i++) { readers[i].readFully(realBuffer, i * STRIPE_SIZE, STRIPE_SIZE); } // Do the encode // Not shuffled long startTime = System.currentTimeMillis(); Runtime.getRuntime().gc(); Runtime.getRuntime().runFinalization(); Runtime.getRuntime().gc(); Runtime.getRuntime().runFinalization(); long memUsedBeforeStripe = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); Logger.minor(this, "Memory in use before stripe: "+memUsedBeforeStripe); code.encode(dataPackets, checkPackets, toEncode); Runtime.getRuntime().gc(); Runtime.getRuntime().runFinalization(); Runtime.getRuntime().gc(); Runtime.getRuntime().runFinalization(); long memUsedAfterStripe = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory(); Logger.minor(this, "Memory in use after stripe: "+memUsedAfterStripe); long endTime = System.currentTimeMillis(); Logger.minor(this, "Stripe encode took " + (endTime - startTime) + " ms for k=" + k + ", n=" + n + ", stripeSize=" + STRIPE_SIZE); // packets now contains an array of decoded blocks, in order // Write the data out for (int i = k; i < n; i++) { if (writers[i - k] != null) writers[i - k].write(realBuffer, i * STRIPE_SIZE, STRIPE_SIZE); } } } } finally { for (int i = 0; i < k; i++) if (readers[i] != null) readers[i].close(); for (int i = 0; i < n - k; i++) if (writers[i] != null) writers[i].close(); } // Set new buckets only after have a successful decode. for (int i = 0; i < checkBlockStatus.length; i++) { Bucket data = buckets[i + k]; if (data == null) throw new NullPointerException(); checkBlockStatus[i].setData(data); } System.err.println("************* Encoded " + dataBlockStatus.length + " -> " + checkBlockStatus.length + " *************"); } | 52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/b4ecaa4055b5835413830d4125c72de27d68e306/StandardOnionFECCodec.java/buggy/src/freenet/client/StandardOnionFECCodec.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2863,
5509,
12,
5521,
768,
1768,
8526,
501,
1768,
1482,
16,
1082,
202,
5521,
768,
1768,
8526,
866,
1768,
1482,
16,
509,
25367,
16,
7408,
1733,
16222,
13,
1082,
202,
15069,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2863,
5509,
12,
5521,
768,
1768,
8526,
501,
1768,
1482,
16,
1082,
202,
5521,
768,
1768,
8526,
866,
1768,
1482,
16,
509,
25367,
16,
7408,
1733,
16222,
13,
1082,
202,
15069,... |
path = (RubyString)getInstanceVariables().get("__classpath__"); | path = (RubyString)getInstanceVariables().get(getRuby().intern("__classpath__")); | public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().getObjectClass(); } path = (RubyString)getInstanceVariables().get("__classpath__"); if (path == null) { if (getInstanceVariables().get("__classid__") != null) { path = RubyString.m_newString(getRuby(), ((RubyId)getInstanceVariables().get("__classid__")).toName()); // todo: convert from symbol to string getInstanceVariables().put("__classpath__", path); getInstanceVariables().remove("__classid__"); } } if (path == null) { RubyObject tmp = rbModule.findClassPath(); if (tmp.isNil()) { return null; } return (RubyString)tmp; } /*if (!(path instanceof RubyString)) { throw new RubyBugException("class path is not set properly"); }*/ return path; } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/8e00ad1c7ae96f50ae0bd521483380788f891b7b/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
780,
2900,
529,
1435,
288,
3639,
19817,
780,
589,
273,
446,
31,
7734,
19817,
3120,
7138,
3120,
273,
333,
31,
3639,
1323,
261,
6731,
3120,
18,
291,
19323,
1435,
747,
7138,
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,
1071,
19817,
780,
2900,
529,
1435,
288,
3639,
19817,
780,
589,
273,
446,
31,
7734,
19817,
3120,
7138,
3120,
273,
333,
31,
3639,
1323,
261,
6731,
3120,
18,
291,
19323,
1435,
747,
7138,
312... |
public static void addBasicFormParameter(UIContainer local, String name, String value) { | public static void addBasicFormParameter(UIContainer local, UIParameter toadd) { | public static void addBasicFormParameter(UIContainer local, String name, String value) { UIForm enclosing = findBasicForm(local); if (enclosing == null) { throw new AssertionException("Component " + local.getFullID() + " has no form parent!"); } enclosing.parameters.add(new UIParameter(name, value)); } | 49142 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49142/0d16571bffbf70e3da6ca6fd1bd477482f4bd48c/RSFUtil.java/buggy/src/uk/org/ponder/rsf/util/RSFUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
527,
8252,
1204,
1662,
12,
5370,
2170,
1191,
16,
6484,
1662,
358,
1289,
13,
288,
565,
6484,
1204,
16307,
273,
1104,
8252,
1204,
12,
3729,
1769,
565,
309,
261,
1331,
10910,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
527,
8252,
1204,
1662,
12,
5370,
2170,
1191,
16,
6484,
1662,
358,
1289,
13,
288,
565,
6484,
1204,
16307,
273,
1104,
8252,
1204,
12,
3729,
1769,
565,
309,
261,
1331,
10910,... |
return RubyFixnum.newFixnum(getRuby(), end[(int) index.getValue()]); | return RubyFixnum.newFixnum(getRuby(), end[(int) index.getLongValue()]); | public RubyObject end(RubyFixnum index) { if (outOfBounds(index)) { return getRuby().getNil(); } return RubyFixnum.newFixnum(getRuby(), end[(int) index.getValue()]); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyMatchData.java/buggy/org/jruby/RubyMatchData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
679,
12,
54,
10340,
8585,
2107,
770,
13,
288,
3639,
309,
261,
659,
951,
5694,
12,
1615,
3719,
288,
5411,
327,
4170,
10340,
7675,
588,
12616,
5621,
3639,
289,
3639,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
921,
679,
12,
54,
10340,
8585,
2107,
770,
13,
288,
3639,
309,
261,
659,
951,
5694,
12,
1615,
3719,
288,
5411,
327,
4170,
10340,
7675,
588,
12616,
5621,
3639,
289,
3639,
327,
... |
} | } | private Chart getConvertedChart( Chart currentChart, String sNewSubType, String sNewDimension ) { Chart helperModel = (Chart) EcoreUtil.copy( currentChart ); // Cache series to keep attributes during conversion ChartCacheManager.getInstance( ) .cacheSeries( ChartUIUtil.getAllOrthogonalSeriesDefinitions( helperModel ) ); if ( currentChart instanceof ChartWithAxes ) { if ( ! ChartPreviewPainter.isLivePreviewActive( ) ) { helperModel.setSampleData( getConvertedSampleData( helperModel.getSampleData( ), ( (Axis) ( (ChartWithAxes) currentChart ).getAxes( ) .get( 0 ) ).getType( ) ) ); } // Create a new instance of the correct type and set initial // properties currentChart = DialChartImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (DialChart) currentChart ).setDialSuperimposition( false ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); if ( helperModel.getInteractivity( ) != null ) { currentChart.getInteractivity( ) .setEnable( helperModel.getInteractivity( ).isEnable( ) ); currentChart.getInteractivity( ) .setLegendBehavior( helperModel.getInteractivity( ) .getLegendBehavior( ) ); } currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getGridColumnCount( ) > 0 ) { currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); } else { currentChart.setGridColumnCount( 1 ); } // Copy series definitions from old chart ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .add( ( (Axis) ( (ChartWithAxes) helperModel ).getAxes( ) .get( 0 ) ).getSeriesDefinitions( ).get( 0 ) ); Vector vOSD = new Vector( ); // Only convert series in primary orthogonal axis. Axis primaryOrthogonalAxis = ( (ChartWithAxes) helperModel ).getPrimaryOrthogonalAxis( (Axis) ( (ChartWithAxes) helperModel ).getAxes( ) .get( 0 ) ); EList osd = primaryOrthogonalAxis.getSeriesDefinitions( ); for ( int j = 0; j < osd.size( ); j++ ) { SeriesDefinition sd = (SeriesDefinition) osd.get( j ); Series series = sd.getDesignTimeSeries( ); sd.getSeries( ).clear( ); sd.getSeries( ).add( getConvertedSeries( series, j ) ); vOSD.add( sd ); } ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ).clear( ); ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ).addAll( vOSD ); currentChart.getLegend( ) .setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); } else if ( currentChart instanceof ChartWithoutAxes ) { if ( currentChart.getType( ).equals( TYPE_LITERAL ) ) { currentChart.setSubType( sNewSubType ); ( (DialChart) currentChart ).setDialSuperimposition( sNewSubType.equals( SUPERIMPOSED_SUBTYPE_LITERAL ) ); if ( !currentChart.getDimension( ) .equals( getDimensionFor( sNewDimension ) ) ) { currentChart.setDimension( getDimensionFor( sNewDimension ) ); } } else { // Create a new instance of the correct type and set initial // properties currentChart = DialChartImpl.create( ); currentChart.setType( TYPE_LITERAL ); currentChart.setSubType( sNewSubType ); currentChart.setDimension( getDimensionFor( sNewDimension ) ); ( (DialChart) currentChart ).setDialSuperimposition( sNewSubType.equals( SUPERIMPOSED_SUBTYPE_LITERAL ) ); // Copy generic chart properties from the old chart currentChart.setBlock( helperModel.getBlock( ) ); currentChart.setDescription( helperModel.getDescription( ) ); currentChart.setGridColumnCount( helperModel.getGridColumnCount( ) ); currentChart.setSampleData( helperModel.getSampleData( ) ); currentChart.setScript( helperModel.getScript( ) ); currentChart.setUnits( helperModel.getUnits( ) ); if ( helperModel.getInteractivity( ) != null ) { currentChart.getInteractivity( ) .setEnable( helperModel.getInteractivity( ) .isEnable( ) ); currentChart.getInteractivity( ) .setLegendBehavior( helperModel.getInteractivity( ) .getLegendBehavior( ) ); } // Clear existing series definitions ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .clear( ); // Copy series definitions ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .add( ( (ChartWithoutAxes) helperModel ).getSeriesDefinitions( ) .get( 0 ) ); // Update the series EList seriesdefinitions = ( (SeriesDefinition) ( (ChartWithoutAxes) currentChart ).getSeriesDefinitions( ) .get( 0 ) ).getSeriesDefinitions( ); for ( int j = 0; j < seriesdefinitions.size( ); j++ ) { Series series = ( (SeriesDefinition) seriesdefinitions.get( j ) ).getDesignTimeSeries( ); series = getConvertedSeries( series, j ); // Clear any existing series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .clear( ); // Add the new series ( (SeriesDefinition) seriesdefinitions.get( j ) ).getSeries( ) .add( series ); } currentChart.getLegend( ) .setItemType( LegendItemType.SERIES_LITERAL ); currentChart.getTitle( ) .getLabel( ) .getCaption( ) .setValue( CHART_TITLE ); } } else { return null; } return currentChart; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/4ce1e97aa23d1fe4046bd76743f3c5f90658bab6/MeterChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/MeterChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
780,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
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,
225,
202,
1152,
14804,
336,
22063,
7984,
12,
14804,
783,
7984,
16,
514,
272,
1908,
30511,
16,
1082,
202,
780,
272,
1908,
8611,
262,
202,
95,
202,
202,
7984,
4222,
1488,
273,
261,
7984,
13,
5... |
"Pushing memebers down will result in them being deleted. Continue?"; | "Pushing members down will result in them being deleted. Continue?"; | protected boolean preprocessUsages(UsageInfo[][] usages) { final PushDownConflicts pushDownConflicts = new PushDownConflicts(myClass, myMemberInfos); pushDownConflicts.checkSourceClassConflicts(); if (usages[0].length == 0) { final String message = (myClass.isInterface() ? "Interface " : "Class ") + myClass.getQualifiedName() + " does not have inheritors.\n" + "Pushing memebers down will result in them being deleted. Continue?"; final int answer = Messages.showYesNoDialog(message, "Push Down", Messages.getWarningIcon()); if (answer != 0) return false; } for (int i = 0; i < usages[0].length; i++) { final PsiElement element = usages[0][i].getElement(); if(element instanceof PsiClass) { pushDownConflicts.checkTargetClassConflicts((PsiClass) element); } } if(pushDownConflicts.isAnyConflicts()) { final String[] conflicts = pushDownConflicts.getConflicts(); ConflictsDialog dialog = new ConflictsDialog(conflicts, myProject); dialog.show(); if(!dialog.isOK()) return false; } prepareSuccessful(); return true; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/bfc1caad52cbd01a5a2db4075c90c83565f89b40/PushDownProcessor.java/clean/source/com/intellij/refactoring/memberPushDown/PushDownProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
17942,
3477,
1023,
12,
5357,
966,
63,
6362,
65,
584,
1023,
13,
288,
565,
727,
8547,
4164,
30897,
1817,
4164,
30897,
273,
394,
8547,
4164,
30897,
12,
4811,
797,
16,
3399,
4419,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
17942,
3477,
1023,
12,
5357,
966,
63,
6362,
65,
584,
1023,
13,
288,
565,
727,
8547,
4164,
30897,
1817,
4164,
30897,
273,
394,
8547,
4164,
30897,
12,
4811,
797,
16,
3399,
4419,... |
throw new NotImplementedException(invocation.invokedMethod.getName() + "called on " + name); | throw new NotImplementedException(invocation.invokedMethod.getName() + " called on " + name); | public Object invoke( Invocation invocation ) throws Throwable { throw new NotImplementedException(invocation.invokedMethod.getName() + "called on " + name); } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/49a2f6dc030bdc74d12c8f8d35d01861ea94cf1a/Dummy.java/clean/jmock/core/src/org/jmock/util/Dummy.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
4356,
12,
11298,
9495,
262,
1216,
4206,
288,
7734,
604,
394,
10051,
503,
12,
5768,
4431,
18,
5768,
14276,
1305,
18,
17994,
1435,
397,
315,
2566,
603,
315,
397,
508,
1769,
541... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2398,
1071,
1033,
4356,
12,
11298,
9495,
262,
1216,
4206,
288,
7734,
604,
394,
10051,
503,
12,
5768,
4431,
18,
5768,
14276,
1305,
18,
17994,
1435,
397,
315,
2566,
603,
315,
397,
508,
1769,
541... |
cat.error(time.toGMTString() + ", " + LogEntry.MODULETEXTS[module] + ", " + LogEntry.EVENTNAMES_ERROR[event - LogEntry.EVENT_ERROR_BOUNDRARY] + ", Administrator : " + | log.error(time.toGMTString() + ", " + LogEntry.MODULETEXTS[module] + ", " + LogEntry.EVENTNAMES_ERROR[event - LogEntry.EVENT_ERROR_BOUNDRARY] + ", Administrator : " + | public void log(Admin admininfo, int module, Date time, String username, X509Certificate certificate, int event, String comment){ String user = "No User Involved"; String cert = "No Certificate Involved"; String admin = "Administrator not known"; if(username != null) user = username; if (certificate != null) cert = certificate.getSerialNumber().toString(16); if(admininfo.getAdminType() == Admin.TYPE_CLIENTCERT_USER) admin = Admin.ADMINTYPETEXTS[Admin.TYPE_CLIENTCERT_USER] + ", Certificate SNR : " + admininfo.getAdminData(); else if(admininfo.getAdminType() == Admin.TYPE_PUBLIC_WEB_USER){ if(admininfo.getAdminData() != null){ if(!admininfo.getAdminData().equals("")) admin = Admin.ADMINTYPETEXTS[Admin.TYPE_PUBLIC_WEB_USER] + ", IP Address : " + admininfo.getAdminData(); } else admin = Admin.ADMINTYPETEXTS[Admin.TYPE_PUBLIC_WEB_USER]; }else admin = Admin.ADMINTYPETEXTS[admininfo.getAdminType()]; if(event < LogEntry.EVENT_ERROR_BOUNDRARY){ // Do Log4j Informational logging. cat.info(time.toGMTString() + ", " + LogEntry.MODULETEXTS[module] + ", " + LogEntry.EVENTNAMES_INFO[event] + ", Administrator : " + admin + ", User : " + user + ", Certificate : " + cert + ", Comment : " + comment); } else{ // Do Log4j error logging. cat.error(time.toGMTString() + ", " + LogEntry.MODULETEXTS[module] + ", " + LogEntry.EVENTNAMES_ERROR[event - LogEntry.EVENT_ERROR_BOUNDRARY] + ", Administrator : " + admin + ", User : " + user + ", Certificate : " + cert + ", Comment : " + comment); } } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/16e6a1dbcc54470e8d05f9bc7fdc7e7ebb6fe13c/Log4jLogDevice.java/clean/src/java/se/anatom/ejbca/log/Log4jLogDevice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
613,
12,
4446,
3981,
1376,
16,
509,
1605,
16,
2167,
813,
16,
514,
2718,
16,
1139,
5995,
4719,
4944,
16,
509,
871,
16,
514,
2879,
15329,
4202,
514,
729,
225,
273,
315,
2279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
613,
12,
4446,
3981,
1376,
16,
509,
1605,
16,
2167,
813,
16,
514,
2718,
16,
1139,
5995,
4719,
4944,
16,
509,
871,
16,
514,
2879,
15329,
4202,
514,
729,
225,
273,
315,
2279,
... |
default : | default: | public static ServiceContext read(cdrInput istream) { int id = istream.read_ulong(); switch (id) { case cxCodeSet.ID : cxCodeSet codeset = new cxCodeSet(); codeset.readContext(istream); return codeset; default : ServiceContext ctx = new ServiceContext(); ctx.context_id = id; ctx.context_data = istream.read_sequence(); return ctx; } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/031055047d52e1cffbe5de5ce0c7da51215e931f/ServiceContext.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/ServiceContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1956,
1042,
855,
12,
71,
3069,
1210,
277,
3256,
13,
225,
288,
565,
509,
612,
273,
277,
3256,
18,
896,
67,
332,
932,
5621,
565,
1620,
261,
350,
13,
1377,
288,
3639,
648,
949... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
1956,
1042,
855,
12,
71,
3069,
1210,
277,
3256,
13,
225,
288,
565,
509,
612,
273,
277,
3256,
18,
896,
67,
332,
932,
5621,
565,
1620,
261,
350,
13,
1377,
288,
3639,
648,
949... |
asm.emitSTW(S0, JNI_GLUE_FRAME_SIZE + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); | asm.emitSTW(S0, glueFrameSize + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); | public static void generateGlueCodeForJNIMethod(VM_Assembler asm, VM_Method mth) { int offset; asm.emitSTAddrU(FP,-JNI_GLUE_FRAME_SIZE,FP); // buy the glue frame // we may need to save CR in the previous frame also if CR will be used // CR is to be saved at FP+4 in the previous frame // Here we check if this is a JNI function that takes the vararg in the ... style // This includes CallStatic<type>Method, Call<type>Method, CallNonVirtual<type>Method // For these calls, the vararg starts at the 4th or 5th argument (GPR 6 or 7) // So, we save the GPR 6-10 and FPR 1-3 in a volatile register save area // in the glue stack frame so that the JNI function can later repackage the arguments // based on the parameter types of target method to be invoked. // (For long argument lists, the additional arguments, have been saved in // the spill area of the OS caller, and will be retrieved from there.) // // If we are compiling such a JNI Function, then emit the code to store // GPR 4-10 and FPR 1-6 into the volatile save area. String mthName = mth.getName().toString(); if ((mthName.startsWith("Call") && mthName.endsWith("Method")) || mthName.equals("NewObject")) { //-#if RVM_WITH_POWEROPEN_ABI offset = STACKFRAME_HEADER_SIZE + 3*BYTES_IN_STACKSLOT; // skip over slots for GPR 3-5 for (int i = 6; i <= 10; i++ ) { asm.emitSTAddr(i, offset, FP); offset+=BYTES_IN_ADDRESS; } // store FPRs 1-3 in first 3 slots of volatile FPR save area for (int i = 1; i <= 3; i++) { asm.emitSTFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } //-#elif RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // save all parameter registers offset = STACKFRAME_HEADER_SIZE + 0; for (int i=FIRST_OS_PARAMETER_GPR; i<=LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } for (int i =FIRST_OS_PARAMETER_FPR; i<=LAST_OS_PARAMETER_FPR; i++) { asm.emitSTFD(i, offset, FP); offset += BYTES_IN_DOUBLE; } //-#endif } else { //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // adjust register contents (following SVR4 ABI) for normal JNI functions // especially dealing with long, spills // number of parameters of normal JNI functions should fix in // r3 - r12, f1 - f15, + 24 words, convertParametersFromSVR4ToJava(asm, mth); //-#endif } // Save AIX non-volatile GPRs that will not be saved and restored by RVM. // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_RVM_RESERVED_NV_GPR; i <=LAST_RVM_RESERVED_NV_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset += BYTES_IN_ADDRESS; } // set the method ID for the glue frame // and save the return address in the previous frame // asm.emitLVAL(S0, INVISIBLE_METHOD_ID); asm.emitMFLR(REGISTER_ZERO); asm.emitSTW (S0, STACKFRAME_METHOD_ID_OFFSET, FP); asm.emitSTAddr(REGISTER_ZERO, JNI_GLUE_FRAME_SIZE + STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); // Attempt to change the vpStatus of the current Processor to IN_JAVA // // on entry T0 = JNIEnv* which is an interior pointer to this thread's VM_JNIEnvironment. // We first adjust this in place to be a pointer to a VM_JNIEnvironment and then use // it to acquire PROCESSOR_REGISTER (and JTOC on OSX/Linux). // // AIX non volatile gprs 13-16 have been saved & are available (also gprs 11-13 can be used). // S0=13, S1=14, TI=15, PROCESSOR_REGISTER=16 are available (&have labels) for changing state. // we leave the passed arguments untouched, unless we are blocked and have to call sysVirtualProcessorYield // Map from JNIEnv* to VM_JNIEnvironment. // Must do this outside the loop as we need to do it exactly once. asm.emitADDI (T0, -VM_Entrypoints.JNIExternalFunctionsField.getOffset(), T0); int retryLoop = asm.getMachineCodeIndex(); // acquire Jikes RVM PROCESSOR_REGISTER (and JTOC OSX/Linux only). asm.emitLAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), T0); //-#if RVM_WITH_SVR4_ABI || RVM_WITH_MACH_O_ABI // on AIX JTOC is part of AIX Linkage triplet and this already set by our caller. // Thus, we only need this load on non-AIX platforms asm.emitLAddr(JTOC, VM_Entrypoints.JNIEnvSavedJTOCField.getOffset(), T0); //-#endif asm.emitLVAL (S1, VM_Entrypoints.vpStatusField.getOffset()); asm.emitLWARX (S0, S1, PROCESSOR_REGISTER); // get status for processor asm.emitCMPI (S0, VM_Processor.BLOCKED_IN_NATIVE); // check if GC in progress, blocked in native mode VM_ForwardReference frBlocked = asm.emitForwardBC(EQ); asm.emitLVAL (S0, VM_Processor.IN_JAVA); // S0 <- new state value asm.emitSTWCXr(S0, S1, PROCESSOR_REGISTER); // attempt to change state to IN_JAVA asm.emitBC (NE, retryLoop); // br if failure -retry lwarx by jumping to label0 VM_ForwardReference frInJava = asm.emitForwardB(); // branch around code to call sysYield // branch to here if blocked in native, call sysVirtualProcessorYield (pthread yield) // must save volatile gprs & fprs before the call and restore after // frBlocked.resolve(asm); offset = STACKFRAME_HEADER_SIZE; // save volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitSTAddr(i, offset, FP); offset+=BYTES_IN_ADDRESS; } // save volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitSTFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } asm.emitLAddr(S1, VM_Entrypoints.the_boot_recordField.getOffset(), JTOC); // get boot record address asm.emitMR (PROCESSOR_REGISTER, JTOC); // save JTOC so we can restore below asm.emitLAddr(JTOC, VM_Entrypoints.sysTOCField.getOffset(), S1); // load TOC for syscalls from bootrecord asm.emitLAddr(KLUDGE_TI_REG, VM_Entrypoints.sysVirtualProcessorYieldIPField.getOffset(), S1); // load addr of function asm.emitMTLR (KLUDGE_TI_REG); asm.emitBCLRL(); // call sysVirtualProcessorYield in sys.C asm.emitMR (JTOC, PROCESSOR_REGISTER); // restore JTOC // restore the saved volatile GPRs 3-10 and FPRs 1-6 offset = STACKFRAME_HEADER_SIZE; // restore volatile GPRS 3-10 for (int i = FIRST_OS_PARAMETER_GPR; i <= LAST_OS_PARAMETER_GPR; i++) { asm.emitLAddr (i, offset, FP); offset+=BYTES_IN_ADDRESS; } // restore volatile FPRS 1-6 for (int i = FIRST_OS_PARAMETER_FPR; i <= LAST_OS_VARARG_PARAMETER_FPR; i++) { asm.emitLFD (i, offset, FP); offset+=BYTES_IN_DOUBLE; } asm.emitB (retryLoop); // br back to label0 to try lwarx again // NOW_IN_JAVA: // JTOC, and PR are all as Jikes RVM expects them; // params are where the Jikes RVM calling conventions expects them. // frInJava.resolve(asm); // get pointer to top java frame from JNIEnv, compute offset from current // frame pointer (offset to avoid more interior pointers) and save offset // in this glue frame // asm.emitLAddr (S0, VM_Entrypoints.JNITopJavaFPField.getOffset(), T0); // get addr of top java frame from JNIEnv asm.emitSUBFC (S0, FP, S0); // S0 <- offset from current FP // AIX -4, LINUX - 8 asm.emitSTW(S0, JNI_GLUE_FRAME_SIZE + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // store offset at end of glue frame // BRANCH TO THE PROLOG FOR THE JNI FUNCTION VM_ForwardReference frNormalPrologue = asm.emitForwardBL(); // relative branch and link past the following epilog, to the normal prolog of the method // the normal epilog of the method will return to the epilog here to pop the glue stack frame // RETURN TO HERE FROM EPILOG OF JNI FUNCTION // CAUTION: START OF EPILOG OF GLUE CODE // The section of code from here to "END OF EPILOG OF GLUE CODE" is nestled between // the glue code prolog and the real body of the JNI method. // T0 & T1 (R3 & R4) or F1 contain the return value from the function - DO NOT USE // assume: JTOC and PROCESSOR_REG are valid, and all RVM non-volatile // GPRs and FPRs have been restored. Our processor state will be IN_JAVA. // establish T2 -> current thread's VM_JNIEnvironment, from activeThread field // of current processor asm.emitLAddr(T2, VM_Entrypoints.activeThreadField.getOffset(), PROCESSOR_REGISTER); // T2 <- activeThread of PR asm.emitLAddr(T2, VM_Entrypoints.jniEnvField.getOffset(), T2); // T2 <- JNIEnvironment // before returning to C, set pointer to top java frame in JNIEnv, using offset // saved in this glue frame during transition from C to Java. GC will use this saved // frame pointer if it is necessary to do GC with a processors active thread // stuck (and blocked) in native C, ie. GC starts scanning the threads stack at that frame. // AIX -4, LINUX -8 asm.emitLInt (T3, JNI_GLUE_FRAME_SIZE + JNI_GLUE_OFFSET_TO_PREV_JFRAME, FP); // load offset from FP to top java frame asm.emitADD (T3, FP, T3); // T3 <- address of top java frame asm.emitSTAddr(T3, VM_Entrypoints.JNITopJavaFPField.getOffset(), T2); // store TopJavaFP back into JNIEnv // check to see if this frame address is the sentinel since there // may be no further Java frame below asm.emitCMPAddrI(T3, VM_Constants.STACKFRAME_SENTINEL_FP.toInt()); VM_ForwardReference fr4 = asm.emitForwardBC(EQ); asm.emitLAddr(S0, 0, T3); // get fp for caller of prev J to C transition frame fr4.resolve(asm); // store current PR into VM_JNIEnvironment; we may have switched PRs while in Java mode. asm.emitSTAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIEnvSavedPRField.getOffset(), T2); // change the state of the VP to IN_NATIVE. // asm.emitLVAL (S0, VM_Processor.IN_NATIVE); asm.emitSTW (S0, VM_Entrypoints.vpStatusField.getOffset(), PROCESSOR_REGISTER); // Restore those AIX nonvolatile registers saved in the prolog above // Here we only save & restore ONLY those registers not restored by RVM // offset = STACKFRAME_HEADER_SIZE + JNI_GLUE_SAVED_VOL_SIZE; // skip 20 word volatile reg save area for (int i = FIRST_RVM_RESERVED_NV_GPR; i <=LAST_RVM_RESERVED_NV_GPR; i++) { asm.emitLAddr (i, offset, FP); // 4 instructions offset += BYTES_IN_ADDRESS; } // pop frame asm.emitADDI(FP, JNI_GLUE_FRAME_SIZE, FP); // load return address & return to caller // T0 & T1 (or F1) should still contain the return value // asm.emitLAddr(T2, STACKFRAME_NEXT_INSTRUCTION_OFFSET, FP); asm.emitMTLR(T2); asm.emitBCLR (); // branch always, through link register // END OF EPILOG OF GLUE CODE; rest of method generated by VM_Compiler from bytecodes of method in VM_JNIFunctions frNormalPrologue.resolve(asm); } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/b910a39ad6845b8a14a18f9fcf248a47452b8dc8/VM_JNICompiler.java/buggy/rvm/src/vm/arch/powerPC/jni/VM_JNICompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2103,
21308,
344,
1085,
1290,
46,
50,
45,
1305,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
312,
451,
13,
288,
565,
509,
1384,
31,
565,
20415,
18,
18356,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2103,
21308,
344,
1085,
1290,
46,
50,
45,
1305,
12,
7397,
67,
1463,
5747,
749,
20415,
16,
8251,
67,
1305,
312,
451,
13,
288,
565,
509,
1384,
31,
565,
20415,
18,
18356,
... |
return new PDBFormat(); } | return new PDBFormat(); } | public ChemFormat getFormat() { return new PDBFormat(); } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/6fc05aca86d417eb218e45a23e409449083b6636/PDBReader.java/clean/src/org/openscience/cdk/io/PDBReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26542,
1630,
10959,
1435,
288,
3639,
327,
394,
21601,
1630,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
26542,
1630,
10959,
1435,
288,
3639,
327,
394,
21601,
1630,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if(parent != null) { | if (parent != null) { | protected Object[] getChildren() { if(children != null) return children; Context cx = Context.enter(); try { Object value = getObject(); if(value == null) return children = empty; if(value == ScriptableObject.NOT_FOUND || value == Undefined.instance) { return children = empty; } if(value instanceof Scriptable) { Scriptable scrip = (Scriptable)value; Scriptable proto = scrip.getPrototype(); Scriptable parent = scrip.getParentScope(); if(value instanceof NativeCall) { if(name != null && name.equals("this")) { // this is the local variables table root // don't show the __parent__ property parent = null; } else if(!(parent instanceof NativeCall)) { // don't bother showing [object Global] as // the __parent__ property which just creates // more noise parent = null; } } if(proto != null) { if(builtin == null) { builtin = new Scriptable[6]; builtin[0] = ScriptableObject.getObjectPrototype(scrip); builtin[1] = ScriptableObject.getFunctionPrototype(scrip); builtin[2] = ScriptableObject.getClassPrototype(scrip, "String"); builtin[3] = ScriptableObject.getClassPrototype(scrip, "Boolean"); builtin[4] = ScriptableObject.getClassPrototype(scrip, "Array"); builtin[5] = ScriptableObject.getClassPrototype(scrip, "Number"); } for(int i = 0; i < builtin.length; i++) { if(proto == builtin[i]) { proto = null; break; } } } if(scrip.has(0, scrip)) { int len = 0; try { Scriptable start = scrip; Scriptable obj = start; Object result = Undefined.instance; do { if(obj.has("length", start)) { result = obj.get("length", start); if (result != Scriptable.NOT_FOUND) break; } obj = obj.getPrototype(); } while (obj != null); if(result instanceof Number) { len = ((Number)result).intValue(); } } catch(Exception exc) { } if(parent != null) { len++; } if(proto != null) { len++; } children = new VariableNode[len]; int i = 0; int j = 0; if(proto != null) { children[i++] = new VariableNode(scrip, "__proto__"); j++; } if(parent != null) { children[i++] = new VariableNode(scrip, "__parent__"); j++; } for(; i < len; i++) { children[i] = new VariableNode(scrip, i-j); } } else { int len = 0; Hashtable t = new Hashtable(); Object[] ids = scrip.getIds(); if(proto != null) t.put("__proto__", "__proto__"); if(parent != null) t.put("__parent__", "__parent__"); if(ids.length > 0) { for(int j = 0; j < ids.length; j++) { t.put(ids[j], ids[j]); } } ids = new Object[t.size()]; Enumeration e = t.keys(); int j = 0; while(e.hasMoreElements()) { ids[j++] = e.nextElement().toString(); } if(ids != null && ids.length > 0) { java.util.Arrays.sort(ids, new java.util.Comparator() { public int compare(Object l, Object r) { return l.toString().compareToIgnoreCase(r.toString()); } }); len = ids.length; } children = new VariableNode[len]; for(int i = 0; i < len; i++) { Object id = ids[i]; children[i] = new VariableNode(scrip, id.toString()); } } } } catch (Exception exc) { exc.printStackTrace(); } finally { cx.exit(); } return children; } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/b9766e81693411fa600b26b9a0763dcf621b2770/VariableModel.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/VariableModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1033,
8526,
10268,
1435,
288,
3639,
309,
12,
5906,
480,
446,
13,
327,
2325,
31,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
775,
288,
5411,
1033,
460,
273,
6455,
5621,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
8526,
10268,
1435,
288,
3639,
309,
12,
5906,
480,
446,
13,
327,
2325,
31,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
775,
288,
5411,
1033,
460,
273,
6455,
5621,
5411,
... |
boolean temp = true; | ArrayList edgesToRemove = new ArrayList(); GEStreamNode firstInPipe = (GEStreamNode) nodeList[0]; GEStreamNode finalInPipe = (GEStreamNode) nodeList[nodeList.length-1]; | public void expand(JGraph jgraph) { /* if(this.isInfoDisplayed) { Rectangle rect = GraphConstants.getBounds(this.attributes); this.frame.setLocation(new Point(rect.x, rect.y)); this.frame.setVisible(true); } else { this.frame.setLocation(GraphConstants.getOffset(this.attributes)); this.frame.setVisible(false); } */ /* if(jgraph.getGraphLayoutCache().isPartial()) { System.out.println("the graph is partial"); }*/ Object[] nodeList = this.getSuccesors().toArray(); ConnectionSet cs = this.localGraphStruct.getConnectionSet(); jgraph.getGraphLayoutCache().setVisible(nodeList, true); Iterator eIter = localGraphStruct.getGraphModel().edges(this.getPort()); boolean temp = true; while (eIter.hasNext()) { DefaultEdge edge = (DefaultEdge) eIter.next(); if (nodeList.length > 0) { if (temp) { cs.disconnect(edge,false); cs.connect(edge, nodeList[0], false); temp = false; } else { cs.disconnect(edge, true); cs.connect(edge, nodeList[nodeList.length-1], true); } } } this.localGraphStruct.getGraphModel().edit(null, cs, null, null); jgraph.getGraphLayoutCache().setVisible(new Object[]{this}, false); JGraphLayoutManager manager = new JGraphLayoutManager(this.localGraphStruct.getJGraph()); manager.arrange(); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/7ace7a530da48c40374d9550f4f745b7a19df53e/GEPipeline.java/buggy/streams/src/streamit/eclipse/grapheditor/GEPipeline.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4542,
12,
46,
4137,
525,
4660,
13,
202,
95,
6862,
202,
20308,
202,
202,
430,
12,
2211,
18,
291,
966,
4236,
329,
13,
288,
6862,
202,
19463,
4917,
273,
5601,
2918,
18,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4542,
12,
46,
4137,
525,
4660,
13,
202,
95,
6862,
202,
20308,
202,
202,
430,
12,
2211,
18,
291,
966,
4236,
329,
13,
288,
6862,
202,
19463,
4917,
273,
5601,
2918,
18,
58... |
public short getWSFacet(){ | public short getWSFacet() { | public short getWSFacet(){ return fWhiteSpace; } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/dc960568a2b05c8b317baf3a197b6e8f0928a2bf/StringDatatypeValidator.java/clean/src/org/apache/xerces/validators/datatype/StringDatatypeValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3025,
336,
2651,
11137,
1435,
288,
3639,
327,
284,
23108,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3025,
336,
2651,
11137,
1435,
288,
3639,
327,
284,
23108,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.