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 |
|---|---|---|---|---|---|---|
protected void execute() throws ArchiverException, IOException
|
protected void execute() throws ArchiverException, IOException
|
protected void execute() throws ArchiverException, IOException { if ( getSourceFile().lastModified() > getDestFile().lastModified() ) { getLogger().info( "Expanding " + getSourceFile().getAbsolutePath() + " to " + getDestFile().getAbsolutePath() ); FileOutputStream out = null; CBZip2InputStream zIn = null; FileInputStream fis = null; BufferedInputStream bis = null; try { out = new FileOutputStream( getDestFile() ); fis = new FileInputStream( getSourceFile() ); bis = new BufferedInputStream( fis ); int b = bis.read(); if ( b != 'B' ) { throw new ArchiverException( getSourceFile().getAbsolutePath() + " is an invalid bz2 file." ); } b = bis.read(); if ( b != 'Z' ) { throw new ArchiverException( getSourceFile().getAbsolutePath() + " is an invalid bz2 file." ); } zIn = new CBZip2InputStream( bis ); byte[] buffer = new byte[8 * 1024]; int count = 0; do { out.write( buffer, 0, count ); count = zIn.read( buffer, 0, buffer.length ); } while ( count != -1 ); } catch ( IOException ioe ) { String msg = "Problem expanding bzip2 " + ioe.getMessage(); throw new ArchiverException( msg, ioe ); } finally { if ( bis != null ) { try { bis.close(); } catch ( IOException ioex ) { // ignore } } if ( fis != null ) { try { fis.close(); } catch ( IOException ioex ) { // ignore } } if ( out != null ) { try { out.close(); } catch ( IOException ioex ) { // ignore } } if ( zIn != null ) { try { zIn.close(); } catch ( IOException ioex ) { // ignore } } } } }
|
10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/BZip2UnArchiver.java/clean/src/main/java/org/codehaus/plexus/archiver/bzip2/BZip2UnArchiver.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
1435,
1216,
16959,
1667,
503,
16,
1860,
565,
288,
3639,
309,
261,
7889,
812,
7675,
2722,
4575,
1435,
405,
2343,
395,
812,
7675,
2722,
4575,
1435,
262,
3639,
288,
5411,
7156,
7675,
1376,
12,
315,
12271,
310,
315,
397,
7889,
812,
7675,
588,
10368,
743,
1435,
397,
315,
358,
315,
7734,
397,
2343,
395,
812,
7675,
588,
10368,
743,
1435,
11272,
5411,
12942,
596,
273,
446,
31,
5411,
21262,
9141,
22,
4348,
998,
382,
273,
446,
31,
5411,
11907,
15324,
273,
446,
31,
5411,
24742,
17771,
273,
446,
31,
5411,
775,
5411,
288,
7734,
596,
273,
394,
12942,
12,
2343,
395,
812,
1435,
11272,
7734,
15324,
273,
394,
11907,
12,
7889,
812,
1435,
11272,
7734,
17771,
273,
394,
24742,
12,
15324,
11272,
7734,
509,
324,
273,
17771,
18,
896,
5621,
7734,
309,
261,
324,
480,
296,
38,
11,
262,
7734,
288,
10792,
604,
394,
16959,
1667,
503,
12,
7889,
812,
7675,
588,
10368,
743,
1435,
397,
315,
353,
392,
2057,
24788,
22,
585,
1199,
11272,
7734,
289,
7734,
324,
273,
17771,
18,
896,
5621,
7734,
309,
261,
324,
480,
296,
62,
11,
262,
7734,
288,
10792,
604,
394,
16959,
1667,
503,
12,
7889,
812,
7675,
588,
10368,
743,
1435,
397,
315,
353,
392,
2057,
24788,
22,
585,
1199,
11272,
7734,
289,
7734,
998,
382,
273,
394,
21262,
9141,
22,
4348,
12,
17771,
11272,
7734,
1160,
8526,
1613,
273,
394,
1160,
63,
28,
380,
6250,
15533,
7734,
509,
1056,
273,
374,
31,
7734,
741,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1836,
1435,
1216,
16959,
1667,
503,
16,
1860,
565,
288,
3639,
309,
261,
7889,
812,
7675,
2722,
4575,
1435,
405,
2343,
395,
812,
7675,
2722,
4575,
1435,
262,
3639,
288,
5411,
7156,
7675,
1376,
12,
315,
12271,
310,
315,
397,
7889,
812,
7675,
588,
10368,
743,
1435,
397,
315,
358,
315,
7734,
397,
2343,
395,
812,
7675,
588,
10368,
743,
1435,
11272,
5411,
12942,
596,
273,
446,
31,
5411,
21262,
9141,
22,
4348,
998,
382,
273,
446,
31,
5411,
11907,
15324,
273,
446,
31,
5411,
24742,
17771,
273,
446,
31,
5411,
775,
5411,
288,
7734,
596,
273,
394,
12942,
12,
2343,
395,
812,
1435,
11272,
7734,
15324,
273,
394,
11907,
12,
7889,
812,
1435,
11272,
7734,
2
] |
queue[next_in] = evt; if (++next_in == queue.length) next_in = 0;
|
queue[next_in] = evt; if (++next_in == queue.length) next_in = 0;
|
public synchronized void postEvent(AWTEvent evt) { if (evt == null) throw new NullPointerException(); if (next != null) { next.postEvent(evt); return; } /* Check for any events already on the queue with the same source and ID. */ int i = next_out; while (i != next_in) { AWTEvent qevt = queue[i]; Object src; if (qevt.id == evt.id && (src = qevt.getSource()) == evt.getSource() && src instanceof Component) { /* If there are, call coalesceEvents on the source component to see if they can be combined. */ Component srccmp = (Component) src; AWTEvent coalesced_evt = srccmp.coalesceEvents(qevt, evt); if (coalesced_evt != null) { /* Yes. Replace the existing event with the combined event. */ queue[i] = coalesced_evt; return; } break; } if (++i == queue.length) i = 0; } queue[next_in] = evt; if (++next_in == queue.length) next_in = 0; if (next_in == next_out) { /* Queue is full. Extend it. */ AWTEvent[] oldQueue = queue; queue = new AWTEvent[queue.length * 2]; int len = oldQueue.length - next_out; System.arraycopy(oldQueue, next_out, queue, 0, len); if (next_out != 0) System.arraycopy(oldQueue, 0, queue, len, next_out); next_out = 0; next_in = oldQueue.length; } notify(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0bcdc7c5655d1ed77837894a9de15b7556d346b/EventQueue.java/buggy/core/src/classpath/java/java/awt/EventQueue.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
1603,
1133,
12,
37,
8588,
1133,
6324,
13,
225,
288,
565,
309,
261,
73,
11734,
422,
446,
13,
1377,
604,
394,
10108,
5621,
565,
309,
261,
4285,
480,
446,
13,
1377,
288,
1082,
202,
4285,
18,
2767,
1133,
12,
73,
11734,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
20308,
2073,
364,
1281,
2641,
1818,
603,
326,
2389,
598,
326,
1967,
1084,
1875,
282,
471,
1599,
18,
1195,
202,
202,
474,
277,
273,
1024,
67,
659,
31,
565,
1323,
261,
77,
480,
1024,
67,
267,
13,
1377,
288,
1082,
202,
37,
8588,
1133,
1043,
73,
11734,
273,
2389,
63,
77,
15533,
1082,
202,
921,
1705,
31,
3639,
309,
261,
85,
73,
11734,
18,
350,
422,
6324,
18,
350,
5411,
597,
261,
4816,
273,
1043,
73,
11734,
18,
588,
1830,
10756,
422,
6324,
18,
588,
1830,
1435,
5411,
597,
1705,
1276,
5435,
13,
1850,
288,
9506,
202,
20308,
971,
1915,
854,
16,
745,
1825,
24827,
3783,
603,
326,
1084,
1794,
4405,
282,
358,
2621,
309,
2898,
848,
506,
8224,
18,
1195,
9506,
202,
1841,
9133,
952,
1291,
273,
261,
1841,
13,
1705,
31,
9506,
202,
37,
8588,
1133,
1825,
5408,
3263,
67,
73,
11734,
273,
9133,
952,
1291,
18,
2894,
24827,
3783,
12,
85,
73,
11734,
16,
6324,
1769,
5411,
309,
261,
2894,
5408,
3263,
67,
73,
11734,
480,
446,
13,
2868,
288,
6862,
202,
20308,
19925,
18,
6910,
326,
2062,
871,
598,
326,
8224,
871,
18,
1195,
6862,
202,
4000,
63,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
1603,
1133,
12,
37,
8588,
1133,
6324,
13,
225,
288,
565,
309,
261,
73,
11734,
422,
446,
13,
1377,
604,
394,
10108,
5621,
565,
309,
261,
4285,
480,
446,
13,
1377,
288,
1082,
202,
4285,
18,
2767,
1133,
12,
73,
11734,
1769,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
20308,
2073,
364,
1281,
2641,
1818,
603,
326,
2389,
598,
326,
1967,
1084,
1875,
282,
471,
1599,
18,
1195,
202,
202,
474,
277,
273,
1024,
67,
659,
31,
565,
1323,
261,
77,
480,
1024,
67,
267,
13,
1377,
288,
1082,
202,
37,
8588,
1133,
1043,
73,
11734,
273,
2389,
63,
77,
15533,
1082,
202,
921,
1705,
31,
3639,
309,
261,
85,
73,
11734,
18,
2
] |
else throw new PortalException("AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for " + userId + " and LAYOUT_ID " + layoutId);
|
else { if (userId == realUserId) { String tQuery = "SELECT USER_DFLT_USR_ID, USER_DFLT_LAY_ID FROM UP_USER WHERE USER_ID=" + userId; log.debug("AggregatedUserLayoutStore::getAggregatedLayout(): " + tQuery); rs = stmt.executeQuery(tQuery); try { if ( rs.next() ) { userId = rs.getInt(1); layoutId = rs.getInt(2); } } finally { rs.close(); } if (userId != realUserId) { sQuery = "SELECT INIT_NODE_ID FROM UP_USER_LAYOUT_AGGR WHERE USER_ID=" + userId + " AND LAYOUT_ID = " + layoutId; log.debug("AggregatedUserLayoutStore::getAggregatedLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { if ( rs.next() ) firstStructId = rs.getInt(1); } finally { rs.close(); } } } if (firstStructId < 0) throw new PortalException("AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for " + userId + " and LAYOUT_ID " + layoutId); }
|
public IAggregatedLayout getAggregatedLayout (IPerson person, UserProfile profile) throws PortalException { int userId = person.getID(); int realUserId = userId; ResultSet rs; Connection con = null; AggregatedLayout layout = null; Hashtable layoutData = null; ALFolder rootNode = new ALFolder(); //PreparedStatement psRestrLayout = null, psRestrFragment = null; Hashtable pushFragmentRoots = null; String pushFragmentIds = null; try { EntityIdentifier personIdentifier = person.getEntityIdentifier(); IGroupMember groupPerson = GroupService.getGroupMember(personIdentifier); con = RDBMServices.getConnection(); RDBMServices.setAutoCommit(con,false); layoutData = new Hashtable(50); Iterator containingGroups = groupPerson.getAllContainingGroups(); if ( containingGroups.hasNext() ) { //Connection extraCon = RDBMServices.getConnection(); // Getting push-fragments based on a group key parameter PreparedStatement psGroups = con.prepareStatement("SELECT UOF.FRAGMENT_ID, UOF.FRAGMENT_ROOT_ID FROM UP_GROUP_FRAGMENT UPG, UP_OWNER_FRAGMENT UOF " + "WHERE UPG.GROUP_KEY=? AND UPG.FRAGMENT_ID = UOF.FRAGMENT_ID AND UOF.PUSHED_FRAGMENT='Y'"); pushFragmentRoots = new Hashtable(); while ( containingGroups.hasNext() ) { IEntityGroup entityGroup = (IEntityGroup) containingGroups.next(); psGroups.setString(1,entityGroup.getKey()); ResultSet rsGroups = psGroups.executeQuery(); if ( rsGroups.next() ) { int fragmentId = rsGroups.getInt(1); if ( pushFragmentIds == null ) pushFragmentIds = fragmentId+""; else pushFragmentIds += "," + fragmentId; pushFragmentRoots.put(""+fragmentId,rsGroups.getInt(2)+""); } while ( rsGroups.next() ) { int fragmentId = rsGroups.getInt(1); pushFragmentIds += "," + fragmentId; pushFragmentRoots.put(""+fragmentId,rsGroups.getInt(2)+""); } if ( rsGroups != null ) rsGroups.close(); } if ( psGroups != null ) psGroups.close(); //RDBMServices.releaseConnection(extraCon); } // end if hasNext() Statement stmt = con.createStatement(); // A separate statement is needed so as not to interfere with ResultSet // of statements used for queries Statement insertStmt = con.createStatement(); try { long startTime = System.currentTimeMillis(); // eventually, we need to fix template layout implementations so you can just do this: // int layoutId=profile.getLayoutId(); // but for now: String subSelectString = "SELECT LAYOUT_ID FROM UP_USER_PROFILE WHERE USER_ID=" + userId + " AND PROFILE_ID=" + profile.getProfileId(); if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getUserLayout(): " + subSelectString); int layoutId = -1; rs = stmt.executeQuery(subSelectString); try { if ( rs.next() ) { layoutId = rs.getInt(1); if ( rs.wasNull() ) layoutId = -1; } } finally { rs.close(); } if (layoutId < 0) { // First time, grab the default layout for this user String sQuery = "SELECT USER_DFLT_USR_ID, USER_DFLT_LAY_ID FROM UP_USER WHERE USER_ID=" + userId; if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { if ( rs.next() ) { userId = rs.getInt(1); layoutId = rs.getInt(2); } } finally { rs.close(); } // Make sure the next struct id is set in case the user adds a channel sQuery = "SELECT NEXT_STRUCT_ID FROM UP_USER WHERE USER_ID=" + userId; if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getUserLayout(): " + sQuery); int nextStructId = 0; rs = stmt.executeQuery(sQuery); try { if ( rs.next() ) nextStructId = rs.getInt(1); } finally { rs.close(); } sQuery = "UPDATE UP_USER SET NEXT_STRUCT_ID=" + nextStructId + " WHERE USER_ID=" + realUserId; if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getUserLayout(): " + sQuery); stmt.executeUpdate(sQuery); sQuery = "DELETE FROM UP_SS_USER_ATTS WHERE USER_ID=" + realUserId; if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getUserLayout(): " + sQuery); stmt.executeUpdate(sQuery); sQuery = " SELECT "+realUserId+", PROFILE_ID, SS_ID, SS_TYPE, STRUCT_ID, PARAM_NAME, PARAM_TYPE, PARAM_VAL "+ " FROM UP_SS_USER_ATTS WHERE USER_ID="+userId; rs = stmt.executeQuery(sQuery); while (rs.next()) { String Insert = "INSERT INTO UP_SS_USER_ATTS (USER_ID, PROFILE_ID, SS_ID, SS_TYPE, STRUCT_ID, PARAM_NAME, PARAM_TYPE, PARAM_VAL) " + "VALUES("+realUserId+","+ rs.getInt("PROFILE_ID")+","+ rs.getInt("SS_ID")+"," + rs.getInt("SS_TYPE")+"," + rs.getString("STRUCT_ID")+"," + "'"+rs.getString("PARAM_NAME")+"'," + rs.getInt("PARAM_TYPE")+"," + "'"+rs.getString("PARAM_VAL")+"')"; if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getUserLayout(): " + Insert); insertStmt.executeUpdate(Insert); } // Close Result Set if ( rs != null ) rs.close(); RDBMServices.commit(con); // Make sure it appears in the store } // end if layoutID == null // we have to delete all the records from up_layout_struct_aggr table related to the lost nodes stmt.executeUpdate("DELETE FROM UP_LAYOUT_STRUCT_AGGR WHERE USER_ID="+userId+" AND LAYOUT_ID="+layoutId+" AND PRNT_NODE_ID="+LOST_FOLDER_ID); // Instantiating the layout and setting the layout ID layout = new AggregatedLayout ( layoutId + "" ); String restrLayoutSQL = "SELECT RESTRICTION_NAME, RESTRICTION_VALUE, RESTRICTION_TREE_PATH FROM UP_LAYOUT_RESTRICTIONS "+ "WHERE LAYOUT_ID="+layoutId+" AND USER_ID="+userId+" AND NODE_ID=?"; String restrFragmentSQL = "SELECT RESTRICTION_NAME, RESTRICTION_VALUE, RESTRICTION_TREE_PATH FROM UP_FRAGMENT_RESTRICTIONS "+ "WHERE FRAGMENT_ID=? AND NODE_ID=?"; int firstStructId = -1; String sQuery = "SELECT INIT_NODE_ID FROM UP_USER_LAYOUT_AGGR WHERE USER_ID=" + userId + " AND LAYOUT_ID = " + layoutId; if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getUserLayout(): " + sQuery); rs = stmt.executeQuery(sQuery); try { if ( rs.next() ) firstStructId = rs.getInt(1); else throw new PortalException("AggregatedUserLayoutStore::getAggregatedLayout(): No INIT_NODE_ID in UP_USER_LAYOUT_AGGR for " + userId + " and LAYOUT_ID " + layoutId); } finally { rs.close(); } // Creating a root folder rootNode = ALFolder.createRootFolder(); // Setting the first layout node ID to the root folder rootNode.setFirstChildNodeId(firstStructId+""); // Putting the root node layoutData.put(IALFolderDescription.ROOT_FOLDER_ID,rootNode); // Putting the lost folder layoutData.put(IALFolderDescription.LOST_FOLDER_ID,ALFolder.createLostFolder()); // layout query String sqlLayout = "SELECT ULS.NODE_ID,ULS.NEXT_NODE_ID,ULS.CHLD_NODE_ID,ULS.PREV_NODE_ID,ULS.PRNT_NODE_ID,ULS.CHAN_ID,ULS.NAME,ULS.TYPE,ULS.HIDDEN,"+ "ULS.UNREMOVABLE,ULS.IMMUTABLE,ULS.PRIORITY,ULS.FRAGMENT_ID,ULS.FRAGMENT_NODE_ID"; if (ALuseOuterJoins) { sqlLayout += ",USP.STRUCT_PARM_NM,USP.STRUCT_PARM_VAL FROM " + RDBMServices.getDbMetaData().getJoinQuery().getQuery("layout_aggr"); } else { sqlLayout += " FROM UP_LAYOUT_STRUCT_AGGR ULS WHERE "; } sqlLayout += " ULS.USER_ID="+userId+" AND ULS.LAYOUT_ID="+layoutId; log.debug(sqlLayout); // The query for getting information of the fragments String sqlFragment = "SELECT UF.NODE_ID,UF.NEXT_NODE_ID,UF.CHLD_NODE_ID,UF.PREV_NODE_ID,UF.PRNT_NODE_ID,UF.CHAN_ID,UF.NAME,UF.TYPE,UF.HIDDEN,"+ "UF.UNREMOVABLE,UF.IMMUTABLE,UF.PRIORITY,UF.FRAGMENT_ID"; if (ALuseOuterJoins) { sqlFragment += ",UFP.PARAM_NAME,UFP.PARAM_VALUE FROM UP_LAYOUT_STRUCT_AGGR ULS, " + fragmentJoinQuery; } else { sqlFragment += " FROM UP_FRAGMENTS UF, UP_LAYOUT_STRUCT_AGGR ULS WHERE "; } sqlFragment += "(ULS.USER_ID="+userId+" AND ULS.FRAGMENT_ID=UF.FRAGMENT_ID)"; if (pushFragmentIds!=null){ sqlFragment += " UNION SELECT UF.NODE_ID,UF.NEXT_NODE_ID,UF.CHLD_NODE_ID,UF.PREV_NODE_ID,UF.PRNT_NODE_ID,UF.CHAN_ID,UF.NAME,UF.TYPE,UF.HIDDEN,"+ "UF.UNREMOVABLE,UF.IMMUTABLE,UF.PRIORITY,UF.FRAGMENT_ID" + " FROM UP_FRAGMENTS UF WHERE UF.FRAGMENT_ID IN ("+pushFragmentIds+")"; } log.debug(sqlFragment); // The hashtable object containing the fragment nodes that are next to the user layout nodes Hashtable fragmentNodes = new Hashtable(); int count = 0; for ( String sql = sqlLayout; count < 2; sql = sqlFragment, count++ ) { List chanIds = Collections.synchronizedList(new ArrayList()); StringBuffer structParms = new StringBuffer(); rs = stmt.executeQuery(sql); try { int lastStructId = 0; String sepChar = ""; if (rs.next()) { int structId = rs.getInt(1); /*if (rs.wasNull()) { structId = 0; }*/ readLayout: while (true) { if (DEBUG > 1) System.err.println("Found layout structureID " + structId); int nextId = rs.getInt(2); /*if (rs.wasNull()) { nextId = 0; }*/ int childId = rs.getInt(3); /*if (rs.wasNull()) { childId = 0; }*/ int prevId = rs.getInt(4); /*if (rs.wasNull()) { prevId = 0; }*/ int prntId = rs.getInt(5); /*if (rs.wasNull()) { prntId = 0; }*/ int chanId = rs.getInt(6); /*if (rs.wasNull()) { chanId = 0; }*/ int fragmentId = rs.getInt(13); int fragmentNodeId = ( sql.equals(sqlLayout) )?rs.getInt(14):0; IALNodeDescription nodeDesc= null; // Trying to get the node if it already exists //ALNode node = (ALNode) layout.get(structId+""); ALNode node; String childIdStr = null; //if ( ( chanId <= 0 && fragmentId <= 0 ) || ( fragmentId > 0 && ( childId > 0 || fragmentNodeId > 0 ) ) ) { if ( chanId <= 0 ) { //if ( node == null ) node = new ALFolder(); IALFolderDescription folderDesc = new ALFolderDescription(); // If children exist in the folder if ( childId > 0 ) childIdStr = ( fragmentId > 0 && fragmentNodeId <= 0 )?(fragmentId+NODE_SEPARATOR+childId):(childId+""); ((ALFolder)node).setFirstChildNodeId(childIdStr); String type = rs.getString(8); int intType; if ( "header".equalsIgnoreCase(type)) intType = UserLayoutFolderDescription.HEADER_TYPE; else if ( "footer".equalsIgnoreCase(type)) intType = UserLayoutFolderDescription.FOOTER_TYPE; else intType = UserLayoutFolderDescription.REGULAR_TYPE; folderDesc.setFolderType(intType); nodeDesc = folderDesc; } else { //if ( node == null ) node = new ALChannel(); ALChannelDescription channelDesc = new ALChannelDescription(); channelDesc.setChannelPublishId(rs.getString(6)); nodeDesc = channelDesc; } // Setting node description attributes if ( node.getNodeType() == IUserLayoutNodeDescription.FOLDER ) nodeDesc.setName(rs.getString(7)); nodeDesc.setHidden(("Y".equalsIgnoreCase(rs.getString(9))?true:false)); if ( fragmentId > 0 ) nodeDesc.setImmutable(true); else nodeDesc.setImmutable(("Y".equalsIgnoreCase(rs.getString(11))?true:false)); nodeDesc.setUnremovable(("Y".equalsIgnoreCase(rs.getString(10))?true:false)); node.setPriority(rs.getInt(12)); nodeDesc.setFragmentId((fragmentId>0)?fragmentId+"":null); if ( sql.equals(sqlLayout) ) { nodeDesc.setFragmentNodeId((fragmentNodeId>0)?fragmentNodeId+"":null); } // Setting the node id if ( fragmentId > 0 && fragmentNodeId <= 0 ) nodeDesc.setId(fragmentId+NODE_SEPARATOR+structId); else nodeDesc.setId((structId!=LOST_FOLDER_ID)?(structId+""):IALFolderDescription.LOST_FOLDER_ID); // Setting the next node id if ( nextId != 0 ) { //node.setNextNodeId((nextId!=LOST_NODE_ID)?(nextId+""):IALFolderDescription.LOST_FOLDER_ID); String nextIdStr = ( fragmentId > 0 && fragmentNodeId <= 0 )?(fragmentId+NODE_SEPARATOR+nextId):(nextId+""); node.setNextNodeId(nextIdStr); } String parentId; switch ( prntId ) { case 0: parentId = IALFolderDescription.ROOT_FOLDER_ID; break; case LOST_FOLDER_ID: parentId = IALFolderDescription.LOST_FOLDER_ID; break; default: parentId = ( fragmentId > 0 && fragmentNodeId <= 0 )?(fragmentId+NODE_SEPARATOR+prntId):(prntId+""); } // Setting up the parent id node.setParentNodeId(parentId); // Setting the previous node id if ( prevId != 0 ) { //node.setPreviousNodeId((prevId!=LOST_NODE_ID)?(prevId+""):IALFolderDescription.LOST_FOLDER_ID); String prevIdStr = ( fragmentId > 0 && fragmentNodeId <= 0 )?(fragmentId+NODE_SEPARATOR+prevId):(prevId+""); node.setPreviousNodeId(prevIdStr); } lastStructId = structId; String fragmentNodeIdStr = nodeDesc.getFragmentNodeId(); String fragmentIdStr = nodeDesc.getFragmentId(); String key = fragmentId+NODE_SEPARATOR+structId; // Putting the node into the layout hashtable with an appropriate key node.setNodeDescription(nodeDesc); if ( fragmentNodeIdStr != null ) { fragmentNodes.put(fragmentIdStr+NODE_SEPARATOR+fragmentNodeIdStr,node); } else { if ( fragmentIdStr != null && fragmentNodes.containsKey(key) ) { ALNode fragNode = (ALNode) fragmentNodes.get(key); //Keeping some properties of node description from the user layout for "pseudo" nodes //IUserLayoutNodeDescription oldDesc = fragNode.getNodeDescription(); nodeDesc.setId(fragNode.getId()); nodeDesc.setFragmentNodeId(fragNode.getFragmentNodeId()); //nodeDesc.setName(oldDesc.getName()); nodeDesc.setImmutable(true); fragNode.setNodeDescription(nodeDesc); if ( fragNode.getNodeType() == IUserLayoutNodeDescription.FOLDER ) { ((ALFolder)fragNode).setFirstChildNodeId(childIdStr); } layoutData.put(nodeDesc.getId(),fragNode); } else layoutData.put(nodeDesc.getId(),node); } // If there is a channel we need to get its parameters IALChannelDescription channelDesc = null; if ( node.getNodeType() == IUserLayoutNodeDescription.CHANNEL ) { channelDesc = (IALChannelDescription) nodeDesc; chanIds.add(nodeDesc.getId()); } // getting restrictions for the nodes PreparedStatement psRestr = null; if ( sql.equals(sqlLayout) && fragmentNodeId <= 0) { psRestr = con.prepareStatement(restrLayoutSQL); psRestr.setInt(1,structId); } else { psRestr = con.prepareStatement(restrFragmentSQL); psRestr.setInt(1,fragmentId); psRestr.setInt(2,(fragmentNodeId>0)?fragmentNodeId:structId); } ResultSet rsRestr = psRestr.executeQuery(); while (rsRestr.next()) { String restrName = rsRestr.getString(1); String restrExp = rsRestr.getString(2); String restrPath = rsRestr.getString(3); if ( restrPath == null || restrPath.trim().length() == 0 ) restrPath = IUserLayoutRestriction.LOCAL_RESTRICTION_PATH; IUserLayoutRestriction restriction = UserLayoutRestrictionFactory.createRestriction(restrName,restrExp,restrPath); nodeDesc.addRestriction(restriction); } rsRestr.close(); if ( psRestr != null ) psRestr.close(); int index = (sql.equals(sqlLayout))?15:14; if (ALuseOuterJoins) { do { String name = rs.getString(index); String value = rs.getString(index+1); // Oracle JDBC requires us to do this for longs if (name != null) { // may not be there because of the join if ( channelDesc != null ) channelDesc.setParameterValue(name,value); } if (!rs.next()) { break readLayout; } structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } while (structId == lastStructId); } else { // Do second SELECT later on for structure parameters // Adding the channel ID to the String buffer if ( node.getNodeType() == IUserLayoutNodeDescription.CHANNEL ) { structParms.append(sepChar + chanId); sepChar = ","; } if (rs.next()) { structId = rs.getInt(1); if (rs.wasNull()) { structId = 0; } } else { break readLayout; } } //end else // Setting up the priority values based on the appropriate priority restrictions PriorityRestriction priorityRestriction = AggregatedLayoutManager.getPriorityRestriction(node); if ( priorityRestriction != null ) { int priority = node.getPriority(); int[] range = priorityRestriction.getRange(); int newPriority = priority; if ( range[0] > priority ) newPriority = range[0]; else if ( range[1] < priority ) newPriority = range[1]; // Changing the node priority if it's been changed if ( newPriority != priority ) node.setPriority(newPriority); } } // while /* if ( psRestrLayout != null ) psRestrLayout.close(); if ( psRestrFragment != null ) psRestrFragment.close(); */ } } finally { rs.close(); } // We have to retrieve the channel defition after the layout structure // since retrieving the channel data from the DB may interfere with the // layout structure ResultSet (in other words, Oracle is a pain to program for) if (chanIds.size() > 0) { for (int i = 0; i < chanIds.size(); i++) { String key = (String) chanIds.get(i); ALNode node = (ALNode) layoutData.get(key); fillChannelDescription( (IALChannelDescription) node.getNodeDescription() ); } chanIds.clear(); } if ( !ALuseOuterJoins && structParms.length() > 0 ) { // Pick up structure parameters String paramSql = "SELECT STRUCT_ID, STRUCT_PARM_NM,STRUCT_PARM_VAL FROM UP_LAYOUT_PARAM WHERE USER_ID=" + userId + " AND LAYOUT_ID=" + layoutId + " AND STRUCT_ID IN (" + structParms.toString() + ") ORDER BY STRUCT_ID"; if (log.isDebugEnabled()) log.debug("AggregatedUserLayoutStore::getUserLayout(): " + paramSql); // Adding this to prevent the error "closed statement" in Oracle Statement st = con.createStatement(); rs = st.executeQuery(paramSql); try { if (rs.next()) { int structId = rs.getInt(1); readParm: while(true) { //LayoutStructure ls = (LayoutStructure)layoutStructure.get(new Integer(structId)); ALNode node = (ALNode) layoutData.get(structId+""); if ( node != null ) { IALChannelDescription channelDesc = (IALChannelDescription) node.getNodeDescription(); int lastStructId = structId; do { //ls.addParameter(rs.getString(2), rs.getString(3)); String name = rs.getString(2); String value = rs.getString(3); channelDesc.setParameterValue(name,value); if (!rs.next()) { break readParm; } } while ((structId = rs.getInt(1)) == lastStructId); } else break readParm; // if else } } } finally { rs.close(); st.close(); } } } // End of for // Very suspicious place !!!! // Check if the node from an user layout points to a fragment node, we have to bind them // The loop for all the nodes from the hashtable //System.out.println( "Getting layout size: " + layout.size() ); /*for ( Enumeration nodeIds = layout.keys(); nodeIds.hasMoreElements() ;) { String strNodeId = nodeIds.nextElement().toString(); //System.out.println( "Getting nodeId: " + strNodeId ); ALNode node = (ALNode) layout.get(strNodeId); if ( node.getFragmentId() == null ) { String nextNodeId = node.getNextNodeId(); ALNode nextNode = null; if ( nextNodeId != null ) nextNode = (ALNode) layout.get(nextNodeId); String prevNodeId = node.getPreviousNodeId(); ALNode prevNode = null; if ( prevNodeId != null ) prevNode = (ALNode) layout.get(prevNodeId); String prntNodeId = node.getParentNodeId(); ALNode prntNode = null; if ( prntNodeId != null ) prntNode = (ALNode) layout.get(prntNodeId); String firstChildId = ("folder".equals(node.getNodeType()))?((ALFolder)node).getFirstChildNodeId():null; ALNode childNode = null; if ( firstChildId != null ) childNode = (ALNode)layout.get(firstChildId); if ( nextNode != null && nextNode.getFragmentId() != null ) nextNode.setPreviousNodeId(strNodeId); if ( prevNode != null && prevNode.getFragmentId() != null ) prevNode.setNextNodeId(strNodeId); // if we have the following: node = the first child of his parent what is a fragment node :)) if ( prntNode != null && prntNode.getFragmentId() != null && node.getPreviousNodeId() == null ) if ( "folder".equals(prntNode.getNodeType()) ) ((ALFolder)prntNode).setFirstChildNodeId(strNodeId); // Checking all the children if ( childNode != null ) { for ( String tmpNodeId = childNode.getId(); tmpNodeId != null; ) { ALNode tmpChildNode = (ALNode) layout.get(tmpNodeId); // if we got tmpChildNode == NULL we have to get out of the loop //if ( tmpChildNode != null ) { if ( tmpChildNode.getFragmentId() != null ) tmpChildNode.setParentNodeId(strNodeId); tmpNodeId = tmpChildNode.getNextNodeId(); //} else break; } } } } */ // finding the last node in the sibling line of the root children ALNode lastNode = null, prevNode = null; String nextId = rootNode.getFirstChildNodeId(); while ( nextId != null ) { lastNode = (ALNode)layoutData.get(nextId); // If neccessary cleaning the end of tabs sibling line setting the next ID to null of the last tab if ( lastNode == null ) { if ( prevNode != null ) { prevNode.setNextNodeId(null); lastNode = prevNode; } break; } nextId = lastNode.getNextNodeId(); prevNode = lastNode; } // Binding the push-fragments to the end of the sibling line of the root children if ( pushFragmentRoots != null ) { for ( Enumeration fragmentIds = pushFragmentRoots.keys(); fragmentIds.hasMoreElements() ;) { String strFragmentId = fragmentIds.nextElement().toString(); String strFragmentRootId = pushFragmentRoots.get(strFragmentId).toString(); String key = strFragmentId+NODE_SEPARATOR+strFragmentRootId; ALNode node = (ALNode) layoutData.get(key); if ( node != null ) { IALNodeDescription nodeDesc = (IALNodeDescription) node.getNodeDescription(); // Setting the new next struct node ID and fragment node id since we have all the pushed fragments attached to the layout String newId = getNextStructId(person,""); nodeDesc.setId(newId); nodeDesc.setFragmentNodeId(strFragmentRootId); // Remove the old node and put the new one with another ID layoutData.remove(key); layoutData.put(newId,node); if ( lastNode != null ) { lastNode.setNextNodeId(newId); node.setPreviousNodeId(lastNode.getId()); } else rootNode.setFirstChildNodeId(newId); if ( node.getNodeType() == IUserLayoutNodeDescription.FOLDER ) { //Changing the parent Ids for all the children for ( String nextIdStr = ((ALFolder)node).getFirstChildNodeId(); nextIdStr != null; ) { ALNode child = (ALNode) layoutData.get(nextIdStr); child.setParentNodeId(newId); nextIdStr = child.getNextNodeId(); } } node.setParentNodeId(IALFolderDescription.ROOT_FOLDER_ID); lastNode = node; } } // end for } // end if for ( Enumeration fragmentNodesEnum = fragmentNodes.keys(); fragmentNodesEnum.hasMoreElements() ;) { String key = fragmentNodesEnum.nextElement().toString(); ALNode node = (ALNode ) fragmentNodes.get(key); if ( node.getNodeType() == IUserLayoutNodeDescription.FOLDER ) { String parentId = node.getId(); for ( String nextIdStr = ((ALFolder)node).getFirstChildNodeId(); nextIdStr != null; ) { ALNode child = (ALNode) layoutData.get(nextIdStr); child.setParentNodeId(parentId); nextIdStr = child.getNextNodeId(); } } } if (log.isDebugEnabled()){ long stopTime = System.currentTimeMillis(); log.debug("AggregatedUserLayoutStore::getUserLayout(): " + "Layout document for user " + userId + " took " + (stopTime - startTime) + " milliseconds to create"); } } finally { if ( insertStmt != null ) insertStmt.close(); if ( stmt != null ) stmt.close(); } } catch ( Exception e ) { log.error("Error getting aggregated layout for user " + person, e); throw new PortalException(e); } finally { RDBMServices.releaseConnection(con); } layout.setLayoutData(layoutData); return layout; }
|
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/3bc25adcd16ba3cb520ab28aa34dcab9c5310cd6/AggregatedUserLayoutStore.java/buggy/source/org/jasig/portal/layout/alm/AggregatedUserLayoutStore.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
467,
6078,
690,
3744,
336,
6078,
690,
3744,
261,
2579,
3565,
6175,
16,
2177,
4029,
3042,
13,
1216,
25478,
503,
288,
565,
509,
6249,
273,
6175,
18,
588,
734,
5621,
565,
509,
2863,
10502,
273,
6249,
31,
565,
10842,
3597,
31,
565,
4050,
356,
273,
446,
31,
565,
10594,
690,
3744,
3511,
273,
446,
31,
565,
18559,
3511,
751,
273,
446,
31,
565,
7981,
3899,
10181,
273,
394,
7981,
3899,
5621,
565,
368,
29325,
4250,
607,
313,
3744,
273,
446,
16,
4250,
607,
313,
7456,
273,
446,
31,
565,
18559,
1817,
7456,
17540,
273,
446,
31,
565,
514,
1817,
7456,
2673,
273,
446,
31,
225,
775,
288,
4202,
3887,
3004,
6175,
3004,
273,
6175,
18,
588,
1943,
3004,
5621,
4202,
467,
1114,
4419,
1041,
8346,
273,
3756,
1179,
18,
588,
1114,
4419,
12,
12479,
3004,
1769,
3639,
356,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
3639,
534,
2290,
49,
5676,
18,
542,
4965,
5580,
12,
591,
16,
5743,
1769,
3639,
3511,
751,
273,
394,
18559,
12,
3361,
1769,
4202,
4498,
4191,
3621,
273,
1041,
8346,
18,
588,
1595,
24344,
3621,
5621,
4202,
309,
261,
4191,
3621,
18,
5332,
2134,
1435,
262,
288,
3639,
368,
1952,
2870,
442,
273,
534,
2290,
49,
5676,
18,
588,
1952,
5621,
3639,
368,
26602,
1817,
17,
29528,
2511,
603,
279,
1041,
498,
1569,
3639,
16913,
4250,
3621,
273,
356,
18,
9366,
3406,
2932,
4803,
587,
3932,
18,
9981,
26903,
67,
734,
16,
587,
3932,
18,
9981,
26903,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
467,
6078,
690,
3744,
336,
6078,
690,
3744,
261,
2579,
3565,
6175,
16,
2177,
4029,
3042,
13,
1216,
25478,
503,
288,
565,
509,
6249,
273,
6175,
18,
588,
734,
5621,
565,
509,
2863,
10502,
273,
6249,
31,
565,
10842,
3597,
31,
565,
4050,
356,
273,
446,
31,
565,
10594,
690,
3744,
3511,
273,
446,
31,
565,
18559,
3511,
751,
273,
446,
31,
565,
7981,
3899,
10181,
273,
394,
7981,
3899,
5621,
565,
368,
29325,
4250,
607,
313,
3744,
273,
446,
16,
4250,
607,
313,
7456,
273,
446,
31,
565,
18559,
1817,
7456,
17540,
273,
446,
31,
565,
514,
1817,
7456,
2673,
273,
446,
31,
225,
775,
288,
4202,
3887,
3004,
6175,
3004,
273,
6175,
18,
588,
1943,
2
] |
conf.clearProperty("list.item"); assertEquals("list.item", null, conf.getProperty("list.item"));
|
conf.load(); key = "clear.element"; conf.clearProperty(key); assertNull(key, conf.getProperty(key)); assertNull(key, conf.getXmlProperty(key)); conf.load(); key = "clear.element2"; conf.clearProperty(key); assertNull(key, conf.getProperty(key)); assertNull(key, conf.getXmlProperty(key)); key = "clear.element2[@id]"; assertNotNull(key, conf.getProperty(key)); assertNotNull(key, conf.getXmlProperty(key)); conf.load(); key = "clear.comment"; conf.clearProperty(key); assertNull(key, conf.getProperty(key)); assertNull(key, conf.getXmlProperty(key)); conf.load(); key = "clear.cdata"; conf.clearProperty(key); assertNull(key, conf.getProperty(key)); assertNull(key, conf.getXmlProperty(key)); conf.load(); key = "clear.list.item"; conf.clearProperty(key); assertNull(key, conf.getProperty(key)); assertNull(key, conf.getXmlProperty(key)); key = "clear.list.item[@id]"; assertNotNull(key, conf.getProperty(key)); assertNotNull(key, conf.getXmlProperty(key)); conf.load(); key = "list.item"; conf.clearProperty(key); assertNull(key, conf.getProperty(key)); assertNull(key, conf.getXmlProperty(key));
|
public void testClearProperty() { conf.clearProperty("element"); assertEquals("element", null, conf.getProperty("element")); conf.clearProperty("list.item"); assertEquals("list.item", null, conf.getProperty("list.item")); }
|
56523 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56523/f5ca5fd4a1e50043dd4f1dce5523af7b380ffb18/TestXMLConfiguration.java/buggy/src/test/org/apache/commons/configuration/TestXMLConfiguration.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9094,
1396,
1435,
565,
288,
3639,
2195,
18,
8507,
1396,
2932,
2956,
8863,
3639,
1815,
8867,
2932,
2956,
3113,
446,
16,
2195,
18,
588,
1396,
2932,
2956,
7923,
1769,
7734,
2195,
18,
8507,
1396,
2932,
1098,
18,
1726,
8863,
3639,
1815,
8867,
2932,
1098,
18,
1726,
3113,
446,
16,
2195,
18,
588,
1396,
2932,
1098,
18,
1726,
7923,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
9094,
1396,
1435,
565,
288,
3639,
2195,
18,
8507,
1396,
2932,
2956,
8863,
3639,
1815,
8867,
2932,
2956,
3113,
446,
16,
2195,
18,
588,
1396,
2932,
2956,
7923,
1769,
7734,
2195,
18,
8507,
1396,
2932,
1098,
18,
1726,
8863,
3639,
1815,
8867,
2932,
1098,
18,
1726,
3113,
446,
16,
2195,
18,
588,
1396,
2932,
1098,
18,
1726,
7923,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
String editURI = absUrl + "/app/" + website.getHandle()
|
String editURI = URLUtilities.getAtomProtocolURL(true)+"/"+website.getHandle() + "/resource/" + file.getName() + ".media-link"; String editMediaURI = URLUtilities.getAtomProtocolURL(true)+"/"+ website.getHandle()
|
private Entry createAtomResourceEntry(WebsiteData website, File file) { String absUrl = RollerRuntimeConfig.getAbsoluteContextURL(); String editURI = absUrl + "/app/" + website.getHandle() + "/resource/" + file.getName(); String viewURI = absUrl + "/resources/" + website.getHandle() + "/" + file.getName(); FileTypeMap map = FileTypeMap.getDefaultFileTypeMap(); String contentType = map.getContentType(file); Entry entry = new Entry(); entry.setTitle(file.getName()); entry.setUpdated(new Date(file.lastModified())); Link editlink = new Link(); editlink.setRel("edit"); editlink.setHref(editURI); List otherlinks = new ArrayList(); otherlinks.add(editlink); entry.setOtherLinks(otherlinks); Content content = new Content(); content.setSrc(viewURI); content.setType(contentType); List contents = new ArrayList(); contents.add(content); entry.setContents(contents); return entry; }
|
46431 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46431/fd0c6dd0b7fd4da3b03abcd649353e0a5c26a88e/RollerAtomHandler.java/buggy/src/org/apache/roller/webservices/atomprotocol/RollerAtomHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3841,
752,
3641,
1420,
1622,
12,
19186,
751,
12504,
16,
1387,
585,
13,
288,
540,
514,
2417,
1489,
273,
11714,
749,
5576,
809,
18,
588,
10368,
1042,
1785,
5621,
3639,
514,
3874,
3098,
273,
2417,
1489,
7734,
397,
2206,
2910,
4898,
397,
12504,
18,
588,
3259,
1435,
7734,
397,
2206,
3146,
4898,
397,
585,
18,
17994,
5621,
3639,
514,
1476,
3098,
273,
2417,
1489,
7734,
397,
2206,
4683,
4898,
397,
12504,
18,
588,
3259,
1435,
7734,
397,
4016,
397,
585,
18,
17994,
5621,
3639,
1387,
23968,
852,
273,
1387,
23968,
18,
588,
1868,
812,
23968,
5621,
3639,
514,
5064,
273,
852,
18,
588,
8046,
12,
768,
1769,
3639,
3841,
1241,
273,
394,
3841,
5621,
3639,
1241,
18,
542,
4247,
12,
768,
18,
17994,
10663,
3639,
1241,
18,
542,
7381,
12,
2704,
2167,
12,
768,
18,
2722,
4575,
1435,
10019,
3639,
4048,
3874,
1232,
273,
394,
4048,
5621,
3639,
3874,
1232,
18,
542,
1971,
2932,
4619,
8863,
3639,
3874,
1232,
18,
542,
15962,
12,
4619,
3098,
1769,
3639,
987,
1308,
7135,
273,
394,
2407,
5621,
3639,
1308,
7135,
18,
1289,
12,
4619,
1232,
1769,
3639,
1241,
18,
542,
8290,
7100,
12,
3011,
7135,
1769,
3639,
3697,
913,
273,
394,
3697,
5621,
3639,
913,
18,
542,
7740,
12,
1945,
3098,
1769,
3639,
913,
18,
542,
559,
12,
22194,
1769,
3639,
987,
2939,
273,
394,
2407,
5621,
3639,
2939,
18,
1289,
12,
1745,
1769,
3639,
1241,
18,
542,
6323,
12,
3980,
1769,
7734,
327,
1241,
31,
565,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3841,
752,
3641,
1420,
1622,
12,
19186,
751,
12504,
16,
1387,
585,
13,
288,
540,
514,
2417,
1489,
273,
11714,
749,
5576,
809,
18,
588,
10368,
1042,
1785,
5621,
3639,
514,
3874,
3098,
273,
2417,
1489,
7734,
397,
2206,
2910,
4898,
397,
12504,
18,
588,
3259,
1435,
7734,
397,
2206,
3146,
4898,
397,
585,
18,
17994,
5621,
3639,
514,
1476,
3098,
273,
2417,
1489,
7734,
397,
2206,
4683,
4898,
397,
12504,
18,
588,
3259,
1435,
7734,
397,
4016,
397,
585,
18,
17994,
5621,
3639,
1387,
23968,
852,
273,
1387,
23968,
18,
588,
1868,
812,
23968,
5621,
3639,
514,
5064,
273,
852,
18,
588,
8046,
12,
768,
1769,
3639,
3841,
1241,
273,
394,
3841,
5621,
3639,
1241,
18,
2
] |
compound = (IASTCompoundStatement) for_stmt.getBody(); IASTExpressionStatement exprSt = (IASTExpressionStatement) compound .getStatements()[0]; IASTIdExpression id_i3 = (IASTIdExpression) exprSt.getExpression(); IASTName name_i4 = id_i3.getName();
|
compound = (IASTCompoundStatement) for_stmt.getBody(); IASTExpressionStatement exprSt = (IASTExpressionStatement) compound .getStatements()[0]; IASTIdExpression id_i3 = (IASTIdExpression) exprSt.getExpression(); IASTName name_i4 = id_i3.getName();
|
public void testForLoop() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("void f() { \n"); //$NON-NLS-1$ buffer.append(" for( int i = 0; i < 5; i++ ) { \n"); //$NON-NLS-1$ buffer.append(" i; \n"); //$NON-NLS-1$ buffer.append(" } \n"); //$NON-NLS-1$ buffer.append("} \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.C); //void f() { IASTFunctionDefinition fdef = (IASTFunctionDefinition) tu .getDeclarations()[0]; IASTCompoundStatement compound = (IASTCompoundStatement) fdef.getBody(); // for( IASTForStatement for_stmt = (IASTForStatement) compound.getStatements()[0]; // int i = 0; assertNull(for_stmt.getInitExpression()); IASTSimpleDeclaration initDecl = (IASTSimpleDeclaration) for_stmt .getInitDeclaration(); IASTDeclarator dtor = initDecl.getDeclarators()[0]; IASTName name_i = dtor.getName(); // i < 5; IASTBinaryExpression exp = (IASTBinaryExpression) for_stmt.getCondition(); IASTIdExpression id_i = (IASTIdExpression) exp.getOperand1(); IASTName name_i2 = id_i.getName(); IASTLiteralExpression lit_5 = (IASTLiteralExpression) exp.getOperand2(); assertEquals(IASTLiteralExpression.lk_integer_constant, lit_5.getKind()); // i++ ) { IASTUnaryExpression un = (IASTUnaryExpression) for_stmt .getIterationExpression(); IASTIdExpression id_i2 = (IASTIdExpression) un.getOperand(); IASTName name_i3 = id_i2.getName(); assertEquals(IASTUnaryExpression.op_postFixIncr, un.getOperator()); // i; compound = (IASTCompoundStatement) for_stmt.getBody(); IASTExpressionStatement exprSt = (IASTExpressionStatement) compound .getStatements()[0]; IASTIdExpression id_i3 = (IASTIdExpression) exprSt.getExpression(); IASTName name_i4 = id_i3.getName(); //bindings IVariable var_1 = (IVariable) name_i4.resolveBinding(); IVariable var_2 = (IVariable) name_i.resolveBinding(); IVariable var_3 = (IVariable) name_i2.resolveBinding(); IVariable var_4 = (IVariable) name_i3.resolveBinding(); assertSame(var_1, var_2); assertSame(var_2, var_3); assertSame(var_3, var_4); // test tu.getDeclarations(IBinding) IASTName[] decls = tu.getDeclarations(fdef.getDeclarator().getName() .resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], fdef.getDeclarator().getName()); decls = tu.getDeclarations(name_i.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_i); decls = tu.getDeclarations(name_i2.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_i); decls = tu.getDeclarations(name_i3.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_i); decls = tu.getDeclarations(name_i4.resolveBinding()); assertEquals(decls.length, 1); assertEquals(decls[0], name_i); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/98145350e052e39e57313251e0f805a20472a08d/AST2Tests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2Tests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
31451,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
6459,
284,
1435,
288,
7682,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
282,
364,
12,
509,
277,
273,
374,
31,
277,
411,
1381,
31,
277,
9904,
262,
288,
225,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
9079,
1613,
18,
6923,
2932,
1377,
277,
31,
21821,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
282,
289,
1171,
9079,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
97,
21394,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
467,
9053,
6717,
2802,
28325,
273,
1109,
12,
4106,
18,
10492,
9334,
6783,
3779,
18,
39,
1769,
1377,
368,
6459,
284,
1435,
288,
1377,
467,
9053,
2083,
1852,
284,
536,
273,
261,
45,
9053,
2083,
1852,
13,
28325,
5411,
263,
588,
21408,
1435,
63,
20,
15533,
1377,
467,
9053,
16835,
3406,
11360,
273,
261,
45,
9053,
16835,
3406,
13,
284,
536,
18,
588,
2250,
5621,
1377,
368,
282,
364,
12,
1377,
467,
9053,
1290,
3406,
364,
67,
10589,
273,
261,
45,
9053,
1290,
3406,
13,
11360,
18,
588,
14663,
1435,
63,
20,
15533,
1377,
368,
3639,
509,
277,
273,
374,
31,
1377,
1815,
2041,
12,
1884,
67,
10589,
18,
588,
2570,
2300,
10663,
1377,
467,
9053,
5784,
6094,
1208,
3456,
273,
261,
45,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
31451,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
6459,
284,
1435,
288,
7682,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
282,
364,
12,
509,
277,
273,
374,
31,
277,
411,
1381,
31,
277,
9904,
262,
288,
225,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
9079,
1613,
18,
6923,
2932,
1377,
277,
31,
21821,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
282,
289,
1171,
9079,
521,
82,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
1377,
1613,
18,
6923,
2932,
97,
21394,
521,
82,
8863,
4329,
3993,
17,
2
] |
copy( source, target, new byte[ 1024 * 1024 ] );
|
String targetPath = targetDir.getAbsolutePath() + File.separatorChar; byte[] buffer = new byte[ 1024 * 1024 ]; for (int i = 0; i < files.length; i++) { File file = files[i]; copy( file, new File( targetPath + file.getName() ), buffer ); }
|
public static void copy(File source, File target) throws FileNotFoundException, IOException { copy( source, target, new byte[ 1024 * 1024 ] ); }
|
9804 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9804/10b054da0b547cf33b8dee0f1b5a7a250412b0db/FileUtil.java/buggy/build/source/src/de/enough/polish/util/FileUtil.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1610,
12,
812,
1084,
16,
1387,
1018,
13,
225,
202,
15069,
13707,
16,
1860,
225,
202,
95,
202,
202,
3530,
12,
1084,
16,
1018,
16,
394,
1160,
63,
6250,
380,
6250,
308,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1610,
12,
812,
1084,
16,
1387,
1018,
13,
225,
202,
15069,
13707,
16,
1860,
225,
202,
95,
202,
202,
3530,
12,
1084,
16,
1018,
16,
394,
1160,
63,
6250,
380,
6250,
308,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Reader reader = source.getCharacterStream(); if (reader != null)
|
if (source != null)
|
static XmlObject downloadDocument(SchemaTypeLoader loader, String namespace, String absoluteURL) throws MalformedURLException, IOException, XmlException { StscState state = StscState.get(); EntityResolver resolver = state.getEntityResolver(); if (resolver != null) { InputSource source; try { source = resolver.resolveEntity(namespace, absoluteURL); if (source==null) throw new XmlException("Unresolvable entity for: " + namespace + " : " + absoluteURL); } // TODO (cezar)add check source==null catch (SAXException e) { throw new XmlException(e); } state.addSourceUri(absoluteURL, null); // first preference for InputSource contract: character stream Reader reader = source.getCharacterStream(); if (reader != null) { reader = copySchemaSource(absoluteURL, reader, state); XmlOptions options = new XmlOptions(); options.setLoadLineNumbers(); options.setDocumentSourceName(absoluteURL); return loader.parse(reader, null, options); } // second preference for InputSource contract: InputStream bytes = source.getByteStream(); if (bytes != null) { bytes = copySchemaSource(absoluteURL, bytes, state); String encoding = source.getEncoding(); XmlOptions options = new XmlOptions(); options.setLoadLineNumbers(); options.setLoadMessageDigest(); options.setDocumentSourceName(absoluteURL); if (encoding != null) options.setCharacterEncoding(encoding); return loader.parse(bytes, null, options); } // third preference: use the (possibly redirected) url String urlToLoad = source.getSystemId(); if (urlToLoad == null) throw new IOException("EntityResolver unable to resolve " + absoluteURL + " (for namespace " + namespace + ")"); copySchemaSource(absoluteURL, state); XmlOptions options = new XmlOptions(); options.setLoadLineNumbers(); options.setLoadMessageDigest(); options.setDocumentSourceName(absoluteURL); URL urlDownload = new URL(urlToLoad); return loader.parse(urlDownload, null, options); } // no resolver - just use the URL directly, no substitution state.addSourceUri(absoluteURL, null); copySchemaSource(absoluteURL, state); XmlOptions options = new XmlOptions(); options.setLoadLineNumbers(); options.setLoadMessageDigest(); URL urlDownload = new URL(absoluteURL); return loader.parse(urlDownload, null, options); }
|
3520 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3520/716e88d171662f8199c0ee06b48274d6e73204c3/StscImporter.java/clean/v2/src/typeimpl/org/apache/xmlbeans/impl/schema/StscImporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
760,
5714,
921,
4224,
2519,
12,
3078,
559,
2886,
4088,
16,
514,
1981,
16,
514,
4967,
1785,
13,
7734,
1216,
20710,
16,
1860,
16,
5714,
503,
3639,
288,
5411,
934,
1017,
1119,
919,
273,
934,
1017,
1119,
18,
588,
5621,
13491,
3887,
4301,
5039,
273,
919,
18,
588,
1943,
4301,
5621,
5411,
309,
261,
14122,
480,
446,
13,
5411,
288,
7734,
23699,
1084,
31,
7734,
775,
7734,
288,
10792,
1084,
273,
5039,
18,
10828,
1943,
12,
4937,
16,
4967,
1785,
1769,
10792,
309,
261,
3168,
631,
2011,
13,
7682,
604,
394,
5714,
503,
2932,
984,
7818,
16845,
1522,
364,
30,
315,
397,
1981,
397,
315,
294,
315,
397,
4967,
1785,
1769,
7734,
289,
282,
368,
2660,
261,
311,
94,
297,
13,
1289,
866,
1084,
631,
2011,
7734,
1044,
261,
55,
2501,
503,
425,
13,
7734,
288,
10792,
604,
394,
5714,
503,
12,
73,
1769,
7734,
289,
4766,
565,
919,
18,
1289,
1830,
3006,
12,
12547,
1785,
16,
446,
1769,
7734,
368,
1122,
11555,
364,
23699,
6835,
30,
3351,
1407,
7734,
5393,
2949,
273,
1084,
18,
588,
7069,
1228,
5621,
7734,
309,
261,
10530,
480,
446,
13,
7734,
288,
10792,
2949,
273,
1610,
3078,
1830,
12,
12547,
1785,
16,
2949,
16,
919,
1769,
10792,
5714,
1320,
702,
273,
394,
5714,
1320,
5621,
10792,
702,
18,
542,
2563,
1670,
10072,
5621,
10792,
702,
18,
542,
2519,
1830,
461,
12,
12547,
1785,
1769,
10792,
327,
4088,
18,
2670,
12,
10530,
16,
446,
16,
702,
1769,
7734,
289,
27573,
368,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
760,
5714,
921,
4224,
2519,
12,
3078,
559,
2886,
4088,
16,
514,
1981,
16,
514,
4967,
1785,
13,
7734,
1216,
20710,
16,
1860,
16,
5714,
503,
3639,
288,
5411,
934,
1017,
1119,
919,
273,
934,
1017,
1119,
18,
588,
5621,
13491,
3887,
4301,
5039,
273,
919,
18,
588,
1943,
4301,
5621,
5411,
309,
261,
14122,
480,
446,
13,
5411,
288,
7734,
23699,
1084,
31,
7734,
775,
7734,
288,
10792,
1084,
273,
5039,
18,
10828,
1943,
12,
4937,
16,
4967,
1785,
1769,
10792,
309,
261,
3168,
631,
2011,
13,
7682,
604,
394,
5714,
503,
2932,
984,
7818,
16845,
1522,
364,
30,
315,
397,
1981,
397,
315,
294,
315,
397,
4967,
1785,
1769,
7734,
289,
282,
368,
2660,
261,
311,
2
] |
debuggerFrame.onExit(cx, false, result);
|
debuggerFrame.onExit(cx, false, result);
|
static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, NativeFunction fnOrScript, InterpreterData idata) throws JavaScriptException { if (cx.interpreterSecurityDomain != idata.securityDomain) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } SecurityController sc = idata.securityController; Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = idata.securityDomain; try { return sc.callWithDomain(idata.securityDomain, cx, fnOrScript, scope, thisObj, args); } finally { cx.interpreterSecurityDomain = savedDomain; } } final Object DBL_MRK = Interpreter.DBL_MRK; final Scriptable undefined = Undefined.instance; final int VAR_SHFT = 0; final int maxVars = idata.itsMaxVars; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int STACK_SHFT = LOCAL_SHFT + idata.itsMaxLocals;// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_STACK_SHFT]: used for newtemp/usetemp// stack[STACK_SHFT <= i < STACK_SHFT + idata.itsMaxStack]: stack data// sDbl[i]: if stack[i] is DBL_MRK, sDbl[i] holds the number value int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != STACK_SHFT + idata.itsMaxStack) Kit.codeBug(); Object[] stack = new Object[maxFrameArray]; double[] sDbl = new double[maxFrameArray]; int stackTop = STACK_SHFT - 1; int withDepth = 0; int definedArgs = fnOrScript.argCount; if (definedArgs > argCount) { definedArgs = argCount; } for (int i = 0; i != definedArgs; ++i) { Object arg = args[argShift + i]; stack[VAR_SHFT + i] = arg; if (arg == DBL_MRK) { sDbl[VAR_SHFT + i] = argsDbl[argShift + i]; } } for (int i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); } if (idata.itsFunctionType != 0) { InterpretedFunction f = (InterpretedFunction)fnOrScript; if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } if (idata.itsCheckThis) { thisObj = ScriptRuntime.getThis(thisObj); } if (idata.itsNeedsActivation) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } } else { ScriptRuntime.initScript(cx, scope, fnOrScript, thisObj, idata.itsFromEvalCode); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { createFunction(cx, scope, fdata, idata.itsFromEvalCode); } } } // Wrapped regexps for functions are stored in InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution Scriptable[] scriptRegExps = null; boolean useActivationVars = false; if (debuggerFrame != null) { if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); argShift = 0; argsDbl = null; } if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) { useActivationVars = true; scope = ScriptRuntime.initVarObj(cx, scope, fnOrScript, thisObj, args); } debuggerFrame.onEnter(cx, scope, thisObj, args); } InterpreterData savedData = cx.interpreterData; cx.interpreterData = idata; Object result = undefined; // If javaException != null on exit, it will be throw instead of // normal return Throwable javaException = null; int exceptionPC = -1; byte[] iCode = idata.itsICode; int pc = 0; int pcPrevBranch = 0; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; String[] strings = idata.itsStringTable; String stringReg = null; int indexReg = 0; Loop: for (;;) { int pcJump; try { int op = 0xFF & iCode[pc++]; switch (op) { // Back indent to ease imlementation reading case Icode_CATCH: { // The following code should be executed inside try/catch inside main // loop, not in the loop catch block itself to deal with exceptions // from observeInstructionCount. A special bytecode is used only to // simplify logic. if (javaException == null) Kit.codeBug(); pcJump = -1; boolean doCatch = false; int handlerOffset = getExceptionHandler(idata.itsExceptionTable, exceptionPC); if (handlerOffset >= 0) { final int SCRIPT_CAN_CATCH = 0, ONLY_FINALLY = 1, OTHER = 2; int exType; if (javaException instanceof JavaScriptException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EcmaError) { // an offical ECMA error object, exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof EvaluatorException) { exType = SCRIPT_CAN_CATCH; } else if (javaException instanceof RuntimeException) { exType = ONLY_FINALLY; } else { // Error instance exType = OTHER; } if (exType != OTHER) { // Do not allow for JS to interfere with Error instances // (exType == OTHER), as they can be used to terminate // long running script if (exType == SCRIPT_CAN_CATCH) { // Allow JS to catch only JavaScriptException and // EcmaError pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_CATCH_SLOT]; if (pcJump >= 0) { // Has catch block doCatch = true; } } if (pcJump < 0) { pcJump = idata.itsExceptionTable[handlerOffset + EXCEPTION_FINALLY_SLOT]; } } } if (debuggerFrame != null && !(javaException instanceof Error)) { debuggerFrame.onExceptionThrown(cx, javaException); } if (pcJump < 0) { break Loop; } // We caught an exception // restore scope at try point int tryWithDepth = idata.itsExceptionTable[ handlerOffset + EXCEPTION_WITH_DEPTH_SLOT]; while (tryWithDepth != withDepth) { if (scope == null) Kit.codeBug(); scope = ScriptRuntime.leaveWith(scope); --withDepth; } if (doCatch) { stackTop = STACK_SHFT - 1; int exLocal = idata.itsExceptionTable[ handlerOffset + EXCEPTION_LOCAL_SLOT]; stack[LOCAL_SHFT + exLocal] = ScriptRuntime.getCatchObject( cx, scope, javaException); } else { stackTop = STACK_SHFT; // Call finally handler with javaException on stack top to // distinguish from normal invocation through GOSUB // which would contain DBL_MRK on the stack stack[stackTop] = javaException; } // clear exception javaException = null; // go to generic jump code break; } case Token.THROW: { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int sourceLine = getShort(iCode, pc); throw new JavaScriptException(value, idata.itsSourceFile, sourceLine); } case Token.GE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl <= lDbl); } else { valBln = ScriptRuntime.cmp_LE(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LE : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl <= rDbl); } else { valBln = ScriptRuntime.cmp_LE(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.GT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl < lDbl); } else { valBln = ScriptRuntime.cmp_LT(rhs, lhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.LT : { --stackTop; Object rhs = stack[stackTop + 1]; Object lhs = stack[stackTop]; boolean valBln; if (rhs == DBL_MRK || lhs == DBL_MRK) { double rDbl = stack_double(stack, sDbl, stackTop + 1); double lDbl = stack_double(stack, sDbl, stackTop); valBln = (lDbl < rDbl); } else { valBln = ScriptRuntime.cmp_LT(lhs, rhs); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IN : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.INSTANCEOF : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); boolean valBln = ScriptRuntime.instanceOf(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.EQ : { --stackTop; boolean valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.NE : { --stackTop; boolean valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHEQ : { --stackTop; boolean valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.SHNE : { --stackTop; boolean valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; continue Loop; } case Token.IFNE : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Token.IFEQ : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } pcJump = getTarget(iCode, pc); break; } case Icode_IFEQ_POP : { boolean valBln = stack_boolean(stack, sDbl, stackTop); --stackTop; if (!valBln) { pc += 2; continue Loop; } stack[stackTop] = null; --stackTop; pcJump = getTarget(iCode, pc); break; } case Token.GOTO : pcJump = getTarget(iCode, pc); break; case Icode_GOSUB : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = pc + 2; pcJump = getTarget(iCode, pc); break; case Icode_RETSUB : { // indexReg: local to store return address Object value = stack[LOCAL_SHFT + indexReg]; if (value != DBL_MRK) { // Invocation from exception handler, restore object to rethrow javaException = (Throwable)value; exceptionPC = pc - 1; pcJump = getJavaCatchPC(iCode); } else { // Normal return from GOSUB pcJump = (int)sDbl[LOCAL_SHFT + indexReg]; } break; } case Token.POP : stack[stackTop] = null; stackTop--; continue Loop; case Icode_DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; continue Loop; case Icode_DUPSECOND : { stack[stackTop + 1] = stack[stackTop - 1]; sDbl[stackTop + 1] = sDbl[stackTop - 1]; stackTop++; continue Loop; } case Icode_SWAP : { Object o = stack[stackTop]; stack[stackTop] = stack[stackTop - 1]; stack[stackTop - 1] = o; double d = sDbl[stackTop]; sDbl[stackTop] = sDbl[stackTop - 1]; sDbl[stackTop - 1] = d; continue Loop; } case Token.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); stack[stackTop] = null; --stackTop; continue Loop; case Token.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break Loop; case Token.RETURN_POPV : break Loop; case Icode_RETUNDEF : result = undefined; break Loop; case Token.BITNOT : { int rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; continue Loop; } case Token.BITAND : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; continue Loop; } case Token.BITOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; continue Loop; } case Token.BITXOR : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; continue Loop; } case Token.LSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; continue Loop; } case Token.RSH : { int rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; int lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; continue Loop; } case Token.URSH : { int rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; continue Loop; } case Token.ADD : --stackTop; do_add(stack, sDbl, stackTop); continue Loop; case Token.SUB : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; continue Loop; } case Token.NEG : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; continue Loop; } case Token.POS : { double rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; continue Loop; } case Token.MUL : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; continue Loop; } case Token.DIV : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; continue Loop; } case Token.MOD : { double rDbl = stack_double(stack, sDbl, stackTop); --stackTop; double lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; continue Loop; } case Token.NOT : { stack[stackTop] = stack_boolean(stack, sDbl, stackTop) ? Boolean.FALSE : Boolean.TRUE; continue Loop; } case Icode_REG_STR1: stringReg = strings[0xFF & iCode[pc]]; ++pc; continue Loop; case Icode_REG_STR2: stringReg = strings[getIndex(iCode, pc)]; pc += 2; continue Loop; case Icode_REG_STR4: stringReg = strings[getInt(iCode, pc)]; pc += 4; continue Loop; case Icode_REG_IND_C0: indexReg = 0; continue Loop; case Icode_REG_IND_C1: indexReg = 1; continue Loop; case Icode_REG_IND_C2: indexReg = 2; continue Loop; case Icode_REG_IND_C3: indexReg = 3; continue Loop; case Icode_REG_IND1: indexReg = 0xFF & iCode[pc]; ++pc; continue Loop; case Icode_REG_IND2: indexReg = getIndex(iCode, pc); pc += 2; continue Loop; case Icode_REG_IND4: indexReg = getInt(iCode, pc); pc += 4; continue Loop; case Token.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, stringReg); continue Loop; case Token.SETNAME : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Scriptable lhs = (Scriptable)stack[stackTop]; stack[stackTop] = ScriptRuntime.setName(lhs, rhs, scope, stringReg); continue Loop; } case Token.DELPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(cx, scope, lhs, rhs); continue Loop; } case Token.GETPROP : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, stringReg, scope); continue Loop; } case Token.SETPROP : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, stringReg, rhs, scope); continue Loop; } case Token.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; continue Loop; case Token.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; continue Loop; case Icode_PROPINC : case Icode_PROPDEC : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecr(lhs, stringReg, scope, op == Icode_PROPINC); continue Loop; } case Icode_ELEMINC : case Icode_ELEMDEC : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrDecrElem(lhs, rhs, scope, op == Icode_ELEMINC); continue Loop; } case Token.LOCAL_SAVE : stack[LOCAL_SHFT + indexReg] = stack[stackTop]; sDbl[LOCAL_SHFT + indexReg] = sDbl[stackTop]; --stackTop; continue Loop; case Token.LOCAL_LOAD : ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + indexReg]; sDbl[stackTop] = sDbl[LOCAL_SHFT + indexReg]; continue Loop; case Icode_CALLSPECIAL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } // indexReg: number of arguments int callType = iCode[pc] & 0xFF; boolean isNew = (iCode[pc + 1] != 0); int sourceLine = getShort(iCode, pc + 2); stackTop -= indexReg; Object[] outArgs = getArgsArray(stack, sDbl, stackTop + 1, indexReg); Object functionThis; if (isNew) { functionThis = null; } else { functionThis = stack[stackTop]; if (functionThis == DBL_MRK) { functionThis = doubleWrap(sDbl[stackTop]); } --stackTop; } Object function = stack[stackTop]; if (function == DBL_MRK) function = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, function, isNew, functionThis, outArgs, scope, thisObj, callType, idata.itsSourceFile, sourceLine); instructionCount = cx.instructionCount; pc += 4; continue Loop; } case Token.CALL : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; Scriptable calleeScope = scope; if (idata.itsNeedsActivation) { calleeScope = ScriptableObject.getTopLevelScope(scope); } Scriptable calleeThis; if (rhs instanceof Scriptable || rhs == null) { calleeThis = (Scriptable)rhs; } else { calleeThis = ScriptRuntime.toObject(cx, calleeScope, rhs); } if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.call not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; stack[stackTop] = interpret(cx, calleeScope, calleeThis, stack, sDbl, calleeArgShft, indexReg, f, f.itsData); } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = f.call(cx, calleeScope, calleeThis, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; continue Loop; } case Token.NEW : { if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } // indexReg: number of arguments stackTop -= indexReg; int calleeArgShft = stackTop + 1; Object lhs = stack[stackTop]; if (lhs instanceof InterpretedFunction) { // Inlining of InterpretedFunction.construct not to create // argument array InterpretedFunction f = (InterpretedFunction)lhs; Scriptable newInstance = f.createObject(cx, scope); Object callResult = interpret(cx, scope, newInstance, stack, sDbl, calleeArgShft, indexReg, f, f.itsData); if (callResult instanceof Scriptable && callResult != undefined) { stack[stackTop] = callResult; } else { stack[stackTop] = newInstance; } } else if (lhs instanceof Function) { Function f = (Function)lhs; Object[] outArgs = getArgsArray(stack, sDbl, calleeArgShft, indexReg); stack[stackTop] = f.construct(cx, scope, outArgs); } else { if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); else if (lhs == undefined) { // special code for better error message for call // to undefined lhs = stringReg; } throw ScriptRuntime.typeError1("msg.isnt.function", ScriptRuntime.toString(lhs)); } instructionCount = cx.instructionCount; continue Loop; } case Token.TYPEOF : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); continue Loop; } case Icode_TYPEOFNAME : stack[++stackTop] = ScriptRuntime.typeofName(scope, stringReg); continue Loop; case Icode_NAME_FAST_THIS : case Icode_NAME_SLOW_THIS : stackTop = do_nameAndThis(stack, stackTop, scope, stringReg, op); continue Loop; case Token.STRING : stack[++stackTop] = stringReg; continue Loop; case Icode_SHORTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc); pc += 2; continue Loop; case Icode_INTNUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc); pc += 4; continue Loop; case Token.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = idata.itsDoubleTable[indexReg]; continue Loop; case Token.NAME : stack[++stackTop] = ScriptRuntime.name(scope, stringReg); continue Loop; case Icode_NAMEINC : case Icode_NAMEDEC : stack[++stackTop] = ScriptRuntime.postIncrDecr(scope, stringReg, op == Icode_NAMEINC); continue Loop; case Token.SETVAR : if (!useActivationVars) { stack[VAR_SHFT + indexReg] = stack[stackTop]; sDbl[VAR_SHFT + indexReg] = sDbl[stackTop]; } else { Object val = stack[stackTop]; if (val == DBL_MRK) val = doubleWrap(sDbl[stackTop]); activationPut(fnOrScript, scope, indexReg, val); } continue Loop; case Token.GETVAR : ++stackTop; if (!useActivationVars) { stack[stackTop] = stack[VAR_SHFT + indexReg]; sDbl[stackTop] = sDbl[VAR_SHFT + indexReg]; } else { stack[stackTop] = activationGet(fnOrScript, scope, indexReg); } continue Loop; case Icode_VARINC : case Icode_VARDEC : ++stackTop; if (!useActivationVars) { Object val = stack[VAR_SHFT + indexReg]; stack[stackTop] = val; double d; if (val == DBL_MRK) { d = sDbl[VAR_SHFT + indexReg]; sDbl[stackTop] = d; } else { d = ScriptRuntime.toNumber(val); } stack[VAR_SHFT + indexReg] = DBL_MRK; sDbl[VAR_SHFT + indexReg] = (op == Icode_VARINC) ? d + 1.0 : d - 1.0; } else { Object val = activationGet(fnOrScript, scope, indexReg); stack[stackTop] = val; double d = ScriptRuntime.toNumber(val); val = doubleWrap((op == Icode_VARINC) ? d + 1.0 : d - 1.0); activationPut(fnOrScript, scope, indexReg, val); } continue Loop; case Token.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; continue Loop; case Token.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; continue Loop; case Token.NULL : stack[++stackTop] = null; continue Loop; case Token.THIS : stack[++stackTop] = thisObj; continue Loop; case Token.THISFN : stack[++stackTop] = fnOrScript; continue Loop; case Token.FALSE : stack[++stackTop] = Boolean.FALSE; continue Loop; case Token.TRUE : stack[++stackTop] = Boolean.TRUE; continue Loop; case Token.UNDEFINED : stack[++stackTop] = Undefined.instance; continue Loop; case Token.ENTERWITH : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); ++withDepth; continue Loop; } case Token.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); --withDepth; continue Loop; case Token.CATCH_SCOPE : stack[stackTop] = ScriptRuntime.newCatchScope(stringReg, stack[stackTop]); continue Loop; case Token.ENUM_INIT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + indexReg] = ScriptRuntime.enumInit(lhs, scope); continue Loop; } case Token.ENUM_NEXT : case Token.ENUM_ID : { Object val = stack[LOCAL_SHFT + indexReg]; ++stackTop; stack[stackTop] = (op == Token.ENUM_NEXT) ? (Object)ScriptRuntime.enumNext(val) : (Object)ScriptRuntime.enumId(val); continue Loop; } case Icode_PUSH_PARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[++stackTop] = ScriptRuntime.getParent(lhs); continue Loop; } case Icode_GETPROTO : case Icode_GETSCOPEPARENT : { Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_GETPROTO) { val = ScriptRuntime.getProto(lhs, scope); } else { val = ScriptRuntime.getParent(lhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SETPROTO : case Icode_SETPARENT : { Object rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; Object lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); Object val; if (op == Icode_SETPROTO) { val = ScriptRuntime.setProto(lhs, rhs, scope); } else { val = ScriptRuntime.setParent(lhs, rhs, scope); } stack[stackTop] = val; continue Loop; } case Icode_SCOPE : stack[++stackTop] = scope; continue Loop; case Icode_CLOSURE : { InterpreterData closureData = idata.itsNestedFunctions[indexReg]; stack[++stackTop] = createFunction(cx, scope, closureData, idata.itsFromEvalCode); continue Loop; } case Token.REGEXP : { Scriptable regexp; if (idata.itsFunctionType != 0) { regexp = ((InterpretedFunction)fnOrScript).itsRegExps[indexReg]; } else { if (scriptRegExps == null) { scriptRegExps = wrapRegExps(cx, scope, idata); } regexp = scriptRegExps[indexReg]; } stack[++stackTop] = regexp; continue Loop; } case Icode_LITERAL_NEW : // indexReg: number of values in the literal ++stackTop; stack[stackTop] = new Object[indexReg]; sDbl[stackTop] = 0; continue Loop; case Icode_LITERAL_SET : { Object value = stack[stackTop]; if (value == DBL_MRK) value = doubleWrap(sDbl[stackTop]); --stackTop; int i = (int)sDbl[stackTop]; ((Object[])stack[stackTop])[i] = value; sDbl[stackTop] = i + 1; continue Loop; } case Token.ARRAYLIT : case Icode_SPARE_ARRAYLIT : case Token.OBJECTLIT : { Object[] data = (Object[])stack[stackTop]; Object val; if (op == Token.OBJECTLIT) { Object[] ids = (Object[])idata.literalIds[indexReg]; val = ScriptRuntime.newObjectLiteral(ids, data, cx, scope); } else { int[] skipIndexces = null; if (op == Icode_SPARE_ARRAYLIT) { skipIndexces = (int[])idata.literalIds[indexReg]; } val = ScriptRuntime.newArrayLiteral(data, skipIndexces, cx, scope); } stack[stackTop] = val; continue Loop; } case Icode_LINE : { cx.interpreterLineIndex = pc; if (debuggerFrame != null) { int line = getShort(iCode, pc); debuggerFrame.onLineChange(cx, line); } pc += 2; continue Loop; } default : { dumpICode(idata); throw new RuntimeException("Unknown icode : "+op+" @ pc : "+(pc-1)); } } // end of interpreter switch // This should be reachable only for jump implementation if (instructionThreshold != 0) { instructionCount += pc - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } pcPrevBranch = pcJump; } pc = pcJump; continue Loop; } // end of interpreter try catch (Throwable ex) { pcJump = getJavaCatchPC(iCode); if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } pcPrevBranch = pcJump; } javaException = ex; exceptionPC = pc - 1; pc = pcJump; continue Loop; } } // end of interpreter loop cx.interpreterData = savedData; if (debuggerFrame != null) { if (javaException != null) { debuggerFrame.onExit(cx, true, javaException); } else { debuggerFrame.onExit(cx, false, result); } } if (idata.itsNeedsActivation || debuggerFrame != null) { ScriptRuntime.popActivation(cx); } if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } if (javaException != null) { if (javaException instanceof JavaScriptException) { throw (JavaScriptException)javaException; } else if (javaException instanceof RuntimeException) { throw (RuntimeException)javaException; } else { // Must be instance of Error or code bug throw (Error)javaException; } } return result; }
|
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/a6a8297e3053e760c9c8c80d49e4437dbf0bf6fe/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
18,
2761,
11599,
4368,
3748,
31,
5411,
9494,
18,
2761,
11599,
4368,
3748,
273,
612,
396,
18,
7462,
3748,
31,
5411,
775,
288,
7734,
327,
888,
18,
1991,
1190,
3748,
12,
350,
396,
18,
7462,
3748,
16,
9494,
16,
2295,
1162,
3651,
16,
29159,
2146,
16,
15261,
16,
833,
1769,
5411,
289,
3095,
288,
7734,
9494,
18,
2761,
11599,
4368,
3748,
273,
5198,
3748,
31,
5411,
289,
3639,
289,
3639,
727,
1033,
2383,
48,
67,
23464,
47,
273,
5294,
11599,
18,
2290,
48,
67,
23464,
47,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
727,
509,
8350,
67,
2664,
4464,
273,
374,
31,
3639,
727,
509,
943,
5555,
273,
612,
396,
18,
1282,
2747,
5555,
31,
3639,
727,
509,
15234,
67,
2664,
4464,
273,
8350,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1033,
10634,
12,
1042,
9494,
16,
22780,
2146,
16,
22780,
15261,
16,
18701,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
18701,
509,
1501,
10544,
16,
509,
1501,
1380,
16,
18701,
16717,
2083,
2295,
1162,
3651,
16,
18701,
5294,
11599,
751,
612,
396,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
71,
92,
18,
2761,
11599,
4368,
3748,
480,
612,
396,
18,
7462,
3748,
13,
288,
5411,
309,
261,
1968,
40,
3083,
480,
446,
13,
288,
7734,
833,
273,
30169,
1076,
12,
1968,
16,
833,
40,
3083,
16,
1501,
10544,
16,
1501,
1380,
1769,
5411,
289,
5411,
6036,
2933,
888,
273,
612,
396,
18,
7462,
2933,
31,
5411,
1033,
5198,
3748,
273,
9494,
2
] |
mainCause = (ex.getCause() != null) ? ex.getCause() : ex;
|
private void addErrorStatus(IStatus exceptionStatus, String DeployerName, Throwable ex, IStatus main) { if (exceptionStatus instanceof MultiStatus) { IStatus[] stati = ((MultiStatus) exceptionStatus).getChildren(); for (int i = 0; 1 < stati.length; i++) { addErrorStatus(stati[i], DeployerName, stati[i].getException(), main); } } //String errorNotes = (ex != null && ex.getMessage() != null) ? ex.getMessage() : main.getMessage(); //String message = J2EEPluginResourceHandler.getString("J2EEDeployOperation_3_UI_", new Object[]{DeployerName, errorNotes}); //$NON-NLS-1$ //IStatus statusLocal = new Status(IStatus.ERROR, J2EEPlugin.getPlugin().getPluginID(), IStatus.ERROR, message, ex); //$NON-NLS-1$ //TODO //addStatus(statusLocal); }
|
8196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8196/47a68c887da65ca71586e3a85c2c69de296d4757/J2EEDeployOperation.java/buggy/plugins/org.eclipse.jst.j2ee/j2eeplugin/org/eclipse/jst/j2ee/internal/deploy/J2EEDeployOperation.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
918,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
9501,
1482,
12,
45,
1482,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
1520,
1482,
16,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
514,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
7406,
264,
461,
16,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
4206,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
431,
16,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
467,
1482,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
2774,
13,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
288,
202,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
918,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
9501,
1482,
12,
45,
1482,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
1520,
1482,
16,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
294,
431,
31,
282,
514,
5254,
10683,
273,
261,
338,
18,
588,
10683,
1435,
480,
446,
13,
692,
431,
18,
588,
10683,
1435,
2
] |
|
private void __builtin_nan() { // const char * ICASTSimpleDeclSpecifier parmSds = new CASTSimpleDeclSpecifier(); parmSds.setType(IASTSimpleDeclSpecifier.t_char); parmSds.setConst(true); CPointerType c_const_char_p = new CPointerType(new CQualifierType(parmSds)); c_const_char_p.setPointer(new CASTPointer()); IType cpp_const_char_p = new CPPPointerType(new CPPQualifierType(new CPPBasicType(IBasicType.t_char, 0), true, false)); //double __builtin_nan (const char * str) IBinding temp = null; if (lang == ParserLanguage.C) { ICASTSimpleDeclSpecifier sds = new CASTSimpleDeclSpecifier(); sds.setType(IASTSimpleDeclSpecifier.t_double); IType returnType = new CBasicType(sds); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = c_const_char_p; functionType = new CFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CBuiltinParameter(parms[0]); temp = new CImplicitFunction(__BUILTIN_NAN, scope, functionType, theParms, false); } else { IType returnType = new CPPBasicType( IBasicType.t_double, 0 ); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = cpp_const_char_p; functionType = new CPPFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CPPBuiltinParameter(parms[0]); temp = new CPPImplicitFunction(__BUILTIN_NAN, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //float __builtin_nanf (const char * str) temp = null; if (lang == ParserLanguage.C) { ICASTSimpleDeclSpecifier sds = new CASTSimpleDeclSpecifier(); sds.setType(IASTSimpleDeclSpecifier.t_float); IType returnType = new CBasicType(sds); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = c_const_char_p; functionType = new CFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CBuiltinParameter(parms[0]); temp = new CImplicitFunction(__BUILTIN_NANF, scope, functionType, theParms, false); } else { IType returnType = new CPPBasicType( IBasicType.t_float, 0 ); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = cpp_const_char_p; functionType = new CPPFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CPPBuiltinParameter(parms[0]); temp = new CPPImplicitFunction(__BUILTIN_NANF, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //long double __builtin_nanl (const char * str) temp = null; if (lang == ParserLanguage.C) { ICASTSimpleDeclSpecifier sds = new CASTSimpleDeclSpecifier(); sds.setType(IASTSimpleDeclSpecifier.t_double); sds.setLong(true); IType returnType = new CBasicType(sds); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = c_const_char_p; functionType = new CFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CBuiltinParameter(parms[0]); temp = new CImplicitFunction(__BUILTIN_NANL, scope, functionType, theParms, false); } else { IType returnType = new CPPBasicType( IBasicType.t_double, CPPBasicType.IS_LONG ); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = cpp_const_char_p; functionType = new CPPFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CPPBuiltinParameter(parms[0]); temp = new CPPImplicitFunction(__BUILTIN_NANL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //double __builtin_nans (const char * str) temp = null; if (lang == ParserLanguage.C) { ICASTSimpleDeclSpecifier sds = new CASTSimpleDeclSpecifier(); sds.setType(IASTSimpleDeclSpecifier.t_double); IType returnType = new CBasicType(sds); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = c_const_char_p; functionType = new CFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CBuiltinParameter(parms[0]); temp = new CImplicitFunction(__BUILTIN_NANS, scope, functionType, theParms, false); } else { IType returnType = new CPPBasicType( IBasicType.t_double, 0 ); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = cpp_const_char_p; functionType = new CPPFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CPPBuiltinParameter(parms[0]); temp = new CPPImplicitFunction(__BUILTIN_NANS, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //float __builtin_nansf (const char * str) temp = null; if (lang == ParserLanguage.C) { ICASTSimpleDeclSpecifier sds = new CASTSimpleDeclSpecifier(); sds.setType(IASTSimpleDeclSpecifier.t_float); IType returnType = new CBasicType(sds); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = c_const_char_p; functionType = new CFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CBuiltinParameter(parms[0]); temp = new CImplicitFunction(__BUILTIN_NANSF, scope, functionType, theParms, false); } else { IType returnType = new CPPBasicType( IBasicType.t_float, 0 ); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = cpp_const_char_p; functionType = new CPPFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CPPBuiltinParameter(parms[0]); temp = new CPPImplicitFunction(__BUILTIN_NANSF, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); //long double __builtin_nansl (const char * str) temp = null; if (lang == ParserLanguage.C) { ICASTSimpleDeclSpecifier sds = new CASTSimpleDeclSpecifier(); sds.setType(IASTSimpleDeclSpecifier.t_double); sds.setLong(true); IType returnType = new CBasicType(sds); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = c_const_char_p; functionType = new CFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CBuiltinParameter(parms[0]); temp = new CImplicitFunction(__BUILTIN_NANSL, scope, functionType, theParms, false); } else { IType returnType = new CPPBasicType( IBasicType.t_double, CPPBasicType.IS_LONG ); IFunctionType functionType = null; IType[] parms = new IType[1]; parms[0] = cpp_const_char_p; functionType = new CPPFunctionType(returnType, parms); IParameter[] theParms = new IParameter[1]; theParms[0] = new CPPBuiltinParameter(parms[0]); temp = new CPPImplicitFunction(__BUILTIN_NANSL, scope, functionType, theParms, false); } bindings = (IBinding[])ArrayUtil.append(IBinding.class, bindings, temp); }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e5e342776ddb4235e342044729523a01bf8c688b/GCCBuiltinSymbolProvider.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/GCCBuiltinSymbolProvider.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
972,
24553,
67,
13569,
1435,
95,
202,
202,
759,
10248,
3001,
14,
202,
202,
2871,
9053,
5784,
3456,
21416,
1065,
81,
55,
2377,
33,
2704,
21871,
5784,
3456,
21416,
5621,
202,
202,
1065,
81,
55,
2377,
18,
542,
559,
12,
45,
9053,
5784,
3456,
21416,
18,
88,
67,
3001,
1769,
202,
202,
1065,
81,
55,
2377,
18,
542,
9661,
12,
3767,
1769,
202,
202,
4258,
2480,
559,
71,
67,
10248,
67,
3001,
67,
84,
33,
2704,
4258,
2480,
559,
12,
2704,
39,
16185,
559,
12,
1065,
81,
55,
2377,
10019,
202,
202,
71,
67,
10248,
67,
3001,
67,
84,
18,
542,
4926,
12,
2704,
21871,
4926,
10663,
202,
202,
45,
559,
4057,
84,
67,
10248,
67,
3001,
67,
84,
33,
2704,
4258,
52,
4926,
559,
12,
2704,
4258,
52,
16185,
559,
12,
2704,
4258,
52,
8252,
559,
12,
45,
8252,
559,
18,
88,
67,
3001,
16,
20,
3631,
3767,
16,
5743,
10019,
202,
202,
759,
9056,
972,
24553,
67,
13569,
12,
10248,
3001,
14,
701,
13,
202,
202,
45,
5250,
5814,
33,
2011,
31,
9506,
202,
430,
12,
4936,
631,
2678,
3779,
18,
39,
15329,
1082,
202,
2871,
9053,
5784,
3456,
1990,
3383,
2377,
33,
2704,
21871,
5784,
3456,
21416,
5621,
1082,
202,
87,
2377,
18,
542,
559,
12,
45,
9053,
5784,
3456,
21416,
18,
88,
67,
9056,
1769,
1082,
202,
1285,
8300,
851,
559,
33,
2704,
39,
8252,
559,
12,
87,
2377,
1769,
1082,
202,
45,
2083,
559,
915,
559,
33,
2011,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
972,
24553,
67,
13569,
1435,
95,
202,
202,
759,
10248,
3001,
14,
202,
202,
2871,
9053,
5784,
3456,
21416,
1065,
81,
55,
2377,
33,
2704,
21871,
5784,
3456,
21416,
5621,
202,
202,
1065,
81,
55,
2377,
18,
542,
559,
12,
45,
9053,
5784,
3456,
21416,
18,
88,
67,
3001,
1769,
202,
202,
1065,
81,
55,
2377,
18,
542,
9661,
12,
3767,
1769,
202,
202,
4258,
2480,
559,
71,
67,
10248,
67,
3001,
67,
84,
33,
2704,
4258,
2480,
559,
12,
2704,
39,
16185,
559,
12,
1065,
81,
55,
2377,
10019,
202,
202,
71,
67,
10248,
67,
3001,
67,
84,
18,
542,
4926,
12,
2704,
21871,
4926,
10663,
202,
202,
45,
559,
4057,
84,
67,
10248,
2
] |
||
newDescription = IDEWorkbenchPlugin.getPluginWorkspace().loadProjectDescription( path);
|
newDescription = IDEWorkbenchPlugin.getPluginWorkspace() .loadProjectDescription(path);
|
private void setProjectName() { IPath path = new Path(projectFile.getPath()); IProjectDescription newDescription = null; try { newDescription = IDEWorkbenchPlugin.getPluginWorkspace().loadProjectDescription( path); } catch (CoreException exception) { //no good couldn't get the name } if (newDescription == null) { this.description = null; projectName = ""; //$NON-NLS-1$ } else { this.description = newDescription; projectName = this.description.getName(); } }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/320f342281f01d0eab3a23189cdf15882a2124b5/WizardProjectsImportPage.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
25323,
461,
1435,
288,
1082,
202,
45,
743,
589,
273,
394,
2666,
12,
4406,
812,
18,
588,
743,
10663,
1082,
202,
45,
4109,
3291,
394,
3291,
273,
446,
31,
1082,
202,
698,
288,
9506,
202,
2704,
3291,
273,
1599,
41,
2421,
22144,
3773,
18,
588,
3773,
8241,
7675,
945,
4109,
3291,
12,
25083,
202,
803,
1769,
1082,
202,
97,
1044,
261,
25341,
1520,
13,
288,
9506,
202,
759,
2135,
7494,
17991,
1404,
336,
326,
508,
1082,
202,
97,
1082,
202,
430,
261,
2704,
3291,
422,
446,
13,
288,
9506,
202,
2211,
18,
3384,
273,
446,
31,
9506,
202,
4406,
461,
273,
1408,
31,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
469,
288,
9506,
202,
2211,
18,
3384,
273,
394,
3291,
31,
9506,
202,
4406,
461,
273,
333,
18,
3384,
18,
17994,
5621,
1082,
202,
97,
202,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
25323,
461,
1435,
288,
1082,
202,
45,
743,
589,
273,
394,
2666,
12,
4406,
812,
18,
588,
743,
10663,
1082,
202,
45,
4109,
3291,
394,
3291,
273,
446,
31,
1082,
202,
698,
288,
9506,
202,
2704,
3291,
273,
1599,
41,
2421,
22144,
3773,
18,
588,
3773,
8241,
7675,
945,
4109,
3291,
12,
25083,
202,
803,
1769,
1082,
202,
97,
1044,
261,
25341,
1520,
13,
288,
9506,
202,
759,
2135,
7494,
17991,
1404,
336,
326,
508,
1082,
202,
97,
1082,
202,
430,
261,
2704,
3291,
422,
446,
13,
288,
9506,
202,
2211,
18,
3384,
273,
446,
31,
9506,
202,
4406,
461,
273,
1408,
31,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
97,
469,
2
] |
CmsJspTagInclude.addParameter(parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_TARGET, editTarget, true); CmsJspTagInclude.addParameter(parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_LOCALE, controller.getCmsObject().getRequestContext().getLocale().toString(), true); CmsUserSettings settings = new CmsUserSettings(controller.getCmsObject().getRequestContext().currentUser()); CmsJspTagInclude.addParameter(parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_BUTTONSTYLE, String.valueOf(settings.getDirectEditButtonStyle()), true);
|
CmsJspTagInclude.addParameter( parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_TARGET, editTarget, true); CmsJspTagInclude.addParameter( parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_LOCALE, controller.getCmsObject().getRequestContext().getLocale().toString(), true); CmsUserSettings settings = new CmsUserSettings(controller.getCmsObject().getRequestContext().currentUser()); CmsJspTagInclude.addParameter( parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_BUTTONSTYLE, String.valueOf(settings.getDirectEditButtonStyle()), true);
|
public static String includeDirectEditElement( PageContext context, String element, String editTarget, String editElement, String editOptions, String editPermissions, String createLink) throws JspException { ServletRequest req = context.getRequest(); ServletResponse res = context.getResponse(); CmsFlexController controller = (CmsFlexController)req.getAttribute(CmsFlexController.ATTRIBUTE_NAME); // check the "direct edit" mode String target = null; // get the include file where the direct edit HTML is stored in target = (String)req.getAttribute(I_CmsEditorActionHandler.C_DIRECT_EDIT_INCLUDE_FILE_URI); if ((target != null) && (editPermissions == null)) { // check the direct edit permissions of the current user if not provided editPermissions = OpenCms.getWorkplaceManager().getEditorActionHandler().getEditMode( controller.getCmsObject(), editTarget, null, req); } if (editPermissions == null) { return null; } // append "direct edit" permissions to element element = element + "_" + editPermissions; // set request parameters required by the included direct edit JSP Map parameterMap = new HashMap(); CmsJspTagInclude.addParameter(parameterMap, I_CmsConstants.C_PARAMETER_ELEMENT, element, true); CmsJspTagInclude.addParameter(parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_TARGET, editTarget, true); CmsJspTagInclude.addParameter(parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_LOCALE, controller.getCmsObject().getRequestContext().getLocale().toString(), true); CmsUserSettings settings = new CmsUserSettings(controller.getCmsObject().getRequestContext().currentUser()); CmsJspTagInclude.addParameter(parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_BUTTONSTYLE, String.valueOf(settings.getDirectEditButtonStyle()), true); if (editElement != null) { CmsJspTagInclude.addParameter(parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_ELEMENT, editElement, true); } if (editOptions != null) { CmsJspTagInclude.addParameter(parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_OPTIONS, editOptions, true); } if (createLink != null) { CmsJspTagInclude.addParameter(parameterMap, I_CmsEditorActionHandler.C_DIRECT_EDIT_PARAM_NEWLINK, createLink, true); } // save old parameters from current request Map oldParameterMap = controller.getCurrentRequest().getParameterMap(); try { controller.getCurrentRequest().addParameterMap(parameterMap); context.getOut().print(CmsFlexResponse.C_FLEX_CACHE_DELIMITER); controller.getCurrentResponse().addToIncludeList(target, parameterMap); controller.getCurrentRequest().getRequestDispatcher(target).include(req, res); } catch (ServletException e) { Throwable t; if (e.getRootCause() != null) { t = e.getRootCause(); } else { t = e; } t = controller.setThrowable(t, target); throw new JspException(t); } catch (IOException e) { Throwable t = controller.setThrowable(e, target); throw new JspException(t); } finally { // restore old parameter map (if required) if (oldParameterMap != null) { controller.getCurrentRequest().setParameterMap(oldParameterMap); } } return editPermissions; }
|
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/e4e19c0a90797aecd9ee0ffc8ee1a741d57f37ee/CmsJspTagEditable.java/buggy/src/org/opencms/jsp/CmsJspTagEditable.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2341,
5368,
4666,
1046,
12,
3639,
3460,
1042,
819,
16,
3639,
514,
930,
16,
3639,
514,
3874,
2326,
16,
3639,
514,
3874,
1046,
16,
3639,
514,
3874,
1320,
16,
3639,
514,
3874,
6521,
16,
3639,
514,
752,
2098,
13,
1216,
27485,
288,
3639,
26470,
1111,
273,
819,
18,
588,
691,
5621,
3639,
7971,
1064,
400,
273,
819,
18,
588,
1064,
5621,
3639,
2149,
19667,
2933,
2596,
273,
261,
4747,
19667,
2933,
13,
3658,
18,
588,
1499,
12,
4747,
19667,
2933,
18,
11616,
67,
1985,
1769,
3639,
368,
866,
326,
315,
7205,
3874,
6,
1965,
3639,
514,
1018,
273,
446,
31,
3639,
368,
336,
326,
2341,
585,
1625,
326,
2657,
3874,
3982,
353,
4041,
316,
3639,
1018,
273,
261,
780,
13,
3658,
18,
588,
1499,
12,
45,
67,
4747,
6946,
1803,
1503,
18,
39,
67,
17541,
67,
10776,
67,
26003,
67,
3776,
67,
3098,
1769,
3639,
309,
14015,
3299,
480,
446,
13,
597,
261,
4619,
6521,
422,
446,
3719,
288,
5411,
368,
866,
326,
2657,
3874,
4371,
434,
326,
783,
729,
309,
486,
2112,
17311,
3874,
6521,
273,
10319,
18,
588,
16514,
1318,
7675,
588,
6946,
1803,
1503,
7675,
588,
4666,
2309,
12,
7734,
2596,
18,
588,
4747,
921,
9334,
7734,
3874,
2326,
16,
7734,
446,
16,
7734,
1111,
1769,
3639,
289,
3639,
309,
261,
4619,
6521,
422,
446,
13,
288,
5411,
327,
446,
31,
3639,
289,
3639,
368,
714,
315,
7205,
3874,
6,
4371,
358,
930,
3639,
930,
273,
930,
397,
8802,
397,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
2341,
5368,
4666,
1046,
12,
3639,
3460,
1042,
819,
16,
3639,
514,
930,
16,
3639,
514,
3874,
2326,
16,
3639,
514,
3874,
1046,
16,
3639,
514,
3874,
1320,
16,
3639,
514,
3874,
6521,
16,
3639,
514,
752,
2098,
13,
1216,
27485,
288,
3639,
26470,
1111,
273,
819,
18,
588,
691,
5621,
3639,
7971,
1064,
400,
273,
819,
18,
588,
1064,
5621,
3639,
2149,
19667,
2933,
2596,
273,
261,
4747,
19667,
2933,
13,
3658,
18,
588,
1499,
12,
4747,
19667,
2933,
18,
11616,
67,
1985,
1769,
3639,
368,
866,
326,
315,
7205,
3874,
6,
1965,
3639,
514,
1018,
273,
446,
31,
3639,
368,
336,
326,
2341,
585,
1625,
326,
2657,
3874,
3982,
353,
4041,
316,
3639,
2
] |
protected long getRawLength() {
|
public long getRawLength() {
|
public Object next() { /* Get the next ZipEntry at the requested level. */ final ZipEntry zent = (ZipEntry) zentIt.next(); final String subname = zent.getName().substring( lleng ); /* If it is a directory, make a ZipBranchDataNode from it. */ if ( zent.isDirectory() ) { DataNode dnode = new ZipBranchDataNode( zadn, zent ); dnode.setCreator( new CreationState( parent ) ); dnode.setLabel( subname ); return dnode; } /* If it's a file, turn it into a DataSource pass it to * the DataNodeFactory. */ else { DataSource datsrc = new PathedDataSource() { public String getPath() { return pathHead + subname; } protected long getRawLength() { return zent.getSize(); } protected InputStream getRawInputStream() throws IOException { return zfile.getInputStream( zent ); } }; datsrc.setName( subname ); try { return childMaker.makeDataNode( parent, datsrc ); } catch ( NoSuchDataException e ) { return childMaker.makeErrorDataNode( parent, e ); } } }
|
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/e485dd54e86aed49ea78a027bbdec370bdf5336d/ZipFileDataNode.java/clean/treeview/src/main/uk/ac/starlink/treeview/ZipFileDataNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
1024,
1435,
288,
7734,
1748,
968,
326,
1024,
23652,
622,
326,
3764,
1801,
18,
1195,
7734,
727,
23652,
998,
319,
273,
261,
9141,
1622,
13,
998,
319,
7193,
18,
4285,
5621,
7734,
727,
514,
720,
529,
273,
998,
319,
18,
17994,
7675,
28023,
12,
328,
1897,
75,
11272,
7734,
1748,
971,
518,
353,
279,
1867,
16,
1221,
279,
8603,
7108,
751,
907,
628,
518,
18,
1195,
7734,
309,
261,
998,
319,
18,
291,
2853,
1435,
262,
288,
10792,
1910,
907,
302,
2159,
273,
394,
8603,
7108,
751,
907,
12,
998,
361,
82,
16,
998,
319,
11272,
10792,
302,
2159,
18,
542,
10636,
12,
394,
18199,
1119,
12,
982,
262,
11272,
10792,
302,
2159,
18,
542,
2224,
12,
720,
529,
11272,
10792,
327,
302,
2159,
31,
7734,
289,
7734,
1748,
971,
518,
1807,
279,
585,
16,
7005,
518,
1368,
279,
12806,
1342,
518,
358,
1171,
380,
326,
1910,
907,
1733,
18,
1195,
7734,
469,
288,
10792,
12806,
1150,
4816,
273,
394,
2666,
329,
8597,
1435,
288,
13491,
1071,
514,
4339,
1435,
288,
18701,
327,
589,
1414,
397,
720,
529,
31,
13491,
289,
13491,
1071,
1525,
10547,
1782,
1435,
288,
18701,
327,
998,
319,
18,
588,
1225,
5621,
13491,
289,
13491,
4750,
5037,
10547,
4348,
1435,
4766,
1216,
1860,
288,
18701,
327,
998,
768,
18,
588,
4348,
12,
998,
319,
11272,
13491,
289,
10792,
289,
31,
10792,
1150,
4816,
18,
542,
461,
12,
720,
529,
11272,
10792,
775,
288,
13491,
327,
1151,
12373,
18,
6540,
751,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
1033,
1024,
1435,
288,
7734,
1748,
968,
326,
1024,
23652,
622,
326,
3764,
1801,
18,
1195,
7734,
727,
23652,
998,
319,
273,
261,
9141,
1622,
13,
998,
319,
7193,
18,
4285,
5621,
7734,
727,
514,
720,
529,
273,
998,
319,
18,
17994,
7675,
28023,
12,
328,
1897,
75,
11272,
7734,
1748,
971,
518,
353,
279,
1867,
16,
1221,
279,
8603,
7108,
751,
907,
628,
518,
18,
1195,
7734,
309,
261,
998,
319,
18,
291,
2853,
1435,
262,
288,
10792,
1910,
907,
302,
2159,
273,
394,
8603,
7108,
751,
907,
12,
998,
361,
82,
16,
998,
319,
11272,
10792,
302,
2159,
18,
542,
10636,
12,
394,
18199,
1119,
12,
982,
262,
11272,
10792,
302,
2159,
18,
542,
2224,
2
] |
if (!editableTransaction.isChanged() || JOptionPane.showConfirmDialog( TransactionsFrame.this, Translate.inst().get(TranslateKeys.CLEAR_TRANSACTION_LOSE_CHANGES), Translate.inst().get(TranslateKeys.CLEAR_TRANSACTION), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION){
|
try{ recordTransaction(); editableTransaction.resetSelection();
|
public void actionPerformed(ActionEvent arg0) { if (!editableTransaction.isChanged() || JOptionPane.showConfirmDialog( TransactionsFrame.this, Translate.inst().get(TranslateKeys.CLEAR_TRANSACTION_LOSE_CHANGES), Translate.inst().get(TranslateKeys.CLEAR_TRANSACTION), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION){ editableTransaction.setTransaction(null, true); editableTransaction.updateContent(); list.setSelectedIndex(list.getModel().getSize() - 1); list.ensureIndexIsVisible(list.getModel().getSize() - 1); updateButtons(); } }
|
58048 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58048/f44ed272295093386c759c98993469e19261dfba/TransactionsFrame.java/clean/src/org/homeunix/drummer/view/logic/TransactionsFrame.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
1803,
1133,
1501,
20,
13,
288,
9506,
202,
430,
16051,
19653,
3342,
18,
291,
5033,
1435,
25083,
202,
20081,
804,
1895,
8485,
18,
4500,
11269,
6353,
12,
6862,
9506,
202,
14186,
3219,
18,
2211,
16,
6862,
9506,
202,
12818,
18,
8591,
7675,
588,
12,
12818,
2396,
18,
23181,
985,
67,
22364,
67,
9320,
67,
1792,
3388,
3991,
3631,
6862,
9506,
202,
12818,
18,
8591,
7675,
588,
12,
12818,
2396,
18,
23181,
985,
67,
22364,
3631,
6862,
9506,
202,
46,
1895,
8485,
18,
29081,
67,
3417,
67,
7425,
16,
6862,
9506,
202,
46,
1895,
8485,
18,
4740,
1146,
67,
8723,
13,
422,
804,
1895,
8485,
18,
29081,
67,
7425,
15329,
6862,
25083,
202,
19653,
3342,
18,
542,
3342,
12,
2011,
16,
638,
1769,
6862,
202,
19653,
3342,
18,
2725,
1350,
5621,
6862,
202,
1098,
18,
542,
7416,
1016,
12,
1098,
18,
588,
1488,
7675,
588,
1225,
1435,
300,
404,
1769,
6862,
202,
1098,
18,
15735,
1016,
2520,
6207,
12,
1098,
18,
588,
1488,
7675,
588,
1225,
1435,
300,
404,
1769,
6862,
25083,
202,
2725,
14388,
5621,
9506,
202,
97,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
26100,
12,
1803,
1133,
1501,
20,
13,
288,
9506,
202,
430,
16051,
19653,
3342,
18,
291,
5033,
1435,
25083,
202,
20081,
804,
1895,
8485,
18,
4500,
11269,
6353,
12,
6862,
9506,
202,
14186,
3219,
18,
2211,
16,
6862,
9506,
202,
12818,
18,
8591,
7675,
588,
12,
12818,
2396,
18,
23181,
985,
67,
22364,
67,
9320,
67,
1792,
3388,
3991,
3631,
6862,
9506,
202,
12818,
18,
8591,
7675,
588,
12,
12818,
2396,
18,
23181,
985,
67,
22364,
3631,
6862,
9506,
202,
46,
1895,
8485,
18,
29081,
67,
3417,
67,
7425,
16,
6862,
9506,
202,
46,
1895,
8485,
18,
4740,
1146,
67,
8723,
13,
422,
804,
1895,
8485,
18,
29081,
67,
7425,
15329,
6862,
25083,
202,
19653,
2
] |
public URI lookupApplication(_lookupApplicationRequest lookupApplication)
|
public URI lookupApplication(LookupApplicationRequest lookupApplication)
|
public URI lookupApplication(_lookupApplicationRequest lookupApplication) throws RemoteException { try { operations.info("entering lookupApplication"); LookupApplicationProcessor processor = new LookupApplicationProcessor( this); return processor.lookupApplication(lookupApplication); } finally { operations.info("exiting lookupApplication"); } }
|
4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/6a0bce9a04774f0d574902b90826623e639302b9/DeploymentEndpoint.java/buggy/core/components/cddlm/src/org/smartfrog/services/cddlm/api/DeploymentEndpoint.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3699,
3689,
3208,
12,
6609,
3208,
691,
3689,
3208,
13,
5411,
1216,
18361,
288,
3639,
775,
288,
5411,
5295,
18,
1376,
2932,
2328,
310,
3689,
3208,
8863,
5411,
8834,
3208,
5164,
6659,
273,
394,
8834,
3208,
5164,
12,
10792,
333,
1769,
5411,
327,
6659,
18,
8664,
3208,
12,
8664,
3208,
1769,
3639,
289,
3095,
288,
5411,
5295,
18,
1376,
2932,
8593,
310,
3689,
3208,
8863,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3699,
3689,
3208,
12,
6609,
3208,
691,
3689,
3208,
13,
5411,
1216,
18361,
288,
3639,
775,
288,
5411,
5295,
18,
1376,
2932,
2328,
310,
3689,
3208,
8863,
5411,
8834,
3208,
5164,
6659,
273,
394,
8834,
3208,
5164,
12,
10792,
333,
1769,
5411,
327,
6659,
18,
8664,
3208,
12,
8664,
3208,
1769,
3639,
289,
3095,
288,
5411,
5295,
18,
1376,
2932,
8593,
310,
3689,
3208,
8863,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if ( state != null ) state.doCData = true;
|
state.doCData = true;
|
public void startCDATA() { ElementState state; state = getElementState(); if ( state != null ) state.doCData = true; }
|
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1e1ce544975980cfc9bc8941ab7c8166d350c04d/BaseMarkupSerializer.java/buggy/src/org/apache/xml/serialize/BaseMarkupSerializer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
18375,
1435,
565,
288,
3639,
3010,
1119,
919,
31,
7734,
919,
273,
7426,
1119,
5621,
3639,
309,
261,
919,
480,
446,
262,
5411,
919,
18,
2896,
39,
751,
273,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
18375,
1435,
565,
288,
3639,
3010,
1119,
919,
31,
7734,
919,
273,
7426,
1119,
5621,
3639,
309,
261,
919,
480,
446,
262,
5411,
919,
18,
2896,
39,
751,
273,
638,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return valueListName;
|
return valueListName;
|
public String getPairsType() { return valueListName; }
|
25205 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25205/09b200a563efc77be8bd8eceb05423772e261e18/DCInput.java/buggy/dspace/src/org/dspace/app/webui/util/DCInput.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1689,
1826,
87,
559,
1435,
565,
288,
377,
202,
2463,
460,
682,
461,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1689,
1826,
87,
559,
1435,
565,
288,
377,
202,
2463,
460,
682,
461,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
filepath + ":1: file length is 151 lines (max allowed is 20).",
|
filepath + ":1: file length is 154 lines (max allowed is 20).",
|
public void testSimple() throws Exception { mConfig.setMaxFileLength(20); mConfig.setMaxMethodLength(19); mConfig.setMaxConstructorLength(9); mConfig.setParamPat("^a[A-Z][a-zA-Z0-9]*$"); mConfig.setStaticPat("^s[A-Z][a-zA-Z0-9]*$"); mConfig.setMemberPat("^m[A-Z][a-zA-Z0-9]*$"); final Checker c = createChecker(); final String filepath = getPath("InputSimple.java"); assertNotNull(c); final String[] expected = { filepath + ":1: file length is 151 lines (max allowed is 20).", filepath + ":3: Line does not match expected header line of '// Created: 2001'.", filepath + ":16: 'final' modifier out of order with the JLS suggestions.", filepath + ":18: line longer than 80 characters", filepath + ":19: line contains a tab character", filepath + ":25: variable 'badConstant' must match pattern '^[A-Z]([A-Z0-9_]*[A-Z0-9])?$'.", filepath + ":30: variable 'badStatic' must match pattern '^s[A-Z][a-zA-Z0-9]*$'.", filepath + ":35: variable 'badMember' must match pattern '^m[A-Z][a-zA-Z0-9]*$'.", filepath + ":39: variable 'mNumCreated2' must be private and have accessor methods.", filepath + ":42: ',' needs to be followed by whitespace.", filepath + ":49: variable 'sTest1' must be private and have accessor methods.", filepath + ":51: variable 'sTest3' must be private and have accessor methods.", filepath + ":53: variable 'sTest2' must be private and have accessor methods.", filepath + ":56: variable 'mTest1' must be private and have accessor methods.", filepath + ":58: variable 'mTest2' must be private and have accessor methods.", filepath + ":71: ',' needs to be followed by whitespace.", filepath + ":71: parameter 'badFormat1' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":71: parameter 'badFormat2' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":72: parameter 'badFormat3' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", filepath + ":80: method length is 20 lines (max allowed is 19).", filepath + ":103: constructor length is 10 lines (max allowed is 9).", filepath + ":119: variable 'ABC' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":123: variable 'CDE' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":127: '{' should be on the previous line.", filepath + ":130: variable 'I' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":131: '{' should be on the previous line.", filepath + ":132: variable 'InnerBlockVariable' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":137: method name 'ALL_UPPERCASE_METHOD' must match pattern '^[a-z][a-zA-Z0-9]*$'.", filepath + ":142: 'private' modifier out of order with the JLS suggestions.", filepath + ":148: 'private' modifier out of order with the JLS suggestions.", }; verify(c, filepath, expected); }
|
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/49314771b622e7e10bde3d13f8c38170da96a3db/CheckerTest.java/clean/src/tests/com/puppycrawl/tools/checkstyle/CheckerTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5784,
1435,
3639,
1216,
1185,
565,
288,
3639,
312,
809,
18,
542,
2747,
812,
1782,
12,
3462,
1769,
3639,
312,
809,
18,
542,
2747,
1305,
1782,
12,
3657,
1769,
3639,
312,
809,
18,
542,
2747,
6293,
1782,
12,
29,
1769,
3639,
312,
809,
18,
542,
786,
22834,
2932,
66,
69,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
5788,
22834,
2932,
66,
87,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
4419,
22834,
2932,
66,
81,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
727,
31577,
276,
273,
752,
8847,
5621,
3639,
727,
514,
3608,
273,
4339,
2932,
1210,
5784,
18,
6290,
8863,
3639,
25395,
12,
71,
1769,
3639,
727,
514,
8526,
2665,
273,
288,
5411,
3608,
397,
6398,
21,
30,
585,
769,
353,
4711,
24,
2362,
261,
1896,
2935,
353,
4200,
14944,
16,
5411,
3608,
397,
6398,
23,
30,
5377,
1552,
486,
845,
2665,
1446,
980,
434,
12084,
12953,
30,
4044,
21,
14550,
16,
5411,
3608,
397,
6398,
2313,
30,
296,
6385,
11,
9606,
596,
434,
1353,
598,
326,
804,
3045,
17969,
1199,
16,
5411,
3608,
397,
6398,
2643,
30,
980,
7144,
2353,
8958,
3949,
3113,
5411,
3608,
397,
6398,
3657,
30,
980,
1914,
279,
3246,
3351,
3113,
5411,
3608,
397,
6398,
2947,
30,
2190,
296,
8759,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5784,
1435,
3639,
1216,
1185,
565,
288,
3639,
312,
809,
18,
542,
2747,
812,
1782,
12,
3462,
1769,
3639,
312,
809,
18,
542,
2747,
1305,
1782,
12,
3657,
1769,
3639,
312,
809,
18,
542,
2747,
6293,
1782,
12,
29,
1769,
3639,
312,
809,
18,
542,
786,
22834,
2932,
66,
69,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
5788,
22834,
2932,
66,
87,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
5772,
8,
8863,
3639,
312,
809,
18,
542,
4419,
22834,
2932,
66,
81,
63,
37,
17,
62,
6362,
69,
17,
9600,
17,
62,
20,
17,
29,
2
] |
super(position);
|
super(position, NodeTypes.DSTRNODE);
|
public DStrNode(ISourcePosition position) { super(position); }
|
49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/6e15491217631472c05c6928672f9c7064a978b3/DStrNode.java/clean/src/org/jruby/ast/DStrNode.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
463,
1585,
907,
12,
45,
1830,
2555,
1754,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
40,
3902,
8744,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
463,
1585,
907,
12,
45,
1830,
2555,
1754,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
40,
3902,
8744,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Properties p = WrapperManager.getProperties(); String cp1 = p.getProperty("wrapper.java.classpath.1");
|
private void innerUpdate(){ Logger.minor(this, "Update() called"); synchronized(this) { if((result == null) || hasBeenBlown) { Logger.minor(this, "Returning: result="+result+", isAutoUpdateAllowed="+isAutoUpdateAllowed+", hasBeenBlown="+hasBeenBlown); return; } this.revocationDNFCounter = 0; this.finalCheck = true; System.err.println("Searching for revocation key"); this.queueFetchRevocation(100); while(revocationDNFCounter < NodeUpdater.REVOCATION_DNF_MIN) { System.err.println("Revocation counter: "+revocationDNFCounter); if(this.hasBeenBlown) { Logger.error(this, "The revocation key has been found on the network : blocking auto-update"); return; } try { wait(100*1000); } catch (InterruptedException e) { // Ignore } } } System.err.println("Update in progress"); Logger.normal(this, "Update in progress"); try{ ArrayBucket bucket = (ArrayBucket) result.asBucket(); byte[] data = bucket.toByteArray(); File fRunning = new File("freenet.jar"); File fNew = new File("freenet.jar.new"); boolean nastyRestart = false; if((File.separatorChar == '\\') || (System.getProperty("os.name").toLowerCase().startsWith("win"))) { nastyRestart = true; Properties p = WrapperManager.getProperties(); String cp1 = p.getProperty("wrapper.java.classpath.1"); if(cp1 == null) { Logger.error(this, "wrapper.java.classpath.1 = null - maybe wrapper.conf is broken?"); System.err.println("wrapper.java.classpath.1 = null - maybe wrapper.conf is broken?"); } else if(cp1.equals("freenet.jar")) { // Cool! } else if(cp1.equals("freenet.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { cp1 = p.getProperty("wrapper.java.classpath.2"); if(cp1 != null && cp1.equals("freenet.jar")) { // Cool! } else if(cp1 != null && cp1.equals("freenet.jar.new")) { // Swapped; we are running .new File tmp = fRunning; fRunning = fNew; fNew = tmp; } else { Logger.error(this, "Cannot restart on Windows due to non-standard config file!"); System.err.println("Cannot restart on Windows due to non-standard config file!"); return; } } } fNew.delete(); FileOutputStream fos = new FileOutputStream(fNew); fos.write(data); fos.flush(); fos.close(); System.out.println("################## File written! "+cg.getURI().getSuggestedEdition()+ " " +fNew.getAbsolutePath()); if(!nastyRestart) { // Easy way. if(!fNew.renameTo(fRunning)) { fRunning.delete(); if(!fNew.renameTo(fRunning)) { System.err.println("ERROR renaming the file!"); return; } } } else { // Hard way. try { File oldConfig = new File("wrapper.conf"); File newConfig = new File("wrapper.conf.new"); FileInputStream fis = new FileInputStream(oldConfig); BufferedInputStream bis = new BufferedInputStream(fis); InputStreamReader isr = new InputStreamReader(bis); BufferedReader br = new BufferedReader(isr); fos = new FileOutputStream(newConfig); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); String line; boolean succeeded = false; boolean stillSucceeded = false; while((line = br.readLine()) != null) { if(line.equals("wrapper.java.classpath.1="+fRunning.getName())) { bw.write("wrapper.java.classpath.1="+fNew.getName()+"\r\n"); succeeded = true; } else if(line.equals("wrapper.java.classpath.2="+fRunning.getName())) { bw.write("wrapper.java.classpath.2="+fNew.getName()+"\r\n"); succeeded = true; } else { if(line.equals("wrapper.restart.reload_configuration=TRUE")) stillSucceeded = true; bw.write(line+"\r\n"); } } bw.close(); br.close(); if(!succeeded) { System.err.println("Not able to update because of non-standard config"); Logger.error(this, "Not able to update because of non-standard config"); return; } if(!stillSucceeded) { System.err.println("Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); Logger.error(this, "Not able to update because of non-standard or old config, add a line saying \"wrapper.restart.reload_configuration=TRUE\""); return; } if(!newConfig.renameTo(oldConfig)) { oldConfig.delete(); if(!newConfig.renameTo(oldConfig)) { System.err.println("Failed to rename over old config: update failed."); Logger.error(this, "Failed to rename over old config: update failed."); return; } } // New config installed. } catch (IOException e) { Logger.error(this, "Not able to update because of I/O error: "+e, e); System.err.println("Not able to update because of I/O error: "+e); } } if(node.getNodeStarter()!=null) { System.err.println("Restarting because of update"); node.getNodeStarter().restart(); } else{ System.out.println("New version has been downloaded: please restart your node!"); node.exit(); } System.err.println("WTF? Restart returned!?"); }catch(Exception e){ Logger.error(this, "Error while updating the node : "+e); System.out.println("Exception : "+e); e.printStackTrace(); } }
|
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/f1e41ac696e1b5d875ebffa18f4b6885f8785a76/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3443,
1891,
1435,
95,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1891,
1435,
2566,
8863,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12443,
2088,
422,
446,
13,
747,
711,
25931,
38,
821,
82,
13,
288,
9506,
202,
3328,
18,
17364,
12,
2211,
16,
315,
28365,
30,
563,
1546,
15,
2088,
15,
3113,
27079,
1891,
5042,
1546,
15,
291,
4965,
1891,
5042,
15,
3113,
711,
25931,
38,
821,
82,
1546,
15,
5332,
25931,
38,
821,
82,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
25083,
202,
2211,
18,
9083,
4431,
8609,
4488,
2096,
273,
374,
31,
1082,
202,
2211,
18,
6385,
1564,
273,
638,
31,
1082,
202,
3163,
18,
370,
18,
8222,
2932,
2979,
310,
364,
24158,
498,
8863,
1082,
202,
2211,
18,
4000,
5005,
28691,
12,
6625,
1769,
1082,
202,
17523,
12,
9083,
4431,
8609,
4488,
2096,
411,
2029,
15305,
18,
862,
16169,
8506,
67,
8609,
42,
67,
6236,
13,
288,
9506,
202,
3163,
18,
370,
18,
8222,
2932,
28691,
3895,
30,
13773,
9083,
4431,
8609,
4488,
2096,
1769,
9506,
202,
430,
12,
2211,
18,
5332,
25931,
38,
821,
82,
13,
288,
6862,
202,
3328,
18,
1636,
12,
2211,
16,
315,
1986,
24158,
498,
711,
2118,
1392,
603,
326,
2483,
294,
9445,
3656,
17,
2725,
8863,
6862,
202,
2463,
31,
9506,
202,
97,
9506,
202,
698,
288,
6862,
202,
7048,
12,
6625,
14,
18088,
1769,
9506,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
6862,
202,
759,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
3443,
1891,
1435,
95,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
1891,
1435,
2566,
8863,
202,
202,
22043,
12,
2211,
13,
288,
1082,
202,
430,
12443,
2088,
422,
446,
13,
747,
711,
25931,
38,
821,
82,
13,
288,
9506,
202,
3328,
18,
17364,
12,
2211,
16,
315,
28365,
30,
563,
1546,
15,
2088,
15,
3113,
27079,
1891,
5042,
1546,
15,
291,
4965,
1891,
5042,
15,
3113,
711,
25931,
38,
821,
82,
1546,
15,
5332,
25931,
38,
821,
82,
1769,
9506,
202,
2463,
31,
1082,
202,
97,
25083,
202,
2211,
18,
9083,
4431,
8609,
4488,
2096,
273,
374,
31,
1082,
202,
2211,
18,
6385,
1564,
273,
638,
31,
1082,
202,
3163,
18,
370,
18,
2
] |
|
throw new java.rmi.UnexpectedException("Undeclared checked exception", e);
|
throw new java.rmi.UnexpectedException(Messages.getString("jndi.86"), e);
|
public javax.naming.Reference getReference() throws javax.naming.NamingException, java.rmi.RemoteException { try { if (useNewInvoke) { java.lang.Object $result = ref.invoke(this, $method_getReference_0, null, 3529874867989176284L); return ((javax.naming.Reference) $result); } java.rmi.server.RemoteCall call = ref.newCall(this, operations, 0, interfaceHash); ref.invoke(call); javax.naming.Reference $result; try { java.io.ObjectInput in = call.getInputStream(); $result = (javax.naming.Reference) in.readObject(); } catch (java.io.IOException e) { throw new java.rmi.UnmarshalException("Error unmarshalling return value", e); } catch (java.lang.ClassNotFoundException e) { throw new java.rmi.UnmarshalException("Error unmarshalling return value", e); } finally { ref.done(call); } return $result; } catch (java.lang.RuntimeException e) { throw e; } catch (java.rmi.RemoteException e) { throw e; } catch (javax.naming.NamingException e) { throw e; } catch (java.lang.Exception e) { throw new java.rmi.UnexpectedException("Undeclared checked exception", e); } }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/a019071d67c658acaf59b3bed874ed07bb31de07/RemoteReferenceWrapper_Stub.java/buggy/modules/jndi/src/main/java/org/apache/harmony/jndi/provider/rmi/registry/RemoteReferenceWrapper_Stub.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6863,
18,
82,
7772,
18,
2404,
13223,
1435,
5411,
1216,
6863,
18,
82,
7772,
18,
24102,
503,
16,
2252,
18,
8864,
77,
18,
5169,
503,
288,
3639,
775,
288,
5411,
309,
261,
1202,
1908,
10969,
13,
288,
7734,
2252,
18,
4936,
18,
921,
271,
2088,
273,
1278,
18,
14407,
12,
2211,
16,
271,
2039,
67,
588,
2404,
67,
20,
16,
446,
16,
13191,
5540,
28,
5608,
5292,
7235,
6675,
4033,
8898,
5193,
48,
1769,
7734,
327,
14015,
28384,
18,
82,
7772,
18,
2404,
13,
271,
2088,
1769,
5411,
289,
5411,
2252,
18,
8864,
77,
18,
3567,
18,
5169,
1477,
745,
273,
1278,
18,
2704,
1477,
12,
2211,
16,
5295,
16,
374,
16,
1560,
2310,
1769,
5411,
1278,
18,
14407,
12,
1991,
1769,
5411,
6863,
18,
82,
7772,
18,
2404,
271,
2088,
31,
5411,
775,
288,
7734,
2252,
18,
1594,
18,
921,
1210,
316,
273,
745,
18,
588,
4348,
5621,
7734,
271,
2088,
273,
261,
28384,
18,
82,
7772,
18,
2404,
13,
316,
18,
896,
921,
5621,
5411,
289,
1044,
261,
6290,
18,
1594,
18,
14106,
425,
13,
288,
7734,
604,
394,
2252,
18,
8864,
77,
18,
9593,
503,
2932,
668,
17606,
310,
327,
460,
3113,
425,
1769,
5411,
289,
1044,
261,
6290,
18,
4936,
18,
797,
3990,
425,
13,
288,
7734,
604,
394,
2252,
18,
8864,
77,
18,
9593,
503,
2932,
668,
17606,
310,
327,
460,
3113,
425,
1769,
5411,
289,
3095,
288,
7734,
1278,
18,
8734,
12,
1991,
1769,
5411,
289,
5411,
327,
271,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6863,
18,
82,
7772,
18,
2404,
13223,
1435,
5411,
1216,
6863,
18,
82,
7772,
18,
24102,
503,
16,
2252,
18,
8864,
77,
18,
5169,
503,
288,
3639,
775,
288,
5411,
309,
261,
1202,
1908,
10969,
13,
288,
7734,
2252,
18,
4936,
18,
921,
271,
2088,
273,
1278,
18,
14407,
12,
2211,
16,
271,
2039,
67,
588,
2404,
67,
20,
16,
446,
16,
13191,
5540,
28,
5608,
5292,
7235,
6675,
4033,
8898,
5193,
48,
1769,
7734,
327,
14015,
28384,
18,
82,
7772,
18,
2404,
13,
271,
2088,
1769,
5411,
289,
5411,
2252,
18,
8864,
77,
18,
3567,
18,
5169,
1477,
745,
273,
1278,
18,
2704,
1477,
12,
2211,
16,
5295,
16,
374,
16,
1560,
2310,
1769,
5411,
1278,
2
] |
public Object execMethod(int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException
|
public Object execMethod(IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
|
public Object execMethod(int methodId, IdFunction f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (0 <= prototypeIdShift) { switch (methodId - prototypeIdShift) { case Id_constructor: { String source = (args.length == 0) ? "" : ScriptRuntime.toString(args[0]); Script script = compile(cx, source); NativeScript nscript = new NativeScript(script); nscript.setParentScope(scope); nscript.setPrototype(getClassPrototype(scope, "Script")); return nscript; } case Id_toString: { NativeScript real = realThis(thisObj, f); Script realScript = real.script; if (realScript == null) { realScript = real; } return cx.decompileScript(realScript, getTopLevelScope(scope), 0); } case Id_exec: { throw Context.reportRuntimeError1( "msg.cant.call.indirect", "exec"); } case Id_compile: { NativeScript real = realThis(thisObj, f); String source = ScriptRuntime.toString(args, 0); real.script = compile(cx, source); return real; } } } return super.execMethod(methodId, f, cx, scope, thisObj, args); }
|
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/8f28fc868ac3f30ea37494abfddb6358154786c3/NativeScript.java/buggy/js/rhino/src/org/mozilla/javascript/NativeScript.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
12,
474,
707,
548,
16,
3124,
2083,
284,
16,
1772,
9494,
16,
11794,
22780,
2146,
16,
22780,
15261,
16,
11794,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
20,
1648,
4409,
548,
10544,
13,
288,
5411,
1620,
261,
2039,
548,
300,
4409,
548,
10544,
13,
288,
7734,
648,
3124,
67,
12316,
30,
288,
10792,
514,
1084,
273,
261,
1968,
18,
2469,
422,
374,
13,
4766,
565,
692,
1408,
4766,
565,
294,
7739,
5576,
18,
10492,
12,
1968,
63,
20,
19226,
10792,
7739,
2728,
273,
4074,
12,
71,
92,
16,
1084,
1769,
10792,
16717,
3651,
290,
4263,
273,
394,
16717,
3651,
12,
4263,
1769,
10792,
290,
4263,
18,
542,
3054,
3876,
12,
4887,
1769,
10792,
290,
4263,
18,
542,
15846,
12,
588,
797,
15846,
12,
4887,
16,
315,
3651,
7923,
1769,
10792,
327,
290,
4263,
31,
7734,
289,
7734,
648,
3124,
67,
10492,
30,
288,
10792,
16717,
3651,
2863,
273,
2863,
2503,
12,
2211,
2675,
16,
284,
1769,
10792,
7739,
2863,
3651,
273,
2863,
18,
4263,
31,
10792,
309,
261,
7688,
3651,
422,
446,
13,
288,
2863,
3651,
273,
2863,
31,
289,
10792,
327,
9494,
18,
323,
11100,
3651,
12,
7688,
3651,
16,
4766,
2868,
13729,
2355,
3876,
12,
4887,
3631,
374,
1769,
7734,
289,
7734,
648,
3124,
67,
4177,
30,
288,
10792,
604,
1772,
18,
6006,
5576,
668,
21,
12,
13491,
315,
3576,
18,
71,
970,
18,
1991,
18,
728,
867,
3113,
315,
4177,
8863,
7734,
289,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1196,
1305,
12,
474,
707,
548,
16,
3124,
2083,
284,
16,
1772,
9494,
16,
11794,
22780,
2146,
16,
22780,
15261,
16,
11794,
1033,
8526,
833,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
20,
1648,
4409,
548,
10544,
13,
288,
5411,
1620,
261,
2039,
548,
300,
4409,
548,
10544,
13,
288,
7734,
648,
3124,
67,
12316,
30,
288,
10792,
514,
1084,
273,
261,
1968,
18,
2469,
422,
374,
13,
4766,
565,
692,
1408,
4766,
565,
294,
7739,
5576,
18,
10492,
12,
1968,
63,
20,
19226,
10792,
7739,
2728,
273,
4074,
12,
71,
92,
16,
1084,
1769,
10792,
16717,
3651,
290,
4263,
273,
394,
16717,
3651,
12,
4263,
1769,
10792,
290,
4263,
18,
542,
3054,
2
] |
"The length of the content must be greater than 0");
|
"The length of the content must be greater than 0");
|
protected static void validateToken(String tokenType, String content) throws InvalidDatatypeValueException { int len; if (content == null || (len = content.length()) == 0) { throw new InvalidDatatypeValueException( "The length of the content must be greater than 0"); } boolean seenErr = false; if (tokenType == SPECIAL_TOKEN_NMTOKEN) { // PATTERN "\\c+" seenErr = !XMLChar.isValidNmtoken(content); } else if (tokenType == SPECIAL_TOKEN_NAME || tokenType == SPECIAL_TOKEN_IDNAME || tokenType == SPECIAL_TOKEN_IDREFNAME) { // PATTERN "\\i\\c*" seenErr = !XMLChar.isValidName(content); } else if (tokenType == SPECIAL_TOKEN_NCNAME || tokenType == SPECIAL_TOKEN_IDNCNAME || tokenType == SPECIAL_TOKEN_IDREFNCNAME || tokenType == SPECIAL_TOKEN_ENTITY) { // PATTERN "[\\i-[:]][\\c-[:]]*" // REVISIT: !!!NOT IMPLEMENTED in XMLChar seenErr = !XMLChar.isValidNCName(content); } if (seenErr) { throw new InvalidDatatypeValueException( "Value '"+content+"' is not a valid " + tokenType); } }
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/4b01142cc37cb03a4b40a1d07569328af4773755/AbstractStringValidator.java/buggy/src/org/apache/xerces/impl/v2/datatypes/AbstractStringValidator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
918,
1954,
1345,
12,
780,
22302,
16,
514,
913,
13,
1216,
1962,
20228,
9738,
288,
3639,
509,
562,
31,
3639,
309,
261,
1745,
422,
446,
747,
261,
1897,
273,
913,
18,
2469,
10756,
422,
374,
13,
288,
5411,
604,
394,
1962,
20228,
9738,
12,
21821,
315,
1986,
769,
434,
326,
913,
1297,
506,
6802,
2353,
374,
8863,
3639,
289,
3639,
1250,
5881,
2524,
273,
629,
31,
3639,
309,
261,
2316,
559,
422,
22872,
6365,
67,
8412,
67,
50,
6152,
6239,
13,
288,
5411,
368,
20146,
8422,
71,
9078,
5411,
5881,
2524,
273,
401,
4201,
2156,
18,
26810,
50,
1010,
969,
12,
1745,
1769,
3639,
289,
3639,
469,
309,
261,
2316,
559,
422,
22872,
6365,
67,
8412,
67,
1985,
747,
10402,
22302,
422,
22872,
6365,
67,
8412,
67,
734,
1985,
747,
10402,
22302,
422,
22872,
6365,
67,
8412,
67,
734,
10771,
1985,
13,
288,
5411,
368,
20146,
8422,
77,
1695,
71,
7388,
5411,
5881,
2524,
273,
401,
4201,
2156,
18,
26810,
461,
12,
1745,
1769,
3639,
289,
469,
309,
261,
2316,
559,
422,
22872,
6365,
67,
8412,
67,
10346,
1985,
747,
10402,
22302,
422,
22872,
6365,
67,
8412,
67,
734,
10346,
1985,
747,
10402,
22302,
422,
22872,
6365,
67,
8412,
67,
734,
10771,
10346,
1985,
747,
10402,
22302,
422,
22872,
6365,
67,
8412,
67,
11101,
13,
288,
5411,
368,
20146,
5158,
1695,
77,
17,
10531,
65,
6362,
1695,
71,
17,
10531,
65,
5772,
6,
5411,
368,
2438,
26780,
1285,
30,
401,
8548,
4400,
15694,
28485,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
918,
1954,
1345,
12,
780,
22302,
16,
514,
913,
13,
1216,
1962,
20228,
9738,
288,
3639,
509,
562,
31,
3639,
309,
261,
1745,
422,
446,
747,
261,
1897,
273,
913,
18,
2469,
10756,
422,
374,
13,
288,
5411,
604,
394,
1962,
20228,
9738,
12,
21821,
315,
1986,
769,
434,
326,
913,
1297,
506,
6802,
2353,
374,
8863,
3639,
289,
3639,
1250,
5881,
2524,
273,
629,
31,
3639,
309,
261,
2316,
559,
422,
22872,
6365,
67,
8412,
67,
50,
6152,
6239,
13,
288,
5411,
368,
20146,
8422,
71,
9078,
5411,
5881,
2524,
273,
401,
4201,
2156,
18,
26810,
50,
1010,
969,
12,
1745,
1769,
3639,
289,
3639,
469,
309,
261,
2316,
559,
422,
22872,
6365,
67,
8412,
2
] |
report.setErrorCode(report.ERROR_TEST_FAILED);
|
report.setErrorCode(TestReport.ERROR_TEST_FAILED);
|
public TestReport runImpl() throws Exception { String parser = XMLResourceDescriptor.getXMLParserClassName(); DocumentFactory df = new SAXDocumentFactory (GenericDOMImplementation.getDOMImplementation(), parser); File f = (new File(testFileName)); URL url = f.toURL(); Document doc = df.createDocument(null, rootTag, url.toString(), url.openStream()); Element e = doc.getElementById(targetId); if (e == null){ DefaultTestReport report = new DefaultTestReport(this); report.setErrorCode(ERROR_GET_ELEMENT_BY_ID_FAILED); report.addDescriptionEntry(ENTRY_KEY_ID, targetId); report.setPassed(false); return report; } try { e.removeAttribute(targetAttr); } catch (DOMException ex) { DefaultTestReport report = new DefaultTestReport(this); report.setErrorCode(report.ERROR_TEST_FAILED); report.addDescriptionEntry("exception.message", ex.getMessage()); report.setPassed(false); return report; } return reportSuccess(); }
|
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/37794489f7dedd0c74c1b7ae67e92cf8d877b256/RemoveAttributeTest.java/buggy/test-sources/org/apache/batik/dom/RemoveAttributeTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7766,
4820,
1086,
2828,
1435,
1216,
1185,
288,
3639,
514,
2082,
273,
5411,
3167,
1420,
3187,
18,
588,
4201,
2678,
3834,
5621,
3639,
4319,
1733,
3013,
2398,
273,
394,
10168,
2519,
1733,
5411,
261,
7014,
8168,
13621,
18,
588,
8168,
13621,
9334,
2082,
1769,
3639,
1387,
284,
273,
261,
2704,
1387,
12,
3813,
4771,
10019,
3639,
1976,
880,
273,
284,
18,
869,
1785,
5621,
3639,
4319,
997,
273,
3013,
18,
2640,
2519,
12,
2011,
16,
29159,
1365,
1805,
16,
29159,
880,
18,
10492,
9334,
29159,
880,
18,
3190,
1228,
10663,
7734,
3010,
425,
273,
997,
18,
24135,
12,
3299,
548,
1769,
3639,
309,
261,
73,
422,
446,
15329,
5411,
2989,
4709,
4820,
2605,
273,
394,
2989,
4709,
4820,
12,
2211,
1769,
5411,
2605,
18,
542,
12012,
12,
3589,
67,
3264,
67,
10976,
67,
6486,
67,
734,
67,
11965,
1769,
5411,
2605,
18,
1289,
3291,
1622,
12,
19083,
67,
3297,
67,
734,
16,
4766,
4202,
27729,
1769,
5411,
2605,
18,
542,
22530,
12,
5743,
1769,
5411,
327,
2605,
31,
3639,
289,
3639,
775,
288,
5411,
425,
18,
4479,
1499,
12,
3299,
3843,
1769,
3639,
289,
1044,
261,
8168,
503,
431,
13,
288,
5411,
2989,
4709,
4820,
2605,
273,
394,
2989,
4709,
4820,
12,
2211,
1769,
5411,
2605,
18,
542,
12012,
12,
4709,
4820,
18,
3589,
67,
16961,
67,
11965,
1769,
5411,
2605,
18,
1289,
3291,
1622,
2932,
4064,
18,
2150,
3113,
4766,
4202,
431,
18,
24906,
10663,
5411,
2605,
18,
542,
22530,
12,
5743,
1769,
5411,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7766,
4820,
1086,
2828,
1435,
1216,
1185,
288,
3639,
514,
2082,
273,
5411,
3167,
1420,
3187,
18,
588,
4201,
2678,
3834,
5621,
3639,
4319,
1733,
3013,
2398,
273,
394,
10168,
2519,
1733,
5411,
261,
7014,
8168,
13621,
18,
588,
8168,
13621,
9334,
2082,
1769,
3639,
1387,
284,
273,
261,
2704,
1387,
12,
3813,
4771,
10019,
3639,
1976,
880,
273,
284,
18,
869,
1785,
5621,
3639,
4319,
997,
273,
3013,
18,
2640,
2519,
12,
2011,
16,
29159,
1365,
1805,
16,
29159,
880,
18,
10492,
9334,
29159,
880,
18,
3190,
1228,
10663,
7734,
3010,
425,
273,
997,
18,
24135,
12,
3299,
548,
1769,
3639,
309,
261,
73,
422,
446,
15329,
5411,
2989,
4709,
4820,
2605,
273,
394,
2989,
4709,
2
] |
if (string == null) throw new NullPointerException();
|
if (string == null) throw new NullPointerException();
|
private static int[] parseDeprecatedSequence(String string) { if (string == null) throw new NullPointerException(); StringTokenizer stringTokenizer = new StringTokenizer(string); int length = stringTokenizer.countTokens(); int[] strokes = new int[length]; for (int i = 0; i < length; i++) strokes[i] = parseDeprecatedStroke(stringTokenizer.nextToken()); return strokes; }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/Persistence.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/Persistence.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
8526,
1109,
13534,
4021,
12,
780,
533,
13,
288,
202,
202,
430,
261,
1080,
422,
446,
13,
1082,
202,
12849,
394,
10108,
5621,
202,
202,
780,
10524,
533,
10524,
273,
394,
16370,
12,
1080,
1769,
202,
202,
474,
769,
273,
533,
10524,
18,
1883,
5157,
5621,
202,
202,
474,
8526,
384,
3250,
281,
273,
394,
509,
63,
2469,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
1082,
202,
334,
3250,
281,
63,
77,
65,
273,
1109,
13534,
14602,
12,
1080,
10524,
18,
4285,
1345,
10663,
202,
202,
2463,
384,
3250,
281,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
509,
8526,
1109,
13534,
4021,
12,
780,
533,
13,
288,
202,
202,
430,
261,
1080,
422,
446,
13,
1082,
202,
12849,
394,
10108,
5621,
202,
202,
780,
10524,
533,
10524,
273,
394,
16370,
12,
1080,
1769,
202,
202,
474,
769,
273,
533,
10524,
18,
1883,
5157,
5621,
202,
202,
474,
8526,
384,
3250,
281,
273,
394,
509,
63,
2469,
15533,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
769,
31,
277,
27245,
1082,
202,
334,
3250,
281,
63,
77,
65,
273,
1109,
13534,
14602,
12,
1080,
10524,
18,
4285,
1345,
10663,
202,
202,
2463,
384,
3250,
281,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try
|
if (filePrintSpec.exists())
|
private static PrinterJob getPrintJob(String jobName) { job = PrinterJob.getPrinterJob(); String printSpecPath = MiscUtilities.constructPath( jEdit.getSettingsDirectory(), "printspec"); File filePrintSpec = new File(printSpecPath); format = new HashPrintRequestAttributeSet(); if (filePrintSpec!=null && filePrintSpec.exists() && !filePrintSpec.isDirectory()){ try { FileInputStream fileIn=new FileInputStream(filePrintSpec); ObjectInputStream obIn=new ObjectInputStream(fileIn); format=(HashPrintRequestAttributeSet)obIn.readObject(); } catch(Exception ee) { Log.log(Log.ERROR,job,"Couldnt read file="+filePrintSpec+"; error="+ ee); } //for backwards compatibility, the color variable is stored also as a property if(jEdit.getBooleanProperty("print.color")) format.add(Chromaticity.COLOR); else format.add(Chromaticity.MONOCHROME); //no need to always keep the same job name for every printout. format.add(new JobName(jobName, null)); } return job; }
|
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/e0b296b6ce7abfd323d5481314bccbf0b3a5a7f7/BufferPrinter1_4.java/buggy/org/gjt/sp/jedit/print/BufferPrinter1_4.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
2301,
2761,
2278,
8248,
474,
2278,
12,
780,
17833,
13,
202,
95,
202,
202,
4688,
273,
2301,
2761,
2278,
18,
588,
12149,
2278,
5621,
202,
202,
780,
1172,
1990,
743,
273,
16584,
71,
11864,
18,
10062,
743,
12,
1082,
1171,
9079,
525,
4666,
18,
588,
2628,
2853,
9334,
315,
1188,
2793,
8863,
202,
202,
812,
585,
5108,
1990,
273,
394,
1387,
12,
1188,
1990,
743,
1769,
202,
202,
2139,
273,
394,
2474,
5108,
691,
1499,
694,
5621,
202,
202,
430,
261,
768,
5108,
1990,
5,
33,
2011,
597,
585,
5108,
1990,
18,
1808,
1435,
597,
401,
768,
5108,
1990,
18,
291,
2853,
10756,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
812,
4348,
585,
382,
33,
2704,
11907,
12,
768,
5108,
1990,
1769,
9506,
202,
921,
4348,
3768,
382,
33,
2704,
22726,
12,
768,
382,
1769,
9506,
202,
2139,
28657,
2310,
5108,
691,
1499,
694,
13,
947,
382,
18,
896,
921,
5621,
1082,
202,
97,
1082,
202,
14683,
12,
503,
14657,
13,
1082,
202,
95,
9506,
202,
1343,
18,
1330,
12,
1343,
18,
3589,
16,
4688,
10837,
4445,
496,
855,
585,
1546,
15,
768,
5108,
1990,
9078,
31,
555,
1546,
15,
14657,
1769,
1082,
202,
97,
1082,
202,
759,
1884,
12727,
8926,
16,
326,
2036,
2190,
353,
4041,
2546,
487,
279,
1272,
1082,
202,
430,
12,
78,
4666,
18,
588,
5507,
1396,
2932,
1188,
18,
3266,
6,
3719,
9506,
202,
2139,
18,
1289,
12,
782,
27468,
560,
18,
10989,
1769,
1082,
202,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
2301,
2761,
2278,
8248,
474,
2278,
12,
780,
17833,
13,
202,
95,
202,
202,
4688,
273,
2301,
2761,
2278,
18,
588,
12149,
2278,
5621,
202,
202,
780,
1172,
1990,
743,
273,
16584,
71,
11864,
18,
10062,
743,
12,
1082,
1171,
9079,
525,
4666,
18,
588,
2628,
2853,
9334,
315,
1188,
2793,
8863,
202,
202,
812,
585,
5108,
1990,
273,
394,
1387,
12,
1188,
1990,
743,
1769,
202,
202,
2139,
273,
394,
2474,
5108,
691,
1499,
694,
5621,
202,
202,
430,
261,
768,
5108,
1990,
5,
33,
2011,
597,
585,
5108,
1990,
18,
1808,
1435,
597,
401,
768,
5108,
1990,
18,
291,
2853,
10756,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
812,
4348,
585,
2
] |
public AttributeDescr xor_group() throws RecognitionException { AttributeDescr d; Token loc=null; Token name=null; d = null; try { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:17: (loc= 'xor-group' opt_eol name= STRING ( ';' )? opt_eol ) // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:17: loc= 'xor-group' opt_eol name= STRING ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,36,FOLLOW_36_in_xor_group1113); following.push(FOLLOW_opt_eol_in_xor_group1115); opt_eol(); following.pop(); name=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_xor_group1119); // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:53: ( ';' )? int alt37=2; int LA37_0 = input.LA(1); if ( LA37_0==15 ) { alt37=1; } else if ( LA37_0==EOL||LA37_0==22||LA37_0==27||LA37_0==29||LA37_0==31||(LA37_0>=33 && LA37_0<=38) ) { alt37=2; } else { NoViableAltException nvae = new NoViableAltException("478:53: ( \';\' )?", 37, 0, input); throw nvae; } switch (alt37) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:478:53: ';' { match(input,15,FOLLOW_15_in_xor_group1121); } break; } following.push(FOLLOW_opt_eol_in_xor_group1124); opt_eol(); following.pop(); d = new AttributeDescr( "xor-group", getString( name ) ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
|
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/f57cd683a66080d941264e3f98974908a6a489a0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
17586,
67,
1655,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
508,
33,
2011,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
8285,
30,
4033,
30,
261,
1829,
33,
296,
31346,
17,
1655,
11,
2153,
67,
30951,
508,
33,
9469,
261,
7554,
7851,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
8285,
30,
4033,
30,
1515,
33,
296,
31346,
17,
1655,
11,
2153,
67,
30951,
508,
33,
9469,
261,
7554,
7851,
2153,
67,
30951,
5411,
288,
5411,
1515,
28657,
1345,
13,
2630,
18,
12050,
12,
21,
1769,
5411,
845,
12,
2630,
16,
5718,
16,
29890,
67,
5718,
67,
267,
67,
31346,
67,
1655,
2499,
3437,
1769,
2398,
3751,
18,
6206,
12,
29890,
67,
3838,
67,
30951,
67,
267,
67,
31346,
67,
1655,
2499,
3600,
1769,
5411,
2153,
67,
30951,
5621,
5411,
3751,
18,
5120,
5621,
5411,
508,
28657,
1345,
13,
2630,
18,
12050,
12,
21,
1769,
5411,
845,
12,
2630,
16,
5804,
16,
29890,
67,
5804,
67,
267,
67,
31346,
67,
1655,
2499,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3601,
16198,
17586,
67,
1655,
1435,
1216,
9539,
288,
6647,
3601,
16198,
302,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
3155,
508,
33,
2011,
31,
1171,
202,
202,
72,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64,
4936,
64,
72,
1321,
18,
75,
30,
24,
8285,
30,
4033,
30,
261,
1829,
33,
296,
31346,
17,
1655,
11,
2153,
67,
30951,
508,
33,
9469,
261,
7554,
7851,
2153,
67,
30951,
262,
5411,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
2
] |
||
} catch (ExecutionException e) { if (e.getCause() instanceof CoreException) { ErrorDialog .openError( getContainer().getShell(), IDEWorkbenchMessages.WizardNewFolderCreationPage_errorTitle, null, ((CoreException) e.getCause()) .getStatus()); } else { throw new InvocationTargetException(e); }
|
} catch (final ExecutionException e) { getContainer().getShell().getDisplay().syncExec( new Runnable() { public void run() { if (e.getCause() instanceof CoreException) { ErrorDialog .openError( getContainer().getShell(), IDEWorkbenchMessages.WizardNewFolderCreationPage_errorTitle, null, ((CoreException) e.getCause()) .getStatus()); } else { IDEWorkbenchPlugin.log(getClass(), "createNewFolder()", e.getCause()); MessageDialog .openError( getContainer().getShell(), IDEWorkbenchMessages.WizardNewFolderCreationPage_internalErrorTitle, NLS.bind(IDEWorkbenchMessages.WizardNewFolder_internalError, e.getCause().getMessage())); } } });
|
public IFolder createNewFolder() { if (newFolder != null) { return newFolder; } // create the new folder and cache it if successful final IPath containerPath = resourceGroup.getContainerFullPath(); IPath newFolderPath = containerPath.append(resourceGroup.getResource()); final IFolder newFolderHandle = createFolderHandle(newFolderPath); createLinkTarget(); IRunnableWithProgress op = new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException { CreateFolderOperation op = new CreateFolderOperation( newFolderHandle, linkTargetPath, IDEWorkbenchMessages.WizardNewFolderCreationPage_title); try { PlatformUI.getWorkbench().getOperationSupport() .getOperationHistory().execute(op, monitor, WorkspaceUndoUtil.getUIInfoAdapter(getShell())); } catch (ExecutionException e) { if (e.getCause() instanceof CoreException) { ErrorDialog .openError( getContainer().getShell(), // Was Utilities.getFocusShell() IDEWorkbenchMessages.WizardNewFolderCreationPage_errorTitle, null, // no special message ((CoreException) e.getCause()) .getStatus()); } else { throw new InvocationTargetException(e); } } } }; try { getContainer().run(true, true, op); } catch (InterruptedException e) { return null; } catch (InvocationTargetException e) { // ExecutionExceptions are handled above, but unexpected runtime // exceptions and errors may still occur. IDEWorkbenchPlugin.log(getClass(), "createNewFolder()", e.getTargetException()); //$NON-NLS-1$ MessageDialog .openError( getContainer().getShell(), IDEWorkbenchMessages.WizardNewFolderCreationPage_internalErrorTitle, NLS.bind(IDEWorkbenchMessages.WizardNewFolder_internalError, e.getTargetException().getMessage())); return null; } newFolder = newFolderHandle; return newFolder; }
|
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/6acf364392177fabaa2905c86fa45a3dac0a3db3/WizardNewFolderMainPage.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/dialogs/WizardNewFolderMainPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
3899,
15291,
3899,
1435,
288,
202,
202,
430,
261,
2704,
3899,
480,
446,
13,
288,
1082,
202,
2463,
394,
3899,
31,
202,
202,
97,
202,
202,
759,
752,
326,
394,
3009,
471,
1247,
518,
309,
6873,
202,
202,
6385,
467,
743,
1478,
743,
273,
1058,
1114,
18,
588,
2170,
24173,
5621,
202,
202,
45,
743,
394,
28785,
273,
1478,
743,
18,
6923,
12,
3146,
1114,
18,
588,
1420,
10663,
202,
202,
6385,
467,
3899,
394,
3899,
3259,
273,
752,
3899,
3259,
12,
2704,
28785,
1769,
202,
202,
2640,
2098,
2326,
5621,
202,
202,
45,
20013,
1190,
5491,
1061,
273,
394,
467,
20013,
1190,
5491,
1435,
288,
1082,
202,
482,
918,
1086,
12,
45,
5491,
7187,
6438,
13,
1216,
15342,
288,
9506,
202,
1684,
3899,
2988,
1061,
273,
394,
1788,
3899,
2988,
12,
25083,
202,
2704,
3899,
3259,
16,
1692,
2326,
743,
16,
25083,
202,
10385,
2421,
22144,
5058,
18,
27130,
1908,
3899,
9906,
1964,
67,
2649,
1769,
9506,
202,
698,
288,
6862,
202,
8201,
5370,
18,
588,
2421,
22144,
7675,
588,
2988,
6289,
1435,
6862,
1082,
202,
18,
588,
2988,
5623,
7675,
8837,
12,
556,
16,
6438,
16,
6862,
6862,
202,
8241,
31224,
1304,
18,
588,
5370,
966,
4216,
12,
588,
13220,
1435,
10019,
9506,
202,
97,
1044,
261,
14576,
425,
13,
288,
6862,
202,
430,
261,
73,
18,
588,
10683,
1435,
1276,
30015,
13,
288,
1082,
7734,
1068,
6353,
1082,
13491,
263,
3190,
668,
12,
1082,
27573,
9272,
7675,
588,
13220,
9334,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
3899,
15291,
3899,
1435,
288,
202,
202,
430,
261,
2704,
3899,
480,
446,
13,
288,
1082,
202,
2463,
394,
3899,
31,
202,
202,
97,
202,
202,
759,
752,
326,
394,
3009,
471,
1247,
518,
309,
6873,
202,
202,
6385,
467,
743,
1478,
743,
273,
1058,
1114,
18,
588,
2170,
24173,
5621,
202,
202,
45,
743,
394,
28785,
273,
1478,
743,
18,
6923,
12,
3146,
1114,
18,
588,
1420,
10663,
202,
202,
6385,
467,
3899,
394,
3899,
3259,
273,
752,
3899,
3259,
12,
2704,
28785,
1769,
202,
202,
2640,
2098,
2326,
5621,
202,
202,
45,
20013,
1190,
5491,
1061,
273,
394,
467,
20013,
1190,
5491,
1435,
288,
1082,
202,
482,
918,
1086,
12,
45,
5491,
7187,
2
] |
public MultipartElement getNextElement() throws ServletException, UnsupportedEncodingException { //retrieve the "Content-Disposition" header //and parse String disposition = readLine(); if ((disposition != null) && (disposition.startsWith("Content-Disposition"))) { String name = parseDispositionName(disposition); String filename = parseDispositionFilename(disposition); String contentType = null; boolean isFile = (filename != null); if (isFile) { filename = new File(filename).getName(); //check for windows filenames, //from linux jdk's the entire filepath //isn't parsed correctly from File.getName() int colonIndex = filename.indexOf(":"); if (colonIndex == -1) { //check for Window's SMB server file paths colonIndex = filename.indexOf("\\\\"); } int slashIndex = filename.lastIndexOf("\\"); if ((colonIndex > -1) && (slashIndex > -1)) { //then consider this filename to be a full //windows filepath, and parse it accordingly //to retrieve just the file name filename = filename.substring(slashIndex+1, filename.length()); } //get the content type contentType = readLine(); contentType = parseContentType(contentType); } //ignore next line (whitespace) (unless it's a file //without content-type) if (! ((isFile) && contentType == null)) { readLine(); } MultipartElement element = null; //process a file element if (isFile) { try { //create a local file on disk representing the element File elementFile = createLocalFile(); element = new MultipartElement(name, filename, contentType, elementFile); } catch (IOException ioe) { throw new ServletException("IOException while reading file element: " + ioe.getMessage(), ioe); } } else { //read data into String form, then convert to bytes //for text StringBuffer textData = new StringBuffer(); String line; //parse for text data line = readLine(); while ((line != null) && (!line.startsWith(boundary))) { textData.append(line); line = readLine(); } if (textData.length() > 0) { //cut off "\r" from the end if necessary if (textData.charAt(textData.length()-1) == '\r') { textData.setLength(textData.length()-1); } } //create the element element = new MultipartElement(name, textData.toString()); } return element; } //reset stream if (inputStream.markSupported()) { try { inputStream.reset(); } catch (IOException ioe) { throw new ServletException("IOException while resetting input stream: " + ioe.getMessage()); } } return null; }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/de71a13dd9d82d1df2a37155b9c62e4c7a504e01/MultipartIterator.java/buggy/src/share/org/apache/struts/upload/MultipartIterator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19919,
1046,
6927,
1046,
1435,
1216,
16517,
16,
15367,
288,
3639,
368,
17466,
326,
315,
1350,
17,
15087,
6,
1446,
3639,
368,
464,
1109,
3639,
514,
23913,
273,
12273,
5621,
13491,
309,
14015,
31231,
480,
446,
13,
597,
261,
31231,
18,
17514,
1190,
2932,
1350,
17,
15087,
6,
20349,
288,
5411,
514,
508,
273,
1109,
15087,
461,
12,
31231,
1769,
5411,
514,
1544,
273,
1109,
15087,
5359,
12,
31231,
1769,
4766,
9079,
514,
5064,
273,
446,
31,
5411,
1250,
11655,
273,
261,
3459,
480,
446,
1769,
13491,
309,
261,
291,
812,
13,
288,
7734,
1544,
273,
394,
1387,
12,
3459,
2934,
17994,
5621,
27573,
368,
1893,
364,
9965,
9066,
16,
7734,
368,
2080,
19725,
525,
2883,
1807,
326,
7278,
3608,
7734,
368,
291,
82,
1404,
2707,
8783,
628,
1387,
18,
17994,
1435,
7734,
509,
13336,
1016,
273,
1544,
18,
31806,
2932,
2773,
1769,
7734,
309,
261,
22667,
1016,
422,
300,
21,
13,
288,
10792,
368,
1893,
364,
6076,
1807,
28036,
1438,
585,
2953,
10792,
13336,
1016,
273,
1544,
18,
31806,
2932,
13011,
8863,
7734,
289,
7734,
509,
9026,
1016,
273,
1544,
18,
2722,
31985,
2932,
1695,
8863,
27573,
309,
14015,
22667,
1016,
405,
300,
21,
13,
597,
261,
12877,
1016,
405,
300,
21,
3719,
288,
10792,
368,
15991,
5260,
333,
1544,
358,
506,
279,
1983,
10792,
368,
13226,
3608,
16,
471,
1109,
518,
15905,
10792,
368,
869,
4614,
2537,
326,
585,
508,
10792,
1544,
273,
1544,
18,
28023,
12,
12877,
1016,
15,
21,
16,
1544,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19919,
1046,
6927,
1046,
1435,
1216,
16517,
16,
15367,
288,
3639,
368,
17466,
326,
315,
1350,
17,
15087,
6,
1446,
3639,
368,
464,
1109,
3639,
514,
23913,
273,
12273,
5621,
13491,
309,
14015,
31231,
480,
446,
13,
597,
261,
31231,
18,
17514,
1190,
2932,
1350,
17,
15087,
6,
20349,
288,
5411,
514,
508,
273,
1109,
15087,
461,
12,
31231,
1769,
5411,
514,
1544,
273,
1109,
15087,
5359,
12,
31231,
1769,
4766,
9079,
514,
5064,
273,
446,
31,
5411,
1250,
11655,
273,
261,
3459,
480,
446,
1769,
13491,
309,
261,
291,
812,
13,
288,
7734,
1544,
273,
394,
1387,
12,
3459,
2934,
17994,
5621,
27573,
368,
1893,
364,
9965,
9066,
16,
7734,
368,
2080,
19725,
525,
2883,
1807,
2
] |
||
startPrefixMapping (prefix, uri, true);
|
startPrefixMapping (prefix, uri, false);
|
public void startPrefixMapping (String prefix, String uri) throws SAXException { startPrefixMapping (prefix, uri, true); }
|
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/05ed00dd579996462c78857f1ace3f8ce552da1d/ResultTreeHandler.java/buggy/src/org/apache/xalan/transformer/ResultTreeHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
2244,
3233,
261,
780,
1633,
16,
514,
2003,
13,
565,
1216,
14366,
225,
288,
3639,
787,
2244,
3233,
261,
3239,
16,
2003,
16,
629,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
787,
2244,
3233,
261,
780,
1633,
16,
514,
2003,
13,
565,
1216,
14366,
225,
288,
3639,
787,
2244,
3233,
261,
3239,
16,
2003,
16,
629,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return null;
|
return new Status(IStatus.OK, ManagedBuilderCorePlugin.getUniqueIdentifier(), IStatus.OK, null, null);
|
protected IStatus run(IProgressMonitor monitor) { try { // Set the raw path entries cModelElement.setRawPathEntries(new IPathEntry[]{containerEntry}, new NullProgressMonitor()); } catch (CModelException e) { ManagedBuilderCorePlugin.log(e); } return null; }
|
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/e21a791587d8b09fadb514056fb719e86e7abbe5/ManagedBuildInfo.java/clean/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
25083,
202,
698,
288,
6862,
1082,
202,
759,
1000,
326,
1831,
589,
3222,
6862,
1082,
202,
71,
1488,
1046,
18,
542,
4809,
743,
5400,
12,
2704,
467,
743,
1622,
63,
7073,
3782,
1622,
5779,
394,
4112,
5491,
7187,
10663,
25083,
202,
97,
1044,
261,
39,
1488,
503,
425,
13,
288,
6862,
1082,
202,
10055,
1263,
4670,
3773,
18,
1330,
12,
73,
1769,
25083,
202,
97,
25083,
202,
2463,
446,
31,
6862,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4405,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
25083,
202,
698,
288,
6862,
1082,
202,
759,
1000,
326,
1831,
589,
3222,
6862,
1082,
202,
71,
1488,
1046,
18,
542,
4809,
743,
5400,
12,
2704,
467,
743,
1622,
63,
7073,
3782,
1622,
5779,
394,
4112,
5491,
7187,
10663,
25083,
202,
97,
1044,
261,
39,
1488,
503,
425,
13,
288,
6862,
1082,
202,
10055,
1263,
4670,
3773,
18,
1330,
12,
73,
1769,
25083,
202,
97,
25083,
202,
2463,
446,
31,
6862,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
case ModelPackage.CHART__SERIES_HINTS: setSeriesHints((SeriesHint) null); return;
|
public void eUnset(EStructuralFeature eFeature) { switch (eDerivedStructuralFeatureID(eFeature)) { case ModelPackage.CHART__VERSION: setVersion(VERSION_EDEFAULT); return; case ModelPackage.CHART__TYPE: setType(TYPE_EDEFAULT); return; case ModelPackage.CHART__SUB_TYPE: setSubType(SUB_TYPE_EDEFAULT); return; case ModelPackage.CHART__DESCRIPTION: setDescription((Text) null); return; case ModelPackage.CHART__BLOCK: setBlock((Block) null); return; case ModelPackage.CHART__DIMENSION: unsetDimension(); return; case ModelPackage.CHART__SCRIPT: setScript(SCRIPT_EDEFAULT); return; case ModelPackage.CHART__UNITS: setUnits(UNITS_EDEFAULT); return; case ModelPackage.CHART__SERIES_THICKNESS: unsetSeriesThickness(); return; case ModelPackage.CHART__SERIES_HINTS: setSeriesHints((SeriesHint) null); return; case ModelPackage.CHART__GRID_COLUMN_COUNT: unsetGridColumnCount(); return; case ModelPackage.CHART__EXTENDED_PROPERTIES: getExtendedProperties().clear(); return; case ModelPackage.CHART__SAMPLE_DATA: setSampleData((SampleData) null); return; } eDynamicUnset(eFeature); }
|
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/869b9dc91ef4dd13d07f589c6394484a744642f0/ChartImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19698,
12,
41,
14372,
4595,
425,
4595,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
5757,
30,
7734,
16770,
12,
5757,
67,
11236,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
2399,
30,
7734,
8811,
12,
2399,
67,
11236,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
8362,
67,
2399,
30,
7734,
19942,
559,
12,
8362,
67,
2399,
67,
11236,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
15911,
30,
7734,
13812,
12443,
1528,
13,
446,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
11403,
30,
7734,
444,
1768,
12443,
1768,
13,
446,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
2565,
958,
3156,
1146,
30,
7734,
2646,
8611,
5621,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
10885,
30,
7734,
444,
3651,
12,
10885,
67,
11236,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
24325,
30,
7734,
444,
7537,
12,
24325,
67,
11236,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
2123,
8805,
67,
2455,
16656,
5407,
1260,
30,
7734,
2646,
6485,
1315,
19517,
5621,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
2123,
8805,
67,
44,
3217,
55,
30,
7734,
444,
6485,
13368,
12443,
6485,
7002,
13,
446,
1769,
7734,
327,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19698,
12,
41,
14372,
4595,
425,
4595,
13,
565,
288,
3639,
1620,
261,
73,
21007,
14372,
4595,
734,
12,
73,
4595,
3719,
3639,
288,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
5757,
30,
7734,
16770,
12,
5757,
67,
11236,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
2399,
30,
7734,
8811,
12,
2399,
67,
11236,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
8362,
67,
2399,
30,
7734,
19942,
559,
12,
8362,
67,
2399,
67,
11236,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
972,
15911,
30,
7734,
13812,
12443,
1528,
13,
446,
1769,
7734,
327,
31,
5411,
648,
3164,
2261,
18,
1792,
4928,
2
] |
|
public synchronized void unregister (int index)
|
public synchronized void unregister (Object key)
|
public synchronized void unregister (int index) { if (--index < 0) return; ports[index] = null; freeList[index] = freeListHead; freeListHead = index; }
|
36952 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36952/6c8e7dbd983b645dc7fa2baad7fcff5e87daebbb/WriterManager.java/clean/gnu/text/WriterManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
10232,
261,
921,
498,
13,
225,
288,
565,
309,
261,
413,
1615,
411,
374,
13,
1377,
327,
31,
565,
9048,
63,
1615,
65,
273,
446,
31,
565,
4843,
682,
63,
1615,
65,
273,
4843,
682,
1414,
31,
565,
4843,
682,
1414,
273,
770,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
10232,
261,
921,
498,
13,
225,
288,
565,
309,
261,
413,
1615,
411,
374,
13,
1377,
327,
31,
565,
9048,
63,
1615,
65,
273,
446,
31,
565,
4843,
682,
63,
1615,
65,
273,
4843,
682,
1414,
31,
565,
4843,
682,
1414,
273,
770,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
((MarkupModelImpl)model).dispose();
|
((MarkupModelEx)model).dispose();
|
public void removeMarkupModel(Project project) { MarkupModel model = myProjectToMarkupModelMap.remove(project); if (model != null) { ((MarkupModelImpl)model).dispose(); } }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/6e2b1d29a6b918c9dd17b0a9bc5aff67b02fff98/DocumentImpl.java/clean/source/com/intellij/openapi/editor/impl/DocumentImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
13111,
1488,
12,
4109,
1984,
13,
288,
565,
26420,
1488,
938,
273,
3399,
4109,
774,
13111,
1488,
863,
18,
4479,
12,
4406,
1769,
565,
309,
261,
2284,
480,
446,
13,
288,
1377,
14015,
13111,
1488,
424,
13,
2284,
2934,
2251,
4150,
5621,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1206,
13111,
1488,
12,
4109,
1984,
13,
288,
565,
26420,
1488,
938,
273,
3399,
4109,
774,
13111,
1488,
863,
18,
4479,
12,
4406,
1769,
565,
309,
261,
2284,
480,
446,
13,
288,
1377,
14015,
13111,
1488,
424,
13,
2284,
2934,
2251,
4150,
5621,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
throw new IllegalArgumentException("Unrecognized object " + handle);
|
throw new IllegalArgumentException("Unrecognized object " + getClassNull(handle));
|
public static Collection getCreateActions(Object handle) { if (handle instanceof MClassifier) { return ((MClassifier)handle).getCreateActions(); } throw new IllegalArgumentException("Unrecognized object " + handle); }
|
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/be05b6f537c02fb99857c8d7d71ca149fc9200dd/ModelFacade.java/buggy/src_new/org/argouml/model/ModelFacade.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2200,
25667,
6100,
12,
921,
1640,
13,
288,
3639,
309,
261,
4110,
1276,
490,
13860,
13,
288,
5411,
327,
14015,
49,
13860,
13,
4110,
2934,
588,
1684,
6100,
5621,
3639,
289,
3639,
604,
394,
2754,
2932,
19648,
733,
315,
397,
2900,
2041,
12,
4110,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2200,
25667,
6100,
12,
921,
1640,
13,
288,
3639,
309,
261,
4110,
1276,
490,
13860,
13,
288,
5411,
327,
14015,
49,
13860,
13,
4110,
2934,
588,
1684,
6100,
5621,
3639,
289,
3639,
604,
394,
2754,
2932,
19648,
733,
315,
397,
2900,
2041,
12,
4110,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
}
|
}
|
public void createBuffers(int x, BufferCapabilities bufferCapabilities) { }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ae9db4fc68ede9647d01b988919ce05ed61bf034/SwingScrollbarPeer.java/clean/gui/src/awt/org/jnode/awt/swingpeers/SwingScrollbarPeer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
13699,
12,
474,
619,
16,
3525,
14012,
1613,
14012,
13,
288,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
752,
13699,
12,
474,
619,
16,
3525,
14012,
1613,
14012,
13,
288,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; boolean isRootVisible = tree.isRootVisible(); if (mod.isLeaf(curr))
|
int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; boolean isRootVisible = tree.isRootVisible(); if (mod.isLeaf(curr))
|
int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) { Rectangle clip = g.getClipBounds(); if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) return descent; int halfHeight = getRowHeight() / 2; int halfWidth = rightChildIndent / 2; int y0 = descent + halfHeight; int heightOfLine = descent + halfHeight; boolean isRootVisible = tree.isRootVisible(); if (mod.isLeaf(curr)) { paintNode(g, indentation + 4, descent, tree, curr, true); descent += getRowHeight(); } else { if (depth > 0 || isRootVisible) { paintNode(g, indentation + 4, descent, tree, curr, false); descent += getRowHeight(); y0 += halfHeight; } int max = mod.getChildCount(curr); if (tree.isExpanded(new TreePath(((DefaultMutableTreeNode) curr) .getPath()))) { for (int i = 0; i < max; ++i) { int indent = indentation + rightChildIndent; if (!isRootVisible && depth == 0) indent = 0; else if ((!isRootVisible && !curr.equals(mod.getRoot())) || isRootVisible) { g.setColor(getHashColor()); heightOfLine = descent + halfHeight; g.drawLine(indentation + halfWidth, heightOfLine, indentation + rightChildIndent, heightOfLine); } descent = paintRecursive(g, indent, descent, i, depth + 1, tree, mod, mod.getChild(curr, i)); } } } if (tree.isExpanded(new TreePath(((DefaultMutableTreeNode) curr) .getPath()))) if (y0 != heightOfLine) { g.setColor(getHashColor()); g.drawLine(indentation + halfWidth, y0, indentation + halfWidth, heightOfLine); } return descent; }
|
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/f5ca4b7d89f5302860ae8a91105c0afc2b7b0e35/BasicTreeUI.java/buggy/javax/swing/plaf/basic/BasicTreeUI.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
540,
509,
1151,
1854,
16,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
282,
288,
1377,
13264,
6807,
273,
314,
18,
588,
15339,
5694,
5621,
1377,
309,
261,
9355,
367,
405,
6807,
18,
92,
397,
6807,
18,
2819,
397,
2145,
1763,
7790,
5411,
747,
3044,
319,
405,
6807,
18,
93,
397,
6807,
18,
4210,
397,
11835,
2686,
10756,
540,
327,
3044,
319,
31,
1377,
509,
8816,
2686,
273,
11835,
2686,
1435,
342,
576,
31,
1377,
509,
8816,
2384,
273,
2145,
1763,
7790,
342,
576,
31,
1377,
509,
677,
20,
273,
3044,
319,
397,
8816,
2686,
31,
1377,
509,
2072,
951,
1670,
273,
3044,
319,
397,
8816,
2686,
31,
1377,
1250,
19371,
6207,
273,
2151,
18,
291,
2375,
6207,
5621,
5411,
309,
261,
1711,
18,
291,
9858,
12,
17016,
3719,
1377,
288,
540,
12574,
907,
12,
75,
16,
12018,
397,
1059,
16,
3044,
319,
16,
2151,
16,
4306,
16,
638,
1769,
540,
3044,
319,
1011,
11835,
2686,
5621,
1377,
289,
1377,
469,
1377,
288,
540,
309,
261,
5979,
405,
374,
747,
19371,
6207,
13,
540,
288,
5411,
12574,
907,
12,
75,
16,
12018,
397,
1059,
16,
3044,
319,
16,
2151,
16,
4306,
16,
629,
1769,
5411,
3044,
319,
1011,
11835,
2686,
5621,
5411,
677,
20,
1011,
8816,
2686,
31,
540,
289,
540,
509,
943,
273,
681,
18,
588,
1763,
1380,
12,
17016,
1769,
540,
309,
261,
3413,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
509,
12574,
10483,
12,
17558,
314,
16,
509,
12018,
16,
509,
3044,
319,
16,
540,
509,
1151,
1854,
16,
509,
3598,
16,
804,
2471,
2151,
16,
4902,
1488,
681,
16,
1033,
4306,
13,
282,
288,
1377,
13264,
6807,
273,
314,
18,
588,
15339,
5694,
5621,
1377,
309,
261,
9355,
367,
405,
6807,
18,
92,
397,
6807,
18,
2819,
397,
2145,
1763,
7790,
5411,
747,
3044,
319,
405,
6807,
18,
93,
397,
6807,
18,
4210,
397,
11835,
2686,
10756,
540,
327,
3044,
319,
31,
1377,
509,
8816,
2686,
273,
11835,
2686,
1435,
342,
576,
31,
1377,
509,
8816,
2384,
273,
2145,
1763,
7790,
342,
576,
31,
1377,
509,
677,
20,
273,
3044,
319,
397,
8816,
2686,
31,
1377,
509,
2
] |
super(new TabbedPaneContentUI(), true, project, projectManager);
|
super(new TabbedPaneContentUI(), false, project, projectManager);
|
public FavoritesViewImpl(Project project, ProjectManager projectManager) { super(new TabbedPaneContentUI(), true, project, projectManager); myCurrentProject = project; addContentManagerListener(new ContentManagerListener() { public void contentAdded(ContentManagerEvent event) { } public void contentRemoved(ContentManagerEvent event) { } public void contentRemoveQuery(ContentManagerEvent event) { } public void selectionChanged(ContentManagerEvent event) { final Content content = event.getContent(); if (content == null){ return; } FavoritesTreeViewPanel currentPane = (FavoritesTreeViewPanel)content.getComponent(); if (currentPane != null){ myCurrentFavoritesList = currentPane.getName(); } } }); SelectInManager selectInManager = SelectInManager.getInstance(myCurrentProject); selectInManager.addTarget(createSelectInTarget()); }
|
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/a6bf3a8fd4f4c29e857800743aa7ef405a078de9/FavoritesViewImpl.java/buggy/source/com/intellij/ide/favoritesTreeView/FavoritesViewImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
478,
9444,
2997,
1767,
2828,
12,
4109,
1984,
16,
5420,
1318,
1984,
1318,
13,
288,
565,
2240,
12,
2704,
9483,
2992,
8485,
1350,
5370,
9334,
629,
16,
1984,
16,
1984,
1318,
1769,
565,
3399,
3935,
4109,
273,
1984,
31,
565,
11170,
1318,
2223,
12,
2704,
3697,
1318,
2223,
1435,
288,
1377,
1071,
918,
913,
8602,
12,
1350,
1318,
1133,
871,
13,
288,
1377,
289,
1377,
1071,
918,
913,
10026,
12,
1350,
1318,
1133,
871,
13,
288,
1377,
289,
1377,
1071,
918,
913,
3288,
1138,
12,
1350,
1318,
1133,
871,
13,
288,
1377,
289,
1377,
1071,
918,
4421,
5033,
12,
1350,
1318,
1133,
871,
13,
288,
3639,
727,
3697,
913,
273,
871,
18,
588,
1350,
5621,
3639,
309,
261,
1745,
422,
446,
15329,
1850,
327,
31,
3639,
289,
3639,
478,
9444,
2997,
2471,
1767,
5537,
783,
8485,
273,
261,
31745,
2997,
2471,
1767,
5537,
13,
1745,
18,
588,
1841,
5621,
3639,
309,
261,
2972,
8485,
480,
446,
15329,
1850,
3399,
3935,
31745,
2997,
682,
273,
783,
8485,
18,
17994,
5621,
3639,
289,
1377,
289,
565,
15549,
565,
6766,
382,
1318,
2027,
382,
1318,
273,
6766,
382,
1318,
18,
588,
1442,
12,
4811,
3935,
4109,
1769,
565,
2027,
382,
1318,
18,
1289,
2326,
12,
2640,
3391,
382,
2326,
10663,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
478,
9444,
2997,
1767,
2828,
12,
4109,
1984,
16,
5420,
1318,
1984,
1318,
13,
288,
565,
2240,
12,
2704,
9483,
2992,
8485,
1350,
5370,
9334,
629,
16,
1984,
16,
1984,
1318,
1769,
565,
3399,
3935,
4109,
273,
1984,
31,
565,
11170,
1318,
2223,
12,
2704,
3697,
1318,
2223,
1435,
288,
1377,
1071,
918,
913,
8602,
12,
1350,
1318,
1133,
871,
13,
288,
1377,
289,
1377,
1071,
918,
913,
10026,
12,
1350,
1318,
1133,
871,
13,
288,
1377,
289,
1377,
1071,
918,
913,
3288,
1138,
12,
1350,
1318,
1133,
871,
13,
288,
1377,
289,
1377,
1071,
918,
4421,
5033,
12,
1350,
1318,
1133,
871,
13,
288,
3639,
727,
3697,
913,
273,
871,
18,
588,
1350,
5621,
3639,
309,
2
] |
else if (name.equals("IsRecreate")) p_IsRecreate = "Y".equals(para[i].getParameter());
|
protected void prepare() { // Parameter ProcessInfoParameter[] para = getParameter(); for (int i = 0; i < para.length; i++) { String name = para[i].getParameterName(); if (para[i].getParameter() == null) ; else if (name.equals("C_AcctSchema_ID")) p_C_AcctSchema_ID = ((BigDecimal)para[i].getParameter()).intValue(); else if (name.equals("IsRecreate")) p_IsRecreate = "Y".equals(para[i].getParameter()); else log.log(Level.SEVERE, "Unknown Parameter: " + name); } } // prepare
|
50953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50953/204116f15efa2160509d7ce478d5653a34e05302/FinBalance.java/buggy/base/src/org/compiere/report/FinBalance.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2911,
1435,
202,
95,
202,
202,
759,
202,
1662,
202,
202,
2227,
966,
1662,
8526,
12602,
273,
5575,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
12602,
18,
2469,
31,
277,
27245,
202,
202,
95,
1082,
202,
780,
508,
273,
12602,
63,
77,
8009,
588,
24586,
5621,
1082,
202,
430,
261,
25072,
63,
77,
8009,
588,
1662,
1435,
422,
446,
13,
9506,
202,
31,
1082,
202,
12107,
309,
261,
529,
18,
14963,
2932,
39,
67,
9988,
299,
3078,
67,
734,
6,
3719,
9506,
202,
84,
67,
39,
67,
9988,
299,
3078,
67,
734,
273,
14015,
29436,
13,
25072,
63,
77,
8009,
588,
1662,
1435,
2934,
474,
620,
5621,
1082,
202,
12107,
309,
261,
529,
18,
14963,
2932,
2520,
426,
2640,
6,
3719,
9506,
202,
84,
67,
2520,
426,
2640,
273,
315,
61,
9654,
14963,
12,
25072,
63,
77,
8009,
588,
1662,
10663,
1082,
202,
12107,
9506,
202,
1330,
18,
1330,
12,
2355,
18,
1090,
2204,
41,
16,
315,
4874,
5498,
30,
315,
397,
508,
1769,
202,
202,
97,
202,
97,
202,
759,
202,
9366,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
2911,
1435,
202,
95,
202,
202,
759,
202,
1662,
202,
202,
2227,
966,
1662,
8526,
12602,
273,
5575,
5621,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
12602,
18,
2469,
31,
277,
27245,
202,
202,
95,
1082,
202,
780,
508,
273,
12602,
63,
77,
8009,
588,
24586,
5621,
1082,
202,
430,
261,
25072,
63,
77,
8009,
588,
1662,
1435,
422,
446,
13,
9506,
202,
31,
1082,
202,
12107,
309,
261,
529,
18,
14963,
2932,
39,
67,
9988,
299,
3078,
67,
734,
6,
3719,
9506,
202,
84,
67,
39,
67,
9988,
299,
3078,
67,
734,
273,
14015,
29436,
13,
25072,
63,
77,
8009,
588,
1662,
1435,
2934,
474,
620,
5621,
1082,
202,
12107,
2
] |
|
burs.ir.regpool.makeTemp(com.ibm.JikesRVM.classloader.VM_TypeReference.VM_Processor);
|
burs.ir.regpool.makeTemp(VM_TypeReference.VM_Processor);
|
public static OPT_RegisterOperand insertGetCurrentProcessor(OPT_BURS burs) { OPT_RegisterOperand result = burs.ir.regpool.makeTemp(com.ibm.JikesRVM.classloader.VM_TypeReference.VM_Processor); OPT_Register ESI = burs.ir.regpool.getPhysicalRegisterSet().getESI(); burs.append(MIR_Move.create(IA32_MOV,result,R(ESI))); return result; }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/8dfe8cd586b96d63fa7fc0e721eee0627995e5e3/VM_ProcessorLocalState.java/clean/rvm/src/vm/arch/intel/runtime/VM_ProcessorLocalState.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
16456,
67,
3996,
10265,
2243,
967,
3935,
5164,
12,
15620,
67,
38,
1099,
55,
324,
25152,
13,
288,
565,
16456,
67,
3996,
10265,
563,
273,
1377,
324,
25152,
18,
481,
18,
1574,
6011,
18,
6540,
7185,
12,
7397,
67,
7534,
18,
7397,
67,
5164,
1769,
565,
16456,
67,
3996,
512,
2320,
273,
324,
25152,
18,
481,
18,
1574,
6011,
18,
588,
18136,
3996,
694,
7675,
588,
41,
2320,
5621,
565,
324,
25152,
18,
6923,
12,
7492,
54,
67,
7607,
18,
2640,
12,
15188,
1578,
67,
5980,
58,
16,
2088,
16,
54,
12,
41,
2320,
3719,
1769,
565,
327,
563,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
16456,
67,
3996,
10265,
2243,
967,
3935,
5164,
12,
15620,
67,
38,
1099,
55,
324,
25152,
13,
288,
565,
16456,
67,
3996,
10265,
563,
273,
1377,
324,
25152,
18,
481,
18,
1574,
6011,
18,
6540,
7185,
12,
7397,
67,
7534,
18,
7397,
67,
5164,
1769,
565,
16456,
67,
3996,
512,
2320,
273,
324,
25152,
18,
481,
18,
1574,
6011,
18,
588,
18136,
3996,
694,
7675,
588,
41,
2320,
5621,
565,
324,
25152,
18,
6923,
12,
7492,
54,
67,
7607,
18,
2640,
12,
15188,
1578,
67,
5980,
58,
16,
2088,
16,
54,
12,
41,
2320,
3719,
1769,
565,
327,
563,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public boolean allowDelete( IObject iObject, Details trustedDetails ) { return allowUpdateOrDelete(iObject,trustedDetails);
|
public boolean allowDelete(IObject iObject, Details trustedDetails) { return allowUpdateOrDelete(iObject, trustedDetails);
|
public boolean allowDelete( IObject iObject, Details trustedDetails ) { return allowUpdateOrDelete(iObject,trustedDetails); }
|
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/9c53370b3f7a88f29e38673527398c205d19f7d6/BasicSecuritySystem.java/buggy/components/server/src/ome/security/BasicSecuritySystem.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1699,
2613,
12,
467,
921,
277,
921,
16,
21897,
13179,
3790,
262,
202,
95,
202,
202,
2463,
1699,
1891,
1162,
2613,
12,
77,
921,
16,
25247,
3790,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1699,
2613,
12,
467,
921,
277,
921,
16,
21897,
13179,
3790,
262,
202,
95,
202,
202,
2463,
1699,
1891,
1162,
2613,
12,
77,
921,
16,
25247,
3790,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tga[i].getAction( ) ) );
|
tga[i].getAction( ), clipping ) );
|
public void enableInteraction( InteractionEvent iev ) throws ChartException { if ( _iun == null ) { logger.log( ILogger.WARNING, Messages.getString( "exception.missing.component.interaction", getLocale( ) ) ); //$NON-NLS-1$ return; } final Trigger[] tga = iev.getTriggers( ); if ( tga == null ) { return; } // CREATE AND SETUP THE SHAPES FOR INTERACTION TriggerCondition tc; ArrayList al; final PrimitiveRenderEvent pre = iev.getHotSpot( ); if ( pre instanceof PolygonRenderEvent ) { final Location[] loa = ( (PolygonRenderEvent) pre ).getPoints( ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), loa, tga[i].getAction( ) ) ); } } else if ( pre instanceof RectangleRenderEvent ) { final Bounds bo = ( (RectangleRenderEvent) pre ).getBounds( ); final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( bo.getLeft( ), bo.getTop( ) ); loa[1] = LocationImpl.create( bo.getLeft( ), bo.getTop( ) + bo.getHeight( ) ); loa[2] = LocationImpl.create( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) + bo.getHeight( ) ); loa[3] = LocationImpl.create( bo.getLeft( ) + bo.getWidth( ), bo.getTop( ) ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), loa, tga[i].getAction( ) ) ); } } else if ( pre instanceof OvalRenderEvent ) { final Bounds boEllipse = ( (OvalRenderEvent) pre ).getBounds( ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), boEllipse, tga[i].getAction( ) ) ); } } else if ( pre instanceof ArcRenderEvent ) { final ArcRenderEvent are = (ArcRenderEvent) pre; final Bounds boEllipse = are.getEllipseBounds( ); double dStart = are.getStartAngle( ); double dExtent = are.getAngleExtent( ); int iArcType = toSwingArcType( are.getStyle( ) ); for ( int i = 0; i < tga.length; i++ ) { tc = tga[i].getCondition( ); al = (ArrayList) _lhmAllTriggers.get( tc ); if ( al == null ) { al = new ArrayList( 4 ); // UNDER NORMAL CONDITIONS _lhmAllTriggers.put( tc, al ); } al.add( new ShapedAction( iev.getSource( ), boEllipse, dStart, dExtent, iArcType, tga[i].getAction( ) ) ); } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/05b872f3bed7d4bd11be846d7b8ac2034d58c1c1/SwingRendererImpl.java/clean/chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingRendererImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4237,
17419,
12,
5294,
1128,
1133,
9228,
90,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
389,
77,
318,
422,
446,
262,
202,
202,
95,
1082,
202,
4901,
18,
1330,
12,
467,
3328,
18,
9511,
16,
6862,
202,
5058,
18,
588,
780,
12,
315,
4064,
18,
7337,
18,
4652,
18,
30303,
3113,
9595,
12,
262,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
6385,
11321,
8526,
268,
15833,
273,
9228,
90,
18,
588,
15114,
12,
11272,
202,
202,
430,
261,
268,
15833,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
759,
13278,
4116,
7855,
3079,
12786,
9777,
1423,
55,
12108,
11391,
12249,
202,
202,
6518,
3418,
1715,
31,
202,
202,
19558,
524,
31,
202,
202,
6385,
14488,
3420,
1133,
675,
273,
9228,
90,
18,
588,
25270,
17292,
12,
11272,
202,
202,
430,
261,
675,
1276,
12681,
3420,
1133,
262,
202,
202,
95,
1082,
202,
6385,
7050,
8526,
437,
69,
273,
261,
261,
11787,
3420,
1133,
13,
675,
262,
18,
588,
5636,
12,
11272,
1082,
202,
1884,
261,
509,
277,
273,
374,
31,
277,
411,
268,
15833,
18,
2469,
31,
277,
9904,
262,
1082,
202,
95,
9506,
202,
5111,
273,
268,
15833,
63,
77,
8009,
588,
3418,
12,
11272,
9506,
202,
287,
273,
261,
19558,
13,
389,
80,
76,
81,
1595,
15114,
18,
588,
12,
1715,
11272,
9506,
202,
430,
261,
524,
422,
446,
262,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4237,
17419,
12,
5294,
1128,
1133,
9228,
90,
262,
1216,
14804,
503,
202,
95,
202,
202,
430,
261,
389,
77,
318,
422,
446,
262,
202,
202,
95,
1082,
202,
4901,
18,
1330,
12,
467,
3328,
18,
9511,
16,
6862,
202,
5058,
18,
588,
780,
12,
315,
4064,
18,
7337,
18,
4652,
18,
30303,
3113,
9595,
12,
262,
262,
11272,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
6385,
11321,
8526,
268,
15833,
273,
9228,
90,
18,
588,
15114,
12,
11272,
202,
202,
430,
261,
268,
15833,
422,
446,
262,
202,
202,
95,
1082,
202,
2463,
31,
202,
202,
97,
202,
202,
759,
13278,
4116,
7855,
3079,
12786,
2
] |
if(parent.equals(browser.getDirectory()))
|
if(MiscUtilities.isAbsolutePath(currentText) && !currentText.startsWith(browser.getPath())) newText = path; else if(parent.equals(browser.getDirectory()))
|
public void run() { String currentText = filenameField.getText(); int caret = filenameField.getCaretPosition(); if(MiscUtilities.isAbsolutePath(currentText)) caret -= MiscUtilities.getParentOfPath(currentText).length(); BrowserView view = browser.getBrowserView(); view.selectNone(); view.getTree().doTypeSelect( currentText, false); VFS.DirectoryEntry[] files = view.getSelectedFiles(); if(files.length != 0) { String path = files[0].path; String name = files[0].name; String parent = MiscUtilities.getParentOfPath(path); if(parent.endsWith("/") || parent.endsWith(File.separator)) parent = parent.substring(0,parent.length() - 1); String newText; if(parent.equals(browser.getDirectory())) newText = name; else newText = path; filenameField.setText(newText); filenameField.setCaretPosition( newText.length()); if(MiscUtilities.isAbsolutePath(newText)) caret += parent.length() + 1; filenameField.moveCaretPosition( caret); } }
|
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/1013df0114ffbdb6bc72fb4289f10f6c85a06029/VFSFileChooserDialog.java/buggy/org/gjt/sp/jedit/browser/VFSFileChooserDialog.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
9506,
202,
95,
6862,
202,
780,
783,
1528,
273,
1544,
974,
18,
588,
1528,
5621,
6862,
202,
474,
21683,
273,
1544,
974,
18,
588,
39,
20731,
2555,
5621,
6862,
202,
430,
12,
11729,
71,
11864,
18,
291,
10368,
743,
12,
2972,
1528,
3719,
25083,
202,
71,
20731,
3947,
16584,
71,
11864,
18,
588,
3054,
951,
743,
12,
2972,
1528,
2934,
2469,
5621,
6862,
202,
9132,
1767,
1476,
273,
4748,
18,
588,
9132,
1767,
5621,
6862,
202,
1945,
18,
4025,
7036,
5621,
6862,
202,
1945,
18,
588,
2471,
7675,
2896,
559,
3391,
12,
25083,
202,
2972,
1528,
16,
25083,
202,
5743,
1769,
6862,
202,
58,
4931,
18,
2853,
1622,
8526,
1390,
273,
25083,
202,
1945,
18,
588,
7416,
2697,
5621,
6862,
202,
430,
12,
2354,
18,
2469,
480,
374,
13,
6862,
202,
95,
25083,
202,
780,
589,
273,
1390,
63,
20,
8009,
803,
31,
25083,
202,
780,
508,
273,
1390,
63,
20,
8009,
529,
31,
25083,
202,
780,
982,
273,
16584,
71,
11864,
18,
588,
3054,
951,
743,
12,
803,
1769,
25083,
202,
430,
12,
2938,
18,
5839,
1190,
2932,
4898,
13,
747,
982,
18,
5839,
1190,
12,
812,
18,
11287,
3719,
6862,
1082,
202,
2938,
273,
982,
18,
28023,
12,
20,
16,
2938,
18,
2469,
1435,
300,
404,
1769,
25083,
202,
780,
394,
1528,
31,
25083,
202,
430,
12,
2938,
18,
14963,
12,
11213,
18,
588,
2853,
1435,
3719,
6862,
1082,
202,
2704,
1528,
273,
508,
31,
25083,
202,
12107,
6862,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
1086,
1435,
9506,
202,
95,
6862,
202,
780,
783,
1528,
273,
1544,
974,
18,
588,
1528,
5621,
6862,
202,
474,
21683,
273,
1544,
974,
18,
588,
39,
20731,
2555,
5621,
6862,
202,
430,
12,
11729,
71,
11864,
18,
291,
10368,
743,
12,
2972,
1528,
3719,
25083,
202,
71,
20731,
3947,
16584,
71,
11864,
18,
588,
3054,
951,
743,
12,
2972,
1528,
2934,
2469,
5621,
6862,
202,
9132,
1767,
1476,
273,
4748,
18,
588,
9132,
1767,
5621,
6862,
202,
1945,
18,
4025,
7036,
5621,
6862,
202,
1945,
18,
588,
2471,
7675,
2896,
559,
3391,
12,
25083,
202,
2972,
1528,
16,
25083,
202,
5743,
1769,
6862,
202,
58,
4931,
18,
2853,
1622,
8526,
1390,
273,
25083,
202,
2
] |
List tunnelIds = _context.tunnelManager().selectInboundTunnelIds(criteria);
|
List tunnelIds = getContext().tunnelManager().selectInboundTunnelIds(criteria);
|
private TunnelId selectInboundTunnel() { TunnelSelectionCriteria criteria = new TunnelSelectionCriteria(); criteria.setAnonymityPriority(80); criteria.setLatencyPriority(50); criteria.setReliabilityPriority(20); criteria.setMaximumTunnelsRequired(1); criteria.setMinimumTunnelsRequired(1); List tunnelIds = _context.tunnelManager().selectInboundTunnelIds(criteria); if (tunnelIds.size() <= 0) { _log.error("No inbound tunnels?!"); return null; } else { return (TunnelId)tunnelIds.get(0); } }
|
27493 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27493/e737e5c9507ed0d463dc9e45a8f63657f466b177/StoreJob.java/buggy/router/java/src/net/i2p/router/networkdb/kademlia/StoreJob.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
399,
8564,
548,
2027,
20571,
20329,
1435,
288,
3639,
399,
8564,
6233,
7231,
3582,
273,
394,
399,
8564,
6233,
7231,
5621,
3639,
3582,
18,
542,
979,
6435,
560,
8183,
12,
3672,
1769,
3639,
3582,
18,
542,
21461,
8183,
12,
3361,
1769,
3639,
3582,
18,
542,
28886,
8183,
12,
3462,
1769,
3639,
3582,
18,
542,
13528,
20329,
87,
3705,
12,
21,
1769,
3639,
3582,
18,
542,
13042,
20329,
87,
3705,
12,
21,
1769,
3639,
987,
14825,
2673,
273,
6474,
7675,
19878,
1318,
7675,
4025,
20571,
20329,
2673,
12,
9714,
1769,
3639,
309,
261,
19878,
2673,
18,
1467,
1435,
1648,
374,
13,
288,
5411,
389,
1330,
18,
1636,
2932,
2279,
13357,
14825,
87,
35,
4442,
1769,
5411,
327,
446,
31,
3639,
289,
469,
288,
5411,
327,
261,
20329,
548,
13,
19878,
2673,
18,
588,
12,
20,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
399,
8564,
548,
2027,
20571,
20329,
1435,
288,
3639,
399,
8564,
6233,
7231,
3582,
273,
394,
399,
8564,
6233,
7231,
5621,
3639,
3582,
18,
542,
979,
6435,
560,
8183,
12,
3672,
1769,
3639,
3582,
18,
542,
21461,
8183,
12,
3361,
1769,
3639,
3582,
18,
542,
28886,
8183,
12,
3462,
1769,
3639,
3582,
18,
542,
13528,
20329,
87,
3705,
12,
21,
1769,
3639,
3582,
18,
542,
13042,
20329,
87,
3705,
12,
21,
1769,
3639,
987,
14825,
2673,
273,
6474,
7675,
19878,
1318,
7675,
4025,
20571,
20329,
2673,
12,
9714,
1769,
3639,
309,
261,
19878,
2673,
18,
1467,
1435,
1648,
374,
13,
288,
5411,
389,
1330,
18,
1636,
2932,
2279,
13357,
14825,
87,
35,
4442,
1769,
5411,
327,
446,
2
] |
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID();
|
public quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { quickfix.field.TradingSessionID value = new quickfix.field.TradingSessionID();
|
public org.quickfix.field.TradingSessionID getTradingSessionID() throws FieldNotFound { org.quickfix.field.TradingSessionID value = new org.quickfix.field.TradingSessionID(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteStatusReport.java/clean/src/java/src/quickfix/fix44/QuoteStatusReport.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
336,
1609,
7459,
2157,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
336,
1609,
7459,
2157,
734,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
1609,
7459,
2157,
734,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
MenuAdditionCacheEntry cache = (MenuAdditionCacheEntry) iterator.next();
|
MenuAdditionCacheEntry cache = (MenuAdditionCacheEntry) iterator .next();
|
public void populateMenu(ContributionManager mgr, MenuLocationURI uri) { List additionCaches = getAdditionsForURI(uri); List retryList = new ArrayList(); for (Iterator iterator = additionCaches.iterator(); iterator.hasNext();) { MenuAdditionCacheEntry cache = (MenuAdditionCacheEntry) iterator.next(); if (!processAdditions(mgr, cache)) { retryList.add(cache); } } // OK, iteratively loop through entries whose URI's could not // be resolved until we either run out of entries or the list // doesn't change size (indicating that the remaining entries // can never be resolved). boolean done = retryList.size() == 0; while (!done) { // Clone the retry list and clear it List curRetry = new ArrayList(retryList); int retryCount = retryList.size(); retryList.clear(); // Walk the current list seeing if any entries can now be resolved for (Iterator iterator = curRetry.iterator(); iterator.hasNext();) { MenuAdditionCacheEntry cache = (MenuAdditionCacheEntry) iterator.next(); if (!processAdditions(mgr, cache)) retryList.add(cache); } // We're done if the retryList is now empty (everything done) or // if the list hasn't changed at all (no hope) done = (retryList.size() == 0) || (retryList.size() == retryCount); } // Now, recurse through any sub-menus IContributionItem[] curItems = mgr.getItems(); for (int i = 0; i < curItems.length; i++) { if (curItems[i] instanceof ContributionManager) { IContributionItem menuItem = (IContributionItem)curItems[i]; MenuLocationURI subURI = new MenuLocationURI("menu:" + menuItem.getId()); //$NON-NLS-1$ populateMenu((ContributionManager) curItems[i], subURI); } } }
|
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/7708c9aa128d7f727df6c085dc73634c29372cac/WorkbenchMenuService.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/WorkbenchMenuService.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
4599,
12,
442,
4027,
1318,
13333,
16,
9809,
2735,
3098,
2003,
13,
288,
202,
202,
682,
2719,
18755,
273,
336,
986,
5029,
1290,
3098,
12,
1650,
1769,
202,
202,
682,
3300,
682,
273,
394,
2407,
5621,
202,
202,
1884,
261,
3198,
2775,
273,
2719,
18755,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
4599,
30296,
27630,
1247,
273,
261,
4599,
30296,
27630,
13,
2775,
18,
4285,
5621,
1082,
202,
430,
16051,
2567,
986,
5029,
12,
13552,
16,
1247,
3719,
288,
9506,
202,
9620,
682,
18,
1289,
12,
2493,
1769,
1082,
202,
97,
6862,
202,
97,
9506,
202,
759,
7791,
16,
1400,
17526,
2798,
3059,
3222,
8272,
3699,
1807,
3377,
486,
202,
202,
759,
506,
4640,
3180,
732,
3344,
1086,
596,
434,
3222,
578,
326,
666,
202,
202,
759,
3302,
1404,
2549,
963,
261,
728,
335,
1776,
716,
326,
4463,
3222,
202,
202,
759,
848,
5903,
506,
4640,
2934,
202,
202,
6494,
2731,
273,
3300,
682,
18,
1467,
1435,
422,
374,
31,
202,
202,
17523,
16051,
8734,
13,
288,
1082,
202,
759,
12758,
326,
3300,
666,
471,
2424,
518,
1082,
202,
682,
662,
7539,
273,
394,
2407,
12,
9620,
682,
1769,
1082,
202,
474,
225,
30084,
273,
3300,
682,
18,
1467,
5621,
1082,
202,
9620,
682,
18,
8507,
5621,
25083,
202,
759,
7564,
326,
783,
666,
2621,
310,
309,
1281,
3222,
848,
2037,
506,
4640,
1082,
202,
1884,
261,
3198,
2775,
273,
662,
7539,
18,
9838,
5621,
2775,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
6490,
4599,
12,
442,
4027,
1318,
13333,
16,
9809,
2735,
3098,
2003,
13,
288,
202,
202,
682,
2719,
18755,
273,
336,
986,
5029,
1290,
3098,
12,
1650,
1769,
202,
202,
682,
3300,
682,
273,
394,
2407,
5621,
202,
202,
1884,
261,
3198,
2775,
273,
2719,
18755,
18,
9838,
5621,
2775,
18,
5332,
2134,
5621,
13,
288,
1082,
202,
4599,
30296,
27630,
1247,
273,
261,
4599,
30296,
27630,
13,
2775,
18,
4285,
5621,
1082,
202,
430,
16051,
2567,
986,
5029,
12,
13552,
16,
1247,
3719,
288,
9506,
202,
9620,
682,
18,
1289,
12,
2493,
1769,
1082,
202,
97,
6862,
202,
97,
9506,
202,
759,
7791,
16,
1400,
17526,
2798,
3059,
3222,
8272,
3699,
1807,
3377,
486,
2
] |
assertTrue("Returned incorrect name", r.getName().equals( "createClassLoader"));
|
assertEquals("Returned incorrect name", "createClassLoader", r.getName());
|
public void test_ConstructorLjava_lang_StringLjava_lang_String() { // Test for method java.lang.RuntimePermission(java.lang.String, // java.lang.String) RuntimePermission r = new RuntimePermission("createClassLoader", null); assertTrue("Returned incorrect name", r.getName().equals( "createClassLoader")); }
|
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/181e940cd92dfff67639d98e991206d375a987ea/RuntimePermissionTest.java/clean/modules/luni/src/test/java/tests/api/java/lang/RuntimePermissionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
6293,
21159,
67,
4936,
67,
780,
21159,
67,
4936,
67,
780,
1435,
288,
202,
202,
759,
7766,
364,
707,
2252,
18,
4936,
18,
5576,
5041,
12,
6290,
18,
4936,
18,
780,
16,
202,
202,
759,
2252,
18,
4936,
18,
780,
13,
202,
202,
5576,
5041,
436,
273,
394,
2509,
5041,
2932,
2640,
7805,
3113,
446,
1769,
202,
202,
11231,
5510,
2932,
22360,
11332,
508,
3113,
436,
18,
17994,
7675,
14963,
12,
9506,
202,
6,
2640,
7805,
7923,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
67,
6293,
21159,
67,
4936,
67,
780,
21159,
67,
4936,
67,
780,
1435,
288,
202,
202,
759,
7766,
364,
707,
2252,
18,
4936,
18,
5576,
5041,
12,
6290,
18,
4936,
18,
780,
16,
202,
202,
759,
2252,
18,
4936,
18,
780,
13,
202,
202,
5576,
5041,
436,
273,
394,
2509,
5041,
2932,
2640,
7805,
3113,
446,
1769,
202,
202,
11231,
5510,
2932,
22360,
11332,
508,
3113,
436,
18,
17994,
7675,
14963,
12,
9506,
202,
6,
2640,
7805,
7923,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (alt != null) {
|
tmp = alt(); if (tmp != null) {
|
public int doEndTag() throws JspException { // Generate the name definition or image element HttpServletRequest request = (HttpServletRequest) pageContext.getRequest(); HttpServletResponse response = (HttpServletResponse) pageContext.getResponse(); StringBuffer results = new StringBuffer("<img"); String srcurl = null; if (this.src != null) srcurl = url(this.src); else if (this.page != null) srcurl = url(request.getContextPath() + this.page); else { JspException e = new JspException (messages.getMessage("imgTag.source")); pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw e; } String lowsrcurl = url(this.lowsrc); if (srcurl != null) { results.append(" src=\""); results.append(response.encodeURL(BeanUtils.filter(srcurl))); results.append("\""); } if (lowsrc != null) { results.append(" lowsrc=\""); results.append(response.encodeURL(BeanUtils.filter(lowsrcurl))); results.append("\""); } if (alt != null) { results.append(" alt=\""); results.append(alt); results.append("\""); } if (imageName != null) { results.append(" name=\""); results.append(imageName); results.append("\""); } if (height != null) { results.append(" height=\""); results.append(height); results.append("\""); } if (width != null) { results.append(" width=\""); results.append(width); results.append("\""); } if (align != null) { results.append(" align=\""); results.append(align); results.append("\""); } if (border != null) { results.append(" border=\""); results.append(border); results.append("\""); } if (hspace != null) { results.append(" hspace=\""); results.append(hspace); results.append("\""); } if (vspace != null) { results.append(" vspace=\""); results.append(vspace); results.append("\""); } if (ismap != null) { results.append(" ismap=\""); results.append(ismap); results.append("\""); } if (usemap != null) { results.append(" usemap=\""); results.append(usemap); results.append("\""); } results.append(prepareStyles()); results.append(prepareEventHandlers()); results.append(">"); // Print this element to our output writer JspWriter writer = pageContext.getOut(); try { writer.print(results.toString()); } catch (IOException e) { pageContext.setAttribute(Action.EXCEPTION_KEY, e, PageContext.REQUEST_SCOPE); throw new JspException (messages.getMessage("common.io", e.toString())); } return (EVAL_PAGE); }
|
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/d5bb41260a3077816b6a0d1068117df2bc4ca8d8/ImgTag.java/clean/src/share/org/apache/struts/taglib/html/ImgTag.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
25633,
1435,
1216,
27485,
288,
202,
759,
6654,
326,
508,
2379,
578,
1316,
930,
3639,
9984,
590,
273,
202,
225,
261,
2940,
18572,
13,
21442,
18,
588,
691,
5621,
202,
2940,
29910,
766,
273,
202,
225,
261,
2940,
29910,
13,
21442,
18,
588,
1064,
5621,
202,
780,
1892,
1686,
273,
394,
6674,
2932,
32,
6081,
8863,
202,
780,
1705,
718,
273,
446,
31,
202,
430,
261,
2211,
18,
4816,
480,
446,
13,
202,
565,
1705,
718,
273,
880,
12,
2211,
18,
4816,
1769,
202,
12107,
309,
261,
2211,
18,
2433,
480,
446,
13,
202,
565,
1705,
718,
273,
880,
12,
2293,
18,
29120,
743,
1435,
397,
333,
18,
2433,
1769,
202,
12107,
288,
202,
565,
27485,
425,
273,
394,
27485,
202,
1377,
261,
6833,
18,
24906,
2932,
6081,
1805,
18,
3168,
7923,
1769,
202,
565,
21442,
18,
542,
1499,
12,
1803,
18,
12658,
67,
3297,
16,
425,
16,
6862,
377,
3460,
1042,
18,
5519,
67,
19444,
1769,
202,
565,
604,
425,
31,
202,
97,
3639,
514,
4587,
4816,
718,
273,
880,
12,
2211,
18,
821,
4816,
1769,
3639,
309,
261,
4816,
718,
480,
446,
13,
288,
5411,
1686,
18,
6923,
2932,
1705,
5189,
8863,
5411,
1686,
18,
6923,
12,
2740,
18,
3015,
1785,
12,
3381,
1989,
18,
2188,
12,
4816,
718,
3719,
1769,
5411,
1686,
18,
6923,
2932,
8530,
1769,
3639,
289,
3639,
309,
261,
821,
4816,
480,
446,
13,
288,
5411,
1686,
18,
6923,
2932,
4587,
4816,
5189,
8863,
5411,
1686,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
741,
25633,
1435,
1216,
27485,
288,
202,
759,
6654,
326,
508,
2379,
578,
1316,
930,
3639,
9984,
590,
273,
202,
225,
261,
2940,
18572,
13,
21442,
18,
588,
691,
5621,
202,
2940,
29910,
766,
273,
202,
225,
261,
2940,
29910,
13,
21442,
18,
588,
1064,
5621,
202,
780,
1892,
1686,
273,
394,
6674,
2932,
32,
6081,
8863,
202,
780,
1705,
718,
273,
446,
31,
202,
430,
261,
2211,
18,
4816,
480,
446,
13,
202,
565,
1705,
718,
273,
880,
12,
2211,
18,
4816,
1769,
202,
12107,
309,
261,
2211,
18,
2433,
480,
446,
13,
202,
565,
1705,
718,
273,
880,
12,
2293,
18,
29120,
743,
1435,
397,
333,
18,
2433,
1769,
202,
12107,
288,
202,
565,
2
] |
ObservableTracker.getterCalled(this);
|
getterCalled();
|
public Collection values() { ObservableTracker.getterCalled(this); return wrappedMap.values(); }
|
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/646de6c1228ca0820a97e225df84d75e3993e272/ObservableMap.java/clean/bundles/org.eclipse.core.databinding/src/org/eclipse/core/databinding/observable/map/ObservableMap.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
924,
1435,
288,
202,
202,
15279,
8135,
18,
11990,
8185,
12,
2211,
1769,
202,
202,
2463,
5805,
863,
18,
2372,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
924,
1435,
288,
202,
202,
15279,
8135,
18,
11990,
8185,
12,
2211,
1769,
202,
202,
2463,
5805,
863,
18,
2372,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
logger.info("Lookup got " + this.acquiredNodes + " nodes");
|
public P2PNodeAck giveNode(Node givenNode, P2PNodeManager remoteNodeManager) { if (logger.isDebugEnabled()) { logger.debug("Given node received from " + givenNode.getNodeInformation().getURL()); } // Get currrent nodes accessor if (!this.allArrived()) { this.waitingNodesList.add(givenNode); String nodeUrl = givenNode.getNodeInformation().getURL(); this.nodeManagerMap.put(nodeUrl, remoteNodeManager); this.acquiredNodes++; logger.info("Lookup got " + this.acquiredNodes + " nodes"); ProActiveRuntime remoteRt = givenNode.getProActiveRuntime(); try { remoteRt.addAcquaintance(this.parUrl); this.paRuntime.addAcquaintance(remoteRt.getURL()); this.paRuntime.register(remoteRt, remoteRt.getURL(), "p2p", System.getProperty(PROPERTY_ACQUISITION) + ":", remoteRt.getVMInformation().getName()); } catch (ProActiveException e) { logger.warn("Couldn't recgister the remote runtime", e); } logger.debug("Node at " + nodeUrl + " succefuly added"); return new P2PNodeAck(true); } else { return new P2PNodeAck(false); } }
|
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/0aad9a60aca347dacfc0f0039dbbb1671d89cbc5/P2PNodeLookup.java/buggy/src/org/objectweb/proactive/p2p/service/node/P2PNodeLookup.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
22,
52,
907,
11931,
8492,
907,
12,
907,
864,
907,
16,
453,
22,
52,
907,
1318,
2632,
907,
1318,
13,
288,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
6083,
756,
5079,
628,
315,
397,
7734,
864,
907,
18,
588,
907,
5369,
7675,
588,
1785,
10663,
3639,
289,
3639,
368,
968,
4306,
547,
2199,
9789,
3639,
309,
16051,
2211,
18,
454,
5715,
2950,
10756,
288,
5411,
333,
18,
20241,
3205,
682,
18,
1289,
12,
10822,
907,
1769,
5411,
514,
756,
1489,
273,
864,
907,
18,
588,
907,
5369,
7675,
588,
1785,
5621,
5411,
333,
18,
2159,
1318,
863,
18,
458,
12,
2159,
1489,
16,
2632,
907,
1318,
1769,
5411,
333,
18,
1077,
1402,
3205,
9904,
31,
15604,
1186,
3896,
5576,
2632,
54,
88,
273,
864,
907,
18,
588,
626,
3896,
5576,
5621,
5411,
775,
288,
7734,
2632,
54,
88,
18,
1289,
9988,
372,
1598,
1359,
12,
2211,
18,
1065,
1489,
1769,
7734,
333,
18,
8774,
5576,
18,
1289,
9988,
372,
1598,
1359,
12,
7222,
54,
88,
18,
588,
1785,
10663,
7734,
333,
18,
8774,
5576,
18,
4861,
12,
7222,
54,
88,
16,
2632,
54,
88,
18,
588,
1785,
9334,
315,
84,
22,
84,
3113,
10792,
2332,
18,
588,
1396,
12,
9900,
67,
2226,
3500,
5127,
7022,
13,
397,
6153,
16,
10792,
2632,
54,
88,
18,
588,
7397,
5369,
7675,
17994,
10663,
5411,
289,
1044,
261,
626,
3896,
503,
425,
13,
288,
7734,
1194,
18,
8935,
2932,
16342,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
453,
22,
52,
907,
11931,
8492,
907,
12,
907,
864,
907,
16,
453,
22,
52,
907,
1318,
2632,
907,
1318,
13,
288,
3639,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
5411,
1194,
18,
4148,
2932,
6083,
756,
5079,
628,
315,
397,
7734,
864,
907,
18,
588,
907,
5369,
7675,
588,
1785,
10663,
3639,
289,
3639,
368,
968,
4306,
547,
2199,
9789,
3639,
309,
16051,
2211,
18,
454,
5715,
2950,
10756,
288,
5411,
333,
18,
20241,
3205,
682,
18,
1289,
12,
10822,
907,
1769,
5411,
514,
756,
1489,
273,
864,
907,
18,
588,
907,
5369,
7675,
588,
1785,
5621,
5411,
333,
18,
2159,
1318,
863,
18,
458,
12,
2159,
1489,
16,
2632,
907,
1318,
1769,
5411,
2
] |
|
plugin.setGoals( new ArrayList( goalMap.values() ) ); Xpp3Dom pluginConfiguration = (Xpp3Dom) plugin.getConfiguration(); Xpp3Dom defaultPluginConfiguration = (Xpp3Dom) def.getConfiguration(); plugin.setConfiguration( Xpp3Dom.mergeXpp3Dom( pluginConfiguration, defaultPluginConfiguration ) );
|
private void mergePluginWithDefaults( Plugin plugin, Plugin def ) { if ( plugin.getVersion() == null && def.getVersion() != null ) { plugin.setVersion( def.getVersion() ); } Map goalMap = new TreeMap(); List pluginGoals = plugin.getGoals(); if ( pluginGoals != null ) { for ( Iterator it = pluginGoals.iterator(); it.hasNext(); ) { Goal goal = (Goal) it.next(); goalMap.put( goal.getId(), goal ); } } List defGoals = def.getGoals(); if ( defGoals != null ) { for ( Iterator it = defGoals.iterator(); it.hasNext(); ) { Goal defaultGoal = (Goal) it.next(); Goal localGoal = (Goal) goalMap.get( defaultGoal.getId() ); if ( localGoal == null ) { goalMap.put( defaultGoal.getId(), defaultGoal ); } else { Xpp3Dom goalConfiguration = (Xpp3Dom) localGoal.getConfiguration(); Xpp3Dom defaultGoalConfiguration = (Xpp3Dom) defaultGoal.getConfiguration(); localGoal.setConfiguration( Xpp3Dom.mergeXpp3Dom( goalConfiguration, defaultGoalConfiguration ) ); } } } plugin.setGoals( new ArrayList( goalMap.values() ) ); Xpp3Dom pluginConfiguration = (Xpp3Dom) plugin.getConfiguration(); Xpp3Dom defaultPluginConfiguration = (Xpp3Dom) def.getConfiguration(); plugin.setConfiguration( Xpp3Dom.mergeXpp3Dom( pluginConfiguration, defaultPluginConfiguration ) ); }
|
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/7d7c4ed4aacf5a96e4ebed45faa6773f594cf819/DefaultModelDefaultsInjector.java/buggy/maven-project/src/main/java/org/apache/maven/project/injection/DefaultModelDefaultsInjector.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2691,
3773,
1190,
7019,
12,
6258,
1909,
16,
6258,
1652,
262,
565,
288,
3639,
309,
261,
1909,
18,
588,
1444,
1435,
422,
446,
597,
1652,
18,
588,
1444,
1435,
480,
446,
262,
3639,
288,
5411,
1909,
18,
542,
1444,
12,
1652,
18,
588,
1444,
1435,
11272,
3639,
289,
3639,
1635,
17683,
863,
273,
394,
16381,
5621,
3639,
987,
1909,
5741,
1031,
273,
1909,
18,
588,
5741,
1031,
5621,
3639,
309,
261,
1909,
5741,
1031,
480,
446,
262,
3639,
288,
5411,
364,
261,
4498,
518,
273,
1909,
5741,
1031,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
4220,
287,
17683,
273,
261,
27716,
13,
518,
18,
4285,
5621,
7734,
17683,
863,
18,
458,
12,
17683,
18,
26321,
9334,
17683,
11272,
5411,
289,
3639,
289,
3639,
987,
1652,
5741,
1031,
273,
1652,
18,
588,
5741,
1031,
5621,
3639,
309,
261,
1652,
5741,
1031,
480,
446,
262,
3639,
288,
5411,
364,
261,
4498,
518,
273,
1652,
5741,
1031,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
4220,
287,
805,
27716,
273,
261,
27716,
13,
518,
18,
4285,
5621,
7734,
4220,
287,
1191,
27716,
273,
261,
27716,
13,
17683,
863,
18,
588,
12,
805,
27716,
18,
26321,
1435,
11272,
7734,
309,
261,
1191,
27716,
422,
446,
262,
7734,
288,
10792,
17683,
863,
18,
458,
12,
805,
27716,
18,
26321,
9334,
805,
27716,
11272,
7734,
289,
7734,
469,
7734,
288,
10792,
1139,
11858,
23,
8832,
17683,
1750,
273,
261,
60,
11858,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2691,
3773,
1190,
7019,
12,
6258,
1909,
16,
6258,
1652,
262,
565,
288,
3639,
309,
261,
1909,
18,
588,
1444,
1435,
422,
446,
597,
1652,
18,
588,
1444,
1435,
480,
446,
262,
3639,
288,
5411,
1909,
18,
542,
1444,
12,
1652,
18,
588,
1444,
1435,
11272,
3639,
289,
3639,
1635,
17683,
863,
273,
394,
16381,
5621,
3639,
987,
1909,
5741,
1031,
273,
1909,
18,
588,
5741,
1031,
5621,
3639,
309,
261,
1909,
5741,
1031,
480,
446,
262,
3639,
288,
5411,
364,
261,
4498,
518,
273,
1909,
5741,
1031,
18,
9838,
5621,
518,
18,
5332,
2134,
5621,
262,
5411,
288,
7734,
4220,
287,
17683,
273,
261,
27716,
13,
518,
18,
4285,
5621,
7734,
17683,
863,
18,
458,
2
] |
|
public org.quickfix.field.SecurityType getSecurityType() throws FieldNotFound { org.quickfix.field.SecurityType value = new org.quickfix.field.SecurityType();
|
public quickfix.field.SecurityType getSecurityType() throws FieldNotFound { quickfix.field.SecurityType value = new quickfix.field.SecurityType();
|
public org.quickfix.field.SecurityType getSecurityType() throws FieldNotFound { org.quickfix.field.SecurityType value = new org.quickfix.field.SecurityType(); getField(value); return value; }
|
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix44/OrderCancelReplaceRequest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
559,
19288,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
559,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
559,
19288,
559,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
559,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
4368,
559,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
{ if (expression == null) { return true;
|
{ if (expression == null) { return true;
|
private boolean isMoveable(PsiExpression expression) { if (expression == null) { return true; } if (PsiUtil.isConstantExpression(expression)) { return true; } if (expression instanceof PsiNewExpression) { final PsiNewExpression newExpression = (PsiNewExpression)expression; if (newExpression.getArrayDimensions().length > 0) { return true; } final PsiArrayInitializerExpression arrayInitializer = newExpression.getArrayInitializer(); boolean result = true; if (arrayInitializer != null) { final PsiExpression[] initializers = arrayInitializer.getInitializers(); for (final PsiExpression initializerExpression : initializers) { result &= isMoveable(initializerExpression); } } else if (!m_allowConstructorAsInitializer) { return false; } final PsiExpressionList argumentList = newExpression.getArgumentList(); if (argumentList == null) { return result; } final PsiExpression[] expressions = argumentList.getExpressions(); for (final PsiExpression argumentExpression : expressions) { result &= isMoveable(argumentExpression); } return result; } return false; }
|
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8063d30292128e0eeadcb10979ad838b691d95a2/TooBroadScopeInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/dataflow/TooBroadScopeInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
1250,
353,
7607,
429,
12,
52,
7722,
2300,
2652,
13,
202,
202,
95,
1082,
202,
430,
261,
8692,
422,
446,
13,
1082,
202,
95,
9506,
202,
2463,
638,
31,
5411,
289,
1082,
202,
430,
261,
52,
7722,
1304,
18,
291,
6902,
2300,
12,
8692,
3719,
1082,
202,
95,
9506,
202,
2463,
638,
31,
5411,
289,
5411,
309,
261,
8692,
1276,
453,
7722,
1908,
2300,
13,
1082,
202,
95,
9506,
202,
6385,
453,
7722,
1908,
2300,
394,
2300,
273,
13491,
261,
52,
7722,
1908,
2300,
13,
8692,
31,
9506,
202,
430,
261,
2704,
2300,
18,
588,
1076,
10796,
7675,
2469,
405,
374,
13,
9506,
202,
95,
6862,
202,
2463,
638,
31,
9506,
202,
97,
9506,
202,
6385,
453,
7722,
1076,
14729,
2300,
526,
14729,
273,
25083,
202,
2704,
2300,
18,
588,
1076,
14729,
5621,
9506,
202,
6494,
563,
273,
638,
31,
9506,
202,
430,
261,
1126,
14729,
480,
446,
13,
9506,
202,
95,
6862,
202,
6385,
453,
7722,
2300,
8526,
2172,
8426,
273,
18701,
526,
14729,
18,
588,
4435,
8426,
5621,
6862,
202,
1884,
261,
6385,
453,
7722,
2300,
12562,
2300,
294,
18701,
2172,
8426,
13,
6862,
202,
95,
25083,
202,
2088,
12058,
353,
7607,
429,
12,
22181,
2300,
1769,
6862,
202,
97,
9506,
202,
97,
9506,
202,
12107,
309,
16051,
81,
67,
5965,
6293,
1463,
14729,
13,
9506,
202,
95,
6862,
202,
2463,
629,
31,
9506,
202,
97,
9506,
202,
6385,
453,
7722,
2300,
682,
1237,
682,
273,
13491,
394,
2300,
18,
588,
1379,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
1250,
353,
7607,
429,
12,
52,
7722,
2300,
2652,
13,
202,
202,
95,
1082,
202,
430,
261,
8692,
422,
446,
13,
1082,
202,
95,
9506,
202,
2463,
638,
31,
5411,
289,
1082,
202,
430,
261,
52,
7722,
1304,
18,
291,
6902,
2300,
12,
8692,
3719,
1082,
202,
95,
9506,
202,
2463,
638,
31,
5411,
289,
5411,
309,
261,
8692,
1276,
453,
7722,
1908,
2300,
13,
1082,
202,
95,
9506,
202,
6385,
453,
7722,
1908,
2300,
394,
2300,
273,
13491,
261,
52,
7722,
1908,
2300,
13,
8692,
31,
9506,
202,
430,
261,
2704,
2300,
18,
588,
1076,
10796,
7675,
2469,
405,
374,
13,
9506,
202,
95,
6862,
202,
2463,
638,
31,
9506,
202,
97,
9506,
202,
6385,
2
] |
throw new KettleValueException("Couldn't find field ["+fn.getFieldName()+"] to remove from result.");
|
r.removeValue(rowSize+i);
|
private void calcFields(Row r) throws KettleValueException { if (meta.getCalculation()!=null) for (int i=0;i<meta.getCalculation().length;i++) { CalculatorMetaFunction fn = meta.getCalculation()[i]; if (fn.getFieldName()!=null && fn.getFieldName().length()>0) { debug="Processing function ["+fn.getCalcTypeLongDesc()+"] for field ["+fn.getFieldName()+"]"; Value value = null; Value fieldA = null; Value fieldB = null; Value fieldC = null; if (fn.getCalcType()!=CalculatorMetaFunction.CALC_CONSTANT) { if (fn.getFieldA()!=null && fn.getFieldA().length()>0) { Integer idxA = (Integer)data.indexCache.get(fn.getFieldA()); if (idxA==null) idxA = new Integer( r.searchValueIndex(fn.getFieldA()) ); if (idxA.intValue()<0) throw new KettleValueException("Field ["+fn.getFieldA()+"] can't be found in the input row!"); data.indexCache.put(fn.getFieldA(), idxA); fieldA = r.getValue(idxA.intValue()); } if (fn.getFieldB()!=null && fn.getFieldB().length()>0) { Integer idxB = (Integer)data.indexCache.get(fn.getFieldB()); if (idxB==null) idxB = new Integer( r.searchValueIndex(fn.getFieldB()) ); if (idxB.intValue()<0) throw new KettleValueException("Field ["+fn.getFieldB()+"] can't be found in the input row!"); data.indexCache.put(fn.getFieldB(), idxB); fieldB = r.getValue(idxB.intValue()); } if (fn.getFieldC()!=null && fn.getFieldC().length()>0) { Integer idxC = (Integer)data.indexCache.get(fn.getFieldC()); if (idxC==null) idxC = new Integer( r.searchValueIndex(fn.getFieldC()) ); if (idxC.intValue()<0) throw new KettleValueException("Field ["+fn.getFieldC()+"] can't be found in the input row!"); data.indexCache.put(fn.getFieldC(), idxC); fieldC = r.getValue(idxC.intValue()); } } switch(fn.getCalcType()) { case CalculatorMetaFunction.CALC_NONE: break; case CalculatorMetaFunction.CALC_ADD : // A + B { value = new Value(fn.getFieldName(), fieldA); value.plus(fieldB); } break; case CalculatorMetaFunction.CALC_SUBTRACT : // A - B { value = new Value(fn.getFieldName(), fieldA); value.minus(fieldB); } break; case CalculatorMetaFunction.CALC_MULTIPLY : // A * B { value = new Value(fn.getFieldName(), fieldA); value.multiply(fieldB); } break; case CalculatorMetaFunction.CALC_DIVIDE : // A / B { value = new Value(fn.getFieldName(), fieldA); value.divide(fieldB); } break; case CalculatorMetaFunction.CALC_SQUARE : // A * A { value = new Value(fn.getFieldName(), fieldA); value.multiply(fieldA); } break; case CalculatorMetaFunction.CALC_SQUARE_ROOT : // SQRT( A ) { value = new Value(fn.getFieldName(), fieldA); value.sqrt(); } break; case CalculatorMetaFunction.CALC_PERCENT_1 : // 100 * A / B { value = new Value(fn.getFieldName(), fieldA); value.multiply(100); value.divide(fieldB); } break; case CalculatorMetaFunction.CALC_PERCENT_2 : // A - ( A * B / 100 ) { value = new Value(fn.getFieldName(), fieldA); Value value2 = new Value(fn.getFieldName(), fieldA); value2.multiply(fieldB); value2.divide(100); value.minus(value2); } break; case CalculatorMetaFunction.CALC_PERCENT_3 : // A + ( A * B / 100 ) { value = new Value(fn.getFieldName(), fieldA); Value value2 = new Value(fn.getFieldName(), fieldA); value2.multiply(fieldB); value2.divide(100); value.plus(value2); } break; case CalculatorMetaFunction.CALC_COMBINATION_1 : // A + B * C { value = new Value(fn.getFieldName(), fieldA); Value value2 = new Value(fn.getFieldName(), fieldB); value2.multiply(fieldC); value.plus(value2); } break; case CalculatorMetaFunction.CALC_COMBINATION_2 : // SQRT( A*A + B*B ) { value = new Value(fn.getFieldName(), fieldA); // A*A value.multiply(fieldA); Value value2 = new Value(fn.getFieldName(), fieldB); // B*B value2.multiply(fieldB); value.plus(value2); value.sqrt(); } break; case CalculatorMetaFunction.CALC_ROUND_1 : // ROUND( A ) { value = new Value(fn.getFieldName(), fieldA); value.round(); } break; case CalculatorMetaFunction.CALC_ROUND_2 : // ROUND( A , B ) { value = new Value(fn.getFieldName(), fieldA); value.round((int)fieldB.getInteger()); } break; case CalculatorMetaFunction.CALC_CONSTANT : // Set field to constant value... { value = new Value(fn.getFieldName(), fn.getFieldA()); value.convertString(fn.getValueType()); } break; case CalculatorMetaFunction.CALC_NVL : // Replace null values with another value { value = new Value(fn.getFieldName(), fieldA); value.nvl(fieldB); } break; case CalculatorMetaFunction.CALC_ADD_DAYS : // Add B days to date field A { value = new Value(fn.getFieldName(), fieldA); value.add_days(fieldB.getInteger()); } break; case CalculatorMetaFunction.CALC_YEAR_OF_DATE : // What is the year (Integer) of a date? { value = new Value(fn.getFieldName(), fieldA); Calendar calendar = Calendar.getInstance(); Date date = fieldA.getDate(); if (date!=null) { calendar.setTime(date); value.setValue(calendar.get(Calendar.YEAR)); } else { throw new KettleValueException("Unable to get date from field ["+fieldA+"]"); } } break; case CalculatorMetaFunction.CALC_MONTH_OF_DATE : // What is the month (Integer) of a date? { value = new Value(fn.getFieldName(), fieldA); Calendar calendar = Calendar.getInstance(); Date date = fieldA.getDate(); if (date!=null) { calendar.setTime(date); value.setValue(calendar.get(Calendar.MONTH)+1); } else { throw new KettleValueException("Unable to get date from field ["+fieldA+"]"); } } break; case CalculatorMetaFunction.CALC_DAY_OF_YEAR : // What is the day of year (Integer) of a date? { value = new Value(fn.getFieldName(), fieldA); Calendar calendar = Calendar.getInstance(); Date date = fieldA.getDate(); if (date!=null) { calendar.setTime(date); value.setValue(calendar.get(Calendar.DAY_OF_YEAR)); } else { throw new KettleValueException("Unable to get date from field ["+fieldA+"]"); } } break; case CalculatorMetaFunction.CALC_DAY_OF_MONTH : // What is the day of month (Integer) of a date? { value = new Value(fn.getFieldName(), fieldA); Calendar calendar = Calendar.getInstance(); Date date = fieldA.getDate(); if (date!=null) { calendar.setTime(date); value.setValue(calendar.get(Calendar.DAY_OF_MONTH)); } else { throw new KettleValueException("Unable to get date from field ["+fieldA+"]"); } } break; case CalculatorMetaFunction.CALC_DAY_OF_WEEK : // What is the day of week (Integer) of a date? { value = new Value(fn.getFieldName(), fieldA); Calendar calendar = Calendar.getInstance(); Date date = fieldA.getDate(); if (date!=null) { calendar.setTime(date); value.setValue(calendar.get(Calendar.DAY_OF_WEEK)); } else { throw new KettleValueException("Unable to get date from field ["+fieldA+"]"); } } break; case CalculatorMetaFunction.CALC_WEEK_OF_YEAR : // What is the week of year (Integer) of a date? { value = new Value(fn.getFieldName(), fieldA); Calendar calendar = Calendar.getInstance(); Date date = fieldA.getDate(); if (date!=null) { calendar.setTime(date); value.setValue(calendar.get(Calendar.WEEK_OF_YEAR)); } else { throw new KettleValueException("Unable to get date from field ["+fieldA+"]"); } } break; default: throw new KettleValueException("Unknown calculation type #"+fn.getCalcType()); } if (value!=null) { if (fn.getValueType()!=Value.VALUE_TYPE_NONE) { value.setType(fn.getValueType()); value.setLength(fn.getValueLength(), fn.getValuePrecision()); } r.addValue(value); // add to the row! } } } debug="remove specified fields from result"; // OK, see which fields we need to remove from the result? for (int i=meta.getCalculation().length-1;i>=0;i--) { CalculatorMetaFunction fn = meta.getCalculation()[i]; if (fn.isRemovedFromResult()) { // get the index of the value... Integer idx = (Integer) data.indexCache.get(fn.getFieldName()); if (idx!=null) { r.removeValue(idx.intValue()); } else { throw new KettleValueException("Couldn't find field ["+fn.getFieldName()+"] to remove from result."); } } } }
|
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/406c6044a9c754e1aeca5dd8c002924413de3b2f/Calculator.java/buggy/kettle/src/be/ibridge/kettle/trans/step/calculator/Calculator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7029,
2314,
12,
1999,
436,
13,
1216,
1475,
278,
5929,
9738,
565,
288,
3639,
309,
261,
3901,
18,
588,
13989,
1435,
5,
33,
2011,
13,
3639,
364,
261,
474,
277,
33,
20,
31,
77,
32,
3901,
18,
588,
13989,
7675,
2469,
31,
77,
27245,
3639,
288,
5411,
15994,
639,
2781,
2083,
2295,
273,
2191,
18,
588,
13989,
1435,
63,
77,
15533,
5411,
309,
261,
4293,
18,
588,
7287,
1435,
5,
33,
2011,
597,
2295,
18,
588,
7287,
7675,
2469,
1435,
34,
20,
13,
5411,
288,
7734,
1198,
1546,
7798,
445,
8247,
15,
4293,
18,
588,
25779,
559,
3708,
4217,
1435,
9078,
65,
364,
652,
8247,
15,
4293,
18,
588,
7287,
1435,
9078,
4279,
31,
7734,
1445,
460,
225,
273,
446,
31,
27573,
1445,
652,
37,
273,
446,
31,
7734,
1445,
652,
38,
273,
446,
31,
7734,
1445,
652,
39,
273,
446,
31,
7734,
309,
261,
4293,
18,
588,
25779,
559,
1435,
5,
33,
19278,
2781,
2083,
18,
7913,
39,
67,
25878,
13,
7734,
288,
10792,
309,
261,
4293,
18,
588,
974,
37,
1435,
5,
33,
2011,
597,
2295,
18,
588,
974,
37,
7675,
2469,
1435,
34,
20,
13,
10792,
288,
13491,
2144,
2067,
37,
273,
261,
4522,
13,
892,
18,
1615,
1649,
18,
588,
12,
4293,
18,
588,
974,
37,
10663,
13491,
309,
261,
3465,
37,
631,
2011,
13,
2067,
37,
273,
394,
2144,
12,
436,
18,
3072,
620,
1016,
12,
4293,
18,
588,
974,
37,
10756,
11272,
13491,
309,
261,
3465,
37,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
7029,
2314,
12,
1999,
436,
13,
1216,
1475,
278,
5929,
9738,
565,
288,
3639,
309,
261,
3901,
18,
588,
13989,
1435,
5,
33,
2011,
13,
3639,
364,
261,
474,
277,
33,
20,
31,
77,
32,
3901,
18,
588,
13989,
7675,
2469,
31,
77,
27245,
3639,
288,
5411,
15994,
639,
2781,
2083,
2295,
273,
2191,
18,
588,
13989,
1435,
63,
77,
15533,
5411,
309,
261,
4293,
18,
588,
7287,
1435,
5,
33,
2011,
597,
2295,
18,
588,
7287,
7675,
2469,
1435,
34,
20,
13,
5411,
288,
7734,
1198,
1546,
7798,
445,
8247,
15,
4293,
18,
588,
25779,
559,
3708,
4217,
1435,
9078,
65,
364,
652,
8247,
15,
4293,
18,
588,
7287,
1435,
9078,
4279,
31,
7734,
1445,
2
] |
if( command.indexOf( "$(" ) > 0 ) return command.replaceAll( "\\$\\([value|Value|VALUE]\\)", values.trim() ).trim(); else return (new String(command + values)).trim();
|
if( command.indexOf( "${" ) >= 0 ) { return command.replaceAll( "\\$\\{[vV][aA][lL][uU][eE]\\}", values.trim() ).trim(); } else { return (new String(command + values)).trim(); }
|
private String evaluateCommand( String command, String values ) { if( command == null ) return values.trim(); if( command.indexOf( "$(" ) > 0 ) return command.replaceAll( "\\$\\([value|Value|VALUE]\\)", values.trim() ).trim(); //$NON-NLS-1$ //$NON-NLS-2$ else return (new String(command + values)).trim(); }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/bd35367d7c48875b57b6390902e7b72247dcf098/BuildToolSettingsPage.java/buggy/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolSettingsPage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
5956,
2189,
12,
514,
1296,
16,
514,
924,
262,
288,
202,
565,
309,
12,
1296,
422,
446,
262,
327,
924,
18,
5290,
5621,
202,
565,
309,
12,
1296,
18,
31806,
12,
4662,
2932,
262,
405,
374,
262,
327,
1296,
18,
2079,
1595,
12,
8422,
8,
1695,
3816,
1132,
96,
620,
96,
4051,
65,
1695,
2225,
16,
924,
18,
5290,
1435,
262,
18,
5290,
5621,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
565,
469,
327,
261,
2704,
514,
12,
3076,
397,
924,
13,
2934,
5290,
5621,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
5956,
2189,
12,
514,
1296,
16,
514,
924,
262,
288,
202,
565,
309,
12,
1296,
422,
446,
262,
327,
924,
18,
5290,
5621,
202,
565,
309,
12,
1296,
18,
31806,
12,
4662,
2932,
262,
405,
374,
262,
327,
1296,
18,
2079,
1595,
12,
8422,
8,
1695,
3816,
1132,
96,
620,
96,
4051,
65,
1695,
2225,
16,
924,
18,
5290,
1435,
262,
18,
5290,
5621,
4329,
3993,
17,
5106,
17,
21,
8,
4329,
3993,
17,
5106,
17,
22,
8,
202,
565,
469,
327,
261,
2704,
514,
12,
3076,
397,
924,
13,
2934,
5290,
5621,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
super.textNode = null;
|
AttrImpl.textNode = null;
|
public void setValues (CoreDocumentImpl ownerDocument, String namespaceURI, String qualifiedName, String localName){ super.textNode = null; super.flags = 0; isSpecified(true); hasStringValue(true); super.setOwnerDocument(ownerDocument); this.localName = localName; this.namespaceURI = namespaceURI; super.name = qualifiedName; super.value = null; }
|
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/617ad3886f7378dfa652e6b66017cfa73dd6fda6/AttrNSImpl.java/buggy/src/org/apache/xerces/dom/AttrNSImpl.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
27466,
261,
4670,
2519,
2828,
19701,
16,
12900,
514,
19421,
16,
12900,
514,
24133,
16,
7682,
514,
11927,
15329,
3639,
11289,
2828,
18,
955,
907,
273,
446,
31,
3639,
2240,
18,
7133,
273,
374,
31,
3639,
353,
17068,
12,
3767,
1769,
3639,
711,
19733,
12,
3767,
1769,
3639,
2240,
18,
542,
5541,
2519,
12,
8443,
2519,
1769,
3639,
333,
18,
3729,
461,
273,
11927,
31,
3639,
333,
18,
4937,
3098,
273,
19421,
31,
3639,
2240,
18,
529,
273,
24133,
31,
3639,
2240,
18,
1132,
273,
446,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
27466,
261,
4670,
2519,
2828,
19701,
16,
12900,
514,
19421,
16,
12900,
514,
24133,
16,
7682,
514,
11927,
15329,
3639,
11289,
2828,
18,
955,
907,
273,
446,
31,
3639,
2240,
18,
7133,
273,
374,
31,
3639,
353,
17068,
12,
3767,
1769,
3639,
711,
19733,
12,
3767,
1769,
3639,
2240,
18,
542,
5541,
2519,
12,
8443,
2519,
1769,
3639,
333,
18,
3729,
461,
273,
11927,
31,
3639,
333,
18,
4937,
3098,
273,
19421,
31,
3639,
2240,
18,
529,
273,
24133,
31,
3639,
2240,
18,
1132,
273,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
private final void renderMarkerRanges( OneAxis[] oaxa, Bounds boPlotClientArea ) throws ChartException { Axis ax; EList el; int iRangeCount, iAxisCount = oaxa.length; MarkerRange mr; RectangleRenderEvent rre; DataElement deStart, deEnd; AutoScale asc; double dMin = 0, dMax = 0; int iOrientation, iCompare = IConstants.EQUAL; final Bounds bo = BoundsImpl.create( 0, 0, 0, 0 ); final IDeviceRenderer idr = getDevice( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); final boolean bTransposed = ( (ChartWithAxes) getModel( ) ).isTransposed( ); final PlotWith2DAxes pw2da = (PlotWith2DAxes) getComputations( ); final StringBuffer sb = new StringBuffer( ); Bounds boText = BoundsImpl.create( 0, 0, 0, 0 ); Anchor anc = null; Label la = null; TextRenderEvent tre; Orientation or; double dOriginalAngle = 0; for ( int i = 0; i < iAxisCount; i++ ) { ax = oaxa[i].getModelAxis( ); iOrientation = ax.getOrientation( ).getValue( ); if ( bTransposed ) // TOGGLE ORIENTATION { iOrientation = ( iOrientation == Orientation.HORIZONTAL ) ? Orientation.VERTICAL : Orientation.HORIZONTAL; } asc = oaxa[i].getScale( ); el = ax.getMarkerRanges( ); iRangeCount = el.size( ); for ( int j = 0; j < iRangeCount; j++ ) { mr = (MarkerRange) el.get( j ); ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_MARKER_RANGE, ax, mr ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_MARKER_RANGE, mr ); deStart = (DataElement) mr.getStartValue( ); deEnd = (DataElement) mr.getEndValue( ); try { iCompare = compare( deStart, deEnd ); } catch ( ChartException dfex ) { throw new ChartException( ChartException.RENDERING, dfex ); } // IF OUT OF ORDER, SWAP if ( iCompare == IConstants.MORE ) { final DataElement deTemp = deStart; deStart = deEnd; deEnd = deTemp; } // COMPUTE THE START BOUND try { dMin = ( deStart == null ) ? ( ( iOrientation == Orientation.HORIZONTAL ) ? boPlotClientArea.getLeft( ) : boPlotClientArea.getTop( ) + boPlotClientArea.getHeight( ) ) : PlotWith2DAxes.getLocation( asc, deStart ); } catch ( Exception ex ) { DefaultLoggerImpl.instance( ) .log( ILogger.WARNING, Messages.getString( "exception.cannot.locate.start.marker.range", //$NON-NLS-1$ new Object[]{ deStart, mr }, getRunTimeContext( ).getLocale( ) ) ); // i18n_CONCATENATIONS_REMOVED continue; // TRY NEXT MARKER RANGE } // COMPUTE THE END BOUND try { dMax = ( deEnd == null ) ? ( ( iOrientation == Orientation.HORIZONTAL ) ? boPlotClientArea.getLeft( ) + boPlotClientArea.getWidth( ) : boPlotClientArea.getTop( ) ) : PlotWith2DAxes.getLocation( asc, deEnd ); } catch ( Exception ex ) { DefaultLoggerImpl.instance( ) .log( ILogger.WARNING, Messages.getString( "exception.cannot.locate.end.marker.range", //$NON-NLS-1$ new Object[]{ deEnd, mr }, getRunTimeContext( ).getLocale( ) ) ); // i18n_CONCATENATIONS_REMOVED continue; // TRY NEXT MARKER RANGE } rre = (RectangleRenderEvent) ( (EventObjectCache) idr ).getEventObject( mr, RectangleRenderEvent.class ); if ( iOrientation == Orientation.HORIZONTAL ) { // RESTRICT RIGHT EDGE if ( dMax > boPlotClientArea.getLeft( ) + boPlotClientArea.getWidth( ) ) { dMax = boPlotClientArea.getLeft( ) + boPlotClientArea.getWidth( ); } // RESTRICT LEFT EDGE if ( dMin < boPlotClientArea.getLeft( ) ) { dMax = boPlotClientArea.getLeft( ); } bo.set( dMin, boPlotClientArea.getTop( ), dMax - dMin, boPlotClientArea.getHeight( ) ); } else { // RESTRICT TOP EDGE if ( dMax < boPlotClientArea.getTop( ) ) { dMax = boPlotClientArea.getTop( ); } // RESTRICT BOTTOM EDGE if ( dMin > boPlotClientArea.getTop( ) + boPlotClientArea.getHeight( ) ) { dMin = boPlotClientArea.getTop( ) + boPlotClientArea.getHeight( ); } bo.set( boPlotClientArea.getLeft( ), dMax, boPlotClientArea.getWidth( ), dMin - dMax ); } if ( pw2da.getDimension( ) == IConstants.TWO_5_D ) { if ( iOrientation == Orientation.HORIZONTAL ) { bo.translate( pw2da.getSeriesThickness( ), 0 ); } else { bo.translate( 0, -pw2da.getSeriesThickness( ) ); } } // DRAW THE MARKER RANGE (RECTANGULAR AREA) rre.setBounds( bo ); rre.setOutline( mr.getOutline( ) ); rre.setBackground( mr.getFill( ) ); idr.fillRectangle( rre ); idr.drawRectangle( rre ); la = mr.getLabel( ); if ( la.isVisible( ) ) { try { sb.delete( 0, sb.length( ) ); sb.append( Messages.getString( "prefix.marker.range.caption", //$NON-NLS-1$ getRunTimeContext( ).getLocale( ) ) ); sb.append( ValueFormatter.format( deStart, mr.getFormatSpecifier( ), oaxa[i].getRunTimeContext( ).getLocale( ), null ) ); sb.append( Messages.getString( "separator.marker.range.caption", //$NON-NLS-1$ getRunTimeContext( ).getLocale( ) ) ); sb.append( ValueFormatter.format( deEnd, mr.getFormatSpecifier( ), oaxa[i].getRunTimeContext( ).getLocale( ), null ) ); sb.append( Messages.getString( "suffix.marker.range.caption", //$NON-NLS-1$ getRunTimeContext( ).getLocale( ) ) ); la.getCaption( ).setValue( sb.toString( ) ); } catch ( ChartException dfex ) { throw new ChartException( ChartException.RENDERING, dfex ); } // DETERMINE THE LABEL ANCHOR (TRANSPOSE IF NEEDED) anc = mr.getLabelAnchor( ); if ( bTransposed ) { or = ax.getOrientation( ) == Orientation.HORIZONTAL_LITERAL ? Orientation.VERTICAL_LITERAL : Orientation.HORIZONTAL_LITERAL; dOriginalAngle = la.getCaption( ) .getFont( ) .getRotation( ); try { la.getCaption( ) .getFont( ) .setRotation( pw2da.getTransposedAngle( dOriginalAngle ) ); anc = pw2da.transposedAnchor( or, anc ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartException.RENDERING, uiex ); } } BoundingBox bb = null; try { bb = Methods.computeBox( idr.getDisplayServer( ), IConstants.LEFT, la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartException.RENDERING, uiex ); } boText.set( 0, 0, bb.getWidth( ), bb.getHeight( ) ); // NOW THAT WE COMPUTED THE BOUNDS, RENDER THE ACTUAL TEXT tre = (TextRenderEvent) ( (EventObjectCache) idr ).getEventObject( mr, TextRenderEvent.class ); tre.setBlockBounds( bo ); tre.setBlockAlignment( anchorToAlignment( anc ) ); tre.setLabel( la ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); idr.drawText( tre ); if ( bTransposed ) // RESTORE ORIGINAL FONT ANGLE IF // TRANSPOSED { la.getCaption( ) .getFont( ) .setRotation( dOriginalAngle ); } } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_MARKER_RANGE, ax, mr ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_MARKER_RANGE, mr ); } } }
|
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bdb7b6c5463f7273d9f1038e97552808a8df1f58/AxesRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1743,
7078,
9932,
12,
6942,
6558,
8526,
320,
651,
69,
16,
1082,
202,
5694,
800,
11532,
1227,
5484,
262,
1216,
14804,
503,
202,
95,
202,
202,
6558,
1740,
31,
202,
202,
41,
682,
415,
31,
202,
202,
474,
277,
2655,
1380,
16,
277,
6558,
1380,
273,
320,
651,
69,
18,
2469,
31,
202,
202,
7078,
2655,
9752,
31,
202,
202,
19463,
3420,
1133,
436,
266,
31,
202,
202,
751,
1046,
443,
1685,
16,
443,
1638,
31,
202,
202,
4965,
5587,
6972,
31,
202,
202,
9056,
302,
2930,
273,
374,
16,
302,
2747,
273,
374,
31,
202,
202,
474,
277,
14097,
16,
277,
8583,
273,
467,
2918,
18,
12853,
31,
202,
202,
6385,
20382,
800,
273,
20382,
2828,
18,
2640,
12,
374,
16,
374,
16,
374,
16,
374,
11272,
202,
202,
6385,
467,
3654,
6747,
612,
86,
273,
19512,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1503,
12,
11272,
202,
202,
6385,
1250,
324,
1429,
7423,
273,
261,
261,
7984,
1190,
26494,
13,
7454,
12,
262,
262,
18,
291,
1429,
7423,
12,
11272,
202,
202,
6385,
15211,
1190,
22,
9793,
92,
281,
8772,
22,
2414,
273,
261,
11532,
1190,
22,
9793,
92,
281,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
6674,
2393,
273,
394,
6674,
12,
11272,
202,
202,
5694,
800,
1528,
273,
20382,
2828,
18,
2640,
12,
374,
16,
374,
16,
374,
16,
374,
11272,
202,
202,
11605,
392,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1743,
7078,
9932,
12,
6942,
6558,
8526,
320,
651,
69,
16,
1082,
202,
5694,
800,
11532,
1227,
5484,
262,
1216,
14804,
503,
202,
95,
202,
202,
6558,
1740,
31,
202,
202,
41,
682,
415,
31,
202,
202,
474,
277,
2655,
1380,
16,
277,
6558,
1380,
273,
320,
651,
69,
18,
2469,
31,
202,
202,
7078,
2655,
9752,
31,
202,
202,
19463,
3420,
1133,
436,
266,
31,
202,
202,
751,
1046,
443,
1685,
16,
443,
1638,
31,
202,
202,
4965,
5587,
6972,
31,
202,
202,
9056,
302,
2930,
273,
374,
16,
302,
2747,
273,
374,
31,
202,
202,
474,
277,
14097,
16,
277,
8583,
273,
467,
2918,
18,
12853,
31,
202,
202,
6385,
20382,
800,
2
] |
||
Element clipDef = domFactory.createElement(SVG_CLIP_PATH_TAG); clipDef.setAttributeNS(SVG_NAMESPACE_URI, SVG_CLIP_PATH_UNITS_ATTRIBUTE, SVG_USER_SPACE_ON_USE_VALUE); clipDef.setAttributeNS(SVG_NAMESPACE_URI, ATTR_ID, SVGIDGenerator.generateID(ID_PREFIX_CLIP_PATH));
|
Element clipDef = domFactory.createElementNS(SVG_NAMESPACE_URI, SVG_CLIP_PATH_TAG); clipDef.setAttributeNS(null, SVG_CLIP_PATH_UNITS_ATTRIBUTE, SVG_USER_SPACE_ON_USE_VALUE); clipDef.setAttributeNS(null, ATTR_ID, SVGIDGenerator.generateID(ID_PREFIX_CLIP_PATH));
|
private Element clipToSVG(Shape clip){ Element clipDef = domFactory.createElement(SVG_CLIP_PATH_TAG); clipDef.setAttributeNS(SVG_NAMESPACE_URI, SVG_CLIP_PATH_UNITS_ATTRIBUTE, SVG_USER_SPACE_ON_USE_VALUE); clipDef.setAttributeNS(SVG_NAMESPACE_URI, ATTR_ID, SVGIDGenerator.generateID(ID_PREFIX_CLIP_PATH)); Element clipPath = shapeConverter.toSVG(clip); clipDef.appendChild(clipPath); return clipDef; }
|
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/1eba15bba785966c5a634ceb48d3d17caf1d9a47/SVGClip.java/buggy/sources/org/apache/batik/svggen/SVGClip.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3010,
6807,
774,
26531,
12,
8500,
6807,
15329,
3639,
3010,
6807,
3262,
273,
4092,
1733,
18,
2640,
1046,
12,
26531,
67,
7697,
52,
67,
4211,
67,
7927,
1769,
3639,
6807,
3262,
18,
542,
1499,
3156,
12,
26531,
67,
11368,
67,
3098,
16,
11281,
67,
7697,
52,
67,
4211,
67,
24325,
67,
11616,
16,
11281,
67,
4714,
67,
6616,
67,
673,
67,
8001,
67,
4051,
1769,
3639,
6807,
3262,
18,
542,
1499,
3156,
12,
26531,
67,
11368,
67,
3098,
16,
12759,
67,
734,
16,
11281,
734,
3908,
18,
7163,
734,
12,
734,
67,
6307,
67,
7697,
52,
67,
4211,
10019,
3639,
3010,
6807,
743,
273,
2179,
5072,
18,
869,
26531,
12,
14161,
1769,
3639,
6807,
3262,
18,
6923,
1763,
12,
14161,
743,
1769,
3639,
327,
6807,
3262,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3010,
6807,
774,
26531,
12,
8500,
6807,
15329,
3639,
3010,
6807,
3262,
273,
4092,
1733,
18,
2640,
1046,
12,
26531,
67,
7697,
52,
67,
4211,
67,
7927,
1769,
3639,
6807,
3262,
18,
542,
1499,
3156,
12,
26531,
67,
11368,
67,
3098,
16,
11281,
67,
7697,
52,
67,
4211,
67,
24325,
67,
11616,
16,
11281,
67,
4714,
67,
6616,
67,
673,
67,
8001,
67,
4051,
1769,
3639,
6807,
3262,
18,
542,
1499,
3156,
12,
26531,
67,
11368,
67,
3098,
16,
12759,
67,
734,
16,
11281,
734,
3908,
18,
7163,
734,
12,
734,
67,
6307,
67,
7697,
52,
67,
4211,
10019,
3639,
3010,
6807,
743,
273,
2179,
5072,
18,
869,
26531,
12,
14161,
1769,
3639,
6807,
3262,
18,
6923,
2
] |
if(o2 != null && o1 == null)
|
if((o2 != null) && (o1 == null))
|
public int ocompare(Object o1, Object o2) { // Nulls at the end of the list if(o1 == null && o2 == null) return 0; // null == null if(o1 != null && o2 == null) return 1; // anything > null if(o2 != null && o1 == null) return -1; long i1, i2; if(o1 instanceof NumberedItem) i1 = ((NumberedItem)o1).getNumber(); else if(o1 instanceof Long) i1 = ((Long)o1).longValue(); else throw new ClassCastException(o1.toString()); if(o2 instanceof NumberedItem) i2 = ((NumberedItem)o2).getNumber(); else if(o2 instanceof Long) i2 = ((Long)o2).longValue(); else throw new ClassCastException(o2.toString()); if(i1 == i2) return 0; if(!wrapAround) { if(i1 > i2) return 1; else return -1; } else { long firstDistance, secondDistance; if(i1 > i2) { firstDistance = i1 - i2; // smaller => i1 > i2 secondDistance = i2 + Long.MAX_VALUE - i1; // smaller => i2 > i1 } else { secondDistance = i2 - i1; // smaller => i2 > i1 firstDistance = i1 + Long.MAX_VALUE - i2; // smaller => i1 > i2 } if(Math.abs(firstDistance) < Math.abs(secondDistance)) { return 1; // i1>i2 } else //if(Math.abs(secondDistance) < Math.abs(firstDistance)) { return -1; // i2>i1 // REDFLAG: base must be odd, so we never get == } }
|
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/NumberedItemComparator.java/buggy/src/freenet/support/NumberedItemComparator.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
320,
9877,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
288,
3639,
368,
4112,
87,
622,
326,
679,
434,
326,
666,
3639,
309,
12,
83,
21,
422,
446,
597,
320,
22,
422,
446,
13,
5411,
327,
374,
31,
368,
446,
422,
446,
3639,
309,
12,
83,
21,
480,
446,
597,
320,
22,
422,
446,
13,
5411,
327,
404,
31,
368,
6967,
405,
446,
3639,
309,
12443,
83,
22,
480,
446,
13,
597,
261,
83,
21,
422,
446,
3719,
5411,
327,
300,
21,
31,
3639,
1525,
277,
21,
16,
277,
22,
31,
3639,
309,
12,
83,
21,
1276,
3588,
329,
1180,
13,
5411,
277,
21,
273,
14015,
1854,
329,
1180,
13,
83,
21,
2934,
588,
1854,
5621,
3639,
469,
309,
12,
83,
21,
1276,
3407,
13,
5411,
277,
21,
273,
14015,
3708,
13,
83,
21,
2934,
5748,
620,
5621,
3639,
469,
604,
394,
24034,
12,
83,
21,
18,
10492,
10663,
3639,
309,
12,
83,
22,
1276,
3588,
329,
1180,
13,
5411,
277,
22,
273,
14015,
1854,
329,
1180,
13,
83,
22,
2934,
588,
1854,
5621,
3639,
469,
309,
12,
83,
22,
1276,
3407,
13,
5411,
277,
22,
273,
14015,
3708,
13,
83,
22,
2934,
5748,
620,
5621,
3639,
469,
604,
394,
24034,
12,
83,
22,
18,
10492,
10663,
3639,
309,
12,
77,
21,
422,
277,
22,
13,
327,
374,
31,
3639,
309,
12,
5,
4113,
30022,
13,
288,
5411,
309,
12,
77,
21,
405,
277,
22,
13,
327,
404,
31,
5411,
469,
327,
300,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
320,
9877,
12,
921,
320,
21,
16,
1033,
320,
22,
13,
288,
3639,
368,
4112,
87,
622,
326,
679,
434,
326,
666,
3639,
309,
12,
83,
21,
422,
446,
597,
320,
22,
422,
446,
13,
5411,
327,
374,
31,
368,
446,
422,
446,
3639,
309,
12,
83,
21,
480,
446,
597,
320,
22,
422,
446,
13,
5411,
327,
404,
31,
368,
6967,
405,
446,
3639,
309,
12443,
83,
22,
480,
446,
13,
597,
261,
83,
21,
422,
446,
3719,
5411,
327,
300,
21,
31,
3639,
1525,
277,
21,
16,
277,
22,
31,
3639,
309,
12,
83,
21,
1276,
3588,
329,
1180,
13,
5411,
277,
21,
273,
14015,
1854,
329,
1180,
13,
83,
21,
2934,
588,
1854,
2
] |
throw new InvalidArtifactRTException( getGroupId(), getArtifactId(), getVersion(), type, "Attached artifacts must specify a type." ); } if ( classifier == null || classifier.trim().length() < 1 ) { throw new InvalidArtifactRTException( getGroupId(), getArtifactId(), getVersion(), type, "Attached artifacts must specify a classifier." );
|
throw new InvalidArtifactRTException( parent.getGroupId(), parent.getArtifactId(), parent.getVersion(), parent.getType(), "An attached artifact must have a different ID than its corresponding main artifact." );
|
public AttachedArtifact( Artifact parent, String type, String classifier ) { super( parent.getGroupId(), parent.getArtifactId(), parent.getVersionRange(), parent.getScope(), type, classifier, parent.getArtifactHandler(), parent.isOptional() ); this.parent = parent; if ( type == null || type.trim().length() < 1 ) { throw new InvalidArtifactRTException( getGroupId(), getArtifactId(), getVersion(), type, "Attached artifacts must specify a type." ); } if ( classifier == null || classifier.trim().length() < 1 ) { throw new InvalidArtifactRTException( getGroupId(), getArtifactId(), getVersion(), type, "Attached artifacts must specify a classifier." ); } }
|
11530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11530/1be64231cfa24f6eea75dcc377f49f622f007849/AttachedArtifact.java/clean/maven-project/src/main/java/org/apache/maven/project/artifact/AttachedArtifact.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6020,
2004,
7581,
12,
14022,
982,
16,
514,
618,
16,
514,
14622,
262,
565,
288,
3639,
2240,
12,
982,
18,
588,
8722,
9334,
982,
18,
588,
7581,
548,
9334,
982,
18,
588,
1444,
2655,
9334,
982,
18,
588,
3876,
9334,
618,
16,
9079,
14622,
16,
982,
18,
588,
7581,
1503,
9334,
982,
18,
291,
6542,
1435,
11272,
3639,
333,
18,
2938,
273,
982,
31,
3639,
309,
261,
618,
422,
446,
747,
618,
18,
5290,
7675,
2469,
1435,
411,
404,
262,
3639,
288,
5411,
604,
394,
1962,
7581,
12185,
503,
12,
27968,
9334,
24957,
548,
9334,
8343,
9334,
618,
16,
4766,
5375,
315,
14890,
16259,
1297,
4800,
279,
618,
1199,
11272,
3639,
289,
3639,
309,
261,
14622,
422,
446,
747,
14622,
18,
5290,
7675,
2469,
1435,
411,
404,
262,
3639,
288,
5411,
604,
394,
1962,
7581,
12185,
503,
12,
27968,
9334,
24957,
548,
9334,
8343,
9334,
618,
16,
4766,
5375,
315,
14890,
16259,
1297,
4800,
279,
14622,
1199,
11272,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6020,
2004,
7581,
12,
14022,
982,
16,
514,
618,
16,
514,
14622,
262,
565,
288,
3639,
2240,
12,
982,
18,
588,
8722,
9334,
982,
18,
588,
7581,
548,
9334,
982,
18,
588,
1444,
2655,
9334,
982,
18,
588,
3876,
9334,
618,
16,
9079,
14622,
16,
982,
18,
588,
7581,
1503,
9334,
982,
18,
291,
6542,
1435,
11272,
3639,
333,
18,
2938,
273,
982,
31,
3639,
309,
261,
618,
422,
446,
747,
618,
18,
5290,
7675,
2469,
1435,
411,
404,
262,
3639,
288,
5411,
604,
394,
1962,
7581,
12185,
503,
12,
27968,
9334,
24957,
548,
9334,
8343,
9334,
618,
16,
4766,
5375,
315,
14890,
16259,
1297,
4800,
279,
618,
1199,
11272,
3639,
289,
3639,
309,
261,
14622,
422,
2
] |
System.err.println("Restarting node: PacketSender froze for 3 minutes! ("+diff+")"); Logger.error(this, "Restarting node: PacketSender froze for 3 minutes! ("+diff+")");
|
if(!Node.logConfigHandler.getFileLoggerHook().hasRedirectedStdOutErrNoLock()) System.err.println("Restarting node: PacketSender froze for 3 minutes! ("+diff+")");
|
public void run() { while(true) { try { Thread.sleep(5000); } catch (InterruptedException e) { // Ignore } long now = System.currentTimeMillis(); long recordedTime = ((long)lastTimeInSeconds) * 1000; long diff = now - recordedTime; Logger.minor(this, "PacketSender last updated time "+diff+"ms ago"); if(diff > 3*60*1000) { System.err.println("Restarting node: PacketSender froze for 3 minutes! ("+diff+")"); Logger.error(this, "Restarting node: PacketSender froze for 3 minutes! ("+diff+")"); try { if(node.isUsingWrapper()){ WrapperManager.requestThreadDump(); WrapperManager.restart(); }else{ // No wrapper : we don't want to let it harm the network! Logger.error(this,"Error : can't restart the node : consider installing the wrapper. PLEASE REPORT THAT ERROR TO devl@freenetproject.org"); node.exit(); } } catch (Throwable t) { Logger.error(this,"Error : can't restart the node : consider installing the wrapper. PLEASE REPORT THAT ERROR TO devl@freenetproject.org"); node.exit(); } } } }
|
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/6f303a891fa002ce6d4bcce4f0bbd7f394e1fb69/PacketSender.java/buggy/src/freenet/node/PacketSender.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
482,
918,
1086,
1435,
288,
377,
202,
202,
17523,
12,
3767,
13,
288,
377,
1082,
202,
698,
288,
6862,
202,
3830,
18,
19607,
12,
25,
3784,
1769,
9506,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
6862,
202,
759,
8049,
9506,
202,
97,
9506,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
9506,
202,
5748,
16421,
950,
273,
14015,
5748,
13,
2722,
950,
17840,
13,
380,
4336,
31,
9506,
202,
5748,
3122,
273,
2037,
300,
16421,
950,
31,
9506,
202,
3328,
18,
17364,
12,
2211,
16,
315,
6667,
12021,
1142,
3526,
813,
13773,
5413,
9078,
959,
20325,
8863,
9506,
202,
430,
12,
5413,
405,
890,
14,
4848,
14,
18088,
13,
288,
6862,
202,
3163,
18,
370,
18,
8222,
2932,
15057,
310,
756,
30,
11114,
12021,
284,
303,
8489,
364,
890,
6824,
5,
7566,
15,
5413,
9078,
2225,
1769,
6862,
202,
3328,
18,
1636,
12,
2211,
16,
315,
15057,
310,
756,
30,
11114,
12021,
284,
303,
8489,
364,
890,
6824,
5,
7566,
15,
5413,
9078,
2225,
1769,
6862,
25083,
202,
698,
288,
25083,
202,
430,
12,
2159,
18,
291,
7736,
3611,
10756,
95,
6862,
1082,
202,
3611,
1318,
18,
2293,
3830,
10628,
5621,
6862,
1082,
202,
3611,
1318,
18,
19164,
5621,
25083,
202,
97,
12107,
95,
6862,
1082,
202,
759,
2631,
4053,
294,
732,
2727,
1404,
2545,
358,
2231,
518,
366,
4610,
326,
2483,
5,
6862,
1082,
202,
3328,
18,
1636,
12,
2211,
10837,
668,
294,
848,
1404,
7870,
326,
756,
294,
5260,
3799,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
202,
482,
918,
1086,
1435,
288,
377,
202,
202,
17523,
12,
3767,
13,
288,
377,
1082,
202,
698,
288,
6862,
202,
3830,
18,
19607,
12,
25,
3784,
1769,
9506,
202,
97,
1044,
261,
24485,
503,
425,
13,
288,
6862,
202,
759,
8049,
9506,
202,
97,
9506,
202,
5748,
2037,
273,
2332,
18,
2972,
28512,
5621,
9506,
202,
5748,
16421,
950,
273,
14015,
5748,
13,
2722,
950,
17840,
13,
380,
4336,
31,
9506,
202,
5748,
3122,
273,
2037,
300,
16421,
950,
31,
9506,
202,
3328,
18,
17364,
12,
2211,
16,
315,
6667,
12021,
1142,
3526,
813,
13773,
5413,
9078,
959,
20325,
8863,
9506,
202,
430,
12,
5413,
405,
890,
14,
4848,
14,
18088,
13,
288,
6862,
202,
3163,
18,
2
] |
lineseries.setVisible(series.isVisible()); if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_Triggers())) { lineseries.getTriggers().addAll(series.getTriggers()); } if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataPoint())) { lineseries.setDataPoint(series.getDataPoint()); } if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataDefinition())) { lineseries.getDataDefinition().add(series.getDataDefinition().get(0)); }
|
lineseries.setVisible( series.isVisible( ) ); if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_Triggers( ) ) ) { lineseries.getTriggers( ).addAll( series.getTriggers( ) ); } if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataPoint( ) ) ) { lineseries.setDataPoint( series.getDataPoint( ) ); } if ( series.eIsSet( ComponentPackage.eINSTANCE.getSeries_DataDefinition( ) ) ) { lineseries.getDataDefinition( ).add( series.getDataDefinition( ) .get( 0 ) ); }
|
private Series getConvertedSeries(Series series) { // Do not convert base series if (series.getClass().getName().equals("org.eclipse.birt.chart.model.component.impl.SeriesImpl")) //$NON-NLS-1$ { return series; } LineSeries lineseries = (LineSeries) LineSeriesImpl.create(); lineseries.getLineAttributes().setVisible(true); lineseries.getLineAttributes().setColor(ColorDefinitionImpl.BLACK()); if (!(series instanceof ScatterSeries)) { Marker marker = AttributeFactory.eINSTANCE.createMarker(); marker.setSize(5); marker.setType(MarkerType.BOX_LITERAL); marker.setVisible(true); lineseries.setMarker(marker); } else { lineseries.setMarker(((ScatterSeries) series).getMarker()); } // Copy generic series properties lineseries.setLabel(series.getLabel()); if (series.getLabelPosition().equals(Position.INSIDE_LITERAL) || series.getLabelPosition().equals(Position.OUTSIDE_LITERAL)) { lineseries.setLabelPosition(Position.ABOVE_LITERAL); } else { lineseries.setLabelPosition(series.getLabelPosition()); } lineseries.setVisible(series.isVisible()); if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_Triggers())) { lineseries.getTriggers().addAll(series.getTriggers()); } if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataPoint())) { lineseries.setDataPoint(series.getDataPoint()); } if (series.eIsSet(ComponentPackage.eINSTANCE.getSeries_DataDefinition())) { lineseries.getDataDefinition().add(series.getDataDefinition().get(0)); } // Copy series specific properties if (series instanceof StockSeries) { lineseries.getLineAttributes().setColor(((StockSeries) series).getLineAttributes().getColor()); } return lineseries; }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/349f24e6a8f8484f0f1f1af682b4952337cac402/LineChart.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/LineChart.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
9225,
336,
22063,
6485,
12,
6485,
4166,
13,
565,
288,
3639,
368,
2256,
486,
1765,
1026,
4166,
3639,
309,
261,
10222,
18,
588,
797,
7675,
17994,
7675,
14963,
2932,
3341,
18,
20416,
18,
70,
2714,
18,
11563,
18,
2284,
18,
4652,
18,
11299,
18,
6485,
2828,
6,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
288,
5411,
327,
4166,
31,
3639,
289,
3639,
5377,
6485,
2362,
3924,
273,
261,
1670,
6485,
13,
5377,
6485,
2828,
18,
2640,
5621,
3639,
2362,
3924,
18,
588,
1670,
2498,
7675,
542,
6207,
12,
3767,
1769,
3639,
2362,
3924,
18,
588,
1670,
2498,
7675,
542,
2957,
12,
2957,
1852,
2828,
18,
14618,
3649,
10663,
3639,
309,
16051,
12,
10222,
1276,
348,
2574,
387,
6485,
3719,
3639,
288,
5411,
14742,
5373,
273,
3601,
1733,
18,
73,
13341,
18,
2640,
7078,
5621,
5411,
5373,
18,
542,
1225,
12,
25,
1769,
5411,
5373,
18,
542,
559,
12,
7078,
559,
18,
16876,
67,
23225,
1769,
5411,
5373,
18,
542,
6207,
12,
3767,
1769,
5411,
2362,
3924,
18,
542,
7078,
12,
11145,
1769,
3639,
289,
3639,
469,
3639,
288,
5411,
2362,
3924,
18,
542,
7078,
12443,
12,
1541,
9293,
6485,
13,
4166,
2934,
588,
7078,
10663,
3639,
289,
3639,
368,
5631,
5210,
4166,
1790,
3639,
2362,
3924,
18,
542,
2224,
12,
10222,
18,
588,
2224,
10663,
3639,
309,
261,
10222,
18,
588,
2224,
2555,
7675,
14963,
12,
2555,
18,
706,
26498,
67,
23225,
13,
5411,
747,
4166,
18,
588,
2224,
2555,
7675,
14963,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
9225,
336,
22063,
6485,
12,
6485,
4166,
13,
565,
288,
3639,
368,
2256,
486,
1765,
1026,
4166,
3639,
309,
261,
10222,
18,
588,
797,
7675,
17994,
7675,
14963,
2932,
3341,
18,
20416,
18,
70,
2714,
18,
11563,
18,
2284,
18,
4652,
18,
11299,
18,
6485,
2828,
6,
3719,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
288,
5411,
327,
4166,
31,
3639,
289,
3639,
5377,
6485,
2362,
3924,
273,
261,
1670,
6485,
13,
5377,
6485,
2828,
18,
2640,
5621,
3639,
2362,
3924,
18,
588,
1670,
2498,
7675,
542,
6207,
12,
3767,
1769,
3639,
2362,
3924,
18,
588,
1670,
2498,
7675,
542,
2957,
12,
2957,
1852,
2828,
18,
14618,
3649,
10663,
3639,
309,
16051,
12,
10222,
1276,
348,
2
] |
if (opts.indexOf("fake_scopes")!=-1) { System.out.print("no"); REAL_SCOPES = false;
|
if (opts.indexOf("noheap_checks")!=-1) { NOHEAP_CHECKS = true; System.out.print("checks"); } else if (opts.indexOf("noheap")!=-1) { NOHEAP_MASK = true; System.out.print("no checks");
|
public static void configure(String options) { String opts = options.toLowerCase(); System.out.print("RTJ: on, Real Scopes: "); REALTIME_JAVA = true; if (opts.indexOf("fake_scopes")!=-1) { System.out.print("no"); REAL_SCOPES = false; } else { System.out.print("yes, NoHeap: "); if (opts.indexOf("noheap_checks")!=-1) { NOHEAP_CHECKS = true; System.out.print("checks"); } else if (opts.indexOf("noheap")!=-1) { NOHEAP_MASK = true; System.out.print("no checks"); } else { System.out.print("no support"); } System.out.print(", DEBUG_REF: "); if (opts.indexOf("debug_ref")!=-1) { DEBUG_REF = true; System.out.print("yes"); } else { System.out.print("no"); } } System.out.print(", Collect Statistics: "); if (opts.indexOf("stats")!=-1) { System.out.print("yes"); COLLECT_RUNTIME_STATS = true; } else { System.out.print("no"); } System.out.print(", Analysis Method: "); if (opts.indexOf("simple")!=-1) { ANALYSIS_METHOD = SIMPLE; System.out.print("simple"); } else if (opts.indexOf("cheesy")!=-1) { ANALYSIS_METHOD = CHEESY_POINTER_ANALYSIS; System.out.print("cheesy"); } else if (opts.indexOf("realpa")!=-1) { ANALYSIS_METHOD = REAL_POINTER_ANALYSIS; System.out.print("realpa"); } else if (opts.indexOf("all")!=-1) { System.out.print("all, Remove Tags: "); if (opts.indexOf("keeptags")!=-1) { System.out.print("no"); REMOVE_TAGS = false; } else { System.out.print("yes"); } ANALYSIS_METHOD = ALL; } else { assert false : "Please specify an analysis method."; } }
|
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/d5c3add89d48ee398101930e879f0e8b0b6324e3/Realtime.java/clean/Analysis/Realtime/Realtime.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
5068,
12,
780,
702,
13,
288,
202,
202,
780,
1500,
273,
702,
18,
869,
5630,
5621,
202,
202,
3163,
18,
659,
18,
1188,
2932,
12185,
46,
30,
603,
16,
15987,
30729,
30,
315,
1769,
202,
202,
31052,
4684,
67,
27264,
273,
638,
31,
202,
202,
430,
261,
4952,
18,
31806,
2932,
28395,
67,
17915,
7923,
5,
29711,
21,
13,
288,
202,
565,
2332,
18,
659,
18,
1188,
2932,
2135,
8863,
202,
565,
2438,
1013,
67,
19444,
55,
273,
629,
31,
202,
202,
97,
469,
288,
202,
565,
2332,
18,
659,
18,
1188,
2932,
9707,
16,
2631,
15648,
30,
315,
1769,
202,
565,
309,
261,
4952,
18,
31806,
2932,
2135,
25506,
67,
12366,
7923,
5,
29711,
21,
13,
288,
9506,
202,
3417,
3900,
2203,
67,
10687,
55,
273,
638,
31,
9506,
202,
3163,
18,
659,
18,
1188,
2932,
12366,
8863,
202,
565,
289,
469,
309,
261,
4952,
18,
31806,
2932,
2135,
25506,
7923,
5,
29711,
21,
13,
288,
9506,
202,
3417,
3900,
2203,
67,
11704,
273,
638,
31,
9506,
202,
3163,
18,
659,
18,
1188,
2932,
2135,
4271,
8863,
202,
565,
289,
469,
288,
9506,
202,
3163,
18,
659,
18,
1188,
2932,
2135,
2865,
8863,
202,
565,
289,
202,
565,
2332,
18,
659,
18,
1188,
2932,
16,
6369,
67,
10771,
30,
315,
1769,
202,
565,
309,
261,
4952,
18,
31806,
2932,
4148,
67,
1734,
7923,
5,
29711,
21,
13,
288,
9506,
202,
9394,
67,
10771,
273,
638,
31,
9506,
202,
3163,
18,
659,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
5068,
12,
780,
702,
13,
288,
202,
202,
780,
1500,
273,
702,
18,
869,
5630,
5621,
202,
202,
3163,
18,
659,
18,
1188,
2932,
12185,
46,
30,
603,
16,
15987,
30729,
30,
315,
1769,
202,
202,
31052,
4684,
67,
27264,
273,
638,
31,
202,
202,
430,
261,
4952,
18,
31806,
2932,
28395,
67,
17915,
7923,
5,
29711,
21,
13,
288,
202,
565,
2332,
18,
659,
18,
1188,
2932,
2135,
8863,
202,
565,
2438,
1013,
67,
19444,
55,
273,
629,
31,
202,
202,
97,
469,
288,
202,
565,
2332,
18,
659,
18,
1188,
2932,
9707,
16,
2631,
15648,
30,
315,
1769,
202,
565,
309,
261,
4952,
18,
31806,
2932,
2135,
25506,
67,
12366,
7923,
5,
2
] |
if( ! ntlmAuth ) {
|
if (!ntlmAuth) {
|
private void send70Login(String _database) throws java.io.IOException, TdsException { String libName = this.progName; byte pad = (byte) 0; byte[] empty = new byte[0]; String appName = this.appName; String clientName = getClientName(); //mdb boolean ntlmAuth = (domain.length() > 0); //mdb:begin-change short packSize = (short)( 86 + 2 * (clientName.length() + appName.length() + serverName.length() + libName.length() + _database.length()) ); short authLen = 0; //NOTE(mdb): ntlm includes auth block; sql auth includes uname and pwd. if( ntlmAuth ) { authLen = (short)(32 + domain.length()); packSize += authLen; } else { authLen = 0; packSize += (2*(user.length()+password.length())); } //mdb:end-change comm.startPacket(TdsComm.LOGON70); comm.appendTdsInt(packSize); // TDS version comm.appendTdsInt(0x70000000); // Magic! comm.appendBytes(empty, 16, pad); comm.appendByte((byte)0xE0); //mdb: this byte controls what kind of auth we do. if( ntlmAuth ) comm.appendByte((byte)0x83); else comm.appendByte((byte)0x03); comm.appendBytes(empty, 10, pad); // Pack up value lengths, positions. short curPos = 86; // Hostname comm.appendTdsShort(curPos); comm.appendTdsShort((short) clientName.length()); curPos += clientName.length() * 2; //mdb: NTLM doesn't send username and password... if( ! ntlmAuth ) { // Username comm.appendTdsShort(curPos); comm.appendTdsShort((short) user.length()); curPos += user.length() * 2; // Password comm.appendTdsShort(curPos); comm.appendTdsShort((short) password.length()); curPos += password.length() * 2; } else { comm.appendTdsShort(curPos); comm.appendTdsShort((short) 0); comm.appendTdsShort(curPos); comm.appendTdsShort((short) 0); } // App name comm.appendTdsShort(curPos); comm.appendTdsShort((short) appName.length()); curPos += appName.length() * 2; // Server name comm.appendTdsShort(curPos); comm.appendTdsShort((short) serverName.length()); curPos += serverName.length() * 2; // Unknown comm.appendTdsShort((short) 0); comm.appendTdsShort((short) 0); // Library name comm.appendTdsShort(curPos); comm.appendTdsShort((short) libName.length()); curPos += libName.length() * 2; // Another unknown value // mdb: this is the "language" comm.appendTdsShort(curPos); comm.appendTdsShort((short) 0); // Database comm.appendTdsShort(curPos); comm.appendTdsShort((short) _database.length()); curPos += _database.length() * 2; // MAC address comm.appendBytes(empty, 6, pad); //mdb: location of ntlm auth block. note that for sql auth, authLen==0. comm.appendTdsShort(curPos); comm.appendTdsShort(authLen); //"next position" (same as total packet size) comm.appendTdsInt(packSize); comm.appendChars(clientName); // Pack up the login values. //mdb: for ntlm auth, uname and pwd aren't sent up... if( ! ntlmAuth ) { String scrambledPw = tds7CryptPass(password); comm.appendChars(user); comm.appendChars(scrambledPw); } comm.appendChars(appName); comm.appendChars(serverName); comm.appendChars(libName); comm.appendChars(_database); //mdb: add the ntlm auth info... if( ntlmAuth ) { // host and domain name are _narrow_ strings. byte[] domainBytes = domain.getBytes("UTF8"); //byte[] hostBytes = localhostname.getBytes("UTF8"); byte[] header = { 0x4e, 0x54, 0x4c, 0x4d, 0x53, 0x53, 0x50, 0x00 }; comm.appendBytes( header ); //header is ascii "NTLMSSP\0" comm.appendTdsInt(1); //sequence number = 1 comm.appendTdsInt(0xb201); //flags (???) //domain info comm.appendTdsShort( (short)domainBytes.length ); comm.appendTdsShort( (short)domainBytes.length ); comm.appendTdsInt(32); //offset, relative to start of auth block. //host info //NOTE(mdb): not sending host info; hope this is ok! comm.appendTdsShort( (short)0 ); comm.appendTdsShort( (short)0 ); comm.appendTdsInt(32); //offset, relative to start of auth block. // add the variable length data at the end... comm.appendBytes( domainBytes ); } }
|
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/36d7d34eb620f32e386322a293eaf58cf253a3a6/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
7301,
5358,
12,
780,
389,
6231,
13,
3639,
1216,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
565,
288,
3639,
514,
2561,
461,
273,
333,
18,
14654,
461,
31,
3639,
1160,
4627,
273,
261,
7229,
13,
374,
31,
3639,
1160,
8526,
1008,
273,
394,
1160,
63,
20,
15533,
3639,
514,
10236,
273,
333,
18,
2910,
461,
31,
3639,
514,
1004,
461,
273,
7635,
461,
5621,
3639,
368,
27574,
3639,
1250,
290,
6172,
81,
1730,
273,
261,
4308,
18,
2469,
1435,
405,
374,
1769,
3639,
368,
27574,
30,
10086,
17,
3427,
3639,
3025,
2298,
1225,
273,
261,
6620,
21433,
20457,
397,
576,
380,
7734,
261,
2625,
461,
18,
2469,
1435,
397,
7734,
10236,
18,
2469,
1435,
397,
7734,
10926,
18,
2469,
1435,
397,
7734,
2561,
461,
18,
2469,
1435,
397,
7734,
389,
6231,
18,
2469,
10756,
11272,
3639,
3025,
1357,
2891,
273,
374,
31,
3639,
368,
17857,
12,
27574,
4672,
290,
6172,
81,
6104,
1357,
1203,
31,
1847,
1357,
6104,
31444,
471,
14720,
18,
3639,
309,
12,
290,
6172,
81,
1730,
262,
3639,
288,
5411,
1357,
2891,
273,
261,
6620,
21433,
1578,
397,
2461,
18,
2469,
10663,
5411,
2298,
1225,
1011,
1357,
2891,
31,
3639,
289,
3639,
469,
3639,
288,
5411,
1357,
2891,
273,
374,
31,
5411,
2298,
1225,
1011,
261,
22,
21556,
1355,
18,
2469,
1435,
15,
3664,
18,
2469,
1435,
10019,
3639,
289,
3639,
368,
27574,
30,
409,
17,
3427,
3639,
1543,
18,
1937,
6667,
12,
56,
2377,
12136,
18,
4842,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1366,
7301,
5358,
12,
780,
389,
6231,
13,
3639,
1216,
2252,
18,
1594,
18,
14106,
16,
399,
2377,
503,
565,
288,
3639,
514,
2561,
461,
273,
333,
18,
14654,
461,
31,
3639,
1160,
4627,
273,
261,
7229,
13,
374,
31,
3639,
1160,
8526,
1008,
273,
394,
1160,
63,
20,
15533,
3639,
514,
10236,
273,
333,
18,
2910,
461,
31,
3639,
514,
1004,
461,
273,
7635,
461,
5621,
3639,
368,
27574,
3639,
1250,
290,
6172,
81,
1730,
273,
261,
4308,
18,
2469,
1435,
405,
374,
1769,
3639,
368,
27574,
30,
10086,
17,
3427,
3639,
3025,
2298,
1225,
273,
261,
6620,
21433,
20457,
397,
576,
380,
7734,
261,
2625,
461,
18,
2469,
1435,
397,
7734,
10236,
18,
2469,
2
] |
private void tableColumnStart(String label) {
|
private void tableColumnStart(String label) {
|
private void tableColumnStart(String label) { out.print("<th class=\"numi\">"+label+"</th>"); }
|
50502 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50502/2c30372d5bda4ec1fa4ac94eaa43d64f3e1d0a1a/EmailableReporter.java/buggy/src/main/org/testng/reporters/EmailableReporter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1014,
1494,
1685,
12,
780,
1433,
13,
288,
565,
596,
18,
1188,
2932,
32,
451,
667,
5189,
2107,
77,
21121,
15,
1925,
9078,
1757,
451,
2984,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1014,
1494,
1685,
12,
780,
1433,
13,
288,
565,
596,
18,
1188,
2932,
32,
451,
667,
5189,
2107,
77,
21121,
15,
1925,
9078,
1757,
451,
2984,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
CharSequence url = this.getPage().urlFor(null, pageContribution, new PageParameters());
|
CharSequence url = urlFor(null, pageContribution, new PageParameters());
|
protected void onRender(MarkupStream markupStream) { super.onRender(markupStream); CharSequence url = this.getPage().urlFor(null, pageContribution, new PageParameters()); getResponse().write( "\n<script type=\"text/javascript\">new Ajax.Updater('" + getId() + "', '" + url + "', " + " { " + " evalScripts:true, " + " asynchronous:true" + " })" + "</script>\n"); getResponse().write( "<script type=\"text/javascript\">Droppables.add('" + getId() + "', " + " {accept:'" + draggableClass + "', " + " onDrop:function(element){ " + " new Ajax.Updater('" + getId() + "', '" + url + "', " + " { "); if (null != indicatorId) { getResponse().write( " onLoading:function(request){ Element.show('indicator')}, " + " onComplete:function(request){Element.hide('indicator')}, "); } getResponse().write( " parameters:'id=' + encodeURIComponent(element.id), " + " evalScripts:true, " + " asynchronous:true" + " }" + ")}, " + " hoverclass:'" + getId() + "-active'})</script>\n"); }
|
51612 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51612/852bdc0a9d56d5aa6540ee38cdf431b167686651/DraggableTarget.java/clean/wicket-contrib-scriptaculous/src/java/wicket/contrib/scriptaculous/dragdrop/DraggableTarget.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
603,
3420,
12,
13111,
1228,
9813,
1228,
13,
202,
95,
202,
202,
9565,
18,
265,
3420,
12,
15056,
1228,
1769,
202,
202,
2156,
4021,
880,
273,
333,
18,
588,
1964,
7675,
718,
1290,
12,
2011,
16,
1363,
442,
4027,
16,
394,
3460,
2402,
10663,
202,
202,
588,
1064,
7675,
2626,
12,
9506,
202,
12691,
82,
32,
4263,
618,
5189,
955,
19,
11242,
24735,
2704,
18772,
18,
15305,
22076,
397,
2634,
1435,
397,
14912,
2119,
397,
880,
25083,
202,
15,
14912,
315,
397,
315,
288,
315,
397,
315,
5302,
15041,
30,
3767,
16,
315,
397,
315,
9007,
30,
3767,
6,
397,
315,
289,
2225,
25083,
202,
15,
6823,
4263,
5333,
82,
8863,
202,
202,
588,
1064,
7675,
2626,
12,
9506,
202,
6,
32,
4263,
618,
5189,
955,
19,
11242,
24735,
7544,
84,
1538,
18,
1289,
22076,
397,
2634,
1435,
397,
14912,
315,
25083,
202,
15,
315,
288,
9436,
2497,
6,
397,
29165,
797,
397,
14912,
315,
397,
315,
603,
7544,
30,
915,
12,
2956,
15329,
315,
25083,
202,
15,
315,
394,
18772,
18,
15305,
22076,
397,
2634,
1435,
397,
14912,
2119,
397,
880,
397,
14912,
315,
397,
315,
288,
315,
1769,
202,
202,
430,
261,
2011,
480,
10664,
548,
13,
202,
202,
95,
1082,
202,
588,
1064,
7675,
2626,
12,
6862,
202,
6,
603,
10515,
30,
915,
12,
2293,
15329,
3010,
18,
4500,
2668,
18741,
6134,
5779,
315,
6862,
1082,
202,
15,
315,
25050,
30,
915,
12,
2293,
15329,
1046,
18,
11248,
2668,
18741,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
603,
3420,
12,
13111,
1228,
9813,
1228,
13,
202,
95,
202,
202,
9565,
18,
265,
3420,
12,
15056,
1228,
1769,
202,
202,
2156,
4021,
880,
273,
333,
18,
588,
1964,
7675,
718,
1290,
12,
2011,
16,
1363,
442,
4027,
16,
394,
3460,
2402,
10663,
202,
202,
588,
1064,
7675,
2626,
12,
9506,
202,
12691,
82,
32,
4263,
618,
5189,
955,
19,
11242,
24735,
2704,
18772,
18,
15305,
22076,
397,
2634,
1435,
397,
14912,
2119,
397,
880,
25083,
202,
15,
14912,
315,
397,
315,
288,
315,
397,
315,
5302,
15041,
30,
3767,
16,
315,
397,
315,
9007,
30,
3767,
6,
397,
315,
289,
2225,
25083,
202,
15,
6823,
4263,
5333,
82,
8863,
202,
202,
588,
1064,
2
] |
AST __t566 = _t; AST tmp1142_AST_in = (AST)_t;
|
AST __t551 = _t; AST tmp1146_AST_in = (AST)_t;
|
public final void defineparam_var(AST _t) throws RecognitionException { AST defineparam_var_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST as = null; AST li = null; { if (_t==null) _t=ASTNULL; if ((_t.getType()==AS)) { AST __t559 = _t; as = _t==ASTNULL ? null :(AST)_t; match(_t,AS); _t = _t.getFirstChild(); { boolean synPredMatched563 = false; if (_t==null) _t=ASTNULL; if (((_t.getType()==HANDLE))) { AST __t563 = _t; synPredMatched563 = true; inputState.guessing++; try { { AST tmp1133_AST_in = (AST)_t; match(_t,HANDLE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST tmp1134_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); break; } case BYTE: case CHARACTER: case DOUBLE: case FLOAT: case LONG: case SHORT: case UNSIGNEDSHORT: { break; } default: { throw new NoViableAltException(_t); } } } datatype_dll(_t); _t = _retTree; } } catch (RecognitionException pe) { synPredMatched563 = false; } _t = __t563;inputState.guessing--; } if ( synPredMatched563 ) { AST tmp1135_AST_in = (AST)_t; match(_t,HANDLE); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TO: { AST tmp1136_AST_in = (AST)_t; match(_t,TO); _t = _t.getNextSibling(); break; } case BYTE: case CHARACTER: case DOUBLE: case FLOAT: case LONG: case SHORT: case UNSIGNEDSHORT: { break; } default: { throw new NoViableAltException(_t); } } } datatype_dll(_t); _t = _retTree; } else if ((_t.getType()==CLASS)) { AST tmp1137_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getNextSibling(); AST tmp1138_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); } else if ((_tokenSet_15.member(_t.getType()))) { datatype_param(_t); _t = _retTree; } else { throw new NoViableAltException(_t); } } _t = __t559; _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.defAs(as); } } else if ((_tokenSet_16.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } { _loop570: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CASESENSITIVE: case Not_casesens: { casesens_or_not(_t); _t = _retTree; break; } case DECIMALS: { AST __t567 = _t; AST tmp1139_AST_in = (AST)_t; match(_t,DECIMALS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t567; _t = _t.getNextSibling(); break; } case LIKE: { AST __t568 = _t; li = _t==ASTNULL ? null :(AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); fld(_t,CQ.SYMBOL); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALIDATE: { AST tmp1140_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t568; _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.defLike(li); } break; } case INITIAL: { initial_constant(_t); _t = _retTree; break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case NOUNDO: { AST tmp1141_AST_in = (AST)_t; match(_t,NOUNDO); _t = _t.getNextSibling(); break; } case EXTENT: { extentphrase(_t); _t = _retTree; break; } default: if (_t==null) _t=ASTNULL; if ((_t.getType()==FORMAT)) { AST __t566 = _t; AST tmp1142_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t566; _t = _t.getNextSibling(); } else { break _loop570; } } } while (true); } _retTree = _t; }
|
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
4426,
891,
67,
1401,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
891,
67,
1401,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
487,
273,
446,
31,
202,
202,
9053,
4501,
273,
446,
31,
9506,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
430,
14015,
67,
88,
18,
588,
559,
1435,
631,
3033,
3719,
288,
1082,
202,
9053,
1001,
88,
2539,
29,
273,
389,
88,
31,
1082,
202,
345,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
31,
1082,
202,
1916,
24899,
88,
16,
3033,
1769,
1082,
202,
67,
88,
273,
389,
88,
18,
588,
3759,
1763,
5621,
1082,
202,
95,
1082,
202,
6494,
6194,
10391,
15400,
4313,
23,
273,
629,
31,
1082,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
1082,
202,
430,
261,
12443,
67,
88,
18,
588,
559,
1435,
631,
23056,
20349,
288,
9506,
202,
9053,
1001,
88,
4313,
23,
273,
389,
88,
31,
9506,
202,
11982,
10391,
15400,
4313,
23,
273,
638,
31,
9506,
202,
2630,
1119,
18,
20885,
310,
9904,
31,
9506,
202,
698,
288,
6862,
202,
95,
6862,
202,
9053,
1853,
2499,
3707,
67,
9053,
67,
267,
273,
261,
9053,
13,
67,
88,
31,
6862,
202,
1916,
24899,
88,
16,
23056,
1769,
6862,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4426,
891,
67,
1401,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
4426,
891,
67,
1401,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
487,
273,
446,
31,
202,
202,
9053,
4501,
273,
446,
31,
9506,
202,
95,
202,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
430,
14015,
67,
88,
18,
588,
559,
1435,
631,
3033,
3719,
288,
1082,
202,
9053,
1001,
88,
2539,
29,
273,
389,
88,
31,
1082,
202,
345,
273,
389,
88,
631,
9053,
8560,
692,
446,
294,
12,
9053,
13,
67,
88,
2
] |
public boolean handleWebServerResourcesDelta(IResourceDelta _delta, IProgressMonitor monitor, Map _buildCache) { return _delta.getKind() == IResourceDelta.ADDED || _delta.getKind() == IResourceDelta.REMOVED;
|
public void handleWebServerResourcesDelta(IResourceDelta delta, IProgressMonitor monitor, Map buildCache) {
|
public boolean handleWebServerResourcesDelta(IResourceDelta _delta, IProgressMonitor monitor, Map _buildCache) { return _delta.getKind() == IResourceDelta.ADDED || _delta.getKind() == IResourceDelta.REMOVED; }
|
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/5644f6506a8f17f2b8311774090206457f13a78d/DotXcodeBuilder.java/buggy/wolips/plugins/org.objectstyle.wolips.builder/java/org/objectstyle/wolips/builder/internal/DotXcodeBuilder.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1640,
4079,
2081,
3805,
9242,
12,
45,
1420,
9242,
389,
9878,
16,
467,
5491,
7187,
6438,
16,
1635,
389,
3510,
1649,
13,
288,
202,
202,
2463,
389,
9878,
18,
588,
5677,
1435,
422,
467,
1420,
9242,
18,
1880,
7660,
747,
389,
9878,
18,
588,
5677,
1435,
422,
467,
1420,
9242,
18,
11122,
12135,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1640,
4079,
2081,
3805,
9242,
12,
45,
1420,
9242,
389,
9878,
16,
467,
5491,
7187,
6438,
16,
1635,
389,
3510,
1649,
13,
288,
202,
202,
2463,
389,
9878,
18,
588,
5677,
1435,
422,
467,
1420,
9242,
18,
1880,
7660,
747,
389,
9878,
18,
588,
5677,
1435,
422,
467,
1420,
9242,
18,
11122,
12135,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
IPath rootPath = ResourcesPlugin.getWorkspace().getRoot().getLocation(); String taskDirectory = rootPath.toString() + "/" + MylarPlugin.MYLAR_DIR_NAME; taskDirectoryText.setText(taskDirectory);
|
taskDirectoryText.setText(MylarPlugin.getDefault().getDefaultDataDirectory());
|
public void performDefaults() { super.performDefaults(); IPath rootPath = ResourcesPlugin.getWorkspace().getRoot().getLocation(); String taskDirectory = rootPath.toString() + "/" + MylarPlugin.MYLAR_DIR_NAME; taskDirectoryText.setText(taskDirectory); copyExistingDataCheckbox.setSelection(getPreferenceStore().getDefaultBoolean(MylarTaskListPlugin.COPY_TASK_DATA)); reportEditor.setSelection(getPreferenceStore().getDefaultBoolean(MylarTaskListPlugin.REPORT_OPEN_EDITOR)); reportInternal.setSelection(getPreferenceStore().getDefaultBoolean(MylarTaskListPlugin.REPORT_OPEN_INTERNAL)); // reportExternal.setSelection(getPreferenceStore().getDefaultBoolean(MylarTaskListPlugin.REPORT_OPEN_EXTERNAL)); taskURLPrefixText.setText(getPreferenceStore().getDefaultString(MylarTaskListPlugin.DEFAULT_URL_PREFIX)); multipleActive.setSelection(getPreferenceStore().getDefaultBoolean(MylarTaskListPlugin.MULTIPLE_ACTIVE_TASKS)); }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e4d7d68e3083b7aa240fce198b4196a7b47eade8/MylarTaskListPreferencePage.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/preferences/MylarTaskListPreferencePage.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3073,
7019,
1435,
288,
202,
202,
9565,
18,
16092,
7019,
5621,
202,
202,
45,
743,
13959,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
7675,
588,
2735,
5621,
202,
202,
780,
1562,
2853,
273,
13959,
18,
10492,
1435,
397,
4016,
397,
8005,
7901,
3773,
18,
22114,
48,
985,
67,
4537,
67,
1985,
31,
202,
202,
4146,
2853,
1528,
18,
542,
1528,
12,
4146,
2853,
1769,
202,
202,
3530,
9895,
751,
21272,
18,
542,
6233,
12,
588,
9624,
2257,
7675,
588,
1868,
5507,
12,
12062,
7901,
2174,
682,
3773,
18,
24875,
67,
15580,
67,
4883,
10019,
202,
202,
6006,
6946,
18,
542,
6233,
12,
588,
9624,
2257,
7675,
588,
1868,
5507,
12,
12062,
7901,
2174,
682,
3773,
18,
22710,
67,
11437,
67,
13208,
10019,
202,
202,
6006,
3061,
18,
542,
6233,
12,
588,
9624,
2257,
7675,
588,
1868,
5507,
12,
12062,
7901,
2174,
682,
3773,
18,
22710,
67,
11437,
67,
14005,
10019,
202,
202,
759,
202,
202,
6006,
6841,
18,
542,
6233,
12,
588,
9624,
2257,
7675,
588,
1868,
5507,
12,
12062,
7901,
2174,
682,
3773,
18,
22710,
67,
11437,
67,
2294,
11702,
10019,
202,
202,
4146,
1785,
2244,
1528,
18,
542,
1528,
12,
588,
9624,
2257,
7675,
588,
1868,
780,
12,
12062,
7901,
2174,
682,
3773,
18,
5280,
67,
1785,
67,
6307,
10019,
9506,
202,
9622,
3896,
18,
542,
6233,
12,
588,
9624,
2257,
7675,
588,
1868,
5507,
12,
12062,
7901,
2174,
682,
3773,
18,
24683,
900,
67,
13301,
67,
15580,
55,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3073,
7019,
1435,
288,
202,
202,
9565,
18,
16092,
7019,
5621,
202,
202,
45,
743,
13959,
273,
8128,
3773,
18,
588,
8241,
7675,
588,
2375,
7675,
588,
2735,
5621,
202,
202,
780,
1562,
2853,
273,
13959,
18,
10492,
1435,
397,
4016,
397,
8005,
7901,
3773,
18,
22114,
48,
985,
67,
4537,
67,
1985,
31,
202,
202,
4146,
2853,
1528,
18,
542,
1528,
12,
4146,
2853,
1769,
202,
202,
3530,
9895,
751,
21272,
18,
542,
6233,
12,
588,
9624,
2257,
7675,
588,
1868,
5507,
12,
12062,
7901,
2174,
682,
3773,
18,
24875,
67,
15580,
67,
4883,
10019,
202,
202,
6006,
6946,
18,
542,
6233,
12,
588,
9624,
2257,
7675,
588,
1868,
5507,
12,
12062,
7901,
2174,
2
] |
securityGetLogger().info("ACL rights for " + identity + " in "
|
securityLogger.info("ACL rights for " + identity + " in "
|
private boolean parseCommand(String next) { commandRaw = next; String folder = null; String command = null; boolean subscribeOnly = false; if (commandRaw == null) return false; // getLogger().debug("Command recieved: " + commandRaw + " from " + remoteHost // + "(" + remoteIP + ")"); //String command = commandRaw.trim(); StringTokenizer commandLine = new StringTokenizer(commandRaw.trim(), " "); int arguments = commandLine.countTokens(); if (arguments == 0) { return true; } else { String test = commandLine.nextToken(); if (test.length() < 10) {// this stops overlong junk. // we should validate the tag contents tag = test; } else { out.println(UNTAGGED + SP + BAD + SP + "tag too long"); return true; } } if (arguments > 1) { String test = commandLine.nextToken(); if (test.length() < 13) {// this stops overlong junk. // we could validate the command contents, // but may not be worth it command = test; } else { out.println(tag + SP + BAD + SP + "overlong command attempted"); return true; } } else { out.println(UNTAGGED + SP + BAD + SP + "no command sent"); return true; } // At this stage we have a tag and a string which may be a command // Start with commands that are valid in any state // CAPABILITY, NOOP, LOGOUT if (command.equalsIgnoreCase("CAPABILITY")) { out.println(UNTAGGED + SP + CAPABILITY_RESPONSE); if (state == SELECTED ) { checkSize(); checkExpunge(); } out.println(tag + SP + OK + SP + "CAPABILITY completed"); getLogger().debug("Capability command completed for " + remoteHost + "(" + remoteIP + ")"); return true; } else if (command.equalsIgnoreCase("NOOP")) { if (state == SELECTED ) { checkSize(); checkExpunge(); } // we could send optional untagged status responses as well out.println(tag + SP + OK + SP + "NOOP completed"); getLogger().debug("Noop command completed for " + remoteHost + "(" + remoteIP + ")"); return true; } else if (command.equalsIgnoreCase("LOGOUT")) { connectionClosed = closeConnection(NORMAL_CLOSE, "", ""); return false; } // Commands only valid in NON_AUTHENTICATED state // AUTHENTICATE, LOGIN if (state == NON_AUTHENTICATED) { if (command.equalsIgnoreCase("AUTHENTICATE")) { out.println(tag + SP + NO + SP + "Auth type not supported."); getLogger().info("Attempt to use Authenticate command by " + remoteHost + "(" + remoteIP + ")"); securityGetLogger().info("Attempt to use Authenticate command by " + remoteHost + "(" + remoteIP + ")"); return true; } else if (command.equalsIgnoreCase("LOGIN")) { if (arguments != 4) { out.println(tag + SP + BAD + SP + "Command should be <tag> <LOGIN> <username> <password>"); getLogger().info("Wrong number of arguments for LOGIN command from " + remoteHost + "(" + remoteIP + ")"); return true; } user = decodeAstring(commandLine.nextToken()); String password = decodeAstring(commandLine.nextToken()); if (users.test(user, password)) { securityGetLogger().info("Login successful for " + user + " from " + remoteHost + "(" + remoteIP + ")"); // four possibilites handled: // private mail: isLocal, is Remote // other mail (shared, news, etc.) is Local, is Remote if (imapHost.isHomeServer(user)) { out.println(tag + SP + OK + SP + "LOGIN completed"); state = AUTHENTICATED; } else { String remoteServer = null; try { remoteServer = imapSystem.getHomeServer(user); } catch (AuthenticationException ae) { connectionClosed = closeConnection(TAGGED_NO, " cannot find your inbox, closing connection", ""); return false; } if (imapHost.hasLocalAccess(user)) { out.println(tag + SP + OK + SP + "[REFERRAL " + remoteServer +"]" + SP + "Your home server is remote, other mailboxes available here"); state = AUTHENTICATED; } else { closeConnection(TAGGED_NO, " [REFERRAL" + SP + remoteServer +"]" + SP + "No mailboxes available here, try remote server", ""); return false; } } currentNamespace = imapHost.getDefaultNamespace(user); currentSeperator = imapSystem.getHierarchySeperator(currentNamespace); // position at root of default Namespace, // which is not actually a folder currentFolder = currentNamespace + currentSeperator + ""; getLogger().debug("Current folder for user " + user + " from " + remoteHost + "(" + remoteIP + ") is " + currentFolder); return true; } // failed password test // We should add ability to monitor attempts to login out.println(tag + SP + NO + SP + "LOGIN failed"); securityGetLogger().error("Failed attempt to use Login command for account " + user + " from " + remoteHost + "(" + remoteIP + ")"); return true; } // bad client out.println(tag + SP + NO + SP + "Must authenticate first"); return true; } // end of if (state == NON_AUTHENTICATED) // Commands not yet processed should be valid in either // Authenticated or Selected states. getLogger().debug("Command recieved: " + commandRaw + " from " + remoteHost + "(" + remoteIP + ")"); // Create ImapRequest object here - is this the right stage? ImapRequest request = new ImapRequest(this); request.setCommandLine(commandLine); request.setUseUIDs(false); request.setCurrentMailbox(currentMailbox); request.setCommandRaw(commandRaw); request.setTag(tag); request.setCurrentFolder(currentFolder); // Commands valid in both Authenticated and Selected states // NAMESPACE, GETACL, SETACL, DELETEACL, LISTRIGHTS, MYRIGHTS, SELECT if (state == AUTHENTICATED || state == SELECTED) { // NAMESPACE capability ------------------------------ if (command.equalsIgnoreCase("NAMESPACE")) { String namespaces = imapSystem.getNamespaces(user); out.println(UNTAGGED + SP + "NAMESPACE " + namespaces); getLogger().info("Provided NAMESPACE: " + namespaces ); if (state == SELECTED ) { checkSize(); checkExpunge(); } out.println(tag + SP + OK + SP + "NAMESPACE command completed"); return true; // ACL Capability --------------------------------------- } else if (command.equalsIgnoreCase("GETACL")) { ACLMailbox target = null; if (arguments != 3) { out.println(tag + SP + BAD + SP + "Command should be <tag> <GETACL> <mailbox>"); return true; } folder = getFullName(commandLine.nextToken()); if ( state == SELECTED && currentFolder.equals(folder) ) { target = currentMailbox; } else { target = getBox(user, folder); if (target == null) return true; } try { out.println(UNTAGGED + SP + "ACL " + target.getName() + SP + target.getAllRights(user )); getLogger().debug(UNTAGGED + SP + "ACL " + target.getName() + SP + target.getAllRights(user )); } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "Unknown mailbox"); logACE(ace); return true; } catch (AuthorizationException aze) { out.println(tag + SP + AUTH_FAIL_MSG); logAZE(aze); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } out.println(tag + SP + OK + SP + "GetACL command completed"); return true; } else if (command.equalsIgnoreCase("SETACL")) { ACLMailbox target = null; if (arguments != 5) { out.println(tag + SP + BAD + SP + "Command should be <tag> <SETACL> <mailbox> <identity> <rights modification>"); return true; } folder = getFullName(commandLine.nextToken()); String identity = commandLine.nextToken(); String changes = commandLine.nextToken(); if ( (state == SELECTED && currentFolder.equals(folder))) { target = currentMailbox; } else { target = getBox(user, folder); if (target == null) return true; } try { if (target.setRights(user, identity, changes)) { out.println(tag + SP + OK + SP + "SetACL command completed"); securityGetLogger().info("ACL rights for " + identity + " in " + folder + " changed by " + user + " : " + changes); } else { out.println(tag + SP + NO + SP + "SetACL command failed"); securityGetLogger().info("Failed attempt to change ACL rights for " + identity + " in " + folder + " by " + user); } } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "Unknown mailbox"); logACE(ace); return true; } catch (AuthorizationException aze) { out.println(tag + SP + AUTH_FAIL_MSG); logAZE(aze); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; } else if (command.equalsIgnoreCase("DELETEACL")) { ACLMailbox target = null; if (arguments != 4) { out.println(tag + SP + BAD + SP + "Command should be <tag> <DELETEACL> <mailbox> <identity>"); return true; } folder = getFullName(commandLine.nextToken()); String identity = commandLine.nextToken(); String changes = ""; if ( (state == SELECTED && currentFolder.equals(folder))) { target = currentMailbox; } else { target = getBox(user, folder); if (target == null) return true; } try { if (target.setRights(user, identity, changes)) { out.println(tag + SP + OK + SP + "DeleteACL command completed"); securityGetLogger().info("ACL rights for " + identity + " in " + folder + " deleted by " + user); } else { out.println(tag + SP + NO + SP + "SetACL command failed"); securityGetLogger().info("Failed attempt to change ACL rights for " + identity + " in " + folder + " by " + user); } } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "Unknown mailbox"); logACE(ace); return true; } catch (AuthorizationException aze) { out.println(tag + SP + AUTH_FAIL_MSG); logAZE(aze); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; } else if (command.equalsIgnoreCase("LISTRIGHTS")) { ACLMailbox target = null; if (arguments != 4) { out.println(tag + SP + BAD_LISTRIGHTS_MSG); return true; } folder = getFullName(commandLine.nextToken()); String identity = commandLine.nextToken(); if ( state == SELECTED && currentFolder.equals(folder) ) { target = currentMailbox; } else { target = getBox(user, folder); if (target == null) return true; } try { out.println(UNTAGGED + SP + "LISTRIGHTS " + target.getName() + SP + identity + SP + target.getRequiredRights(user, identity) + SP + target.getOptionalRights(user, identity)); out.println(tag + SP + OK + SP + "ListRights command completed"); } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "Unknown mailbox"); logACE(ace); return true; } catch (AuthorizationException aze) { out.println(tag + SP + AUTH_FAIL_MSG); logAZE(aze); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; } else if (command.equalsIgnoreCase("MYRIGHTS")) { ACLMailbox target = null; if (arguments != 3) { out.println(tag + SP + BAD_MYRIGHTS_MSG); return true; } folder = getFullName(commandLine.nextToken()); if ( state == SELECTED && currentFolder.equals(folder) ) { target = currentMailbox; } else { target = getBox(user, folder); if (target == null) return true; } try { out.println(UNTAGGED + SP + "MYRIGHTS " + target.getName() + SP + target.getRights(user, user)); out.println(tag + SP + OK + SP + "MYRIGHTS command completed"); } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "Unknown mailbox"); logACE(ace); return true; } catch (AuthorizationException aze) { out.println(tag + SP + AUTH_FAIL_MSG); logAZE(aze); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; // Standard IMAP commands -------------------------- } else if (command.equalsIgnoreCase("SELECT") || command.equalsIgnoreCase("EXAMINE")) { // selecting a mailbox deselects current mailbox, // even if this select fails if (state == SELECTED) { currentMailbox.removeMailboxEventListener(this); imapHost.releaseMailbox(user, currentMailbox); state = AUTHENTICATED; currentMailbox = null; currentIsReadOnly = false; } if (arguments != 3) { if (command.equalsIgnoreCase("SELECT") ){ out.println(tag + SP + BAD + SP + "Command should be <tag> <SELECT> <mailbox>"); } else { out.println(tag + SP + BAD + SP + "Command should be <tag> <EXAMINE> <mailbox>"); } return true; } folder = getFullName(commandLine.nextToken()); currentMailbox = getBox(user, folder); if (currentMailbox == null) { return true; } try { // long tries clause against an AccessControlException if (!currentMailbox.hasReadRights(user)) { out.println(tag + SP + NO + SP + "Read access not granted." ); return true; } if (command.equalsIgnoreCase("SELECT") ){ if (!currentMailbox.isSelectable(user)) { out.println(tag + SP + NO + SP + "Mailbox exists but is not selectable"); return true; } } // Have mailbox with at least read rights. Server setup. currentMailbox.addMailboxEventListener(this); currentFolder = folder; state = SELECTED; exists = -1; recent = -1; getLogger().debug("Current folder for user " + user + " from " + remoteHost + "(" + remoteIP + ") is " + currentFolder); // Inform client out.println(UNTAGGED + SP + "FLAGS (" + currentMailbox.getSupportedFlags() + ")" ); if (!currentMailbox.allFlags(user)) { out.println(UNTAGGED + SP + OK + " [PERMANENTFLAGS (" + currentMailbox.getPermanentFlags(user) + ") ]"); } checkSize(); out.println(UNTAGGED + SP + OK + " [UIDVALIDITY " + currentMailbox.getUIDValidity() + " ]"); int oldestUnseen = currentMailbox.getOldestUnseen(user); if (oldestUnseen > 0 ) { out.println(UNTAGGED + SP + OK + " [UNSEEN " + oldestUnseen + " ]"); } else { out.println(UNTAGGED + SP + OK + " No unseen messages"); } sequence = currentMailbox.listUIDs(user); if (command.equalsIgnoreCase("EXAMINE")) { currentIsReadOnly = true; out.println(tag + SP + OK + SP + "[READ-ONLY] Examine completed"); return true; } else if (currentMailbox.isReadOnly(user)) { currentIsReadOnly = true; out.println(tag + SP + OK + SP + "[READ-ONLY] Select completed"); return true; } out.println(tag + SP + OK + SP + "[READ-WRITE] Select completed"); return true; } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "No such mailbox."); logACE(ace); return true; } // End of SELECT || EXAMINE } else if (command.equalsIgnoreCase("CREATE")) { if (arguments != 3) { out.println(tag + SP + BAD + SP + "Command should be <tag> <CREATE> <mailbox>"); return true; } folder = getFullName(commandLine.nextToken()); if(currentFolder == folder) { out.println(tag + SP + NO + SP + "Folder exists and is selected." ); return true; } try { ACLMailbox target = imapHost.createMailbox(user, folder); out.println(tag + SP + OK + SP + "Create completed"); imapHost.releaseMailbox(user, target); } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "No such mailbox. "); logACE(ace); return true; } catch (MailboxException mbe) { if (mbe.isRemote()) { out.println(tag + SP + NO + SP + "[REFERRAL " + mbe.getRemoteServer() +"]" + SP + "Wrong server. Try remote." ); } else { out.println(tag + SP + NO + SP + mbe.getStatus() ); } return true; } catch (AuthorizationException aze) { out.println(tag + SP + NO + SP + "You do not have the rights to create mailbox: " + folder); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; } else if (command.equalsIgnoreCase("DELETE")) { if (arguments != 3) { out.println(tag + SP + BAD + SP + "Command should be <tag> <DELETE> <mailbox>"); return true; } folder = getFullName(commandLine.nextToken()); if(currentFolder == folder) { out.println(tag + SP + NO + SP + "You can't delete a folder while you have it selected." ); return true; } try { if( imapHost.deleteMailbox(user, folder)) { out.println(tag + SP + OK + SP + "Delete completed"); } else { out.println(tag + SP + NO + SP + "Delete failed, unknown error"); getLogger().info("Attempt to delete mailbox " + folder + " by user " + user + " failed."); } } catch (MailboxException mbe) { if (mbe.getStatus().equals(MailboxException.NOT_LOCAL)) { out.println(tag + SP + NO_NOTLOCAL_MSG); } else { out.println(tag + SP + NO + SP + mbe.getMessage() ); } return true; } catch (AuthorizationException aze) { out.println(tag + SP + NO + SP + "You do not have the rights to delete mailbox: " + folder); logAZE(aze); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; } else if (command.equalsIgnoreCase("RENAME")) { if (arguments != 4) { out.println(tag + SP + BAD + SP + "Command should be <tag> <RENAME> <oldname> <newname>"); return true; } folder = getFullName(commandLine.nextToken()); String newName = getFullName(commandLine.nextToken()); if(currentFolder == folder) { out.println(tag + SP + NO + SP + "You can't rename a folder while you have it selected." ); return true; } try { if(imapHost.renameMailbox(user, folder, newName)) { out.println(tag + SP + OK + SP + "Rename completed"); } else { out.println(tag + SP + NO + SP + "Rename failed, unknown error"); getLogger().info("Attempt to rename mailbox " + folder + " to " + newName + " by user " + user + " failed."); } } catch (MailboxException mbe) { if (mbe.getStatus().equals(MailboxException.NOT_LOCAL)) { out.println(tag + SP + NO_NOTLOCAL_MSG); } else { out.println(tag + SP + NO + SP + mbe.getMessage() ); } return true; } catch (AuthorizationException aze) { out.println(tag + SP + NO + SP + "You do not have the rights to delete mailbox: " + folder); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; } else if (command.equalsIgnoreCase("SUBSCRIBE")) { if (arguments != 3) { out.println(tag + SP + BAD + SP + "Command should be <tag> <SUBSCRIBE> <mailbox>"); return true; } folder = getFullName(commandLine.nextToken()); try { if( imapHost.subscribe(user, folder) ) { out.println(tag + SP + OK + SP + "Subscribe completed"); } else { out.println(tag + SP + NO + SP + "Unknown error." ); } } catch (MailboxException mbe) { if (mbe.isRemote()) { out.println(tag + SP + NO + SP + "[REFERRAL " + mbe.getRemoteServer() +"]" + SP + "Wrong server. Try remote." ); } else { out.println(tag + SP + NO + SP + "No such mailbox" ); } return true; } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "No such mailbox"); logACE(ace); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; } else if (command.equalsIgnoreCase("UNSUBSCRIBE")) { if (arguments != 3) { out.println(tag + SP + BAD + SP + "Command should be <tag> <UNSUBSCRIBE> <mailbox>"); return true; } folder = getFullName(commandLine.nextToken()); try { if( imapHost.unsubscribe(user, folder) ) { out.println(tag + SP + OK + SP + "Unsubscribe completed"); } else { out.println(tag + SP + NO + SP + "Unknown error." ); } } catch (MailboxException mbe) { if (mbe.isRemote()) { out.println(tag + SP + NO + SP + "[REFERRAL " + mbe.getRemoteServer() +"]" + SP + "Wrong server. Try remote." ); } else { out.println(tag + SP + NO + SP + "No such mailbox" ); } return true; } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "No such mailbox"); logACE(ace); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; } else if (command.equalsIgnoreCase("LIST") || command.equalsIgnoreCase("LSUB")) { if (arguments != 4) { if (command.equalsIgnoreCase("LIST")) { out.println(tag + SP + BAD_LIST_MSG); } else { out.println(tag + SP + BAD_LSUB_MSG); } return true; } if (command.equalsIgnoreCase("LIST")) { subscribeOnly =false; } else { subscribeOnly = true; } String reference = decodeAstring(commandLine.nextToken()); folder = decodeAstring(commandLine.nextToken()); if (reference.equals("")) { reference = currentFolder; } else { reference = getFullName(reference); } Collection list = null; try { list = imapHost.listMailboxes(user, reference, folder, subscribeOnly); if (list == null) { getLogger().debug(tag + SP + NO + SP + command + " unable to interpret mailbox"); out.println(tag + SP + NO + SP + command + " unable to interpret mailbox"); } else if (list.size() == 0) { getLogger().debug("List request matches zero mailboxes: " + commandRaw); out.println(tag + SP + OK + SP + command + " completed"); } else { Iterator it = list.iterator(); while (it.hasNext()) { String listResponse = (String)it.next(); out.println(UNTAGGED + SP + command.toUpperCase() + SP + listResponse); getLogger().debug(UNTAGGED + SP + command.toUpperCase() + SP + listResponse); } out.println(tag + SP + OK + SP + command + " completed"); } } catch (MailboxException mbe) { if (mbe.isRemote()) { out.println(tag + SP + NO + SP + "[REFERRAL " + mbe.getRemoteServer() +"]" + SP + "Wrong server. Try remote." ); } else { out.println(tag + SP + NO + SP + "No such mailbox" ); } return true; } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "No such mailbox"); logACE(ace); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; } else if (command.equalsIgnoreCase("STATUS")) { if (arguments < 4) { out.println(tag + SP + BAD + SP + "Command should be <tag> <STATUS> <mailboxname> (status data items)"); return true; } folder = getFullName(commandLine.nextToken()); List dataNames = new ArrayList(); String attr = commandLine.nextToken(); if (! attr.startsWith("(")) { //single attr out.println(tag + SP + BAD + SP + "Command should be <tag> <STATUS> <mailboxname> (status data items)"); return true; } else if (attr.endsWith(")")){ //single attr in paranthesis dataNames.add(attr.substring(1, attr.length()-1 )); } else { // multiple attrs dataNames.add(attr.substring(1).trim()); while(commandLine.hasMoreTokens()) { attr = commandLine.nextToken(); if (attr.endsWith(")")) { dataNames.add(attr.substring(0, attr.length()-1 )); } else { dataNames.add(attr); } } } try { String response = imapHost.getMailboxStatus(user, folder, dataNames); out.println(UNTAGGED + " STATUS " + folder + " (" + response + ")"); out.println(tag + SP + OK + SP + "Status completed"); } catch (MailboxException mbe) { if (mbe.isRemote()) { out.println(tag + SP + NO + SP + "[REFERRAL " + mbe.getRemoteServer() +"]" + SP + "Wrong server. Try remote." ); } else { out.println(tag + SP + NO + SP + "No such mailbox" ); } return true; } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "No such mailbox"); logACE(ace); return true; } if (state == SELECTED ) { checkSize(); checkExpunge(); } return true; } else if (command.equalsIgnoreCase("APPEND")) { if (true) { out.println(tag + SP + BAD + SP + "Append Command not yet implemented."); return true; } } } // end of Auth & Selected // Commands valid only in Authenticated State // None if (state == AUTHENTICATED) { out.println(tag + SP + BAD + SP + "Command not valid in this state"); return true; } // Commands valid only in Selected state // CHECK if (state == SELECTED) { if (command.equalsIgnoreCase("CHECK")) { if (currentMailbox.checkpoint()) { out.println(tag + SP + OK + SP + "Check completed"); checkSize(); checkExpunge(); return true; } else { out.println(tag + SP + NO + SP + "Check failed"); return true; } } else if (command.equalsIgnoreCase("CLOSE")) { try { currentMailbox.expunge(user); } catch (Exception e) { getLogger().error("Exception while expunging mailbox on CLOSE : " + e); } currentMailbox.removeMailboxEventListener(this); imapHost.releaseMailbox(user, currentMailbox); state = AUTHENTICATED; currentMailbox = null; currentIsReadOnly = false; out.println(tag + SP + OK + SP + "CLOSE completed"); return true; } else if (command.equalsIgnoreCase("COPY")) { if (arguments < 4) { out.println(tag + SP + BAD + SP + "Command should be <tag> <COPY> <message set> <mailbox name>"); return true; } List set = decodeSet(commandLine.nextToken(), currentMailbox.getExists()); getLogger().debug("Fetching message set of size: " + set.size()); String targetFolder = getFullName(commandLine.nextToken()); ACLMailbox targetMailbox = getBox(user, targetFolder); if (targetMailbox == null) { return true; } try { // long tries clause against an AccessControlException if (!currentMailbox.hasInsertRights(user)) { out.println(tag + SP + NO + SP + "Insert access not granted." ); return true; } for (int i = 0; i < set.size(); i++) { int msn = ((Integer)set.get(i)).intValue(); MessageAttributes attrs = currentMailbox.getMessageAttributes(msn, user); } } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "No such mailbox."); logACE(ace); return true; } catch (AuthorizationException aze) { out.println(tag + SP + NO + SP + "You do not have the rights to expunge mailbox: " + folder); logAZE(aze); return true; } out.println(tag + SP + OK + SP + "CLOSE completed"); return true; } else if (command.equalsIgnoreCase("EXPUNGE")) { try { if(currentMailbox.expunge(user)) { checkExpunge(); checkSize(); out.println(tag + SP + OK + SP + "EXPUNGE complete."); } else { out.println(tag + SP + NO + SP + "Unknown server error."); } return true; } catch (AccessControlException ace) { out.println(tag + SP + NO + SP + "No such mailbox"); logACE(ace); return true; } catch (AuthorizationException aze) { out.println(tag + SP + NO + SP + "You do not have the rights to expunge mailbox: " + folder); logAZE(aze); return true; } catch (Exception e) { out.println(tag + SP + NO + SP + "Unknown server error."); getLogger().error("Exception expunging mailbox " + folder + " by user " + user + " was : " + e); if (DEEP_DEBUG) {e.printStackTrace();} return true; } } else if (command.equalsIgnoreCase("FETCH")) { if (arguments < 4) { out.println(tag + SP + BAD + SP + "Command should be <tag> <FETCH> <message set> <message data item names>"); return true; } CommandFetch fetcher = new CommandFetch(); fetcher.setLogger(logger); fetcher.setRequest(request); fetcher.service(); return true; // end of FETCH } else if (command.equalsIgnoreCase("STORE")) { if (arguments < 5) { out.println(tag + SP + BAD + SP + "Command should be <tag> <STORE> <message set> <message data item names> <value for message data item>"); return true; } //storeCommand(commandLine, false); CommandStore storer = new CommandStore(); storer.setLogger(logger); storer.setRequest(request); storer.service(); return true; } else if (command.equalsIgnoreCase("UID")) { if (arguments < 4) { out.println(tag + SP + BAD + SP + "Command should be <tag> <UID> <command> <command parameters>"); return true; } String uidCommand = commandLine.nextToken(); if (uidCommand.equalsIgnoreCase("STORE")) { //storeCommand(commandLine, true); CommandStore storer = new CommandStore(); storer.setLogger(logger); storer.setRequest(request); storer.service(); return true; } else if (uidCommand.equalsIgnoreCase("FETCH")) { CommandFetch fetcher = new CommandFetch(); fetcher.setLogger(logger); fetcher.setRequest(request); fetcher.service(); return true; } } else { // Other commands for selected state ..... out.println(tag + SP + BAD + SP + "Protocol error"); return true; } // end state SELECTED } // Shouldn't happen out.println(tag + SP + BAD + SP + "Protocol error"); return true; } // end of parseCommand
|
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/6bd6b60c1ec9eb36cbeb8b8d4b785045b6145721/SingleThreadedConnectionHandler.java/buggy/trunk/src/org/apache/james/imapserver/SingleThreadedConnectionHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1109,
2189,
12,
780,
1024,
13,
288,
3639,
1296,
4809,
273,
1024,
31,
3639,
514,
3009,
273,
446,
31,
3639,
514,
1296,
273,
446,
31,
3639,
1250,
9129,
3386,
273,
629,
31,
3639,
309,
261,
3076,
4809,
422,
446,
13,
327,
629,
31,
3639,
368,
3639,
7156,
7675,
4148,
2932,
2189,
1950,
1385,
2155,
30,
315,
397,
1296,
4809,
397,
315,
628,
315,
397,
2632,
2594,
3639,
368,
6647,
397,
12452,
397,
2632,
2579,
225,
397,
7310,
1769,
3639,
368,
780,
1296,
273,
1296,
4809,
18,
5290,
5621,
3639,
16370,
20894,
273,
394,
16370,
12,
3076,
4809,
18,
5290,
9334,
315,
315,
1769,
3639,
509,
1775,
273,
20894,
18,
1883,
5157,
5621,
3639,
309,
261,
7099,
422,
374,
13,
288,
5411,
327,
638,
31,
3639,
289,
469,
288,
5411,
514,
1842,
273,
20894,
18,
4285,
1345,
5621,
5411,
309,
261,
3813,
18,
2469,
1435,
411,
1728,
13,
288,
759,
333,
12349,
1879,
5748,
525,
1683,
18,
7734,
368,
732,
1410,
1954,
326,
1047,
2939,
7734,
1047,
273,
1842,
31,
5411,
289,
469,
288,
7734,
596,
18,
8222,
12,
5321,
1781,
31602,
397,
11405,
397,
16467,
397,
11405,
397,
315,
2692,
4885,
1525,
8863,
7734,
327,
638,
31,
5411,
289,
3639,
289,
3639,
309,
261,
7099,
405,
404,
13,
288,
5411,
514,
1842,
273,
20894,
18,
4285,
1345,
5621,
5411,
309,
261,
3813,
18,
2469,
1435,
411,
5958,
13,
288,
759,
333,
12349,
1879,
5748,
525,
1683,
18,
7734,
368,
732,
3377,
1954,
326,
1296,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1109,
2189,
12,
780,
1024,
13,
288,
3639,
1296,
4809,
273,
1024,
31,
3639,
514,
3009,
273,
446,
31,
3639,
514,
1296,
273,
446,
31,
3639,
1250,
9129,
3386,
273,
629,
31,
3639,
309,
261,
3076,
4809,
422,
446,
13,
327,
629,
31,
3639,
368,
3639,
7156,
7675,
4148,
2932,
2189,
1950,
1385,
2155,
30,
315,
397,
1296,
4809,
397,
315,
628,
315,
397,
2632,
2594,
3639,
368,
6647,
397,
12452,
397,
2632,
2579,
225,
397,
7310,
1769,
3639,
368,
780,
1296,
273,
1296,
4809,
18,
5290,
5621,
3639,
16370,
20894,
273,
394,
16370,
12,
3076,
4809,
18,
5290,
9334,
315,
315,
1769,
3639,
509,
1775,
273,
20894,
18,
1883,
5157,
5621,
3639,
309,
261,
7099,
2
] |
sSubType = ( (Button) cmpTypeButtons.getChildren( )[0] ).getText( );
|
sSubType = getSubtypeFromButton( cmpTypeButtons.getChildren( )[0] );
|
private void setDefaultSubtypeSelection( ) { if ( sSubType == null ) { ( (Button) cmpTypeButtons.getChildren( )[0] ).setSelection( true ); sSubType = ( (Button) cmpTypeButtons.getChildren( )[0] ).getText( ); } else { Control[] buttons = cmpTypeButtons.getChildren( ); boolean bSelected = false; for ( int iB = 0; iB < buttons.length; iB++ ) { if ( ( (Button) buttons[iB] ).getText( ).equals( sSubType ) ) { ( (Button) buttons[iB] ).setSelection( true ); bSelected = true; break; } } // If specified subType is not found, select default if ( !bSelected ) { ( (Button) cmpTypeButtons.getChildren( )[0] ).setSelection( true ); sSubType = ( (Button) cmpTypeButtons.getChildren( )[0] ).getText( ); } } cmpTypeButtons.redraw( ); }
|
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/656f6c2244f0db2df6bba6efcc9001a3797b8f0b/TaskSelectType.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/TaskSelectType.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
9277,
1676,
723,
6233,
12,
262,
202,
95,
202,
202,
430,
261,
272,
30511,
422,
446,
262,
202,
202,
95,
1082,
202,
12,
261,
3616,
13,
9411,
559,
14388,
18,
588,
4212,
12,
262,
63,
20,
65,
262,
18,
542,
6233,
12,
638,
11272,
1082,
202,
87,
30511,
273,
261,
261,
3616,
13,
9411,
559,
14388,
18,
588,
4212,
12,
262,
63,
20,
65,
262,
18,
588,
1528,
12,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
3367,
8526,
9502,
273,
9411,
559,
14388,
18,
588,
4212,
12,
11272,
1082,
202,
6494,
324,
7416,
273,
629,
31,
1082,
202,
1884,
261,
509,
277,
38,
273,
374,
31,
277,
38,
411,
9502,
18,
2469,
31,
277,
38,
9904,
262,
1082,
202,
95,
9506,
202,
430,
261,
261,
261,
3616,
13,
9502,
63,
17632,
65,
262,
18,
588,
1528,
12,
262,
18,
14963,
12,
272,
30511,
262,
262,
9506,
202,
95,
6862,
202,
12,
261,
3616,
13,
9502,
63,
17632,
65,
262,
18,
542,
6233,
12,
638,
11272,
6862,
202,
70,
7416,
273,
638,
31,
6862,
202,
8820,
31,
9506,
202,
97,
1082,
202,
97,
1082,
202,
759,
971,
1269,
27084,
353,
486,
1392,
16,
2027,
805,
1082,
202,
430,
261,
401,
70,
7416,
262,
1082,
202,
95,
9506,
202,
12,
261,
3616,
13,
9411,
559,
14388,
18,
588,
4212,
12,
262,
63,
20,
65,
262,
18,
542,
6233,
12,
638,
11272,
9506,
202,
87,
30511,
273,
261,
261,
3616,
13,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
9277,
1676,
723,
6233,
12,
262,
202,
95,
202,
202,
430,
261,
272,
30511,
422,
446,
262,
202,
202,
95,
1082,
202,
12,
261,
3616,
13,
9411,
559,
14388,
18,
588,
4212,
12,
262,
63,
20,
65,
262,
18,
542,
6233,
12,
638,
11272,
1082,
202,
87,
30511,
273,
261,
261,
3616,
13,
9411,
559,
14388,
18,
588,
4212,
12,
262,
63,
20,
65,
262,
18,
588,
1528,
12,
11272,
202,
202,
97,
202,
202,
12107,
202,
202,
95,
1082,
202,
3367,
8526,
9502,
273,
9411,
559,
14388,
18,
588,
4212,
12,
11272,
1082,
202,
6494,
324,
7416,
273,
629,
31,
1082,
202,
1884,
261,
509,
277,
38,
273,
374,
31,
277,
38,
411,
9502,
2
] |
public static void maybeCreateFproxyEtc(Node node, Config config) {
|
public static void maybeCreateFproxyEtc(Node node, Config config) throws IOException {
|
public static void maybeCreateFproxyEtc(Node node, Config config) { SubConfig fproxyConfig = new SubConfig("fproxy", config); fproxyConfig.register("enabled", true, 1, true, "Enable fproxy?", "Whether to enable fproxy and related HTTP services", new BooleanCallback() { public boolean get() { // TODO Auto-generated method stub return false; } public void set(boolean val) throws InvalidConfigValueException { // TODO Auto-generated method stub } }); SimpleToadletServer server = new SimpleToadletServer(+2000); FproxyToadlet fproxy = new FproxyToadlet(makeClient(RequestStarter.INTERACTIVE_PRIORITY_CLASS)); server.register(fproxy, "/", false); System.out.println("Starting fproxy on port "+(portNumber+2000)); // TODO Auto-generated method stub }
|
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/01c14cd48d872bfb5d34b94395d44bb4bf44316e/FproxyToadlet.java/buggy/src/freenet/clients/http/FproxyToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
6944,
1684,
42,
5656,
41,
5111,
12,
907,
756,
16,
1903,
642,
13,
288,
9506,
202,
1676,
809,
284,
5656,
809,
273,
394,
2592,
809,
2932,
74,
5656,
3113,
642,
1769,
9506,
202,
74,
5656,
809,
18,
4861,
2932,
5745,
3113,
638,
16,
404,
16,
638,
16,
315,
8317,
284,
5656,
35,
3113,
315,
18247,
358,
4237,
284,
5656,
471,
3746,
2239,
4028,
3113,
4697,
202,
2704,
3411,
2428,
1435,
288,
6862,
202,
482,
1250,
336,
1435,
288,
6862,
6862,
9506,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
25083,
202,
2463,
629,
31,
6862,
202,
97,
6862,
202,
482,
918,
444,
12,
6494,
1244,
13,
1216,
1962,
809,
9738,
288,
25083,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
6862,
6862,
1082,
202,
97,
202,
202,
22938,
1082,
3639,
4477,
774,
361,
1810,
2081,
1438,
273,
394,
4477,
774,
361,
1810,
2081,
12,
15,
17172,
1769,
3639,
478,
5656,
774,
361,
1810,
284,
5656,
273,
394,
478,
5656,
774,
361,
1810,
12,
6540,
1227,
12,
691,
510,
14153,
18,
9125,
13301,
67,
19804,
67,
5237,
10019,
3639,
1438,
18,
4861,
12,
74,
5656,
16,
2206,
3113,
629,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
11715,
284,
5656,
603,
1756,
13773,
12,
655,
1854,
15,
17172,
10019,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
202,
482,
760,
918,
6944,
1684,
42,
5656,
41,
5111,
12,
907,
756,
16,
1903,
642,
13,
288,
9506,
202,
1676,
809,
284,
5656,
809,
273,
394,
2592,
809,
2932,
74,
5656,
3113,
642,
1769,
9506,
202,
74,
5656,
809,
18,
4861,
2932,
5745,
3113,
638,
16,
404,
16,
638,
16,
315,
8317,
284,
5656,
35,
3113,
315,
18247,
358,
4237,
284,
5656,
471,
3746,
2239,
4028,
3113,
4697,
202,
2704,
3411,
2428,
1435,
288,
6862,
202,
482,
1250,
336,
1435,
288,
6862,
6862,
9506,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
25083,
202,
2463,
629,
31,
6862,
202,
97,
6862,
202,
482,
918,
444,
12,
6494,
1244,
13,
1216,
1962,
809,
9738,
288,
25083,
202,
759,
2
] |
if (y.words == null) return times(x, y.ival); if (x.words == null) return times(y, x.ival); boolean negative = false; int[] xwords; int[] ywords; int xlen = x.ival; int ylen = y.ival; if (x.isNegative ()) { negative = true; xwords = new int[xlen]; negate(xwords, x.words, xlen); } else { negative = false; xwords = x.words; } if (y.isNegative ()) { negative = !negative; ywords = new int[ylen]; negate(ywords, y.words, ylen); } else ywords = y.words; if (xlen < ylen) { int[] twords = xwords; xwords = ywords; ywords = twords; int tlen = xlen; xlen = ylen; ylen = tlen; } IntNum result = IntNum.alloc (xlen+ylen); MPN.mul (result.words, xwords, xlen, ywords, ylen); result.ival = xlen+ylen; if (negative) result.setNegative (); return result.canonicalize ();
|
return IntNum.make ((long) x * (long) y);
|
public static final IntNum times (IntNum x, IntNum y) { if (y.words == null) return times(x, y.ival); if (x.words == null) return times(y, x.ival); boolean negative = false; int[] xwords; int[] ywords; int xlen = x.ival; int ylen = y.ival; if (x.isNegative ()) { negative = true; xwords = new int[xlen]; negate(xwords, x.words, xlen); } else { negative = false; xwords = x.words; } if (y.isNegative ()) { negative = !negative; ywords = new int[ylen]; negate(ywords, y.words, ylen); } else ywords = y.words; // Swap if x is shorter then y. if (xlen < ylen) { int[] twords = xwords; xwords = ywords; ywords = twords; int tlen = xlen; xlen = ylen; ylen = tlen; } IntNum result = IntNum.alloc (xlen+ylen); MPN.mul (result.words, xwords, xlen, ywords, ylen); result.ival = xlen+ylen; if (negative) result.setNegative (); return result.canonicalize (); }
|
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/0a93967f8fd105ee3b8e1067b6d6b3c9979828e5/IntNum.java/buggy/gnu/math/IntNum.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
727,
3094,
2578,
4124,
261,
1702,
2578,
619,
16,
3094,
2578,
677,
13,
225,
288,
565,
309,
261,
93,
18,
3753,
422,
446,
13,
1377,
327,
4124,
12,
92,
16,
677,
18,
5162,
1769,
565,
309,
261,
92,
18,
3753,
422,
446,
13,
1377,
327,
4124,
12,
93,
16,
619,
18,
5162,
1769,
565,
1250,
6092,
273,
629,
31,
565,
509,
8526,
619,
3753,
31,
565,
509,
8526,
677,
3753,
31,
565,
509,
619,
1897,
273,
619,
18,
5162,
31,
565,
509,
677,
1897,
273,
677,
18,
5162,
31,
565,
309,
261,
92,
18,
291,
14959,
1832,
13,
1377,
288,
202,
13258,
273,
638,
31,
202,
92,
3753,
273,
394,
509,
63,
92,
1897,
15533,
202,
82,
4784,
12,
92,
3753,
16,
619,
18,
3753,
16,
619,
1897,
1769,
1377,
289,
565,
469,
1377,
288,
202,
13258,
273,
629,
31,
202,
92,
3753,
273,
619,
18,
3753,
31,
1377,
289,
565,
309,
261,
93,
18,
291,
14959,
1832,
13,
1377,
288,
202,
13258,
273,
401,
13258,
31,
202,
93,
3753,
273,
394,
509,
63,
93,
1897,
15533,
202,
82,
4784,
12,
93,
3753,
16,
677,
18,
3753,
16,
677,
1897,
1769,
1377,
289,
565,
469,
1377,
677,
3753,
273,
677,
18,
3753,
31,
565,
368,
12738,
309,
619,
353,
19623,
1508,
677,
18,
565,
309,
261,
92,
1897,
411,
677,
1897,
13,
1377,
288,
202,
474,
8526,
268,
3753,
273,
619,
3753,
31,
225,
619,
3753,
273,
677,
3753,
31,
225,
677,
3753,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
727,
3094,
2578,
4124,
261,
1702,
2578,
619,
16,
3094,
2578,
677,
13,
225,
288,
565,
309,
261,
93,
18,
3753,
422,
446,
13,
1377,
327,
4124,
12,
92,
16,
677,
18,
5162,
1769,
565,
309,
261,
92,
18,
3753,
422,
446,
13,
1377,
327,
4124,
12,
93,
16,
619,
18,
5162,
1769,
565,
1250,
6092,
273,
629,
31,
565,
509,
8526,
619,
3753,
31,
565,
509,
8526,
677,
3753,
31,
565,
509,
619,
1897,
273,
619,
18,
5162,
31,
565,
509,
677,
1897,
273,
677,
18,
5162,
31,
565,
309,
261,
92,
18,
291,
14959,
1832,
13,
1377,
288,
202,
13258,
273,
638,
31,
202,
92,
3753,
273,
394,
509,
63,
92,
1897,
15533,
202,
2
] |
jjmatchedKind = 59;
|
jjmatchedKind = 60;
|
private final int jjStopStringLiteralDfa_5(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x68000L) != 0L) return 2; if ((active0 & 0x30000000L) != 0L) { jjmatchedKind = 59; return 5; } return -1; case 1: if ((active0 & 0x20000L) != 0L) return 0; if ((active0 & 0x30000000L) != 0L) { jjmatchedKind = 59; jjmatchedPos = 1; return 5; } return -1; case 2: if ((active0 & 0x30000000L) != 0L) { jjmatchedKind = 59; jjmatchedPos = 2; return 5; } return -1; case 3: if ((active0 & 0x20000000L) != 0L) { jjmatchedKind = 59; jjmatchedPos = 3; return 5; } if ((active0 & 0x10000000L) != 0L) return 5; return -1; default : return -1; }}
|
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/8e9e155e88430402b0d51d6b344267b73292ca2c/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
4947,
28565,
40,
507,
67,
25,
12,
474,
949,
16,
1525,
2695,
20,
15329,
282,
1620,
261,
917,
13,
282,
288,
1377,
648,
374,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
9470,
3784,
48,
13,
480,
374,
48,
13,
5411,
327,
576,
31,
540,
309,
14015,
3535,
20,
473,
374,
92,
23,
17877,
48,
13,
480,
374,
48,
13,
540,
288,
5411,
10684,
11073,
5677,
273,
4752,
31,
5411,
327,
1381,
31,
540,
289,
540,
327,
300,
21,
31,
1377,
648,
404,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
22,
2787,
48,
13,
480,
374,
48,
13,
5411,
327,
374,
31,
540,
309,
14015,
3535,
20,
473,
374,
92,
23,
17877,
48,
13,
480,
374,
48,
13,
540,
288,
5411,
10684,
11073,
5677,
273,
4752,
31,
5411,
10684,
11073,
1616,
273,
404,
31,
5411,
327,
1381,
31,
540,
289,
540,
327,
300,
21,
31,
1377,
648,
576,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
23,
17877,
48,
13,
480,
374,
48,
13,
540,
288,
5411,
10684,
11073,
5677,
273,
4752,
31,
5411,
10684,
11073,
1616,
273,
576,
31,
5411,
327,
1381,
31,
540,
289,
540,
327,
300,
21,
31,
1377,
648,
890,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
22,
17877,
48,
13,
480,
374,
48,
13,
540,
288,
5411,
10684,
11073,
5677,
273,
4752,
31,
5411,
10684,
11073,
1616,
273,
890,
31,
5411,
327,
1381,
31,
540,
289,
540,
309,
14015,
3535,
20,
473,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
727,
509,
10684,
4947,
28565,
40,
507,
67,
25,
12,
474,
949,
16,
1525,
2695,
20,
15329,
282,
1620,
261,
917,
13,
282,
288,
1377,
648,
374,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
9470,
3784,
48,
13,
480,
374,
48,
13,
5411,
327,
576,
31,
540,
309,
14015,
3535,
20,
473,
374,
92,
23,
17877,
48,
13,
480,
374,
48,
13,
540,
288,
5411,
10684,
11073,
5677,
273,
4752,
31,
5411,
327,
1381,
31,
540,
289,
540,
327,
300,
21,
31,
1377,
648,
404,
30,
540,
309,
14015,
3535,
20,
473,
374,
92,
22,
2787,
48,
13,
480,
374,
48,
13,
5411,
327,
374,
31,
540,
309,
14015,
3535,
20,
473,
374,
92,
23,
17877,
2
] |
IOUtil.copy( fin, fout );
|
IOUtils.copy( fin, fout );
|
public void testReaderToOutputStream() throws Exception { final File destination = newFile( "copy3.txt" ); final FileReader fin = new FileReader( m_testFile ); final FileOutputStream fout = new FileOutputStream( destination ); IOUtil.copy( fin, fout ); //Note: this method *does* flush. It is equivalent to: // final OutputStreamWriter _out = new OutputStreamWriter(fout); // IOUtil.copy( fin, _out, 4096 ); // copy( Reader, Writer, int ); // _out.flush(); // out = fout; // Note: rely on the method to flush checkFile( destination ); checkWrite( fout ); fout.close(); fin.close(); deleteFile( destination ); }
|
56629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56629/0c5ca088c6eafebae485c7a68e7c3017cae3fc59/IOUtilTestCase.java/buggy/src/test/org/apache/commons/io/IOUtilTestCase.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2514,
774,
4632,
1435,
3639,
1216,
1185,
565,
288,
3639,
727,
1387,
2929,
273,
20592,
12,
315,
3530,
23,
18,
5830,
6,
11272,
3639,
727,
23010,
574,
273,
394,
23010,
12,
312,
67,
3813,
812,
11272,
3639,
727,
12942,
17382,
273,
394,
12942,
12,
2929,
11272,
3639,
18044,
18,
3530,
12,
574,
16,
17382,
11272,
3639,
368,
8067,
30,
333,
707,
380,
20657,
14,
3663,
18,
2597,
353,
7680,
358,
30,
3639,
368,
225,
727,
24248,
389,
659,
273,
394,
24248,
12,
617,
322,
1769,
3639,
368,
225,
1665,
1304,
18,
3530,
12,
574,
16,
389,
659,
16,
16797,
11272,
368,
1610,
12,
5393,
16,
5497,
16,
509,
11272,
3639,
368,
225,
389,
659,
18,
11330,
5621,
3639,
368,
225,
596,
273,
17382,
31,
3639,
368,
3609,
30,
21187,
603,
326,
707,
358,
3663,
3639,
866,
812,
12,
2929,
11272,
3639,
866,
3067,
12,
17382,
11272,
3639,
17382,
18,
4412,
5621,
3639,
574,
18,
4412,
5621,
3639,
29485,
12,
2929,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
2514,
774,
4632,
1435,
3639,
1216,
1185,
565,
288,
3639,
727,
1387,
2929,
273,
20592,
12,
315,
3530,
23,
18,
5830,
6,
11272,
3639,
727,
23010,
574,
273,
394,
23010,
12,
312,
67,
3813,
812,
11272,
3639,
727,
12942,
17382,
273,
394,
12942,
12,
2929,
11272,
3639,
18044,
18,
3530,
12,
574,
16,
17382,
11272,
3639,
368,
8067,
30,
333,
707,
380,
20657,
14,
3663,
18,
2597,
353,
7680,
358,
30,
3639,
368,
225,
727,
24248,
389,
659,
273,
394,
24248,
12,
617,
322,
1769,
3639,
368,
225,
1665,
1304,
18,
3530,
12,
574,
16,
389,
659,
16,
16797,
11272,
368,
1610,
12,
5393,
16,
5497,
16,
509,
11272,
3639,
368,
225,
389,
659,
18,
2
] |
return o instanceof DeletionSchedulePolicy; }
|
return o instanceof DeletionSchedulePolicy; }
|
public boolean execute(Object o) { return o instanceof DeletionSchedulePolicy; }
|
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/46a0952e9d0258158e45e411efd95f01195b7c17/DeletionPlugin.java/buggy/core/src/org/cougaar/core/plugin/deletion/DeletionPlugin.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1836,
12,
921,
320,
13,
288,
1377,
327,
320,
1276,
31642,
6061,
2582,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1836,
12,
921,
320,
13,
288,
1377,
327,
320,
1276,
31642,
6061,
2582,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
service.printWSDL(System.out);
|
service.printWSDL(System.out, null);
|
public void testServiceCreate() throws AxisFault { AxisConfiguration axisConfig = configContext.getAxisConfiguration(); AxisService service = Utils.createService("org.apache.axis2.engine.MyService", axisConfig); assertNotNull(service); axisConfig.addService(service); assertEquals("MyService", service.getName()); AxisOperation axisOperation = service.getOperation(new QName("add")); assertNotNull(axisOperation); AxisMessage messge = axisOperation.getMessage(WSDLConstants.MESSAGE_LABEL_IN_VALUE); // messge.getSchemaElement().toString() assertNotNull(messge); assertNotNull(messge.getSchemaElement()); assertNotNull(service.getOperation(new QName("putValue"))); assertNotNull(axisConfig.getService("MyService")); service.printWSDL(System.out); RPCServiceClient client = new RPCServiceClient(clinetConfigurationctx, null); EndpointReference targetEPR = new EndpointReference( "http://127.0.0.1:" + (UtilServer.TESTING_PORT) + "/axis2/services/MyService/add"); Options options = new Options(); options.setTo(targetEPR); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); client.setOptions(options); ArrayList args = new ArrayList(); args.add("100"); args.add("200"); OMElement response = client.invokeBlocking(new QName("http://org.apache.axis2/xsd", "add", "ns1"), args.toArray()); assertEquals(Integer.parseInt(response.getFirstElement().getText()), 300); }
|
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/1e3cee68c94f4e2e597732310d908867f17eb3ff/ServiceCreateTest.java/clean/modules/integration/test/org/apache/axis2/engine/ServiceCreateTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1179,
1684,
1435,
1216,
15509,
7083,
288,
3639,
15509,
1750,
2654,
809,
273,
642,
1042,
18,
588,
6558,
1750,
5621,
3639,
15509,
1179,
1156,
273,
6091,
18,
2640,
1179,
2932,
3341,
18,
19211,
18,
4890,
22,
18,
8944,
18,
12062,
1179,
3113,
2654,
809,
1769,
3639,
25395,
12,
3278,
1769,
3639,
2654,
809,
18,
1289,
1179,
12,
3278,
1769,
3639,
1815,
8867,
2932,
12062,
1179,
3113,
1156,
18,
17994,
10663,
3639,
15509,
2988,
2654,
2988,
273,
1156,
18,
588,
2988,
12,
2704,
16723,
2932,
1289,
7923,
1769,
3639,
25395,
12,
4890,
2988,
1769,
3639,
15509,
1079,
12755,
908,
273,
2654,
2988,
18,
24906,
12,
2651,
8914,
2918,
18,
8723,
67,
13545,
67,
706,
67,
4051,
1769,
3639,
368,
12755,
908,
18,
588,
3078,
1046,
7675,
10492,
1435,
3639,
25395,
12,
81,
403,
908,
1769,
3639,
25395,
12,
81,
403,
908,
18,
588,
3078,
1046,
10663,
3639,
25395,
12,
3278,
18,
588,
2988,
12,
2704,
16723,
2932,
458,
620,
6,
3719,
1769,
3639,
25395,
12,
4890,
809,
18,
588,
1179,
2932,
12062,
1179,
7923,
1769,
3639,
1156,
18,
1188,
2651,
8914,
12,
3163,
18,
659,
16,
446,
1769,
3639,
8295,
1179,
1227,
1004,
273,
394,
8295,
1179,
1227,
12,
830,
23864,
1750,
5900,
16,
446,
1769,
3639,
6961,
2404,
1018,
41,
8025,
273,
394,
6961,
2404,
12,
7734,
315,
2505,
2207,
14260,
18,
20,
18,
20,
18,
21,
2773,
397,
261,
1304,
2081,
18,
16961,
1360,
67,
6354,
13,
13491,
397,
2206,
4890,
22,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1179,
1684,
1435,
1216,
15509,
7083,
288,
3639,
15509,
1750,
2654,
809,
273,
642,
1042,
18,
588,
6558,
1750,
5621,
3639,
15509,
1179,
1156,
273,
6091,
18,
2640,
1179,
2932,
3341,
18,
19211,
18,
4890,
22,
18,
8944,
18,
12062,
1179,
3113,
2654,
809,
1769,
3639,
25395,
12,
3278,
1769,
3639,
2654,
809,
18,
1289,
1179,
12,
3278,
1769,
3639,
1815,
8867,
2932,
12062,
1179,
3113,
1156,
18,
17994,
10663,
3639,
15509,
2988,
2654,
2988,
273,
1156,
18,
588,
2988,
12,
2704,
16723,
2932,
1289,
7923,
1769,
3639,
25395,
12,
4890,
2988,
1769,
3639,
15509,
1079,
12755,
908,
273,
2654,
2988,
18,
24906,
12,
2651,
8914,
2918,
18,
8723,
67,
13545,
67,
706,
67,
4051,
2
] |
TestSuite suite = new TestSuite();
|
TestSuite suite = new TestSuite(AllCoreTests.class.getName());
|
public static Test suite() { TestSuite suite = new TestSuite(); // Just add more test cases here as you create them for // each class being tested suite.addTest(CModelTests.suite()); suite.addTest(CModelExceptionTest.suite()); suite.addTest(FlagTests.suite()); suite.addTest(ArchiveTests.suite()); suite.addTest(TranslationUnitTests.suite()); return suite; }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/362dd4967630eb86b5c5664d7bff2c31c070d737/AllCoreTests.java/buggy/core/org.eclipse.cdt.ui.tests/model/org/eclipse/cdt/core/model/tests/AllCoreTests.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
3639,
7766,
13587,
11371,
273,
394,
7766,
13587,
12,
1595,
4670,
14650,
18,
1106,
18,
17994,
10663,
3639,
368,
12526,
527,
1898,
1842,
6088,
2674,
487,
1846,
752,
2182,
364,
540,
368,
1517,
667,
3832,
18432,
7734,
11371,
18,
1289,
4709,
12,
39,
1488,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
39,
1488,
503,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
4678,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
7465,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
6717,
2802,
14650,
18,
30676,
10663,
3639,
327,
11371,
31,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
3639,
7766,
13587,
11371,
273,
394,
7766,
13587,
12,
1595,
4670,
14650,
18,
1106,
18,
17994,
10663,
3639,
368,
12526,
527,
1898,
1842,
6088,
2674,
487,
1846,
752,
2182,
364,
540,
368,
1517,
667,
3832,
18432,
7734,
11371,
18,
1289,
4709,
12,
39,
1488,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
39,
1488,
503,
4709,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
4678,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
7465,
14650,
18,
30676,
10663,
3639,
11371,
18,
1289,
4709,
12,
6717,
2802,
14650,
18,
30676,
10663,
3639,
327,
11371,
31,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
ExponentialLaw expo = new ExponentialLaw(Double.parseDouble(args[0]));
|
ProActiveConfiguration.load(); RandomNumberGenerator expo = RandomNumberFactory.getGenerator("lambda"); expo.initialize(Double.parseDouble(args[0]));
|
public static void main(String[] args) { if (args.length < 5) { System.out.println( "Usage: java modelisation.Main <lambda> <nu> <destinationFile> <creationNode> <benchLength>"); System.exit(-1); } ExponentialLaw expo = new ExponentialLaw(Double.parseDouble(args[0])); LocationServer s = null; NodeControler auto = new NodeControler(); System.out.println("Test: looking up for the server"); System.out.println( "Test: using lambda = " + args[0] + " nu = " + args[1]); if (!auto.startAllNodes(auto.readDestinationFile(args[2]), "")) { auto.killAllProcess(); System.err.println("Error creating nodes, aborting"); System.exit(-1); } Bench.initialise(auto); // System.exit(-1); // System.out.println("Looking up location server"); // try { // s = (LocationServer)ProActive.lookupActive("org.objectweb.proactive.core.util.Server", args[3]); // } catch (Exception e) { // e.printStackTrace(); // } // System.out.println("Location server found"); // System.out.println("Test: calling initialize on ObjectWithoutForwarder with parameter class " + s.getClass().getName()); //Reading the destination file Node[] nodes = Bench.readDestinationFile(args[2]); System.out.println("NODES IN MAIN = " + nodes.length); // System.exit(-1); // obj1.initialize(nodes); //Bench.mesureRequestCost(obj1, 1000); AgentWithExponentialMigrationAndServer agent = Bench.startExponentialAgent(Double.parseDouble( args[1]), nodes, args[3], Long.parseLong( args[4])); try { Thread.sleep(2000); } catch (Exception e) { e.printStackTrace(); } System.out.println("Calling agent.start()"); agent.start(); Long benchTime = Long.valueOf(args[4]); try { Thread.sleep(2000); } catch (Exception e) { e.printStackTrace(); } Bench bench = null; Object[] param = new Object[] { agent, expo, benchTime }; try { bench = (Bench)ProActive.newActive(Bench.class.getName(), param, null, null, TimedLocationServerMetaObjectFactory.newInstance()); } catch (Exception e) { e.printStackTrace(); } // while ((System.currentTimeMillis() - startTime) < benchTime) { // try { // Thread.sleep((int)(expo.rand() * 1000)); // } catch (Exception e) { // e.printStackTrace(); // } // System.out.println("BenchXX: calling the agent "); // agent.echo(); // System.gc(); // } // auto.killAllProcess(); // System.exit(0); }
|
23362 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/23362/c171c3550f70b496c1228bbed45f5f8feea45a9c/Bench.java/buggy/src/modelisation/server/Bench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
1381,
13,
288,
5411,
2332,
18,
659,
18,
8222,
12,
10792,
315,
5357,
30,
2252,
938,
10742,
18,
6376,
225,
411,
14661,
34,
411,
13053,
34,
411,
10590,
812,
34,
411,
17169,
907,
34,
411,
22144,
1782,
2984,
1769,
5411,
2332,
18,
8593,
19236,
21,
1769,
3639,
289,
540,
1186,
3896,
1750,
18,
945,
5621,
225,
8072,
1854,
3908,
1329,
83,
273,
8072,
1854,
1733,
18,
588,
3908,
2932,
14661,
8863,
1329,
83,
18,
11160,
12,
5265,
18,
2670,
5265,
12,
1968,
63,
20,
5717,
1769,
540,
7050,
2081,
272,
273,
446,
31,
3639,
2029,
660,
303,
749,
3656,
273,
394,
2029,
660,
303,
749,
5621,
3639,
2332,
18,
659,
18,
8222,
2932,
4709,
30,
7849,
731,
364,
326,
1438,
8863,
3639,
2332,
18,
659,
18,
8222,
12,
7734,
315,
4709,
30,
1450,
3195,
273,
315,
397,
833,
63,
20,
65,
397,
315,
9244,
273,
315,
397,
833,
63,
21,
19226,
3639,
309,
16051,
6079,
18,
1937,
1595,
3205,
12,
6079,
18,
896,
5683,
812,
12,
1968,
63,
22,
65,
3631,
1408,
3719,
288,
5411,
3656,
18,
16418,
1595,
2227,
5621,
5411,
2332,
18,
370,
18,
8222,
2932,
668,
4979,
2199,
16,
6263,
310,
8863,
5411,
2332,
18,
8593,
19236,
21,
1769,
3639,
289,
3639,
605,
7382,
18,
6769,
784,
12,
6079,
1769,
3639,
368,
282,
2332,
18,
8593,
19236,
21,
1769,
3639,
368,
282,
2332,
18,
659,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
309,
261,
1968,
18,
2469,
411,
1381,
13,
288,
5411,
2332,
18,
659,
18,
8222,
12,
10792,
315,
5357,
30,
2252,
938,
10742,
18,
6376,
225,
411,
14661,
34,
411,
13053,
34,
411,
10590,
812,
34,
411,
17169,
907,
34,
411,
22144,
1782,
2984,
1769,
5411,
2332,
18,
8593,
19236,
21,
1769,
3639,
289,
540,
1186,
3896,
1750,
18,
945,
5621,
225,
8072,
1854,
3908,
1329,
83,
273,
8072,
1854,
1733,
18,
588,
3908,
2932,
14661,
8863,
1329,
83,
18,
11160,
12,
5265,
18,
2670,
5265,
12,
1968,
63,
20,
5717,
1769,
540,
7050,
2081,
272,
273,
446,
31,
3639,
2029,
660,
303,
749,
3656,
273,
394,
2
] |
if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments");
|
if (data[0] instanceof PAToken) { patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("length: wrong arguments"); } size = ( (String) patoken.value).length();
|
public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } context.dictionaries.push(data[0]); }
|
4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/d2f614f1cabfa6f585b4e67b060a3e4e49a9f71e/PAContext.java/clean/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,
501,
273,
819,
18,
5120,
3542,
5708,
12,
21,
1769,
3639,
309,
16051,
261,
892,
63,
20,
65,
1276,
4317,
3719,
288,
1850,
604,
394,
453,
11606,
503,
2932,
21530,
1775,
8863,
3639,
289,
3639,
819,
18,
72,
14336,
18,
6206,
12,
892,
63,
20,
19226,
1377,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1033,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
3542,
5708,
12,
21,
1769,
3639,
309,
16051,
261,
892,
63,
20,
65,
1276,
4317,
3719,
288,
1850,
604,
394,
453,
11606,
503,
2932,
21530,
1775,
8863,
3639,
289,
3639,
819,
18,
72,
14336,
18,
6206,
12,
892,
63,
20,
19226,
1377,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
mechW.setSize(210, 320);
|
mechW.setSize(210, 340); mechW.setResizable(false);
|
public Client(Frame frame, String playername) { this.frame = frame; this.name = playername; gameListeners = new Vector(); serverName = null; max_players = -1; local_pn = -1; game = new Game(); bv = new BoardView1(game, frame);// bc = new BoardComponent(bv); cb = new ChatterBox(this); mechW = new Dialog(frame, "Mech Display", false); mechW.setSize(210, 320); mechD = new MechDisplay(); mechW.add(mechD); gameSettings = new GameSettings(); changePhase(Game.PHASE_UNKNOWN); // layout setLayout(new BorderLayout()); frame.setTitle(playername + " - MegaMek"); // report frame reportFrame = new Frame("MegaMek Reports"); reportFrame.setSize(400, 600); //reportFrame.setVisible(true); }
|
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/585c49f581f347ac64afe3680002928abc132fee/Client.java/clean/megamek/src/megamek/client/Client.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2445,
12,
3219,
2623,
16,
514,
7291,
529,
13,
288,
3639,
333,
18,
3789,
273,
2623,
31,
3639,
333,
18,
529,
273,
7291,
529,
31,
3639,
7920,
5583,
273,
394,
5589,
5621,
13491,
10926,
273,
446,
31,
3639,
943,
67,
1601,
414,
273,
300,
21,
31,
3639,
1191,
67,
7449,
273,
300,
21,
31,
13491,
7920,
273,
394,
14121,
5621,
3639,
18021,
273,
394,
17980,
1060,
1767,
21,
12,
13957,
16,
2623,
1769,
759,
3639,
6533,
273,
394,
17980,
1060,
1841,
12,
70,
90,
1769,
3639,
2875,
273,
394,
1680,
9293,
3514,
12,
2211,
1769,
3639,
1791,
343,
59,
273,
394,
17242,
12,
3789,
16,
315,
4667,
343,
9311,
3113,
629,
1769,
3639,
1791,
343,
59,
18,
542,
1225,
12,
22,
2163,
16,
890,
7132,
1769,
1791,
343,
59,
18,
542,
607,
6934,
12,
5743,
1769,
3639,
1791,
343,
40,
273,
394,
7499,
343,
4236,
5621,
3639,
1791,
343,
59,
18,
1289,
12,
3501,
343,
40,
1769,
10792,
7920,
2628,
273,
394,
14121,
2628,
5621,
3639,
2549,
11406,
12,
12496,
18,
8939,
4429,
67,
14737,
1769,
13491,
368,
3511,
3639,
18479,
12,
2704,
30814,
10663,
3639,
2623,
18,
542,
4247,
12,
14872,
529,
397,
315,
300,
490,
11061,
49,
3839,
8863,
7734,
368,
2605,
2623,
3639,
2605,
3219,
273,
394,
8058,
2932,
49,
11061,
49,
3839,
868,
4363,
8863,
3639,
2605,
3219,
18,
542,
1225,
12,
16010,
16,
14707,
1769,
3639,
368,
6006,
3219,
18,
542,
6207,
12,
3767,
1769,
565,
289,
2,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2445,
12,
3219,
2623,
16,
514,
7291,
529,
13,
288,
3639,
333,
18,
3789,
273,
2623,
31,
3639,
333,
18,
529,
273,
7291,
529,
31,
3639,
7920,
5583,
273,
394,
5589,
5621,
13491,
10926,
273,
446,
31,
3639,
943,
67,
1601,
414,
273,
300,
21,
31,
3639,
1191,
67,
7449,
273,
300,
21,
31,
13491,
7920,
273,
394,
14121,
5621,
3639,
18021,
273,
394,
17980,
1060,
1767,
21,
12,
13957,
16,
2623,
1769,
759,
3639,
6533,
273,
394,
17980,
1060,
1841,
12,
70,
90,
1769,
3639,
2875,
273,
394,
1680,
9293,
3514,
12,
2211,
1769,
3639,
1791,
343,
59,
273,
394,
17242,
12,
3789,
16,
315,
4667,
343,
9311,
3113,
629,
1769,
3639,
1791,
343,
59,
18,
2
] |
outArgs, scope);
|
outArgs, calleeScope);
|
public static Object interpret(InterpreterData theData) throws JavaScriptException { Object lhs; Object[] stack = new Object[theData.itsMaxStack]; int stackTop = -1; byte[] iCode = theData.itsICode; int pc = 0; int iCodeLength = theData.itsICodeTop; Object[] local = null; // used for newtemp/usetemp etc. if (theData.itsMaxLocals > 0) local = new Object[theData.itsMaxLocals]; Object[] vars = null; final Scriptable undefined = Undefined.instance; int i = theData.itsVariableTable.size(); if (i > 0) { vars = new Object[i]; for (i = 0; i < theData.itsVariableTable.getParameterCount(); i++) { if (i >= theData.itsInArgs.length) vars[i] = undefined; else vars[i] = theData.itsInArgs[i]; } for ( ; i < vars.length; i++) vars[i] = undefined; } Context cx = theData.itsCX; Scriptable scope = theData.itsScope; if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs; int count; int slot; String name = null; Object[] outArgs; int lIntValue; long lLongValue; int rIntValue; int[] catchStack = null; int[] finallyStack = null; Scriptable[] scopeStack = null; int tryStackTop = 0; if (theData.itsMaxTryDepth > 0) { catchStack = new int[theData.itsMaxTryDepth]; finallyStack = new int[theData.itsMaxTryDepth]; scopeStack = new Scriptable[theData.itsMaxTryDepth]; } /* Save the security domain. Must restore upon normal exit. * If we exit the interpreter loop by throwing an exception, * set cx.interpreterSecurityDomain to null, and require the * catching function to restore it. */ Object savedSecurityDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; Object result = undefined; while (pc < iCodeLength) { try { switch ((int)(iCode[pc] & 0xff)) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : i = getTarget(iCode, pc + 1); if (i == pc) i = 0; catchStack[tryStackTop] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; finallyStack[tryStackTop] = i; scopeStack[tryStackTop++] = scope; pc += 4; break; case TokenStream.GE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(rhs, lhs); break; case TokenStream.LE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LEB(lhs, rhs); break; case TokenStream.GT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(rhs, lhs); break; case TokenStream.LT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.cmp_LTB(lhs, rhs); break; case TokenStream.IN : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean(ScriptRuntime.in(lhs, rhs)); break; case TokenStream.INSTANCEOF : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Boolean( ScriptRuntime.instanceOf(scope, lhs, rhs)); break; case TokenStream.EQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.eqB(rhs, lhs); break; case TokenStream.NE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.neB(lhs, rhs); break; case TokenStream.SHEQ : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.seqB(lhs, rhs); break; case TokenStream.SHNE : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.sneB(lhs, rhs); break; case TokenStream.IFNE : if (!ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : if (ScriptRuntime.toBoolean(stack[stackTop--])) { pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : stack[++stackTop] = new Integer(pc + 3); pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[++pc] & 0xFF); pc = ((Integer)local[slot]).intValue(); continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop--]; break; case TokenStream.RETURN : result = stack[stackTop--]; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(~rIntValue); break; case TokenStream.BITAND : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue & rIntValue); break; case TokenStream.BITOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue | rIntValue); break; case TokenStream.BITXOR : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue ^ rIntValue); break; case TokenStream.LSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue << rIntValue); break; case TokenStream.RSH : rIntValue = ScriptRuntime.toInt32(stack[stackTop--]); lIntValue = ScriptRuntime.toInt32(stack[stackTop]); stack[stackTop] = new Double(lIntValue >> rIntValue); break; case TokenStream.URSH : rIntValue = (ScriptRuntime.toInt32(stack[stackTop--]) & 0x1F); lLongValue = ScriptRuntime.toUint32(stack[stackTop]); stack[stackTop] = new Double(lLongValue >>> rIntValue); break; case TokenStream.ADD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.add(lhs, rhs); break; case TokenStream.SUB : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) - ScriptRuntime.toNumber(rhs)); break; case TokenStream.NEG : rhs = stack[stackTop]; stack[stackTop] = new Double(-ScriptRuntime.toNumber(rhs)); break; case TokenStream.POS : rhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(rhs)); break; case TokenStream.MUL : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) * ScriptRuntime.toNumber(rhs)); break; case TokenStream.DIV : rhs = stack[stackTop--]; lhs = stack[stackTop]; // Detect the divide by zero or let Java do it ? stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) / ScriptRuntime.toNumber(rhs)); break; case TokenStream.MOD : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = new Double(ScriptRuntime.toNumber(lhs) % ScriptRuntime.toNumber(rhs)); break; case TokenStream.BINDNAME : stack[++stackTop] = ScriptRuntime.bind(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.GETBASE : stack[++stackTop] = ScriptRuntime.getBase(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop--]; lhs = stack[stackTop]; // what about class cast exception here ? stack[stackTop] = ScriptRuntime.setName((Scriptable)lhs, rhs, scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop--]; name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getElem(lhs, id, scope); break; case TokenStream.SETELEM : rhs = stack[stackTop--]; id = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setElem(lhs, id, rhs, scope); break; case TokenStream.PROPINC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); local[slot] = lhs; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = local[slot]; break; case TokenStream.CALLSPECIAL : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); name = getString(theData.itsStringTable, iCode, pc + 3); count = (iCode[pc + 5] << 8) | (iCode[pc + 6] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, theData.itsThisObj, scope, name, i); pc += 6; break; case TokenStream.CALL : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; rhs = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, scope); pc += 4; break; case TokenStream.NEW : count = (iCode[pc + 3] << 8) | (iCode[pc + 4] & 0xFF); outArgs = new Object[count]; for (i = count - 1; i >= 0; i--) outArgs[i] = stack[stackTop--]; lhs = stack[stackTop]; if (lhs == undefined) { lhs = getString(theData.itsStringTable, iCode, pc + 1); } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = getString(theData.itsStringTable, iCode, pc + 1); stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = getString(theData.itsStringTable, iCode, pc + 1); pc += 2; break; case TokenStream.NUMBER : stack[++stackTop] = getNumber(theData.itsNumberTable, iCode, pc + 1); pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement(scope, getString(theData.itsStringTable, iCode, pc + 1)); pc += 2; break; case TokenStream.SETVAR : lhs = stack[stackTop]; slot = (iCode[++pc] & 0xFF); vars[slot] = lhs; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postIncrement(vars[slot]); break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = vars[slot]; vars[slot] = ScriptRuntime.postDecrement(vars[slot]); break; case TokenStream.ZERO : stack[++stackTop] = zero; break; case TokenStream.ONE : stack[++stackTop] = one; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = theData.itsThisObj; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : cx.interpreterSecurityDomain = null; throw new JavaScriptException(stack[stackTop--]); case TokenStream.JTHROW : cx.interpreterSecurityDomain = null; lhs = stack[stackTop--]; if (lhs instanceof JavaScriptException) throw (JavaScriptException)lhs; else throw (RuntimeException)lhs; case TokenStream.ENTERWITH : lhs = stack[stackTop--]; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop--]; local[slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); stack[++stackTop] = ScriptRuntime.nextEnum((Enumeration)local[slot]); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop--]; lhs = stack[stackTop]; stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case TokenStream.LINE : i = (iCode[pc + 1] << 8) | (iCode[pc + 2] & 0xFF); cx.interpreterLine = i; pc += 2; break; case TokenStream.SOURCEFILE : cx.interpreterSourceFile = theData.itsSourceFile; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (EcmaError ee) { // an offical ECMA error object, // handle as if it were a JavaScriptException stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw ee; stack[0] = ee.getErrorObject(); } else stack[0] = ee.getErrorObject(); } else throw ee; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (JavaScriptException jsx) { stackTop = 0; cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { pc = catchStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) { pc = finallyStack[tryStackTop]; if (pc == 0) throw jsx; stack[0] = jsx; } else stack[0] = ScriptRuntime.unwrapJavaScriptException(jsx); } else throw jsx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } catch (RuntimeException jx) { cx.interpreterSecurityDomain = null; if (tryStackTop > 0) { stackTop = 0; stack[0] = jx; pc = finallyStack[--tryStackTop]; scope = scopeStack[tryStackTop]; if (pc == 0) throw jx; } else throw jx; // We caught an exception; restore this function's // security domain. cx.interpreterSecurityDomain = theData.securityDomain; } } cx.interpreterSecurityDomain = savedSecurityDomain; return result; }
|
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/3a479188da44f3c7dec47edf7224c5be9738dae8/Interpreter.java/buggy/js/rhino/org/mozilla/javascript/Interpreter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
15533,
3639,
509,
2110,
3401,
273,
300,
21,
31,
3639,
1160,
8526,
277,
1085,
273,
326,
751,
18,
1282,
45,
1085,
31,
7734,
509,
6125,
273,
374,
31,
3639,
509,
277,
1085,
1782,
273,
326,
751,
18,
1282,
45,
1085,
3401,
31,
7734,
1033,
8526,
1191,
273,
446,
31,
3639,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
309,
261,
5787,
751,
18,
1282,
2747,
1333,
1031,
405,
374,
13,
5411,
1191,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
1333,
1031,
15533,
18701,
1033,
8526,
4153,
273,
446,
31,
3639,
727,
22780,
3109,
273,
22243,
18,
1336,
31,
3639,
509,
277,
273,
326,
751,
18,
1282,
3092,
1388,
18,
1467,
5621,
3639,
309,
261,
77,
405,
374,
13,
288,
5411,
4153,
273,
394,
1033,
63,
77,
15533,
5411,
364,
261,
77,
273,
374,
31,
277,
411,
326,
751,
18,
1282,
3092,
1388,
18,
588,
1662,
1380,
5621,
277,
27245,
288,
7734,
309,
261,
77,
1545,
326,
751,
18,
1282,
382,
2615,
18,
2469,
13,
10792,
4153,
63,
77,
65,
273,
3109,
31,
7734,
469,
4766,
565,
4153,
63,
77,
65,
273,
326,
751,
18,
1282,
382,
2615,
63,
77,
15533,
7734,
289,
5411,
364,
261,
274,
277,
411,
4153,
18,
2469,
31,
277,
27245,
7734,
4153,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
10634,
12,
30010,
751,
326,
751,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
1033,
8499,
31,
3639,
1033,
8526,
2110,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2747,
2624,
15533,
3639,
509,
2110,
3401,
273,
300,
21,
31,
3639,
1160,
8526,
277,
1085,
273,
326,
751,
18,
1282,
45,
1085,
31,
7734,
509,
6125,
273,
374,
31,
3639,
509,
277,
1085,
1782,
273,
326,
751,
18,
1282,
45,
1085,
3401,
31,
7734,
1033,
8526,
1191,
273,
446,
31,
3639,
368,
1399,
364,
394,
5814,
19,
407,
278,
30752,
5527,
18,
3639,
309,
261,
5787,
751,
18,
1282,
2747,
1333,
1031,
405,
374,
13,
5411,
1191,
273,
394,
1033,
63,
5787,
751,
18,
1282,
2
] |
if (len != 0) {
|
if (len != 0) {
|
public ObjectId writeObject(final String type, long len, final InputStream is) throws IOException { final File t; final DeflaterOutputStream ts; ObjectId id = null; t = File.createTempFile("noz", null, r.getObjectsDirectory()); ts = new DeflaterOutputStream(new FileOutputStream(t), new Deflater( Deflater.BEST_COMPRESSION)); try { final byte[] header = (type + ' ' + len + '\0').getBytes("UTF-8"); int r; md.update(header); ts.write(header); while (len > 0 && (r = is.read(buf, 0, (int) Math.min(len, buf.length))) > 0) { md.update(buf, 0, r); ts.write(buf, 0, r); len -= r; } if (len != 0) { throw new IOException("Input did not match supplied length. " + len + " bytes are missing."); } ts.close(); t.setReadOnly(); id = new ObjectId(md.digest()); } finally { if (id == null) { md.reset(); try { ts.close(); } finally { t.delete(); } } } if (r.hasObject(id)) { // Object is already in the repository so remove the temporary file. // t.delete(); } else { final File o = r.toFile(id); if (!t.renameTo(o)) { // Maybe the directory doesn't exist yet as the object // directories are always lazilly created. Note that we try the // rename first as the directory likely does exist. // o.getParentFile().mkdir(); if (!t.renameTo(o)) { if (!r.hasObject(id)) { // The object failed to be renamed into its proper // location and it doesn't exist in the repository // either. We really don't know what went wrong, so // fail. // t.delete(); throw new WritingNotSupportedException("Unable to" + " create new object: " + o); } } } } return id; }
|
45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/95e2adba28c9a11f01009dd846fb7366bec613c5/ObjectWriter.java/clean/org.spearce.jgit/src/org/spearce/jgit/lib/ObjectWriter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21192,
16306,
12,
6385,
514,
618,
16,
1525,
562,
16,
5411,
727,
5037,
353,
13,
1216,
1860,
288,
3639,
727,
1387,
268,
31,
3639,
727,
1505,
2242,
2045,
4632,
3742,
31,
3639,
21192,
612,
273,
446,
31,
3639,
268,
273,
1387,
18,
2640,
20181,
2932,
2135,
94,
3113,
446,
16,
436,
18,
588,
4710,
2853,
10663,
3639,
3742,
273,
394,
1505,
2242,
2045,
4632,
12,
2704,
12942,
12,
88,
3631,
394,
1505,
2242,
2045,
12,
7734,
1505,
2242,
2045,
18,
5948,
882,
67,
4208,
14227,
10019,
3639,
775,
288,
5411,
727,
1160,
8526,
1446,
273,
261,
723,
397,
296,
296,
397,
562,
397,
2337,
20,
16063,
588,
2160,
2932,
5159,
17,
28,
8863,
5411,
509,
436,
31,
5411,
3481,
18,
2725,
12,
3374,
1769,
5411,
3742,
18,
2626,
12,
3374,
1769,
5411,
1323,
261,
1897,
405,
374,
10792,
597,
261,
86,
273,
353,
18,
896,
12,
4385,
16,
374,
16,
261,
474,
13,
2361,
18,
1154,
12,
1897,
16,
1681,
18,
2469,
20349,
405,
374,
13,
288,
7734,
3481,
18,
2725,
12,
4385,
16,
374,
16,
436,
1769,
7734,
3742,
18,
2626,
12,
4385,
16,
374,
16,
436,
1769,
7734,
562,
3947,
436,
31,
5411,
289,
5411,
309,
261,
1897,
480,
374,
13,
288,
7734,
604,
394,
1860,
2932,
1210,
5061,
486,
845,
4580,
769,
18,
315,
13491,
397,
562,
397,
315,
1731,
854,
3315,
1199,
1769,
5411,
289,
5411,
3742,
18,
4412,
5621,
5411,
268,
18,
542,
12066,
5621,
5411,
612,
273,
394,
21192,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
21192,
16306,
12,
6385,
514,
618,
16,
1525,
562,
16,
5411,
727,
5037,
353,
13,
1216,
1860,
288,
3639,
727,
1387,
268,
31,
3639,
727,
1505,
2242,
2045,
4632,
3742,
31,
3639,
21192,
612,
273,
446,
31,
3639,
268,
273,
1387,
18,
2640,
20181,
2932,
2135,
94,
3113,
446,
16,
436,
18,
588,
4710,
2853,
10663,
3639,
3742,
273,
394,
1505,
2242,
2045,
4632,
12,
2704,
12942,
12,
88,
3631,
394,
1505,
2242,
2045,
12,
7734,
1505,
2242,
2045,
18,
5948,
882,
67,
4208,
14227,
10019,
3639,
775,
288,
5411,
727,
1160,
8526,
1446,
273,
261,
723,
397,
296,
296,
397,
562,
397,
2337,
20,
16063,
588,
2160,
2932,
5159,
17,
28,
8863,
5411,
509,
436,
31,
2
] |
protected IStatus run(IProgressMonitor monitor) { HashSet disabledPlugins = new HashSet(Arrays .asList(getDisabledEarlyActivatedPlugins())); monitor.beginTask(WorkbenchMessages.Workbench_startingPlugins, extensions.length); for (int i = 0; i < extensions.length; ++i) { if (monitor.isCanceled() || !isRunning()) { return Status.CANCEL_STATUS;
|
public void run() { doRestoreState(memento, result);
|
protected IStatus run(IProgressMonitor monitor) { HashSet disabledPlugins = new HashSet(Arrays .asList(getDisabledEarlyActivatedPlugins())); monitor.beginTask(WorkbenchMessages.Workbench_startingPlugins, extensions.length); for (int i = 0; i < extensions.length; ++i) { if (monitor.isCanceled() || !isRunning()) { return Status.CANCEL_STATUS; } IExtension extension = extensions[i]; // if the plugin is not in the set of disabled plugins, then // execute the code to start it if (!disabledPlugins.contains(extension.getNamespace())) { monitor.subTask(extension.getNamespace()); SafeRunner.run(new EarlyStartupRunnable(extension)); } monitor.worked(1); } monitor.done(); return Status.OK_STATUS; }
|
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/57dd60c7289bee6d44b370d7284a226e5ea06754/Workbench.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
13482,
5673,
9461,
273,
394,
6847,
12,
12726,
25083,
202,
18,
345,
682,
12,
588,
8853,
41,
20279,
28724,
9461,
1435,
10019,
9506,
202,
10259,
18,
10086,
2174,
12,
2421,
22144,
5058,
18,
2421,
22144,
67,
18526,
9461,
16,
25083,
202,
9489,
18,
2469,
1769,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4418,
18,
2469,
31,
965,
77,
13,
288,
6862,
202,
430,
261,
10259,
18,
291,
23163,
1435,
747,
401,
291,
7051,
10756,
288,
25083,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
202,
97,
6862,
202,
45,
3625,
2710,
273,
4418,
63,
77,
15533,
6862,
202,
759,
309,
326,
1909,
353,
486,
316,
326,
444,
434,
5673,
4799,
16,
1508,
6862,
202,
759,
1836,
326,
981,
358,
787,
518,
6862,
202,
430,
16051,
9278,
9461,
18,
12298,
12,
6447,
18,
588,
3402,
1435,
3719,
288,
25083,
202,
10259,
18,
1717,
2174,
12,
6447,
18,
588,
3402,
10663,
25083,
202,
9890,
9709,
18,
2681,
12,
2704,
512,
20279,
22178,
20013,
12,
6447,
10019,
6862,
202,
97,
6862,
202,
10259,
18,
1252,
329,
12,
21,
1769,
9506,
202,
97,
9506,
202,
10259,
18,
8734,
5621,
9506,
202,
2463,
2685,
18,
3141,
67,
8608,
31,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1875,
202,
1117,
467,
1482,
1086,
12,
45,
5491,
7187,
6438,
13,
288,
9506,
202,
13482,
5673,
9461,
273,
394,
6847,
12,
12726,
25083,
202,
18,
345,
682,
12,
588,
8853,
41,
20279,
28724,
9461,
1435,
10019,
9506,
202,
10259,
18,
10086,
2174,
12,
2421,
22144,
5058,
18,
2421,
22144,
67,
18526,
9461,
16,
25083,
202,
9489,
18,
2469,
1769,
9506,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
4418,
18,
2469,
31,
965,
77,
13,
288,
6862,
202,
430,
261,
10259,
18,
291,
23163,
1435,
747,
401,
291,
7051,
10756,
288,
25083,
202,
2463,
2685,
18,
25268,
67,
8608,
31,
6862,
202,
97,
6862,
202,
45,
3625,
2710,
273,
4418,
63,
77,
15533,
6862,
202,
759,
2
] |
this.url = ((HttpResponseTimeRrd) theStore).getUrl();
|
URL url = ((HttpResponseTimeRrd) theStore).getUrl();
|
public HttpGraph(Probe theStore) { super(theStore, gd); this.url = ((HttpResponseTimeRrd) theStore).getUrl(); setGraphTitle(url.toString()); }
|
31637 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31637/df31f25e23eb31d63d5661dd210ce5b973a2787c/HttpGraph.java/clean/src/jrds/graphe/HttpGraph.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2541,
4137,
12,
21042,
326,
2257,
13,
288,
202,
202,
9565,
12,
5787,
2257,
16,
15551,
1769,
202,
202,
2211,
18,
718,
273,
14015,
19520,
950,
54,
13623,
13,
326,
2257,
2934,
588,
1489,
5621,
202,
202,
542,
4137,
4247,
12,
718,
18,
10492,
10663,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2541,
4137,
12,
21042,
326,
2257,
13,
288,
202,
202,
9565,
12,
5787,
2257,
16,
15551,
1769,
202,
202,
2211,
18,
718,
273,
14015,
19520,
950,
54,
13623,
13,
326,
2257,
2934,
588,
1489,
5621,
202,
202,
542,
4137,
4247,
12,
718,
18,
10492,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
res.append("\n Over-replicated blocks:\t" + overReplicatedBlocks + " (" + ((float)(overReplicatedBlocks * 100) / (float)totalBlocks)
|
res.append("\n Over-replicated blocks:\t" + overReplicatedBlocks); if (totalBlocks > 0) res.append(" (" + ((float)(overReplicatedBlocks * 100) / (float)totalBlocks)
|
public String toString() { StringBuffer res = new StringBuffer(); res.append("Status: " + (isHealthy() ? "HEALTHY" : "CORRUPT")); res.append("\n Total size:\t" + totalSize + " B"); res.append("\n Total blocks:\t" + totalBlocks + " (avg. block size " + (totalSize / totalBlocks) + " B)"); res.append("\n Total dirs:\t" + totalDirs); res.append("\n Total files:\t" + totalFiles); if (missingSize > 0) { res.append("\n ********************************"); res.append("\n CORRUPT FILES:\t" + corruptFiles); res.append("\n MISSING BLOCKS:\t" + missingIds.size()); res.append("\n MISSING SIZE:\t\t" + missingSize + " B"); res.append("\n ********************************"); } res.append("\n Over-replicated blocks:\t" + overReplicatedBlocks + " (" + ((float)(overReplicatedBlocks * 100) / (float)totalBlocks) + " %)"); res.append("\n Under-replicated blocks:\t" + underReplicatedBlocks + " (" + ((float)(underReplicatedBlocks * 100) / (float)totalBlocks) + " %)"); res.append("\n Target replication factor:\t" + replication); res.append("\n Real replication factor:\t" + getReplicationFactor()); return res.toString(); }
|
55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/0a03c22b7a4bbc38446a32b7b51606b45933f62e/DFSck.java/buggy/src/java/org/apache/hadoop/dfs/DFSck.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
1377,
6674,
400,
273,
394,
6674,
5621,
1377,
400,
18,
6923,
2932,
1482,
30,
315,
397,
261,
291,
7802,
93,
1435,
692,
315,
3900,
1013,
2455,
61,
6,
294,
315,
9428,
19866,
1856,
7923,
1769,
1377,
400,
18,
6923,
31458,
82,
10710,
963,
5581,
88,
6,
397,
24611,
397,
315,
605,
8863,
1377,
400,
18,
6923,
31458,
82,
10710,
4398,
5581,
88,
6,
397,
2078,
6450,
397,
315,
261,
14141,
18,
1203,
963,
315,
2868,
397,
261,
4963,
1225,
342,
2078,
6450,
13,
397,
315,
605,
2225,
1769,
1377,
400,
18,
6923,
31458,
82,
10710,
7717,
5581,
88,
6,
397,
2078,
9872,
1769,
1377,
400,
18,
6923,
31458,
82,
10710,
1390,
5581,
88,
6,
397,
2078,
2697,
1769,
1377,
309,
261,
7337,
1225,
405,
374,
13,
288,
3639,
400,
18,
6923,
31458,
82,
225,
380,
19482,
11345,
7388,
1769,
3639,
400,
18,
6923,
31458,
82,
225,
28359,
19866,
1856,
7527,
55,
5581,
88,
6,
397,
16899,
2697,
1769,
3639,
400,
18,
6923,
31458,
82,
225,
28695,
14073,
55,
5581,
88,
6,
397,
3315,
2673,
18,
1467,
10663,
3639,
400,
18,
6923,
31458,
82,
225,
28695,
11963,
5581,
88,
64,
88,
6,
397,
3315,
1225,
397,
315,
605,
8863,
3639,
400,
18,
6923,
31458,
82,
225,
380,
19482,
11345,
7388,
1769,
1377,
289,
1377,
400,
18,
6923,
31458,
82,
10752,
17,
266,
20140,
4398,
5581,
88,
6,
397,
1879,
426,
20140,
6450,
2868,
397,
315,
7566,
397,
14015,
5659,
21433,
1643,
426,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
1762,
1435,
288,
1377,
6674,
400,
273,
394,
6674,
5621,
1377,
400,
18,
6923,
2932,
1482,
30,
315,
397,
261,
291,
7802,
93,
1435,
692,
315,
3900,
1013,
2455,
61,
6,
294,
315,
9428,
19866,
1856,
7923,
1769,
1377,
400,
18,
6923,
31458,
82,
10710,
963,
5581,
88,
6,
397,
24611,
397,
315,
605,
8863,
1377,
400,
18,
6923,
31458,
82,
10710,
4398,
5581,
88,
6,
397,
2078,
6450,
397,
315,
261,
14141,
18,
1203,
963,
315,
2868,
397,
261,
4963,
1225,
342,
2078,
6450,
13,
397,
315,
605,
2225,
1769,
1377,
400,
18,
6923,
31458,
82,
10710,
7717,
5581,
88,
6,
397,
2078,
9872,
1769,
1377,
400,
18,
6923,
31458,
82,
10710,
1390,
5581,
88,
2
] |
while(key.length() > 0 && key.charAt(key.length()-1) == ' ')
|
while((key.length() > 0) && (key.charAt(key.length()-1) == ' '))
|
private boolean processLine(BufferedReader reader, OutputStream out) throws IOException { String line; StringBuffer outsb = new StringBuffer(); try { line = reader.readLine(); } catch (IOException e) { outsb.append("Bye... ("+e+")"); System.err.println("Bye... ("+e+")"); return true; } boolean getCHKOnly = false; if(line == null) return true; String uline = line.toUpperCase(); Logger.minor(this, "Command: "+line); if(uline.startsWith("GET:")) { // Should have a key next String key = line.substring("GET:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); Logger.normal(this, "Key: "+uri); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return false; } try { FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // FIXME limit it above if(data.size() > 32*1024) { System.err.println("Data is more than 32K: "+data.size()); outsb.append("Data is more than 32K: "+data.size()); return false; } byte[] dataBytes = BucketTools.toByteArray(data); boolean evil = false; for(int i=0;i<dataBytes.length;i++) { // Look for escape codes if(dataBytes[i] == '\n') continue; if(dataBytes[i] == '\r') continue; if(dataBytes[i] < 32) evil = true; } if(evil) { System.err.println("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); outsb.append("Data may contain escape codes which could cause the terminal to run arbitrary commands! Save it to a file if you must with GETFILE:"); return false; } outsb.append("Data:\r\n"); outsb.append(new String(dataBytes)); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()+"\r\n"); if(e.getMode() == FetchException.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("GETFILE:")) { // Should have a key next String key = line.substring("GETFILE:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); Logger.normal(this, "Key: "+key); FreenetURI uri; try { uri = new FreenetURI(key); } catch (MalformedURLException e2) { outsb.append("Malformed URI: "+key+" : "+e2); return false; } try { long startTime = System.currentTimeMillis(); FetchResult result = client.fetch(uri); ClientMetadata cm = result.getMetadata(); outsb.append("Content MIME type: "+cm.getMIMEType()); Bucket data = result.asBucket(); // Now calculate filename String fnam = uri.getDocName(); fnam = sanitize(fnam); if(fnam.length() == 0) { fnam = "freenet-download-"+HexUtil.bytesToHex(BucketTools.hash(data), 0, 10); String ext = DefaultMIMETypes.getExtension(cm.getMIMEType()); if(ext != null && !ext.equals("")) fnam += "." + ext; } File f = new File(downloadsDir, fnam); if(f.exists()) { outsb.append("File exists already: "+fnam); fnam = "freenet-"+System.currentTimeMillis()+"-"+fnam; } FileOutputStream fos = null; try { fos = new FileOutputStream(f); BucketTools.copyTo(data, fos, Long.MAX_VALUE); fos.close(); outsb.append("Written to "+fnam); } catch (IOException e) { outsb.append("Could not write file: caught "+e); e.printStackTrace(); } finally { if(fos != null) try { fos.close(); } catch (IOException e1) { // Ignore } } long endTime = System.currentTimeMillis(); long sz = data.size(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Download rate: "+rate+" bytes / second"); } catch (FetchException e) { outsb.append("Error: "+e.getMessage()); if(e.getMode() == FetchException.SPLITFILE_ERROR && e.errorCodes != null) { outsb.append(e.errorCodes.toVerboseString()); } if(e.newURI != null) outsb.append("Permanent redirect: "+e.newURI+"\r\n"); } } else if(uline.startsWith("UPDATE")) { outsb.append("starting the update process"); // FIXME run on separate thread n.getNodeUpdater().Update(); return false; }else if(uline.startsWith("BLOW")) { n.getNodeUpdater().blow("caught an IOException : (Incompetent Operator) :p"); return false; } else if(uline.startsWith("SHUTDOWN")) { StringBuffer sb = new StringBuffer(); sb.append("Shutting node down.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.exit(); } else if(uline.startsWith("RESTART")) { StringBuffer sb = new StringBuffer(); sb.append("Restarting the node.\r\n"); out.write(sb.toString().getBytes()); out.flush(); n.getNodeStarter().restart(); } else if(uline.startsWith("QUIT") && n.directTMCI == this) { StringBuffer sb = new StringBuffer(); sb.append("QUIT command not available in console mode.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return false; } else if(uline.startsWith("QUIT")) { StringBuffer sb = new StringBuffer(); sb.append("Closing connection.\r\n"); out.write(sb.toString().getBytes()); out.flush(); return true; } else if(uline.startsWith("HELP")) { printHeader(out); return false; } else if(uline.startsWith("PUT:") || (getCHKOnly = uline.startsWith("GETCHK:"))) { // Just insert to local store if(getCHKOnly) line = line.substring(("GETCHK:").length()); else line = line.substring("PUT:".length()); while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String content; if(line.length() > 0) { // Single line insert content = line; } else { // Multiple line insert content = readLines(reader, false); } // Insert byte[] data = content.getBytes(); InsertBlock block = new InsertBlock(new ArrayBucket(data), null, FreenetURI.EMPTY_CHK_URI); FreenetURI uri; try { uri = client.insert(block, getCHKOnly); } catch (InserterException e) { outsb.append("Error: "+e.getMessage()); if(e.uri != null) outsb.append("URI would have been: "+e.uri); int mode = e.getMode(); if(mode == InserterException.FATAL_ERRORS_IN_BLOCKS || mode == InserterException.TOO_MANY_RETRIES_IN_BLOCKS) { outsb.append("Splitfile-specific error:\n"+e.errorCodes.toVerboseString()); } return false; } outsb.append("URI: "+uri); //////////////////////////////////////////////////////////////////////////////// } else if(uline.startsWith("PUTDIR:") || (uline.startsWith("PUTSSKDIR")) || (getCHKOnly = uline.startsWith("GETCHKDIR:"))) { // TODO: Check for errors? boolean ssk = false; if(uline.startsWith("PUTDIR:")) line = line.substring("PUTDIR:".length()); else if(uline.startsWith("PUTSSKDIR:")) { line = line.substring("PUTSSKDIR:".length()); ssk = true; } else if(uline.startsWith("GETCHKDIR:")) line = line.substring(("GETCHKDIR:").length()); else { System.err.println("Impossible"); outsb.append("Impossible"); } line = line.trim(); if(line.length() < 1) { printHeader(out); return false; } String defaultFile = null; FreenetURI insertURI = FreenetURI.EMPTY_CHK_URI; // set default file? if (line.matches("^.*#.*$")) { String[] split = line.split("#"); if(ssk) { insertURI = new FreenetURI(split[0]); line = split[1]; if(split.length > 2) defaultFile = split[2]; } else { defaultFile = split[1]; line = split[0]; } } HashMap bucketsByName = makeBucketsByName(line); if(defaultFile == null) { String[] defaultFiles = new String[] { "index.html", "index.htm", "default.html", "default.htm" }; for(int i=0;i<defaultFiles.length;i++) { if(bucketsByName.containsKey(defaultFiles[i])) { defaultFile = defaultFiles[i]; break; } } } FreenetURI uri; try { uri = client.insertManifest(insertURI, bucketsByName, defaultFile); uri = uri.addMetaStrings(new String[] { "" }); outsb.append("======================================================="); outsb.append("URI: "+uri); outsb.append("======================================================="); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { uri = e.uri; uri = uri.addMetaStrings(new String[] { "" }); outsb.append("URI would have been: "+uri); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } Logger.error(this, "Caught "+e, e); } } else if(uline.startsWith("PUTFILE:") || (getCHKOnly = uline.startsWith("GETCHKFILE:"))) { // Just insert to local store if(getCHKOnly) { line = line.substring(("GETCHKFILE:").length()); } else { line = line.substring("PUTFILE:".length()); } while(line.length() > 0 && line.charAt(0) == ' ') line = line.substring(1); while(line.length() > 0 && line.charAt(line.length()-1) == ' ') line = line.substring(0, line.length()-2); String mimeType = DefaultMIMETypes.guessMIMEType(line); if (line.indexOf('#') > -1) { String[] splittedLine = line.split("#"); line = splittedLine[0]; mimeType = splittedLine[1]; } File f = new File(line); outsb.append("Attempting to read file "+line); long startTime = System.currentTimeMillis(); try { if(!(f.exists() && f.canRead())) { throw new FileNotFoundException(); } // Guess MIME type outsb.append("Using MIME type: "+mimeType + "\r\n"); if(mimeType.equals(DefaultMIMETypes.DEFAULT_MIME_TYPE)) mimeType = ""; // don't need to override it FileBucket fb = new FileBucket(f, true, false, false, false); InsertBlock block = new InsertBlock(fb, new ClientMetadata(mimeType), FreenetURI.EMPTY_CHK_URI); startTime = System.currentTimeMillis(); FreenetURI uri = client.insert(block, getCHKOnly); // FIXME depends on CHK's still being renamable //uri = uri.setDocName(f.getName()); outsb.append("URI: "+uri+"\r\n"); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second\r\n"); } catch (FileNotFoundException e1) { outsb.append("File not found"); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); long endTime = System.currentTimeMillis(); long sz = f.length(); double rate = 1000.0 * sz / (endTime-startTime); outsb.append("Upload rate: "+rate+" bytes / second"); } if(e.errorCodes != null) { outsb.append("Splitfile errors breakdown:"); outsb.append(e.errorCodes.toVerboseString()); } } catch (Throwable t) { outsb.append("Insert threw: "+t); t.printStackTrace(); } } else if(uline.startsWith("MAKESSK")) { InsertableClientSSK key = InsertableClientSSK.createRandom(r, ""); outsb.append("Insert URI: "+key.getInsertURI().toString(false)+"\r\n"); outsb.append("Request URI: "+key.getURI().toString(false)+"\r\n"); FreenetURI insertURI = key.getInsertURI().setDocName("testsite"); String fixedInsertURI = insertURI.toString(false); outsb.append("Note that you MUST add a filename to the end of the above URLs e.g.:\r\n"+fixedInsertURI+"\r\n"); outsb.append("Normally you will then do PUTSSKDIR:<insert URI>#<directory to upload>, for example:\r\nPUTSSKDIR:"+fixedInsertURI+"#directoryToUpload/"+"\r\n"); outsb.append("This will then produce a manifest site containing all the files, the default document can be accessed at\r\n"+key.getURI().toString(false)+"testsite/"); } else if(uline.startsWith("PUTSSK:")) { String cmd = line.substring("PUTSSK:".length()); cmd = cmd.trim(); if(cmd.indexOf(';') <= 0) { outsb.append("No target URI provided."); outsb.append("PUTSSK:<insert uri>;<url to redirect to>"); return false; } String[] split = cmd.split(";"); String insertURI = split[0]; String targetURI = split[1]; outsb.append("Insert URI: "+insertURI); outsb.append("Target URI: "+targetURI); FreenetURI insert = new FreenetURI(insertURI); FreenetURI target = new FreenetURI(targetURI); try { FreenetURI result = client.insertRedirect(insert, target); outsb.append("Successfully inserted to fetch URI: "+result); } catch (InserterException e) { outsb.append("Finished insert but: "+e.getMessage()); Logger.normal(this, "Error: "+e, e); if(e.uri != null) { outsb.append("URI would have been: "+e.uri); } } } else if(uline.startsWith("STATUS")) { SimpleFieldSet fs = n.exportPublicFieldSet(); outsb.append(fs.toString()); outsb.append(n.getStatus()); if(Version.buildNumber()<Version.highestSeenBuild){ outsb.append("The latest version is : "+Version.highestSeenBuild); } } else if(uline.startsWith("ADDPEER:") || uline.startsWith("CONNECT:")) { String key = null; if(uline.startsWith("CONNECT:")) { key = line.substring("CONNECT:".length()); } else { key = line.substring("ADDPEER:".length()); } while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); String content = null; if(key.length() > 0) { // Filename BufferedReader in; outsb.append("Trying to add peer to node by noderef in "+key+"\r\n"); File f = new File(key); if (f.isFile()) { outsb.append("Given string seems to be a file, loading...\r\n"); in = new BufferedReader(new FileReader(f)); } else { outsb.append("Given string seems to be an URL, loading...\r\n"); URL url = new URL(key); URLConnection uc = url.openConnection(); in = new BufferedReader( new InputStreamReader(uc.getInputStream())); } content = readLines(in, true); in.close(); } else { content = readLines(reader, true); } if(content == null) return false; if(content.equals("")) return false; addPeer(content); } else if(uline.startsWith("NAME:")) { outsb.append("Node name currently: "+n.myName); String key = line.substring("NAME:".length()); while(key.length() > 0 && key.charAt(0) == ' ') key = key.substring(1); while(key.length() > 0 && key.charAt(key.length()-1) == ' ') key = key.substring(0, key.length()-2); outsb.append("New name: "+key); try{ n.config.get("node").getOption("name").setValue(key); Logger.minor(this, "Setting node.name to "+key); }catch(Exception e){ Logger.error(this, "Error setting node's name"); } n.config.store(); } else if(uline.startsWith("DISABLEPEER:")) { String nodeIdentifier = (line.substring("DISABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(disablePeer(nodeIdentifier)) { outsb.append("disable succeeded for "+nodeIdentifier); } else { outsb.append("disable failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("ENABLEPEER:")) { String nodeIdentifier = (line.substring("ENABLEPEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } if(enablePeer(nodeIdentifier)) { outsb.append("enable succeeded for "+nodeIdentifier); } else { outsb.append("enable failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("SETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("SETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(true); outsb.append("set ListenOnly suceeded for "+nodeIdentifier+"\r\n"); } else if(uline.startsWith("UNSETPEERLISTENONLY:")) { String nodeIdentifier = (line.substring("UNSETPEERLISTENONLY:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } pn.setListenOnly(false); outsb.append("unset ListenOnly suceeded for "+nodeIdentifier+"\r\n"); } else if(uline.startsWith("HAVEPEER:")) { String nodeIdentifier = (line.substring("HAVEPEER:".length())).trim(); if(havePeer(nodeIdentifier)) { outsb.append("true for "+nodeIdentifier); } else { outsb.append("false for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("REMOVEPEER:") || uline.startsWith("DISCONNECT:")) { String nodeIdentifier = null; if(uline.startsWith("DISCONNECT:")) { nodeIdentifier = line.substring("DISCONNECT:".length()); } else { nodeIdentifier = line.substring("REMOVEPEER:".length()); } if(removePeer(nodeIdentifier)) { outsb.append("peer removed for "+nodeIdentifier); } else { outsb.append("peer removal failed for "+nodeIdentifier); } outsb.append("\r\n"); } else if(uline.startsWith("PEER:")) { String nodeIdentifier = (line.substring("PEER:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); outsb.append(fs.toString()); } else if(uline.startsWith("PEERWMD:")) { String nodeIdentifier = (line.substring("PEERWMD:".length())).trim(); if(!havePeer(nodeIdentifier)) { out.write(("no peer for "+nodeIdentifier+"\r\n").getBytes()); out.flush(); return false; } PeerNode pn = n.getPeerNode(nodeIdentifier); if(pn == null) { out.write(("n.getPeerNode() failed to get peer details for "+nodeIdentifier+"\r\n\r\n").getBytes()); out.flush(); return false; } SimpleFieldSet fs = pn.exportFieldSet(); SimpleFieldSet meta = pn.exportMetadataFieldSet(); if(!meta.isEmpty()) fs.put("metadata", meta); outsb.append(fs.toString()); } else if(uline.startsWith("PEERS")) { outsb.append(n.getTMCIPeerList()); outsb.append("PEERS done.\r\n"); } else if(uline.startsWith("PLUGLOAD:")) { if (line.substring("PLUGLOAD:".length()).trim().equals("?")) { outsb.append(" PLUGLOAD: pkg.Class - Load plugin from current classpath"); outsb.append(" PLUGLOAD: pkg.Class@file:<filename> - Load plugin from file"); outsb.append(" PLUGLOAD: pkg.Class@http://... - Load plugin from online file"); outsb.append(" PLUGLOAD: *@... - Load plugin from manifest in given jarfile"); outsb.append(""); outsb.append("If the filename/url ends with \".url\", it" + " is treated as a link, meaning that the first line is" + " the accual URL. Else it is loaded as classpath and" + " the class it loaded from it (meaning the file could" + " be either a jar-file or a class-file)."); outsb.append(""); outsb.append(" PLUGLOAD: pkg.Class* - Load newest version of plugin from http://downloads.freenetproject.org/alpha/plugins/"); outsb.append(""); } else n.pluginManager.startPlugin(line.substring("PLUGLOAD:".length()).trim()); //outsb.append("PLUGLOAD: <pkg.classname>[(@<URI to jarfile.jar>|<<URI to file containing real URI>|* (will load from freenets pluginpool))] - Load plugin."); } else if(uline.startsWith("PLUGLIST")) { outsb.append(n.pluginManager.dumpPlugins()); } else if(uline.startsWith("PLUGKILL:")) { n.pluginManager.killPlugin(line.substring("PLUGKILL:".length()).trim()); } else { if(uline.length() > 0) printHeader(out); } outsb.append("\r\n"); out.write(outsb.toString().getBytes()); out.flush(); return false; }
|
49933 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49933/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/TextModeClientInterface.java/clean/src/freenet/node/TextModeClientInterface.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1207,
1670,
12,
17947,
2514,
2949,
16,
8962,
596,
13,
1216,
1860,
288,
3639,
514,
980,
31,
3639,
6674,
596,
18366,
273,
394,
6674,
5621,
3639,
775,
288,
5411,
980,
273,
2949,
18,
896,
1670,
5621,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
596,
18366,
18,
6923,
2932,
858,
73,
2777,
7566,
15,
73,
9078,
2225,
1769,
5411,
2332,
18,
370,
18,
8222,
2932,
858,
73,
2777,
7566,
15,
73,
9078,
2225,
1769,
5411,
327,
638,
31,
3639,
289,
3639,
1250,
336,
1792,
47,
3386,
273,
629,
31,
3639,
309,
12,
1369,
422,
446,
13,
327,
638,
31,
3639,
514,
7493,
558,
273,
980,
18,
869,
8915,
5621,
3639,
4242,
18,
17364,
12,
2211,
16,
315,
2189,
30,
13773,
1369,
1769,
3639,
309,
12,
332,
558,
18,
17514,
1190,
2932,
3264,
2773,
3719,
288,
5411,
368,
9363,
1240,
279,
498,
1024,
5411,
514,
498,
273,
980,
18,
28023,
2932,
3264,
2773,
18,
2469,
10663,
5411,
1323,
12,
856,
18,
2469,
1435,
405,
374,
597,
498,
18,
3001,
861,
12,
20,
13,
422,
296,
8624,
7734,
498,
273,
498,
18,
28023,
12,
21,
1769,
5411,
1323,
12443,
856,
18,
2469,
1435,
405,
374,
13,
597,
261,
856,
18,
3001,
861,
12,
856,
18,
2469,
1435,
17,
21,
13,
422,
296,
296,
3719,
7734,
498,
273,
498,
18,
28023,
12,
20,
16,
498,
18,
2469,
1435,
17,
22,
1769,
5411,
4242,
18,
6130,
12,
2211,
16,
315,
653,
30,
13773,
856,
1769,
5411,
478,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
1207,
1670,
12,
17947,
2514,
2949,
16,
8962,
596,
13,
1216,
1860,
288,
3639,
514,
980,
31,
3639,
6674,
596,
18366,
273,
394,
6674,
5621,
3639,
775,
288,
5411,
980,
273,
2949,
18,
896,
1670,
5621,
3639,
289,
1044,
261,
14106,
425,
13,
288,
5411,
596,
18366,
18,
6923,
2932,
858,
73,
2777,
7566,
15,
73,
9078,
2225,
1769,
5411,
2332,
18,
370,
18,
8222,
2932,
858,
73,
2777,
7566,
15,
73,
9078,
2225,
1769,
5411,
327,
638,
31,
3639,
289,
3639,
1250,
336,
1792,
47,
3386,
273,
629,
31,
3639,
309,
12,
1369,
422,
446,
13,
327,
638,
31,
3639,
514,
7493,
558,
273,
980,
18,
869,
8915,
5621,
3639,
4242,
18,
17364,
12,
2211,
2
] |
public SaxBugzillaQueryContentHandler(TaskRepository rep, IBugzillaSearchResultCollector col, int maxHits) { repository = rep;
|
public SaxBugzillaQueryContentHandler(String repositoryUrl, IBugzillaSearchResultCollector col, int maxHits) { this.repositoryUrl = repositoryUrl;
|
public SaxBugzillaQueryContentHandler(TaskRepository rep, IBugzillaSearchResultCollector col, int maxHits) { repository = rep; collector = col; this.maxHits = maxHits; }
|
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/677d1b3b7f1dbfbeed7ef8d28319b14f66edbc4d/SaxBugzillaQueryContentHandler.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/SaxBugzillaQueryContentHandler.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
348,
651,
19865,
15990,
1138,
1350,
1503,
12,
2174,
3305,
2071,
16,
467,
19865,
15990,
24916,
7134,
645,
16,
509,
943,
20950,
13,
288,
202,
202,
9071,
273,
2071,
31,
202,
202,
21356,
273,
645,
31,
202,
202,
2211,
18,
1896,
20950,
273,
943,
20950,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
348,
651,
19865,
15990,
1138,
1350,
1503,
12,
2174,
3305,
2071,
16,
467,
19865,
15990,
24916,
7134,
645,
16,
509,
943,
20950,
13,
288,
202,
202,
9071,
273,
2071,
31,
202,
202,
21356,
273,
645,
31,
202,
202,
2211,
18,
1896,
20950,
273,
943,
20950,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public String word() throws RecognitionException { String word; Token id=null; Token str=null; word = null; try { // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:997:17: (id= ID | 'import' | 'use' | 'rule' | 'query' | 'salience' | 'no-loop' | 'when' | 'then' | 'end' | str= STRING ) int alt66=11; switch ( input.LA(1) ) { case ID: alt66=1; break; case 17: alt66=2; break; case 61: alt66=3; break; case 30: alt66=4; break; case 28: alt66=5; break; case 35: alt66=6; break; case 36: alt66=7; break; case 31: alt66=8; break; case 33: alt66=9; break; case 29: alt66=10; break; case STRING: alt66=11; break; default: NoViableAltException nvae = new NoViableAltException("993:1: word returns [String word] : (id= ID | \'import\' | \'use\' | \'rule\' | \'query\' | \'salience\' | \'no-loop\' | \'when\' | \'then\' | \'end\' | str= STRING );", 66, 0, input); throw nvae; } switch (alt66) { case 1 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:997:17: id= ID { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_word2865); word=id.getText(); } break; case 2 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:998:17: 'import' { match(input,17,FOLLOW_17_in_word2877); word="import"; } break; case 3 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:999:17: 'use' { match(input,61,FOLLOW_61_in_word2886); word="use"; } break; case 4 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1000:17: 'rule' { match(input,30,FOLLOW_30_in_word2898); word="rule"; } break; case 5 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1001:17: 'query' { match(input,28,FOLLOW_28_in_word2909); word="query"; } break; case 6 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1002:17: 'salience' { match(input,35,FOLLOW_35_in_word2919); word="salience"; } break; case 7 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1003:17: 'no-loop' { match(input,36,FOLLOW_36_in_word2927); word="no-loop"; } break; case 8 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1004:17: 'when' { match(input,31,FOLLOW_31_in_word2935); word="when"; } break; case 9 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1005:17: 'then' { match(input,33,FOLLOW_33_in_word2946); word="then"; } break; case 10 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1006:17: 'end' { match(input,29,FOLLOW_29_in_word2957); word="end"; } break; case 11 : // /home/michael/projects/jboss-rules/drools-compiler/src/main/resources/org/drools/lang/drl.g:1007:17: str= STRING { str=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_word2971); word=getString(str); } break; } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return word; }
|
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/cb210a30853642e270a3bba6ce570409f6046852/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
540,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
2733,
27,
30,
4033,
30,
261,
350,
33,
1599,
571,
296,
5666,
11,
571,
296,
1202,
11,
571,
296,
5345,
11,
571,
296,
2271,
11,
571,
296,
21982,
6254,
11,
571,
296,
2135,
17,
6498,
11,
571,
296,
13723,
11,
571,
296,
15991,
11,
571,
296,
409,
11,
571,
609,
33,
9469,
262,
5411,
509,
3770,
6028,
33,
2499,
31,
5411,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
5411,
648,
1599,
30,
7734,
3770,
6028,
33,
21,
31,
7734,
898,
31,
5411,
648,
8043,
30,
7734,
3770,
6028,
33,
22,
31,
7734,
898,
31,
5411,
648,
17845,
30,
7734,
3770,
6028,
33,
23,
31,
7734,
898,
31,
5411,
648,
5196,
30,
7734,
3770,
6028,
33,
24,
31,
7734,
898,
31,
5411,
648,
9131,
30,
7734,
3770,
6028,
33,
25,
31,
7734,
898,
31,
5411,
648,
13191,
30,
7734,
3770,
6028,
33,
26,
31,
7734,
898,
31,
5411,
648,
6580,
30,
7734,
3770,
6028,
33,
27,
31,
7734,
898,
31,
5411,
648,
8231,
30,
7734,
3770,
6028,
33,
28,
31,
7734,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2076,
1435,
1216,
9539,
288,
6647,
514,
2076,
31,
3639,
3155,
612,
33,
2011,
31,
3639,
3155,
609,
33,
2011,
31,
540,
202,
202,
1095,
273,
446,
31,
540,
202,
3639,
775,
288,
5411,
368,
342,
8712,
19,
81,
1354,
69,
292,
19,
13582,
19,
10649,
8464,
17,
7482,
19,
12215,
17,
9576,
19,
4816,
19,
5254,
19,
4683,
19,
3341,
19,
12215,
19,
4936,
19,
72,
1321,
18,
75,
30,
2733,
27,
30,
4033,
30,
261,
350,
33,
1599,
571,
296,
5666,
11,
571,
296,
1202,
11,
571,
296,
5345,
11,
571,
296,
2271,
11,
571,
296,
21982,
6254,
11,
571,
296,
2135,
17,
6498,
11,
571,
296,
13723,
11,
571,
296,
15991,
11,
571,
2
] |
||
return Boolean.getBoolean(strVal);
|
return Boolean.valueOf(strVal).booleanValue();
|
public boolean getBoolean(String key){ DataThing val = (DataThing)map.get(key); if (val == null){ return false; } String strVal = (String)val.getDataObject(); return Boolean.getBoolean(strVal); }
|
7616 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7616/c15953b9c2366cbeafd095bbf6aae392eca186ca/DataThingAdapter.java/clean/trunk/taverna1.0/contrib/src/net/sourceforge/taverna/baclava/DataThingAdapter.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
12835,
12,
780,
498,
15329,
3639,
1910,
10193,
1244,
273,
261,
751,
10193,
13,
1458,
18,
588,
12,
856,
1769,
3639,
309,
261,
1125,
422,
446,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
514,
609,
3053,
273,
261,
780,
13,
1125,
18,
588,
21881,
5621,
7734,
327,
3411,
18,
1132,
951,
12,
701,
3053,
2934,
6494,
620,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
12835,
12,
780,
498,
15329,
3639,
1910,
10193,
1244,
273,
261,
751,
10193,
13,
1458,
18,
588,
12,
856,
1769,
3639,
309,
261,
1125,
422,
446,
15329,
5411,
327,
629,
31,
3639,
289,
3639,
514,
609,
3053,
273,
261,
780,
13,
1125,
18,
588,
21881,
5621,
7734,
327,
3411,
18,
1132,
951,
12,
701,
3053,
2934,
6494,
620,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (verboseJNI) VM.sysWrite("JNI called: CallIntMethod \n");
|
if (traceJNI) VM.sysWrite("JNI called: CallIntMethod \n");
|
private static int CallIntMethod(int envJREF, int objJREF, int methodID) throws Exception { if (verboseJNI) VM.sysWrite("JNI called: CallIntMethod \n"); VM_JNIEnvironment env; try { // dereference the object instance env = VM_Thread.getCurrentThread().getJNIEnv(); Object obj = env.getJNIRef(objJREF); Object returnObj = VM_JNIEnvironment.invokeWithDotDotVarArg(obj, methodID, VM_Type.IntType, false); return VM_Reflection.unwrapInt(returnObj); // should be a wrapper for an integer value } catch (Throwable unexpected) { env = VM_Thread.getCurrentThread().getJNIEnv(); env.recordException(unexpected); return 0; } }
|
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/4062e6b002bdf9991c940012d22443401650712a/VM_JNIFunctions.java/clean/rvm/src/vm/jni/VM_JNIFunctions.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
3049,
1702,
1305,
12,
474,
1550,
46,
10771,
16,
509,
1081,
46,
10771,
16,
509,
707,
734,
13,
565,
1216,
1185,
288,
1377,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30,
3049,
1702,
1305,
225,
521,
82,
8863,
3639,
8251,
67,
46,
50,
45,
5494,
1550,
31,
1377,
775,
288,
3639,
368,
27794,
326,
733,
791,
3639,
1550,
273,
8251,
67,
3830,
18,
588,
3935,
3830,
7675,
588,
46,
50,
45,
3491,
5621,
5411,
1033,
1081,
273,
225,
1550,
18,
588,
46,
50,
45,
1957,
12,
2603,
46,
10771,
1769,
3639,
1033,
327,
2675,
273,
8251,
67,
46,
50,
45,
5494,
18,
14407,
1190,
10412,
10412,
1537,
4117,
12,
2603,
16,
707,
734,
16,
4766,
19694,
8251,
67,
559,
18,
1702,
559,
16,
629,
1769,
3639,
327,
8251,
67,
9801,
18,
318,
4113,
1702,
12,
2463,
2675,
1769,
377,
368,
1410,
506,
279,
4053,
364,
392,
3571,
460,
1377,
289,
1044,
261,
15155,
9733,
13,
288,
3639,
1550,
273,
8251,
67,
3830,
18,
588,
3935,
3830,
7675,
588,
46,
50,
45,
3491,
5621,
3639,
1550,
18,
3366,
503,
12,
21248,
1769,
3639,
327,
374,
31,
1377,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
509,
3049,
1702,
1305,
12,
474,
1550,
46,
10771,
16,
509,
1081,
46,
10771,
16,
509,
707,
734,
13,
565,
1216,
1185,
288,
1377,
309,
261,
5129,
46,
50,
45,
13,
8251,
18,
9499,
3067,
2932,
46,
50,
45,
2566,
30,
3049,
1702,
1305,
225,
521,
82,
8863,
3639,
8251,
67,
46,
50,
45,
5494,
1550,
31,
1377,
775,
288,
3639,
368,
27794,
326,
733,
791,
3639,
1550,
273,
8251,
67,
3830,
18,
588,
3935,
3830,
7675,
588,
46,
50,
45,
3491,
5621,
5411,
1033,
1081,
273,
225,
1550,
18,
588,
46,
50,
45,
1957,
12,
2603,
46,
10771,
1769,
3639,
1033,
327,
2675,
273,
8251,
67,
46,
50,
45,
5494,
18,
14407,
1190,
10412,
10412,
2
] |
consume(IToken.tRPAREN).getEndOffset();
|
int finalOffset = consume(IToken.tRPAREN).getEndOffset();
|
protected IASTExpression primaryExpression() throws EndOfFileException, BacktrackException { IToken t = null; ICPPASTLiteralExpression literalExpression = null; switch (LT(1)) { // TO DO: we need more literals... case IToken.tINTEGER: t = consume(); literalExpression = createLiteralExpression(); literalExpression .setKind(IASTLiteralExpression.lk_integer_constant); literalExpression.setValue(t.getImage()); ((ASTNode) literalExpression).setOffsetAndLength(t.getOffset(), t .getEndOffset() - t.getOffset()); return literalExpression; case IToken.tFLOATINGPT: t = consume(); literalExpression = createLiteralExpression(); literalExpression.setKind(IASTLiteralExpression.lk_float_constant); literalExpression.setValue(t.getImage()); ((ASTNode) literalExpression).setOffsetAndLength(t.getOffset(), t .getEndOffset() - t.getOffset()); return literalExpression; case IToken.tSTRING: case IToken.tLSTRING: t = consume(); literalExpression = createLiteralExpression(); literalExpression.setKind(IASTLiteralExpression.lk_string_literal); literalExpression.setValue(t.getImage()); ((ASTNode) literalExpression).setOffsetAndLength(t.getOffset(), t .getEndOffset() - t.getOffset()); return literalExpression; case IToken.tCHAR: case IToken.tLCHAR: t = consume(); literalExpression = createLiteralExpression(); literalExpression.setKind(IASTLiteralExpression.lk_char_constant); literalExpression.setValue(t.getImage()); ((ASTNode) literalExpression).setOffsetAndLength(t.getOffset(), t .getEndOffset() - t.getOffset()); return literalExpression; case IToken.t_false: t = consume(); literalExpression = createLiteralExpression(); literalExpression.setKind(ICPPASTLiteralExpression.lk_false); literalExpression.setValue(t.getImage()); ((ASTNode) literalExpression).setOffsetAndLength(t.getOffset(), t .getEndOffset() - t.getOffset()); return literalExpression; case IToken.t_true: t = consume(); literalExpression = createLiteralExpression(); literalExpression.setKind(ICPPASTLiteralExpression.lk_true); literalExpression.setValue(t.getImage()); ((ASTNode) literalExpression).setOffsetAndLength(t.getOffset(), t .getEndOffset() - t.getOffset()); return literalExpression; case IToken.t_this: t = consume(); literalExpression = createLiteralExpression(); literalExpression.setKind(ICPPASTLiteralExpression.lk_this); literalExpression.setValue(t.getImage()); ((ASTNode) literalExpression).setOffsetAndLength(t.getOffset(), t .getEndOffset() - t.getOffset()); return literalExpression; case IToken.tLPAREN: t = consume(); if (templateIdScopes.size() > 0) { templateIdScopes.push(IToken.tLPAREN); } //TODO We need to wrap this IASTExpression lhs = expression(); consume(IToken.tRPAREN).getEndOffset(); if (templateIdScopes.size() > 0) { templateIdScopes.pop(); } return lhs; case IToken.tIDENTIFIER: case IToken.tCOLONCOLON: case IToken.t_operator: case IToken.tCOMPL: ITokenDuple duple = idExpression(); IASTName name = createName(duple); IASTIdExpression idExpression = createIdExpression(); ((ASTNode) idExpression).setOffsetAndLength(duple.getStartOffset(), duple.getEndOffset() - duple.getStartOffset()); idExpression.setName(name); name.setParent(idExpression); name.setPropertyInParent(IASTIdExpression.ID_NAME); return idExpression; default: IToken la = LA(1); int startingOffset = la.getOffset(); throwBacktrack(startingOffset, la.getLength()); return null; } }
|
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/9592a5366f5de2e55bf9c59cb5f2155caaf25247/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,
565,
4750,
467,
9053,
2300,
3354,
2300,
1435,
1216,
4403,
951,
812,
503,
16,
540,
4297,
4101,
503,
288,
1377,
467,
1345,
268,
273,
446,
31,
1377,
467,
4258,
4066,
882,
6177,
2300,
7158,
2300,
273,
446,
31,
1377,
1620,
261,
12050,
12,
21,
3719,
288,
540,
368,
8493,
5467,
30,
732,
1608,
1898,
18228,
2777,
540,
648,
467,
1345,
18,
88,
14217,
30,
5411,
268,
273,
7865,
5621,
5411,
7158,
2300,
273,
752,
6177,
2300,
5621,
5411,
7158,
2300,
5375,
263,
542,
5677,
12,
45,
9053,
6177,
2300,
18,
80,
79,
67,
7745,
67,
14384,
1769,
5411,
7158,
2300,
18,
542,
620,
12,
88,
18,
588,
2040,
10663,
5411,
14015,
9053,
907,
13,
7158,
2300,
2934,
542,
2335,
1876,
1782,
12,
88,
18,
588,
2335,
9334,
268,
5375,
263,
588,
1638,
2335,
1435,
5375,
300,
268,
18,
588,
2335,
10663,
5411,
327,
7158,
2300,
31,
540,
648,
467,
1345,
18,
88,
15640,
1360,
1856,
30,
5411,
268,
273,
7865,
5621,
5411,
7158,
2300,
273,
752,
6177,
2300,
5621,
5411,
7158,
2300,
18,
542,
5677,
12,
45,
9053,
6177,
2300,
18,
80,
79,
67,
5659,
67,
14384,
1769,
5411,
7158,
2300,
18,
542,
620,
12,
88,
18,
588,
2040,
10663,
5411,
14015,
9053,
907,
13,
7158,
2300,
2934,
542,
2335,
1876,
1782,
12,
88,
18,
588,
2335,
9334,
268,
5375,
263,
588,
1638,
2335,
1435,
5375,
300,
268,
18,
588,
2335,
10663,
5411,
327,
7158,
2300,
31,
540,
648,
467,
1345,
18,
88,
5804,
30,
540,
648,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
9053,
2300,
3354,
2300,
1435,
1216,
4403,
951,
812,
503,
16,
540,
4297,
4101,
503,
288,
1377,
467,
1345,
268,
273,
446,
31,
1377,
467,
4258,
4066,
882,
6177,
2300,
7158,
2300,
273,
446,
31,
1377,
1620,
261,
12050,
12,
21,
3719,
288,
540,
368,
8493,
5467,
30,
732,
1608,
1898,
18228,
2777,
540,
648,
467,
1345,
18,
88,
14217,
30,
5411,
268,
273,
7865,
5621,
5411,
7158,
2300,
273,
752,
6177,
2300,
5621,
5411,
7158,
2300,
5375,
263,
542,
5677,
12,
45,
9053,
6177,
2300,
18,
80,
79,
67,
7745,
67,
14384,
1769,
5411,
7158,
2300,
18,
542,
620,
12,
88,
18,
588,
2040,
10663,
5411,
14015,
9053,
907,
13,
7158,
2300,
2934,
542,
2335,
2
] |
int to = ks.indexOf("/");
|
int to = path.indexOf("/");
|
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { //String basepath = "/plugins/"; String ks = uri.getPath(); if(ks.startsWith("/")) ks = ks.substring(1); ks = ks.substring("plugins/".length()); Logger.minor(this, "Pproxy fetching "+ks); try { if (ks.equals("")) { StringBuffer out = new StringBuffer(); ctx.getPageMaker().makeHead(out, "Plugin List"); out.append("<table style=\"border: 1pt solid #c0c0c0;\">"); out.append(" <tr>\n"); out.append(" <th>Name</th>\n"); out.append(" <th>ID</th>\n"); out.append(" <th>Started</th>\n"); out.append(" <th></th>\n"); out.append(" </tr>\n"); Iterator it = pm.getPlugins().iterator(); while (it.hasNext()) { PluginInfoWrapper pi = (PluginInfoWrapper) it.next(); out.append(" <tr>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">" + pi.getPluginClassName() + "</td>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">" + pi.getThreadName() + "</td>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">" + (new Date(pi.getStarted())) + "</td>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">"); if (pi.isPproxyPlugin()) out.append(" <a href=\""+pi.getPluginClassName()+"/\">[VISIT]</a> "); out.append(" <a href=\"?remove="+pi.getThreadName()+"\">[UNLOAD]</a> "); out.append(" <a href=\"?reload="+pi.getThreadName()+"\">[RELOAD]</a> "); out.append("</td>\n"); out.append(" </tr>\n"); } if (pm.getPlugins().isEmpty()) { out.append("<tr>\n"); out.append("<td colspan=\"4\"\n"); out.append("<i>No plugins loaded</i>\n"); out.append("</td>\n"); out.append("</tr>\n"); } out.append("</table>"); //String ret = "<hr/>" + out.toString(); //ret = pm.dumpPlugins().replaceAll(",", "\n ").replaceAll("\"", " \" "); /*if (ret.length() < 6) ret += "<i>No plugins loaded</i>\n"; ret += "<hr/>";*/ // Obsolete //out.append("<form method=\"get\"><div>Remove plugin: (enter ID) <input type=\"text\" name=\"remove\" size=40/><input type=\"submit\" value=\"Remove\"/></div></form>\n"); out.append("<form method=\"get\" action=\".\"><div>Load plugin: <input type=\"text\" name=\"load\" size=\"40\"/><input type=\"submit\" value=\"Load\" /></div></form>\n"); ctx.getPageMaker().makeTail(out); writeReply(ctx, 200, "text/html", "OK", out.toString()); } else if (ks.startsWith("?remove=")) { pm.killPlugin(ks.substring("?remove=".length())); MultiValueTable headers = new MultiValueTable(); headers.put("Location", "."); ctx.sendReplyHeaders(302, "Found", headers, null, 0); //writeReply(ctx, 200, "text/html", "OK", mkForwardPage("Removing plugin", "Removing plugin...", ".", 5)); } else if (ks.startsWith("?load=")) { pm.startPlugin(ks.substring("?load=".length())); //writeReply(ctx, 200, "text/html", "OK", mkForwardPage("Loading plugin", "Loading plugin...", ".", 5)); MultiValueTable headers = new MultiValueTable(); headers.put("Location", "."); ctx.sendReplyHeaders(302, "Found", headers, null, 0); } else if (ks.startsWith("?reload=")) { String fn = null; Iterator it = pm.getPlugins().iterator(); while (it.hasNext()) { PluginInfoWrapper pi = (PluginInfoWrapper) it.next(); if (pi.getThreadName().equals(ks.substring("?reload=".length()))) { fn = pi.getFilename(); break; } } if (fn == null) { writeReply(ctx, 200, "text/html", "OK", mkForwardPage("Error", "Plugin not found...", ".", 5)); } else { pm.killPlugin(ks.substring("?reload=".length())); pm.startPlugin(fn); MultiValueTable headers = new MultiValueTable(); headers.put("Location", "."); ctx.sendReplyHeaders(302, "Found", headers, null, 0); } } else { int to = ks.indexOf("/"); String plugin, data; if (to == -1) { plugin = ks; data = ""; } else { plugin = ks.substring(0, to); data = ks.substring(to + 1); } //pm.handleHTTPGet(plugin, data); HTTPRequest request = new HTTPRequest(data, uri.getRawQuery()); //writeReply(ctx, 200, "text/html", "OK", mkPage("plugin", pm.handleHTTPGet(plugin, data))); writeReply(ctx, 200, "text/html", "OK", pm.handleHTTPGet(plugin, request)); } //FetchResult result = fetch(key); //writeReply(ctx, 200, result.getMimeType(), "OK", result.asBucket()); } catch (PluginHTTPException ex) { // TODO: make it into html writeReply(ctx, ex.getCode(), ex.getMimeType(), ex.getDesc(), ex.getReply()); } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + sw.toString() + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } }
|
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/b1b9fcf2f7a24a776052951252d7f304b96e9495/PproxyToadlet.java/buggy/src/freenet/pluginmanager/PproxyToadlet.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1082,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
759,
780,
23853,
273,
2206,
8057,
4898,
31,
202,
202,
780,
11654,
273,
2003,
18,
588,
743,
5621,
9506,
202,
430,
12,
7904,
18,
17514,
1190,
2932,
4898,
3719,
1082,
202,
7904,
273,
11654,
18,
28023,
12,
21,
1769,
202,
202,
7904,
273,
11654,
18,
28023,
2932,
8057,
4898,
18,
2469,
10663,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
52,
5656,
16191,
13773,
7904,
1769,
202,
202,
698,
288,
1082,
202,
430,
261,
7904,
18,
14963,
2932,
6,
3719,
288,
9506,
202,
780,
1892,
596,
273,
394,
6674,
5621,
9506,
202,
5900,
18,
588,
1964,
12373,
7675,
6540,
1414,
12,
659,
16,
315,
3773,
987,
8863,
9506,
202,
659,
18,
6923,
2932,
32,
2121,
2154,
5189,
8815,
30,
404,
337,
18035,
468,
71,
20,
71,
20,
71,
20,
31,
21121,
1769,
9506,
202,
659,
18,
6923,
2932,
225,
411,
313,
5333,
82,
8863,
9506,
202,
659,
18,
6923,
2932,
565,
411,
451,
34,
461,
1757,
451,
5333,
82,
8863,
9506,
202,
659,
18,
6923,
2932,
565,
411,
451,
34,
734,
1757,
451,
5333,
82,
8863,
9506,
202,
659,
18,
6923,
2932,
565,
411,
451,
34,
9217,
1757,
451,
5333,
82,
8863,
9506,
202,
659,
18,
6923,
2932,
565,
411,
451,
4695,
451,
5333,
82,
8863,
9506,
202,
659,
18,
6923,
2932,
225,
7765,
313,
5333,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1082,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
759,
780,
23853,
273,
2206,
8057,
4898,
31,
202,
202,
780,
11654,
273,
2003,
18,
588,
743,
5621,
9506,
202,
430,
12,
7904,
18,
17514,
1190,
2932,
4898,
3719,
1082,
202,
7904,
273,
11654,
18,
28023,
12,
21,
1769,
202,
202,
7904,
273,
11654,
18,
28023,
2932,
8057,
4898,
18,
2469,
10663,
202,
202,
3328,
18,
17364,
12,
2211,
16,
315,
52,
5656,
16191,
13773,
7904,
1769,
202,
202,
698,
288,
1082,
202,
430,
261,
7904,
18,
14963,
2932,
6,
3719,
288,
9506,
202,
780,
1892,
596,
273,
394,
2
] |
boolean unresolved = ref.needsDynamicLink(bcodes.method());
|
boolean unresolved = ref.needsDynamicLink(bcodes.getMethod());
|
private void generateFrom(int fromIndex) { if (DBG_BB || DBG_SELECTED) { db("generating code into " + currentBBLE + " with runoff " + runoff); } currentBBLE.setGenerated(); endOfBasicBlock = fallThrough = false; lastInstr = null; bcodes.reset(fromIndex); while (true) { // Must keep currentBBLE.high up-to-date in case we try to jump into // the middle of the block we're currently generating. Simply updating // high once endsBasicBlock is true doesn't enable us to catch this case. currentBBLE.high = instrIndex = bcodes.index(); int code = bcodes.nextInstruction(); if (DBG_BCPARSE) { db("parsing " + instrIndex + " " + code + " : 0x" + Integer.toHexString(code)); } OPT_Instruction s = null; //-#if RVM_WITH_OSR lastOsrBarrier = null; //-#endif switch (code) { case JBC_nop: break; case JBC_aconst_null: push(new OPT_NullConstantOperand()); break; case JBC_iconst_m1:case JBC_iconst_0:case JBC_iconst_1: case JBC_iconst_2:case JBC_iconst_3:case JBC_iconst_4: case JBC_iconst_5: push(new OPT_IntConstantOperand(code - JBC_iconst_0)); break; case JBC_lconst_0:case JBC_lconst_1: pushDual(new OPT_LongConstantOperand(code - JBC_lconst_0)); break; case JBC_fconst_0: push(new OPT_FloatConstantOperand(0.f)); break; case JBC_fconst_1: push(new OPT_FloatConstantOperand(1.f)); break; case JBC_fconst_2: push(new OPT_FloatConstantOperand(2.f)); break; case JBC_dconst_0: pushDual(new OPT_DoubleConstantOperand(0.)); break; case JBC_dconst_1: pushDual(new OPT_DoubleConstantOperand(1.)); break; case JBC_bipush: push(new OPT_IntConstantOperand(bcodes.getByteValue())); break; case JBC_sipush: push(new OPT_IntConstantOperand(bcodes.getShortValue())); break; case JBC_ldc: push(getConstantOperand(bcodes.getConstantIndex())); break; case JBC_ldc_w: push(getConstantOperand(bcodes.getWideConstantIndex())); break; case JBC_ldc2_w: pushDual(getConstantOperand(bcodes.getWideConstantIndex())); break; case JBC_iload: s = do_iload(bcodes.getLocalNumber()); break; case JBC_lload: s = do_lload(bcodes.getLocalNumber()); break; case JBC_fload: s = do_fload(bcodes.getLocalNumber()); break; case JBC_dload: s = do_dload(bcodes.getLocalNumber()); break; case JBC_aload: s = do_aload(bcodes.getLocalNumber()); break; case JBC_iload_0:case JBC_iload_1:case JBC_iload_2:case JBC_iload_3: s = do_iload(code - JBC_iload_0); break; case JBC_lload_0:case JBC_lload_1:case JBC_lload_2:case JBC_lload_3: s = do_lload(code - JBC_lload_0); break; case JBC_fload_0:case JBC_fload_1:case JBC_fload_2:case JBC_fload_3: s = do_fload(code - JBC_fload_0); break; case JBC_dload_0:case JBC_dload_1:case JBC_dload_2:case JBC_dload_3: s = do_dload(code - JBC_dload_0); break; case JBC_aload_0:case JBC_aload_1:case JBC_aload_2:case JBC_aload_3: s = do_aload(code - JBC_aload_0); break; case JBC_iaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.IntArray); s = _aloadHelper(INT_ALOAD, ref, index, VM_TypeReference.Int); } break; case JBC_laload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.LongArray); s = _aloadHelper(LONG_ALOAD, ref, index, VM_TypeReference.Long); } break; case JBC_faload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.FloatArray); s = _aloadHelper(FLOAT_ALOAD, ref, index, VM_TypeReference.Float); } break; case JBC_daload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.DoubleArray); s = _aloadHelper(DOUBLE_ALOAD, ref, index, VM_TypeReference.Double); } break; case JBC_aaload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getRefTypeOf(ref).getArrayElementType(); if (VM.VerifyAssertions) VM._assert(type.isReferenceType()); s = _aloadHelper(REF_ALOAD, ref, index, type); } break; case JBC_baload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM._assert(type == VM_TypeReference.ByteArray || type == VM_TypeReference.BooleanArray); } if (type == VM_TypeReference.ByteArray) s = _aloadHelper(BYTE_ALOAD, ref, index, VM_TypeReference.Byte); else s = _aloadHelper(UBYTE_ALOAD, ref, index, VM_TypeReference.Boolean); } break; case JBC_caload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.CharArray); s = _aloadHelper(USHORT_ALOAD, ref, index, VM_TypeReference.Char); } break; case JBC_saload: { OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.ShortArray); s = _aloadHelper(SHORT_ALOAD, ref, index, VM_TypeReference.Short); } break; case JBC_istore: s = do_store(bcodes.getLocalNumber(), popInt()); break; case JBC_lstore: s = do_store(bcodes.getLocalNumber(), popLong()); break; case JBC_fstore: s = do_store(bcodes.getLocalNumber(), popFloat()); break; case JBC_dstore: s = do_store(bcodes.getLocalNumber(), popDouble()); break; case JBC_astore: s = do_astore(bcodes.getLocalNumber()); break; case JBC_istore_0:case JBC_istore_1:case JBC_istore_2:case JBC_istore_3: s = do_store(code - JBC_istore_0, popInt()); break; case JBC_lstore_0:case JBC_lstore_1:case JBC_lstore_2:case JBC_lstore_3: s = do_store(code - JBC_lstore_0, popLong()); break; case JBC_fstore_0:case JBC_fstore_1:case JBC_fstore_2:case JBC_fstore_3: s = do_store(code - JBC_fstore_0, popFloat()); break; case JBC_dstore_0:case JBC_dstore_1:case JBC_dstore_2:case JBC_dstore_3: s = do_store(code - JBC_dstore_0, popDouble()); break; case JBC_astore_0:case JBC_astore_1:case JBC_astore_2:case JBC_astore_3: s = do_astore(code - JBC_astore_0); break; case JBC_iastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.IntArray); s = AStore.create(INT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Int), getCurrentGuard()); } break; case JBC_lastore: { OPT_Operand val = popLong(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.LongArray); s = AStore.create(LONG_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Long), getCurrentGuard()); } break; case JBC_fastore: { OPT_Operand val = popFloat(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.FloatArray); s = AStore.create(FLOAT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Float), getCurrentGuard()); } break; case JBC_dastore: { OPT_Operand val = popDouble(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.DoubleArray); s = AStore.create(DOUBLE_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Double), getCurrentGuard()); } break; case JBC_aastore: { OPT_Operand val = pop(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getRefTypeOf(ref).getArrayElementType(); if (VM.VerifyAssertions) VM._assert(type.isReferenceType()); if (do_CheckStore(ref, val, type)) break; s = AStore.create(REF_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_bastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; VM_TypeReference type = getArrayTypeOf(ref); if (VM.VerifyAssertions) { VM._assert(type == VM_TypeReference.ByteArray || type == VM_TypeReference.BooleanArray); } if (type == VM_TypeReference.ByteArray) type = VM_TypeReference.Byte; else type = VM_TypeReference.Boolean; s = AStore.create(BYTE_ASTORE, val, ref, index, new OPT_LocationOperand(type), getCurrentGuard()); } break; case JBC_castore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.CharArray); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Char), getCurrentGuard()); } break; case JBC_sastore: { OPT_Operand val = popInt(); OPT_Operand index = popInt(); OPT_Operand ref = pop(); clearCurrentGuard(); if (do_NullCheck(ref) || do_BoundsCheck(ref, index)) break; if (VM.VerifyAssertions) assertIsType(ref, VM_TypeReference.ShortArray); s = AStore.create(SHORT_ASTORE, val, ref, index, new OPT_LocationOperand(VM_TypeReference.Short), getCurrentGuard()); } break; case JBC_pop: stack.pop(); break; case JBC_pop2: stack.pop2(); break; case JBC_dup: { OPT_Operand op1 = stack.pop(); stack.push(op1); s = pushCopy(op1); } break; case JBC_dup_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op1); stack.push(op3); stack.push(op2); s = pushCopy(op1); } break; case JBC_dup2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op2); stack.push(op1); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x1: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_dup2_x2: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); OPT_Operand op3 = stack.pop(); OPT_Operand op4 = stack.pop(); stack.push(op2); stack.push(op1); stack.push(op4); stack.push(op3); s = pushCopy(op2); if (s != null) { appendInstruction(s); s = null; } s = pushCopy(op1); } break; case JBC_swap: { OPT_Operand op1 = stack.pop(); OPT_Operand op2 = stack.pop(); stack.push(op1); stack.push(op2); } break; case JBC_iadd: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_ADD, op1, op2, VM_TypeReference.Int); } break; case JBC_ladd: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_ADD, op1, op2, VM_TypeReference.Long); } break; case JBC_fadd: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_ADD, op1, op2, VM_TypeReference.Float); } break; case JBC_dadd: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_ADD, op1, op2, VM_TypeReference.Double); } break; case JBC_isub: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SUB, op1, op2, VM_TypeReference.Int); } break; case JBC_lsub: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SUB, op1, op2, VM_TypeReference.Long); } break; case JBC_fsub: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_SUB, op1, op2, VM_TypeReference.Float); } break; case JBC_dsub: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_SUB, op1, op2, VM_TypeReference.Double); } break; case JBC_imul: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_MUL, op1, op2, VM_TypeReference.Int); } break; case JBC_lmul: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_MUL, op1, op2, VM_TypeReference.Long); } break; case JBC_fmul: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_MUL, op1, op2, VM_TypeReference.Float); } break; case JBC_dmul: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_MUL, op1, op2, VM_TypeReference.Double); } break; case JBC_idiv: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_DIV, op1, op2, getCurrentGuard(), VM_TypeReference.Int); } break; case JBC_ldiv: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_DIV, op1, op2, getCurrentGuard(), VM_TypeReference.Long); } break; case JBC_fdiv: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_DIV, op1, op2, VM_TypeReference.Float); } break; case JBC_ddiv: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_DIV, op1, op2, VM_TypeReference.Double); } break; case JBC_irem: { clearCurrentGuard(); OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); if (do_IntZeroCheck(op2)) break; s = _guardedBinaryHelper(INT_REM, op1, op2, getCurrentGuard(), VM_TypeReference.Int); } break; case JBC_lrem: { clearCurrentGuard(); OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); if (do_LongZeroCheck(op2)) break; s = _guardedBinaryDualHelper(LONG_REM, op1, op2, getCurrentGuard(), VM_TypeReference.Long); } break; case JBC_frem: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_REM, op1, op2, VM_TypeReference.Float); } break; case JBC_drem: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryDualHelper(DOUBLE_REM, op1, op2, VM_TypeReference.Double); } break; case JBC_ineg: s = _unaryHelper(INT_NEG, popInt(), VM_TypeReference.Int); break; case JBC_lneg: s = _unaryDualHelper(LONG_NEG, popLong(), VM_TypeReference.Long); break; case JBC_fneg: s = _unaryHelper(FLOAT_NEG, popFloat(), VM_TypeReference.Float); break; case JBC_dneg: s = _unaryDualHelper(DOUBLE_NEG, popDouble(), VM_TypeReference.Double); break; case JBC_ishl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHL, op1, op2, VM_TypeReference.Int); } break; case JBC_lshl: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHL, op1, op2, VM_TypeReference.Long); } break; case JBC_ishr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_SHR, op1, op2, VM_TypeReference.Int); } break; case JBC_lshr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_SHR, op1, op2, VM_TypeReference.Long); } break; case JBC_iushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_USHR, op1, op2, VM_TypeReference.Int); } break; case JBC_lushr: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_USHR, op1, op2, VM_TypeReference.Long); } break; case JBC_iand: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_AND, op1, op2, VM_TypeReference.Int); } break; case JBC_land: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_AND, op1, op2, VM_TypeReference.Long); } break; case JBC_ior: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_OR, op1, op2, VM_TypeReference.Int); } break; case JBC_lor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_OR, op1, op2, VM_TypeReference.Long); } break; case JBC_ixor: { OPT_Operand op2 = popInt(); OPT_Operand op1 = popInt(); s = _binaryHelper(INT_XOR, op1, op2, VM_TypeReference.Int); } break; case JBC_lxor: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryDualHelper(LONG_XOR, op1, op2, VM_TypeReference.Long); } break; case JBC_iinc: { int index = bcodes.getLocalNumber(); s = do_iinc(index, bcodes.getIncrement()); } break; case JBC_i2l: s = _unaryDualHelper(INT_2LONG, popInt(), VM_TypeReference.Long); break; case JBC_i2f: s = _unaryHelper(INT_2FLOAT, popInt(), VM_TypeReference.Float); break; case JBC_i2d: s = _unaryDualHelper(INT_2DOUBLE, popInt(), VM_TypeReference.Double); break; case JBC_l2i: s = _unaryHelper(LONG_2INT, popLong(), VM_TypeReference.Int); break; case JBC_l2f: s = _unaryHelper(LONG_2FLOAT, popLong(), VM_TypeReference.Float); break; case JBC_l2d: s = _unaryDualHelper(LONG_2DOUBLE, popLong(), VM_TypeReference.Double); break; case JBC_f2i: s = _unaryHelper(FLOAT_2INT, popFloat(), VM_TypeReference.Int); break; case JBC_f2l: s = _unaryDualHelper(FLOAT_2LONG, popFloat(), VM_TypeReference.Long); break; case JBC_f2d: s = _unaryDualHelper(FLOAT_2DOUBLE, popFloat(), VM_TypeReference.Double); break; case JBC_d2i: s = _unaryHelper(DOUBLE_2INT, popDouble(), VM_TypeReference.Int); break; case JBC_d2l: s = _unaryDualHelper(DOUBLE_2LONG, popDouble(), VM_TypeReference.Long); break; case JBC_d2f: s = _unaryHelper(DOUBLE_2FLOAT, popDouble(), VM_TypeReference.Float); break; case JBC_int2byte: s = _unaryHelper(INT_2BYTE, popInt(), VM_TypeReference.Byte); break; case JBC_int2char: s = _unaryHelper(INT_2USHORT, popInt(), VM_TypeReference.Char); break; case JBC_int2short: s = _unaryHelper(INT_2SHORT, popInt(), VM_TypeReference.Short); break; case JBC_lcmp: { OPT_Operand op2 = popLong(); OPT_Operand op1 = popLong(); s = _binaryHelper(LONG_CMP, op1, op2, VM_TypeReference.Int); } break; case JBC_fcmpl: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPL, op1, op2, VM_TypeReference.Int); } break; case JBC_fcmpg: { OPT_Operand op2 = popFloat(); OPT_Operand op1 = popFloat(); s = _binaryHelper(FLOAT_CMPG, op1, op2, VM_TypeReference.Int); } break; case JBC_dcmpl: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPL, op1, op2, VM_TypeReference.Int); } break; case JBC_dcmpg: { OPT_Operand op2 = popDouble(); OPT_Operand op1 = popDouble(); s = _binaryHelper(DOUBLE_CMPG, op1, op2, VM_TypeReference.Int); } break; case JBC_ifeq: s = _intIfHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_ifne: s = _intIfHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_iflt: s = _intIfHelper(OPT_ConditionOperand.LESS()); break; case JBC_ifge: s = _intIfHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_ifgt: s = _intIfHelper(OPT_ConditionOperand.GREATER()); break; case JBC_ifle: s = _intIfHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_icmpeq: s = _intIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_icmpne: s = _intIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_if_icmplt: s = _intIfCmpHelper(OPT_ConditionOperand.LESS()); break; case JBC_if_icmpge: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER_EQUAL()); break; case JBC_if_icmpgt: s = _intIfCmpHelper(OPT_ConditionOperand.GREATER()); break; case JBC_if_icmple: s = _intIfCmpHelper(OPT_ConditionOperand.LESS_EQUAL()); break; case JBC_if_acmpeq: s = _refIfCmpHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_if_acmpne: s = _refIfCmpHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_goto: { int offset = bcodes.getBranchOffset(); if (offset != 3) // skip generating frivolous goto's s = _gotoHelper(offset); } break; case JBC_jsr: s = _jsrHelper(bcodes.getBranchOffset()); break; case JBC_ret: s = _retHelper(bcodes.getLocalNumber()); break; case JBC_tableswitch: { bcodes.alignSwitch(); OPT_Operand op0 = popInt(); int defaultoff = bcodes.getDefaultSwitchOffset(); int low = bcodes.getLowSwitchValue(); int high = bcodes.getHighSwitchValue(); int number = high - low + 1; if (CF_TABLESWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int match = bcodes.computeTableSwitchOffset(v1, low, high); int offset = match == 0 ? defaultoff : match; bcodes.skipTableSwitchOffsets(number); if (DBG_CF) { db("changed tableswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } s = TableSwitch.create(TABLESWITCH, op0, null, null, new OPT_IntConstantOperand(low), new OPT_IntConstantOperand(high), generateTarget(defaultoff), null, number*2); for (int i = 0; i < number; ++i) { TableSwitch.setTarget(s, i, generateTarget(bcodes.getTableSwitchOffset(i))); } bcodes.skipTableSwitchOffsets(number); // Set branch probabilities//-#if RVM_WITH_OSR VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex-bciAdjustment);//-#else VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex);//-#endif if (sp == null) { float approxProb = 1.0f/(float)(number+1); // number targets + default TableSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(approxProb)); for (int i = 0; i < number; ++i) { TableSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } else { TableSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(sp.getDefaultProbability())); for (int i = 0; i < number; ++i) { TableSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(sp.getCaseProbability(i))); } } } break; case JBC_lookupswitch: { bcodes.alignSwitch(); OPT_Operand op0 = popInt(); int defaultoff = bcodes.getDefaultSwitchOffset(); int numpairs = bcodes.getSwitchLength(); if (numpairs == 0) { s = _gotoHelper(defaultoff); break; } if (CF_LOOKUPSWITCH && op0 instanceof OPT_IntConstantOperand) { int v1 = ((OPT_IntConstantOperand)op0).value; int match = bcodes.computeLookupSwitchOffset(v1, numpairs); int offset = match == 0 ? defaultoff : match; bcodes.skipLookupSwitchPairs(numpairs); if (DBG_CF) { db("changed lookupswitch to goto because index (" + v1 + ") is constant"); } s = _gotoHelper(offset); break; } // Construct switch s = LookupSwitch.create(LOOKUPSWITCH, op0, null, null, generateTarget(defaultoff), null, numpairs*3); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setMatch(s, i, new OPT_IntConstantOperand(bcodes.getLookupSwitchValue(i))); LookupSwitch.setTarget(s, i, generateTarget(bcodes.getLookupSwitchOffset(i))); } bcodes.skipLookupSwitchPairs(numpairs); // Set branch probabilities//-#if RVM_WITH_OSR VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex-bciAdjustment);//-#else VM_SwitchBranchProfile sp = gc.getSwitchProfile(instrIndex);//-#endif if (sp == null) { float approxProb = 1.0f/(float)(numpairs+1); // num targets + default LookupSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(approxProb)); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(approxProb)); } } else { LookupSwitch.setDefaultBranchProfile(s, new OPT_BranchProfileOperand(sp.getDefaultProbability())); for (int i = 0; i < numpairs; ++i) { LookupSwitch.setBranchProfile(s, i, new OPT_BranchProfileOperand(sp.getCaseProbability(i))); } } } break; case JBC_ireturn: _returnHelper(INT_MOVE, popInt()); break; case JBC_lreturn: _returnHelper(LONG_MOVE, popLong()); break; case JBC_freturn: _returnHelper(FLOAT_MOVE, popFloat()); break; case JBC_dreturn: _returnHelper(DOUBLE_MOVE, popDouble()); break; case JBC_areturn: { OPT_Operand op0 = popRef(); if (VM.VerifyAssertions && !op0.isDefinitelyNull()) { VM_TypeReference retType = op0.getType(); if (retType.isWordType()) { VM._assert(gc.method.getReturnType().isWordType()); } else { // fudge to deal with conservative approximation // in OPT_ClassLoaderProxy.findCommonSuperclass if (retType != VM_TypeReference.JavaLangObject) { assertIsAssignable(gc.method.getReturnType(), retType); } } } _returnHelper(REF_MOVE, op0); } break; case JBC_return: _returnHelper(null, null); break; case JBC_getstatic: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeStaticFieldRef(ref); OPT_Operand offsetOp; VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_AddressConstantOperand(field.getOffset()); // use results of field analysis to refine type of result VM_Type ft = fieldType.peekResolvedType(); if (ft != null && ft.isClassType()) { VM_TypeReference concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } // optimization: // if the field is final and either initialized or // we're writing the bootimage and in an RVM bootimage class, // then get the value at compile time. We restrict to RVM bootimage classes // to avoid problems with different impls of java.* classes between bootimage // writing and runtime. // TODO: applying this optimization to Floats or Doubles // causes problems. Figure out why and fix it! if (!fieldType.isDoubleType() && !fieldType.isFloatType()) { if (field.isFinal()) { VM_Class declaringClass = field.getDeclaringClass(); if (declaringClass.isInitialized() || (VM.writingBootImage && declaringClass.isInBootImage() && declaringClass.getDescriptor().isRVMDescriptor())) { try { if (fieldType.isPrimitiveType()) { OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); break; } else { if (OPT_StaticFieldReader.isStaticFieldNull(field)) { // VM.sysWrite("Replaced getstatic of "+field+" with <null>\n"); push(new OPT_NullConstantOperand(), fieldType); break; } else { VM_TypeReference rtType = OPT_StaticFieldReader.getTypeFromStaticField(field); if (rtType == VM_TypeReference.JavaLangString) { OPT_ConstantOperand rhs = OPT_StaticFieldReader.getStaticFieldValue(field); // VM.sysWrite("Replaced getstatic of "+field+" with "+rhs+"\n"); push (rhs, fieldType); break; } else { t.type = rtType; if (rtType != fieldType) t.clearDeclaredType(); t.setPreciseType(); markGuardlessNonNull(t); // VM.sysWrite("Tightened type info for getstatic of "+field+" to "+t+"\n"); } } } } catch (NoSuchFieldException e) { // Sigh, host JDK java.* class didn't have this RVM field. // VM.sysWrite("Field "+field+" does not exist on host JDK\n"); } } } } } s = GetStatic.create(GETSTATIC, t, offsetOp, fieldOp); push(t.copyD2U(), fieldType); } break; case JBC_putstatic: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeStaticFieldRef(ref); OPT_Operand offsetOp; if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_AddressConstantOperand(field.getOffset()); } VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_Operand r = pop(fieldType); s = PutStatic.create(PUTSTATIC, r, offsetOp, fieldOp); } break; case JBC_getfield: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeInstanceFieldRef(ref); OPT_Operand offsetOp; VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_RegisterOperand t = gc.temps.makeTemp(fieldType); if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_AddressConstantOperand(field.getOffset()); // use results of field analysis to refine type. VM_Type ft = fieldType.peekResolvedType(); if (ft != null && ft.isClassType()) { VM_TypeReference concreteType = OPT_FieldAnalysis.getConcreteType(field); if (concreteType != null) { t.setPreciseType(); if (concreteType == fieldType) { t.setDeclaredType(); } else { fieldType = concreteType; t.type = concreteType; } } } } OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; s = GetField.create(GETFIELD, t, op1, offsetOp, fieldOp, getCurrentGuard()); push(t.copyD2U(), fieldType); } break; case JBC_putfield: { // field resolution VM_FieldReference ref = bcodes.getFieldReference(); boolean unresolved = ref.needsDynamicLink(bcodes.method()); OPT_LocationOperand fieldOp = makeInstanceFieldRef(ref); VM_TypeReference fieldType = ref.getFieldContentsType(); OPT_Operand offsetOp; if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), fieldOp.copy())); offsetOp = offsetrop; rectifyStateWithErrorHandler(); } else { VM_Field field = ref.peekResolvedField(); offsetOp = new OPT_AddressConstantOperand(field.getOffset()); } OPT_Operand val = pop(fieldType); OPT_Operand obj = popRef(); clearCurrentGuard(); if (do_NullCheck(obj)) break; s = PutField.create(PUTFIELD, val, obj, offsetOp, fieldOp, getCurrentGuard()); } break; case JBC_invokevirtual: { VM_MethodReference ref = bcodes.getMethodReference(); // See if this is a magic method (Address, Word, etc.) // If it is, generate the inline code and we are done. if (ref.getType().isMagicType()) { boolean generated = OPT_GenerateMagic.generateMagic(this, gc, ref); if (generated) break; // all done. } //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) { lastOsrBarrier = _createOsrBarrier(); } //-#endif if (ref.isMiranda()) { // An invokevirtual that is really an invokeinterface. VM_Method resolvedMethod = null; s = _callHelper(ref, OPT_MethodOperand.INTERFACE(ref, null)); OPT_RegisterOperand receiver = Call.getParam(s, 0).asRegister(); VM_Class receiverType = (VM_Class)receiver.type.peekResolvedType(); // null check on this parameter of call clearCurrentGuard(); if (do_NullCheck(receiver)) { // call will always raise null pointer exception s = null; break; } Call.setGuard(s, getCurrentGuard()); // Attempt to resolve the interface call to a particular virtual method. // This is independent of whether or not the static type of the receiver is // known to implement the interface and it is not that case that being able // to prove one implies the other. VM_Method vmeth = null; if (receiverType != null && receiverType.isInitialized() && !receiverType.isInterface()) { vmeth = OPT_ClassLoaderProxy.lookupMethod(receiverType, ref); } if (vmeth != null) { VM_MethodReference vmethRef = vmeth.getMemberRef().asMethodReference(); OPT_MethodOperand mop = OPT_MethodOperand.VIRTUAL(vmethRef, vmeth); if (receiver.isPreciseType()) { mop.refine(vmeth, true); } Call.setMethod(s, mop); boolean unresolved = vmethRef.needsDynamicLink(bcodes.method()); if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { Call.setAddress(s, new OPT_AddressConstantOperand(vmeth.getOffset())); } // Attempt to inline virtualized call. if (maybeInlineMethod(shouldInline(s, receiver.isExtant()), s)) { return; } } } else { // A normal invokevirtual. Create call instruction. boolean unresolved = ref.needsDynamicLink(bcodes.method()); VM_Method target = ref.peekResolvedMethod(); OPT_MethodOperand methOp = OPT_MethodOperand.VIRTUAL(ref, target); s = _callHelper(ref, methOp); // Handle possibility of dynamic linking. // Must be done before null_check! if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { if (VM.VerifyAssertions) VM._assert(target != null); Call.setAddress(s, new OPT_AddressConstantOperand(target.getOffset())); } // null check receiver OPT_Operand receiver = Call.getParam(s, 0); clearCurrentGuard(); if (do_NullCheck(receiver)) { // call will always raise null pointer exception s = null; break; } Call.setGuard(s, getCurrentGuard()); // Use compile time type of receiver to try reduce the number // of targets. // If we succeed, we'll update meth and s's method operand. boolean isExtant = false; boolean isPreciseType = false; VM_TypeReference tr = null; if (receiver.isRegister()) { OPT_RegisterOperand rop = receiver.asRegister(); isExtant = rop.isExtant(); isPreciseType = rop.isPreciseType(); tr = rop.type; } else if (receiver.isStringConstant()) { isExtant = true; isPreciseType = true; tr = VM_TypeReference.JavaLangString; } else if (receiver.isClassConstant()) { isExtant = true; isPreciseType = true; tr = VM_TypeReference.JavaLangClass; } else if (VM.VerifyAssertions) { VM._assert(false, "unexpected receiver " + receiver); } VM_Type type = tr.peekResolvedType(); if (type != null && type.isResolved() && type.isClassType()) { VM_Method vmeth = target; if (target == null || type != target.getDeclaringClass()) { vmeth = OPT_ClassLoaderProxy.lookupMethod(type.asClass(), ref); } if (vmeth != null) { methOp.refine(vmeth, isPreciseType || type.asClass().isFinal()); } } // Consider inlining it. if (maybeInlineMethod(shouldInline(s, isExtant), s)) { return; } } // noninlined CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokespecial: { VM_MethodReference ref = bcodes.getMethodReference(); VM_Method target = ref.resolveInvokeSpecial(); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) lastOsrBarrier = _createOsrBarrier(); //-#endif s = _callHelper(ref, OPT_MethodOperand.SPECIAL(ref, target)); // Handle possibility of dynamic linking. Must be done before null_check! // NOTE: different definition of unresolved due to semantics of invokespecial. if (target == null) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { Call.setAddress(s, new OPT_AddressConstantOperand(target.getOffset())); } // null check receiver OPT_Operand receiver = Call.getParam(s, 0); clearCurrentGuard(); if (do_NullCheck(receiver)) { // call will always raise null pointer exception s = null; break; } Call.setGuard(s, getCurrentGuard()); // Consider inlining it. if (maybeInlineMethod(shouldInline(s, false), s)) { return; } // noninlined CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokestatic: { VM_MethodReference ref = bcodes.getMethodReference(); // See if this is a magic method (VM_Magic, Address, Word, etc.) // If it is, generate the inline code and we are done. if (ref.getType().isMagicType()) { boolean generated = OPT_GenerateMagic.generateMagic(this, gc, ref); if (generated) break; } // A non-magical invokestatic. Create call instruction. boolean unresolved = ref.needsDynamicLink(bcodes.method()); VM_Method target = ref.peekResolvedMethod(); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) lastOsrBarrier = _createOsrBarrier(); //-#endif s = _callHelper(ref, OPT_MethodOperand.STATIC(ref, target)); // Handle possibility of dynamic linking. if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { Call.setAddress(s, new OPT_AddressConstantOperand(target.getOffset())); } // Consider inlining it. if (maybeInlineMethod(shouldInline(s, false), s)) { return; } // noninlined CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_invokeinterface: { VM_MethodReference ref = bcodes.getMethodReference(); bcodes.alignInvokeInterface(); VM_Method resolvedMethod = null; resolvedMethod = ref.peekInterfaceMethod(); //-#if RVM_WITH_OSR /* just create an osr barrier right before _callHelper * changes the states of locals and stacks. */ if (this.osrGuardedInline) lastOsrBarrier = _createOsrBarrier(); //-#endif s = _callHelper(ref, OPT_MethodOperand.INTERFACE(ref, resolvedMethod)); OPT_RegisterOperand receiver = Call.getParam(s, 0).asRegister(); VM_Class receiverType = (VM_Class)receiver.type.peekResolvedType(); // null check on this parameter of call // TODO: Strictly speaking we need to do dynamic linking of the // interface type BEFORE we do the null check. FIXME. clearCurrentGuard(); if (do_NullCheck(receiver)) { // call will always raise null pointer exception s = null; break; } Call.setGuard(s, getCurrentGuard()); boolean requiresImplementsTest = VM.BuildForIMTInterfaceInvocation || (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables); // Invokeinterface requires a dynamic type check // to ensure that the receiver object actually // implements the interface. This is necessary // because the verifier does not detect incompatible class changes. // Depending on the implementation of interface dispatching // we are using, we may have to make this test explicit // in the calling sequence if we can't prove at compile time // that it is not needed. if (requiresImplementsTest) { if (resolvedMethod == null) { // Sigh. Can't even resolve the reference to figure out what interface // method we are trying to call. Therefore we must make generate a call // to an out-of-line typechecking routine to handle it at runtime. OPT_RegisterOperand tibPtr = gc.temps.makeTemp(VM_TypeReference.JavaLangObjectArray); OPT_Instruction getTib = GuardedUnary.create(GET_OBJ_TIB, tibPtr, receiver.copyU2U(), getCurrentGuard()); appendInstruction(getTib); getTib.bcIndex = RUNTIME_SERVICES_BCI; VM_Method target = VM_Entrypoints.unresolvedInvokeinterfaceImplementsTestMethod; OPT_Instruction callCheck = Call.create2(CALL, null, new OPT_AddressConstantOperand(target.getOffset()), OPT_MethodOperand.STATIC(target), new OPT_IntConstantOperand(ref.getId()), tibPtr.copyD2U()); if (gc.options.NO_CALLEE_EXCEPTIONS) { callCheck.markAsNonPEI(); } appendInstruction(callCheck); callCheck.bcIndex = RUNTIME_SERVICES_BCI; requiresImplementsTest = false; // the above call subsumes the test rectifyStateWithErrorHandler(); // Can raise incompatible class change error. } else { // We know what interface method the program wants to invoke. // Attempt to avoid inserting the type check by seeing if the // known static type of the receiver implements the desired interface. VM_Type interfaceType = resolvedMethod.getDeclaringClass(); if (receiverType != null && receiverType.isResolved() && !receiverType.isInterface()) { byte doesImplement = OPT_ClassLoaderProxy.includesType(interfaceType.getTypeRef(), receiverType.getTypeRef()); requiresImplementsTest = doesImplement != YES; } } } // Attempt to resolve the interface call to a particular virtual method. // This is independent of whether or not the static type of the receiver is // known to implement the interface and it is not that case that being able // to prove one implies the other. VM_Method vmeth = null; if (receiverType != null && receiverType.isInitialized() && !receiverType.isInterface()) { vmeth = OPT_ClassLoaderProxy.lookupMethod(receiverType, ref); } if (vmeth != null) { VM_MethodReference vmethRef = vmeth.getMemberRef().asMethodReference(); // We're going to virtualize the call. Must inject the // DTC to ensure the receiver implements the interface if // requiresImplementsTest is still true. // Note that at this point requiresImplementsTest => resolvedMethod != null if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, receiver.copyU2U(), makeTypeOperand(resolvedMethod.getDeclaringClass()), getCurrentGuard())); rectifyStateWithErrorHandler(); // Can raise incompatible class change error. } OPT_MethodOperand mop = OPT_MethodOperand.VIRTUAL(vmethRef, vmeth); if (receiver.isPreciseType()) { mop.refine(vmeth, true); } Call.setMethod(s, mop); boolean unresolved = vmethRef.needsDynamicLink(bcodes.method()); if (unresolved) { OPT_RegisterOperand offsetrop = gc.temps.makeTempOffset(); appendInstruction(Unary.create(RESOLVE_MEMBER, offsetrop.copyRO(), Call.getMethod(s).copy())); Call.setAddress(s, offsetrop); rectifyStateWithErrorHandler(); } else { Call.setAddress(s, new OPT_AddressConstantOperand(vmeth.getOffset())); } // Attempt to inline virtualized call. if (maybeInlineMethod(shouldInline(s, receiver.isExtant()), s)) { return; } } else { // We can't virtualize the call; // try to inline a predicted target for the interface invocation // inline code will include DTC to ensure receiver implements the interface. if (resolvedMethod != null && maybeInlineMethod(shouldInline(s, false), s)) { return; } else { if (requiresImplementsTest) { appendInstruction(TypeCheck.create(MUST_IMPLEMENT_INTERFACE, receiver.copyU2U(), makeTypeOperand(resolvedMethod.getDeclaringClass()), getCurrentGuard())); // don't have to rectify with error handlers; rectify call below subsusmes. } } } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); } break; case JBC_xxxunusedxxx: OPT_OptimizingCompilerException.UNREACHABLE(); break; case JBC_new: { VM_TypeReference klass = bcodes.getTypeReference(); OPT_RegisterOperand t = gc.temps.makeTemp(klass); t.setPreciseType(); markGuardlessNonNull(t); OPT_Operator operator; OPT_TypeOperand klassOp; VM_Class klassType = (VM_Class)klass.peekResolvedType(); if (klassType != null && (klassType.isInitialized() || klassType.isInBootImage())) { klassOp = makeTypeOperand(klassType); operator = NEW; } else { operator = NEW_UNRESOLVED; klassOp = makeTypeOperand(klass); } s = New.create(operator, t, klassOp); push(t.copyD2U()); rectifyStateWithErrorHandler(); } break; case JBC_newarray: { VM_Type array = bcodes.getPrimitiveArrayType(); OPT_TypeOperand arrayOp = makeTypeOperand(array); OPT_RegisterOperand t = gc.temps.makeTemp(array.getTypeRef()); t.setPreciseType(); markGuardlessNonNull(t); s = NewArray.create(NEWARRAY, t, arrayOp, popInt()); push(t.copyD2U()); rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangNegativeArraySizeException); } break; case JBC_anewarray: { VM_TypeReference elementTypeRef = bcodes.getTypeReference(); s = generateAnewarray(elementTypeRef); } break; case JBC_arraylength: { OPT_Operand op1 = pop(); clearCurrentGuard(); if (do_NullCheck(op1)) break; if (VM.VerifyAssertions) VM._assert(getArrayTypeOf(op1).isArrayType()); OPT_RegisterOperand t = gc.temps.makeTempInt(); s = GuardedUnary.create(ARRAYLENGTH, t, op1, getCurrentGuard()); push(t.copyD2U()); } break; case JBC_athrow: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; VM_TypeReference type = getRefTypeOf(op0); if (VM.VerifyAssertions) { // fudge to handle conservative approximation of // OPT_ClassLoaderProxy.findCommonSuperclass if (type != VM_TypeReference.JavaLangObject) assertIsAssignable(VM_TypeReference.JavaLangThrowable, type); } if (!gc.method.isInterruptible()) { // prevent code motion in or out of uninterruptible code sequence appendInstruction(Empty.create(UNINT_END)); } endOfBasicBlock = true; OPT_BasicBlock definiteTarget = rectifyStateWithExceptionHandler(type, true); if (definiteTarget != null) { appendInstruction(CacheOp.create(SET_CAUGHT_EXCEPTION, op0)); s = Goto.create(GOTO, definiteTarget.makeJumpTarget()); } else { s = Athrow.create(ATHROW, (OPT_RegisterOperand)op0); } } break; case JBC_checkcast: { VM_TypeReference typeRef = bcodes.getTypeReference(); boolean classLoading = couldCauseClassLoading(typeRef); OPT_Operand op2 = pop(); if (typeRef.isWordType()) { op2 = op2.copy(); if (op2 instanceof OPT_RegisterOperand) { ((OPT_RegisterOperand)op2).type = typeRef; } push(op2); if (DBG_CF) db("skipped gen of checkcast to word type "+typeRef); break; } if (VM.VerifyAssertions) VM._assert(op2.isRef()); if (CF_CHECKCAST && !classLoading) { if (op2.isDefinitelyNull()) { push(op2); if (DBG_CF) db("skipped gen of null checkcast"); break; } VM_TypeReference type = getRefTypeOf(op2); // non-null, null case above if (OPT_ClassLoaderProxy.includesType(typeRef,type)==YES){ push(op2); if (DBG_CF) db("skipped gen of checkcast of " + op2 + " from " + typeRef + " to " + type); break; } } if (!gc.options.NO_CHECKCAST) { if (classLoading) { s = TypeCheck.create(CHECKCAST_UNRESOLVED, op2, makeTypeOperand(typeRef)); } else { OPT_TypeOperand typeOp = makeTypeOperand(typeRef.peekResolvedType()); if (isNonNull(op2)) { s = TypeCheck.create(CHECKCAST_NOTNULL, op2, typeOp, getGuard(op2)); } else { s = TypeCheck.create(CHECKCAST, op2, typeOp); } } } op2 = op2.copy(); if (op2 instanceof OPT_RegisterOperand) { ((OPT_RegisterOperand)op2).type = typeRef; } push(op2); rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangClassCastException); if (classLoading) rectifyStateWithErrorHandler(); } break; case JBC_instanceof: { VM_TypeReference typeRef = bcodes.getTypeReference(); boolean classLoading = couldCauseClassLoading(typeRef); OPT_Operand op2 = pop(); if (VM.VerifyAssertions) VM._assert(op2.isRef()); if (CF_INSTANCEOF && !classLoading) { if (op2.isDefinitelyNull()) { push(new OPT_IntConstantOperand(0)); if (DBG_CF) db("skipped gen of null instanceof"); break; } VM_TypeReference type = getRefTypeOf(op2); // non-null int answer = OPT_ClassLoaderProxy.includesType(typeRef, type); if (answer == YES && isNonNull(op2)) { push(new OPT_IntConstantOperand(1)); if (DBG_CF) db(op2 + " instanceof " + typeRef + " is always true "); break; } else if (answer == NO) { if (DBG_CF) db(op2 + " instanceof " + typeRef + " is always false "); push(new OPT_IntConstantOperand(0)); break; } } OPT_RegisterOperand t = gc.temps.makeTempInt(); if (classLoading) { s = InstanceOf.create(INSTANCEOF_UNRESOLVED, t, makeTypeOperand(typeRef), op2); } else { OPT_TypeOperand typeOp = makeTypeOperand(typeRef.peekResolvedType()); if (isNonNull(op2)) { s = InstanceOf.create(INSTANCEOF_NOTNULL, t, typeOp, op2, getGuard(op2)); } else { s = InstanceOf.create(INSTANCEOF, t, typeOp, op2); } } push(t.copyD2U()); if (classLoading) rectifyStateWithErrorHandler(); } break; case JBC_monitorenter: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; if (VM.VerifyAssertions) VM._assert(op0.isRef()); if (gc.options.MONITOR_NOP) { s = null; } else { s = MonitorOp.create(MONITORENTER, op0, getCurrentGuard()); } } break; case JBC_monitorexit: { OPT_Operand op0 = pop(); clearCurrentGuard(); if (do_NullCheck(op0)) break; if (gc.options.MONITOR_NOP) { s = null; } else { s = MonitorOp.create(MONITOREXIT, op0, getCurrentGuard()); } rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangIllegalMonitorStateException); } break; case JBC_wide: { int widecode = bcodes.getWideOpcode(); int index = bcodes.getWideLocalNumber(); switch (widecode) { case JBC_iload: s = do_iload(index); break; case JBC_lload: s = do_lload(index); break; case JBC_fload: s = do_fload(index); break; case JBC_dload: s = do_dload(index); break; case JBC_aload: s = do_aload(index); break; case JBC_istore: s = do_store(index, popInt()); break; case JBC_lstore: s = do_store(index, popLong()); break; case JBC_fstore: s = do_store(index, popFloat()); break; case JBC_dstore: s = do_store(index, popDouble()); break; case JBC_astore: s = do_astore(index); break; case JBC_iinc: s = do_iinc(index, bcodes.getWideIncrement()); break; case JBC_ret: s = _retHelper(index); break; default: OPT_OptimizingCompilerException.UNREACHABLE(); break; } } break; case JBC_multianewarray: { VM_TypeReference arrayType = bcodes.getTypeReference(); OPT_TypeOperand typeOp = makeTypeOperand(arrayType); int dimensions = bcodes.getArrayDimension(); // Step 1: Create an int array to hold the dimensions. OPT_TypeOperand dimArrayType = makeTypeOperand(VM_Array.IntArray); OPT_RegisterOperand dimArray = gc.temps.makeTemp(VM_TypeReference.IntArray); markGuardlessNonNull(dimArray); dimArray.setPreciseType(); appendInstruction(NewArray.create(NEWARRAY, dimArray, dimArrayType, new OPT_IntConstantOperand(dimensions))); // Step 2: Assign the dimension values to dimArray for (int i = dimensions; i > 0; i--) { OPT_LocationOperand loc = new OPT_LocationOperand(VM_TypeReference.Int); appendInstruction(AStore.create(INT_ASTORE, popInt(), dimArray.copyD2U(), new OPT_IntConstantOperand(i - 1), loc, new OPT_TrueGuardOperand())); } // Step 3: Actually create the multiD array OPT_RegisterOperand result = gc.temps.makeTemp(arrayType); markGuardlessNonNull(result); result.setPreciseType(); appendInstruction(NewArray.create(NEWOBJMULTIARRAY, result, typeOp, dimArray.copyD2U())); push(result.copyD2U()); rectifyStateWithErrorHandler(); rectifyStateWithExceptionHandler(VM_TypeReference.JavaLangNegativeArraySizeException); } break; case JBC_ifnull: s = _refIfNullHelper(OPT_ConditionOperand.EQUAL()); break; case JBC_ifnonnull: s = _refIfNullHelper(OPT_ConditionOperand.NOT_EQUAL()); break; case JBC_goto_w: { int offset = bcodes.getWideBranchOffset(); if (offset != 5) // skip generating frivolous goto's s = _gotoHelper(offset); } break; case JBC_jsr_w: s = _jsrHelper(bcodes.getWideBranchOffset()); break; //-#if RVM_WITH_OSR case JBC_impdep1: { int pseudo_opcode = bcodes.nextPseudoInstruction(); switch (pseudo_opcode) { case PSEUDO_LoadIntConst: { int value = bcodes.readIntConst(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadIntConst "+value); push(new OPT_IntConstantOperand(value)); // used for PSEUDO_InvokeStatic to recover the type info param1 = param2; param2 = value; break; } case PSEUDO_LoadLongConst: { long value = bcodes.readLongConst(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadLongConst "+value); // put on jtoc Offset offset = Offset.fromIntSignExtend(VM_Statics.findOrCreateLongLiteral(value)); pushDual(new OPT_LongConstantOperand(value, offset)); break; } case PSEUDO_LoadWordConst: { Address a; //-#if RVM_FOR_32_ADDR a = Address.fromIntSignExtend(bcodes.readIntConst()); //-#endif //-#if RVM_FOR_64_ADDR a = Address.fromLong(bcodes.readLongConst()); //-#endif push(new OPT_AddressConstantOperand(a)); if (VM.TraceOnStackReplacement) VM.sysWrite("PSEUDO_LoadWordConst 0x"); VM.sysWrite(a); VM.sysWriteln(); break; } case PSEUDO_LoadFloatConst: { int ibits = bcodes.readIntConst(); float value = Float.intBitsToFloat(ibits); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadFloatConst "+value); Offset offset = Offset.fromIntSignExtend(VM_Statics.findOrCreateFloatLiteral(ibits)); push(new OPT_FloatConstantOperand(value, offset)); break; } case PSEUDO_LoadDoubleConst: { long lbits = bcodes.readLongConst(); double value = VM_Magic.longBitsAsDouble(lbits); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadDoubleConst "+ lbits); // put on jtoc Offset offset = Offset.fromIntSignExtend(VM_Statics.findOrCreateDoubleLiteral(lbits)); pushDual(new OPT_DoubleConstantOperand(value, offset)); break; } case PSEUDO_LoadRetAddrConst: { int value = bcodes.readIntConst(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_LoadRetAddrConst "+value); push(new ReturnAddressOperand(value)); break; } case PSEUDO_InvokeStatic: { /* pseudo invoke static for getRefAt and cleanRefAt, both must be resolved already */ VM_Method meth = null; int targetidx = bcodes.readIntConst(); switch (targetidx) { case GETREFAT: meth = VM_Entrypoints.osrGetRefAtMethod; break; case CLEANREFS: meth = VM_Entrypoints.osrCleanRefsMethod; break; default: if (VM.TraceOnStackReplacement) VM.sysWriteln("pseudo_invokestatic, unknown target index "+targetidx); OPT_OptimizingCompilerException.UNREACHABLE(); break; } if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_Invoke "+meth+"\n"); s = _callHelper(meth.getMemberRef().asMethodReference(), OPT_MethodOperand.STATIC(meth)); Call.setAddress(s, new OPT_AddressConstantOperand(meth.getOffset())); /* try to set the type of return register */ if (targetidx == GETREFAT) { Object realObj = OSR_ObjectHolder.getRefAt(param1, param2); if (VM.VerifyAssertions) VM._assert(realObj != null); VM_TypeReference klass = VM_Magic.getObjectType(realObj).getTypeRef(); OPT_RegisterOperand op0 = gc.temps.makeTemp(klass); Call.setResult(s, op0); pop(); // pop the old one and push the new return type. push(op0.copyD2U(), klass); } // CALL must be treated as potential throw of anything rectifyStateWithExceptionHandlers(); break; } case PSEUDO_InvokeCompiledMethod: { int cmid = bcodes.readIntConst(); int origBCIdx = bcodes.readIntConst(); // skip it VM_CompiledMethod cm = VM_CompiledMethods.getCompiledMethod(cmid); VM_Method meth = cm.getMethod(); if (VM.TraceOnStackReplacement) VM.sysWriteln("PSEUDO_InvokeCompiledMethod "+meth+"\n"); /* the bcIndex should be adjusted to the original */ s = _callHelper(meth.getMemberRef().asMethodReference(), OPT_MethodOperand.COMPILED(meth, cm.getOsrJTOCoffset())); // adjust the bcindex of s to the original bytecode's index // it should be able to give the correct exception handling s.bcIndex = origBCIdx + bciAdjustment; rectifyStateWithExceptionHandlers(); break; } case PSEUDO_ParamInitEnd: { // indicates the place to insert method prologue and stack // overflow checks. // opt compiler should consider this too break; } default: if (VM.TraceOnStackReplacement) VM.sysWriteln("OSR Error, no such pseudo opcode : "+pseudo_opcode); OPT_OptimizingCompilerException.UNREACHABLE(); break; } break; } //-#endif default: OPT_OptimizingCompilerException.UNREACHABLE(); break; } if (s != null && !currentBBLE.isSelfRegen()) { appendInstruction(s); } // check runoff if (VM.VerifyAssertions) VM._assert(bcodes.index() <= runoff); if (!endOfBasicBlock && bcodes.index() == runoff) { if (DBG_BB || DBG_SELECTED) db("runoff occurred! current basic block: " + currentBBLE + ", runoff = " + runoff); endOfBasicBlock = fallThrough = true; } if (endOfBasicBlock) { if (currentBBLE.isSelfRegen()) { // This block ended in a goto that jumped into the middle of it. // Through away all out edges from this block, they're out of date // because we're going to have to regenerate this block. currentBBLE.block.deleteOut(); if (DBG_CFG || DBG_SELECTED) db("Deleted all out edges of " + currentBBLE.block); return; } if (fallThrough) { if (VM.VerifyAssertions) VM._assert(bcodes.index() < bcodes.length()); // Get/Create fallthrough BBLE and record it as // currentBBLE's fallThrough. currentBBLE.fallThrough = getOrCreateBlock(bcodes.index()); currentBBLE.block.insertOut(currentBBLE.fallThrough.block); } return; } } }
|
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/73b12d36d7f2e70fcee02302007b50add3709348/OPT_BC2IR.java/clean/rvm/src/vm/compilers/optimizing/ir/conversions/bc2hir/OPT_BC2IR.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
1265,
12,
474,
15065,
13,
288,
565,
309,
261,
2290,
43,
67,
9676,
747,
2383,
43,
67,
4803,
2056,
13,
288,
1377,
1319,
2932,
3441,
1776,
981,
1368,
315,
397,
783,
9676,
900,
397,
315,
598,
1086,
3674,
315,
397,
1086,
3674,
1769,
565,
289,
565,
783,
9676,
900,
18,
542,
7823,
5621,
565,
20706,
8252,
1768,
273,
4159,
14287,
273,
629,
31,
565,
1142,
382,
701,
273,
446,
31,
565,
6533,
1145,
18,
6208,
12,
2080,
1016,
1769,
565,
1323,
261,
3767,
13,
288,
1377,
368,
6753,
3455,
783,
9676,
900,
18,
8766,
731,
17,
869,
17,
712,
316,
648,
732,
775,
358,
11833,
1368,
4202,
368,
326,
7689,
434,
326,
1203,
732,
4565,
4551,
12516,
18,
225,
9587,
1283,
9702,
4202,
368,
3551,
3647,
3930,
8252,
1768,
353,
638,
3302,
1404,
4237,
584,
358,
1044,
333,
648,
18,
1377,
783,
9676,
900,
18,
8766,
273,
16170,
1016,
273,
6533,
1145,
18,
1615,
5621,
1377,
509,
981,
273,
6533,
1145,
18,
4285,
11983,
5621,
1377,
309,
261,
2290,
43,
67,
16283,
21045,
13,
288,
3639,
1319,
2932,
24979,
315,
397,
16170,
1016,
397,
315,
315,
397,
981,
397,
315,
294,
374,
92,
6,
397,
2144,
18,
869,
14866,
12,
710,
10019,
1377,
289,
1377,
16456,
67,
11983,
272,
273,
446,
31,
1377,
368,
17,
7,
430,
534,
7397,
67,
9147,
67,
4618,
54,
1377,
1142,
51,
11254,
5190,
10342,
273,
446,
31,
1377,
368,
17,
7,
409,
430,
1377,
1620,
261,
710,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2103,
1265,
12,
474,
15065,
13,
288,
565,
309,
261,
2290,
43,
67,
9676,
747,
2383,
43,
67,
4803,
2056,
13,
288,
1377,
1319,
2932,
3441,
1776,
981,
1368,
315,
397,
783,
9676,
900,
397,
315,
598,
1086,
3674,
315,
397,
1086,
3674,
1769,
565,
289,
565,
783,
9676,
900,
18,
542,
7823,
5621,
565,
20706,
8252,
1768,
273,
4159,
14287,
273,
629,
31,
565,
1142,
382,
701,
273,
446,
31,
565,
6533,
1145,
18,
6208,
12,
2080,
1016,
1769,
565,
1323,
261,
3767,
13,
288,
1377,
368,
6753,
3455,
783,
9676,
900,
18,
8766,
731,
17,
869,
17,
712,
316,
648,
732,
775,
358,
11833,
1368,
4202,
368,
326,
7689,
434,
326,
1203,
732,
4565,
2
] |
private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("XML Namespaces forbids names consisting of a single colon"); namespaces.addFirst(new LinkedHashMap()); } // Read element content boolean white = tryWhitespace(); mark(1); char c = readCh(); while (c != '/' && c != '>') { // Read attribute reset(); if (!white) error("need whitespace between attributes"); readAttribute(elementName); white = tryWhitespace(); mark(1); c = readCh(); } // supply defaulted attributes if (doctype != null) { for (Iterator i = doctype.attlistIterator(elementName); i.hasNext(); ) { Map.Entry entry = (Map.Entry) i.next(); String attName = (String) entry.getKey(); if (namespaceAware && attName.equals("xmlns")) { LinkedHashMap ctx = (LinkedHashMap) namespaces.getFirst(); if (ctx.containsKey(XMLConstants.DEFAULT_NS_PREFIX)) continue; // namespace was specified } else if (namespaceAware && attName.startsWith("xmlns:")) { LinkedHashMap ctx = (LinkedHashMap) namespaces.getFirst(); if (ctx.containsKey(attName.substring(6))) continue; // namespace was specified } else if (attributeSpecified(attName)) continue; AttributeDecl decl = (AttributeDecl) entry.getValue(); if (decl.value == null) continue; Attribute attr = new Attribute(attName, decl.type, false, decl.value); if (namespaceAware) { if (!addNamespace(attr)) attrs.add(attr); } else attrs.add(attr); } } if (baseAware) { String base = getAttributeValue(XMLConstants.XML_NS_URI, "base"); bases.addFirst(base); } // make element name available for read buf.setLength(0); buf.append(elementName); // push element onto stack stack.addLast(elementName); switch (c) { case '>': return CONTENT; case '/': require('>'); return EMPTY_ELEMENT; } return -1; // to satisfy compiler }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
474,
896,
1685,
1046,
1435,
15069,
14106,
16,
4201,
1228,
503,
95,
759,
3163,
18,
370,
18,
8222,
2932,
896,
1685,
1046,
8863,
759,
1994,
2956,
529,
780,
2956,
461,
33,
896,
50,
1010,
969,
12,
3767,
1769,
7039,
18,
8507,
5621,
759,
7621,
4937,
2472,
430,
12,
4937,
10155,
15329,
430,
2932,
2773,
18,
14963,
12,
2956,
461,
3719,
1636,
2932,
4201,
13180,
1884,
70,
2232,
1973,
13168,
310,
792,
345,
1714,
22667,
8863,
16078,
18,
1289,
3759,
12,
2704,
13174,
8658,
10663,
97,
759,
1994,
2956,
1745,
6494,
14739,
33,
698,
9431,
5621,
3355,
12,
21,
1769,
3001,
71,
33,
896,
782,
5621,
17523,
12,
71,
5,
2218,
2473,
10,
10,
71,
5,
2218,
1870,
15329,
759,
1994,
14588,
322,
11737,
278,
5621,
430,
12,
5,
14739,
13,
1636,
2932,
14891,
18777,
15019,
4350,
8863,
896,
1499,
12,
2956,
461,
1769,
14739,
33,
698,
9431,
5621,
3355,
12,
21,
1769,
71,
33,
896,
782,
5621,
97,
759,
2859,
1283,
1886,
329,
4350,
430,
12,
2896,
12387,
5,
33,
2011,
15329,
1884,
12,
3198,
77,
33,
2896,
12387,
18,
4558,
1098,
3198,
12,
2956,
461,
1769,
77,
18,
5332,
2134,
5621,
15329,
863,
18,
1622,
4099,
28657,
863,
18,
1622,
13,
77,
18,
4285,
5621,
780,
4558,
461,
28657,
780,
13,
4099,
18,
588,
653,
5621,
430,
12,
4937,
10155,
10,
10,
4558,
461,
18,
14963,
2932,
16741,
6,
3719,
95,
13174,
8658,
5900,
28657,
13174,
8658,
13,
16078,
18,
588,
3759,
5621,
430,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
474,
896,
1685,
1046,
1435,
15069,
14106,
16,
4201,
1228,
503,
95,
759,
3163,
18,
370,
18,
8222,
2932,
896,
1685,
1046,
8863,
759,
1994,
2956,
529,
780,
2956,
461,
33,
896,
50,
1010,
969,
12,
3767,
1769,
7039,
18,
8507,
5621,
759,
7621,
4937,
2472,
430,
12,
4937,
10155,
15329,
430,
2932,
2773,
18,
14963,
12,
2956,
461,
3719,
1636,
2932,
4201,
13180,
1884,
70,
2232,
1973,
13168,
310,
792,
345,
1714,
22667,
8863,
16078,
18,
1289,
3759,
12,
2704,
13174,
8658,
10663,
97,
759,
1994,
2956,
1745,
6494,
14739,
33,
698,
9431,
5621,
3355,
12,
21,
1769,
3001,
71,
33,
896,
782,
5621,
17523,
12,
71,
5,
2218,
2473,
10,
10,
71,
5,
2218,
1870,
15329,
2
] |
||
receiver.endElement();
|
receiver.endElement(qname);
|
public void endElement(String namespaceURI, String localName, String qname) throws SAXException { try { nsSupport.popContext(); receiver.endElement(); } catch (TransformerException e) { throw new SAXException(e.getMessage(), e); } }
|
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bb9e62961cd54f3562f2a8e34ebe8f272b7123b5/SAXSerializer.java/buggy/src/org/exist/util/serializer/SAXSerializer.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
14840,
12,
780,
19421,
16,
514,
11927,
16,
514,
12621,
13,
202,
202,
15069,
14366,
288,
202,
202,
698,
288,
1082,
202,
2387,
6289,
18,
5120,
1042,
5621,
1082,
202,
24454,
18,
409,
1046,
5621,
202,
202,
97,
1044,
261,
8319,
503,
425,
13,
288,
1082,
202,
12849,
394,
14366,
12,
73,
18,
24906,
9334,
425,
1769,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
14840,
12,
780,
19421,
16,
514,
11927,
16,
514,
12621,
13,
202,
202,
15069,
14366,
288,
202,
202,
698,
288,
1082,
202,
2387,
6289,
18,
5120,
1042,
5621,
1082,
202,
24454,
18,
409,
1046,
5621,
202,
202,
97,
1044,
261,
8319,
503,
425,
13,
288,
1082,
202,
12849,
394,
14366,
12,
73,
18,
24906,
9334,
425,
1769,
202,
202,
97,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
PsiElement child = aClass.getFirstChild(); while(child != null){ if(child instanceof PsiJavaToken){ final PsiJavaToken token = (PsiJavaToken)child; final IElementType tokenType = token.getTokenType(); if(tokenType.equals(JavaTokenType.SEMICOLON)){ final PsiElement prevSibling = skipBackwardWhiteSpacesAndComments(child); if(!(prevSibling instanceof PsiEnumConstant)){ registerError(child); } } } child = skipForwardWhiteSpacesAndComments(child); }
|
findUnnecessarySemicolonsAfterEnumConstants(aClass);
|
public void visitClass(@NotNull PsiClass aClass){ super.visitClass(aClass); PsiElement child = aClass.getFirstChild(); while(child != null){ if(child instanceof PsiJavaToken){ final PsiJavaToken token = (PsiJavaToken)child; final IElementType tokenType = token.getTokenType(); if(tokenType.equals(JavaTokenType.SEMICOLON)){ final PsiElement prevSibling = skipBackwardWhiteSpacesAndComments(child); if(!(prevSibling instanceof PsiEnumConstant)){ registerError(child); } } } child = skipForwardWhiteSpacesAndComments(child); } if(!aClass.isEnum()){ return; } final PsiField[] fields = aClass.getFields(); if(fields.length <= 0){ return; } final PsiField lastField = fields[fields.length - 1]; if(!(lastField instanceof PsiEnumConstant)){ return; } final PsiElement element = skipForwardWhiteSpacesAndComments(lastField); if(!(element instanceof PsiJavaToken)){ return; } final PsiJavaToken token = (PsiJavaToken)element; final IElementType tokenType = token.getTokenType(); if(!tokenType.equals(JavaTokenType.SEMICOLON)){ return; } final PsiElement next = skipForwardWhiteSpacesAndComments(element); if(next == null || !next.equals(aClass.getRBrace())){ return; } registerError(element); }
|
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/0b881359d4b9dcebc4bdfe0ec410580a49eeaba0/UnnecessarySemicolonInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/style/UnnecessarySemicolonInspection.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
797,
26964,
5962,
453,
7722,
797,
20148,
15329,
5411,
2240,
18,
11658,
797,
12,
69,
797,
1769,
5411,
453,
7722,
1046,
1151,
273,
20148,
18,
588,
3759,
1763,
5621,
5411,
1323,
12,
3624,
480,
446,
15329,
7734,
309,
12,
3624,
1276,
453,
7722,
5852,
1345,
15329,
10792,
727,
453,
7722,
5852,
1345,
1147,
273,
261,
52,
7722,
5852,
1345,
13,
3624,
31,
10792,
727,
467,
17481,
22302,
273,
1147,
18,
588,
28675,
5621,
10792,
309,
12,
2316,
559,
18,
14963,
12,
5852,
28675,
18,
1090,
22972,
1741,
673,
3719,
95,
13491,
727,
453,
7722,
1046,
2807,
10291,
273,
27573,
2488,
26283,
13407,
12077,
1876,
9051,
12,
3624,
1769,
13491,
309,
12,
5,
12,
10001,
10291,
1276,
453,
7722,
3572,
6902,
3719,
95,
18701,
1744,
668,
12,
3624,
1769,
13491,
289,
10792,
289,
7734,
289,
7734,
1151,
273,
2488,
8514,
13407,
12077,
1876,
9051,
12,
3624,
1769,
5411,
289,
5411,
309,
12,
5,
69,
797,
18,
291,
3572,
10756,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
974,
8526,
1466,
273,
20148,
18,
588,
2314,
5621,
5411,
309,
12,
2821,
18,
2469,
1648,
374,
15329,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
974,
1142,
974,
273,
1466,
63,
2821,
18,
2469,
300,
404,
15533,
5411,
309,
12,
5,
12,
2722,
974,
1276,
453,
7722,
3572,
6902,
3719,
95,
7734,
327,
31,
5411,
289,
5411,
727,
453,
7722,
1046,
930,
273,
10792,
2488,
8514,
13407,
12077,
1876,
9051,
12,
2722,
974,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
3757,
797,
26964,
5962,
453,
7722,
797,
20148,
15329,
5411,
2240,
18,
11658,
797,
12,
69,
797,
1769,
5411,
453,
7722,
1046,
1151,
273,
20148,
18,
588,
3759,
1763,
5621,
5411,
1323,
12,
3624,
480,
446,
15329,
7734,
309,
12,
3624,
1276,
453,
7722,
5852,
1345,
15329,
10792,
727,
453,
7722,
5852,
1345,
1147,
273,
261,
52,
7722,
5852,
1345,
13,
3624,
31,
10792,
727,
467,
17481,
22302,
273,
1147,
18,
588,
28675,
5621,
10792,
309,
12,
2316,
559,
18,
14963,
12,
5852,
28675,
18,
1090,
22972,
1741,
673,
3719,
95,
13491,
727,
453,
7722,
1046,
2807,
10291,
273,
27573,
2488,
26283,
13407,
12077,
1876,
9051,
12,
3624,
1769,
13491,
309,
12,
5,
12,
10001,
10291,
2
] |
return format.format(annotationList.toArray(new BugAnnotation[annotationList.size()]));
|
return format.format(annotationList.toArray(new BugAnnotation[annotationList.size()]), getPrimaryClass());
|
public String getMessage() { String pattern = I18N.instance().getMessage(type); FindBugsMessageFormat format = new FindBugsMessageFormat(pattern); try { return format.format(annotationList.toArray(new BugAnnotation[annotationList.size()])); } catch (RuntimeException e) { AnalysisContext.logError("Error generating bug msg ", e); BugPattern bugPattern = I18N.instance().lookupBugPattern(type); if (bugPattern == null) return "Error: missing bug pattern for key " + type; return bugPattern.getShortDescription() + " [Error generating customized description]"; } }
|
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/f87af9d068b4325d4ede3d630495fe7754971e9d/BugInstance.java/clean/findbugs/src/java/edu/umd/cs/findbugs/BugInstance.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2381,
1435,
288,
202,
202,
780,
1936,
273,
467,
2643,
50,
18,
1336,
7675,
24906,
12,
723,
1769,
202,
202,
3125,
31559,
1079,
1630,
740,
273,
394,
4163,
31559,
1079,
1630,
12,
4951,
1769,
202,
202,
698,
288,
1082,
202,
2463,
740,
18,
2139,
12,
11495,
682,
18,
31447,
12,
2704,
16907,
3257,
63,
11495,
682,
18,
1467,
1435,
5717,
1769,
202,
202,
97,
1044,
261,
11949,
425,
13,
288,
1082,
202,
9418,
1042,
18,
1330,
668,
2932,
668,
12516,
7934,
1234,
3104,
425,
1769,
1082,
202,
19865,
3234,
7934,
3234,
273,
467,
2643,
50,
18,
1336,
7675,
8664,
19865,
3234,
12,
723,
1769,
1082,
202,
430,
261,
925,
3234,
422,
446,
13,
9506,
202,
2463,
315,
668,
30,
3315,
7934,
1936,
364,
498,
315,
397,
618,
31,
1082,
202,
2463,
7934,
3234,
18,
588,
4897,
3291,
1435,
397,
315,
306,
668,
12516,
29063,
2477,
4279,
31,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
2381,
1435,
288,
202,
202,
780,
1936,
273,
467,
2643,
50,
18,
1336,
7675,
24906,
12,
723,
1769,
202,
202,
3125,
31559,
1079,
1630,
740,
273,
394,
4163,
31559,
1079,
1630,
12,
4951,
1769,
202,
202,
698,
288,
1082,
202,
2463,
740,
18,
2139,
12,
11495,
682,
18,
31447,
12,
2704,
16907,
3257,
63,
11495,
682,
18,
1467,
1435,
5717,
1769,
202,
202,
97,
1044,
261,
11949,
425,
13,
288,
1082,
202,
9418,
1042,
18,
1330,
668,
2932,
668,
12516,
7934,
1234,
3104,
425,
1769,
1082,
202,
19865,
3234,
7934,
3234,
273,
467,
2643,
50,
18,
1336,
7675,
8664,
19865,
3234,
12,
723,
1769,
1082,
202,
430,
261,
925,
3234,
422,
446,
13,
9506,
202,
2
] |
(Integer)Version.getRevision(new Blank()));
|
(Integer)Version.getRevision(Blank.class));
|
public void testGetRevision() throws Exception { assertEquals( (Integer)100, (Integer)Version.getRevision(new Blank())); }
|
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/12f6ae8f254307cf501799bd57a8496e5a87439d/VersionTest.java/clean/components/common/test/ome/system/utests/VersionTest.java
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
7939,
1435,
1216,
1185,
288,
202,
202,
11231,
8867,
12,
9506,
202,
12,
4522,
13,
6625,
16,
9506,
202,
12,
4522,
13,
1444,
18,
588,
7939,
12,
2704,
8069,
2304,
1435,
10019,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
967,
7939,
1435,
1216,
1185,
288,
202,
202,
11231,
8867,
12,
9506,
202,
12,
4522,
13,
6625,
16,
9506,
202,
12,
4522,
13,
1444,
18,
588,
7939,
12,
2704,
8069,
2304,
1435,
10019,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.