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 |
|---|---|---|---|---|---|---|
RubyId attrIV = getRuby().intern("@" + name); | RubyId attrIV = getRuby().intern("@" + name); | public void addAttribute(RubyId id, boolean read, boolean write, boolean ex) { // RubyInterpreter intrprtr = getRuby().getInterpreter(); int noex = Constants.NOEX_PUBLIC; if (ex) { if (getRuby().getActMethodScope() == Constants.SCOPE_PRIVATE) { noex = Constants.NOEX_PRIVATE; } else if (getRuby().getActMethodScope() == Constants.SCOPE_PROTECTED) { noex = Constants.NOEX_PROTECTED; } else { noex = Constants.NOEX_PUBLIC; } } String name = id.toName(); RubyId attrIV = getRuby().intern("@" + name); if (read) { addMethod(id, new NodeFactory(getRuby()).newIVar(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } if (write) { id = getRuby().intern(name + "="); addMethod(id, new NodeFactory(getRuby()).newAttrSet(attrIV), noex); // id.clearCache(); funcall(getRuby().intern("method_added"), id.toSymbol()); } } | 50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
10759,
12,
54,
10340,
548,
612,
16,
1250,
855,
16,
1250,
1045,
16,
1250,
431,
13,
288,
202,
202,
759,
19817,
30010,
28600,
683,
313,
273,
4170,
10340,
7675,
588,
30010,
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,
482,
918,
10759,
12,
54,
10340,
548,
612,
16,
1250,
855,
16,
1250,
1045,
16,
1250,
431,
13,
288,
202,
202,
759,
19817,
30010,
28600,
683,
313,
273,
4170,
10340,
7675,
588,
30010,
5... |
protected void calculateChecksum(Patch p,int start,int end,int ofs) | protected static void calculateChecksum(Patch p,int start,int end,int ofs) | protected void calculateChecksum(Patch p,int start,int end,int ofs) { //This synth does not use a checksum } | 7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/fdbee42aa3689ba7bb6d6df12004785dd534b97e/AlesisQSMixDriver.java/buggy/JSynthLib/synthdrivers/AlesisQS/AlesisQSMixDriver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
918,
4604,
10723,
12,
7332,
293,
16,
474,
787,
16,
474,
679,
16,
474,
26927,
13,
225,
288,
565,
368,
2503,
6194,
451,
1552,
486,
999,
279,
6697,
225,
289,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
760,
918,
4604,
10723,
12,
7332,
293,
16,
474,
787,
16,
474,
679,
16,
474,
26927,
13,
225,
288,
565,
368,
2503,
6194,
451,
1552,
486,
999,
279,
6697,
225,
289,
2,
-100,
-100,
-1... |
global); | type); | TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new ParameterNode(name, select.clone(stylesheet), global); if (children != null) { ret.children = children.clone(stylesheet); } if (next != null) { ret.next = next.clone(stylesheet); } return ret; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/11aafc23ec4e191f57d02c34f8e6bfeb90bed5a2/ParameterNode.java/buggy/core/src/classpath/gnu/gnu/xml/transform/ParameterNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
5035,
907,
3236,
12,
24656,
13820,
13,
225,
288,
565,
5035,
907,
325,
273,
394,
5498,
907,
12,
529,
16,
11794,
2027,
18,
14056,
12,
19403,
3631,
11794,
618,
1769,
565,
309,
261,
5906,
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,
282,
5035,
907,
3236,
12,
24656,
13820,
13,
225,
288,
565,
5035,
907,
325,
273,
394,
5498,
907,
12,
529,
16,
11794,
2027,
18,
14056,
12,
19403,
3631,
11794,
618,
1769,
565,
309,
261,
5906,
4... |
this.sendHtml( req, res, vm, ADD_IP_TEMPLATE ); return; } if ( req.getParameter( "CANCEL" ) != null ) { res.sendRedirect( "AdminManager" ); | super.sendHtml( req, res, vm, ADD_IP_TEMPLATE ); | public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets check if the user is an admin, otherwise throw him out. IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface(); UserDomainObject user = Utility.getLoggedOnUser( req ); if ( user.isSuperAdmin() == false ) { String header = "Error in AdminCounter."; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/global/no_administrator")+"<br>"; this.log( header + "- user is not an administrator" ); new AdminError( req, res, header, msg ); return; } // ******* GENERATE THE ADD A NEW IP-ACCESS TO DB ********** if ( req.getParameter( "ADD_IP_ACCESS" ) != null ) { // Lets get all USERS from DB String[] usersArr = imcref.sqlProcedure( "GetAllUsersInList", new String[0] ); Vector usersV = new Vector( java.util.Arrays.asList( usersArr ) ); String usersOption = Html.createOptionList( "", usersV ); // Lets generate the html page VariableManager vm = new VariableManager(); vm.addProperty( "USERS_LIST", usersOption ); this.sendHtml( req, res, vm, ADD_IP_TEMPLATE ); return; } // *************** RETURN TO ADMINMANAGER ***************** if ( req.getParameter( "CANCEL" ) != null ) { res.sendRedirect( "AdminManager" ); return; } // ******* RETURN TO THE NORMAL ADMIN IPACCESS PAGE ********** else if ( req.getParameter( "CANCEL_ADD_IP" ) != null || req.getParameter( "IP_CANCEL_DELETE" ) != null ) { res.sendRedirect( "AdminIpAccess?action=start" ); return; } // ******* RETURN TO THE NORMAL ADMIN IPACCESS PAGE ********** else if ( req.getParameter( "IP_CANCEL_DELETE" ) != null ) { res.sendRedirect( "AdminIpAccess?action=start" ); return; } // ******* ADD A NEW IP-ACCESS TO DB ********** else if ( req.getParameter( "ADD_NEW_IP_ACCESS" ) != null ) { log( "Now's ADD_IP_ACCESS running" ); // Lets get the parameters from html page and validate them Properties params = this.getAddParameters( req ); //log("PARAMS: " + params.toString()) ; params = this.validateParameters( params, req, res, imcref, user); if ( params == null ) return; imcref.sqlUpdateProcedure( "IPAccessAdd", new String[]{params.getProperty( "USER_ID" ), params.getProperty( "IP_START" ), params.getProperty( "IP_END" )} ); res.sendRedirect( "AdminIpAccess?action=start" ); return; } // ******** SAVE AN EXISTING IP-ACCESS TO DB *************** else if ( req.getParameter( "RESAVE_IP_ACCESS" ) != null ) { // Lets get all the ip_access id:s String[] reSavesIds = this.getEditedIpAccesses( req ); // Lets resave all marked ip-accesses. if ( reSavesIds != null ) { for ( int i = 0; i < reSavesIds.length; i++ ) { log( "ResaveId: " + reSavesIds[i] ); String tmpId = reSavesIds[i]; // Lets get all edited fields for that ip-access String ipAccessId = req.getParameter( "IP_ACCESS_ID_" + tmpId ); String ipUserId = req.getParameter( "IP_USER_ID_" + tmpId ); String ipStart = req.getParameter( "IP_START_" + tmpId ); String ipEnd = req.getParameter( "IP_END_" + tmpId ); long ipStartInt = Utility.ipStringToLong( ipStart ); long ipEndInt = Utility.ipStringToLong( ipEnd ); imcref.sqlUpdateProcedure( "IPAccessUpdate", new String[]{ipAccessId, ipUserId, "" + ipStartInt, "" + ipEndInt} ); } } this.doGet( req, res ); return; } // ***** GENERATE THE LAST DELETE IP-ACCESS WARNING PAGE ********** else if ( req.getParameter( "IP_WARN_DELETE" ) != null ) { // Lets get the parameters from html page and validate them HttpSession session = req.getSession( false ); if ( session != null ) { Enumeration enumNames = req.getParameterNames(); while ( enumNames.hasMoreElements() ) { String paramName = (String)( enumNames.nextElement() ); String[] arr = req.getParameterValues( paramName ); session.setAttribute( "IP." + paramName, arr ); } } else { String header = "Error in AdminIpAccess, delete. "; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminIpAccess/no_session") + "<br>"; this.log( header + "- session could not be created"); new AdminError( req, res, header, msg ); return; } // Lets generate the last warning html page VariableManager vm = new VariableManager(); this.sendHtml( req, res, vm, WARN_DEL_IP_TEMPLATE ); return; } // ******** DELETE A IP ACCESS FROM DB *************** else if ( req.getParameter( "DEL_IP_ACCESS" ) != null ) { HttpSession session = req.getSession( false ); if ( session != null ) { log( "Ok, ta bort en Ip-access: " + session.toString() ); String[] deleteIds = (String[])session.getAttribute( "IP.EDIT_IP_ACCESS" ); // Lets resave all marked ip-accesses. if ( deleteIds != null ) { for ( int i = 0; i < deleteIds.length; i++ ) { String tmpId = "IP.IP_ACCESS_ID_" + deleteIds[i]; String[] tmpArr = (String[])session.getAttribute( tmpId ); String ipAccessId = tmpArr[0]; imcref.sqlUpdateProcedure( "IPAccessDelete", new String[]{ipAccessId} ); } } } else { String header = "Error in AdminIpAccess, delete."; Properties langproperties = imcref.getLanguageProperties( user ); String msg = langproperties.getProperty("error/servlet/AdminIpAccess/no_session") + "<br>"; this.log( header + "- session could not be created" ); new AdminError( req, res, header, msg ); return; } this.doGet( req, res ); return; } } // end HTTP POST | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ab75311a112782af0e51c28c07d788fe238b5d09/AdminIpAccess.java/buggy/server/src/com/imcode/imcms/servlet/superadmin/AdminIpAccess.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
5411,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
866,
309,
326,
729,
353,
392,
3981,
16,
3541,
604,
366,
381,
596,
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,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
5411,
1216,
16517,
16,
1860,
288,
3639,
368,
511,
2413,
866,
309,
326,
729,
353,
392,
3981,
16,
3541,
604,
366,
381,
596,
18,
... |
public boolean execute() throws SQLException | public boolean execute(String p_sql) throws SQLException | public boolean execute() throws SQLException { if (isFunction && !returnTypeSet) throw new PSQLException("postgresql.call.noreturntype"); if (isFunction) { // set entry 1 to dummy entry.. m_binds[0] = ""; // dummy entry which ensured that no one overrode m_bindTypes[0] = PG_TEXT; // and calls to setXXX (2,..) really went to first arg in a function call.. } // New in 7.1, if we have a previous resultset then force it to close // This brings us nearer to compliance, and helps memory management. // Internal stuff will call ExecSQL directly, bypassing this. if (result != null) { java.sql.ResultSet rs = getResultSet(); if (rs != null) rs.close(); } //Use server prepared statements if directed if (m_useServerPrepare) { if (m_statementName == null) { m_statementName = "JDBC_STATEMENT_" + m_preparedCount++; m_origSqlFragments = new String[m_sqlFragments.length]; m_executeSqlFragments = new String[m_sqlFragments.length]; System.arraycopy(m_sqlFragments, 0, m_origSqlFragments, 0, m_sqlFragments.length); m_executeSqlFragments[0] = "EXECUTE " + m_statementName; if (m_sqlFragments.length > 1) { m_executeSqlFragments[0] = m_executeSqlFragments[0] + "("; for (int i = 1; i < m_bindTypes.length; i++) { m_executeSqlFragments[i] = ", "; } m_executeSqlFragments[m_bindTypes.length] = ")"; } synchronized (sbuf) { sbuf.setLength(0); sbuf.append("PREPARE "); sbuf.append(m_statementName); if (m_origSqlFragments.length > 1) { sbuf.append("("); for (int i = 0; i < m_bindTypes.length - 1; i++) { sbuf.append(m_bindTypes[i]); sbuf.append(", "); } sbuf.append(m_bindTypes[m_bindTypes.length - 1]); sbuf.append(")"); } sbuf.append(" AS "); sbuf.append(m_origSqlFragments[0]); for (int i = 1; i < m_origSqlFragments.length; i++) { sbuf.append(" $"); sbuf.append(i); sbuf.append(" "); sbuf.append(m_origSqlFragments[i]); } sbuf.append("; "); sbuf.append(m_executeSqlFragments[0]); m_sqlFragments[0] = sbuf.toString(); System.arraycopy(m_executeSqlFragments, 1, m_sqlFragments, 1, m_sqlFragments.length - 1); } } else { m_sqlFragments = m_executeSqlFragments; } } // New in 7.1, pass Statement so that ExecSQL can customise to it result = ((AbstractJdbc1Connection)connection).ExecSQL(m_sqlFragments, m_binds, (java.sql.Statement)this); //If we are executing a callable statement function set the return data if (isFunction) { if (!((AbstractJdbc1ResultSet)result).reallyResultSet()) throw new PSQLException("postgresql.call.noreturnval"); if (!result.next ()) throw new PSQLException ("postgresql.call.noreturnval"); callResult = result.getObject(1); int columnType = result.getMetaData().getColumnType(1); if (columnType != functionReturnType) throw new PSQLException ("postgresql.call.wrongrtntype", new Object[]{ "java.sql.Types=" + columnType, "java.sql.Types=" + functionReturnType }); result.close (); return true; } else { return (result != null && ((AbstractJdbc1ResultSet)result).reallyResultSet()); } } | 2413 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2413/030e8fc4f0812d863c69c499b126fd96385d75c7/AbstractJdbc1Statement.java/buggy/org/postgresql/jdbc1/AbstractJdbc1Statement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1836,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
291,
2083,
597,
401,
2463,
559,
694,
13,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
1991,
18,
82,
479... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1836,
1435,
1216,
6483,
202,
95,
202,
202,
430,
261,
291,
2083,
597,
401,
2463,
559,
694,
13,
1082,
202,
12849,
394,
453,
23116,
2932,
2767,
24330,
18,
1991,
18,
82,
479... |
IJavaProject javaProj, IFile file, ICompilationUnit compilationUnit ) { | IJavaProject javaProj, IFile[] files, ICompilationUnit compilationUnit, boolean isFullBuild) { assert ( files != null && compilationUnit == null ) || ( files == null && compilationUnit != null ) : "either compilation unit is null or set of files is, but not both"; | private static APTResult runAPT(final List<AnnotationProcessorFactory> factories, IJavaProject javaProj, IFile file, ICompilationUnit compilationUnit ) { APTDispatchRunnable runnable; ISchedulingRule schedulingRule; if ( file != null ) { runnable = new APTDispatchRunnable( file, javaProj, factories ); schedulingRule = javaProj.getResource(); } else { runnable = new APTDispatchRunnable( compilationUnit, javaProj, factories ); schedulingRule = null; } try { IWorkspace w = ResourcesPlugin.getWorkspace(); w.run( runnable, schedulingRule, IWorkspace.AVOID_UPDATE, null ); } catch( CoreException ce ) { AptPlugin.log(ce, "Could not run APT"); //$NON-NLS-1$ } return runnable.getResult(); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/baf433f0226e8b9036b18a28d560e5a42cb8b949/APTDispatch.java/clean/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/APTDispatch.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
432,
1856,
1253,
1086,
37,
1856,
12,
6385,
987,
32,
3257,
5164,
1733,
34,
17456,
16,
1082,
202,
45,
5852,
4109,
2252,
626,
78,
16,
467,
812,
585,
16,
1875,
202,
45,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
432,
1856,
1253,
1086,
37,
1856,
12,
6385,
987,
32,
3257,
5164,
1733,
34,
17456,
16,
1082,
202,
45,
5852,
4109,
2252,
626,
78,
16,
467,
812,
585,
16,
1875,
202,
45,
19... |
if (toolBarMgr != null) toolBarMgr.setVisible(set); } | if (toolBarMgr != null) toolBarMgr.setVisible(set); } | protected void setActive(boolean set) { active = set; if (menuMgr != null) menuMgr.setVisible(set); if (statusLineMgr != null) statusLineMgr.setVisible(set); if (toolBarMgr != null) toolBarMgr.setVisible(set); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f1c8b0aa355c00a6c82a289c808984de6778bfca/SubActionBars.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/SubActionBars.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
20669,
12,
6494,
444,
13,
288,
3639,
2695,
273,
444,
31,
3639,
309,
261,
5414,
9455,
480,
446,
13,
5411,
3824,
9455,
18,
542,
6207,
12,
542,
1769,
3639,
309,
261,
2327,
1670,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20669,
12,
6494,
444,
13,
288,
3639,
2695,
273,
444,
31,
3639,
309,
261,
5414,
9455,
480,
446,
13,
5411,
3824,
9455,
18,
542,
6207,
12,
542,
1769,
3639,
309,
261,
2327,
1670,... |
ExecSQL("end"); | ExecSQL(null, "end"); | public void setAutoCommit(boolean autoCommit) throws SQLException { if (this.autoCommit == autoCommit) return; if (autoCommit) ExecSQL("end"); else ExecSQL("begin"); this.autoCommit = autoCommit; } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
21780,
5580,
12,
6494,
3656,
5580,
13,
1216,
6483,
225,
288,
565,
309,
261,
2211,
18,
6079,
5580,
422,
3656,
5580,
13,
1377,
327,
31,
565,
309,
261,
6079,
5580,
13,
1377,
388... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21780,
5580,
12,
6494,
3656,
5580,
13,
1216,
6483,
225,
288,
565,
309,
261,
2211,
18,
6079,
5580,
422,
3656,
5580,
13,
1377,
327,
31,
565,
309,
261,
6079,
5580,
13,
1377,
388... |
if (!s.equals("Foo::pang();Bar::pong();Foo::pong();FooBar::ping();")) throw new RuntimeException( "bad FooBar::used" ); | if (!s.equals("Foo::pang();Bar::pong();Foo::pong();director_protected_FooBar::ping();")) throw new RuntimeException( "bad director_protected_FooBar::used" ); | public static void main(String argv[]) { Bar b = new Bar(); Foo f = b.create(); FooBar fb = new FooBar(); FooBar2 fb2 = new FooBar2(); { String s = fb.used(); if (!s.equals("Foo::pang();Bar::pong();Foo::pong();FooBar::ping();")) throw new RuntimeException( "bad FooBar::used" ); } { String s = fb2.used(); if (!s.equals("FooBar2::pang();Bar::pong();Foo::pong();FooBar2::ping();")) throw new RuntimeException( "bad FooBar2::used" ); } { String s = b.pong(); if (!s.equals("Bar::pong();Foo::pong();Bar::ping();")) throw new RuntimeException( "bad Bar::pong" ); } { String s = f.pong(); if (!s.equals("Bar::pong();Foo::pong();Bar::ping();")) throw new RuntimeException(" bad Foo::pong" ); } { String s3 = fb.pong(); if (!s3.equals("Bar::pong();Foo::pong();FooBar::ping();")) throw new RuntimeException(" bad FooBar::pong" ); } try { Method method = b.getClass().getDeclaredMethod("ping", (java.lang.Class[])null); if ( !Modifier.isProtected(method.getModifiers()) ) throw new RuntimeException("Bar::ping should be protected" ); method = f.getClass().getDeclaredMethod("ping", (java.lang.Class[])null); if ( !Modifier.isProtected(method.getModifiers()) ) throw new RuntimeException("Foo::ping should be protected" ); } catch (NoSuchMethodException n) { throw new RuntimeException("NoSuchmethodException caught. Test failed."); } catch (SecurityException s) { throw new RuntimeException("SecurityException caught. Test failed."); } } | 47242 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47242/676f166752f4d6323f0b425c6ade22b8185bdaba/director_protected_runme.java/buggy/SWIG/Examples/test-suite/java/director_protected_runme.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
565,
16654,
324,
273,
394,
16654,
5621,
565,
23077,
284,
273,
324,
18,
2640,
5621,
565,
23077,
5190,
12754,
273,
394,
23077,
5190,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
288,
565,
16654,
324,
273,
394,
16654,
5621,
565,
23077,
284,
273,
324,
18,
2640,
5621,
565,
23077,
5190,
12754,
273,
394,
23077,
5190,
5621... |
}); | private int retrieveOffsetValue(Object[] arguments) { int result = -1; if(arguments.length > 1) { result = retrieveInt(ARGUMENT_OFFSET, arguments[1]); if(arguments.length > 2 && result == -1) { result = retrieveInt(ARGUMENT_OFFSET, arguments[2]); } } return result; } private int retrieveInt(String name, Object arg) { if(arg instanceof Integer) { return ((Integer)arg).intValue(); } else if(arg instanceof Map) { Object value = ((Map)arg).get(name); if(value instanceof Integer) { return ((Integer)value).intValue(); } } return -1; } }); | protected Object doInvokeInternal(final Class clazz, String methodName, final Object[] arguments) { if(arguments.length == 0) return getHibernateTemplate().loadAll(clazz); final Object arg = arguments[0] instanceof GString ? arguments[0].toString() :arguments[0]; // if the arg is an instance of the class find by example if(arg instanceof String) { final String query = (String)arg; if(!query.matches( "from "+clazz.getName()+".*" )) { throw new GrailsQueryException("Invalid query ["+query+"] for domain class ["+clazz+"]"); } return super.getHibernateTemplate().executeFind( new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { Query q = session.createQuery(query); Object[] queryArgs = null; int max = -1; if(arguments.length > 1) { if(arguments[1] instanceof List) { queryArgs = ((List)arguments[1]).toArray(); } else if(arguments[1].getClass().isArray()) { queryArgs = (Object[])arguments[1]; } } max = retrieveMaxValue(arguments); if(queryArgs != null) { for (int i = 0; i < queryArgs.length; i++) { if(queryArgs[0] instanceof GString) { q.setParameter(i,queryArgs[i].toString()); } else { q.setParameter(i, queryArgs[i]); } } } if(max > -1) { q.setMaxResults(max); } return q.list(); } private int retrieveMaxValue(Object[] arguments) { int max = -1; if(arguments.length > 1) { if(arguments[1] instanceof Integer) { max = ((Integer)arguments[1]).intValue(); } if(arguments.length > 2) { if(arguments[2] instanceof Integer) { max = ((Integer)arguments[2]).intValue(); } } } return max; } }); } if(clazz.isAssignableFrom( arg.getClass() )) { return super.getHibernateTemplate().executeFind( new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { Example example = Example.create(arg) .ignoreCase(); Criteria crit = session.createCriteria(clazz); crit.add(example); return crit.list(); } }); } throw new MissingMethodException(methodName,clazz,arguments); } | 54552 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54552/eb420a51890989f6ca7f281725a19ebec728f77c/FindAllPersistentMethod.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/metaclass/FindAllPersistentMethod.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
6385,
1033,
8526,
1775,
13,
288,
202,
202,
430,
12,
7099,
18,
2469,
422,
374,
13,
1082,
202,
2463,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
741,
10969,
3061,
12,
6385,
1659,
4003,
16,
514,
4918,
16,
1082,
202,
6385,
1033,
8526,
1775,
13,
288,
202,
202,
430,
12,
7099,
18,
2469,
422,
374,
13,
1082,
202,
2463,... |
public Icon getVisualRepresentation (Transferable t) | public Icon getVisualRepresentation(Transferable t) | public Icon getVisualRepresentation (Transferable t) { return visualRepresentation; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/TransferHandler.java/buggy/core/src/classpath/javax/javax/swing/TransferHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16011,
336,
25780,
13742,
12,
5912,
429,
268,
13,
225,
288,
565,
327,
11623,
13742,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
16011,
336,
25780,
13742,
12,
5912,
429,
268,
13,
225,
288,
565,
327,
11623,
13742,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
vPhaseReport.addElement(r); | addReport(r); | public void addL3Smoke(int x, int y) { IBoard board = game.getBoard(); Coords smokeCoords = new Coords(x, y); IHex smokeHex = game.getBoard().getHex(smokeCoords); boolean infernoBurning = board.isInfernoBurning( smokeCoords ); Report r; if (smokeHex == null) { return; } // Have to check if it's inferno smoke or from a heavy/hardened building - heavy smoke from those if (infernoBurning || Building.MEDIUM < smokeHex.terrainLevel(Terrains.BUILDING)) { if (smokeHex.terrainLevel(Terrains.SMOKE) == 2){ //heavy smoke fills hex r = new Report(5180, Report.PUBLIC); r.add(smokeCoords.getBoardNum()); vPhaseReport.addElement(r); } else { if (smokeHex.terrainLevel(Terrains.SMOKE) == 1){ //heavy smoke overrides light smokeHex.removeTerrain(Terrains.SMOKE); } smokeHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.SMOKE, 2)); sendChangedHex(smokeCoords); r = new Report(5185, Report.PUBLIC); r.add(smokeCoords.getBoardNum()); vPhaseReport.addElement(r); } } else { if (smokeHex.terrainLevel(Terrains.SMOKE) == 2){ //heavy smoke overpowers light r = new Report(5190, Report.PUBLIC); r.add(smokeCoords.getBoardNum()); vPhaseReport.addElement(r); } else if (smokeHex.terrainLevel(Terrains.SMOKE) == 1){ //light smoke continue to fill hex r = new Report(5195, Report.PUBLIC); r.add(smokeCoords.getBoardNum()); vPhaseReport.addElement(r); } else { smokeHex.addTerrain(Terrains.getTerrainFactory().createTerrain(Terrains.SMOKE, 1)); sendChangedHex(smokeCoords); //light smoke fills hex r = new Report(5200, Report.PUBLIC); r.add(smokeCoords.getBoardNum()); vPhaseReport.addElement(r); } } } | 4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/393a9905cc0201927e4535bd40befa92f4014c31/Server.java/buggy/megamek/src/megamek/server/Server.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
48,
23,
9552,
3056,
12,
474,
619,
16,
509,
677,
13,
288,
3639,
467,
22233,
11094,
273,
7920,
18,
588,
22233,
5621,
3639,
10320,
87,
3029,
3056,
13089,
273,
394,
10320,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
48,
23,
9552,
3056,
12,
474,
619,
16,
509,
677,
13,
288,
3639,
467,
22233,
11094,
273,
7920,
18,
588,
22233,
5621,
3639,
10320,
87,
3029,
3056,
13089,
273,
394,
10320,
8... |
(messages.getMessage("include.read", name, e.toString())); | (messages.getMessage("include.read", url.toString(), e.toString())); | public int doStartTag() throws JspException { // Validate the format of the "name" attribute // FIXME - deal with relative URIs like <jsp:include> does if (!name.startsWith("/")) { JspException e = new JspException (messages.getMessage("include.format", name)); pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw e; } // Identify our current session identifier (if any) String sessionId = null; HttpSession session = pageContext.getSession(); if (session != null) { try { sessionId = session.getId(); } catch (IllegalStateException e) { sessionId = null; } } // Calculate the URL of the requested page HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); StringBuffer url = new StringBuffer(); url.append(request.getScheme()); url.append("://"); url.append(request.getServerName()); if (request.getServerPort() != 80) { url.append(':'); url.append(request.getServerPort()); } if (request.getContextPath() != null) url.append(request.getContextPath()); int question = name.indexOf('?'); if (sessionId == null) { url.append(name); } else if (question < 0) { url.append(name); url.append(";jsessionid="); url.append(sessionId); } else { url.append(name.substring(0, question)); url.append(";jsessionid="); url.append(sessionId); url.append(name.substring(question)); } // Set up a URLConnection to read the requested page URLConnection conn = null; try { conn = (new URL(url.toString())).openConnection(); conn.setAllowUserInteraction(false); conn.setDoInput(true); conn.setDoOutput(false); conn.connect(); } catch (Exception e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("include.open", name, e.toString())); } // Copy the contents of this URL StringBuffer sb = new StringBuffer(); try { BufferedInputStream is = new BufferedInputStream(conn.getInputStream()); InputStreamReader in = new InputStreamReader(is); // FIXME - encoding char buffer[] = new char[BUFFER_SIZE]; int n = 0; while (true) { n = in.read(buffer); if (n < 1) break; sb.append(buffer, 0, n); } in.close(); } catch (Exception e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("include.read", name, e.toString())); } // Define the retrieved content as a page scope attribute pageContext.setAttribute(id, sb.toString()); // Skip any body of this tag return (SKIP_BODY); } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/356adcf20ce8ab0f6d162adfd629d46609305bdc/IncludeTag.java/clean/src/share/org/apache/struts/taglib/bean/IncludeTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
202,
759,
3554,
326,
740,
434,
326,
315,
529,
6,
1566,
202,
759,
9852,
300,
10490,
598,
3632,
24565,
3007,
411,
24926,
30,
6702,
34,
1552,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
202,
759,
3554,
326,
740,
434,
326,
315,
529,
6,
1566,
202,
759,
9852,
300,
10490,
598,
3632,
24565,
3007,
411,
24926,
30,
6702,
34,
1552,
... |
System.out.println("Connecting to Database URL = " + url); | public ImageViewer(Frame f,String url,String user,String password) throws ClassNotFoundException, FileNotFoundException, IOException, SQLException { frame = f; MenuBar mb = new MenuBar(); Menu m; MenuItem i; f.setMenuBar(mb); mb.add(m = new Menu("PostgreSQL")); m.add(i= new MenuItem("Initialise")); i.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.init(); } }); m.add(i= new MenuItem("Exit")); ActionListener exitListener = new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.close(); } }; m.addActionListener(exitListener); mb.add(m = new Menu("Image")); m.add(i= new MenuItem("Import")); ActionListener importListener = new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.importImage(); } }; i.addActionListener(importListener); m.add(i= new MenuItem("Remove")); ActionListener removeListener = new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.removeImage(); } }; i.addActionListener(removeListener); // To the north is a label used to display the current images name f.add("North",label = new Label()); // We have a panel to the south of the frame containing the controls Panel p = new Panel(); p.setLayout(new FlowLayout()); Button b; p.add(b=new Button("Refresh List")); b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ImageViewer.this.refreshList(); } }); p.add(b=new Button("Import new image")); b.addActionListener(importListener); p.add(b=new Button("Remove image")); b.addActionListener(removeListener); p.add(b=new Button("Quit")); b.addActionListener(exitListener); f.add("South",p); // And a panel to the west containing the list of available images f.add("West",list=new List()); list.addItemListener(this); // Finally the centre contains our image f.add("Center",canvas = new imageCanvas()); // Load the driver Class.forName("org.postgresql.Driver"); // Connect to database System.out.println("Connecting to Database URL = " + url); db = DriverManager.getConnection(url, user, password); // Create a statement stat = db.createStatement(); // Set the connection to use transactions db.setAutoCommit(false); // Also, get the LargeObjectManager for this connection lom = ((org.postgresql.Connection)db).getLargeObjectAPI(); // Now refresh the image selection list refreshList(); } | 45454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45454/02faee5eaa0ed93364446f5c186fa6904899dca6/ImageViewer.java/clean/src/interfaces/jdbc/example/ImageViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3421,
18415,
12,
3219,
284,
16,
780,
880,
16,
780,
729,
16,
780,
2201,
13,
1216,
10403,
16,
13707,
16,
1860,
16,
6483,
225,
288,
565,
2623,
273,
284,
31,
3639,
9809,
5190,
4903,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3421,
18415,
12,
3219,
284,
16,
780,
880,
16,
780,
729,
16,
780,
2201,
13,
1216,
10403,
16,
13707,
16,
1860,
16,
6483,
225,
288,
565,
2623,
273,
284,
31,
3639,
9809,
5190,
4903,
... | |
return EVAL_BODY_INCLUDE; | actionSubmitBean.setName(createActionURI()); if (!key.equals("")) { actionSubmitBean.setKey(key); Locale locale = pageContext.getRequest().getLocale(); ResourceBundle bundle = ResourceBundle.getBundle("Portlet", locale); String localizedText = bundle.getString(actionSubmitBean.getKey()); if (localizedText != null) { value = localizedText; } } if (!beanId.equals("")) { this.updateBaseComponentBean(actionSubmitBean); } else { this.setBaseComponentBean(actionSubmitBean); } actionSubmitBean.setAction(action); Object parentTag = getParent(); if (parentTag instanceof ContainerTag) { ContainerTag containerTag = (ContainerTag)parentTag; containerTag.addTagBean(actionSubmitBean); } else { try { JspWriter out = pageContext.getOut(); out.print(actionSubmitBean.toStartString()); } catch (Exception e) { throw new JspException(e.getMessage()); } } return SKIP_BODY; | public int doStartTag() throws JspException { actionSubmitBean = new ActionSubmitBean(); if (!beanId.equals("")) { actionSubmitBean = (ActionSubmitBean)pageContext.getAttribute(getBeanKey()); } if (actionSubmitBean == null) actionSubmitBean = new ActionSubmitBean(); paramBeans = new ArrayList(); return EVAL_BODY_INCLUDE; } | 49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/9863b89cfaff33fe3399474348972a14bc241035/ActionSubmitTag.java/clean/src/org/gridlab/gridsphere/tags/portletui/ActionSubmitTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
3639,
1301,
11620,
3381,
273,
394,
4382,
11620,
3381,
5621,
3639,
309,
16051,
14496,
548,
18,
14963,
2932,
6,
3719,
288,
5411,
1301,
11620,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
30512,
1435,
1216,
27485,
288,
3639,
1301,
11620,
3381,
273,
394,
4382,
11620,
3381,
5621,
3639,
309,
16051,
14496,
548,
18,
14963,
2932,
6,
3719,
288,
5411,
1301,
11620,
33... |
String textKey = getStringProperty( TextItem.CONTENT_RESOURCE_KEY_PROP ); ; if ( !StringUtil.isBlank( textKey ) ) { String localizedText = getModule( ).getMessage( textKey ); if ( !StringUtil.isBlank( localizedText ) ) return localizedText; } return getStringProperty( TextItem.CONTENT_PROP ); | return super.getExternalizedValue( TextItem.CONTENT_RESOURCE_KEY_PROP, TextItem.CONTENT_PROP ); | public String getDisplayContent( ) { String textKey = getStringProperty( TextItem.CONTENT_RESOURCE_KEY_PROP ); ; if ( !StringUtil.isBlank( textKey ) ) { // find in report. String localizedText = getModule( ).getMessage( textKey ); if ( !StringUtil.isBlank( localizedText ) ) return localizedText; } // use static text. return getStringProperty( TextItem.CONTENT_PROP ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b45a98d2253ce24a4775f9b31afb59c7b25a2048/TextItemHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/TextItemHandle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
13854,
1350,
12,
262,
202,
95,
202,
202,
780,
977,
653,
273,
4997,
1396,
12,
3867,
1180,
18,
9689,
67,
11395,
67,
3297,
67,
15811,
11272,
202,
202,
31,
202,
202,
430,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
13854,
1350,
12,
262,
202,
95,
202,
202,
780,
977,
653,
273,
4997,
1396,
12,
3867,
1180,
18,
9689,
67,
11395,
67,
3297,
67,
15811,
11272,
202,
202,
31,
202,
202,
430,
2... |
case VALIDATE_XPATH : | case VALIDATE_XPATH: | protected void processXmla(File file, int validateXmlaResponce) throws Exception { byte[] bytes = XmlaSupport.processXmla(file, getConnectString()); String response = new String(bytes); System.out.println(response); switch (validateXmlaResponce) { case VALIDATE_NONE : break; case VALIDATE_TRANSFORM : XmlaSupport.validateSchemaXmla(bytes); System.out.println("XML Data is Valid"); break; case VALIDATE_XPATH : XmlaSupport.validateXmlaUsingXpath(bytes); System.out.println("XML Data is Valid"); break; } } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/c3f6363095dc52f521dd8666c0cfc494bedffffd/CmdRunner.java/buggy/src/main/mondrian/tui/CmdRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
4432,
69,
12,
812,
585,
16,
509,
1954,
4432,
69,
607,
500,
311,
13,
2398,
1216,
1185,
288,
3639,
1160,
8526,
1731,
273,
5714,
69,
6289,
18,
2567,
4432,
69,
12,
768,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
4432,
69,
12,
812,
585,
16,
509,
1954,
4432,
69,
607,
500,
311,
13,
2398,
1216,
1185,
288,
3639,
1160,
8526,
1731,
273,
5714,
69,
6289,
18,
2567,
4432,
69,
12,
768,
1... |
createSpaceInCode(false); | createSpaceInCode(mySettings.SPACE_WITHIN_FOR_PARENTHESES); | public void visitForStatement(PsiForStatement statement) { if (myRole2 == ChildRole.LPARENTH) { createSpaceInCode(mySettings.SPACE_BEFORE_FOR_PARENTHESES); } else if (myRole1 == ChildRole.LPARENTH) { ASTNode rparenth = findFrom(myChild2, ElementType.RPARENTH, true); if (rparenth == null) { createSpaceInCode(false); } else { createParenSpace(mySettings.FOR_STATEMENT_LPAREN_ON_NEXT_LINE, false, new TextRange(myChild1.getTextRange().getStartOffset(), rparenth.getTextRange().getEndOffset())); } } else if (myRole2 == ChildRole.RPARENTH) { ASTNode lparenth = findFrom(myChild2, ElementType.LPARENTH, false); if (lparenth == null) { createSpaceInCode(mySettings.SPACE_WITHIN_FOR_PARENTHESES); } else { createParenSpace(mySettings.FOR_STATEMENT_RPAREN_ON_NEXT_LINE, mySettings.SPACE_WITHIN_FOR_PARENTHESES, new TextRange(lparenth.getTextRange().getStartOffset(), myChild2.getTextRange().getEndOffset())); } } else if (myRole1 == ChildRole.FOR_INITIALIZATION) { createSpaceInCode(mySettings.SPACE_AFTER_SEMICOLON); } else if (myRole1 == ChildRole.CONDITION) { createSpaceInCode(mySettings.SPACE_BEFORE_SEMICOLON); } else if (myRole1 == ChildRole.FOR_SEMICOLON) { createSpaceInCode(mySettings.SPACE_AFTER_SEMICOLON); } else if (myRole2 == ChildRole.LOOP_BODY) { if (myChild2.getElementType() == ElementType.BLOCK_STATEMENT) { myResult = getSpaceBeforeLBrace(mySettings.SPACE_BEFORE_FOR_LBRACE, mySettings.BRACE_STYLE); } else if (mySettings.KEEP_SIMPLE_BLOCKS_IN_ONE_LINE) { myResult = Formatter.getInstance().createDependentLFProperty(1, 1, myParent.getTextRange(), false, mySettings.KEEP_BLANK_LINES_IN_CODE); } else { myResult = Formatter.getInstance().createSpaceProperty(0 ,0, 1, false, mySettings.KEEP_BLANK_LINES_IN_CODE); } } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/54b6205d15a150bd0abe7082a4fcc1900c6dd863/JavaSpacePropertyProcessor.java/clean/source/com/intellij/psi/formatter/newXmlFormatter/java/JavaSpacePropertyProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3757,
1290,
3406,
12,
52,
7722,
1290,
3406,
3021,
13,
288,
565,
309,
261,
4811,
2996,
22,
422,
7451,
2996,
18,
48,
14943,
44,
13,
288,
1377,
752,
3819,
382,
1085,
12,
4811,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
1290,
3406,
12,
52,
7722,
1290,
3406,
3021,
13,
288,
565,
309,
261,
4811,
2996,
22,
422,
7451,
2996,
18,
48,
14943,
44,
13,
288,
1377,
752,
3819,
382,
1085,
12,
4811,
... |
public ClassLoader getSystemClassLoader() { | ClassLoader getSystemClassLoader() { | public ClassLoader getSystemClassLoader() { return null; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/ece2785811888611fd2661ac554bf6ba880d46ea/SecuritySupport.java/clean/src/org/apache/xpath/functions/SecuritySupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
9403,
12996,
7805,
1435,
288,
3639,
327,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
9403,
12996,
7805,
1435,
288,
3639,
327,
446,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
childPath = path.substring(nextSlash + 1); | childPath = path.substring(nextSlash+1); | private Preferences getNode(String path) { // if mark is dom then goto end // Empty String "" indicates this node if (path.length() == 0) return this; // Calculate child name and rest of path String childName; String childPath; int nextSlash = path.indexOf('/'); if (nextSlash == -1) { childName = path; childPath = ""; } else { childName = path.substring(0, nextSlash); childPath = path.substring(nextSlash + 1); } // Get the child node AbstractPreferences child; child = (AbstractPreferences) childCache.get(childName); if (child == null) { if (childName.length() > MAX_NAME_LENGTH) throw new IllegalArgumentException(childName); // Not in childCache yet so create a new sub node child = childSpi(childName); // XXX - check if node is new childCache.put(childName, child); } // Lock the child and go down synchronized (child.lock) { return child.getNode(childPath); } } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/71bd4a234ff464b217036c28c910b8210f375bad/AbstractPreferences.java/buggy/core/src/classpath/java/java/util/prefs/AbstractPreferences.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
28310,
5973,
12,
780,
589,
13,
288,
202,
202,
759,
309,
2267,
353,
4092,
1508,
2897,
679,
202,
202,
759,
8953,
514,
1408,
8527,
333,
756,
202,
202,
430,
261,
803,
18,
2469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28310,
5973,
12,
780,
589,
13,
288,
202,
202,
759,
309,
2267,
353,
4092,
1508,
2897,
679,
202,
202,
759,
8953,
514,
1408,
8527,
333,
756,
202,
202,
430,
261,
803,
18,
2469,
... |
public void setModTime(long time) { | public void setModTime( long time ) { | public void setModTime(long time) { this.modTime = time / MILLIS_PER_SECOND; } | 10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/TarEntry.java/buggy/src/main/java/org/codehaus/plexus/archiver/tar/TarEntry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
1739,
950,
12,
1525,
813,
262,
288,
3639,
333,
18,
1711,
950,
273,
813,
342,
13570,
55,
67,
3194,
67,
16328,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
1739,
950,
12,
1525,
813,
262,
288,
3639,
333,
18,
1711,
950,
273,
813,
342,
13570,
55,
67,
3194,
67,
16328,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
greatGrandKidName = greatGrandKid.getLocalName(); | private void renameRedefiningComponents(XSDocumentInfo currSchema, Element child, String componentType, String oldName, String newName) { if (componentType.equals(SchemaSymbols.ELT_SIMPLETYPE)) { Element grandKid = DOMUtil.getFirstChildElement(child); if (grandKid == null) { reportSchemaError("src-redefine.5.a.a", null, child); } else { String grandKidName = grandKid.getLocalName(); if (grandKidName.equals(SchemaSymbols.ELT_ANNOTATION)) { grandKid = DOMUtil.getNextSiblingElement(grandKid); grandKidName = grandKid.getLocalName(); } if (grandKid == null) { reportSchemaError("src-redefine.5.a.a", null, child); } else if (!grandKidName.equals(SchemaSymbols.ELT_RESTRICTION)) { reportSchemaError("src-redefine.5.a.b", new Object[]{grandKidName}, child); } else { Object[] attrs = fAttributeChecker.checkAttributes(grandKid, false, currSchema); QName derivedBase = (QName)attrs[XSAttributeChecker.ATTIDX_BASE]; if (derivedBase == null || derivedBase.uri != currSchema.fTargetNamespace || !derivedBase.localpart.equals(oldName)) { reportSchemaError("src-redefine.5.a.c", new Object[]{grandKidName, (currSchema.fTargetNamespace==null?"":currSchema.fTargetNamespace) + "," + oldName}, child); } else { // now we have to do the renaming... if (derivedBase.prefix != null && derivedBase.prefix.length() > 0) grandKid.setAttribute( SchemaSymbols.ATT_BASE, derivedBase.prefix + ":" + newName ); else grandKid.setAttribute( SchemaSymbols.ATT_BASE, newName );// return true; } fAttributeChecker.returnAttrArray(attrs, currSchema); } } } else if (componentType.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { Element grandKid = DOMUtil.getFirstChildElement(child); if (grandKid == null) { reportSchemaError("src-redefine.5.b.a", null, child); } else { if (grandKid.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { grandKid = DOMUtil.getNextSiblingElement(grandKid); } if (grandKid == null) { reportSchemaError("src-redefine.5.b.a", null, child); } else { // have to go one more level down; let another pass worry whether complexType is valid. Element greatGrandKid = DOMUtil.getFirstChildElement(grandKid); if (greatGrandKid == null) { reportSchemaError("src-redefine.5.b.b", null, grandKid); } else { String greatGrandKidName = greatGrandKid.getLocalName(); if (greatGrandKidName.equals(SchemaSymbols.ELT_ANNOTATION)) { greatGrandKid = DOMUtil.getNextSiblingElement(greatGrandKid); greatGrandKidName = greatGrandKid.getLocalName(); } if (greatGrandKid == null) { reportSchemaError("src-redefine.5.b.b", null, grandKid); } else if (!greatGrandKidName.equals(SchemaSymbols.ELT_RESTRICTION) && !greatGrandKidName.equals(SchemaSymbols.ELT_EXTENSION)) { reportSchemaError("src-redefine.5.b.c", new Object[]{greatGrandKidName}, greatGrandKid); } else { Object[] attrs = fAttributeChecker.checkAttributes(greatGrandKid, false, currSchema); QName derivedBase = (QName)attrs[XSAttributeChecker.ATTIDX_BASE]; if (derivedBase == null || derivedBase.uri != currSchema.fTargetNamespace || !derivedBase.localpart.equals(oldName)) { reportSchemaError("src-redefine.5.b.d", new Object[]{greatGrandKidName, (currSchema.fTargetNamespace==null?"":currSchema.fTargetNamespace) + "," + oldName}, greatGrandKid); } else { // now we have to do the renaming... if (derivedBase.prefix != null && derivedBase.prefix.length() > 0) greatGrandKid.setAttribute( SchemaSymbols.ATT_BASE, derivedBase.prefix + ":" + newName ); else greatGrandKid.setAttribute( SchemaSymbols.ATT_BASE, newName );// return true; } } } } } } else if (componentType.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { String processedBaseName = (currSchema.fTargetNamespace == null)? ","+oldName:currSchema.fTargetNamespace+","+oldName; int attGroupRefsCount = changeRedefineGroup(processedBaseName, componentType, newName, child, currSchema); if (attGroupRefsCount > 1) { reportSchemaError("src-redefine.7.1", new Object []{new Integer(attGroupRefsCount)}, child); } else if (attGroupRefsCount == 1) {// return true; } else if (currSchema.fTargetNamespace == null) fRedefinedRestrictedAttributeGroupRegistry.put(processedBaseName, ","+newName); else fRedefinedRestrictedAttributeGroupRegistry.put(processedBaseName, currSchema.fTargetNamespace+","+newName); } else if (componentType.equals(SchemaSymbols.ELT_GROUP)) { String processedBaseName = (currSchema.fTargetNamespace == null)? ","+oldName:currSchema.fTargetNamespace+","+oldName; int groupRefsCount = changeRedefineGroup(processedBaseName, componentType, newName, child, currSchema); if (groupRefsCount > 1) { reportSchemaError("src-redefine.6.1.1", new Object []{new Integer(groupRefsCount)}, child); } else if (groupRefsCount == 1) {// return true; } else { if (currSchema.fTargetNamespace == null) fRedefinedRestrictedGroupRegistry.put(processedBaseName, ","+newName); else fRedefinedRestrictedGroupRegistry.put(processedBaseName, currSchema.fTargetNamespace+","+newName); } } else { reportSchemaError("Internal-Error", new Object [] {"could not handle this particular <redefine>; please submit your schemas and instance document in a bug report!"}, child); } // if we get here then we must have reported an error and failed somewhere...// return false; } // renameRedefiningComponents(XSDocumentInfo, Element, String, String, String):void | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/cc18e659b4da8c57345a55e0e28b1d95a4ae3d9a/XSDHandler.java/buggy/src/org/apache/xerces/impl/xs/traversers/XSDHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6472,
426,
5649,
310,
7171,
12,
60,
55,
2519,
966,
4306,
3078,
16,
4766,
5411,
3010,
1151,
16,
514,
20065,
16,
4766,
5411,
514,
22916,
16,
514,
13253,
13,
288,
3639,
309,
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,
3238,
918,
6472,
426,
5649,
310,
7171,
12,
60,
55,
2519,
966,
4306,
3078,
16,
4766,
5411,
3010,
1151,
16,
514,
20065,
16,
4766,
5411,
514,
22916,
16,
514,
13253,
13,
288,
3639,
309,
261... | |
Assert.assertEquals("WA", member.getName()); | Assert.assertEquals("WA", member.getName()); | public void testClosingPeriodMember(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([USA])"); Assert.assertEquals("WA", member.getName()); } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/3d57e0d95581f154be9f8c4d0e69c51f642272b8/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1842,
15745,
5027,
4419,
12,
42,
4773,
49,
485,
4709,
2449,
1842,
13,
288,
9506,
202,
4419,
3140,
273,
1842,
18,
8837,
6558,
12,
25083,
202,
6,
15745,
5027,
3816,
3378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1842,
15745,
5027,
4419,
12,
42,
4773,
49,
485,
4709,
2449,
1842,
13,
288,
9506,
202,
4419,
3140,
273,
1842,
18,
8837,
6558,
12,
25083,
202,
6,
15745,
5027,
3816,
3378,
... |
message = MSG_UNKNOWN_HOST + message; } else if ( getCause( ) instanceof FileNotFoundException ) { message = MSG_FILE_NOT_FOUND + message; } else if ( getCause( ) instanceof OutOfMemoryError ) { message = MSG_OUT_OF_MEMORY; } if ( StringUtil.isBlank( message ) ) { message = MessageFormat.format( MSG_CAUSED_BY, new String[]{ getCause( ).getClass( ).getName( ) } ); | message = getCause( ).getLocalizedMessage( ); if ( getCause( ) instanceof UnknownHostException ) { message = MSG_UNKNOWN_HOST + message; } else if ( getCause( ) instanceof FileNotFoundException ) { message = MSG_FILE_NOT_FOUND + message; } else if ( getCause( ) instanceof OutOfMemoryError ) { message = MSG_OUT_OF_MEMORY; } if ( StringUtil.isBlank( message ) ) { message = MessageFormat.format( MSG_CAUSED_BY, new String[]{ getCause( ).getClass( ).getName( ) } ); } | public String getMessage( ) { String message = getCause( ).getLocalizedMessage( ); if ( getCause( ) instanceof UnknownHostException ) { message = MSG_UNKNOWN_HOST + message; } else if ( getCause( ) instanceof FileNotFoundException ) { message = MSG_FILE_NOT_FOUND + message; } else if ( getCause( ) instanceof OutOfMemoryError ) { message = MSG_OUT_OF_MEMORY; } if ( StringUtil.isBlank( message ) ) { message = MessageFormat.format( MSG_CAUSED_BY, new String[]{ getCause( ).getClass( ).getName( ) } ); } return message; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b06fe9f8052c23c08e25abe6dc916cac04c42a5f/GUIException.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/runtime/GUIException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2381,
12,
262,
202,
95,
202,
202,
780,
883,
273,
12932,
12,
262,
18,
588,
2042,
1235,
1079,
12,
11272,
202,
202,
430,
261,
12932,
12,
262,
1276,
30592,
262,
202,
202,
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,
225,
202,
482,
514,
2381,
12,
262,
202,
95,
202,
202,
780,
883,
273,
12932,
12,
262,
18,
588,
2042,
1235,
1079,
12,
11272,
202,
202,
430,
261,
12932,
12,
262,
1276,
30592,
262,
202,
202,
9... |
public TagHandler processObjectValue(Object value) throws JspException { if( value instanceof AttributeDefinition ) { return processTypedAttribute((AttributeDefinition)value); } else if( value instanceof ComponentDefinition ) return processDefinition( (ComponentDefinition)value ); | public TagHandler processObjectValue(Object value) throws JspException { if (value instanceof AttributeDefinition) { return processTypedAttribute((AttributeDefinition) value); } else if (value instanceof ComponentDefinition) return processDefinition((ComponentDefinition) value); | public TagHandler processObjectValue(Object value) throws JspException { // First, check if value is one of the Typed Attribute if( value instanceof AttributeDefinition ) { // We have a type => return appropriate IncludeType return processTypedAttribute((AttributeDefinition)value); } else if( value instanceof ComponentDefinition ) return processDefinition( (ComponentDefinition)value ); // Value must denote a valid String return processAsDefinitionOrURL( value.toString() ); } | 54704 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54704/26a2005160d3de38b572957d78e83d591d8b6912/InsertTag.java/clean/src/share/org/apache/struts/taglib/tiles/InsertTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
4034,
1503,
1207,
921,
620,
12,
921,
460,
13,
1377,
1216,
27485,
202,
202,
95,
1377,
368,
5783,
16,
866,
309,
460,
353,
1245,
434,
326,
13833,
3601,
565,
309,
12,
460,
1276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
482,
4034,
1503,
1207,
921,
620,
12,
921,
460,
13,
1377,
1216,
27485,
202,
202,
95,
1377,
368,
5783,
16,
866,
309,
460,
353,
1245,
434,
326,
13833,
3601,
565,
309,
12,
460,
1276,
... |
param.setValue(sd7); | param.setValue(sd7, d); | private int readIntParams(C3DIntParameter param, int[] d, int offset) { switch(d.length) { case 0: // A string with 0 dimensions is just a single character int sd0 = reader.readShort(offset); offset += 2; param.setValue(sd0); break; case 1: int[] sd1 = new int[d[0]]; for(int i = 0; i < d[0]; i++) sd1[i] = reader.readShort(offset + 2 * i); offset += d[0] * 2; param.setValue(sd1); break; case 2: int[][] sd2 = new int[d[1]][d[0]]; for(int i = 0; i < d[1]; i++) for(int j = 0; j < d[0]; j++) sd2[i][j] = reader.readShort(offset + 2 * i * j); offset += d[0] * d[1] * 2; param.setValue(sd2); break; case 3: int[][][] sd3 = new int[d[2]][d[1]][d[0]]; for(int i = 0; i < d[2]; i++) for(int j = 0; j < d[1]; j++) for(int k = 0; k < d[0]; k++) sd3[i][j][k] = reader.readShort(offset + 2 * i * j * k); offset += d[0] * d[1] * d[2] * 2; param.setValue(sd3); break; case 4: int[][][][] sd4 = new int[d[3]][d[2]][d[1]][d[0]]; for(int i = 0; i < d[3]; i++) for(int j = 0; j < d[2]; j++) for(int k = 0; k < d[1]; k++) for(int l = 0; l < d[0]; l++) sd4[i][j][k][l] = reader.readShort(offset + 2 * i * j * k * l); offset += d[0] * d[1] * d[2] * d[3] * 2; param.setValue(sd4); break; case 5: int[][][][][] sd5 = new int[d[4]][d[3]][d[2]][d[1]][d[0]]; for(int i = 0; i < d[4]; i++) for(int j = 0; j < d[3]; j++) for(int k = 0; k < d[2]; k++) for(int l = 0; l < d[1]; l++) for(int m = 0; m < d[0]; m++) sd5[i][j][k][l][m] = reader.readShort(offset + 2 * i * j * k * l * m); offset += d[0] * d[1] * d[2] * d[3] * d[4] * 2; param.setValue(sd5); break; case 6: int[][][][][][] sd6 = new int[d[5]][d[4]][d[3]][d[2]][d[1]][d[0]]; for(int i = 0; i < d[5]; i++) for(int j = 0; j < d[4]; j++) for(int k = 0; k < d[3]; k++) for(int l = 0; l < d[2]; l++) for(int m = 0; m < d[1]; m++) for(int n = 0; n < d[0]; n++) sd6[i][j][k][l][m][n] = reader.readShort(offset + 2 * i * j * k * l * m * n); offset += d[0] * d[1] * d[2] * d[3] * d[4] * d[5] * 2; param.setValue(sd6); break; case 7: int[][][][][][][] sd7 = new int[d[6]][d[5]][d[4]][d[3]][d[2]][d[1]][d[0]]; for(int i = 0; i < d[6]; i++) for(int j = 0; j < d[5]; j++) for(int k = 0; k < d[4]; k++) for(int l = 0; l < d[3]; l++) for(int m = 0; m < d[2]; m++) for(int n = 0; n < d[1]; n++) for(int p = 0; p < d[0]; p++) sd7[i][j][k][l][m][n][p] = reader.readShort(offset + 2 * i * j * k * l * m * n * p); offset += d[0] * d[1] * d[2] * d[3] * d[4] * d[5] * d[6] * 2; param.setValue(sd7); break; } return offset; } | 46075 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46075/aa094d461f17a1b041bf9d0c5744084b778f622c/C3DParser.java/buggy/src/java/org/j3d/loaders/c3d/C3DParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
13731,
1370,
12,
39,
23,
40,
1702,
1662,
579,
16,
509,
8526,
302,
16,
509,
1384,
13,
565,
288,
3639,
1620,
12,
72,
18,
2469,
13,
3639,
288,
5411,
648,
374,
30,
7734,
368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
13731,
1370,
12,
39,
23,
40,
1702,
1662,
579,
16,
509,
8526,
302,
16,
509,
1384,
13,
565,
288,
3639,
1620,
12,
72,
18,
2469,
13,
3639,
288,
5411,
648,
374,
30,
7734,
368,
... |
DocumentImpl doc = null; | public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathException { Sequence arg = getArgument(0).eval(contextSequence, contextItem); if(arg.getLength() == 0) return Sequence.EMPTY_SEQUENCE; String path = arg.itemAt(0).getStringValue(); if (path.length() == 0) throw new XPathException("Invalid argument to fn:doc function: empty string is not allowed here."); if (path.charAt(0) != '/') path = context.getBaseURI() + '/' + path; Lock dlock = null; if(path.equals(cachedPath) && cachedNode != null) { dlock = cachedNode.getDocument().getUpdateLock(); try { // wait for pending updates dlock.acquire(Lock.READ_LOCK); return cachedNode; } catch (LockException e) { throw new XPathException(getASTNode(), "Failed to acquire lock on document " + path); } finally { dlock.release(Lock.READ_LOCK); } } try { DocumentImpl doc = (DocumentImpl) context.getBroker().getDocument(path); if(doc == null) return Sequence.EMPTY_SEQUENCE; if(!doc.getPermissions().validate(context.getUser(), Permission.READ)) throw new XPathException(getASTNode(), "Insufficient privileges to read resource " + path); // wait for currently pending updates dlock = doc.getUpdateLock(); dlock.acquire(Lock.READ_LOCK); cachedPath = path; cachedNode = new NodeProxy(doc, -1, Node.DOCUMENT_NODE); return cachedNode; } catch (PermissionDeniedException e) { throw new XPathException( "Permission denied: unable to load document " + path); } catch (LockException e) { throw new XPathException(getASTNode(), "Failed to acquire read lock on document " + path); } finally { if(dlock != null) dlock.release(Lock.READ_LOCK); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/82334808af49cb6fbd738d4e24528b9d48573eb5/FunDoc.java/clean/src/org/exist/xquery/functions/FunDoc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4319,
2828,
997,
273,
446,
31,
8370,
4319,
2828,
997,
273,
446,
31,
5302,
12,
4021,
4319,
2828,
997,
273,
446,
31,
819,
4021,
16,
4319,
2828,
997,
273,
446,
31,
4342,
4319,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4319,
2828,
997,
273,
446,
31,
8370,
4319,
2828,
997,
273,
446,
31,
5302,
12,
4021,
4319,
2828,
997,
273,
446,
31,
819,
4021,
16,
4319,
2828,
997,
273,
446,
31,
4342,
4319,
... | |
read = read(); | if (count < length) { read = read(); } | public int readLine(byte[] b, int offset, int length) throws IOException { int count = 0; int read = read(); if (read == -1) { return -1; } while ((read != -1) && (count < length)) { if (read == '\n') break; b[offset] = (byte) read; count++; offset++; read = read(); } return count; } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/c0776b9c84dfa396ad17b38fd613c281e5ce01b0/BufferedMultipartInputStream.java/clean/src/share/org/apache/struts/upload/BufferedMultipartInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
12273,
12,
7229,
8526,
324,
16,
509,
1384,
16,
509,
769,
13,
1216,
1860,
288,
7734,
509,
1056,
273,
374,
31,
3639,
509,
282,
309,
261,
1883,
411,
769,
13,
288,
855,
273,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
12273,
12,
7229,
8526,
324,
16,
509,
1384,
16,
509,
769,
13,
1216,
1860,
288,
7734,
509,
1056,
273,
374,
31,
3639,
509,
282,
309,
261,
1883,
411,
769,
13,
288,
855,
273,
85... |
&& CmsFlexController.isNotModifiedSince(f_req, controller.getDateLastModified())) { CmsFlexController.setDateExpiresHeader(res, controller.getDateExpires()); | && CmsFlexController.isNotModifiedSince(f_req, controller.getDateLastModified())) { if (f_req.getParameterMap().size() == 0) { CmsFlexController.setDateExpiresHeader(res, controller.getDateExpires()); } | private byte[] dispatchJsp(CmsFlexController controller) throws ServletException, IOException { // get request / response wrappers CmsFlexRequest f_req = controller.getCurrentRequest(); CmsFlexResponse f_res = controller.getCurrentResponse(); try { f_req.getRequestDispatcher(controller.getCmsObject().readAbsolutePath(controller.getCmsResource())) .include(f_req, f_res); } catch (SocketException e) { // uncritical, might happen if client (browser) does not wait until end of page delivery OpenCms.getLog(this).debug("Ignoring SocketException" + e); } byte[] result = null; HttpServletResponse res = controller.getTopResponse(); if (!controller.isStreaming() && !f_res.isSuspended()) { try { // if a JSP errorpage was triggered the response will be already committed here if (!res.isCommitted() || m_errorPagesAreNotCommited) { // check if the content was modified since the last request if (controller.isTop() && CmsFlexController.isNotModifiedSince(f_req, controller.getDateLastModified())) { CmsFlexController.setDateExpiresHeader(res, controller.getDateExpires()); res.setStatus(HttpServletResponse.SC_NOT_MODIFIED); return null; } // get the result byte array result = f_res.getWriterBytes(); if (controller.getTopRequest().getHeader(I_CmsConstants.C_HEADER_OPENCMS_EXPORT) != null) { // this is an export request, don't write to the response stream controller.getTopRequest().setAttribute( I_CmsConstants.C_HEADER_OPENCMS_EXPORT, new Long(controller.getDateLastModified())); } else if (controller.isTop()) { // process headers and write output if this is the "top" request/response res.setContentLength(result.length); // set date last modified header CmsFlexController.setDateLastModifiedHeader(res, controller.getDateLastModified()); CmsFlexController.setDateExpiresHeader(res, controller.getDateExpires()); CmsFlexResponse.processHeaders(f_res.getHeaders(), res); res.getOutputStream().write(result); res.getOutputStream().flush(); } } } catch (IllegalStateException e) { // uncritical, might happen if JSP error page was used OpenCms.getLog(this).debug("Ignoring IllegalStateException" + e); } catch (SocketException e) { // uncritical, might happen if client (browser) does not wait until end of page delivery OpenCms.getLog(this).debug("Ignoring SocketException", e); } } return result; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/f763862bd99446199b428469bc93d10136c32226/CmsJspLoader.java/clean/src/org/opencms/loader/CmsJspLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1160,
8526,
3435,
21796,
12,
4747,
19667,
2933,
2596,
13,
1216,
16517,
16,
1860,
288,
3639,
368,
336,
590,
342,
766,
21589,
3639,
2149,
19667,
691,
284,
67,
3658,
273,
2596,
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,
377,
3238,
1160,
8526,
3435,
21796,
12,
4747,
19667,
2933,
2596,
13,
1216,
16517,
16,
1860,
288,
3639,
368,
336,
590,
342,
766,
21589,
3639,
2149,
19667,
691,
284,
67,
3658,
273,
2596,
18,
588... |
conn.commit(); | conn.commit(); | private void commentList(Integer userId) { ResultSet rs = null; String date, comment; int authorId; try { conn.setAutoCommit(false); // faster if made inside a Tx // Try to find the comment corresponding to the user try { stmt = conn.prepareStatement("SELECT * FROM comments WHERE to_user_id=?"); stmt.setInt(1, userId.intValue()); rs = stmt.executeQuery(); } catch (Exception e) { sp.printHTML("Failed to execute Query for list of comments: " + e); closeConnection(); return; } if (!rs.first()) { sp.printHTML("<h3>There is no comment yet for this user.</h3><br>"); return; } else sp.printHTML("<br><hr><br><h3>Comments for this user</h3><br>"); sp.printCommentHeader(); // Display each comment and the name of its author do { comment = rs.getString("comment"); date = rs.getString("date"); authorId = rs.getInt("from_user_id"); String authorName = "none"; ResultSet authorRS = null; try { stmt = conn.prepareStatement("SELECT nickname FROM users WHERE id=?"); stmt.setInt(1, authorId); authorRS = stmt.executeQuery(); if (authorRS.first()) authorName = authorRS.getString("nickname"); } catch (Exception e) { sp.printHTML("Failed to execute Query for the comment author: " + e); closeConnection(); return; } sp.printComment(authorName, authorId, date, comment); } while (rs.next()); sp.printCommentFooter(); conn.commit(); } catch (Exception e) { sp.printHTML("Exception getting comment list: " + e + "<br>"); try { conn.rollback(); } catch (Exception se) { sp.printHTML("Transaction rollback failed: " + e + "<br>"); } closeConnection(); } } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/d48a75a39f89d17aea7e3f2fc2dbce50b1ce6950/ViewUserInfo.java/buggy/Servlets/edu/rice/rubis/servlets/ViewUserInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2879,
682,
12,
4522,
6249,
13,
225,
288,
565,
10842,
3597,
273,
446,
31,
565,
514,
1509,
16,
2879,
31,
565,
509,
2869,
548,
31,
565,
775,
565,
288,
1377,
1487,
18,
542,
496... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2879,
682,
12,
4522,
6249,
13,
225,
288,
565,
10842,
3597,
273,
446,
31,
565,
514,
1509,
16,
2879,
31,
565,
509,
2869,
548,
31,
565,
775,
565,
288,
1377,
1487,
18,
542,
496... |
public void print(PrintWriter _ps) { try { // only generate class files for explicitly // defined sequence types, i.e. for typedef'd ones if ((!written) && typedefd) { // write holder file String fullName = full_name(); String className; if (fullName.indexOf('.') > 0) { pack_name = fullName.substring(0, fullName.lastIndexOf('.')); className = fullName.substring(fullName.lastIndexOf('.') + 1); } else { pack_name = ""; className = fullName; } String path = parser.out_dir + fileSeparator + pack_name.replace('.', fileSeparator); File dir = new File(path); if (!dir.exists()) { if (!dir.mkdirs()) { org.jacorb.idl.parser.fatal_error("Unable to create " + path, null); } } String fname = className + "Holder.java"; File f = new File(dir, fname); if (GlobalInputStream.isMoreRecentThan(f)) { // print the mapped java class PrintWriter ps = new PrintWriter(new java.io.FileWriter(f)); printHolderClass(className, ps); ps.close(); } fname = className + "Helper.java"; f = new File(dir, fname); if (GlobalInputStream.isMoreRecentThan(f)) { // print the mapped java class PrintWriter ps = new PrintWriter(new java.io.FileWriter(f)); printHelperClass(className, ps); ps.close(); } written = true; } } catch (java.io.IOException i) { throw new RuntimeException("File IO error" + i); } } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/1fa4fca3642e870636f7373973e37568c93c654b/SequenceType.java/clean/src/org/jacorb/idl/SequenceType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
1188,
12,
5108,
2289,
67,
1121,
15329,
698,
95,
759,
3700,
7163,
1106,
2354,
1405,
92,
3561,
715,
759,
2178,
307,
372,
1331,
15180,
16,
77,
18,
73,
18,
18850,
388,
536,
14271,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
1188,
12,
5108,
2289,
67,
1121,
15329,
698,
95,
759,
3700,
7163,
1106,
2354,
1405,
92,
3561,
715,
759,
2178,
307,
372,
1331,
15180,
16,
77,
18,
73,
18,
18850,
388,
536,
14271,
53... | ||
final DefaultActionGroup executeOnGroup = new DefaultActionGroup(AntBundle.message("ant.explorer.execute.on.action.group.name"), true); | final DefaultActionGroup executeOnGroup = new DefaultActionGroup(AntBundle.message("ant.explorer.execute.on.action.group.name"), true); | private void popupInvoked(final Component comp, final int x, final int y) { Object userObject = null; final TreePath path = myTree.getSelectionPath(); if (path != null) { final DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent(); if (node != null) { userObject = node.getUserObject(); } } final DefaultActionGroup group = new DefaultActionGroup(); group.add(new RunAction()); group.add(new CreateMetaTargetAction()); group.add(new RemoveMetaTargetsOrBuildFileAction()); group.add(ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE)); if (userObject instanceof AntBuildFileNodeDescriptor) { group.add(new RemoveBuildFileAction(this)); } if (userObject instanceof AntTargetNodeDescriptor) { final AntBuildTargetBase target = ((AntTargetNodeDescriptor)userObject).getTarget(); final DefaultActionGroup executeOnGroup = new DefaultActionGroup(AntBundle.message("ant.explorer.execute.on.action.group.name"), true); executeOnGroup.add(new ExecuteOnEventAction(target, ExecuteBeforeCompilationEvent.getInstance())); executeOnGroup.add(new ExecuteOnEventAction(target, ExecuteAfterCompilationEvent.getInstance())); executeOnGroup.addSeparator(); executeOnGroup.add(new ExecuteBeforeRunAction(target, getCurrentBuildFile())); group.add(executeOnGroup); group.add(new AssignShortcutAction(target.getActionId())); } group.add(myAntBuildFilePropertiesAction); final ActionPopupMenu popupMenu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.ANT_EXPLORER_POPUP, group); popupMenu.getComponent().show(comp, x, y); } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/04c0300f2ab4d47ceeca13252dfb897f69527d64/AntExplorer.java/buggy/plugins/ant/src/com/intellij/lang/ant/config/explorer/AntExplorer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
10431,
26215,
12,
6385,
5435,
1161,
16,
727,
509,
619,
16,
727,
509,
677,
13,
288,
565,
1033,
729,
921,
273,
446,
31,
565,
727,
4902,
743,
589,
273,
3399,
2471,
18,
588,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10431,
26215,
12,
6385,
5435,
1161,
16,
727,
509,
619,
16,
727,
509,
677,
13,
288,
565,
1033,
729,
921,
273,
446,
31,
565,
727,
4902,
743,
589,
273,
3399,
2471,
18,
588,
62... |
boolean isSuperadmin = imcref.checkUserAdminrole( user.getUserId(), 1 ); | boolean isSuperadmin = imcref.checkUserAdminrole( user.getUserId(), 1 ); | public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // Lets validate the session if( super.checkSession( req, res ) == false ) return; // Get the session HttpSession session = req.getSession( false ); // Lets get an user object imcode.server.user.UserDomainObject user = super.getUserObj( req, res ); if( user == null ) { String header = "Error in AdminCounter."; String msg = "Couldnt create an user object." + "<BR>"; this.log( header + msg ); new AdminError( req, res, header, msg ); return; } IMCServiceInterface imcref = IMCServiceRMI.getIMCServiceInterface( req ); // check if user is a Useradmin, adminRole = 2 boolean isUseradmin = imcref.checkUserAdminrole( user.getUserId(), 2 ); // check if user is a Superadmin, adminRole = 1 boolean isSuperadmin = imcref.checkUserAdminrole( user.getUserId(), 1 ); //Lets get temporary values from session if there is some. //String[] tmp_userRoles = (String[])session.getAttribute("tempUserRoles"); //String tmp_userType = (String)session.getAttribute("tempUserType"); Properties tmp_userInfo = (Properties)session.getAttribute( "tempUser" ); Vector tmp_phones = (Vector)session.getAttribute( "Ok_phoneNumbers" ); if( tmp_phones == null ) { tmp_phones = new Vector(); } String[] phonetypesA = imcref.sqlProcedure( "GetPhonetypes " + user.getLangId() ); // Get a new Vector: phonetype_id, typename Vector phoneTypesV = new Vector( java.util.Arrays.asList( phonetypesA ) ); // ******* GENERATE AN ADD_USER PAGE ********** if( req.getParameter( "ADD_USER" ) != null ) { // Lets check if the user is an admin, otherwise throw him out. //if (imcref.checkAdminRights(user) == false) { if( !isSuperadmin && !isUseradmin ) { showErrorPageUserNotAnAdministrator( req, res ); return; } showAddUserPage( tmp_userInfo, res, phoneTypesV, tmp_phones, user, imcref, req, session ); return; } // ******* GENERATE AN CHANGE_USER PAGE********** if( req.getParameter( "CHANGE_USER" ) != null ) { log( "Changeuser" ); // lets first try to get userId from the session if we has been redirectet from authenticate String userToChangeId = getCurrentUserId( req, res ); // Lets check if the user has right to do changes // only if he is an superadmin, useradmin or if he try to change his own values // otherwise throw him out. if( imcref.checkAdminRights( user ) == false && !isUseradmin && !userToChangeId.equals( "" + user.getUserId() ) ) { showErrorPageUserHasNoRightsToChangeUserValues( req, res ); return; } showChangeUserPage( userToChangeId, imcref, tmp_userInfo, tmp_phones, user, res, session, phoneTypesV, isSuperadmin, isUseradmin, req ); return; } } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/04c4b3b5609d7d010ac7c9c5eeb9d696b924a290/AdminUserProps.java/clean/servlets/AdminUserProps.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
1377,
368,
511,
2413,
1954,
326,
1339,
1377,
309,
12,
2240,
18,
1893,
2157,
12,
1111,
16,
400,
262,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23611,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
1377,
368,
511,
2413,
1954,
326,
1339,
1377,
309,
12,
2240,
18,
1893,
2157,
12,
1111,
16,
400,
262,
42... |
} | } | boolean handleEvent (AWTEvent e) { if ((eventMask & e.getID ()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent (me); if (mouseEventTarget != null) { Component oldSource = (Component) me.getSource (); me.setSource (mouseEventTarget); mouseEventTarget.dispatchEvent (me); me.setSource (oldSource); } } else if (e instanceof KeyEvent && focus != null) { focus.processKeyEvent ((KeyEvent) e); } return e.isConsumed(); } | 5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/ad6c8435ee03593e980da05d382c95b10d220822/Container.java/buggy/libjava/java/awt/Container.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1250,
1640,
1133,
261,
37,
8588,
1133,
425,
13,
225,
288,
565,
309,
14015,
2575,
5796,
473,
425,
18,
588,
734,
1832,
13,
422,
374,
13,
202,
565,
327,
629,
31,
565,
309,
261,
73,
1276,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1250,
1640,
1133,
261,
37,
8588,
1133,
425,
13,
225,
288,
565,
309,
14015,
2575,
5796,
473,
425,
18,
588,
734,
1832,
13,
422,
374,
13,
202,
565,
327,
629,
31,
565,
309,
261,
73,
1276,... |
public void findTypes(char[] prefix, boolean findMembers, ISearchRequestor storage) { | public void findTypes(char[] prefix, boolean findMembers, boolean camelCaseMatch, ISearchRequestor storage) { | public void findTypes(char[] prefix, boolean findMembers, ISearchRequestor storage) { checkCanceled(); super.findTypes(prefix, findMembers, storage); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/7f7fe7a0ba4a6e12c0bff10c900a5fe01a5f59ed/CancelableNameEnvironment.java/clean/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/CancelableNameEnvironment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1104,
2016,
12,
3001,
8526,
1633,
16,
1250,
1104,
6918,
16,
467,
2979,
691,
280,
2502,
13,
288,
202,
202,
1893,
23163,
5621,
202,
202,
9565,
18,
4720,
2016,
12,
3239,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1104,
2016,
12,
3001,
8526,
1633,
16,
1250,
1104,
6918,
16,
467,
2979,
691,
280,
2502,
13,
288,
202,
202,
1893,
23163,
5621,
202,
202,
9565,
18,
4720,
2016,
12,
3239,
16,... |
0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0, | 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 619, 0, 232, 0, | private static final short[] yyTable4() { return new short[] { 54, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 56, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 47, 39, 40, 41, 42, 41, 0, 43, 44, 45, 0, 0, 0, 0, 0, 41, 0, 47, 47, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 41, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 0, 0, 0, 0, 41, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 54, 54, 0, 0, 54, 54, 54, 0, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 54, 41, 0, 0, 0, 0, 0, 0, 54, 54, 0, 54, 54, 54, 54, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 56, 0, 0, 56, 56, 56, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 56, 56, 56, 56, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 47, 0, 0, 47, 47, 47, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 47, 47, 0, 47, 47, 47, 47, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 0, 0, 41, 41, 41, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 41, 41, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 3, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 263, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 7, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 46, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 619, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 231, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 414, 49, 50, 0, 231, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 611, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 615, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 611, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 804, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 808, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 812, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 867, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 869, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 881, 0, 232, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 251, 251, 251, 0, 251, 0, 0, 0, 251, 251, 0, 0, 0, 251, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 251, 251, 0, 0, 251, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 0, 251, 251, 251, 0, 251, 0, 251, 0, 251, 0, 0, 0, 0, 0, 0, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 53, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 268, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 526, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 526, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 593, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 643, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 769, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 798, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 483, 483, 483, 0, 483, 0, 0, 0, 483, 483, 0, 0, 0, 483, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 483, 483, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 483, 483, 0, 483, 483, 483, 483, 0, 0, 483, 483, 483, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 0, 0, 0, 0, 0, 483, 0, 0, 0, 0, 0, 0, 0, 483, 0, 0, 483, 483, 483, 483, 483, 483, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 43, 44, 45, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 54, 55, 56, 57, 58, 59, 213, 213, 213, 0, 213, 0, 0, 0, 213, 213, 0, 0, 0, 213, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 213, 213, 213, 213, 213, 213, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 213, 213, 0, 213, 213, 213, 213, 0, 0, 213, 213, 213, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 0, 213, 213, 213, 0, 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 213, 213, 213, 213, 213, 213, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 753, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 224, 0, 0, 47, 0, 48, 49, 50, 0, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 349, 0, 48, 49, 50, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 0, 39, 40, 41, 42, 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 787, 0, 0, 107, 0, 48, 49, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 54, 55, 56, 57, 58, 59, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 251, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 0, 200, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 35, 36, 159, 38, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 174, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 286, 287, 199, 288, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, 116, 117, 118, 119, 120, 121, 122, 123, 0, 0, 124, 125, 126, 127, 128, 0, 0, 129, 130, 131, 132, 133, 134, 135, 0, 0, 136, 137, 138, 192, 193, 194, 195, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 196, 197, 198, 158, 0, 0, 199, 0, 0, 0, 0, 0, 0, 160, 0, 161, 162, 0, 163, 164, 165, 166, 0, 167, 168, 0, 0, 169, 0, 0, 0, 0, 170, 171, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 176, 0, 177, 178, 179, 180, 181, 182, 183, 184, 185, 0, 186, }; } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/a404cb04ade8bbc527b55cf473199686102428e1/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
22431,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11201,
16,
282,
10213,
16,
282... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
727,
3025,
8526,
9016,
1388,
24,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
6647,
22431,
16,
282,
5342,
16,
282,
4200,
16,
282,
9035,
16,
282,
11201,
16,
282,
10213,
16,
282... |
Text textNode = xsdSchema.getDocument().createTextNode("\n"); | Text textNode = xsdSchema.getDocument().createTextNode("\n"); | public void execute() { XSDFactory factory = XSDSchemaBuildingTools.getXSDFactory(); XSDComplexTypeDefinition complexType = factory.createXSDComplexTypeDefinition(); addedXSDConcreteComponent = complexType; String newName = getNewName(nameToAdd == null ? "NewXSDComplexType" : nameToAdd, parent.getSchema()); complexType.setName(newName); if (parent instanceof XSDSchema) { try { XSDSchema xsdSchema = (XSDSchema)parent; Text textNode = xsdSchema.getDocument().createTextNode("\n"); xsdSchema.getElement().appendChild(textNode); xsdSchema.getContents().add(complexType); } catch (Exception e) { e.printStackTrace(); } } else if (parent instanceof XSDElementDeclaration) { ((XSDElementDeclaration) parent).setAnonymousTypeDefinition((XSDComplexTypeDefinition) complexType); formatChild(parent.getElement()); } createdComplexType = complexType; } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/62c89ad1fbc07ee51dde873a5a1d9b4784eaf3f9/AddXSDComplexTypeDefinitionCommand.java/clean/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/commands/AddXSDComplexTypeDefinitionCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
1435,
225,
288,
565,
26462,
1733,
3272,
273,
26462,
3078,
16713,
10348,
18,
588,
31244,
1733,
5621,
565,
26462,
12795,
559,
1852,
7233,
559,
273,
3272,
18,
2640,
31244,
127... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
1435,
225,
288,
565,
26462,
1733,
3272,
273,
26462,
3078,
16713,
10348,
18,
588,
31244,
1733,
5621,
565,
26462,
12795,
559,
1852,
7233,
559,
273,
3272,
18,
2640,
31244,
127... |
return new AddBracesPredicate(); } | return new AddBracesPredicate(); } | protected PsiElementPredicate getElementPredicate() { return new AddBracesPredicate(); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4a657090da89db22fd1794270f60907c66fe047e/AddBracesIntention.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/braces/AddBracesIntention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
453,
7722,
1046,
8634,
7426,
8634,
1435,
288,
565,
327,
394,
1436,
38,
354,
764,
8634,
5621,
225,
289,
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,
282,
4750,
453,
7722,
1046,
8634,
7426,
8634,
1435,
288,
565,
327,
394,
1436,
38,
354,
764,
8634,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
char next = format.nextChar(); | char next = format.nextChar(); | public static RubyString pack(List list, RubyString formatString) { IRuby runtime = formatString.getRuntime(); PtrList format = new PtrList(formatString.getValue()); StringBuffer result = new StringBuffer(); int listSize = list.size(); char type = format.nextChar(); int idx = 0; String lCurElemString; while(!format.isAtEnd()) { // Possible next type, format of current type, occurrences of type char next = format.nextChar(); if (Character.isWhitespace(type)) { // skip all spaces type = next; continue; } if (next == '!' || next == '_') { if (NATIVE_CODES.indexOf(type) == -1) { throw runtime.newArgumentError("'" + next + "' allowed only after types " + NATIVE_CODES); } next = format.nextChar(); } // Determine how many of type are needed (default: 1) boolean isStar = false; int occurrences = 1; if (next == '*') { if ("@Xxu".indexOf(type) != -1) { occurrences = 0; } else { occurrences = listSize; isStar = true; } next = format.nextChar(); } else if (Character.isDigit(next)) { format.backup(1); // an exception may occur here if an int can't hold this but ... occurrences = format.nextAsciiNumber(); next = format.nextChar(); } Converter converter = (Converter) converters.get(new Character(type)); if (converter != null) { idx = encode(runtime, occurrences, result, list, idx, converter); type = next; continue; } switch (type) { case '%' : throw runtime.newArgumentError("% is not supported"); case 'A' : case 'a' : case 'Z' : case 'B' : case 'b' : case 'H' : case 'h' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (isStar) { occurrences = lCurElemString.length(); } switch (type) { case 'a' : case 'A' : case 'Z' : if (lCurElemString.length() >= occurrences) { result.append(lCurElemString.toCharArray(), 0, occurrences); } else {//need padding //I'm fairly sure there is a library call to create a //string filled with a given char with a given length but I couldn't find it result.append(lCurElemString); occurrences -= lCurElemString.length(); grow(result, (type == 'a') ? sNil10 : sSp10, occurrences); } break; //I believe there is a bug in the b and B case we skip a char too easily case 'b' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { if ((lCurElemString.charAt(i++) & 1) != 0) {//if the low bit is set currentByte |= 128; //set the high bit of the result } if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte >>= 1; //shift the byte } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte >>= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } //do some padding, I don't understand the padding strategy result.setLength(result.length() + padLength); } break; case 'B' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { currentByte |= lCurElemString.charAt(i++) & 1; // we filled up current byte; append it and create next one if ((i & 7) == 0) { result.append((char) (currentByte & 0xff)); currentByte = 0; continue; } //if the index is not a multiple of 8, we are not on a byte boundary currentByte <<= 1; } if ((occurrences & 7) != 0) { //if the length is not a multiple of 8 currentByte <<= 7 - (occurrences & 7); //we need to pad the last byte result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'h' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= (((currentChar & 15) + 9) & 15) << 4; } else { currentByte |= (currentChar & 15) << 4; } if ((i & 1) != 0) { currentByte >>= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; case 'H' : { int currentByte = 0; int padLength = 0; if (occurrences > lCurElemString.length()) { padLength = occurrences - lCurElemString.length(); occurrences = lCurElemString.length(); } for (int i = 0; i < occurrences;) { char currentChar = lCurElemString.charAt(i++); if (Character.isJavaIdentifierStart(currentChar)) { //this test may be too lax but it is the same as in MRI currentByte |= ((currentChar & 15) + 9) & 15; } else { currentByte |= currentChar & 15; } if ((i & 1) != 0) { currentByte <<= 4; } else { result.append((char) (currentByte & 0xff)); currentByte = 0; } } if ((occurrences & 1) != 0) { result.append((char) (currentByte & 0xff)); } result.setLength(result.length() + padLength); } break; } break; } case 'x' : grow(result, sNil10, occurrences); break; case 'X' : try { shrink(result, occurrences); } catch (IllegalArgumentException e) { throw runtime.newArgumentError("in `pack': X outside of string"); } break; case '@' : occurrences -= result.length(); if (occurrences > 0) { grow(result, sNil10, occurrences); } occurrences = -occurrences; if (occurrences > 0) { shrink(result, occurrences); } break; case 'u' : case 'm' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); occurrences = occurrences <= 2 ? 45 : occurrences / 3 * 3; for (;;) { encodes(runtime, result, lCurElemString, occurrences, type); if (occurrences >= lCurElemString.length()) { break; } lCurElemString = lCurElemString.substring(occurrences); } } break; case 'M' : { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); lCurElemString = from == runtime.getNil() ? "" : convert2String(from); if (occurrences <= 1) { occurrences = 72; } qpencode(result, lCurElemString, occurrences); } break; case 'U' : char[] c = new char[occurrences]; for (int cIndex = 0; occurrences-- > 0; cIndex++) { if (listSize-- <= 0) { throw runtime.newArgumentError(sTooFew); } IRubyObject from = (IRubyObject) list.get(idx++); long l = from == runtime.getNil() ? 0 : RubyNumeric.num2long(from); c[cIndex] = (char) l; } try { byte[] bytes = new String(c).getBytes("UTF-8"); result.append(RubyString.bytesToString(bytes)); } catch (java.io.UnsupportedEncodingException e) { assert false : "can't convert to UTF8"; } break; } type = next; } return runtime.newString(result.toString()); } | 46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/415b1e0db282c02d672a7e34a34a2bea0f69ccb2/Pack.java/buggy/src/org/jruby/util/Pack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
2298,
12,
682,
666,
16,
19817,
780,
27107,
13,
288,
3639,
15908,
10340,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
2139... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
780,
2298,
12,
682,
666,
16,
19817,
780,
27107,
13,
288,
3639,
15908,
10340,
3099,
273,
27107,
18,
588,
5576,
5621,
3639,
14898,
682,
740,
273,
394,
14898,
682,
12,
2139... |
public StepMeta findPrevStep(StepMeta stepMeta, int nr, boolean info) | public StepMeta findPrevStep(String stepname, int nr) | public StepMeta findPrevStep(StepMeta stepMeta, int nr, boolean info) { int count = 0; int i; for (i = 0; i < nrTransHops(); i++) // Look at all the hops; { TransHopMeta hi = getTransHop(i); if (hi.getToStep() != null && hi.isEnabled() && hi.getToStep().equals(stepMeta)) { if (info || !isStepInformative(stepMeta, hi.getFromStep())) { if (count == nr) { return hi.getFromStep(); } count++; } } } return null; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/010ce55cc835e24ea0d281df3b9d8fb611398414/TransMeta.java/buggy/kettle/src/be/ibridge/kettle/trans/TransMeta.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8693,
2781,
1104,
9958,
4160,
12,
780,
2235,
529,
16,
509,
9884,
13,
565,
288,
3639,
509,
1056,
273,
374,
31,
3639,
509,
277,
31,
3639,
364,
261,
77,
273,
374,
31,
277,
411,
988... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8693,
2781,
1104,
9958,
4160,
12,
780,
2235,
529,
16,
509,
9884,
13,
565,
288,
3639,
509,
1056,
273,
374,
31,
3639,
509,
277,
31,
3639,
364,
261,
77,
273,
374,
31,
277,
411,
988... |
case 113: | case 112: | final public void subscript() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOT: jj_consume_token(DOT); jj_consume_token(DOT); SimpleNode jjtn001 = new SimpleNode(JJTELLIPSES); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); jjtreeOpenNodeScope(jjtn001); try { jj_consume_token(DOT); } finally { if (jjtc001) { jjtree.closeNodeScope(jjtn001, true); jjtreeCloseNodeScope(jjtn001); } } break; case LPAREN: case LBRACE: case LBRACKET: case PLUS: case MINUS: case NOT: case NOT_BOOL: case LAMBDA: case AS: case NAME: case DECNUMBER: case HEXNUMBER: case OCTNUMBER: case FLOAT: case SINGLE_STRING: case SINGLE_STRING2: case TRIPLE_STRING: case TRIPLE_STRING2: case 113: SimpleNode jjtn002 = new SimpleNode(JJTSLICE); boolean jjtc002 = true; jjtree.openNodeScope(jjtn002); jjtreeOpenNodeScope(jjtn002); try { test(); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COLON: slice(); break; default: jj_la1[77] = jj_gen; ; } } catch (Throwable jjte002) { if (jjtc002) { jjtree.clearNodeScope(jjtn002); jjtc002 = false; } else { jjtree.popNode(); } if (jjte002 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte002;} } if (jjte002 instanceof ParseException) { {if (true) throw (ParseException)jjte002;} } {if (true) throw (Error)jjte002;} } finally { if (jjtc002) { jjtree.closeNodeScope(jjtn002, jjtree.nodeArity() > 1); jjtreeCloseNodeScope(jjtn002); } } break; case COLON: SimpleNode jjtn003 = new SimpleNode(JJTSLICE); boolean jjtc003 = true; jjtree.openNodeScope(jjtn003); jjtreeOpenNodeScope(jjtn003); try { slice(); } catch (Throwable jjte003) { if (jjtc003) { jjtree.clearNodeScope(jjtn003); jjtc003 = false; } else { jjtree.popNode(); } if (jjte003 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte003;} } if (jjte003 instanceof ParseException) { {if (true) throw (ParseException)jjte003;} } {if (true) throw (Error)jjte003;} } finally { if (jjtc003) { jjtree.closeNodeScope(jjtn003, jjtree.nodeArity() > 0); jjtreeCloseNodeScope(jjtn003); } } break; default: jj_la1[78] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/990a4416bd2a7ed851b7580527ecd4b4df231ca5/PythonGrammar.java/buggy/org/python/parser/PythonGrammar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
31855,
1435,
1216,
10616,
288,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
565,
648,
15772,
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,
282,
727,
1071,
918,
31855,
1435,
1216,
10616,
288,
565,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
9945,
78,
78,
67,
496,
79,
13332,
78,
78,
67,
496,
79,
13,
288,
565,
648,
15772,
3... |
parentUID=DrillDownUtils.getUID(remoteEvent.getEvent(),DrillDownQueryConstants.PARENT_UID); if(parentUID!=null) { if(map.containsKey(parentUID)){ list=(List)map.get(parentUID); | originatorUID=DrillDownUtils.getUID(remoteEvent.getEvent(),DrillDownQueryConstants.ORIGINATORS_UID); if(originatorUID!=null) { if(map.containsKey(originatorUID)){ list=(List)map.get(originatorUID); | public void processIdmefEvent(Collection idmefEventCollection) { if(idmefEventCollection==null) { if (loggingService.isDebugEnabled()) { loggingService.debug("New IDMEF Collection is NULL :"+myAddress.toString() ); } return; } if(idmefEventCollection.isEmpty()) { if (loggingService.isDebugEnabled()) { loggingService.debug("New IDMEF Collection is empty :"+myAddress.toString() ); } return; } Map map=new Hashtable(); Iterator iter=idmefEventCollection.iterator(); Event event=null; RemoteConsolidatedEvent remoteEvent=null; UID parentUID=null; List list=null; Object o; while(iter.hasNext()){ o=iter.next(); if(o instanceof Event) { event=(Event)o; parentUID=DrillDownUtils.getUID(event.getEvent(),DrillDownQueryConstants.PARENT_UID); if(parentUID!=null) { if(map.containsKey(parentUID)){ list=(List)map.get(parentUID); list.add(event); map.put(parentUID,list); } else { list=new ArrayList(); list.add(event); map.put(parentUID,list); } } } if(o instanceof RemoteConsolidatedEvent) { remoteEvent=(RemoteConsolidatedEvent)o; parentUID=DrillDownUtils.getUID(remoteEvent.getEvent(),DrillDownQueryConstants.PARENT_UID); if(parentUID!=null) { if(map.containsKey(parentUID)){ list=(List)map.get(parentUID); list.add(createConsolidatedEvent(remoteEvent)); map.put(parentUID,list); } else { list=new ArrayList(); list.add(createConsolidatedEvent(remoteEvent)); map.put(parentUID,list); } } } }// end of while Collection detailsQueryCollection=getBlackboardService().query(new DetailsDrillDownPredicate(myAddress)); Set setkeys=map.keySet(); Iterator keys=setkeys.iterator(); UID key =null; CmrRelay relay=null; while(keys.hasNext()){ list=null; key=(UID)keys.next(); list=(List)map.get(key); relay=getCmrRelayWithDetailsDrillDownQuery(key,detailsQueryCollection); if(relay==null) { if (loggingService.isDebugEnabled()) { loggingService.debug("No Details drill down query relay present for parent UID :"+key.toString() ); } continue; } AggregatedResponse aggresponse=new AggregatedResponse(list); relay.updateResponse(relay.getSource(),aggresponse); getBlackboardService().publishChange(relay); } } | 12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/b9174f55aa87a56824cb2c4207812fdfb3ec54ef/MnRAggSendRemoteResponse.java/buggy/securityservices/src/org/cougaar/core/security/monitoring/plugin/MnRAggSendRemoteResponse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1207,
548,
3501,
74,
1133,
12,
2532,
612,
3501,
74,
1133,
2532,
13,
288,
565,
309,
12,
350,
3501,
74,
1133,
2532,
631,
2011,
13,
288,
4202,
309,
261,
11167,
1179,
18,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
548,
3501,
74,
1133,
12,
2532,
612,
3501,
74,
1133,
2532,
13,
288,
565,
309,
12,
350,
3501,
74,
1133,
2532,
631,
2011,
13,
288,
4202,
309,
261,
11167,
1179,
18,
291,
... |
IRingSet object = new NNRingSet(); return object; | return new NNRingSet(); | public IRingSet newRingSet() { IRingSet object = new NNRingSet(); return object; } | 45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/762a77528782926809031cb87d71cf26053aa8de/NoNotificationChemObjectBuilder.java/buggy/src/org/openscience/cdk/nonotify/NoNotificationChemObjectBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
10369,
694,
394,
10369,
694,
1435,
288,
202,
202,
7937,
310,
694,
733,
273,
394,
30471,
10369,
694,
5621,
202,
202,
2463,
733,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
10369,
694,
394,
10369,
694,
1435,
288,
202,
202,
7937,
310,
694,
733,
273,
394,
30471,
10369,
694,
5621,
202,
202,
2463,
733,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-10... |
public void doPost( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { String host = req.getHeader("Host") ; String imcserver = Utility.getDomainPref("adminserver",host) ; String start_url = Utility.getDomainPref( "start_url",host ) ; String servlet_url = Utility.getDomainPref( "servlet_url",host ) ; imcode.server.User user ; // Check if user logged on if( (user=Check.userLoggedOn( req,res,start_url ))==null ) { return ; } res.setContentType( "text/html" ); ServletOutputStream out = res.getOutputStream(); String meta_id = req.getParameter( "meta_id" ) ; int meta_id_int = Integer.parseInt(meta_id) ; if ( !IMCServiceRMI.checkDocAdminRightsAny(imcserver,meta_id_int,user,7 ) ) { // Checking to see if user may edit this byte[] tempbytes ; tempbytes = AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res) ; if ( tempbytes != null ) { out.write(tempbytes) ; } return ; } Properties metaprops = new Properties () ; String classification = req.getParameter("classification") ; // Hey, hey! Watch as i fetch the permission-set set (pun intended) for each role! String[][] role_permissions = IMCServiceRMI.sqlProcedureMulti(imcserver, "GetRolesDocPermissions "+meta_id) ; // Now watch as i fetch the permission_set for the user... String[] current_permissions = IMCServiceRMI.sqlProcedure(imcserver, "GetUserPermissionSet "+meta_id+", "+user.getInt("user_id")) ; int user_set_id = Integer.parseInt(current_permissions[0]) ; // The users set_id // Check if the user has any business in here whatsoever. if ( user_set_id > 2 ) { out.write(AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res)) ; return ; } int user_perm_set = Integer.parseInt(current_permissions[1]) ; // The users permission_set for that id int currentdoc_perms = Integer.parseInt(current_permissions[2]) ; // The docspecific permissions for this doc. // Now i'll loop through the db-results, and read the values // for each roles set_id this user may change from the form. // Then set the new value for each. Properties temp_permission_settings = new Properties() ; for ( int i = 0 ; i < role_permissions.length ; ++i ) { String role_set_id_str = role_permissions[i][2] ; // Get the old set_id for this role from the db int role_set_id = Integer.parseInt(role_set_id_str) ; String role_id = role_permissions[i][0] ; // Get the role_id from the db String new_set_id_str = req.getParameter("role_"+role_id) ; // Check the value from the form if ( new_set_id_str == null ) { // If a new set_id for this role didn't come from the form continue ; // skip to the next role. } int new_set_id = Integer.parseInt(new_set_id_str) ; if ( ( // May the user edit permissions at all? user_set_id == 0 // If user has set_id == 0... || (user_perm_set & 4) != 0) // ...or the user may edit permissions for this document // May the user set this particular permission-set? && user_set_id <= new_set_id // May the user edit the permissions for this particular role? && user_set_id <= role_set_id // If user potentially has a more privileged set_id than the role... && (user_set_id != 1 // If user has set_id == 1 (that is , != 0 && != 2) || (role_set_id != 2 // ...he may not change set_id for a role with set_id 2.. && new_set_id != 2) // ...and he may not set set_id to 2 for any role... || (currentdoc_perms&1) != 0// ...unless set_id 1 is more privileged than set_id 2 for this document. ) ) { // We used to save to the db immediately. Now we do it a little bit differently to make it possible to store stuff in the session instead of the db. // IMCServiceRMI.sqlUpdateProcedure(imcserver, "SetRoleDocPermissionSetId "+role_id+","+meta_id+","+new_set_id) ; temp_permission_settings.setProperty(String.valueOf(role_id),String.valueOf(new_set_id)) ; } else { log ("User "+user.getInt("user_id")+" with set_id "+user_set_id+" and permission_set "+user_perm_set+" was denied permission to change set_id for role " +role_id+" from "+role_set_id+" to "+new_set_id+" on meta_id "+meta_id) ; } } /* Now we're going to start accepting the input form fields. This table keeps track of all the fields we may encounter. The "nullvalue" is there to support checkboxes, which, if not checked, report null. So, if the checkboxes do not appear, we know that we should enter the "nullvalue" found here, into the db. */ // NOTE! This table matches the one below. Don't go changing one without changing the other. // FIXME: They should be merged into one table. String [] metatable = { /* Nullable Nullvalue */ "shared", "0", "disable_search","0", "archive", "0", "show_meta", "0", "permissions", "0", "meta_headline", null, "meta_text", null, "meta_image", null, "activated_datetime",null, "archived_datetime", null, "frame_name", null, "target", null } ; final int metatable_cols = 2 ; // I'll make a table to keep track of // what is the least privileged (highest) // set_id you may have, to be able to change // each property. Roles with set_ids 1 and 2 // still need explicit permissions, so this is // mainly for fleshing out what only a user with // "full" (0) may do. (Change whether set-id 1 is // more privileged. "permissions") // I use a bitmask here to specify what permissions // are required for each. // 0 == Unreachable // 1 == Something on the "simple docinfo"-page // 2 == Something on the "advanced docinfo"-page // 3 == 1|2 // 4 == Something on the "rights/permissions"-page // 5 == 1|4 // 6 == 2|4 // 7 == 1|2|4 // NOTE! This table matches the one above. Don't go changing one without changing the other. // FIXME: They should be merged into one table. int[] metatable_restrictions = { // set_id, permission_bitmask 2, 6, //"shared", 2, 2, //"disable_search", 2, 2, //"archive", 2, 6, //"show_meta", 0, 4, //"permissions", 2, 7, //"meta_headline", 2, 3, //"meta_text", 2, 3, //"meta_image", 2, 2, //"activated_datetime", 2, 2, //"archived_datetime", 2, 2, //"frame_name", 2, 2 //"target" } ; HashMap inputMap = new HashMap() ; // Loop through all meta-table-properties // Adding them to a HashMap to be used as input // That way i can mutilate the values before all the // permissions are checked. for ( int i=0 ; i<metatable.length ; i+=metatable_cols ) { inputMap.put(metatable[i],req.getParameter(metatable[i])) ; } // Here's some mutilation! // activated_date and activated_time need to be merged, and likewise with archived_date and archived_time SimpleDateFormat dateformat = new SimpleDateFormat("yyyy-MM-dd HH:mm") ; String activated_date = req.getParameter("activated_date") ; String activated_time = req.getParameter("activated_time") ; String activated_datetime = null ; if ( activated_date != null && activated_time != null ) { activated_datetime = activated_date + ' ' + activated_time ; try { dateformat.parse(activated_datetime) ; } catch (ParseException ex) { activated_datetime = null ; } } String archived_date = req.getParameter("archived_date") ; String archived_time = req.getParameter("archived_time") ; String archived_datetime = null ; if ( archived_date != null && archived_time != null ) { archived_datetime = archived_date + ' ' + archived_time ; try { dateformat.parse(archived_datetime) ; } catch (ParseException ex) { archived_datetime = null ; } } // Loop through all meta-table-properties // Checking permissions as we go. // All alterations of the inputdata must happen before this for ( int i=0 ; i<metatable.length ; i+=metatable_cols ) { String tmp = (String)inputMap.get(metatable[i]) ; if ( user_set_id > metatable_restrictions[i] // Check on set_id if user is allowed to set this particular property. || (user_set_id > 0 // If user not has full access (0)... && ((user_perm_set & metatable_restrictions[i+1]) == 0) // check permission-bitvector for the users set_id. ) ) { continue ; } if (metatable[i].equals("meta_headline")||metatable[i].equals("meta_text")) { if( tmp != null) tmp = imcode.server.HTMLConv.toHTML(tmp); } if ( tmp != null) { metaprops.setProperty(metatable[i],tmp) ; // If it is found, set it. } else { tmp = metatable[i+1] ; // FIXME: If it is null, that could mean the user // emptied the field. This leads to the property // not being updated, and left unchanged! // _Should_ be ok, since for checkboxes null is valid. (Means false) // For fields other than checkboxes and radiobuttons null would be bad. if ( tmp != null ) { metaprops.setProperty(metatable[i],tmp) ; // If it is not found, set it to the nullvalue. (For checkboxes, which do not appear if they are not checked.) } } } //ok here we fetch the settings fore the default_template 1 & 2 String temp_default_template_1 = req.getParameter("default_template_set_1") == null ? "-1" : req.getParameter("default_template_set_1"); String temp_default_template_2 = req.getParameter("default_template_set_2") == null ? "-1" : req.getParameter("default_template_set_2"); String[] temp_default_templates = {temp_default_template_1, temp_default_template_2}; // Set modified-date to now... Date dt = IMCServiceRMI.getCurrentDate(imcserver) ; metaprops.setProperty("date_modified",dateformat.format(dt)) ; // It's like this... people make changes on the page, and then they forget to press "save" // before they press one of the "define-permission" buttons, and then their settings are lost. // I will fix this by storing the settings in a temporary variable in the user object. // This variable will be an array of four objects. In order: // A String, containing the meta-id of the page. // A Properties, containing the docinfo for the page. (db-column, value) // A Properties, containing the permission_sets for the roles. (role_id, set_id) // A String[], containing default_template 1 and 2 // We also need a name for this temporary variable... i think i shall call it... (Drumroll, please...) "temp_perm_settings" ! // if ( req.getParameter("define_set_1") != null ) { // If user want's to edit permission-set 1 user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,1,false)) ; return ; } else if ( req.getParameter("define_set_2") != null ) { // If user want's to edit permission-set 2 user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,2,false)) ; return ; } else if ( req.getParameter("define_new_set_1") != null ) { user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,1,true)) ; return ; } else if ( req.getParameter("define_new_set_2") != null ) { user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parsePermissionSet(meta_id_int,user,host,2,true)) ; return ; } else if ( req.getParameter("add_roles") != null ) { // The user wants to give permissions to roles that have none. String[] roles_no_rights = req.getParameterValues("roles_no_rights") ; for ( int i = 0 ; roles_no_rights!=null && i<roles_no_rights.length ; ++i ) { temp_permission_settings.setProperty(roles_no_rights[i],"3") ; } user.put("temp_perm_settings",new Object[] {String.valueOf(meta_id),metaprops,temp_permission_settings,temp_default_templates}) ; out.print(MetaDataParser.parseMetaPermission(meta_id,meta_id,user,host,"change_meta_rights.html")) ; return ; } // From now on we enter stuff into the db. // Here i'll construct an sql-query that will update all docinfo // the user is allowed to change. //ok lets start and get the default templates String tempStr = req.getParameter("default_template_set_1"); String template1 = "-1"; String template2 = "-1"; if (tempStr != null) { template1 = req.getParameter("default_template_set_1").equals("") ? "-1" : req.getParameter("default_template_set_1"); } tempStr = req.getParameter("default_template_set_2"); if (tempStr != null) { template2 = req.getParameter("default_template_set_2").equals("")? "-1":req.getParameter("default_template_set_2"); } String sqlStr = "activated_datetime = "+(null == activated_datetime ? "NULL" : "'"+activated_datetime+"'")+ ",archived_datetime = "+(null == archived_datetime ? "NULL" : "'"+archived_datetime+"'") + ","; Enumeration propkeys = metaprops.propertyNames() ; while ( propkeys.hasMoreElements() ) { String temp = (String)propkeys.nextElement() ; String val = metaprops.getProperty(temp) ; String [] vp = { "'", "''" } ; sqlStr += temp +" = '"+Parser.parseDoc(val,vp)+"' " ; if ( propkeys.hasMoreElements() ) { sqlStr += ", " ; } } for (int i=0; i<role_permissions.length; ++i) { String role_id = (String)role_permissions[i][0] ; String new_set_id = temp_permission_settings.getProperty(role_id) ; if (new_set_id == null) { continue ; } IMCServiceRMI.sqlUpdateProcedure(imcserver, "SetRoleDocPermissionSetId "+role_id+","+meta_id+","+new_set_id) ; } if ( sqlStr.length() > 0 ) { sqlStr = "update meta set " +sqlStr+ " where meta_id = "+meta_id ; IMCServiceRMI.sqlUpdateQuery(imcserver,sqlStr) ; } // Save the classifications to the db if ( classification != null ) { classification = imcode.server.HTMLConv.toHTML(classification); IMCServiceRMI.sqlUpdateProcedure(imcserver,"Classification_Fix "+meta_id+",'"+classification+"'") ; } //ok lets save the default templates //log("test sql: UpdateDefaultTemplates "+meta_id+",'"+template1+"','"+template2+"'"); IMCServiceRMI.sqlUpdateProcedure(imcserver, "UpdateDefaultTemplates '"+meta_id+"','"+template1+"','"+template2+"'") ; // Update the date_modified for all parents. IMCServiceRMI.sqlUpdateProcedure(imcserver, "UpdateParentsDateModified "+meta_id) ; // Let's split this joint! byte[] temp = AdminDoc.adminDoc(meta_id_int,meta_id_int,host,user,req,res) ; if (temp != null) { out.write(temp) ; } //lets log to mainlog that the user done stuff mainLog.info(logdateFormat.format(new java.util.Date())+"Metadata on ["+meta_id+"] updated by user: [" +user.getString("first_name").trim() + " " + user.getString("last_name").trim() + "]"); return ; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/cd4b638e76682d918728cd2557cfc09e03e5195c/SaveMeta.java/clean/servlets/SaveMeta.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
202,
780,
1479,
4697,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
202,
780,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
9984,
1111,
16,
12446,
400,
262,
1216,
16517,
16,
1860,
288,
202,
202,
780,
1479,
4697,
202,
33,
1111,
18,
588,
1864,
2932,
2594,
7923,
274,
202,
202,
780,... | ||
if (o instanceof Student) { symphonie.getStudentTreeModel().removeStudent((Student) o); symphonie.getCurrentStudentModel().clear(); } } }; } removeStudentAction.putValue(Action.SMALL_ICON, icon); return removeStudentAction; | a.putValue(Action.SMALL_ICON, icon); return a; | public AbstractAction getRemoveStudentAction(Icon icon, final JTree tree) { if (removeStudentAction == null) { removeStudentAction = new AbstractAction() { public void actionPerformed(ActionEvent e) { Object o = tree.getLastSelectedPathComponent(); if (o instanceof Student) { symphonie.getStudentTreeModel().removeStudent((Student) o); symphonie.getCurrentStudentModel().clear(); } } }; } removeStudentAction.putValue(Action.SMALL_ICON, icon); return removeStudentAction; } | 12633 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12633/c842b364d6a94077b64fae7a7404c364e26003c6/SymphonieActionFactory.java/buggy/dupratcated/src/fr/umlv/symphonie/view/SymphonieActionFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
4115,
1803,
336,
3288,
19943,
319,
1803,
12,
5554,
4126,
16,
727,
804,
2471,
2151,
13,
288,
3639,
309,
261,
4479,
19943,
319,
1803,
422,
446,
13,
288,
1377,
1206,
19943,
319,
1803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4115,
1803,
336,
3288,
19943,
319,
1803,
12,
5554,
4126,
16,
727,
804,
2471,
2151,
13,
288,
3639,
309,
261,
4479,
19943,
319,
1803,
422,
446,
13,
288,
1377,
1206,
19943,
319,
1803,
... |
if (self.getNumPop() == 1) { if (mod_push_pop) { p.print("(*____in++)"); return; } | if (self.getNumPop() == 1) { if (mod_push_pop) { p.print("(*____in++)"); return; } | public void visitPopExpression(SIRPopExpression self, CType tapeType) { //NetStream in = RegisterStreams.getFilterInStream(filter); if (self.getNumPop() == 1) { if (mod_push_pop) { p.print("(*____in++)"); return; } p.print("__pop__" + selfID + "()"); } else { if (mod_push_pop) { p.print("assert(false);"); } p.print("__pop__" + selfID + "(" + self.getNumPop() + ")"); } } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/72014ef7490e7b2635af8cc4bab31ead936daef9/FlatIRToCluster.java/buggy/streams/src/at/dms/kjc/cluster/FlatIRToCluster.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
7049,
2300,
12,
2320,
54,
7049,
2300,
365,
16,
385,
559,
268,
1273,
559,
13,
288,
3639,
368,
7308,
1228,
316,
273,
5433,
10301,
18,
588,
1586,
382,
1228,
12,
2188,
1769... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3757,
7049,
2300,
12,
2320,
54,
7049,
2300,
365,
16,
385,
559,
268,
1273,
559,
13,
288,
3639,
368,
7308,
1228,
316,
273,
5433,
10301,
18,
588,
1586,
382,
1228,
12,
2188,
1769... |
Symbol[] oldtparams = nextTypeParams(getOuterClass(symbol)); | Symbol[] oldtparams = getOuterTypeParams(symbol); | private Type.Map getOuterTypeSubst(Symbol symbol, boolean update) { if (!hasOuterTypeLinks(symbol)) return Type.IdMap; Symbol[] oldtparams = nextTypeParams(getOuterClass(symbol)); Symbol[] newtparams = nextTypeParams(symbol); Symbol[] tlinks = new Symbol[oldtparams.length]; for (int i = 0; i < tlinks.length; i++) tlinks[i] = newtparams[i]; return Type.getSubst(oldtparams, tlinks, update); } | 49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/9b9e16dd39fc866752e907c1a9fcfcb2dcde7fd8/ExplicitOuterClassesPhase.java/clean/sources/scalac/transformer/ExplicitOuterClassesPhase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1412,
18,
863,
336,
15040,
559,
1676,
334,
12,
5335,
3273,
16,
1250,
1089,
13,
288,
3639,
309,
16051,
5332,
15040,
559,
7100,
12,
7175,
3719,
327,
1412,
18,
548,
863,
31,
3639,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1412,
18,
863,
336,
15040,
559,
1676,
334,
12,
5335,
3273,
16,
1250,
1089,
13,
288,
3639,
309,
16051,
5332,
15040,
559,
7100,
12,
7175,
3719,
327,
1412,
18,
548,
863,
31,
3639,
85... |
else if ( LA3_0==-1||LA3_0==EOL||(LA3_0>=17 && LA3_0<=20)||LA3_0==26||LA3_0==28 ) { | else if ( LA3_0==-1||LA3_0==EOL||LA3_0==15||(LA3_0>=17 && LA3_0<=20)||LA3_0==26||LA3_0==28 ) { | public void prolog() throws RecognitionException { String name = null; String packageName = ""; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:102:17: ( opt_eol (name= package_statement )? ( import_statement )* ( expander )? ( global )* ( function )* opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:102:17: opt_eol (name= package_statement )? ( import_statement )* ( expander )? ( global )* ( function )* opt_eol { following.push(FOLLOW_opt_eol_in_prolog104); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:103:17: (name= package_statement )? int alt3=2; int LA3_0 = input.LA(1); if ( LA3_0==15 ) { alt3=1; } else if ( LA3_0==-1||LA3_0==EOL||(LA3_0>=17 && LA3_0<=20)||LA3_0==26||LA3_0==28 ) { alt3=2; } else { NoViableAltException nvae = new NoViableAltException("103:17: (name= package_statement )?", 3, 0, input); throw nvae; } switch (alt3) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:103:19: name= package_statement { following.push(FOLLOW_package_statement_in_prolog112); name=package_statement(); following.pop(); packageName = name; } break; } this.packageDescr = new PackageDescr( name ); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:107:17: ( import_statement )* loop4: do { int alt4=2; int LA4_0 = input.LA(1); if ( LA4_0==17 ) { alt4=1; } switch (alt4) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:107:17: import_statement { following.push(FOLLOW_import_statement_in_prolog125); import_statement(); following.pop(); } break; default : break loop4; } } while (true); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:108:17: ( expander )? int alt5=2; int LA5_0 = input.LA(1); if ( LA5_0==18 ) { alt5=1; } else if ( LA5_0==-1||LA5_0==EOL||(LA5_0>=19 && LA5_0<=20)||LA5_0==26||LA5_0==28 ) { alt5=2; } else { NoViableAltException nvae = new NoViableAltException("108:17: ( expander )?", 5, 0, input); throw nvae; } switch (alt5) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:108:17: expander { following.push(FOLLOW_expander_in_prolog130); expander(); following.pop(); } break; } // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:109:17: ( global )* loop6: do { int alt6=2; int LA6_0 = input.LA(1); if ( LA6_0==19 ) { alt6=1; } switch (alt6) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:109:17: global { following.push(FOLLOW_global_in_prolog136); global(); following.pop(); } break; default : break loop6; } } while (true); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:110:17: ( function )* loop7: do { int alt7=2; int LA7_0 = input.LA(1); if ( LA7_0==20 ) { alt7=1; } switch (alt7) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:110:17: function { following.push(FOLLOW_function_in_prolog141); function(); following.pop(); } break; default : break loop7; } } while (true); following.push(FOLLOW_opt_eol_in_prolog146); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/9c6423b7a31fdc4a1317e71a6d2850c94e2140e0/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
450,
1330,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
1171,
202,
202,
780,
9929,
273,
1408,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
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,
918,
450,
1330,
1435,
1216,
9539,
288,
6647,
514,
508,
273,
446,
31,
1171,
202,
202,
780,
9929,
273,
1408,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
84... |
fireMessageCountEvent(mce); | fireMessageCountEvent(newMce); | protected void runMessagesRemoved(MessageCountEvent mce) { Message[] removedMessages = mce.getMessages(); Message[] removedCachingMessages = new Message[removedMessages.length]; if (Pooka.isDebug()) System.out.println("removedMessages was of size " + removedMessages.length); MessageInfo mi; Vector removedProxies=new Vector(); for (int i = 0; i < removedMessages.length; i++) { if (Pooka.isDebug()) System.out.println("checking for existence of message."); if (removedMessages[i] != null && removedMessages[i] instanceof CachingMimeMessage) { removedCachingMessages[i] = removedMessages[i]; mi = getMessageInfo(removedMessages[i]); if (mi.getMessageProxy() != null) mi.getMessageProxy().close(); if (mi != null) { if (Pooka.isDebug()) System.out.println("message exists--removing"); removedProxies.add(mi.getMessageProxy()); messageToInfoTable.remove(mi); uidToInfoTable.remove(new Long(((CachingMimeMessage) removedMessages[i]).getUID())); getCache().invalidateCache(((CachingMimeMessage) removedMessages[i]).getUID(), SimpleFileCache.MESSAGE); } } else { // not a CachingMimeMessage. long uid = -1; try { uid =((UIDFolder)getFolder()).getUID(removedMessages[i]); } catch (MessagingException me) { } mi = getMessageInfoByUid(uid); if (mi != null) { removedCachingMessages[i] = mi.getMessage(); if (mi.getMessageProxy() != null) mi.getMessageProxy().close(); if (Pooka.isDebug()) System.out.println("message exists--removing"); Message localMsg = mi.getMessage(); removedProxies.add(mi.getMessageProxy()); messageToInfoTable.remove(localMsg); uidToInfoTable.remove(new Long(uid)); getCache().invalidateCache(uid, SimpleFileCache.MESSAGE); } else { removedCachingMessages[i] = removedMessages[i]; } } } MessageCountEvent newMce = new MessageCountEvent(getFolder(), mce.getType(), mce.isRemoved(), removedCachingMessages); if (getFolderDisplayUI() != null) { getFolderDisplayUI().removeRows(removedProxies); resetMessageCounts(); fireMessageCountEvent(mce); } else { resetMessageCounts(); fireMessageCountEvent(mce); getFolderTableModel().removeRows(removedProxies); } } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/3b19f8bade0ad8840745d397641b10627df9ff47/CachingFolderInfo.java/clean/net/suberic/pooka/cache/CachingFolderInfo.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1086,
5058,
10026,
12,
1079,
1380,
1133,
312,
311,
13,
288,
202,
1079,
8526,
3723,
5058,
273,
312,
311,
18,
588,
5058,
5621,
202,
1079,
8526,
3723,
17712,
5058,
273,
394,
2350,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
5058,
10026,
12,
1079,
1380,
1133,
312,
311,
13,
288,
202,
1079,
8526,
3723,
5058,
273,
312,
311,
18,
588,
5058,
5621,
202,
1079,
8526,
3723,
17712,
5058,
273,
394,
2350,... |
remove(0); | items.removeElementAt(0); | private void removeShowCheckBox(JCheckBoxMenuItem item){ remove(item); if (sepIndex != -1) sepIndex--; if (sepIndex == 0){ // the separator is first remove(0); // remove the separator sepIndex = -1; } } | 1161 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1161/cf6705b53a9f574babdfcf3df52e47b7b2934b15/PluginContainersMenu.java/clean/src/free/jin/ui/PluginContainersMenu.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1206,
5706,
19174,
12,
46,
19174,
12958,
761,
15329,
565,
1206,
12,
1726,
1769,
3639,
309,
261,
10814,
1016,
480,
300,
21,
13,
1377,
5478,
1016,
413,
31,
3639,
309,
261,
10814,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1206,
5706,
19174,
12,
46,
19174,
12958,
761,
15329,
565,
1206,
12,
1726,
1769,
3639,
309,
261,
10814,
1016,
480,
300,
21,
13,
1377,
5478,
1016,
413,
31,
3639,
309,
261,
10814,... |
catch (NoSuchAlgorithmException nsae) | catch (NoSuchAlgorithmException x) | public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] provs = Security.getProviders(); for (int i = 0; i < provs.length; i++) { try { return getInstance(algorithm, provs[i]); } catch (NoSuchAlgorithmException nsae) { } } throw new NoSuchAlgorithmException(algorithm); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/99e9abeef27c28d491d6cbb3f304d7454d599169/SecretKeyFactory.java/buggy/core/src/classpath/javax/javax/crypto/SecretKeyFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
727,
19391,
1733,
3694,
12,
780,
4886,
13,
565,
1216,
17684,
225,
288,
565,
7561,
8526,
450,
6904,
273,
6036,
18,
588,
10672,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
727,
19391,
1733,
3694,
12,
780,
4886,
13,
565,
1216,
17684,
225,
288,
565,
7561,
8526,
450,
6904,
273,
6036,
18,
588,
10672,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277... |
if (prefixes == null) { | if (prefix == null) { | public PrefixFileFilter(final String prefix) { if (prefixes == null) { throw new IllegalArgumentException("The prefix must not be null"); } this.prefixes = new String[] {prefix}; } | 49302 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49302/d3b1bac788bcef2487065bd699ab727bbd320f41/PrefixFileFilter.java/clean/src/java/org/apache/commons/io/filefilter/PrefixFileFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10139,
29837,
12,
6385,
514,
1633,
13,
288,
3639,
309,
261,
3239,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
1986,
1633,
1297,
486,
506,
446,
8863,
3639,
289,
3639,
333,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10139,
29837,
12,
6385,
514,
1633,
13,
288,
3639,
309,
261,
3239,
422,
446,
13,
288,
5411,
604,
394,
2754,
2932,
1986,
1633,
1297,
486,
506,
446,
8863,
3639,
289,
3639,
333,
18,
1... |
try { this.position++; this.bCodeStream[this.classFileOffset++] = OPC_invokevirtual; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_invokevirtual); | if (classFileOffset + 2 >= bCodeStream.length) { resizeByteArray(); | protected void invokeJavaLangReflectFieldSetter(int typeID) { this.countLabels = 0; int usedTypeID; if (typeID == T_null) usedTypeID = T_Object; else usedTypeID = typeID; // invokevirtual try { this.position++; this.bCodeStream[this.classFileOffset++] = OPC_invokevirtual; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_invokevirtual); } writeUnsignedShort(((CodeSnippetConstantPool) this.constantPool).literalIndexJavaLangReflectFieldSetter(typeID)); if ((usedTypeID != T_long) && (usedTypeID != T_double)) { this.stackDepth-=3; } else { this.stackDepth-=4; }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3a562aaf09f9f323b583086b80b4683378886606/CodeSnippetCodeStream.java/buggy/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetCodeStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
4356,
5852,
7275,
24452,
974,
8465,
12,
474,
618,
734,
13,
288,
202,
2211,
18,
1883,
5888,
273,
374,
31,
202,
474,
1399,
559,
734,
31,
202,
430,
261,
723,
734,
422,
399,
67,
201... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
4356,
5852,
7275,
24452,
974,
8465,
12,
474,
618,
734,
13,
288,
202,
2211,
18,
1883,
5888,
273,
374,
31,
202,
474,
1399,
559,
734,
31,
202,
430,
261,
723,
734,
422,
399,
67,
201... |
if (conquerable.match(route.getEnd())) { | Collection conquered = route.getMatches(conquerable); conquered.remove(route.getEnd()); Collection blitzed = Match.getMatches(conquered, canBlitz); | private void addEmptyBattle(Route route, Collection units, TransportTracker tracker, final PlayerID id, final GameData data, IDelegateBridge bridge, UndoableMove changeTracker) { if (!Match.someMatch(units, Matches.UnitIsLand)) return; //find the territories that are considered blitz Match canBlitz = new Match() { public boolean match(Object o) { Territory territory = (Territory) o; return MoveValidator.isBlitzable(territory, data, id); } }; CompositeMatch conquerable = new CompositeMatchAnd(); conquerable.add(Matches.territoryIsEmptyOfCombatUnits(data, id)); conquerable.add(Matches.isTerritoryEnemy(id, data)); conquerable.addInverse(Matches.TerritoryIsNuetral); //check the last territory specially to see if its a naval invasion Collection conquered = route.getMatches(conquerable); //we handle the end of the route later conquered.remove(route.getEnd()); Collection blitzed = Match.getMatches(conquered, canBlitz); m_blitzed.addAll(blitzed); m_conquered.addAll(conquered); Iterator iter = conquered.iterator(); while (iter.hasNext()) { Territory current = (Territory) iter.next(); takeOver(current, id, bridge, data, changeTracker); } //check the last territory if (conquerable.match(route.getEnd())) { Battle precede = getDependentAmphibiousAssault(route); if (precede == null) { if(canBlitz.match(route.getEnd())) { m_blitzed.add(route.getEnd()); } takeOver(route.getEnd(), id, bridge, data, changeTracker); m_conquered.add(route.getEnd()); } else { Battle nonFight = getPendingBattle(route.getEnd(), false); if (nonFight == null) { nonFight = new NonFightingBattle(route.getEnd(), id, this, true, data, tracker); m_pendingBattles.add(nonFight); } nonFight.addAttack(route, units); addDependency(nonFight, precede); } } } | 8339 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8339/44a851b1bdef8d26ea382e74c57b9a2d0a8d64e3/BattleTracker.java/buggy/src/games/strategy/triplea/delegate/BattleTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
527,
1921,
38,
4558,
298,
12,
3255,
1946,
16,
2200,
4971,
16,
9514,
8135,
9745,
16,
727,
19185,
734,
612,
16,
727,
14121,
751,
501,
16,
1599,
292,
4784,
13691,
10105,
16,
135... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
1921,
38,
4558,
298,
12,
3255,
1946,
16,
2200,
4971,
16,
9514,
8135,
9745,
16,
727,
19185,
734,
612,
16,
727,
14121,
751,
501,
16,
1599,
292,
4784,
13691,
10105,
16,
135... |
done = true; synchronized (connectionListeners) { for (Iterator i=connectionListeners.iterator(); i.hasNext(); ) { ConnectionListener listener = (ConnectionListener)i.next(); listener.connectionClosed(); | if (!done) { synchronized (connectionListeners) { for (Iterator i=connectionListeners.iterator(); i.hasNext(); ) { ConnectionListener listener = (ConnectionListener)i.next(); listener.connectionClosed(); } | public void shutdown() { done = true; // Notify connection listeners of the connection closing. synchronized (connectionListeners) { for (Iterator i=connectionListeners.iterator(); i.hasNext(); ) { ConnectionListener listener = (ConnectionListener)i.next(); listener.connectionClosed(); } } } | 966 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/966/334cfd8c3ae8dc9c456d8dd60f982a8b1aa3c3c2/PacketReader.java/clean/source/org/jivesoftware/smack/PacketReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
5731,
1435,
288,
3639,
2731,
273,
638,
31,
3639,
368,
10918,
1459,
4679,
434,
326,
1459,
7647,
18,
3639,
3852,
261,
4071,
5583,
13,
288,
5411,
364,
261,
3198,
277,
33,
4071,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5731,
1435,
288,
3639,
2731,
273,
638,
31,
3639,
368,
10918,
1459,
4679,
434,
326,
1459,
7647,
18,
3639,
3852,
261,
4071,
5583,
13,
288,
5411,
364,
261,
3198,
277,
33,
4071,
... |
JavaCorrectionProcessor.collectAssists(context, null, proposals); | IStatus status= JavaCorrectionProcessor.collectAssists(context, null, proposals); assertStatusOk(status); | protected static final ArrayList collectAssists(IInvocationContext context, Class[] filteredTypes) { ArrayList proposals= new ArrayList(); JavaCorrectionProcessor.collectAssists(context, null, proposals); if (!proposals.isEmpty()) { assertTrue("should be marked as 'has assist'", JavaCorrectionProcessor.hasAssists(context)); } if (filteredTypes != null && filteredTypes.length > 0) { for (Iterator iter= proposals.iterator(); iter.hasNext(); ) { if (isFiltered(iter.next(), filteredTypes)) { iter.remove(); } } } return proposals; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/31560cf83529207374247abeee373980e70f4d80/QuickFixTest.java/buggy/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/QuickFixTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
760,
727,
2407,
3274,
2610,
1486,
12,
45,
9267,
1042,
819,
16,
1659,
8526,
5105,
2016,
13,
288,
202,
202,
19558,
450,
22536,
33,
394,
2407,
5621,
202,
202,
5852,
20884,
5164,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
727,
2407,
3274,
2610,
1486,
12,
45,
9267,
1042,
819,
16,
1659,
8526,
5105,
2016,
13,
288,
202,
202,
19558,
450,
22536,
33,
394,
2407,
5621,
202,
202,
5852,
20884,
5164,
... |
if (target instanceof HexEntity) { if (hex.contains(Terrain.SMOKE)) { toHit.addModifier(2, "target in smoke"); } return toHit; } | public static ToHitData getTargetTerrainModifier(Game game, int entityId) { final Entity target = game.getEntity(entityId); final Hex hex = game.board.getHex(target.getPosition()); // you don't get terrain modifiers in midair if (target.isMakingDfa()) { return new ToHitData(); } ToHitData toHit = new ToHitData(); if (hex.levelOf(Terrain.WATER) > 0 && target.getMovementType() != Entity.MovementType.HOVER) { toHit.addModifier(-1, "target in water"); } if (hex.contains(Terrain.SMOKE)) { toHit.addModifier(2, "target in smoke"); } else if (hex.levelOf(Terrain.WOODS) == 1) { toHit.addModifier(1, "target in light woods"); } else if (hex.levelOf(Terrain.WOODS) > 1) { toHit.addModifier(2, "target in heavy woods"); } return toHit; } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/138fb480bcda082859db47beee9b323d32cf959c/Compute.java/buggy/megamek/src/megamek/common/Compute.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
13616,
18,
1289,
9829,
12,
22,
16,
315,
3299,
316,
3029,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
261,
3299,
1276,
15734,
1943,
13,
288,
309,
261,
7118,
18,
12298,
12,
56,
264,
7596,
18,
7303,
3141,
41,
3719,
288,
358,
13616,
18,
1289,
9829,
12,
22,
16,
315,
3299,
316,
3029,
... | |
synPredMatched83 = false; | synPredMatched100 = false; | public final void wildcard() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST wildcard_AST = null; Token nc1 = null; AST nc1_AST = null; Token nc2 = null; AST nc2_AST = null; boolean synPredMatched83 = false; if (((LA(1)==STAR))) { int _m83 = mark(); synPredMatched83 = true; inputState.guessing++; try { { match(STAR); match(COLON); } } catch (RecognitionException pe) { synPredMatched83 = false; } rewind(_m83); inputState.guessing--; } if ( synPredMatched83 ) { match(STAR); match(COLON); nc1 = LT(1); nc1_AST = astFactory.create(nc1); astFactory.addASTChild(currentAST, nc1_AST); match(NCNAME); if ( inputState.guessing==0 ) { wildcard_AST = (AST)currentAST.root; wildcard_AST= (AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(PREFIX_WILDCARD,"*")).add(nc1_AST)); currentAST.root = wildcard_AST; currentAST.child = wildcard_AST!=null &&wildcard_AST.getFirstChild()!=null ? wildcard_AST.getFirstChild() : wildcard_AST; currentAST.advanceChildToEnd(); } wildcard_AST = (AST)currentAST.root; } else if ((LA(1)==NCNAME)) { nc2 = LT(1); nc2_AST = astFactory.create(nc2); astFactory.addASTChild(currentAST, nc2_AST); match(NCNAME); match(COLON); match(STAR); if ( inputState.guessing==0 ) { wildcard_AST = (AST)currentAST.root; wildcard_AST= (AST)astFactory.make( (new ASTArray(2)).add(nc2_AST).add(astFactory.create(WILDCARD,"*"))); currentAST.root = wildcard_AST; currentAST.child = wildcard_AST!=null &&wildcard_AST.getFirstChild()!=null ? wildcard_AST.getFirstChild() : wildcard_AST; currentAST.advanceChildToEnd(); } wildcard_AST = (AST)currentAST.root; } else if ((LA(1)==STAR)) { AST tmp133_AST = null; tmp133_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp133_AST); match(STAR); if ( inputState.guessing==0 ) { wildcard_AST = (AST)currentAST.root; // make this distinct from multiplication wildcard_AST= astFactory.create(WILDCARD,"*"); currentAST.root = wildcard_AST; currentAST.child = wildcard_AST!=null &&wildcard_AST.getFirstChild()!=null ? wildcard_AST.getFirstChild() : wildcard_AST; currentAST.advanceChildToEnd(); } wildcard_AST = (AST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } returnAST = wildcard_AST; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/991914fac6d8ec32704e1e021ab6bf8707ee56ec/XPathParser2.java/clean/src/org/exist/parser/XPathParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
8531,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
8531,
1435,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
9053,
273,
394,
9183,
4154,
5621,
202,
202,
9053,
8... |
l.start(m1,m2group); endTime = System.currentTimeMillis() - startTime; System.out.println(" Distributed Multiplication : " + endTime + " millisecondes\n\n"); | i++; | public static void main (String args[]) { if (args.length != 2) { System.err.println("missing argument : <nodesListFile> <MatrixSize>"); System.exit(0); } String[] nodesList = readNodesList(args[0]); String targetNode = nodesList[0].substring(0, nodesList[0].length()-1)+"2"; Launcher l = null; try { l = (Launcher) ProActive.newActive("org.objectweb.proactive.examples.matrix.Launcher", new Object[] {nodesList}, targetNode); } catch (Exception e) {e.printStackTrace();} int matrixSize=Integer.parseInt(args[1]); Matrix m1; Matrix m2 = l.createMatrix(matrixSize); long startTime; long endTime; // DISTRIBUTION printMessageAndWait("Ready for distribution"); startTime= System.currentTimeMillis(); Matrix m2group = l.distribute(m2); endTime = System.currentTimeMillis() - startTime; System.out.println(" Distribution : " + endTime + " millisecondes\n\n"); // MULTIPLICATION while (true) { printMessageAndWait("Ready for distributed multiplication"); startTime= System.currentTimeMillis(); m1 = l.createMatrix(matrixSize); System.out.println(m1); System.out.println(m2); l.start(m1,m2group); endTime = System.currentTimeMillis() - startTime; System.out.println(" Distributed Multiplication : " + endTime + " millisecondes\n\n"); } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/6c6cebd15e6ccaa8618f1c96037b6df18600d110/Main.java/clean/src/org/objectweb/proactive/examples/matrix/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
261,
780,
833,
63,
5717,
288,
202,
430,
261,
1968,
18,
2469,
480,
576,
13,
288,
202,
565,
2332,
18,
370,
18,
8222,
2932,
7337,
1237,
294,
411,
4690,
682,
812,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
261,
780,
833,
63,
5717,
288,
202,
430,
261,
1968,
18,
2469,
480,
576,
13,
288,
202,
565,
2332,
18,
370,
18,
8222,
2932,
7337,
1237,
294,
411,
4690,
682,
812,
34... |
Font font = firstColumn.getFont(); | private void createFontList(Composite firstColumn) { Font font = firstColumn.getFont(); Composite parent = new Composite(firstColumn, SWT.NULL); GridLayout layout = new GridLayout(); layout.marginWidth = 0; layout.marginHeight = 0; parent.setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; parent.setLayoutData(data); Label label = new Label(parent, SWT.LEFT); label.setText(WorkbenchMessages.getString("FontsPreference.fonts")); //$NON-NLS-1$ label.setFont(font); fontList = new List(parent, SWT.BORDER); data = new GridData( GridData.VERTICAL_ALIGN_BEGINNING | GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; fontList.setLayoutData(data); fontList.setFont(font); fontList.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { FontDefinition selectedFontDefinition = getSelectedFontDefinition(); if (selectedFontDefinition == null) { changeFontButton.setEnabled(false); useSystemButton.setEnabled(false); } else { changeFontButton.setEnabled(true); useSystemButton.setEnabled(true); updateForSelectedFontDefinition(selectedFontDefinition); } } }); Set names = labelsToDefinitions.keySet(); int nameSize = names.size(); String[] unsortedItems = new String[nameSize]; names.toArray(unsortedItems); Sorter sorter = new Sorter() { private Collator collator = Collator.getInstance(); public boolean compare(Object o1, Object o2) { String s1 = (String) o1; String s2 = (String) o2; return collator.compare(s1, s2) < 0; } }; Object[] sortedItems = sorter.sort(unsortedItems); String[] listItems = new String[nameSize]; System.arraycopy(sortedItems, 0, listItems, 0, nameSize); fontList.setItems(listItems); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa3d8b2c736e3652be89a2f1f10b1731caba01eb/FontPreferencePage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
5711,
682,
12,
9400,
1122,
1494,
13,
288,
202,
202,
5711,
3512,
273,
1122,
1494,
18,
588,
5711,
5621,
202,
202,
9400,
982,
273,
394,
14728,
12,
3645,
1494,
16,
348,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
5711,
682,
12,
9400,
1122,
1494,
13,
288,
202,
202,
5711,
3512,
273,
1122,
1494,
18,
588,
5711,
5621,
202,
202,
9400,
982,
273,
394,
14728,
12,
3645,
1494,
16,
348,... | |
out.println(InspectionGadgetsBundle.message("create.documentation.inspections.enabled.by.default.message")); | out.println(InspectionGadgetsBundle.message( "create.documentation.inspections.enabled.by.default.message")); | private void createDocumentation(PrintStream out){ final Class<? extends LocalInspectionTool>[] classes = getInspectionClasses(); Arrays.sort(classes, new InspectionComparator()); final int numQuickFixes = countQuickFixes(classes, out); out.println(InspectionGadgetsBundle.message("create.documentation.count.inspections.message", classes.length)); out.println(InspectionGadgetsBundle.message("create.documentation.count.quick.fixes.message", numQuickFixes)); String currentGroupName=""; for(final Class<? extends LocalInspectionTool> aClass : classes){ final String className = aClass.getName(); try{ final LocalInspectionTool inspection = aClass.newInstance(); final String groupDisplayName = inspection.getGroupDisplayName(); if(!groupDisplayName.equals(currentGroupName)){ currentGroupName = groupDisplayName; out.println(); out.print(" * "); out.println(currentGroupName); } printInspectionDescription(inspection, out); } catch(InstantiationException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldn.t.instantiate.class", className)); } catch(IllegalAccessException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldnt.access.class", className)); } catch(ClassCastException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldnt.cast.class", className)); } } out.println(); out.println(InspectionGadgetsBundle.message("create.documentation.inspections.enabled.by.default.message")); for(final Class<? extends LocalInspectionTool> aClass : classes){ final String className = aClass.getName(); try{ final LocalInspectionTool inspection = aClass.newInstance(); if(inspection.isEnabledByDefault()){ out.println('\t' + inspection.getDisplayName()); } } catch(InstantiationException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldn.t.instantiate.class", className)); } catch(IllegalAccessException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldnt.access.class", className)); } catch(ClassCastException ignore){ out.print(InspectionGadgetsBundle.message("create.documentation.couldnt.cast.class", className)); } } final File descriptionDirectory = new File(DESCRIPTION_DIRECTORY_NAME); final File[] descriptionFiles = descriptionDirectory.listFiles(); final Set<File> descriptionFilesSet = new HashSet<File>(descriptionFiles.length); for(File descriptionFile1 : descriptionFiles){ if(!descriptionFile1.getName().startsWith(".")){ descriptionFilesSet.add(descriptionFile1); } } for(final Class<? extends LocalInspectionTool> aClass : classes){ final String className = aClass.getName(); final String simpleClassName = className.substring(className.lastIndexOf('.') + 1, className.length() - INSPECTION.length()); @NonNls final String fileName = DESCRIPTION_DIRECTORY_NAME + simpleClassName + ".html"; final File descriptionFile = new File(fileName); if(descriptionFile.exists()){ descriptionFilesSet.remove(descriptionFile); } else{ out.println(InspectionGadgetsBundle.message("create.documentation.couldnt.find.documentation.file.error.message", fileName)); } } for(final File file : descriptionFilesSet){ out.println( InspectionGadgetsBundle.message("create.documentation.unused.documentation.file.error.message", file.getAbsolutePath())); } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/497cb26ab638795ef427fb3aa44b60061439a5e4/InspectionGadgetsPlugin.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/InspectionGadgetsPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
18905,
12,
5108,
1228,
596,
15329,
3639,
727,
1659,
12880,
3231,
3566,
14985,
6364,
34,
8526,
3318,
273,
336,
14985,
4818,
5621,
3639,
5647,
18,
3804,
12,
4701,
16,
394,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
752,
18905,
12,
5108,
1228,
596,
15329,
3639,
727,
1659,
12880,
3231,
3566,
14985,
6364,
34,
8526,
3318,
273,
336,
14985,
4818,
5621,
3639,
5647,
18,
3804,
12,
4701,
16,
394,
2... |
if (! (data[1] instanceof PAToken)) { throw new PainterException("undef: wrong arguments"); | else if (data[0] instanceof HashMap) { size = ( (HashMap) data[0]).size(); | public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap)) { throw new PainterException("undef: wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("undef: wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("undef: wrong arguments"); } // we don't do an actual undef because we don't care } | 3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/daa5304636a08f20e2545b070a8a5d968b0ebfb8/PAContext.java/buggy/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
3639,
17988,
969,
9670,
969,
31,
3639,
501,
273,
819,
18,
5120,
3542,
5708,
12,
22,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
3639,
17988,
969,
9670,
969,
31,
3639,
501,
273,
819,
18,
5120,
3542,
5708,
12,
22,
176... |
while ((workerIt.hasNext()) && taskIt.hasNext()) { | while ((workerIt.hasNext()) && this.taskProvider.hasNext().booleanValue()) { | public void start() { Body body = ProActive.getBodyOnThis(); if (!body.isActive()) { logger.fatal("The manager is not active"); throw new RuntimeException("The manager is not active"); } if (this.isComputing) { // nothing to do logger.info("The manager is already started"); return; } this.isComputing = true; Iterator taskIt = this.tasks.iterator(); Group group = ProActiveGroup.getGroup(this.workerGroup); Iterator workerIt = group.iterator(); while ((workerIt.hasNext()) && taskIt.hasNext()) { this.assignTaskToWorker((Worker) workerIt.next(), (Task) taskIt.next()); } Service service = new Service(body); while (taskIt.hasNext()) { try { // wait for a free worker int index = ProActive.waitForAny(this.futureTaskList, 500); this.allResults.add(this.futureTaskList.remove(index)); this.pendingTaskList.remove(index); Worker freeWorker = (Worker) this.workingWorkerList.remove(index); this.assignTaskToWorker(freeWorker, (Task) taskIt.next()); } catch (ProActiveException e) { while (service.getRequestCount() > 0) { service.serveOldest(); } continue; } } // Serving requests and waiting for results while (taskIt.hasNext() || (this.allResults.size() != this.tasks.size())) { try { int index = ProActive.waitForAny(this.futureTaskList, 500); this.allResults.add(this.futureTaskList.remove(index)); this.freeWorkerList.add(this.workingWorkerList.remove(index)); } catch (ProActiveException e) { while (service.getRequestCount() > 0) { service.serveOldest(); } continue; } } System.out.println("Total of results = " + this.allResults.size()); System.out.println("Total of tasks = " + this.tasks.size()); // Set the final result this.finalResult = this.rootTask.gather((Result[]) this.allResults.toArray( new Result[this.allResults.size()])); this.isComputing = false; } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/080cb45c9a42cc5dd69932f892e1fcf2a2fa3902/Manager.java/clean/src/org/objectweb/proactive/p2p/api/core/Manager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
1435,
288,
3639,
5652,
1417,
273,
1186,
3896,
18,
588,
2250,
1398,
2503,
5621,
3639,
309,
16051,
3432,
18,
291,
3896,
10756,
288,
5411,
1194,
18,
30709,
2932,
1986,
3301,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
1435,
288,
3639,
5652,
1417,
273,
1186,
3896,
18,
588,
2250,
1398,
2503,
5621,
3639,
309,
16051,
3432,
18,
291,
3896,
10756,
288,
5411,
1194,
18,
30709,
2932,
1986,
3301,
... |
WorkbenchPlugin.getDefault().getPreferenceStore().setValue( | PrefUtil.getAPIPreferenceStore().setValue( | public void setCurrentTheme(String id) { ITheme oldTheme = currentTheme; if (WorkbenchThemeManager.getInstance().doSetCurrentTheme(id)) { firePropertyChange(CHANGE_CURRENT_THEME, oldTheme, getCurrentTheme()); if (oldTheme != null) oldTheme.removePropertyChangeListener(currentThemeListener); currentTheme.addPropertyChangeListener(currentThemeListener); // update the preference if required. if (!WorkbenchPlugin.getDefault().getPreferenceStore().getString( IWorkbenchPreferenceConstants.CURRENT_THEME_ID).equals(id)) { WorkbenchPlugin.getDefault().getPreferenceStore().setValue( IWorkbenchPreferenceConstants.CURRENT_THEME_ID, id); //$NON-NLS-1$ WorkbenchPlugin.getDefault().savePluginPreferences(); } //update the jface registries { ColorRegistry jfaceColors = JFaceResources.getColorRegistry(); ColorRegistry themeColors = currentTheme.getColorRegistry(); for (Iterator i = themeColors.getKeySet().iterator(); i .hasNext();) { String key = (String) i.next(); jfaceColors.put(key, themeColors.getRGB(key)); } } { FontRegistry jfaceFonts = JFaceResources.getFontRegistry(); FontRegistry themeFonts = currentTheme.getFontRegistry(); for (Iterator i = themeFonts.getKeySet().iterator(); i .hasNext();) { String key = (String) i.next(); jfaceFonts.put(key, themeFonts.getFontData(key)); } } } } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f0041368a7eaaaac4f174f8df8481886f598818e/WorkbenchThemeManager.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/themes/WorkbenchThemeManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12589,
8335,
12,
780,
612,
13,
288,
3639,
467,
8335,
1592,
8335,
273,
783,
8335,
31,
3639,
309,
261,
2421,
22144,
8335,
1318,
18,
588,
1442,
7675,
2896,
694,
3935,
8335,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12589,
8335,
12,
780,
612,
13,
288,
3639,
467,
8335,
1592,
8335,
273,
783,
8335,
31,
3639,
309,
261,
2421,
22144,
8335,
1318,
18,
588,
1442,
7675,
2896,
694,
3935,
8335,
12,
... |
set(parameterIndex, (new Integer(x)).toString()); | set(parameterIndex, Integer.toString(x)); | public void setByte(int parameterIndex, byte x) throws SQLException { set(parameterIndex, (new Integer(x)).toString()); } | 46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/49740c5fb99094b3942d7b8588f545907fd17074/PreparedStatement.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/PreparedStatement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3216,
12,
474,
25412,
16,
1160,
619,
13,
1216,
6483,
202,
95,
202,
202,
542,
12,
6775,
1016,
16,
261,
2704,
2144,
12,
92,
13,
2934,
10492,
10663,
202,
97,
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,
225,
202,
482,
918,
444,
3216,
12,
474,
25412,
16,
1160,
619,
13,
1216,
6483,
202,
95,
202,
202,
542,
12,
6775,
1016,
16,
261,
2704,
2144,
12,
92,
13,
2934,
10492,
10663,
202,
97,
2,
-100,... |
listener.connectionErrorOccurred(connectionEvent); | try { if (connection == null || connection.isClosed()) { listener.connectionErrorOccurred(connectionEvent); } } catch (SQLException ex) { } | public synchronized void fireConnectionEvent(boolean closed, SQLException sqlException) { if (listeners.size() > 0) { ConnectionEvent connectionEvent = new ConnectionEvent(this, sqlException); Iterator iterator = listeners.iterator(); while (iterator.hasNext()) { ConnectionEventListener listener = (ConnectionEventListener) iterator.next(); if (closed) { listener.connectionClosed(connectionEvent); } else { // TODO Only notify listener if the error is fatal listener.connectionErrorOccurred(connectionEvent); } } } } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/d0ec4abe17e09ae4768b31e1b621cd0558fcb544/PooledConnection.java/clean/src/main/net/sourceforge/jtds/jdbcx/PooledConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
4452,
1952,
1133,
12,
6494,
4375,
16,
6483,
1847,
503,
13,
288,
3639,
309,
261,
16072,
18,
1467,
1435,
405,
374,
13,
288,
5411,
4050,
1133,
1459,
1133,
273,
394,
4050,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
4452,
1952,
1133,
12,
6494,
4375,
16,
6483,
1847,
503,
13,
288,
3639,
309,
261,
16072,
18,
1467,
1435,
405,
374,
13,
288,
5411,
4050,
1133,
1459,
1133,
273,
394,
4050,
... |
fStructurePage = new ProjectStructurePage("page1", fProjectProvider, fFragmentData, true); fContentPage = new ContentPage("page2", fProjectProvider, fStructurePage, fFragmentData, true); addPage(fStructurePage); | fContentPage = new FragmentContentPage("page2", fProjectProvider, fMainPage, fFragmentData); | public void addPages() { fMainPage = new WizardNewProjectCreationPage("main"); //$NON-NLS-1$ fMainPage.setTitle(PDEPlugin.getResourceString("NewProjectWizard.MainPage.ftitle")); //$NON-NLS-1$ fMainPage.setDescription(PDEPlugin.getResourceString("NewProjectWizard.MainPage.fdesc")); //$NON-NLS-1$ addPage(fMainPage); fProjectProvider = new IProjectProvider() { public String getProjectName() { return fMainPage.getProjectName(); } public IProject getProject() { return fMainPage.getProjectHandle(); } public IPath getLocationPath() { return fMainPage.getLocationPath(); } }; fStructurePage = new ProjectStructurePage("page1", fProjectProvider, fFragmentData, true); //$NON-NLS-1$ fContentPage = new ContentPage("page2", fProjectProvider, fStructurePage, fFragmentData, true); //$NON-NLS-1$ addPage(fStructurePage); addPage(fContentPage); } | 8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/8d27aa46e8b907fa6061d8651d021a3ca7d1b2a2/NewFragmentProjectWizard.java/buggy/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/plugin/NewFragmentProjectWizard.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
5716,
1435,
288,
202,
202,
74,
6376,
1964,
273,
394,
678,
13412,
1908,
4109,
9906,
1964,
2932,
5254,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
6376,
1964,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
5716,
1435,
288,
202,
202,
74,
6376,
1964,
273,
394,
678,
13412,
1908,
4109,
9906,
1964,
2932,
5254,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
74,
6376,
1964,... |
public static int bytesRequiredWhenCopied(Object fromObj, VM_Class type) { return VM_JavaHeader.bytesRequiredWhenCopied(fromObj, type); | public static int bytesRequiredWhenCopied(Object obj) { Object[] tib = getTIB(obj); VM_Type type = VM_Magic.objectAsType(tib[VM_TIBLayoutConstants.TIB_TYPE_INDEX]); if (type.isClassType()) { return bytesRequiredWhenCopied(obj, type.asClass()); } else { int numElements = VM_Magic.getArrayLength(obj); return bytesRequiredWhenCopied(obj, type.asArray(), numElements); } | public static int bytesRequiredWhenCopied(Object fromObj, VM_Class type) { return VM_JavaHeader.bytesRequiredWhenCopied(fromObj, type); } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/3c0756abda37636c945aa641fbe8139169e9ad16/VM_ObjectModel.java/buggy/rvm/src/vm/objectModel/VM_ObjectModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
1731,
3705,
9434,
28127,
12,
921,
628,
2675,
16,
8251,
67,
797,
618,
13,
288,
565,
327,
8251,
67,
5852,
1864,
18,
3890,
3705,
9434,
28127,
12,
2080,
2675,
16,
618,
1769,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
509,
1731,
3705,
9434,
28127,
12,
921,
628,
2675,
16,
8251,
67,
797,
618,
13,
288,
565,
327,
8251,
67,
5852,
1864,
18,
3890,
3705,
9434,
28127,
12,
2080,
2675,
16,
618,
1769,... |
relationshipMap.setList("joins", joins); relationshipMap.setMap("userInfo", myUserInfo, true); | relationshipMap.setList("joins", joins, true); relationshipMap.setMap("userInfo", getUserInfo(), true); | public EOModelMap toMap() { EOModelMap relationshipMap = myRelationshipMap.cloneModelMap(); relationshipMap.setString("destination", myDestination.getName(), true); //$NON-NLS-1$ relationshipMap.setString("definition", myDefinition, true); //$NON-NLS-1$ relationshipMap.setBoolean("isMandatory", myMandatory); //$NON-NLS-1$ relationshipMap.setBoolean("isToMany", myToMany); //$NON-NLS-1$ if (myJoinSemantic != null) { relationshipMap.setString("joinSemantic", myJoinSemantic.getID(), true); //$NON-NLS-1$ } relationshipMap.setString("name", myName, true); //$NON-NLS-1$ if (myDeleteRule != null && myDeleteRule != EODeleteRule.NULLIFY) { relationshipMap.setString("deleteRule", myDeleteRule.getID(), true); //$NON-NLS-1$ } relationshipMap.setBoolean("ownsDestination", myOwnsDestination); //$NON-NLS-1$ relationshipMap.setBoolean("propagatesPrimaryKey", myPropagatesPrimaryKey); //$NON-NLS-1$ relationshipMap.setInteger("numberOfToManyFaultsToBatchFetch", myNumberOfToManyFaultsToBatchFetch); //$NON-NLS-1$ List joins = new LinkedList(); Iterator joinsIter = myJoins.iterator(); while (joinsIter.hasNext()) { EOJoin join = (EOJoin) joinsIter.next(); EOModelMap joinMap = join.toMap(); joins.add(joinMap); } relationshipMap.setList("joins", joins); //$NON-NLS-1$ relationshipMap.setMap("userInfo", myUserInfo, true); //$NON-NLS-1$ return relationshipMap; } | 46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/85e8c5c5e6069e4a772ec9eb7716a51dc31c2178/EORelationship.java/buggy/wolips/plugins/org.objectstyle.wolips.eomodeler/java/org/objectstyle/wolips/eomodeler/model/EORelationship.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
512,
51,
1488,
863,
24382,
1435,
288,
565,
512,
51,
1488,
863,
5232,
863,
273,
3399,
8180,
863,
18,
14056,
1488,
863,
5621,
565,
5232,
863,
18,
542,
780,
2932,
10590,
3113,
3399,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
512,
51,
1488,
863,
24382,
1435,
288,
565,
512,
51,
1488,
863,
5232,
863,
273,
3399,
8180,
863,
18,
14056,
1488,
863,
5621,
565,
5232,
863,
18,
542,
780,
2932,
10590,
3113,
3399,
... |
logClient.doLog(paths, startRevision ,endRevision, stopOnCopy, myReportPaths, 0, this); | logClient.doLog(paths, startRevision ,endRevision, stopOnCopy, myReportPaths, limit, this); | public void run(PrintStream out, PrintStream err) throws SVNException { String revStr = (String) getCommandLine().getArgumentValue(SVNArgument.REVISION); SVNRevision startRevision = SVNRevision.UNDEFINED; SVNRevision endRevision = SVNRevision.UNDEFINED; if (revStr != null && revStr.indexOf(':') > 0) { startRevision = SVNRevision.parse(revStr.substring(0, revStr.indexOf(':'))); endRevision = SVNRevision.parse(revStr.substring(revStr.indexOf(':') + 1)); } else if (revStr != null) { startRevision = SVNRevision.parse(revStr); } if (startRevision.isValid() && !endRevision.isValid()) { endRevision = startRevision; } else if (!startRevision.isValid()) { if (getCommandLine().hasURLs()) { startRevision = SVNRevision.HEAD; } else { startRevision = SVNRevision.BASE; } if (!endRevision.isValid()) { endRevision = SVNRevision.create(0); } } boolean stopOnCopy = getCommandLine().hasArgument(SVNArgument.STOP_ON_COPY); myReportPaths = getCommandLine().hasArgument(SVNArgument.VERBOSE); myIsQuiet = getCommandLine().hasArgument(SVNArgument.QUIET); final StringBuffer buffer = new StringBuffer(); myPrintStream = new PrintStream(System.out, true) { public void print(String s) { super.print(s); buffer.append(s); } }; SVNLogClient logClient = getClientManager().getLogClient(); if (getCommandLine().hasURLs()) { String url = getCommandLine().getURL(0); Collection targets = new ArrayList(); for(int i = 0; i < getCommandLine().getPathCount(); i++) { targets.add(getCommandLine().getPathAt(i)); } String[] paths = (String[]) targets.toArray(new String[targets.size()]); logClient.doLog(SVNURL.parseURIEncoded(url), paths, SVNRevision.UNDEFINED, startRevision ,endRevision, stopOnCopy, myReportPaths, 0, this); } else if (getCommandLine().hasPaths()) { Collection targets = new ArrayList(); for(int i = 0; i < getCommandLine().getPathCount(); i++) { targets.add(new File(getCommandLine().getPathAt(i)).getAbsoluteFile()); } File[] paths = (File[]) targets.toArray(new File[targets.size()]); logClient.doLog(paths, startRevision ,endRevision, stopOnCopy, myReportPaths, 0, this); } if (myHasLogEntries) { myPrintStream.print(SEPARATOR); } } | 2776 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2776/13e8e850ceaededef4e64ff755ede1b09a08ca77/LogCommand.java/clean/javasvn/src/org/tmatesoft/svn/cli/command/LogCommand.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1086,
12,
5108,
1228,
596,
16,
21677,
393,
13,
1216,
29537,
50,
503,
288,
3639,
514,
5588,
1585,
273,
261,
780,
13,
12856,
1670,
7675,
588,
1379,
620,
12,
23927,
50,
1379,
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,
1086,
12,
5108,
1228,
596,
16,
21677,
393,
13,
1216,
29537,
50,
503,
288,
3639,
514,
5588,
1585,
273,
261,
780,
13,
12856,
1670,
7675,
588,
1379,
620,
12,
23927,
50,
1379,
18... |
return result; | return (X10Call_c) this.type(retType); | private X10Call_c adjustMI(TypeChecker tc) throws SemanticException { X10MethodInstance xmi = (X10MethodInstance) mi; if (mi == null) return this; X10Type type = (X10Type) mi.returnType(); //if (! type.isCanonical()) // return result; Constraint rc = type.realClause(); X10Call_c result = this; if (rc != null) { HashMap<C_Var,Promise> m = rc.roots(); if (m != null) { Set<C_Var> vars = m.keySet(); HashMap<C_Root, C_Var> subs = new HashMap<C_Root, C_Var>(); for (Iterator<C_Var> it = vars.iterator(); it.hasNext();) { C_Root var = (C_Root) it.next(); if (var.equals(C_Special.This)) { assert(target != null); C_Var realThis = selfVar((X10Type) target.type(), rc); subs.put(var, realThis); } else if (var instanceof C_Local){ X10LocalInstance li = ((C_Local) var).localInstance(); assert li != null; int p = li.positionInArgList(); if (p >= 0) { Expr arg = (Expr) arguments.get(p); C_Var realVar = selfVar((X10Type) arg.type(), rc); subs.put(var,realVar); } } } if (! subs.isEmpty()) { Constraint newRC = rc.substitute(subs); X10Type retType = type.makeVariant(newRC, null); mi = mi.returnType(retType);// TODO vj: Is this really necessary? result = (X10Call_c)this.methodInstance(mi).type(mi.returnType()); } } } return result; } | 1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/X10Call_c.java/clean/x10.compiler/src/polyglot/ext/x10/ast/X10Call_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1139,
2163,
1477,
67,
71,
5765,
7492,
12,
559,
8847,
1715,
13,
1216,
24747,
503,
288,
377,
202,
377,
202,
60,
2163,
1305,
1442,
619,
9197,
273,
261,
60,
2163,
1305,
1442,
13,
1283... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1139,
2163,
1477,
67,
71,
5765,
7492,
12,
559,
8847,
1715,
13,
1216,
24747,
503,
288,
377,
202,
377,
202,
60,
2163,
1305,
1442,
619,
9197,
273,
261,
60,
2163,
1305,
1442,
13,
1283... |
public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen(); | public quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { quickfix.field.EncodedTextLen value = new quickfix.field.EncodedTextLen(); | public org.quickfix.field.EncodedTextLen getEncodedTextLen() throws FieldNotFound { org.quickfix.field.EncodedTextLen value = new org.quickfix.field.EncodedTextLen(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Advertisement.java/buggy/src/java/src/quickfix/fix44/Advertisement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
28799,
1528,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
460,
273,
394,
235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
28799,
1528,
2891,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
1528,
2891,
460,
273,
394,
235... |
if ( ReportItem.BOUND_DATA_COLUMNS_PROP.equalsIgnoreCase( name ) | if ( IReportItemModel.BOUND_DATA_COLUMNS_PROP.equalsIgnoreCase( name ) | protected AbstractParseState generalJumpTo( ) { if ( DesignElement.USER_PROPERTIES_PROP.equalsIgnoreCase( name ) ) { AbstractPropertyState state = new UserPropertyListState( handler, element ); state.setName( name ); return state; } if ( element instanceof Module ) { if ( Module.INCLUDE_SCRIPTS_PROP.equalsIgnoreCase( name ) ) { SimpleStructureListState state = new SimpleStructureListState( handler, element ); state.setName( name ); state.setMemberName( IncludeScript.FILE_NAME_MEMBER ); return state; } if ( ( Module.LIBRARIES_PROP.equalsIgnoreCase( name ) ) || ( "includeLibraries".equals( name ) ) ) //$NON-NLS-1$ { AbstractPropertyState state = new IncludedLibrariesStructureListState( handler, element ); state.setName( Module.LIBRARIES_PROP ); return state; } } if ( ScalarParameter.BOUND_DATA_COLUMNS_PROP.equalsIgnoreCase( name ) && element instanceof ScalarParameter ) { CompatibleBoundColumnState state = new CompatibleBoundColumnState( handler, element ); state.setName( name ); return state; } if ( ReportItem.BOUND_DATA_COLUMNS_PROP.equalsIgnoreCase( name ) && element instanceof ReportItem ) { CompatibleBoundColumnState state = new CompatibleBoundColumnState( handler, element ); state.setName( name ); return state; } return super.generalJumpTo( ); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d802c33711e0d111551ae23575895cd060f085b6/ListPropertyState.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/parser/ListPropertyState.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
4115,
3201,
1119,
7470,
26743,
774,
12,
262,
202,
95,
202,
202,
430,
261,
29703,
1046,
18,
4714,
67,
17421,
67,
15811,
18,
14963,
5556,
12,
508,
262,
262,
202,
202,
95,
1082,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4115,
3201,
1119,
7470,
26743,
774,
12,
262,
202,
95,
202,
202,
430,
261,
29703,
1046,
18,
4714,
67,
17421,
67,
15811,
18,
14963,
5556,
12,
508,
262,
262,
202,
202,
95,
1082,... |
NodeList nl = this.processor.selectNodeList(this.doc.getDocumentElement(), this.xpath); | NodeList nl = this.processor.selectNodeList(this.doc.getDocumentElement(), this.xpath,this.prefixResolver); | protected void performXPathQuery(File xmlFile) throws SAXException { this.doc = null; Source source = null; try { source = resolver.resolveURI(xmlFile.toURL().toExternalForm()); this.doc = this.parser.parseDocument(SourceUtil.getInputSource(source)); } catch (SAXException e) { getLogger().error("Warning:" + xmlFile.getName() + " is not a valid XML file. Ignoring.", e); } catch (ProcessingException e) { getLogger().error("Warning: Problem while reading the file " + xmlFile.getName() + ". Ignoring.", e); } catch (IOException e) { getLogger().error("Warning: Problem while reading the file " + xmlFile.getName() + ". Ignoring.", e); } finally { resolver.release(source); } if (doc != null) { NodeList nl = this.processor.selectNodeList(this.doc.getDocumentElement(), this.xpath); AttributesImpl attributes = new AttributesImpl(); attributes.addAttribute("", QUERY_ATTR_NAME, QUERY_ATTR_NAME, "CDATA", xpath); super.contentHandler.startElement(URI, XPATH_NODE_NAME, PREFIX + ":" + XPATH_NODE_NAME, attributes); DOMStreamer ds = new DOMStreamer(super.xmlConsumer); for (int i = 0; i < nl.getLength(); i++) { ds.stream(nl.item(i)); } super.contentHandler.endElement(URI, XPATH_NODE_NAME, PREFIX + ":" + XPATH_NODE_NAME); } } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/2ca23fb0f3a74538c9a48aa9a019f25d512650aa/XPathDirectoryGenerator.java/clean/src/java/org/apache/cocoon/generation/XPathDirectoryGenerator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3073,
14124,
1138,
12,
812,
2025,
812,
13,
1216,
14366,
288,
3639,
333,
18,
2434,
273,
446,
31,
3639,
4998,
1084,
273,
446,
31,
3639,
775,
288,
5411,
1084,
273,
5039,
18,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3073,
14124,
1138,
12,
812,
2025,
812,
13,
1216,
14366,
288,
3639,
333,
18,
2434,
273,
446,
31,
3639,
4998,
1084,
273,
446,
31,
3639,
775,
288,
5411,
1084,
273,
5039,
18,
108... |
preferencesMenuItem = new JMenuItem("Filters/Suppressions..."); JMenuItem sortMenuItem = new JMenuItem("Sort Configuration..."); JMenuItem goToLineMenuItem = new JMenuItem("Go to line..."); | preferencesMenuItem = newJMenuItem("Filters/Suppressions..."); JMenuItem sortMenuItem = newJMenuItem("Sort Configuration..."); JMenuItem goToLineMenuItem = newJMenuItem("Go to line..."); | protected JMenuBar createMainMenuBar() { JMenuBar menuBar = new JMenuBar(); //Create JMenus for menuBar. JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic(KeyEvent.VK_F); JMenu editMenu = new JMenu("Edit"); editMenu.setMnemonic(KeyEvent.VK_E); //Edit fileMenu JMenu object. JMenuItem newProjectMenuItem = new JMenuItem("New Project", KeyEvent.VK_N); JMenuItem openProjectMenuItem = new JMenuItem("Open Project...", KeyEvent.VK_O); recentProjectsMenu = new JMenu("Recent Projects"); recentProjectsMenu.setMnemonic(KeyEvent.VK_E); createRecentProjectsMenu(); JMenuItem saveAsProjectMenuItem = new JMenuItem("Save Project As...", KeyEvent.VK_A); JMenuItem importBugsMenuItem = new JMenuItem("Load Analysis...", KeyEvent.VK_L); JMenuItem exportBugsMenuItem = new JMenuItem("Save Analysis...", KeyEvent.VK_B); JMenuItem redoAnalysis = new JMenuItem("Redo Analysis", KeyEvent.VK_R); JMenuItem mergeMenuItem = new JMenuItem("Merge Analysis..."); JMenuItem exitMenuItem = null; if (!MAC_OS_X) { exitMenuItem = new JMenuItem("Exit", KeyEvent.VK_X); exitMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ callOnClose(); } }); } JMenu windowMenu = guiLayout.createWindowMenu(); attachAccelaratorKey(newProjectMenuItem, KeyEvent.VK_N); newProjectMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ newProjectMenu(); } }); attachAccelaratorKey(editProjectMenuItem, KeyEvent.VK_F); editProjectMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { saveComments(currentSelectedBugLeaf, currentSelectedBugAspects); new NewProjectWizard(curProject); } }); openProjectMenuItem.setEnabled(true); attachAccelaratorKey(openProjectMenuItem, KeyEvent.VK_O); openProjectMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ openProject(); } }); mergeMenuItem.setEnabled(true); mergeMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ mergeAnalysis(); } }); redoAnalysis.setEnabled(true); attachAccelaratorKey(redoAnalysis, KeyEvent.VK_R); redoAnalysis.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ redoAnalysis(); } }); saveProjectMenuItem.setEnabled(false); attachAccelaratorKey(saveProjectMenuItem, KeyEvent.VK_S); saveProjectMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ saveComments(currentSelectedBugLeaf, currentSelectedBugAspects); save(projectDirectory); } }); saveAsProjectMenuItem.setEnabled(true); attachAccelaratorKey(saveAsProjectMenuItem, KeyEvent.VK_S, Event.SHIFT_MASK); saveAsProjectMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ saveComments(currentSelectedBugLeaf, currentSelectedBugAspects); if(projectSaveAs()) saveProjectMenuItem.setEnabled(true); } }); attachAccelaratorKey(importBugsMenuItem, KeyEvent.VK_O, Event.ALT_MASK); importBugsMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ loadAnalysis(); } }); exportBugsMenuItem.setEnabled(true); attachAccelaratorKey(exportBugsMenuItem, KeyEvent.VK_S, Event.ALT_MASK); exportBugsMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ saveAnalysis(); } }); fileMenu.add(newProjectMenuItem); fileMenu.add(editProjectMenuItem); fileMenu.addSeparator(); fileMenu.add(openProjectMenuItem); fileMenu.add(recentProjectsMenu); fileMenu.addSeparator(); fileMenu.add(saveProjectMenuItem); fileMenu.add(saveAsProjectMenuItem); fileMenu.addSeparator(); fileMenu.add(importBugsMenuItem); fileMenu.add(exportBugsMenuItem); fileMenu.addSeparator(); fileMenu.add(redoAnalysis); fileMenu.add(mergeMenuItem); if (exitMenuItem != null) { fileMenu.addSeparator(); fileMenu.add(exitMenuItem); } menuBar.add(fileMenu); //Edit editMenu Menu object. JMenuItem cutMenuItem = new JMenuItem(new CutAction()); JMenuItem copyMenuItem = new JMenuItem(new CopyAction()); JMenuItem pasteMenuItem = new JMenuItem(new PasteAction()); preferencesMenuItem = new JMenuItem("Filters/Suppressions..."); JMenuItem sortMenuItem = new JMenuItem("Sort Configuration..."); JMenuItem goToLineMenuItem = new JMenuItem("Go to line..."); attachAccelaratorKey(cutMenuItem, KeyEvent.VK_X); attachAccelaratorKey(copyMenuItem, KeyEvent.VK_C); attachAccelaratorKey(pasteMenuItem, KeyEvent.VK_V); preferencesMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ saveComments(currentSelectedBugLeaf, currentSelectedBugAspects); PreferencesFrame.getInstance().setLocationRelativeTo(MainFrame.this); PreferencesFrame.getInstance().setVisible(true); } }); sortMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ saveComments(currentSelectedBugLeaf, currentSelectedBugAspects); SorterDialog.getInstance().setLocationRelativeTo(MainFrame.this); SorterDialog.getInstance().setVisible(true); } }); attachAccelaratorKey(goToLineMenuItem, KeyEvent.VK_L); goToLineMenuItem.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent evt){ guiLayout.makeSourceVisible(); try{ int num = Integer.parseInt(JOptionPane.showInputDialog(MainFrame.this, "", "Go To Line:", JOptionPane.QUESTION_MESSAGE)); displayer.showLine(num); } catch(NumberFormatException e){} }}); editMenu.add(cutMenuItem); editMenu.add(copyMenuItem); editMenu.add(pasteMenuItem); editMenu.addSeparator(); editMenu.add(goToLineMenuItem); editMenu.addSeparator(); //editMenu.add(selectAllMenuItem);// editMenu.addSeparator(); editMenu.add(preferencesMenuItem); editMenu.add(sortMenuItem); menuBar.add(editMenu); if (windowMenu != null) menuBar.add(windowMenu); final ActionMap map = tree.getActionMap(); JMenu navMenu = new JMenu("Navigation"); addNavItem(map, navMenu, "Expand", "expand", KeyEvent.VK_RIGHT ); addNavItem(map, navMenu, "Collapse", "collapse", KeyEvent.VK_LEFT); addNavItem(map, navMenu, "Up", "selectPrevious", KeyEvent.VK_UP ); addNavItem(map, navMenu, "Down", "selectNext", KeyEvent.VK_DOWN); menuBar.add(navMenu); JMenu designationMenu = new JMenu("Designation"); int i = 0; int keyEvents [] = {KeyEvent.VK_1, KeyEvent.VK_2, KeyEvent.VK_3, KeyEvent.VK_4, KeyEvent.VK_5, KeyEvent.VK_6, KeyEvent.VK_7, KeyEvent.VK_8, KeyEvent.VK_9}; for(String key : I18N.instance().getUserDesignationKeys(true)) { String name = I18N.instance().getUserDesignation(key); addDesignationItem(designationMenu, name, keyEvents[i++]); } menuBar.add(designationMenu); if (!MAC_OS_X) { // On Mac, 'About' appears under Findbugs menu, so no need for it here JMenu helpMenu = new JMenu("Help"); JMenuItem aboutItem = new JMenuItem("About FindBugs"); helpMenu.add(aboutItem); aboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { about(); } }); menuBar.add(helpMenu); } return menuBar; } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/8030c91e4cc5c69deace557c469b6f68f3144426/MainFrame.java/buggy/findbugs/src/java5/edu/umd/cs/findbugs/gui2/MainFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
804,
4599,
5190,
752,
6376,
4599,
5190,
1435,
288,
202,
202,
46,
4599,
5190,
3824,
5190,
273,
394,
804,
4599,
5190,
5621,
9506,
202,
759,
1684,
804,
29755,
364,
3824,
5190,
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,
804,
4599,
5190,
752,
6376,
4599,
5190,
1435,
288,
202,
202,
46,
4599,
5190,
3824,
5190,
273,
394,
804,
4599,
5190,
5621,
9506,
202,
759,
1684,
804,
29755,
364,
3824,
5190,
18,... |
setPropertySilently( JoinCondition.LEFT_DATASET_MEMBER, leftDataset ); | setProperty( JoinCondition.LEFT_DATASET_MEMBER, leftDataset ); | public void setLeftDataSet( String leftDataset ) { setPropertySilently( JoinCondition.LEFT_DATASET_MEMBER, leftDataset ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ed446d9623424260d8ee1e1afb63abb84e497547/JoinConditionHandle.java/clean/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/JoinConditionHandle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
3910,
13676,
12,
514,
2002,
10656,
262,
202,
95,
202,
202,
542,
1396,
55,
8125,
715,
12,
4214,
3418,
18,
10066,
67,
4883,
4043,
67,
19630,
16,
2002,
10656,
11272,
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,
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,
3910,
13676,
12,
514,
2002,
10656,
262,
202,
95,
202,
202,
542,
1396,
55,
8125,
715,
12,
4214,
3418,
18,
10066,
67,
4883,
4043,
67,
19630,
16,
2002,
10656,
11272,
20... |
final String suiteName, final Map parameters, final String annotationType) { super(true); | final String suiteName, final Map parameters, final String annotationType, final int logLevel) { super(true); | public CustomSuite(final String projectName, final String suiteName, final Map parameters, final String annotationType) { super(true); m_projectName= projectName; m_suiteName= suiteName; m_parameters= parameters; if("1.4".equals(annotationType) || TestNG.JAVADOC_ANNOTATION_TYPE.equals(annotationType)) { m_annotationType= TestNG.JAVADOC_ANNOTATION_TYPE; } else { m_annotationType= TestNG.JDK_ANNOTATION_TYPE; } } | 54619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54619/d42cff6078dc81fdbe15ceb2b18037f7fa09bb58/CustomSuite.java/buggy/src/main/org/testng/eclipse/util/CustomSuite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6082,
13587,
12,
6385,
514,
17234,
16,
15604,
727,
514,
11371,
461,
16,
15604,
727,
1635,
1472,
16,
15604,
727,
514,
17239,
13,
288,
1377,
2240,
12,
3767,
1769,
1377,
312,
67,
4406,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6082,
13587,
12,
6385,
514,
17234,
16,
15604,
727,
514,
11371,
461,
16,
15604,
727,
1635,
1472,
16,
15604,
727,
514,
17239,
13,
288,
1377,
2240,
12,
3767,
1769,
1377,
312,
67,
4406,... |
sp.printHTML("<h3>Sorry, but there is no items in this category for this region.</h3><br>"); | sp.printHTML( "<h3>Sorry, but there is no items in this category for this region.</h3><br>"); | private void itemList(Integer categoryId, Integer regionId, int page, int nbOfItems) { try { Enumeration list; ItemPK itemPK; ItemHome iHome; Item item; Query query; QueryHome qHome; qHome = (QueryHome)PortableRemoteObject.narrow(initialContext.lookup("QueryHome"), QueryHome.class); query = qHome.create(); iHome = (ItemHome)PortableRemoteObject.narrow(initialContext.lookup("ItemHome"), ItemHome.class); list = query.getCurrentItemsInCategoryAndRegion(categoryId, regionId, page*nbOfItems, nbOfItems).elements(); if (list.hasMoreElements()) { sp.printItemHeader(); while (list.hasMoreElements()) { itemPK = (ItemPK)list.nextElement(); item = iHome.findByPrimaryKey(itemPK); sp.printItem(item); } } else { if (page == 0) sp.printHTML("<h3>Sorry, but there is no items in this category for this region.</h3><br>"); else { sp.printHTML("<h3>Sorry, but there is no more items in this category for this region.</h3><br>"); sp.printItemHeader(); sp.printItemFooter("<a href=\""+Config.context+"/servlet/edu.rice.rubis.beans.servlets.SearchItemsByRegion?category="+categoryId+ "®ion="+regionId+"&page="+(page-1)+"&nbOfItems="+nbOfItems+"\">Previous page</a>", ""); } return ; } if (page == 0) sp.printItemFooter("", "<a href=\""+Config.context+"/servlet/edu.rice.rubis.beans.servlets.SearchItemsByRegion?category="+categoryId+ "®ion="+regionId+"&page="+(page+1)+"&nbOfItems="+nbOfItems+"\">Next page</a>"); else sp.printItemFooter("<a href=\""+Config.context+"/servlet/edu.rice.rubis.beans.servlets.SearchItemsByRegion?category="+categoryId+ "®ion="+regionId+"&page="+(page-1)+"&nbOfItems="+nbOfItems+"\">Previous page</a>", "<a href=\""+Config.context+"/servlet/edu.rice.rubis.beans.servlets.SearchItemsByRegion?category="+categoryId+ "®ion="+regionId+"&page="+(page+1)+"&nbOfItems="+nbOfItems+"\">Next page</a>"); } catch (Exception e) { sp.printHTML("Exception getting item list: " + e +"<br>"); } } | 5750 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5750/3d57ae5a342bc10d6c418636c07193a0289ffd6b/SearchItemsByRegion.java/clean/EJB_EntityBean_id_BMP/edu/rice/rubis/beans/servlets/SearchItemsByRegion.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
761,
682,
12,
4522,
28311,
16,
2144,
3020,
548,
16,
509,
1363,
16,
509,
4264,
951,
3126,
13,
282,
288,
565,
775,
565,
288,
1377,
13864,
666,
31,
1377,
4342,
8784,
1377,
761,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
761,
682,
12,
4522,
28311,
16,
2144,
3020,
548,
16,
509,
1363,
16,
509,
4264,
951,
3126,
13,
282,
288,
565,
775,
565,
288,
1377,
13864,
666,
31,
1377,
4342,
8784,
1377,
761,
... |
println(" if (!yy_eof_done) {"); println(" yy_eof_done = true;"); | println(" if (!yyFlexEOFDone) {"); println(" yyFlexEOFDone = true;"); | private void emitDoEOF() { if ( scanner.eofCode == null ) return; println(" /**"); println(" * Contains user EOF-code, which will be executed exactly once,"); println(" * when the end of file is reached"); println(" */"); print(" private void yy_do_eof()"); if ( scanner.eofThrow != null ) { print(" throws "); print(scanner.eofThrow); } println(" {"); println(" if (!yy_eof_done) {"); println(" yy_eof_done = true;"); println(" "+scanner.eofCode ); println(" }"); println(" }"); println(""); println(""); } | 6220 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6220/2be54126140619a5f1a55243415a849954586b1c/Emitter.java/clean/src/JFlex/Emitter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3626,
3244,
12706,
1435,
288,
565,
309,
261,
7683,
18,
9339,
1085,
422,
446,
262,
327,
31,
3639,
3785,
2932,
225,
1783,
8863,
565,
3785,
2932,
282,
380,
8398,
729,
6431,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
3626,
3244,
12706,
1435,
288,
565,
309,
261,
7683,
18,
9339,
1085,
422,
446,
262,
327,
31,
3639,
3785,
2932,
225,
1783,
8863,
565,
3785,
2932,
282,
380,
8398,
729,
6431,
17,
... |
public InetAddress getAddress(boolean doDNSRequest) { if (_address != null) { return _address; } else { if(!doDNSRequest) return null; InetAddress addr = getHandshakeAddress(); if( addr != null ) { this._address = addr; } return addr; } | public InetAddress getAddress() { return getAddress(true); | public InetAddress getAddress(boolean doDNSRequest) { if (_address != null) { return _address; } else { if(!doDNSRequest) return null; InetAddress addr = getHandshakeAddress(); if( addr != null ) { this._address = addr; } return addr; } } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/637da9df2699fd8ae42a7310ab48121238cc4808/FreenetInetAddress.java/buggy/src/freenet/io/comm/FreenetInetAddress.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14218,
14808,
12,
6494,
741,
11602,
691,
13,
288,
202,
202,
430,
261,
67,
2867,
480,
446,
13,
288,
1082,
202,
2463,
389,
2867,
31,
202,
202,
97,
469,
288,
1082,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14218,
14808,
12,
6494,
741,
11602,
691,
13,
288,
202,
202,
430,
261,
67,
2867,
480,
446,
13,
288,
1082,
202,
2463,
389,
2867,
31,
202,
202,
97,
469,
288,
1082,
3639,
309,
1... |
yaccValue = "&"; | yaccValue = new Token("&", getPosition(null, false)); | private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END; } return tok; } currentPos = src.getPosition(); commandState = commandStart; commandStart = false; retry: for(;;) { c = src.read(); switch(c) { case '\004': /* ^D */ case '\032': /* ^Z */ case 0: /* end of script. */ return 0; /* white spaces */ case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ spaceSeen = true; continue retry; case '#': /* it's a comment */ while ((c = src.read()) != '\n') { if (c == EOF) { return 0; } } /* fall through */ case '\n': // Replace a string of newlines with a single one while((c = src.read()) == '\n') { currentPos = src.getPosition(); } src.unread( c ); if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_CLASS) { continue retry; } commandStart = true; lex_state = LexState.EXPR_BEG; return '\n'; case '*': if ((c = src.read()) == '*') { if ((c = src.read()) == '=') { yaccValue = "**"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } yaccValue = "**"; src.unread(c); c = Tokens.tPOW; } else { if (c == '=') { yaccValue = "*"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { warnings.warning(src.getPosition(), "`*' interpreted as argument prefix"); c = Tokens.tSTAR; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tSTAR; } else { c = Tokens.tSTAR2; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "*"; return c; case '!': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { return Tokens.tNEQ; } if (c == '~') { return Tokens.tNMATCH; } src.unread(c); return Tokens.tBANG; case '=': // Skip documentation nodes if (src.wasBeginOfLine()) { /* skip embedded rd document */ if (isNextNoCase("begin")) { c = src.read(); if (Character.isWhitespace(c)) { // In case last next was the newline. src.unread(c); for (;;) { c = src.read(); // If a line is followed by a blank line put // it back. while (c == '\n') { c = src.read(); } if (c == EOF) { throw new SyntaxException(src.getPosition(), "embedded document meets end of file"); } if (c != '=') continue; if (src.wasBeginOfLine() && isNextNoCase("end")) { //if (src.peek('\n')) { // break; //} //c = src.read(); //if (Character.isWhitespace(c)) { src.readLine(); break; //} //src.unread(c); } } continue retry; } src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } c = src.read(); if (c == '=') { c = src.read(); if (c == '=') { yaccValue = "==="; return Tokens.tEQQ; } src.unread(c); yaccValue = "=="; return Tokens.tEQ; } if (c == '~') { yaccValue = "=~"; return Tokens.tMATCH; } else if (c == '>') { return Tokens.tASSOC; } src.unread(c); return '='; case '<': c = src.read(); if (c == '<' && lex_state != LexState.EXPR_END && lex_state != LexState.EXPR_DOT && lex_state != LexState.EXPR_ENDARG && lex_state != LexState.EXPR_CLASS && (!lex_state.isArgument() || spaceSeen)) { int tok = hereDocumentIdentifier(); if (tok != 0) return tok; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if (c == '=') { if ((c = src.read()) == '>') { yaccValue = "<=>"; return Tokens.tCMP; } yaccValue = "<="; src.unread(c); return Tokens.tLEQ; } if (c == '<') { yaccValue = "<<"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tLSHFT; } yaccValue = "<"; src.unread(c); return Tokens.tLT; case '>': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } if ((c = src.read()) == '=') { yaccValue = ">="; return Tokens.tGEQ; } if (c == '>') { yaccValue = ">>"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tRSHFT; } yaccValue = ">"; src.unread(c); return Tokens.tGT; case '"': lex_strterm = new StringTerm(str_dquote, '"', '\0'); return Tokens.tSTRING_BEG; case '`': yaccValue = "`"; if (lex_state == LexState.EXPR_FNAME) { lex_state = LexState.EXPR_END; return Tokens.tBACK_REF2; } if (lex_state == LexState.EXPR_DOT) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } return Tokens.tBACK_REF2; } lex_strterm = new StringTerm(str_xquote, '`', '\0'); return Tokens.tXSTRING_BEG; case '\'': lex_strterm = new StringTerm(str_squote, '\'', '\0'); return Tokens.tSTRING_BEG; case '?': if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG) { lex_state = LexState.EXPR_BEG; return '?'; } c = src.read(); if (c == EOF) { throw new SyntaxException(src.getPosition(), "incomplete character syntax"); } if (Character.isWhitespace(c)){ if (!lex_state.isArgument()){ int c2 = 0; switch (c) { case ' ': c2 = 's'; break; case '\n': c2 = 'n'; break; case '\t': c2 = 't'; break; /* What is \v in C? case '\v': c2 = 'v'; break; */ case '\r': c2 = 'r'; break; case '\f': c2 = 'f'; break; } if (c2 != 0) { warnings.warn(src.getPosition(), "invalid character syntax; use ?\\" + c2); } } src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; /*} else if (ismbchar(c)) { // ruby - we don't support them either? rb_warn("multibyte character literal not supported yet; use ?\\" + c); support.unread(c); lexState = LexState.EXPR_BEG; return '?';*/ } else if ((Character.isLetterOrDigit(c) || c == '_') && !src.peek('\n') && isNext_identchar()) { src.unread(c); lex_state = LexState.EXPR_BEG; return '?'; } else if (c == '\\') { c = src.readEscape(); } c &= 0xff; lex_state = LexState.EXPR_END; yaccValue = new Long(c); return Tokens.tINTEGER; case '&': if ((c = src.read()) == '&') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "&&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tANDOP; } else if (c == '=') { yaccValue = "&"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)){ warnings.warning(src.getPosition(), "`&' interpreted as argument prefix"); c = Tokens.tAMPER; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tAMPER; } else { c = Tokens.tAMPER2; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "&"; return c; case '|': if ((c = src.read()) == '|') { lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '=') { yaccValue = "||"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); return Tokens.tOROP; } if (c == '=') { yaccValue = "|"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "|"; src.unread(c); return Tokens.tPIPE; case '+': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@+"; return Tokens.tUPLUS; } yaccValue = "+"; src.unread(c); return Tokens.tPLUS; } if (c == '=') { yaccValue = "+"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { c = '+'; return parseNumber(c); } return Tokens.tUPLUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tPLUS; case '-': c = src.read(); if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if (c == '@') { yaccValue = "@-"; return Tokens.tUMINUS; } yaccValue = "-"; src.unread(c); return Tokens.tMINUS; } if (c == '=') { yaccValue = "-"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c))) { if (lex_state.isArgument()) arg_ambiguous(); lex_state = LexState.EXPR_BEG; src.unread(c); if (Character.isDigit(c)) { return Tokens.tUMINUS_NUM; } return Tokens.tUMINUS; } lex_state = LexState.EXPR_BEG; src.unread(c); return Tokens.tMINUS; case '.': lex_state = LexState.EXPR_BEG; if ((c = src.read()) == '.') { if ((c = src.read()) == '.') { return Tokens.tDOT3; } src.unread(c); return Tokens.tDOT2; } src.unread(c); if (Character.isDigit(c)) { throw new SyntaxException(src.getPosition(), "no .<digit> floating literal anymore; put 0 before dot"); } lex_state = LexState.EXPR_DOT; return Tokens.tDOT; case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return parseNumber(c); case ']': case '}': case ')': conditionState.restart(); cmdArgumentState.restart(); lex_state = LexState.EXPR_END; return c; case ':': c = src.read(); if (c == ':') { if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_CLASS || (lex_state.isArgument() && spaceSeen)) { lex_state = LexState.EXPR_BEG; return Tokens.tCOLON3; } lex_state = LexState.EXPR_DOT; return Tokens.tCOLON2; } if (lex_state == LexState.EXPR_END || lex_state == LexState.EXPR_ENDARG || Character.isWhitespace(c)) { src.unread(c); lex_state = LexState.EXPR_BEG; return ':'; } switch (c) { case '\'': lex_strterm = new StringTerm(str_ssym, c, '\0'); break; case '"': lex_strterm = new StringTerm(str_dsym, c, '\0'); break; default: src.unread(c); break; } lex_state = LexState.EXPR_FNAME; return Tokens.tSYMBEG; case '/': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } if ((c = src.read()) == '=') { yaccValue = "/"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } src.unread(c); if (lex_state.isArgument() && spaceSeen) { if (!Character.isWhitespace(c)) { arg_ambiguous(); lex_strterm = new StringTerm(str_regexp, '/', '\0'); return Tokens.tREGEXP_BEG; } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "/"; return Tokens.tDIVIDE; case '^': yaccValue = "^"; if ((c = src.read()) == '=') { lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } src.unread(c); return Tokens.tCARET; case ';': commandStart = true; case ',': lex_state = LexState.EXPR_BEG; return c; case '~': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { if ((c = src.read()) != '@') { src.unread(c); } } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "~"; return Tokens.tTILDE; case '(': c = Tokens.tLPAREN2; commandStart = true; if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLPAREN; } else if (spaceSeen) { if (lex_state == LexState.EXPR_CMDARG) { c = Tokens.tLPAREN_ARG; } else if (lex_state == LexState.EXPR_ARG) { warnings.warn(src.getPosition(), "don't put space before argument parentheses"); c = Tokens.tLPAREN2; } } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '[': if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; if ((c = src.read()) == ']') { if ((c = src.read()) == '=') { yaccValue = "[]="; return Tokens.tASET; } yaccValue = "[]"; src.unread(c); return Tokens.tAREF; } src.unread(c); return '['; } else if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { c = Tokens.tLBRACK; } else if (lex_state.isArgument() && spaceSeen) { c = Tokens.tLBRACK; } lex_state = LexState.EXPR_BEG; conditionState.stop(); cmdArgumentState.stop(); return c; case '{': c = Tokens.tLCURLY; if (lex_state.isArgument() || lex_state == LexState.EXPR_END) { c = Tokens.tLCURLY; /* block (primary) */ } else if (lex_state == LexState.EXPR_ENDARG) { c = Tokens.tLBRACE_ARG; /* block (expr) */ } else { c = Tokens.tLBRACE; /* hash */ } conditionState.stop(); cmdArgumentState.stop(); lex_state = LexState.EXPR_BEG; return c; case '\\': c = src.read(); if (c == '\n') { spaceSeen = true; continue retry; /* skip \\n */ } src.unread(c); return '\\'; case '%': if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID) { return parseQuote(src.read()); } if ((c = src.read()) == '=') { yaccValue = "%"; lex_state = LexState.EXPR_BEG; return Tokens.tOP_ASGN; } if (lex_state.isArgument() && spaceSeen && !Character.isWhitespace(c)) { return parseQuote(c); } if (lex_state == LexState.EXPR_FNAME || lex_state == LexState.EXPR_DOT) { lex_state = LexState.EXPR_ARG; } else { lex_state = LexState.EXPR_BEG; } yaccValue = "%"; src.unread(c); return Tokens.tPERCENT; case '$': lex_state = LexState.EXPR_END; tokenBuffer.setLength(0); c = src.read(); switch (c) { case '_': /* $_: last read line string */ c = src.read(); if (isIdentifierChar(c)) { tokenBuffer.append('$'); tokenBuffer.append('_'); break; } src.unread(c); c = '_'; /* fall through */ case '*': /* $*: argv */ case '$': /* $$: pid */ case '?': /* $?: last status */ case '!': /* $!: error string */ case '@': /* $@: error position */ case '/': /* $/: input record separator */ case '\\': /* $\: output record separator */ case ';': /* $;: field separator */ case ',': /* $,: output field separator */ case '.': /* $.: last read line number */ case '=': /* $=: ignorecase */ case ':': /* $:: load path */ case '<': /* $<: reading filename */ case '>': /* $>: default output handle */ case '\"': /* $": already loaded files */ tokenBuffer.append('$'); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); return Tokens.tGVAR; case '-': tokenBuffer.append('$'); tokenBuffer.append(c); c = src.read(); tokenBuffer.append(c); yaccValue = tokenBuffer.toString(); /* xxx shouldn't check if valid option variable */ return Tokens.tGVAR; case '~': /* $~: match-data */ case '&': /* $&: last match */ case '`': /* $`: string before last match */ case '\'': /* $': string after last match */ case '+': /* $+: string matches last paren. */ yaccValue = new BackRefNode(src.getPosition(), c); return Tokens.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokenBuffer.append('$'); do { tokenBuffer.append(c); c = src.read(); } while (Character.isDigit(c)); src.unread(c); yaccValue = new NthRefNode(src.getPosition(), Integer.parseInt(tokenBuffer.substring(1))); return Tokens.tNTH_REF; default: if (!isIdentifierChar(c)) { src.unread(c); return '$'; } case '0': tokenBuffer.append('$'); } break; case '@': c = src.read(); tokenBuffer.setLength(0); tokenBuffer.append('@'); if (c == '@') { tokenBuffer.append('@'); c = src.read(); } if (Character.isDigit(c)) { if (tokenBuffer.length() == 1) { throw new SyntaxException(src.getPosition(), "`@" + c + "' is not allowed as an instance variable name"); } throw new SyntaxException(src.getPosition(), "`@@" + c + "' is not allowed as a class variable name"); } if (!isIdentifierChar(c)) { src.unread(c); return '@'; } break; case '_': if (src.wasBeginOfLine() && src.matchString("_END__\n", false)) { parserSupport.getResult().setEndSeen(true); return 0; } tokenBuffer.setLength(0); break; default: if (!isIdentifierChar(c)) { throw new SyntaxException(src.getPosition(), "Invalid char `\\" + new PrintfFormat("%.3o").sprintf(c) + "' in expression"); } tokenBuffer.setLength(0); break; } do { tokenBuffer.append(c); /* no special multibyte character handling is needed in Java * if (ismbchar(c)) { int i, len = mbclen(c)-1; for (i = 0; i < len; i++) { c = src.read(); tokenBuffer.append(c); } }*/ c = src.read(); } while (isIdentifierChar(c)); char peek = src.read(); if ((c == '!' || c == '?') && isIdentifierChar(tokenBuffer.charAt(0)) && peek != '=') { src.unread(peek); tokenBuffer.append(c); } else { src.unread(peek); src.unread(c); } int result = 0; switch (tokenBuffer.charAt(0)) { case '$': lex_state = LexState.EXPR_END; result = Tokens.tGVAR; break; case '@': lex_state = LexState.EXPR_END; if (tokenBuffer.charAt(1) == '@') { result = Tokens.tCVAR; } else { result = Tokens.tIVAR; } break; default: char last = tokenBuffer.charAt(tokenBuffer.length() - 1); if (last == '!' || last == '?') { result = Tokens.tFID; } else { if (lex_state == LexState.EXPR_FNAME) { /* // Enebo: This should be equivalent to below without // so much read/unread action. if ((c = src.read()) == '=') { char c2 = src.read(); if (c2 != '~' && c2 != '>' && (c2 != '=' || (c2 == '\n' && src.peek('>')))) { result = Token.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c2); src.unread(c); } } else { src.unread(c); } */ if ((c = src.read()) == '=' && !src.peek('~') && !src.peek('>') && (!src.peek('=') || (src.peek('\n') && src.getCharAt(1) == '>'))) { result = Tokens.tIDENTIFIER; tokenBuffer.append(c); } else { src.unread(c); } } if (result == 0 && ISUPPER(tokenBuffer.charAt(0))) { result = Tokens.tCONSTANT; } else { result = Tokens.tIDENTIFIER; } } if (lex_state != LexState.EXPR_DOT) { /* See if it is a reserved word. */ Keyword keyword = Keyword.getKeyword(tokenBuffer.toString(), tokenBuffer.length()); if (keyword != null) { // enum lex_state LexState state = lex_state; lex_state = keyword.state; if (state.isExprFName()) { yaccValue = keyword.name; } if (keyword.id0 == Tokens.kDO) { if (conditionState.isInState()) { return Tokens.kDO_COND; } if (cmdArgumentState.isInState() && state != LexState.EXPR_CMDARG) { return Tokens.kDO_BLOCK; } if (state == LexState.EXPR_ENDARG) { return Tokens.kDO_BLOCK; } return Tokens.kDO; } if (state == LexState.EXPR_BEG) { return keyword.id0; } if (keyword.id0 != keyword.id1) { lex_state = LexState.EXPR_BEG; } return keyword.id1; } } if (lex_state == LexState.EXPR_BEG || lex_state == LexState.EXPR_MID || lex_state == LexState.EXPR_DOT || lex_state == LexState.EXPR_ARG || lex_state == LexState.EXPR_CMDARG) { if (commandState) { lex_state = LexState.EXPR_CMDARG; } else { lex_state = LexState.EXPR_ARG; } } else { lex_state = LexState.EXPR_END; } } yaccValue = tokenBuffer.toString(); // Lame: parsing logic made it into lexer in ruby...So we // are emulating if (IdUtil.isLocal((String)yaccValue) && ((((LocalNamesElement) parserSupport.getLocalNames().peek()).isInBlock() && ((BlockNamesElement) parserSupport.getBlockNames().peek()).isDefined((String) yaccValue)) || ((LocalNamesElement) parserSupport.getLocalNames().peek()).isLocalRegistered((String) yaccValue))) { lex_state = LexState.EXPR_END; } return result; } } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/b1293eda8454686e846e2a9837b348e2983bb423/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
1149,
276,
31,
3639,
1250,
3476,
15160,
273,
629,
31,
3639,
1250,
1296,
1119,
31,
7734,
309,
261,
4149,
67,
701,
6408,
480,
446,
13,
288,
1082... |
&& f.lastModified() >= entryDate.getTime() ) | && f.lastModified() >= entryDate.getTime() ) | protected void extractFile( File srcF, File dir, InputStream compressedInputStream, String entryName, Date entryDate, boolean isDirectory ) throws IOException {/* if ( patternsets != null && patternsets.size() > 0 ) { String name = entryName.replace( '/', File.separatorChar) .replace('\\', File.separatorChar ); boolean included = false; for ( int v = 0; v < patternsets.size(); v++ ) { PatternSet p = (PatternSet) patternsets.elementAt( v ); String[] incls = p.getIncludePatterns( getProject() ); if ( incls == null || incls.length == 0 ) { // no include pattern implicitly means includes="**" incls = new String[] { "**" }; } for ( int w = 0; w < incls.length; w++ ) { String pattern = incls[w].replace( '/', File.separatorChar ) .replace( '\\', File.separatorChar ); if ( pattern.endsWith(File.separator) ) { pattern += "**"; } included = SelectorUtils.matchPath( pattern, name ); if ( included ) { break; } } if ( !included ) { break; } String[] excls = p.getExcludePatterns( getProject() ); if ( excls != null ) { for ( int w = 0; w < excls.length; w++ ) { String pattern = excls[w] .replace( '/', File.separatorChar ) .replace( '\\', File.separatorChar ); if ( pattern.endsWith( File.separator ) ) { pattern += "**"; } included = ! ( SelectorUtils.matchPath( pattern, name ) ); if ( ! included ) { break; } } } } if ( ! included ) { //Do not process this file return; } }*/ File f = FileUtils.resolveFile( dir, entryName ); try { if ( !isOverwrite() && f.exists() && f.lastModified() >= entryDate.getTime() ) { getLogger().debug( "Skipping " + f + " as it is up-to-date" ); return; } getLogger().debug( "expanding " + entryName + " to " + f ); // create intermediary directories - sometimes zip don't add them File dirF = f.getParentFile(); if ( dirF != null ) { dirF.mkdirs(); } if ( isDirectory ) { f.mkdirs(); } else { byte[] buffer = new byte[1024]; int length = 0; FileOutputStream fos = null; try { fos = new FileOutputStream( f ); while ( ( length = compressedInputStream.read( buffer ) ) >= 0 ) { fos.write( buffer, 0, length ); } fos.close(); fos = null; } finally { if ( fos != null ) { try { fos.close(); } catch ( IOException e ) { // ignore } } } } f.setLastModified( entryDate.getTime() ); } catch ( FileNotFoundException ex ) { getLogger().warn( "Unable to expand to file " + f.getPath() ); } } | 10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/AbstractZipUnArchiver.java/buggy/src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipUnArchiver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2608,
812,
12,
1387,
1705,
42,
16,
1387,
1577,
16,
1171,
9079,
5037,
8968,
4348,
16,
1171,
9079,
514,
1241,
461,
16,
1171,
9079,
2167,
1241,
1626,
16,
1250,
10126,
262,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
2608,
812,
12,
1387,
1705,
42,
16,
1387,
1577,
16,
1171,
9079,
5037,
8968,
4348,
16,
1171,
9079,
514,
1241,
461,
16,
1171,
9079,
2167,
1241,
1626,
16,
1250,
10126,
262,
3639,
... |
throw new PSQLException("postgresql.stream.eof"); | throw new PSQLException("postgresql.stream.eof", PSQLState.COMMUNICATION_ERROR); | public int ReceiveChar() throws SQLException { int c = 0; try { c = pg_input.read(); if (c < 0) throw new PSQLException("postgresql.stream.eof"); } catch (IOException e) { throw new PSQLException("postgresql.stream.ioerror", e); } return c; } | 49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/0378a269f3ab3c44e67b14f96414b6ca95263263/PGStream.java/buggy/src/interfaces/jdbc/org/postgresql/core/PGStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
17046,
2156,
1435,
1216,
6483,
202,
95,
202,
202,
474,
276,
273,
374,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
71,
273,
7184,
67,
2630,
18,
896,
5621,
1082,
202,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
17046,
2156,
1435,
1216,
6483,
202,
95,
202,
202,
474,
276,
273,
374,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
71,
273,
7184,
67,
2630,
18,
896,
5621,
1082,
202,
430... |
if (currentDepth >= 1) { | if (currentDepth == 1 && !this.getSubclassedRelations().contains(r)) { | private void walkRelations(Table currentTable, int currentDepth) { // Find all relations from this table. Collection relations = currentTable.getRelations(); // See if we need to do anything to each one. for (Iterator i = relations.iterator(); i.hasNext(); ) { Relation r = (Relation)i.next(); // Dodge relation? if (r.getStatus().equals(ComponentStatus.INFERRED_INCORRECT)) continue; // Seen before? else if (this.relationsPredicted.containsKey(r)) { // Have we got there by a shorter path? If not, then we can skip it. int previousDepth = ((Integer)this.relationsPredicted.get(r)).intValue(); if (previousDepth <= currentDepth) continue; } // Update the depth count on this relation. this.relationsPredicted.put(r, new Integer(currentDepth)); // Update the flags. if (currentDepth >= 2) { // Mask all relations that involve two or more levels of 1:m abstraction away // from the central main table. this.maskRelation(r); } else { this.unmaskRelation(r); } // Work out where to go next. if (r.getPrimaryKey().getTable().equals(currentTable) && (r.getFKCardinality().equals(Cardinality.MANY))) { // If currentTable is at the one end of a one-to-many relation, then // up the count (if it's not a subclass relation) and recurse down it. if (currentDepth >= 1) { // Mark as concat-only (default to comma-separation) all 1:m relations that involve // a second or further level of 1:m abstraction away from the central main table. this.flagConcatOnlyRelation(r, ConcatRelationType.COMMA); } int nextDepth = currentDepth; if (!this.getSubclassedRelations().contains(r)) nextDepth++; this.walkRelations(r.getForeignKey().getTable(), nextDepth); } else { // Otherwise, recurse down it anyway but leave the count as-is. if (r.getPrimaryKey().getTable().equals(currentTable)) { this.walkRelations(r.getForeignKey().getTable(), currentDepth); } else { this.walkRelations(r.getPrimaryKey().getTable(), currentDepth); } } } } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/d62084730dd4815e88fd51af28f27b0ea2a251b0/DataSet.java/clean/src/java/org/biomart/builder/model/DataSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5442,
10666,
12,
1388,
783,
1388,
16,
509,
783,
6148,
13,
288,
3639,
368,
4163,
777,
7467,
628,
333,
1014,
18,
3639,
2200,
7467,
273,
783,
1388,
18,
588,
10666,
5621,
3639,
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,
3238,
918,
5442,
10666,
12,
1388,
783,
1388,
16,
509,
783,
6148,
13,
288,
3639,
368,
4163,
777,
7467,
628,
333,
1014,
18,
3639,
2200,
7467,
273,
783,
1388,
18,
588,
10666,
5621,
3639,
3... |
updateItem(new TableItem(getTable(), SWT.NONE, index), element); | createItem(element, index); | public void add(Object[] elements) { assertElementsNotNull(elements); Object[] filtered = filter(elements); for (int i = 0; i < filtered.length; i++) { Object element = filtered[i]; int index = indexForElement(element); updateItem(new TableItem(getTable(), SWT.NONE, index), element); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e3c7fe79cb70d0fd8bd2b9ad7c56f9575de59e6f/TableViewer.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/TableViewer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
12,
921,
8526,
2186,
13,
288,
202,
202,
11231,
3471,
5962,
12,
6274,
1769,
202,
202,
921,
8526,
5105,
273,
1034,
12,
6274,
1769,
202,
202,
1884,
261,
474,
277,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
527,
12,
921,
8526,
2186,
13,
288,
202,
202,
11231,
3471,
5962,
12,
6274,
1769,
202,
202,
921,
8526,
5105,
273,
1034,
12,
6274,
1769,
202,
202,
1884,
261,
474,
277,
273,
... |
TextWithImports text = new TextWithImportsImpl(CodeFragmentKind.EXPRESSION, myCurrentExpression.getText()); final WatchItemDescriptor descriptor = new WatchItemDescriptor(myProject, text, value, false); descriptor.setContext(evaluationContext); if (myType == MOUSE_OVER_HINT) { descriptor.setRenderer(debuggerContext.getDebugProcess().getDefaultRenderer(value)); } descriptor.updateRepresentation(evaluationContext, new DescriptorLabelListener() { public void labelChanged() { if(myCurrentRange != null) { if(myType != MOUSE_OVER_HINT || descriptor.isValueValid()) { showHint(DebuggerTreeRenderer.getDescriptorText(descriptor, true)); | if (value instanceof PrimitiveValue) { final WatchItemDescriptor descriptor = new WatchItemDescriptor(myProject, text, value, false); descriptor.setContext(evaluationContext); if (myType == MOUSE_OVER_HINT) { descriptor.setRenderer(debuggerContext.getDebugProcess().getDefaultRenderer(value)); } descriptor.updateRepresentation(evaluationContext, new DescriptorLabelListener() { public void labelChanged() { if(myCurrentRange != null) { if(myType != MOUSE_OVER_HINT || descriptor.isValueValid()) { showHint(DebuggerTreeRenderer.getDescriptorText(descriptor, true)); } | private void evaluateHint() { final DebuggerContextImpl debuggerContext = DebuggerManagerEx.getInstanceEx(myProject).getContext(); final DebuggerSession debuggerSession = debuggerContext.getDebuggerSession(); if(debuggerSession == null || !debuggerSession.isPaused()) return; try { final ExpressionEvaluator evaluator = EvaluatorBuilderImpl.getInstance().build(myCurrentExpression); debuggerContext.getDebugProcess().getManagerThread().invokeLater(new DebuggerContextCommandImpl(debuggerContext) { public void threadAction() { try { final EvaluationContextImpl evaluationContext = debuggerContext.createEvaluationContext(); final Value value = evaluator.evaluate(evaluationContext); TextWithImports text = new TextWithImportsImpl(CodeFragmentKind.EXPRESSION, myCurrentExpression.getText()); final WatchItemDescriptor descriptor = new WatchItemDescriptor(myProject, text, value, false); descriptor.setContext(evaluationContext); if (myType == MOUSE_OVER_HINT) { // force using default renderer for mouse over hint in order to not to call accidentaly methods while rendering // otherwise, if the hint is invoked explicitly, show it with the right "auto" renderer descriptor.setRenderer(debuggerContext.getDebugProcess().getDefaultRenderer(value)); } descriptor.updateRepresentation(evaluationContext, new DescriptorLabelListener() { public void labelChanged() { if(myCurrentRange != null) { if(myType != MOUSE_OVER_HINT || descriptor.isValueValid()) { showHint(DebuggerTreeRenderer.getDescriptorText(descriptor, true)); } } } }); } catch (EvaluateException e) { LOG.debug(e); } } }, DebuggerManagerThreadImpl.HIGH_PRIORITY); } catch (EvaluateException e) { LOG.debug(e); } } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/eead600b33355e646f64d618bc6ce83dbe8bcd73/ValueHint.java/clean/debugger/impl/com/intellij/debugger/ui/ValueHint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
5956,
7002,
1435,
288,
565,
727,
28645,
1042,
2828,
19977,
1042,
273,
28645,
1318,
424,
18,
588,
1442,
424,
12,
4811,
4109,
2934,
29120,
5621,
565,
727,
28645,
2157,
19977,
2157,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5956,
7002,
1435,
288,
565,
727,
28645,
1042,
2828,
19977,
1042,
273,
28645,
1318,
424,
18,
588,
1442,
424,
12,
4811,
4109,
2934,
29120,
5621,
565,
727,
28645,
2157,
19977,
2157,... |
System.out.println("Reading CARTS"); File treesDir = new File(festvoxDirectory + "/festival/trees"); | System.out.println("Reading CARTS from "+festvoxDirectory); File treesDir = new File(festvoxDirectory + "/festival/trees/"); | public void importCARTS(String festvoxDirectory, String destDir, UnitCatalog unitCatalog){ try{ //open CART-File System.out.println("Reading CARTS"); File treesDir = new File(festvoxDirectory + "/festival/trees"); if (treesDir.isDirectory()){ File[] entries = treesDir.listFiles(); Map cartMap = new HashMap(); for (int i=0;i<entries.length;i++){ //get the name of the CART String name = entries[i].getName(); System.out.print(name); name = name.substring(0,name.length()-3); System.out.print(" "+name+"\n"); BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(entries[i]))); CARTWagonFormat cart = new CARTWagonFormat(reader); //store CART in map cartMap.put(name, cart); reader.close(); } //dump CARTS to binary file System.out.println("Dumping CARTS"); //Open the destination file (CARTS.bin) and output the header DataOutputStream out = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(destDir+"CARTS.bin"))); //create new CART-header and write it to output file MaryHeader hdr = new MaryHeader(MaryHeader.CARTS); hdr.write(out); //write number of CARTs out.writeInt(cartMap.size()); Set carts = cartMap.keySet(); //for each CART in the map, for (Iterator i = carts.iterator(); i.hasNext();) { //get name and CART, String name = (String) i.next(); CARTWagonFormat cart = (CARTWagonFormat) cartMap.get(name); //dump name and CART out.writeUTF(name); cart.dumpBinary(out); } //finish out.close(); System.out.println("Done\n"); } else { throw new Error(treesDir.getPath() + " is no directory!"); } } catch (Exception e){ e.printStackTrace(); throw new Error("Error reading CARTS"); } } | 24259 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24259/f9af0f067382bde700d377f77a5bc00f4cff3503/FestivalCARTImporter.java/clean/java/de/dfki/lt/mary/unitselection/voiceimport_reorganized/FestivalCARTImporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1930,
39,
4928,
55,
12,
780,
284,
395,
90,
2409,
2853,
16,
1850,
6862,
202,
780,
26231,
16,
1850,
6862,
202,
2802,
9769,
2836,
9769,
15329,
3639,
775,
95,
10792,
368,
3190,
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,
918,
1930,
39,
4928,
55,
12,
780,
284,
395,
90,
2409,
2853,
16,
1850,
6862,
202,
780,
26231,
16,
1850,
6862,
202,
2802,
9769,
2836,
9769,
15329,
3639,
775,
95,
10792,
368,
3190,
3... |
backup(mark); return; } } | backup(mark); return; } } | protected void consumePointerOperators(List collection) throws EndOfFileException, BacktrackException { for (;;) { if (LT(1) == IToken.tAMPER) { int length = LA(1).getEndOffset() - LA(1).getOffset(); int o = consume(IToken.tAMPER).getOffset(); ICPPASTReferenceOperator refOp = createReferenceOperator(); ((ASTNode) refOp).setOffsetAndLength(o, length); collection.add(refOp); return; } IToken last = null; IToken mark = mark(); ITokenDuple nameDuple = null; boolean isConst = false, isVolatile = false, isRestrict = false; if (LT(1) == IToken.tIDENTIFIER || LT(1) == IToken.tCOLONCOLON) { try { nameDuple = name(); last = nameDuple.getLastToken(); } catch (BacktrackException bt) { backup(mark); return; } } if (LT(1) == IToken.tSTAR) { last = consume(IToken.tSTAR); int starOffset = last.getOffset(); for (;;) { IToken t = LA(1); int startingOffset = LA(1).getOffset(); switch (LT(1)) { case IToken.t_const: last = consume(IToken.t_const); isConst = true; break; case IToken.t_volatile: last = consume(IToken.t_volatile); isVolatile = true; break; case IToken.t_restrict: if (allowCPPRestrict) { last = consume(IToken.t_restrict); isRestrict = true; break; } IToken la = LA(1); throwBacktrack(startingOffset, la.getEndOffset() - startingOffset); } if (t == LA(1)) break; } IASTPointerOperator po = null; if (nameDuple != null) { IASTName name = createName(nameDuple); ICPPASTPointerToMember p2m = createPointerToMember(isRestrict); ((ASTNode) p2m).setOffsetAndLength(nameDuple .getFirstToken().getOffset(), last.getEndOffset() - nameDuple.getFirstToken().getOffset()); p2m.setConst(isConst); p2m.setVolatile(isVolatile); p2m.setName(name); name.setParent(p2m); name.setPropertyInParent(ICPPASTPointerToMember.NAME); if (isRestrict) { IGPPASTPointerToMember newPo = (IGPPASTPointerToMember) p2m; newPo.setRestrict(isRestrict); p2m = newPo; } po = p2m; } else { po = createPointer(isRestrict); ((ASTNode) po).setOffsetAndLength(starOffset, last .getEndOffset() - starOffset); ((IASTPointer) po).setConst(isConst); ((IASTPointer) po).setVolatile(isVolatile); if (isRestrict) { IGPPASTPointer newPo = (IGPPASTPointer) po; newPo.setRestrict(isRestrict); po = newPo; } } if (po != null) collection.add(po); continue; } backup(mark); return; } } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c4c31b724fe73e8f69d2d4f9fcd98d3ff359a2d3/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
7865,
4926,
24473,
12,
682,
1849,
13,
1082,
202,
15069,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
202,
1884,
261,
25708,
13,
288,
1082,
202,
430,
261,
12050,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
7865,
4926,
24473,
12,
682,
1849,
13,
1082,
202,
15069,
4403,
951,
812,
503,
16,
4297,
4101,
503,
288,
202,
202,
1884,
261,
25708,
13,
288,
1082,
202,
430,
261,
12050,
1... |
if (method == null) { | if (method.isUndefined()) { | public void aliasMethod(String name, String oldName) { testFrozen(); if (oldName.equals(name)) { return; } if (this == getRuntime().getClasses().getObjectClass()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); RubyModule origin = null; if (method == null) { if (isModule()) { method = getRuntime().getClasses().getObjectClass().searchMethod(oldName); } if (method == null) { throw new NameError( ruby, "undefined method '" + name + "' for " + (isModule() ? "module" : "class") + " '" + toName() + "'"); } } origin = method.getImplementationClass(); if (method instanceof AliasMethod) { /* was alias */ oldName = ((AliasMethod) method).getOldName(); origin = ((AliasMethod) method).getOrigin(); method = ((AliasMethod) method).getOldMethod(); } getRuntime().getMethodCache().clearByName(name); getMethods().put(name, new AliasMethod(method, oldName, origin, method.getNoex())); } | 47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2308,
1305,
12,
780,
508,
16,
514,
22916,
13,
288,
3639,
1842,
42,
9808,
5621,
3639,
309,
261,
1673,
461,
18,
14963,
12,
529,
3719,
288,
5411,
327,
31,
3639,
289,
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,
1071,
918,
2308,
1305,
12,
780,
508,
16,
514,
22916,
13,
288,
3639,
1842,
42,
9808,
5621,
3639,
309,
261,
1673,
461,
18,
14963,
12,
529,
3719,
288,
5411,
327,
31,
3639,
289,
3639,
309,
... |
} else | } else { | public Object fetch( Object[] fields, Object[] identities ) throws ObjectNotFoundException, PersistenceException { //System.out.println("SQLQuery fetched!"); int count; Object stamp = null; Object[] sqlIdentities; //Object[] sqlFields = new Object[fields.length]; try { sqlIdentities = _engine.idToSql( identities ); // Load all the fields of the object including one-one relations count = _engine._ids.length; for ( int i = 0 ; i < _engine._fields.length ; ++i ) { if ( _engine._fields[i].multi ) { ArrayVector res = new ArrayVector(); Object[] temp = new Object[_engine._fields[i].columns.length]; for ( int j=0; j<_engine._fields[i].columns.length; j++ ) { Object value = _engine.toJava( i, j, SQLTypes.getObject( _rs, count, _engine._fields[i].columns[j].sqlType ) ); if ( ! _rs.wasNull() ) temp[j] = value ; count++; } res.add( temp ); fields[i] = res; } else { Object[] temp = new Object[_engine._fields[i].columns.length]; for ( int j=0; j<_engine._fields[i].columns.length; j++ ) { Object value = _engine.toJava( i, j, SQLTypes.getObject( _rs, count, _engine._fields[i].columns[j].sqlType ) ); temp[j] = _rs.wasNull() ? null : value; count++; } fields[i] = temp; } } if ( _rs.next() ) { count = 1; if ( _lastIdentities == null ) _lastIdentities = new Object[_engine._ids.length]; for ( int i=0; i<_lastIdentities.length; i++ ) { _lastIdentities[i] = SQLTypes.getObject( _rs, count, _identSqlType ); count++; } while ( OID.isEquals( sqlIdentities, _lastIdentities ) ) { for ( int i = 0 ; i < _engine._fields.length ; ++i ) { if ( _engine._fields[i].multi ) { ArrayVector res = (ArrayVector) fields[i]; Object[] temp = new Object[_engine._fields[i].columns.length]; for ( int j=0; j<_engine._fields[i].columns.length; j++ ) { Object value = _engine.toJava( i, j, SQLTypes.getObject( _rs, count, _engine._fields[i].columns[j].sqlType ) ); if ( ! _rs.wasNull() ) temp[j] = value ; } res.add( temp ); fields[i] = res; count++; } else { count += _engine._fields[i].columns.length; } } if ( _rs.next() ) for ( int i=0; i<_engine._ids.length; i++ ) { _lastIdentities[i] = SQLTypes.getObject( _rs, 1+i, _identSqlType ); } else _lastIdentities = null; } } else _lastIdentities = null; } catch ( SQLException except ) { throw new PersistenceException( Messages.format("persist.nested", except) ); } return stamp; } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/e92761a5919870afaca7274d078de822ceba63f8/SQLEngine.java/buggy/branches/castorone/castor-2002/castor/src/main/org/exolab/castor/jdo/engine/SQLEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
2158,
12,
1033,
8526,
1466,
16,
1033,
8526,
17230,
262,
5411,
1216,
1033,
3990,
16,
13381,
503,
3639,
288,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
3997,
1138,
12807,
4442,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
2158,
12,
1033,
8526,
1466,
16,
1033,
8526,
17230,
262,
5411,
1216,
1033,
3990,
16,
13381,
503,
3639,
288,
5411,
368,
3163,
18,
659,
18,
8222,
2932,
3997,
1138,
12807,
4442,
1... |
/* * cbCyclic = new Button(cmpContent, SWT.CHECK); GridData gdCBCyclic = new GridData(GridData.FILL_HORIZONTAL); * gdCBCyclic.horizontalSpan = 4; cbCyclic.setLayoutData(gdCBCyclic); cbCyclic.setText("Is Cyclic"); * cbCyclic.setSelection(gCurrent.isCyclic()); */ | /* * cbCyclic = new Button(cmpContent, SWT.CHECK); GridData gdCBCyclic = * new GridData(GridData.FILL_HORIZONTAL); gdCBCyclic.horizontalSpan = * 4; cbCyclic.setLayoutData(gdCBCyclic); cbCyclic.setText("Is Cyclic"); * cbCyclic.setSelection(gCurrent.isCyclic()); */ | private void placeComponents() { GridLayout glContent = new GridLayout(); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; cmpContent = new Composite(shell, SWT.NONE); cmpContent.setLayout(glContent); GridLayout glGeneral = new GridLayout(); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; cmpGeneral = new Composite(cmpContent, SWT.NONE); GridData gdCMPGeneral = new GridData(GridData.FILL_BOTH); cmpGeneral.setLayoutData(gdCMPGeneral); cmpGeneral.setLayout(glGeneral); Label lblStartColor = new Label(cmpGeneral, SWT.NONE); GridData gdLBLStartColor = new GridData(); lblStartColor.setLayoutData(gdLBLStartColor); lblStartColor.setText(Messages.getString("GradientEditorDialog.Lbl.StartColor")); //$NON-NLS-1$ fccStartColor = new FillChooserComposite(cmpGeneral, SWT.NONE, gCurrent.getStartColor(), false, false); GridData gdFCCStartColor = new GridData(GridData.FILL_HORIZONTAL); fccStartColor.setLayoutData(gdFCCStartColor); fccStartColor.addListener(this); Label lblEndColor = new Label(cmpGeneral, SWT.NONE); GridData gdLBLEndColor = new GridData(); lblEndColor.setLayoutData(gdLBLEndColor); lblEndColor.setText(Messages.getString("GradientEditorDialog.Lbl.EndColor")); //$NON-NLS-1$ fccEndColor = new FillChooserComposite(cmpGeneral, SWT.NONE, gCurrent.getEndColor(), false, false); GridData gdFCCEndColor = new GridData(GridData.FILL_HORIZONTAL); fccEndColor.setLayoutData(gdFCCEndColor); fccEndColor.addListener(this); Label lblDummy = new Label(cmpGeneral, SWT.NONE); GridData gdLBLDummy = new GridData(GridData.FILL_BOTH); lblDummy.setLayoutData(gdLBLDummy); createRotationPanel(); /* * cbCyclic = new Button(cmpContent, SWT.CHECK); GridData gdCBCyclic = new GridData(GridData.FILL_HORIZONTAL); * gdCBCyclic.horizontalSpan = 4; cbCyclic.setLayoutData(gdCBCyclic); cbCyclic.setText("Is Cyclic"); * cbCyclic.setSelection(gCurrent.isCyclic()); */ Group grpPreview = new Group(cmpContent, SWT.NONE); GridData gdGRPPreview = new GridData(GridData.FILL_BOTH); gdGRPPreview.horizontalSpan = 2; grpPreview.setLayoutData(gdGRPPreview); grpPreview.setLayout(new FillLayout()); grpPreview.setText(Messages.getString("GradientEditorDialog.Lbl.Preview")); //$NON-NLS-1$ cnvPreview = new FillCanvas(grpPreview, SWT.NO_FOCUS); cnvPreview.setFill(gCurrent); GridLayout glButtons = new GridLayout(); glButtons.numColumns = 2; glButtons.horizontalSpacing = 5; glButtons.verticalSpacing = 5; glButtons.marginHeight = 2; glButtons.marginWidth = 7; cmpButtons = new Composite(cmpContent, SWT.NONE); GridData gdCMPButtons = new GridData(GridData.FILL_HORIZONTAL); gdCMPButtons.horizontalSpan = 4; cmpButtons.setLayoutData(gdCMPButtons); cmpButtons.setLayout(glButtons); btnAccept = new Button(cmpButtons, SWT.PUSH); GridData gdBTNAccept = new GridData(GridData.FILL_HORIZONTAL | GridData.HORIZONTAL_ALIGN_END); gdBTNAccept.grabExcessHorizontalSpace = true; btnAccept.setLayoutData(gdBTNAccept); btnAccept.setText(Messages.getString("Shared.Lbl.OK")); //$NON-NLS-1$ btnAccept.addSelectionListener(this); btnCancel = new Button(cmpButtons, SWT.PUSH); GridData gdBTNCancel = new GridData(GridData.HORIZONTAL_ALIGN_END); gdBTNCancel.grabExcessHorizontalSpace = false; btnCancel.setLayoutData(gdBTNCancel); btnCancel.setText(Messages.getString("Shared.Lbl.Cancel")); //$NON-NLS-1$ btnCancel.addSelectionListener(this); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/c60a4815037b62e9358af2625eb6236e7c979d0f/GradientEditorDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/GradientEditorDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
2107,
3380,
273,
576,
31,
3639,
5118,
1350,
18,
18396,
18006,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3166,
7171,
1435,
565,
288,
3639,
7145,
3744,
5118,
1350,
273,
394,
7145,
3744,
5621,
3639,
5118,
1350,
18,
2107,
3380,
273,
576,
31,
3639,
5118,
1350,
18,
18396,
18006,
273,
1... |
if (!uppercase) uppercase = Character.isUpperCase(ch); | if (!uppercase) uppercase = Character.isUpperCase(ch); | public static int validateMatchRule(String stringPattern, int matchRule) { // Verify Regexp match rule if ((matchRule & RULE_REGEXP_MATCH) != 0) { if ((matchRule & RULE_PATTERN_MATCH) != 0 || (matchRule & RULE_PREFIX_MATCH) != 0 || (matchRule & RULE_CAMELCASE_MATCH) != 0) { return -1; } } // Verify Pattern match rule int starIndex = stringPattern.indexOf('*'); int questionIndex = stringPattern.indexOf('?'); if (starIndex < 0 && questionIndex < 0) { // reset pattern match bit if any matchRule &= ~RULE_PATTERN_MATCH; } else { // force Pattern rule matchRule |= RULE_PATTERN_MATCH; } if ((matchRule & RULE_PATTERN_MATCH) != 0) { // remove Camel Case and Prefix match bits if any matchRule &= ~RULE_CAMELCASE_MATCH; matchRule &= ~RULE_PREFIX_MATCH; } // Verify Camel Case match rule if ((matchRule & RULE_CAMELCASE_MATCH) != 0) { // Verify sting pattern validity int length = stringPattern.length(); boolean validCamelCase = true; boolean uppercase = false; for (int i=0; i<length && validCamelCase; i++) { char ch = stringPattern.charAt(i); validCamelCase = isValidCamelCaseChar(ch); // at least one uppercase character is need in CamelCase pattern // (see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=136313) if (!uppercase) uppercase = Character.isUpperCase(ch); } validCamelCase = validCamelCase && uppercase; // Verify bits compatibility if (validCamelCase) { if ((matchRule & RULE_PREFIX_MATCH) != 0) { if ((matchRule & RULE_CASE_SENSITIVE) != 0) { // This is equivalent to Camel Case match rule matchRule &= ~RULE_PREFIX_MATCH; matchRule &= ~RULE_CASE_SENSITIVE; } } } else { matchRule &= ~RULE_CAMELCASE_MATCH; if ((matchRule & RULE_PREFIX_MATCH) == 0) { matchRule |= RULE_PREFIX_MATCH; matchRule |= RULE_CASE_SENSITIVE; } } } return matchRule; } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/f6a6b077cb5b91dfa306af0b33ea1a4ed7445674/SearchPattern.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/SearchPattern.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
509,
1954,
2060,
2175,
12,
780,
533,
3234,
16,
509,
845,
2175,
13,
288,
202,
202,
759,
8553,
17011,
845,
1720,
202,
202,
430,
14015,
1916,
2175,
473,
12651,
67,
28225,
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,
760,
509,
1954,
2060,
2175,
12,
780,
533,
3234,
16,
509,
845,
2175,
13,
288,
202,
202,
759,
8553,
17011,
845,
1720,
202,
202,
430,
14015,
1916,
2175,
473,
12651,
67,
28225,
67... |
public void draw (Shape s) | public void draw(Shape s) | public void draw (Shape s) { if (stroke != null && !(stroke instanceof BasicStroke)) { fill (stroke.createStrokedShape (s)); return; } cairoNewPath (); if (s instanceof Rectangle2D) { Rectangle2D r = (Rectangle2D)s; cairoRectangle (shifted(r.getX (), shiftDrawCalls), shifted(r.getY (), shiftDrawCalls), r.getWidth (), r.getHeight ()); } else walkPath (s.getPathIterator (null), shiftDrawCalls); cairoStroke (); if (isBufferedImageGraphics ()) updateBufferedImage(); } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/bef34bda2204726d6cecbf5422e100bc663abc3e/GdkGraphics2D.java/buggy/libraries/javalib/gnu/java/awt/peer/gtk/GdkGraphics2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
3724,
12,
8500,
272,
13,
225,
288,
565,
309,
261,
16181,
480,
446,
597,
3639,
401,
12,
16181,
1276,
7651,
14602,
3719,
1377,
288,
3639,
3636,
261,
16181,
18,
2640,
510,
3250,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
12,
8500,
272,
13,
225,
288,
565,
309,
261,
16181,
480,
446,
597,
3639,
401,
12,
16181,
1276,
7651,
14602,
3719,
1377,
288,
3639,
3636,
261,
16181,
18,
2640,
510,
3250,
... |
public Rectangle setSize(int w, int h) { width = w; height = h; | public Rectangle setSize(Dimension d) { width = d.width; height = d.height; | public Rectangle setSize(int w, int h) { width = w; height = h; return this;} | 11225 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11225/25c1984b6f7271f0209ebdf20608b14fab7fa921/Rectangle.java/buggy/org.eclipse.draw2d/src/org/eclipse/draw2d/geometry/Rectangle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
13264,
19106,
12,
474,
341,
16,
509,
366,
13,
288,
202,
2819,
273,
341,
31,
202,
4210,
273,
366,
31,
202,
2463,
333,
31,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
13264,
19106,
12,
474,
341,
16,
509,
366,
13,
288,
202,
2819,
273,
341,
31,
202,
4210,
273,
366,
31,
202,
2463,
333,
31,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (theData.isInBlock[j]){ | if (theData.isInBlock[Chromosome.realIndex[j]]){ | public void paintComponent(Graphics g){ PairwiseLinkage[][] dPrimeTable = theData.filteredDPrimeTable; Vector blocks = theData.blocks; Graphics2D g2 = (Graphics2D) g; Dimension size = getSize(); Dimension pref = getPreferredSize(); Rectangle visRect = getVisibleRect(); /* boxSize = ((clipRect.width-2*H_BORDER)/dPrimeTable.length-1); if (boxSize < 12){boxSize=12;} if (boxSize < 25){ printDetails = false; boxRadius = boxSize/2; }else{ boxRadius = boxSize/2 - 1; } */ //okay so this dumb if block is to prevent the ugly repainting //bug when loading markers after the data are already being displayed, //results in a little off-centering for small datasets, but not too bad. //clickxshift and clickyshift are used later to translate from x,y coords //to the pair of markers comparison at those coords if (!(theData.infoKnown)){ g2.translate((size.width - pref.width) / 2, (size.height - pref.height) / 2); clickXShift = left + (size.width-pref.width)/2; clickYShift = top + (size.height - pref.height)/2; } else { g2.translate((size.width - pref.width) / 2, 0); clickXShift = left + (size.width-pref.width)/2; clickYShift = top; } FontMetrics boxFontMetrics = g2.getFontMetrics(boxFont); int diamondX[] = new int[4]; int diamondY[] = new int[4]; Polygon diamond; left = H_BORDER; top = V_BORDER; FontMetrics metrics; int ascent; g2.setColor(this.getBackground()); g2.fillRect(0,0,pref.width,pref.height); g2.setColor(Color.black); BasicStroke thickerStroke = new BasicStroke(1); BasicStroke thinnerStroke = new BasicStroke(0.35f); BasicStroke fatStroke = new BasicStroke(2.5f); float dash1[] = {5.0f}; BasicStroke dashedFatStroke = new BasicStroke(2.5f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 5.0f, dash1, 0.0f); g2.setFont(markerNameFont); metrics = g2.getFontMetrics(); ascent = metrics.getAscent(); if (theData.infoKnown) { g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); //// draw the marker locations int wide = (dPrimeTable.length-1) * boxSize; //TODO: talk to kirby about locusview scaling gizmo int lineLeft = wide/20; int lineSpan = (wide/10)*9; long minpos = Chromosome.getMarker(0).getPosition(); long maxpos = Chromosome.getMarker(Chromosome.getSize()-1).getPosition(); double spanpos = maxpos - minpos; g2.setStroke(thinnerStroke); g2.setColor(Color.white); g2.fillRect(left + lineLeft, 5, lineSpan, TICK_HEIGHT); g2.setColor(Color.black); g2.drawRect(left + lineLeft, 5, lineSpan, TICK_HEIGHT); for (int i = 0; i < Chromosome.getFilteredSize(); i++) { double pos = (Chromosome.getFilteredMarker(i).getPosition() - minpos) / spanpos; int xx = (int) (left + lineLeft + lineSpan*pos); g2.setStroke(thickerStroke); g2.drawLine(xx, 5, xx, 5 + TICK_HEIGHT); g2.setStroke(thinnerStroke); g2.drawLine(xx, 5 + TICK_HEIGHT, left + i*boxSize, TICK_BOTTOM); } top += TICK_BOTTOM; //// draw the marker names if (printDetails){ widestMarkerName = metrics.stringWidth(Chromosome.getFilteredMarker(0).getName()); for (int x = 1; x < dPrimeTable.length; x++) { int thiswide = metrics.stringWidth(Chromosome.getFilteredMarker(x).getName()); if (thiswide > widestMarkerName) widestMarkerName = thiswide; } g2.translate(left, top + widestMarkerName); g2.rotate(-Math.PI / 2.0); for (int x = 0; x < dPrimeTable.length; x++) { if (theData.isInBlock[Chromosome.realIndex[x]]){ g2.setFont(boldMarkerNameFont); }else{ g2.setFont(markerNameFont); } g2.drawString(Chromosome.getFilteredMarker(x).getName(),TEXT_GAP, x*boxSize + ascent/3); } g2.rotate(Math.PI / 2.0); g2.translate(-left, -(top + widestMarkerName)); // move everybody down top += widestMarkerName + TEXT_GAP; } g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF); } blockDispHeight = ascent+boxSize/2; top += blockDispHeight; //// draw the marker numbers if (printDetails){ g2.setFont(markerNumFont); metrics = g2.getFontMetrics(); ascent = metrics.getAscent(); for (int x = 0; x < dPrimeTable.length; x++) { String mark = String.valueOf(Chromosome.realIndex[x] + 1); g2.drawString(mark, left + x*boxSize - metrics.stringWidth(mark)/2, top + ascent); } top += boxRadius/2; // give a little space between numbers and boxes } //the following values are the bounds on the boxes we want to //display given that the current window is 'visRect' lowX = (visRect.x-clickXShift-(visRect.y + visRect.height-clickYShift))/boxSize; if (lowX < 0) { lowX = 0; } highX = ((visRect.x + visRect.width)/boxSize)+1; if (highX > dPrimeTable.length-1){ highX = dPrimeTable.length-1; } lowY = ((visRect.x-clickXShift)+(visRect.y-clickYShift))/boxSize; if (lowY < lowX+1){ lowY = lowX+1; } highY = (((visRect.x-clickXShift+visRect.width) + (visRect.y-clickYShift+visRect.height))/boxSize)+1; if (highY > dPrimeTable.length){ highY = dPrimeTable.length; } // draw table column by column for (int x = lowX; x < highX; x++) { //always draw the fewest possible boxes if (lowY < x+1){ lowY = x+1; } for (int y = lowY; y < highY; y++) { if (dPrimeTable[x][y] == null){ continue; } double d = dPrimeTable[x][y].getDPrime(); //double l = dPrimeTable[x][y].getLOD(); Color boxColor = dPrimeTable[x][y].getColor(); // draw markers above int xx = left + (x + y) * boxSize / 2; int yy = top + (y - x) * boxSize / 2; diamondX[0] = xx; diamondY[0] = yy - boxRadius; diamondX[1] = xx + boxRadius; diamondY[1] = yy; diamondX[2] = xx; diamondY[2] = yy + boxRadius; diamondX[3] = xx - boxRadius; diamondY[3] = yy; diamond = new Polygon(diamondX, diamondY, 4); g2.setColor(boxColor); g2.fillPolygon(diamond); if (boxColor == Color.white) { g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2.setColor(Color.lightGray); g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF); } if(printDetails){ g2.setFont(boxFont); ascent = boxFontMetrics.getAscent(); int val = (int) (d * 100); g2.setColor((val < 50) ? Color.gray : Color.black); if (val != 100) { String valu = String.valueOf(val); int widf = boxFontMetrics.stringWidth(valu); g.drawString(valu, xx - widf/2, yy + ascent/2); } } } } //highlight blocks boolean even = true; g2.setFont(markerNameFont); ascent = g2.getFontMetrics().getAscent(); //g.setColor(new Color(153,255,153)); g2.setColor(Color.black); //g.setColor(new Color(51,153,51)); for (int i = 0; i < blocks.size(); i++){ int[] theBlock = (int[])blocks.elementAt(i); int first = theBlock[0]; int last = theBlock[theBlock.length-1]; //big vee around whole thing g2.setStroke(fatStroke); g2.drawLine(left + (2*first) * boxSize/2 - boxRadius, top, left + (first + last) * boxSize/2, top + (last - first) * boxSize/2 + boxRadius); g2.drawLine(left + (first + last) * boxSize/2, top + (last - first) * boxSize/2 + boxRadius, left + (2*last) * boxSize/2+boxRadius, top); for (int j = first; j <= last; j++){ if (theData.isInBlock[j]){ g2.setStroke(fatStroke); }else{ g2.setStroke(dashedFatStroke); } g2.drawLine(left+j*boxSize-boxSize/2, top-blockDispHeight, left+j*boxSize+boxSize/2, top-blockDispHeight); /* //little vees on top of each marker g2.drawLine(left + (2*theBlock[j+1]) * boxSize/2, top + boxSize/2, left + (2*theBlock[j+1]) * boxSize/2 + boxRadius, top+1); g2.drawLine (left + (2*theBlock[j+1]) * boxSize/2, top + boxSize/2, left + (2*theBlock[j+1]-1) * boxSize/2, top); */ } //special lines for fencepost markers /*g2.drawLine(left+first*boxSize+1, top+boxRadius, left+first*boxSize+boxRadius, top+1); g2.drawLine(left+last*boxSize-1, top+boxRadius, left+last*boxSize-boxRadius, top+1); */ //lines to connect to block display g2.setStroke(fatStroke); g2.drawLine(left + first*boxSize-boxSize/2, top-1, left+first*boxSize-boxSize/2, top-blockDispHeight); g2.drawLine(left+last*boxSize+boxSize/2, top-1, left+last*boxSize+boxSize/2, top-blockDispHeight); String labelString = new String ("Block " + (i+1)); g2.drawString(labelString, left+first*boxSize-boxSize/2+TEXT_GAP, top-boxSize/2); } g2.setStroke(thickerStroke); if (pref.getWidth() > (2*visRect.width)){ //dataset is big enough to require worldmap if (noImage){ //first time through draw a worldmap if dataset is big: final int WM_BD_HEIGHT = 4; final int WM_MAX_WIDTH = visRect.width/3; double sizingScalefactor; sizingScalefactor = (double) (chartSize.width)/WM_MAX_WIDTH; double scalefactor; scalefactor = (double)(chartSize.width)/(WM_MAX_WIDTH-WM_BD_HEIGHT*4); CompoundBorder wmBorder = new CompoundBorder(BorderFactory.createRaisedBevelBorder(), BorderFactory.createLoweredBevelBorder()); worldmap = new BufferedImage((int)(chartSize.width/scalefactor)+wmBorder.getBorderInsets(this).left*2, (int)(chartSize.height/sizingScalefactor)+wmBorder.getBorderInsets(this).top*2, BufferedImage.TYPE_3BYTE_BGR); Graphics gw = worldmap.getGraphics(); Graphics2D gw2 = (Graphics2D)(gw); gw2.setColor(this.getBackground()); gw2.fillRect(1,1,worldmap.getWidth()-2,worldmap.getHeight()-2); //make a pretty border gw2.setColor(Color.black); wmBorder.paintBorder(this,gw2,0,0,worldmap.getWidth()-1,worldmap.getHeight()-1); ir = wmBorder.getInteriorRectangle(this,0,0,worldmap.getWidth()-1, worldmap.getHeight()-1); ir.height -= WM_BD_HEIGHT; double prefBoxSize = boxSize/scalefactor; float[] smallDiamondX = new float[4]; float[] smallDiamondY = new float[4]; GeneralPath gp; for (int x = 0; x < dPrimeTable.length-1; x++){ for (int y = x+1; y < dPrimeTable.length; y++){ if (dPrimeTable[x][y] == null){ continue; } double xx = (x + y)*prefBoxSize/2+wmBorder.getBorderInsets(this).left; double yy = (y - x)*prefBoxSize/2+wmBorder.getBorderInsets(this).top+WM_BD_HEIGHT; smallDiamondX[0] = (float)xx; smallDiamondY[0] = (float)(yy - prefBoxSize/2); smallDiamondX[1] = (float)(xx + prefBoxSize/2); smallDiamondY[1] = (float)yy; smallDiamondX[2] = (float)xx; smallDiamondY[2] = (float)(yy + prefBoxSize/2); smallDiamondX[3] = (float)(xx - prefBoxSize/2); smallDiamondY[3] = (float)yy; gp = new GeneralPath(GeneralPath.WIND_EVEN_ODD, smallDiamondX.length); gp.moveTo(smallDiamondX[0],smallDiamondY[0]); for (int i = 1; i < smallDiamondX.length; i++){ gp.lineTo(smallDiamondX[i], smallDiamondY[i]); } gp.closePath(); gw2.setColor(dPrimeTable[x][y].getColor()); gw2.fill(gp); } } //draw block display in worldmap gw2.setColor(this.getBackground()); gw2.fillRect(wmBorder.getBorderInsets(this).left, wmBorder.getBorderInsets(this).top, ir.width, WM_BD_HEIGHT); gw2.setColor(Color.black); even = true; for (int i = 0; i < blocks.size(); i++){ int first = ((int[])blocks.elementAt(i))[0]; int last = ((int[])blocks.elementAt(i))[((int[])blocks.elementAt(i)).length-1]; int voffset; if (even){ voffset = 0; }else{ voffset = WM_BD_HEIGHT/2; } gw2.fillRect(wmBorder.getBorderInsets(this).left+(int)(prefBoxSize*first), wmBorder.getBorderInsets(this).top+voffset, (int)((last-first)*prefBoxSize), WM_BD_HEIGHT/2); even = !even; } noImage = false; } g2.drawImage(worldmap,visRect.x, visRect.y + visRect.height - worldmap.getHeight(), this); worldmapRect = new Rectangle(visRect.x, visRect.y+visRect.height-worldmap.getHeight(), worldmap.getWidth(), worldmap.getHeight()); //draw the outline of the viewport g2.setColor(Color.black); double hRatio = ir.getWidth()/pref.getWidth(); double vRatio = ir.getHeight()/pref.getHeight(); int hBump = worldmap.getWidth()-ir.width; int vBump = worldmap.getHeight()-ir.height; //bump a few pixels to avoid drawing on the border g2.drawRect((int)(visRect.x*hRatio)+hBump/2+visRect.x, (int)(visRect.y*vRatio)+vBump/2+(visRect.y + visRect.height - worldmap.getHeight()), (int)(visRect.width*hRatio), (int)(visRect.height*vRatio)); } } | 51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/85084d6651f6ee91124c1f50e21e4dc2d3bafe63/DPrimeDisplay.java/buggy/edu/mit/wi/haploview/DPrimeDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12574,
1841,
12,
17558,
314,
15329,
3639,
8599,
2460,
2098,
410,
63,
6362,
65,
302,
23327,
1388,
273,
326,
751,
18,
12071,
40,
23327,
1388,
31,
3639,
5589,
4398,
273,
326,
751,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12574,
1841,
12,
17558,
314,
15329,
3639,
8599,
2460,
2098,
410,
63,
6362,
65,
302,
23327,
1388,
273,
326,
751,
18,
12071,
40,
23327,
1388,
31,
3639,
5589,
4398,
273,
326,
751,... |
+ jiraProductId + "&component=" + ((Format) formats.get(fmt.toLowerCase())).getJiraId() | + jiraProductId + "&component=" + fmt.getJiraId() | private void writeHTML(Test test, String fmt, String dir, String os, String jdk, String ext) { String css = "../../../../css"; String refFormat = "png"; String top = "../../../../../../../"; String ref = top + "freehep-graphicsio-tests/target/site/ref-output/" + refFormat + "/"; String cloud = top + "freehep-graphicsio-tests/target/site/images/" + "cloudy.jpg"; String title = "VectorGraphics " + fmt + " " + test.getName(); String freehep = "http://java.freehep.org/"; String freehepImage = freehep + "images/sm-freehep.gif"; String url = freehep + "mvn/freehep-graphicsio-" + fmt.toLowerCase(); String out = testOutDir + dir + "/"; String baseDir = System.getProperty("basedir"); if (baseDir != null) out = baseDir + "/" + out; try { // Create Export filetype to get mime type Class cls = Class.forName(gioPackage + fmt.toLowerCase() + "." + fmt + "ExportFileType"); ExportFileType fileType = (ExportFileType) cls.newInstance(); String mimeType = fileType.getMIMETypes()[0]; (new File(out)).mkdirs(); PrintWriter w = new PrintWriter(new FileWriter(out + test.getName() + ".html")); w .println("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"); w.println("<html>"); w.println(" <head>"); w.println(" <title>" + title + "</title>"); w.println(" <style type=\"text/css\" media=\"all\">"); w.println(" @import url(\"" + css + "/maven-base.css\");"); w .println(" @import url(\"" + css + "/maven-theme.css\");"); w.println(" @import url(\"" + css + "/site.css\");"); w.println(" </style>"); w.println(" <link rel=\"stylesheet\" href=\"" + css + "/print.css\" type=\"text/css\" media=\"print\" />"); w .println(" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />"); w.println(" </head>"); w.println(" <body class=\"composite\">"); w.println(" <div id=\"banner\">"); w.println(" <a href=\"" + url + "\" id=\"bannerLeft\">"); w.println(" FreeHEP VectorGraphics Test " + fmt); w.println(" </a>"); w.println(" <a href=\"" + freehep + "\" id=\"bannerRight\">"); w.println(" <img src=\"" + freehepImage + "\" alt=\"\" />"); w.println(" </a>"); w.println(" <div class=\"clear\">"); w.println(" <hr/>"); w.println(" </div>"); w.println(" </div>"); w.println(" <div id=\"breadcrumbs\">"); w.println(" <div class=\"xleft\">Last Run: " + (new Date()) + "</div>"); w.println(" <div class=\"xright\"><a href=\"" + freehep + "\">FreeHEP</a>"); w.println(" |"); w .println(" <a href=\"http://jas.freehep.org/\">JAS</a>"); w.println(" |"); w .println(" <a href=\"http://wired.freehep.org/\">WIRED</a>"); w.println(" </div>"); w.println(" <div class=\"clear\">"); w.println(" <hr/>"); w.println(" </div>"); w.println(" </div>"); w.println(" <div id=\"leftColumn\">"); w.println(" <div id=\"navcolumn\">"); w.println(" <h5><a href=\"" + top + "vectorgraphics/index.html" + "\">Back</a></h5>"); w.println(" <h5>Operating System</h5>"); w.println(" <ul>"); String category = ((Format) formats.get(fmt.toLowerCase())) .getCategory(); String[] oss = { "Windows", "Linux", "MacOSX" }; for (int i = 0; i < oss.length; i++) { w.println(" <li class=\"none\">"); if (os.equals(oss[i])) w.println(" <strong>"); w.println(" <a href=\"" + top + "freehep-graphicsio-" + fmt.toLowerCase() + "/target/site/test-output/" + oss[i] + "/" + jdk + "/" + fmt.toLowerCase() + "/" + test.getName() + ".html\">" + oss[i] + "</a>"); if (os.equals(oss[i])) w.println(" </strong>"); w.println(" </li>"); } w.println(" </ul>"); w.println(" <h5>Java</h5>"); w.println(" <ul>"); w.println(" <li class=\"none\">"); if (jdk.equals("JDK-1.5")) w.println(" <strong>"); w.println(" <a href=\"" + top + "freehep-graphicsio-" + fmt.toLowerCase() + "/target/site/test-output/" + os + "/" + jdk + "/" + fmt.toLowerCase() + "/" + test.getName() + ".html\">" + jdk + "</a>"); if (jdk.equals("JDK-1.5")) w.println(" </strong>"); w.println(" </li>"); w.println(" </ul>"); w.println(" <h5>Formats</h5>"); w.println(" <ul>"); for (Iterator i = formats.keySet().iterator(); i.hasNext();) { String key = (String) i.next(); w.println(" <li class=\"none\">"); if (key.equalsIgnoreCase(fmt)) { w.println(" <strong>"); } Format value = (Format) formats.get(key); w.print(" "); if (value.isEnabled()) { String cat = value.getCategory(); w.print("<a href=\"" + top + "freehep-graphicsio-" + cat + "/target/site/test-output/" + os + "/" + jdk + "/" + key + "/" + test.getName() + ".html\">"); } w.print(value.getName()); if (value.isEnabled()) { w.print("</a>"); } w.println(); if (key.equalsIgnoreCase(fmt)) w.println(" </strong>"); w.println(" </li>"); } w.println(" </ul>"); w.println(" <h5>" + fmt + " Tests</h5>"); w.println(" <ul>"); for (Iterator i = tests.iterator(); i.hasNext();) { Test t = (Test) i.next(); w.println(" <li class=\"none\">"); if (t.equals(test)) w.println(" <strong>"); w.print(" "); if (t.isEnabled()) { w.print("<a href=\"" + t.getName() + ".html\">"); } w.print(t.getName()); if (t.isEnabled()) { w.print("</a>"); } w.println(); if (t.equals(test)) w.println(" </strong>"); w.println(" </li>"); } w.println(" </ul>"); w.println(" <h5>" + fmt + " Links</h5>"); w.println(" <ul>"); w.println(" <li><a href=\"" + jiraURL + "&pid=" + jiraProductId + "&component=" + ((Format) formats.get(fmt.toLowerCase())).getJiraId() + "\">Issues</a></li>"); w.println(" </ul>"); w.println(" <a href=\"" + freehep + "\" title=\"Built by FreeHEP\" id=\"poweredBy\">"); w.println(" <img alt=\"Built by FreeHEP\" src=\"" + freehepImage + "\"></img>"); w.println(" </a>"); w.println(" </div>"); w.println(" </div>"); w.println(" <div id=\"bodyColumn\">"); w.println(" <div id=\"contentBox\">"); w.println(" <div class=\"section\">"); w.println(" <h2>" + test.getName() + " " + fmt + "</h2>"); w.println(" <table class=\"bodyTable\">"); // w.println(" <caption></caption>"); w.println(" <tr class=\"a\">"); w.println(" <th>" + fmt + "</th>"); w.println(" <th>Reference (" + refFormat.toUpperCase() + ")</th>"); w.println(" </tr>"); w.println(" <tr class=\"a\">"); w.println(" <td><a href=\"" + test.getName() + "." + ext + "\">" + test.getName() + "." + ext + "</a></td>"); w.println(" <td><a href=\"" + ref + test.getName() + "." + refFormat + "\">" + test.getName() + "." + refFormat + "</a></td>"); w.println(" </tr>"); w.println(" <tr class=\"a\">"); Test[] testArray = (Test[]) tests.toArray(new Test[0]); int testIndex = 0; while (testIndex < testArray.length) { if (testArray[testIndex].equals(test)) break; testIndex++; } int previousIndex = testIndex - 1; while ((previousIndex >= 0) && !testArray[previousIndex].isEnabled()) previousIndex--; if (previousIndex >= 0) { w.println(" <td><a href=\"" + testArray[previousIndex].getName() + ".html\">previous</a></td>"); } else { w.println(" <td/>"); } int nextIndex = testIndex + 1; while ((nextIndex < testArray.length) && !testArray[nextIndex].isEnabled()) nextIndex++; if (nextIndex < testArray.length) { w.println(" <td><a href=\"" + testArray[nextIndex].getName() + ".html\">next</a></td>"); } else { w.println(" <td/>"); } w.println(" </tr>"); w.println(" <tr class=\"b\">"); // w.println(" <td><a // href=\""+name+"."+ext+"\">"+name+"."+ext+"</a></td>"); w.print(" "); w.print("<td background=\"" + cloud + "\">"); w.print("<object type=\"" + mimeType + "\" name=\"" + test.getName() + "\" data=\"" + test.getName() + "." + ext + "\" width=\"" + TestingPanel.width + "\" height=\"" + TestingPanel.height + "\">"); w.print("<param name=\"wmode\" value=\"transparent\"/>"); w.print("Image not embeddable: " + mimeType); w.print("</object>"); w.println("</td>"); w.println(" <td background=\"" + cloud + "\"><img src=\"" + ref + test.getName() + "." + refFormat + "\"/></td>"); w.println(" </tr>"); w.println(" </table>"); w.println(" </div>"); w.println(" </div>"); w.println(" </div>"); w.println(" <div class=\"clear\">"); w.println(" <hr/>"); w.println(" </div>"); w.println(" <div id=\"footer\">"); w.println(" <div class=\"xright\">©"); w.println(" 2000-2006"); w.println(" FreeHEP"); w.println(" </div>"); w.println(" <div class=\"clear\">"); w.println(" <hr/>"); w.println(" </div>"); w.println(" </div>"); w.println(" </body>"); w.println(" </html>"); w.close(); } catch (IOException e) { System.err.println("Could not write " + out); } catch (ClassNotFoundException e) { System.err.println("writeHTML " + e); } catch (IllegalAccessException e) { System.err.println("writeHTML " + e); } catch (InstantiationException e) { System.err.println("writeHTML " + e); } } | 57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/2c28038dd5b11bdba42e1457958a388fcc72f27a/TestSuite.java/clean/freehep-graphicsio-tests/src/main/java/org/freehep/graphicsio/test/TestSuite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1045,
4870,
12,
4709,
1842,
16,
514,
1325,
16,
514,
1577,
16,
514,
1140,
16,
5411,
514,
525,
2883,
16,
514,
1110,
13,
288,
3639,
514,
3747,
273,
315,
16644,
16644,
5212,
1443... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1045,
4870,
12,
4709,
1842,
16,
514,
1325,
16,
514,
1577,
16,
514,
1140,
16,
5411,
514,
525,
2883,
16,
514,
1110,
13,
288,
3639,
514,
3747,
273,
315,
16644,
16644,
5212,
1443... |
public BasicLayoutConfig(){} | public BasicLayoutConfig(){ } | public BasicLayoutConfig(){} | 52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/7072b0c19f69b0ce1db608848e332a2b3352180b/BasicLayoutConfig.java/buggy/src/edu/sc/seis/fissuresUtil/display/registrar/BasicLayoutConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7651,
3744,
809,
1435,
2916,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7651,
3744,
809,
1435,
2916,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
jjmatchedKind = 18; return jjMoveStringLiteralDfa1_0(0x28000L); | jjmatchedKind = 15; return jjMoveStringLiteralDfa1_0(0x5000L); | private final int jjMoveStringLiteralDfa0_0(){ switch(curChar) { case 35: jjmatchedKind = 18; return jjMoveStringLiteralDfa1_0(0x28000L); case 37: return jjStopAtPos(0, 35); case 40: return jjStopAtPos(0, 8); case 42: return jjStopAtPos(0, 33); case 43: return jjStopAtPos(0, 32); case 44: return jjStopAtPos(0, 3); case 45: return jjStartNfaWithStates_0(0, 31, 53); case 46: return jjMoveStringLiteralDfa1_0(0x10L); case 47: return jjStopAtPos(0, 34); case 58: return jjStopAtPos(0, 5); case 61: return jjStartNfaWithStates_0(0, 45, 45); case 91: return jjStopAtPos(0, 1); case 93: return jjStopAtPos(0, 2); case 102: return jjMoveStringLiteralDfa1_0(0x20000000L); case 116: return jjMoveStringLiteralDfa1_0(0x10000000L); case 123: return jjStopAtPos(0, 6); case 125: return jjStopAtPos(0, 7); default : return jjMoveNfa_0(0, 0); }} | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/89173502837b4d67a69cd30d0b93cf47ed84c8cc/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,
13191,
30,
540,
10684,
11073,
5677,
273,
6549,
31,
540,
327,
10684,
760... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13191,
30,
540,
10684,
11073,
5677,
273,
6549,
31,
540,
327,
10684,
760... |
this.markupAttributes = markupAttributes; } | this.markupAttributes = markupAttributes; } | public void setMarkupAttributes(Properties markupAttributes) { this.markupAttributes = markupAttributes; } | 3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/7db9e738a62cae021d8a52915e84389f881d0f9e/Image.java/buggy/itext/src/com/lowagie/text/Image.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
13111,
2498,
12,
2297,
9813,
2498,
13,
288,
3639,
333,
18,
15056,
2498,
273,
9813,
2498,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
13111,
2498,
12,
2297,
9813,
2498,
13,
288,
3639,
333,
18,
15056,
2498,
273,
9813,
2498,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
private TransactionWrapper() throws Exception { oldTx = tm.suspend(); tm.begin(); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c7133c9662c41fb385b863c92214187907f2d1b0/JDBCPersistenceManager.java/buggy/src/main/org/jboss/messaging/core/plugin/JDBCPersistenceManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
3238,
5947,
3611,
1435,
1216,
1185,
1377,
288,
540,
1592,
4188,
273,
6118,
18,
87,
18815,
5621,
540,
6118,
18,
10086,
5621,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
3238,
5947,
3611,
1435,
1216,
1185,
1377,
288,
540,
1592,
4188,
273,
6118,
18,
87,
18815,
5621,
540,
6118,
18,
10086,
5621,
1377,
289,
2,
-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.